Files
plugins/packages/agy-cli/package.json
T
yetone aafb20e6bf agy-cli 0.1.79: agy models runs with modelProvider cleared, so a gemini settings.json doesn't keep a stale list (#1218)
A turn runs agy acp on the bridge's folder and the Google sign-in, but the
listing, refusal and sign-in probes ran a bare `agy models`, which reads
the user's own settings.json. With "modelProvider": "gemini" there (an AI
Studio key), the listing failed without GEMINI_API_KEY in magpie's
environment and the old catalog stayed, or listed API-key mode's models.

- agy 1.5.9's global --settings takes a session-only settings.json object.
  The three `agy models` calls run as
  `agy --settings '{"modelProvider":""}' models` when agy's --help lists
  --settings (asked once per binary, cached by path, mtime and size like
  acpHelp); an agy that doesn't list it gets the bare command, as before.
  The reporter checked that this command goes back to the Google backend.
- testkit's fake answers `agy --help` and records each models spawn's
  args; its models behaviour sees them.

Run (mote, HOME=$(mktemp -d)):
- node --test on every node test file in packages/agy-cli/test: all pass
  (catalog 33, repeat-batch 54, usage 36, usage-settlement 40, ...).
- bun test packages/agy-cli: 37 pass, 0 fail (cp-hook and smoke are
  bun-only).
- bun scripts/check.mjs agy-cli: ok.

Broken by hand: origin/main's index.mjs with the new tests: the --settings
test fails (32 pass, 1 fail).

Not tried: a real agy with a gemini settings.json (the local agy account
answers 403); the flag's effect is the reporter's run. Not changed: with a
file sign-in, acp itself still reads the user's settings.json (no
--gemini-dir there).
2026-11-16 18:27:09 +08:00

60 lines
1.2 KiB
JSON

{
"name": "@magpie-community/opencode-agy-cli-auth",
"version": "0.1.79",
"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
}
}