An agent can send one turn's tool calls in two assistant messages in a row, answered together after. conversation() answered the first message's calls at the second one: toolu_a went to Cursor as "Tool use was interrupted and did not produce a result." and its real result A! was dropped. joinSplitCalls now joins an assistant message onto an assistant message before it that made tool calls, as Anthropic reads consecutive assistant messages and as magpie's built-in does since 7067fce5, so the calls are pending together. A call of the split turn that really went unanswered is still answered for; two text-only assistant messages stay two; the caller's messages are not changed. split-calls.test.mjs is #1275's request in Chat form: 3 of its 5 tests fail on 0.1.10 (trace user assistant(toolu_a) tool(toolu_a=interrupted) assistant(toolu_b) tool(toolu_b=B!)) and pass now. HOME=$(mktemp -d) bun test (43 pass, 0 fail) and bun scripts/check.mjs pass. Not tried against a real Cursor account.
13 lines
535 B
JSON
13 lines
535 B
JSON
{
|
|
"name": "@magpie-community/opencode-cursor-auth",
|
|
"version": "0.1.11",
|
|
"description": "Cursor subscriptions (Pro, Pro+, Ultra, Teams) in OpenCode and magpie, through the API cursor-agent talks to",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "cursor"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cursor" }
|
|
}
|