agent-agy 0.1.0: Antigravity CLI (agy) as an agent plugin

The agent plugin magpie's built-in agy moves onto. It names agy's
settings.json, where magpie's models go beside the user's own
(merge: customModelsConfig.customModels), and how agy is started:
GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL from magpie's gateway and
--model, given by the agy function magpie puts in the user's shells.
own() lists the user's own custom models by their provider.

Run: bun test in packages/agent-agy (3 pass) and bun scripts/check.mjs
(ok) on mote. magpie's TestAgyPlugin, TestAgyHandedToPlugin and
TestAgyHandedOverUnwire load this file and pass against the magpie
change that reads launch, merge, effort, wsl and aliases. A magpie
without that change keeps agy its built-in's, so this package does
nothing there.
This commit is contained in:
yetone
2026-11-11 03:46:52 +08:00
parent ea3573bfe9
commit 450279c4e0
5 changed files with 152 additions and 0 deletions
+2
View File
@@ -111,6 +111,8 @@
"summary": { "en": "Opt-in, per-provider Codex Responses history filtering after switching providers. Preserves readable content and tool-call pairing; no model probes.", "zh": "按供应商开关 Codex Responses 历史过滤,缓解切换上游后的密文和历史 ID 兼容问题;保留正文与工具配对,不运行模型检测。" } },
{ "package": "@magpie-community/middleware-history-trim", "name": "History Trim", "kind": "middleware", "community": true,
"summary": { "en": "Send a request's history smaller: fold a run of blank lines, drop a system prompt written twice and a message repeated right after itself, and cut a past tool result longer than maxToolLength at a word boundary. The turn being sent now is left whole.", "zh": "把请求的历史发得更小:折叠连续空行、去掉逐字重复的 system 提示与紧挨着重复的消息、把历史中超过 maxToolLength 的工具结果在词边界处截断;正在发送的这一轮原样不动。" } },
{ "package": "@magpie-community/agent-agy", "name": "Antigravity CLI", "kind": "agent", "community": true, "icon": "antigravity-color",
"summary": { "en": "Antigravity CLI (agy) on magpie's Agents page: pick one of magpie's models, and the agy in your shells starts on magpie's gateway. Takes the place of the built-in, keeping what it set up.", "zh": "把 Antigravity CLI(agy)加到 magpie 的 Agent 页:选一个 magpie 的模型,终端里的 agy 就从 magpie 的网关启动。接替内置的 agy,保留它原有的设置。" } },
{ "package": "@magpie-community/agent-aider", "name": "Aider", "kind": "agent", "community": true,
"summary": { "en": "Aider (aider.chat) on magpie's Agents page: pick one of magpie's models for it, and switch it off to put its config back.", "zh": "把 Aider(aider.chat)加到 magpie 的 Agent 页:给它选 magpie 的模型,关掉即恢复它原来的配置。" } },
{ "package": "@magpie-community/agent-nanobot", "name": "nanobot", "kind": "agent", "community": true, "icon": "https://raw.githubusercontent.com/HKUDS/nanobot/main/webui/public/brand/nanobot_mark.svg",