Skip to content

chore(deps): upgrade dependencies and migrate breaking APIs - #96

Merged
nekomeowww merged 2 commits into
mainfrom
nekomeowww/chore/upgrade-deps
Nov 6, 2026
Merged

nekomeowww merged 2 commits into
mainfrom
nekomeowww/chore/upgrade-deps

Conversation

@nekomeowww

Copy link
Copy Markdown
Contributor

Summary

Upgrades workspace dependencies and migrates the code that broke. The PR has two commits; review them separately:

  • chore(deps): upgrade dependencies and migrate breaking APIs: the dependency bumps and the migrations (22 files).
  • style: apply @antfu/eslint-config 10 autofixes: only pnpm lint:fix output for the rules new in v10, mostly antfu/reasonable-newline (226 files). It changes no behavior.

Migrations

  • apeira 0.0.8: a runner now makes one model call and returns tool calls without running them. The step loop moved into createAgent, and that loop has no step cap.
    • Adds runSteps() to @alint-js/agent-apeira. It is a shared tool loop: it runs the tool calls, puts their outputs into the next call, and stops on maxSteps or an until() predicate.
    • The apeira adapter and basic-coding-agent now use it.
    • Behavior change: an invalid report_findings call goes back to the model as a tool error, so the model can submit again. Before, the run ended at that call. A test covers this.
    • createApeiraAdapter({ createRunner }) now takes (model) => Runner. maxSteps is enforced by the loop.
  • pi 1.x: tool parameters take JSON Schema directly, so Type.Unsafe is gone. streamFn uses streamSimple from pi-ai/api/openai-completions.
  • @agentclientprotocol/sdk 2: Usage and PromptResponse.usage are now only on /unstable. The gateway and its tests import from there, with a NOTICE that explains why. The CLI ACP e2e test now resolves the SDK through its exports and no longer hardcodes dist/acp.js.
  • @clack/prompts 1.8: the cancel type is narrowed to CANCEL_SYMBOL, so the helper parameter types follow it.
  • tar-stream 3.2: uses the types bundled with the package (Header; the entry stream is a streamx type) and drops @types/tar-stream.

Held back

  • typescript stays at ^6.0.3, because typescript-eslint does not support TS 7.0 yet. With 7.0, pnpm lint crashes on startup.
  • web-tree-sitter stays at ~0.24.7. 0.27 fails to load the prebuilt tree-sitter-wasms 0.1.13 grammars for go, python and rust. The catalog has a comment about this.
  • effect stays at ^3.22.4. It is installed only for the optional xsschema peer (^3.16.0) of the binary build (fix(cli): resolve optional schema peers in binary build #43). The catalog has a comment about this.

How tested

  • pnpm build, pnpm typecheck and pnpm lint pass.
  • pnpm test:run: 1342 passed, 6 failed, 1 skipped. None of the failures come from this PR:
    • 5 fail only on macOS (git.test.ts, dirty.test.ts, stop-gate.test.ts). The tmpdir path goes through the /private/var symlink, and git rev-parse returns the real path. CI runs on Ubuntu.
    • 1 timed out under full parallel load (config/load.test.ts, CLI facade case). It passes alone (about 1.9s) and in pnpm -F @alint-js/config exec vitest run (255/255).
  • pnpm -F @alint-js/agent-apeira exec vitest run: 26/26, including the new runSteps tests.

Follow-ups

  • Peer warnings remain. @moeru/eslint-config declares @antfu/eslint-config@^8; this PR installs 10, and lint works. eslint-plugin-oxlint wants oxlint ~1.90; this PR installs 1.91.
  • Move to TS 7 once typescript-eslint supports it.
  • Unpin web-tree-sitter once tree-sitter-wasms ships grammars that the newer loader accepts.

🤖 Generated with Claude Code

nekomeowww and others added 2 commits November 6, 2026 18:17
Bump workspace dependencies and migrate the code that broke:

- apeira 0.0.8: runners now make one model call and leave tool calls
  unexecuted. Add `runSteps()` to `@alint-js/agent-apeira` as the shared
  tool loop with a `maxSteps` cap and an `until()` predicate, and move the
  apeira adapter and `basic-coding-agent` onto it. An invalid
  `report_findings` call is now handed back to the model instead of ending
  the run.
- pi 1.x: pass JSON Schema parameters directly and stream through
  `pi-ai/api/openai-completions`.
- @agentclientprotocol/sdk 2: read `Usage` from the `/unstable` entrypoint,
  and resolve the SDK through its exports in the CLI e2e test.
- @clack/prompts 1.8: narrow cancellation to `CANCEL_SYMBOL`.
- tar-stream 3.2: use its bundled types and drop `@types/tar-stream`.

Hold back typescript at 6.0.3 (typescript-eslint does not support 7.0),
web-tree-sitter at 0.24 (0.25+ rejects the prebuilt tree-sitter-wasms
grammars), and effect at 3.x (the optional peer of xsschema).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run `pnpm lint:fix` for the rules new in @antfu/eslint-config 10, mostly
`antfu/reasonable-newline`. Formatting only, no behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nekomeowww
nekomeowww merged commit 867ff67 into main Nov 6, 2026
2 checks passed
@nekomeowww
nekomeowww deleted the nekomeowww/chore/upgrade-deps branch November 6, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant