Derive a session scope from x-magpie-session (magpie's synthetic magpie-<24hex> id ignored, capped at 128) and x-magpie-subagent (capped at 64), from init.headers or a Request's headers, and key conversations, live-session reuse, clientSeen and tool-result matching by it. A forked session or a subagent carrying its parent's tool_use history no longer collides with the parent's convKey or toolCalls (409 conflicting duplicate result, lineage_fork superseding the parent's pending turn). A body given only on a Request is read from it. Contributed by @wjhauannn. Run at 46fce29f (mote, macOS, HOME=$(mktemp -d)): - node --test repeat-batch.mjs conversation-key.mjs: 97 pass, 0 fail. - bun test packages/agy-cli: 37 pass, 0 fail. check.mjs agy-cli: ok. - CI: test, bumped, on-npm green. Broken by hand: origin/main's index.mjs with the new tests: 5 fail (55, 56, 57, 59, 60). Checked against magpie main: the gateway sets x-magpie-session (sessionOf) and x-magpie-subagent (subOf) on plugin requests only. A spare takes the scope through #assign on adopt. Not tried: a real agy account with a forked Claude Code session.
60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-agy-cli-auth",
|
|
"version": "0.1.80",
|
|
"description": "Magpie/OpenCode model provider that connects your local agy CLI through the Agent Client Protocol (agy acp), so Antigravity subscription models run through the real CLI",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": {
|
|
".": "./opencode2.mjs"
|
|
},
|
|
"files": [
|
|
"proc.mjs",
|
|
"index.mjs",
|
|
"documents.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"platform.mjs",
|
|
"install.mjs",
|
|
"login.mjs",
|
|
"mcp-server.mjs",
|
|
"step-usage.mjs",
|
|
"tool-schema.mjs", "tool-budget.mjs",
|
|
"usage.mjs",
|
|
"model-ids.mjs",
|
|
"signin.mjs",
|
|
"account.mjs",
|
|
"import.mjs",
|
|
"README.md",
|
|
"README.en.md",
|
|
"LICENSE",
|
|
"NOTICE.md",
|
|
"re2-pattern.mjs",
|
|
"array-items.mjs",
|
|
"cloak.mjs"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-plugin",
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"antigravity",
|
|
"agy",
|
|
"acp"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/agy-cli"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test"
|
|
},
|
|
"engines": {
|
|
"magpie": ">=0.1.4246"
|
|
},
|
|
"magpie": {
|
|
"maxConcurrency": 16
|
|
}
|
|
}
|