Found beside #86. A Go key's chat completion goes to /alpha/generate with the CLI's config, which said workingDir: homedir() and isGitRepo: false whatever folder the agent worked in. It now takes the folder and the git state magpie tells the plugin's fetch (x-magpie-work-dir, x-magpie-work-git). Untold, it is the CLI's config outside a project in the home, as before (a git word without a folder means nothing). The headers are taken off every request, the Provider API's too. Run: bun test in packages/commandcode (33 pass, new workplace.test.mjs), bun scripts/check.mjs commandcode. With the old index.mjs both new tests fail. Not tried with a real Go account.
13 lines
518 B
JSON
13 lines
518 B
JSON
{
|
|
"name": "@magpie-community/opencode-commandcode-auth",
|
|
"version": "0.1.10",
|
|
"description": "Command Code plans (Pro, GOAT, Max, Ultra, Go, Teams) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "commandcode"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/commandcode" }
|
|
}
|