Repository navigation
chore(deps): upgrade dependencies and migrate breaking APIs - #96
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: onlypnpm lint:fixoutput for the rules new in v10, mostlyantfu/reasonable-newline(226 files). It changes no behavior.Migrations
createAgent, and that loop has no step cap.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 onmaxStepsor anuntil()predicate.basic-coding-agentnow use it.report_findingscall 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.maxStepsis enforced by the loop.parameterstake JSON Schema directly, soType.Unsafeis gone.streamFnusesstreamSimplefrompi-ai/api/openai-completions.UsageandPromptResponse.usageare 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 itsexportsand no longer hardcodesdist/acp.js.CANCEL_SYMBOL, so the helper parameter types follow it.Header; the entry stream is a streamx type) and drops@types/tar-stream.Held back
typescriptstays at^6.0.3, because typescript-eslint does not support TS 7.0 yet. With 7.0,pnpm lintcrashes on startup.web-tree-sitterstays at~0.24.7. 0.27 fails to load the prebuilttree-sitter-wasms0.1.13 grammars for go, python and rust. The catalog has a comment about this.effectstays at^3.22.4. It is installed only for the optionalxsschemapeer (^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 typecheckandpnpm lintpass.pnpm test:run: 1342 passed, 6 failed, 1 skipped. None of the failures come from this PR:git.test.ts,dirty.test.ts,stop-gate.test.ts). The tmpdir path goes through the/private/varsymlink, andgit rev-parsereturns the real path. CI runs on Ubuntu.config/load.test.ts, CLI facade case). It passes alone (about 1.9s) and inpnpm -F @alint-js/config exec vitest run(255/255).pnpm -F @alint-js/agent-apeira exec vitest run: 26/26, including the newrunStepstests.Follow-ups
@moeru/eslint-configdeclares@antfu/eslint-config@^8; this PR installs 10, and lint works.eslint-plugin-oxlintwantsoxlint ~1.90; this PR installs 1.91.web-tree-sitteroncetree-sitter-wasmsships grammars that the newer loader accepts.🤖 Generated with Claude Code