Repository navigation
fix(cli): default AutopilotCellRun to autopilot-ai 3.0.2 - #113
Merged
Merged
Conversation
The cell executor installed autopilot-ai@2.8.0 by default while npm is at 3.0.2. Checked the bridge protocol against 3.0.2's SDK: /health, /status, /events and /rpc are unchanged, prompt de-duplication is still by turn id, the event cursor advances the same way, and the SessionEvent union the recorder consumes is identical. The only addition is an optional modelInfo field on new_session and set_model, which the executor does not send, so the recorder needs no changes. The CI check now fails when the default falls a major release behind npm instead of only warning, since a new major may change the bridge protocol. Also corrects AGENTS.md, which still said 0.3.x. Co-authored-by: autopilot <kimiflare@proton.me> Signed-off-by: Sina Meraji <sina.meraji@gmail.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.
Closes #112.
What changed
DEFAULT_PACKAGEinpackages/cli/autopilot/cell-executor.jsis nowautopilot-ai@3.0.2(was2.8.0; npm latest is3.0.2).scripts/check-autopilot-default.mjsnow fails (::error::, exit 1) when the default is a major release behind npm, and still warns when it is more than a minor behind. New exportedisMajorBehind().docs/autopilot.mdstates the default and what was verified on which version.AGENTS.mdsaid the package was0.3.x; it is0.13.x.Bridge protocol check against 3.0.2
Compared
autopilot-ai@3.0.2'sdist/sdkwith2.8.0:/health→{ ok, initialized, sessionId }/status→{ initialized, sessionId, activeRunId, cursor }/events?after=→{ events, cursor, hasMore }/rpccommand validation,ALLOWED_COMMANDSnew_sessionmodelInfopromptde-duplication by turn id (seenRunIds)abortSessionEventunionTaskshapeThe only addition is an optional
modelInfofield onnew_sessionandset_model. The executor never sends it, soacceptModelInfo()returnsundefinedand nothing changes. The recorder needs no adaptation.What was not repeated
The documented real end-to-end and restart runs (provision → completion, kill-node-mid-tool → resume, budget pause → resume) were not re-run on 3.0.2: this environment has no Hotcell daemon or gateway.
docs/autopilot.mdsays so explicitly. The fake-bridge tests still cover setup steps, event mapping, restart resume, budget aborts, errors/backoff, failed setup, lost turns and schema migration.Tests
npm run test --workspace=serverless-objects: 271 pass, 0 fail.node scripts/check-autopilot-default.mjs:autopilot-ai default 3.0.2 is current (latest 3.0.2).Co-authored-by: autopilot kimiflare@proton.me