From ddf0eae7f5597b41c471f2e856d1143167c30e47 Mon Sep 17 00:00:00 2001 From: PerfectPan <24316656+PerfectPan@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:53:22 +0800 Subject: [PATCH 1/2] feat(providers): add Antigravity CLI with identity, discovery and ACP --- .changeset/agy-provider.md | 5 +++ README.md | 29 ++++++------- apps/website/content/docs/en/agents.mdx | 12 ++++-- apps/website/content/docs/zh/agents.mdx | 12 ++++-- .../src/features/docs/agent-identity.ts | 9 ++++ infra/architecture/boundaries.ts | 11 +++++ packages/agent-kit/.size-limit.ts | 22 +++++----- packages/agent-kit/README.md | 39 ++++++++++-------- packages/agent-kit/package.json | 1 + packages/agent-kit/src/providers/acp.ts | 4 +- packages/agent-kit/src/providers/discovery.ts | 5 ++- packages/agent-kit/src/providers/identity.ts | 5 ++- .../agent-kit/src/providers/unsupported.ts | 6 +++ packages/agent-kit/test/catalog.test.ts | 23 +++++++++-- .../agent-kit/test/provider-tables.test.ts | 3 +- packages/providers/agy/README.md | 18 ++++++++ packages/providers/agy/package.json | 34 +++++++++++++++ packages/providers/agy/src/acp.ts | 21 ++++++++++ packages/providers/agy/src/discovery.ts | 41 +++++++++++++++++++ packages/providers/agy/src/facts.ts | 34 +++++++++++++++ packages/providers/agy/src/identity.ts | 9 ++++ .../providers/agy/test/conformance.test.ts | 18 ++++++++ packages/providers/agy/test/tsconfig.json | 9 ++++ packages/providers/agy/tsconfig.json | 11 +++++ packages/providers/agy/vite.config.ts | 9 ++++ packages/testing/package.json | 1 + .../testing/test/discovery-parity.test.ts | 5 ++- packages/testing/test/providers.ts | 8 +++- pnpm-lock.yaml | 34 +++++++++++++++ tests/smoke/README.md | 3 +- 30 files changed, 377 insertions(+), 64 deletions(-) create mode 100644 .changeset/agy-provider.md create mode 100644 packages/providers/agy/README.md create mode 100644 packages/providers/agy/package.json create mode 100644 packages/providers/agy/src/acp.ts create mode 100644 packages/providers/agy/src/discovery.ts create mode 100644 packages/providers/agy/src/facts.ts create mode 100644 packages/providers/agy/src/identity.ts create mode 100644 packages/providers/agy/test/conformance.test.ts create mode 100644 packages/providers/agy/test/tsconfig.json create mode 100644 packages/providers/agy/tsconfig.json create mode 100644 packages/providers/agy/vite.config.ts diff --git a/.changeset/agy-provider.md b/.changeset/agy-provider.md new file mode 100644 index 00000000..3138ebd3 --- /dev/null +++ b/.changeset/agy-provider.md @@ -0,0 +1,5 @@ +--- +"@rivus/agent-kit": minor +--- + +Add Antigravity CLI: identity, discovery (the `agy` binary, `ANTIGRAVITY_GEMINI_DIR` home override and Google API-key variables), and an ACP launch profile for `agy acp`. Hooks, sessions and usage stay unsupported: the CLI documents no `hooks.json` schema and stores conversations as protobuf payloads. diff --git a/README.md b/README.md index 21460ac9..a949f3b8 100644 --- a/README.md +++ b/README.md @@ -87,20 +87,21 @@ Hook events, harness installation, usage records, cost, Effect and ACP each have [`@rivus/agent-kit-collab` reference](packages/agent-kit-collab/README.md). ## Built-in support -| Agent | identity | discovery | hooks | install | sessions | usage | acp | -| ----------- | -------- | --------- | -------------------------- | ---------------------------------- | ---------------------------------------- | --------------------------------------- | --------------------------- | -| claude-code | yes | yes | yes | yes | yes | yes | yes | -| codex | yes | yes | yes | yes | yes | yes | yes | -| cursor | yes | yes | yes | yes | Session storage has no supported reader. | Usage storage has no supported decoder. | No supported ACP transport. | -| dim | yes | yes | yes | yes | yes | yes | yes | -| dsh | yes | yes | No supported hook dialect. | No supported installation adapter. | yes | yes | yes | -| gemini-cli | yes | yes | yes | yes | yes | yes | yes | -| grok | yes | yes | yes | yes | yes | yes | yes | -| kimi | yes | yes | yes | yes | yes | yes | yes | -| opencode | yes | yes | yes | yes | yes | yes | yes | -| pi | yes | yes | yes | yes | yes | yes | yes | -| qoder | yes | yes | yes | yes | The session store is not captured yet. | The session store is not captured yet. | yes | -| zcode | yes | yes | yes | yes | yes | yes | No supported ACP transport. | +| Agent | identity | discovery | hooks | install | sessions | usage | acp | +| ----------- | -------- | --------- | ---------------------------------------- | ------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------- | --------------------------- | +| agy | yes | yes | The hooks.json schema is not documented. | No supported hook dialect to install. | Conversations are protobuf payloads without a published schema. | Usage lives in the protobuf conversation payloads. | yes | +| claude-code | yes | yes | yes | yes | yes | yes | yes | +| codex | yes | yes | yes | yes | yes | yes | yes | +| cursor | yes | yes | yes | yes | Session storage has no supported reader. | Usage storage has no supported decoder. | No supported ACP transport. | +| dim | yes | yes | yes | yes | yes | yes | yes | +| dsh | yes | yes | No supported hook dialect. | No supported installation adapter. | yes | yes | yes | +| gemini-cli | yes | yes | yes | yes | yes | yes | yes | +| grok | yes | yes | yes | yes | yes | yes | yes | +| kimi | yes | yes | yes | yes | yes | yes | yes | +| opencode | yes | yes | yes | yes | yes | yes | yes | +| pi | yes | yes | yes | yes | yes | yes | yes | +| qoder | yes | yes | yes | yes | The session store is not captured yet. | The session store is not captured yet. | yes | +| zcode | yes | yes | yes | yes | yes | yes | No supported ACP transport. | ## Entries diff --git a/apps/website/content/docs/en/agents.mdx b/apps/website/content/docs/en/agents.mdx index fb001a3f..3cd8a898 100644 --- a/apps/website/content/docs/en/agents.mdx +++ b/apps/website/content/docs/en/agents.mdx @@ -21,17 +21,21 @@ The README's support table uses these words where a cell is not "yes": - DeepSeek Harness hooks: no supported hook dialect. - DeepSeek Harness install: no supported installation adapter. - ZCode ACP: no supported ACP transport. +- Antigravity CLI hooks: the hooks.json schema is not documented. +- Antigravity CLI install: no supported hook dialect to install. +- Antigravity CLI sessions: conversations are protobuf payloads without a published schema. +- Antigravity CLI usage: usage lives in the protobuf conversation payloads. ## Homes and names -Every Agent in the table except DeepSeek Harness has a hook dialect in `/harness/events`. +Every Agent in the table except DeepSeek Harness and Antigravity CLI has a hook dialect in `/harness/events`. -`/transcript/usage` reads the usage of every Agent in the table except Cursor and Qoder CLI; DimCode needs `platform.sqlite`. +`/transcript/usage` reads the usage of every Agent in the table except Cursor, Qoder CLI and Antigravity CLI; DimCode needs `platform.sqlite`. -`/transcript/usage` reads the usage of every Agent in the table except Cursor and Qoder CLI. +`/transcript/usage` reads the usage of every Agent in the table except Cursor, Qoder CLI and Antigravity CLI. `builtinProviders` has an identity for each of them, and a home rule for each one except Cursor. Cursor's home cell is `none`: `CURSOR_CONFIG_DIR`, `$XDG_CONFIG_HOME/cursor`, `~/.cursor`. Discovery says `CURSOR_CONFIG_DIR` and `XDG_CONFIG_HOME` remain unsupported. See [Agent detection](/docs/connection/discovery). -Codex's default home includes archived sessions. `GEMINI_CLI_HOME` replaces the user's home. `PI_CODING_AGENT_DIR` expands `~`. opencode's home in this table is the data home (`$XDG_DATA_HOME/opencode`, otherwise `~/.local/share/opencode`), not the plugin/config home. +Codex's default home includes archived sessions. `GEMINI_CLI_HOME` replaces the user's home. `PI_CODING_AGENT_DIR` expands `~`. opencode's home in this table is the data home (`$XDG_DATA_HOME/opencode`, otherwise `~/.local/share/opencode`), not the plugin/config home. Antigravity CLI shares the Gemini directory: `ANTIGRAVITY_GEMINI_DIR` names the `.gemini` directory itself, and the CLI's own state sits in `~/.gemini/antigravity-cli`. To display an Agent name, find `builtinProviders.find((provider) => provider.id === id)?.identity?.displayName`. Adding a provider is [Providers](/docs/concepts/providers). diff --git a/apps/website/content/docs/zh/agents.mdx b/apps/website/content/docs/zh/agents.mdx index 772679b5..6e76551a 100644 --- a/apps/website/content/docs/zh/agents.mdx +++ b/apps/website/content/docs/zh/agents.mdx @@ -21,17 +21,21 @@ README 的支持表在单元格不是「是」时使用这些说法: - DeepSeek Harness 的 hook:没有受支持的 hook 方言。 - DeepSeek Harness 的安装:没有受支持的安装适配器。 - ZCode 的 ACP:没有受支持的 ACP 传输。 +- Antigravity CLI 的 hook:hooks.json 的格式没有文档。 +- Antigravity CLI 的安装:没有可安装的受支持 hook 方言。 +- Antigravity CLI 的会话:会话是无公开格式的 protobuf 载荷。 +- Antigravity CLI 的用量:用量在 protobuf 会话载荷里。 ## 主目录与名称 -表里除 DeepSeek Harness 外,每个 Agent 在 `/harness/events` 里都有 hook 方言。 +表里除 DeepSeek Harness 和 Antigravity CLI 外,每个 Agent 在 `/harness/events` 里都有 hook 方言。 -`/transcript/usage` 读取表里除 Cursor 和 Qoder CLI 以外每个 Agent 的用量;DimCode 需要 `platform.sqlite`。 +`/transcript/usage` 读取表里除 Cursor、Qoder CLI 和 Antigravity CLI 以外每个 Agent 的用量;DimCode 需要 `platform.sqlite`。 -`/transcript/usage` 读取表里除 Cursor 和 Qoder CLI 以外每个 Agent 的用量。 +`/transcript/usage` 读取表里除 Cursor、Qoder CLI 和 Antigravity CLI 以外每个 Agent 的用量。 `builtinProviders` 为表里的每个 Agent 提供 identity。除 Cursor 外,每个 Agent 还有主目录规则。Cursor 的主目录单元格是 `none`:`CURSOR_CONFIG_DIR`、`$XDG_CONFIG_HOME/cursor`、`~/.cursor`。发现说明 `CURSOR_CONFIG_DIR` 和 `XDG_CONFIG_HOME` 仍然不受支持。见 [Agent 检测](/docs/connection/discovery)。 -Codex 的默认主目录包含已归档会话。`GEMINI_CLI_HOME` 替换的是用户主目录。`PI_CODING_AGENT_DIR` 会展开 `~`。表里 opencode 的主目录是数据目录(`$XDG_DATA_HOME/opencode`,否则是 `~/.local/share/opencode`),不是插件目录,也不是配置目录。 +Codex 的默认主目录包含已归档会话。`GEMINI_CLI_HOME` 替换的是用户主目录。`PI_CODING_AGENT_DIR` 会展开 `~`。表里 opencode 的主目录是数据目录(`$XDG_DATA_HOME/opencode`,否则是 `~/.local/share/opencode`),不是插件目录,也不是配置目录。Antigravity CLI 与 Gemini CLI 共用目录:`ANTIGRAVITY_GEMINI_DIR` 指向 `.gemini` 目录本身,CLI 自己的状态在 `~/.gemini/antigravity-cli` 里。 显示 Agent 名称时,查找 `builtinProviders.find((provider) => provider.id === id)?.identity?.displayName`。添加 provider 见 [Provider](/docs/concepts/providers)。 diff --git a/apps/website/src/features/docs/agent-identity.ts b/apps/website/src/features/docs/agent-identity.ts index 2e77517b..fbd60df7 100644 --- a/apps/website/src/features/docs/agent-identity.ts +++ b/apps/website/src/features/docs/agent-identity.ts @@ -99,5 +99,14 @@ export const AGENT_IDENTITY: readonly AgentIdentity[] = [ name: "ZCode", aliases: [], home: { en: "ZCODE_STORAGE_DIR, ~/.zcode", zh: "ZCODE_STORAGE_DIR,~/.zcode" } + }, + { + id: "agy", + name: "Antigravity CLI", + aliases: [], + home: { + en: "ANTIGRAVITY_GEMINI_DIR (names the Gemini dir), ~/.gemini", + zh: "ANTIGRAVITY_GEMINI_DIR(指向 .gemini 目录本身),~/.gemini" + } } ]; diff --git a/infra/architecture/boundaries.ts b/infra/architecture/boundaries.ts index 0dbf3e68..f0c5453c 100644 --- a/infra/architecture/boundaries.ts +++ b/infra/architecture/boundaries.ts @@ -116,6 +116,7 @@ const CURSOR = "@rivus/agent-kit-provider-cursor"; const PI = "@rivus/agent-kit-provider-pi"; const QODER = "@rivus/agent-kit-provider-qoder"; const KIMI = "@rivus/agent-kit-provider-kimi"; +const AGY = "@rivus/agent-kit-provider-agy"; const DIM = "@rivus/agent-kit-provider-dim"; const DSH = "@rivus/agent-kit-provider-dsh"; const ZCODE = "@rivus/agent-kit-provider-zcode"; @@ -222,6 +223,15 @@ export const boundaries: BoundaryRules = { testsOnly: [TESTING], external: ["zod/mini"] }, + [AGY]: { + siblingEntries: [], + providerFacts: "packages/providers/agy/src/facts.ts", + providerServices: ["identity", "discovery", "acp"], + dependsOn: [], + spiImports: [CATALOG, DISCOVERY, ACP], + testsOnly: [TESTING], + external: [] + }, [DSH]: { siblingEntries: [], providerFacts: "packages/providers/dsh/src/facts.ts", @@ -298,6 +308,7 @@ export const boundaries: BoundaryRules = { KIMI, QODER, DIM, + AGY, ACP, PLATFORM_NODE ], diff --git a/packages/agent-kit/.size-limit.ts b/packages/agent-kit/.size-limit.ts index 72c17672..68f3625c 100644 --- a/packages/agent-kit/.size-limit.ts +++ b/packages/agent-kit/.size-limit.ts @@ -14,26 +14,26 @@ const nodeOnly = { // `pnpm size:update` sets every limit to the measured size plus headroom (scripts/lib/size-budgets.ts); do not edit them // by hand. export default [ - { name: "@rivus/agent-kit/providers", path: "dist/providers.js", import: "*", limit: "58657 B" }, + { name: "@rivus/agent-kit/providers", path: "dist/providers.js", import: "*", limit: "59404 B" }, // About 33 kB of it is the ACP SDK, a dependency the measurement includes. The entry and the SDK both parse with // zod, which the measurement counts as well, so zod's own growth lands here. - { name: "@rivus/agent-kit/acp", path: "dist/acp.js", import: "*", limit: "45515 B" }, - { name: "@rivus/agent-kit/catalog", path: "dist/catalog.js", import: "*", limit: "1055 B" }, + { name: "@rivus/agent-kit/acp", path: "dist/acp.js", import: "*", limit: "46094 B" }, + { name: "@rivus/agent-kit/catalog", path: "dist/catalog.js", import: "*", limit: "1090 B" }, // Pricing and summarization are pure; their entry imports nothing. { name: "@rivus/agent-kit/cost", path: "dist/cost.js", import: "*", limit: "1580 B" }, // Nearly all of it is the LiteLLM snapshot, about 10 B a model plus each model's long-context tier. The budget // still fails when the filter admits another provider's routes or the entry starts bundling zod/mini. - { name: "@rivus/agent-kit/cost/prices", path: "dist/cost/prices.js", import: "*", limit: "3651 B" }, - { name: "@rivus/agent-kit/discovery", path: "dist/discovery.js", import: "*", limit: "13050 B" }, + { name: "@rivus/agent-kit/cost/prices", path: "dist/cost/prices.js", import: "*", limit: "3655 B" }, + { name: "@rivus/agent-kit/discovery", path: "dist/discovery.js", import: "*", limit: "13208 B" }, // About 25 kB of the kit's own code; the rest is its editors, @decimalturn/toml-patch (about 40 kB) and zod/mini // (about 5 kB) above all. The bridges carry the per-event finish selectors and their payload check, and the // read-only legacy listing adds the shared legacyTreatment rule and its use case. shell-quote, which reads a hook // command's first word for doctor, is counted with the entry. Configuration cleanup also carries the ledger // creation proof and its invalidation when the original entries disappear. Install-plan and bundle values own // validation and copy their inputs before freezing; legacy command content is parsed at the application boundary. - { name: "@rivus/agent-kit/harness", path: "dist/harness.js", import: "*", limit: "89361 B" }, + { name: "@rivus/agent-kit/harness", path: "dist/harness.js", import: "*", limit: "89605 B" }, // The entry keeps parsing to zod schemas, so it now carries zod/mini, bundled in by `vp pack`. - { name: "@rivus/agent-kit/harness/events", path: "dist/harness/events.js", import: "*", limit: "8611 B" }, + { name: "@rivus/agent-kit/harness/events", path: "dist/harness/events.js", import: "*", limit: "8761 B" }, // The Node platform parses system-error codes with zod/mini, which size-limit counts into the entry. { name: "@rivus/agent-kit/node", path: "dist/node.js", import: "*", limit: "6486 B", ...nodeOnly }, { name: "@rivus/agent-kit/node/effect", path: "dist/node/effect.js", import: "*", limit: "6561 B", ...nodeOnly }, @@ -49,9 +49,9 @@ export default [ // The claude-code summarize pass, the streaming time merge and the prompts rule grow /sessions and /transcript, // and the prompts conformance check grows /testing; the Codex and Grok passes and their shared record dispatches // grow all three. - { name: "@rivus/agent-kit/sessions", path: "dist/sessions.js", import: "*", limit: "40023 B" }, - { name: "@rivus/agent-kit/testing", path: "dist/testing.js", import: "*", limit: "24654 B", ...nodeOnly }, + { name: "@rivus/agent-kit/sessions", path: "dist/sessions.js", import: "*", limit: "40115 B" }, + { name: "@rivus/agent-kit/testing", path: "dist/testing.js", import: "*", limit: "24812 B", ...nodeOnly }, { name: "@rivus/agent-kit/testing/effect", path: "dist/testing/effect.js", import: "*", limit: "2425 B" }, - { name: "@rivus/agent-kit/transcript", path: "dist/transcript.js", import: "*", limit: "39552 B" }, - { name: "@rivus/agent-kit/transcript/usage", path: "dist/transcript/usage.js", import: "*", limit: "23408 B" } + { name: "@rivus/agent-kit/transcript", path: "dist/transcript.js", import: "*", limit: "40008 B" }, + { name: "@rivus/agent-kit/transcript/usage", path: "dist/transcript/usage.js", import: "*", limit: "23447 B" } ] satisfies SizeLimitConfig; diff --git a/packages/agent-kit/README.md b/packages/agent-kit/README.md index 9791a2d9..700620cf 100644 --- a/packages/agent-kit/README.md +++ b/packages/agent-kit/README.md @@ -51,20 +51,21 @@ The ordinary entries share these service objects. Hook commands keep using `buil ## Built-in support -| Agent | identity | discovery | hooks | install | sessions | usage | acp | -| ----------- | -------- | --------- | -------------------------- | ---------------------------------- | ---------------------------------------- | --------------------------------------- | --------------------------- | -| claude-code | yes | yes | yes | yes | yes | yes | yes | -| codex | yes | yes | yes | yes | yes | yes | yes | -| cursor | yes | yes | yes | yes | Session storage has no supported reader. | Usage storage has no supported decoder. | No supported ACP transport. | -| dim | yes | yes | yes | yes | yes | yes | yes | -| dsh | yes | yes | No supported hook dialect. | No supported installation adapter. | yes | yes | yes | -| gemini-cli | yes | yes | yes | yes | yes | yes | yes | -| grok | yes | yes | yes | yes | yes | yes | yes | -| kimi | yes | yes | yes | yes | yes | yes | yes | -| opencode | yes | yes | yes | yes | yes | yes | yes | -| pi | yes | yes | yes | yes | yes | yes | yes | -| qoder | yes | yes | yes | yes | The session store is not captured yet. | The session store is not captured yet. | yes | -| zcode | yes | yes | yes | yes | yes | yes | No supported ACP transport. | +| Agent | identity | discovery | hooks | install | sessions | usage | acp | +| ----------- | -------- | --------- | ---------------------------------------- | ------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------- | --------------------------- | +| agy | yes | yes | The hooks.json schema is not documented. | No supported hook dialect to install. | Conversations are protobuf payloads without a published schema. | Usage lives in the protobuf conversation payloads. | yes | +| claude-code | yes | yes | yes | yes | yes | yes | yes | +| codex | yes | yes | yes | yes | yes | yes | yes | +| cursor | yes | yes | yes | yes | Session storage has no supported reader. | Usage storage has no supported decoder. | No supported ACP transport. | +| dim | yes | yes | yes | yes | yes | yes | yes | +| dsh | yes | yes | No supported hook dialect. | No supported installation adapter. | yes | yes | yes | +| gemini-cli | yes | yes | yes | yes | yes | yes | yes | +| grok | yes | yes | yes | yes | yes | yes | yes | +| kimi | yes | yes | yes | yes | yes | yes | yes | +| opencode | yes | yes | yes | yes | yes | yes | yes | +| pi | yes | yes | yes | yes | yes | yes | yes | +| qoder | yes | yes | yes | yes | The session store is not captured yet. | The session store is not captured yet. | yes | +| zcode | yes | yes | yes | yes | yes | yes | No supported ACP transport. | ## Usage @@ -473,6 +474,7 @@ inside the session's directory after links are resolved. `probeAgent` opens one | Agent | Id | Home: override, default | | ---------------- | ------------------------------- | ----------------------------------------------------------------- | +| Antigravity CLI | `agy` | `ANTIGRAVITY_GEMINI_DIR`, `~/.gemini` | | Claude Code | `claude-code` (alias `claude`) | `CLAUDE_CONFIG_DIR`, `~/.claude` | | Codex | `codex` | `CODEX_HOME`, `~/.codex` (archived sessions included) | | Grok | `grok` | `GROK_HOME`, `~/.grok` | @@ -483,10 +485,11 @@ inside the session's directory after links are resolved. `probeAgent` opens one | DeepSeek Harness | `dsh` | `DSH_HOME` (expands `~`), `~/.dsh` | | ZCode | `zcode` | `ZCODE_STORAGE_DIR`, `~/.zcode` | -Every agent in the table except DeepSeek Harness has a hook dialect in `/harness/events`. `/acp` has a launch -profile for Claude Code (`claude-agent-acp`), Codex (`codex-acp`), DeepSeek Harness (`dsh --profile acp`), Gemini CLI, -Grok and opencode; a profile's `warnings` name the facts not yet checked against the agent. `/transcript/usage` reads -the usage of every agent in the table except Cursor. +Every agent in the table except DeepSeek Harness and Antigravity CLI has a hook dialect in `/harness/events`. `/acp` +has a launch profile for Claude Code (`claude-agent-acp`), Codex (`codex-acp`), DeepSeek Harness (`dsh --profile acp`), +Gemini CLI, Grok, opencode and Antigravity CLI (`agy acp`); a profile's `warnings` name the facts not yet checked +against the agent. `/transcript/usage` reads the usage of every agent in the table except Cursor, Qoder CLI and +Antigravity CLI. Routed functions accept `providers?: readonly Provider[]` (the type and `builtinProviders` come from `@rivus/agent-kit/providers`). Descriptors merge over built-ins by id and service: `{ id: "codex", hooks: dialect }` diff --git a/packages/agent-kit/package.json b/packages/agent-kit/package.json index ed4f1962..facb7ffb 100644 --- a/packages/agent-kit/package.json +++ b/packages/agent-kit/package.json @@ -122,6 +122,7 @@ "@rivus/agent-kit-platform": "workspace:*", "@rivus/agent-kit-platform-node": "workspace:*", "@rivus/agent-kit-provider-claude-code": "workspace:*", + "@rivus/agent-kit-provider-agy": "workspace:*", "@rivus/agent-kit-provider-codex": "workspace:*", "@rivus/agent-kit-provider-cursor": "workspace:*", "@rivus/agent-kit-provider-dim": "workspace:*", diff --git a/packages/agent-kit/src/providers/acp.ts b/packages/agent-kit/src/providers/acp.ts index a629605d..ca7fe9d0 100644 --- a/packages/agent-kit/src/providers/acp.ts +++ b/packages/agent-kit/src/providers/acp.ts @@ -8,6 +8,7 @@ import { dshAcpProfile } from "@rivus/agent-kit-provider-dsh/acp"; import { piAcpProfile } from "@rivus/agent-kit-provider-pi/acp"; import { qoderAcpProfile } from "@rivus/agent-kit-provider-qoder/acp"; import { kimiAcpProfile } from "@rivus/agent-kit-provider-kimi/acp"; +import { agyAcpProfile } from "@rivus/agent-kit-provider-agy/acp"; import { dimAcpProfile } from "@rivus/agent-kit-provider-dim/acp"; import { mergeService } from "./merge.js"; import type { Provider } from "./types.js"; @@ -22,7 +23,8 @@ const builtinAcpProfiles: AcpProfiles = { pi: piAcpProfile, qoder: qoderAcpProfile, dim: dimAcpProfile, - kimi: kimiAcpProfile + kimi: kimiAcpProfile, + agy: agyAcpProfile }; export const acpTable = (providers?: readonly Provider[]): ReturnType> => diff --git a/packages/agent-kit/src/providers/discovery.ts b/packages/agent-kit/src/providers/discovery.ts index 18bb1b80..6bc290f7 100644 --- a/packages/agent-kit/src/providers/discovery.ts +++ b/packages/agent-kit/src/providers/discovery.ts @@ -10,6 +10,7 @@ import { zcodeProbe } from "@rivus/agent-kit-provider-zcode/discovery"; import { qoderProbe } from "@rivus/agent-kit-provider-qoder/discovery"; import { dimProbe } from "@rivus/agent-kit-provider-dim/discovery"; import { kimiProbe } from "@rivus/agent-kit-provider-kimi/discovery"; +import { agyProbe } from "@rivus/agent-kit-provider-agy/discovery"; import { mergeService } from "./merge.js"; import type { Provider } from "./types.js"; @@ -26,6 +27,7 @@ const builtinProbeRecipes: { readonly qoder: typeof qoderProbe; readonly dim: typeof dimProbe; readonly kimi: typeof kimiProbe; + readonly agy: typeof agyProbe; } = { opencode: opencodeProbe, "claude-code": claudeCodeProbe, @@ -38,7 +40,8 @@ const builtinProbeRecipes: { zcode: zcodeProbe, qoder: qoderProbe, dim: dimProbe, - kimi: kimiProbe + kimi: kimiProbe, + agy: agyProbe }; export const discoveryTable = (providers?: readonly Provider[]): ReturnType> => diff --git a/packages/agent-kit/src/providers/identity.ts b/packages/agent-kit/src/providers/identity.ts index 78d2df9c..3e875539 100644 --- a/packages/agent-kit/src/providers/identity.ts +++ b/packages/agent-kit/src/providers/identity.ts @@ -10,6 +10,7 @@ import { pi } from "@rivus/agent-kit-provider-pi/identity"; import { zcode } from "@rivus/agent-kit-provider-zcode/identity"; import { qoder } from "@rivus/agent-kit-provider-qoder/identity"; import { kimi } from "@rivus/agent-kit-provider-kimi/identity"; +import { agy } from "@rivus/agent-kit-provider-agy/identity"; import { dim } from "@rivus/agent-kit-provider-dim/identity"; import { mergeService } from "./merge.js"; import type { Provider } from "./types.js"; @@ -27,6 +28,7 @@ const builtinCodingAgents: { readonly qoder: typeof qoder; readonly dim: typeof dim; readonly kimi: typeof kimi; + readonly agy: typeof agy; } = { "claude-code": claudeCode, codex: codex, @@ -39,7 +41,8 @@ const builtinCodingAgents: { zcode: zcode, qoder, dim, - kimi + kimi, + agy }; export const identityTable = (providers?: readonly Provider[]): ReturnType> => { diff --git a/packages/agent-kit/src/providers/unsupported.ts b/packages/agent-kit/src/providers/unsupported.ts index 46d0cf9c..7c7097c5 100644 --- a/packages/agent-kit/src/providers/unsupported.ts +++ b/packages/agent-kit/src/providers/unsupported.ts @@ -26,5 +26,11 @@ export const unsupported: Readonly< sessions: "The session store is not captured yet.", usage: "The session store is not captured yet." }, + agy: { + hooks: "The hooks.json schema is not documented.", + install: "No supported hook dialect to install.", + sessions: "Conversations are protobuf payloads without a published schema.", + usage: "Usage lives in the protobuf conversation payloads." + }, zcode: { acp: "No supported ACP transport." } }; diff --git a/packages/agent-kit/test/catalog.test.ts b/packages/agent-kit/test/catalog.test.ts index 16295521..470c7f4a 100644 --- a/packages/agent-kit/test/catalog.test.ts +++ b/packages/agent-kit/test/catalog.test.ts @@ -11,7 +11,20 @@ const builtinCodingAgents = Object.fromEntries( const home = "/u/me"; /** Every built-in identity with a verified home, sorted. */ -const HOMED = ["claude-code", "codex", "dim", "dsh", "gemini-cli", "grok", "kimi", "opencode", "pi", "qoder", "zcode"]; +const HOMED = [ + "agy", + "claude-code", + "codex", + "dim", + "dsh", + "gemini-cli", + "grok", + "kimi", + "opencode", + "pi", + "qoder", + "zcode" +]; describe("built-in home rules", () => { it.each([ @@ -25,7 +38,8 @@ describe("built-in home rules", () => { ["zcode", "/u/me/.zcode"], ["qoder", "/u/me/.qoder"], ["dim", "/u/me/.dimcode/v2"], - ["kimi", "/u/me/.kimi-code"] + ["kimi", "/u/me/.kimi-code"], + ["agy", "/u/me/.gemini"] ] as const)("defaults %s to %s", (id, path) => { expect(homeFromRule(id, builtinCodingAgents[id]!.home!, { env: {}, home })).toEqual({ agent: id, @@ -44,7 +58,8 @@ describe("built-in home rules", () => { ["zcode", "ZCODE_STORAGE_DIR", "/cfg/zcode", "/cfg/zcode"], ["qoder", "QODER_CONFIG_DIR", "/cfg/qoder", "/cfg/qoder"], ["dim", "DIMCODE_HOME", "/cfg/dim", "/cfg/dim/v2"], - ["kimi", "KIMI_CODE_HOME", "/cfg/kimi", "/cfg/kimi"] + ["kimi", "KIMI_CODE_HOME", "/cfg/kimi", "/cfg/kimi"], + ["agy", "ANTIGRAVITY_GEMINI_DIR", "/cfg/agy", "/cfg/agy"] ] as const)("lets %s's %s override the default", (id, variable, value, path) => { expect(homeFromRule(id, builtinCodingAgents[id]!.home!, { env: { [variable]: value }, home })).toEqual({ agent: id, @@ -106,7 +121,7 @@ describe("built-in home rules", () => { it("has a home rule exactly for the verified agents", () => { const withHome = Object.values(builtinCodingAgents).filter((agent) => agent.home !== undefined); expect(withHome.map((agent) => agent.id).toSorted()).toEqual(HOMED); - expect(Object.keys(builtinCodingAgents)).toHaveLength(12); + expect(Object.keys(builtinCodingAgents)).toHaveLength(13); }); }); diff --git a/packages/agent-kit/test/provider-tables.test.ts b/packages/agent-kit/test/provider-tables.test.ts index daf6ca54..01ff435e 100644 --- a/packages/agent-kit/test/provider-tables.test.ts +++ b/packages/agent-kit/test/provider-tables.test.ts @@ -77,7 +77,7 @@ it("exports builtinProviders with the same ids and services as the individual ta } }); -it("keeps exactly the twelve built-in ids and accepts third-party ids in the public type", () => { +it("keeps exactly the thirteen built-in ids and accepts third-party ids in the public type", () => { expectTypeOf().toEqualTypeOf< | "claude-code" | "codex" @@ -91,6 +91,7 @@ it("keeps exactly the twelve built-in ids and accepts third-party ids in the pub | "pi" | "qoder" | "zcode" + | "agy" >(); expectTypeOf<"third-party">().toExtend(); for (const id of ids) { diff --git a/packages/providers/agy/README.md b/packages/providers/agy/README.md new file mode 100644 index 00000000..6987a9e7 --- /dev/null +++ b/packages/providers/agy/README.md @@ -0,0 +1,18 @@ +# @rivus/agent-kit-provider-agy + +Antigravity CLI (`agy`) for @rivus/agent-kit: the identity, the discovery probe recipe and the ACP profile. A +private internal package bundled into the shell; see the repository README for the support matrix. + +What this package reads about a 1.5.10 CLI, verified against the binary on this machine: + +- `agy acp` starts the Agent Client Protocol stdio server; the profile launches it and lets hosts answer + permission requests over the protocol instead of passing `--dangerously-skip-permissions`. +- Files live under the Gemini directory `~/.gemini` (`ANTIGRAVITY_GEMINI_DIR` or `--gemini-dir` relocates it), + with the CLI's own state under `~/.gemini/antigravity-cli`. + +Not supported yet, recorded in the shell's `unsupported` table: + +- `hooks`/`install`: hooks are named entries in `hooks.json` files, a schema the CLI does not document. +- `sessions`/`usage`: conversations are one SQLite database per conversation of protobuf payloads + (`antigravity-cli/conversations/.db`) with no published schema; `history.jsonl` and the relational + summaries database carry no message bodies or token counts. diff --git a/packages/providers/agy/package.json b/packages/providers/agy/package.json new file mode 100644 index 00000000..ea0fa16e --- /dev/null +++ b/packages/providers/agy/package.json @@ -0,0 +1,34 @@ +{ + "name": "@rivus/agent-kit-provider-agy", + "version": "0.0.0", + "private": true, + "description": "Antigravity CLI identity, discovery and ACP. Bundled into @rivus/agent-kit.", + "license": "MIT", + "type": "module", + "sideEffects": false, + "exports": { + "./identity": "./src/identity.ts", + "./discovery": "./src/discovery.ts", + "./acp": "./src/acp.ts" + }, + "scripts": { + "build": "", + "lint": "vp lint 2>&1", + "typecheck": "tsc -p tsconfig.json && tsc -p test/tsconfig.json", + "test": "vp test 2>&1", + "format": "vp fmt .", + "format:check": "vp fmt --check ." + }, + "dependencies": { + "@rivus/agent-kit-acp": "workspace:*", + "@rivus/agent-kit-catalog": "workspace:*", + "@rivus/agent-kit-discovery": "workspace:*" + }, + "devDependencies": { + "@perfectpan/lint-config": "catalog:", + "@rivus/agent-kit-testing": "workspace:*", + "@types/node": "catalog:", + "typescript": "catalog:", + "vite-plus": "catalog:" + } +} diff --git a/packages/providers/agy/src/acp.ts b/packages/providers/agy/src/acp.ts new file mode 100644 index 00000000..ef8923ff --- /dev/null +++ b/packages/providers/agy/src/acp.ts @@ -0,0 +1,21 @@ +import { type AcpProfile, BASE_ENV } from "@rivus/agent-kit-acp/spi"; +import { AGY_ACP_ARGS, AGY_ACP_ENV, AGY_COMMAND, AGY_ID } from "./facts.js"; + +/** + * `agy acp` (verified against 1.5.10: the subcommand starts the Agent Client Protocol stdio JSON-RPC server, and + * takes `--add-dir`, `--agent`, `--sandbox`, `--login` and `--dangerously-skip-permissions`). Permission requests + * reach the client over the protocol, so the profile launches the server without the auto-approve flag; hosts + * answer them through `onPermission`. + */ +export const agyAcpProfile: AcpProfile = { + specificationVersion: "acp-v1", + agent: AGY_ID, + command: AGY_COMMAND, + args: AGY_ACP_ARGS, + env: [...BASE_ENV, ...AGY_ACP_ENV], + systemPrompt: { in: "first-block" }, + warnings: [ + "unverified: whether session/new reads a system prompt from _meta; the profile opens the first prompt with it", + "unverified: newer releases may rename the acp subcommand, as Gemini CLI's --experimental-acp shows" + ] +}; diff --git a/packages/providers/agy/src/discovery.ts b/packages/providers/agy/src/discovery.ts new file mode 100644 index 00000000..f4d928f0 --- /dev/null +++ b/packages/providers/agy/src/discovery.ts @@ -0,0 +1,41 @@ +import { + AGY_COMMAND, + AGY_DISPLAY_NAME, + AGY_HISTORY_FILE, + AGY_HOME, + AGY_ID, + AGY_ONBOARDING_STATE_FILE +} from "./facts.js"; +import type { ProbeRecipe } from "@rivus/agent-kit-discovery/spi"; +import { VERSION_FLAG } from "@rivus/agent-kit-discovery/spi"; + +// `agy --version` prints the version. The CLI keeps its own state under `~/.gemini/antigravity-cli` and talks to +// Google's Cloud Code API after a Google login (`agy acp --login`); the login material itself stays out of the +// directories detection reads, so only the API-key variables count as an observed login here. + +export const agyProbe: ProbeRecipe = { + specificationVersion: "discovery-v1", + agent: AGY_ID, + displayName: AGY_DISPLAY_NAME, + kind: "cli", + commands: [AGY_COMMAND], + appPaths: [], + configPaths: [ + { agentHome: AGY_ID, path: AGY_HISTORY_FILE }, + { agentHome: AGY_ID, path: AGY_ONBOARDING_STATE_FILE } + ], + mcpConfigPaths: [], + version: { ...VERSION_FLAG }, + auth: { + env: [ + { name: "GEMINI_API_KEY", method: "api-key" }, + { name: "GOOGLE_API_KEY", method: "api-key" }, + { name: "GOOGLE_APPLICATION_CREDENTIALS", method: "service-account" } + ] + }, + warnings: [ + "the config root override ANTIGRAVITY_GEMINI_DIR is read from the binary strings; the CLI does not document it", + "the per-conversation SQLite stores and the hooks.json files are formats this provider does not read yet" + ], + home: AGY_HOME +}; diff --git a/packages/providers/agy/src/facts.ts b/packages/providers/agy/src/facts.ts new file mode 100644 index 00000000..065de962 --- /dev/null +++ b/packages/providers/agy/src/facts.ts @@ -0,0 +1,34 @@ +import type { HomeRule } from "@rivus/agent-kit-catalog/spi"; + +// Google Antigravity CLI (`agy`, https://antigravity.google), a Go binary installed at `~/.local/bin/agy` that +// serves the Agent Client Protocol over stdio through `agy acp`. Its files live in the Gemini directory +// `~/.gemini` — the `--gemini-dir` flag (default `.gemini`) and the `ANTIGRAVITY_GEMINI_DIR` variable (binary +// strings) relocate it — with the CLI's own state under `~/.gemini/antigravity-cli` (`--app-data-dir`, default +// `antigravity-cli`; `ANTIGRAVITY_APP_DATA_DIR` also appears in the binary strings). Conversations are one SQLite +// database per conversation of protobuf payloads (`antigravity-cli/conversations/.db`, no published schema) +// beside a relational summaries database and a `history.jsonl` of prompts; hooks are named entries in `hooks.json` +// files (`hook_event_name`, `PreToolUse`/`PostToolUse`/`SessionStart` appear in the binary) whose schema the CLI +// does not document. + +export const AGY_ID = "agy"; +export const AGY_DISPLAY_NAME = "Antigravity CLI"; +/** @public */ +export const AGY_COMMAND = "agy"; +/** @public */ +export const AGY_APP_DATA_DIR = "antigravity-cli"; +/** @public */ +export const HOME_DIR = ".gemini"; +// ANTIGRAVITY_GEMINI_DIR relocates the Gemini directory the way `--gemini-dir` does; the value names the directory +// itself, like the flag default `.gemini`. +/** @public */ +export const HOME_ENV = "ANTIGRAVITY_GEMINI_DIR"; +export const AGY_HOME: HomeRule = { envVar: HOME_ENV, defaultPath: [HOME_DIR] }; +export const AGY_CLI_SETTINGS_FILE = "antigravity-cli/settings.json"; +export const AGY_ONBOARDING_STATE_FILE = "antigravity-cli/jetski_state.pbtxt"; +export const AGY_HISTORY_FILE = "antigravity-cli/history.jsonl"; +export const AGY_ACP_ARGS: readonly string[] = ["acp"]; +// The CLI reads Google-credential variables beside its own `AGY_*` and `ANTIGRAVITY_*` families (binary strings). +export const AGY_ACP_ENV: readonly string[] = ["AGY_*", "ANTIGRAVITY_*", "GEMINI_*", "GOOGLE_*"]; + +/** @public */ +export const agentMarkers: readonly string[] = [AGY_ID, AGY_COMMAND, AGY_APP_DATA_DIR, HOME_ENV]; diff --git a/packages/providers/agy/src/identity.ts b/packages/providers/agy/src/identity.ts new file mode 100644 index 00000000..b4e2432c --- /dev/null +++ b/packages/providers/agy/src/identity.ts @@ -0,0 +1,9 @@ +import type { CodingAgentWithHome } from "@rivus/agent-kit-catalog/spi"; +import { AGY_DISPLAY_NAME, AGY_HOME, AGY_ID } from "./facts.js"; + +export const agy: CodingAgentWithHome = { + id: AGY_ID, + displayName: AGY_DISPLAY_NAME, + aliases: [], + home: AGY_HOME +}; diff --git a/packages/providers/agy/test/conformance.test.ts b/packages/providers/agy/test/conformance.test.ts new file mode 100644 index 00000000..c4691dc5 --- /dev/null +++ b/packages/providers/agy/test/conformance.test.ts @@ -0,0 +1,18 @@ +import { describe, expect, it } from "vite-plus/test"; +import { probeRecipeConformance } from "@rivus/agent-kit-testing/public"; +import { agyProbe } from "../src/discovery.js"; +import { agy } from "../src/identity.js"; + +const ok = (stdout: string, stderr = "") => ({ code: 0, stdout, stderr }); +const samples = { + versions: [{ output: ok("1.5.10\n"), version: { output: "1.5.10", number: "1.5.10" } }] +}; +for (const [service, checks] of [["discovery", probeRecipeConformance(agyProbe, samples, { agy })]] as const) { + describe(`agy ${service} conformance`, () => { + for (const { name, run } of checks) { + it(`${name}`, async () => { + await expect(run()).resolves.toBeUndefined(); + }); + } + }); +} diff --git a/packages/providers/agy/test/tsconfig.json b/packages/providers/agy/test/tsconfig.json new file mode 100644 index 00000000..b3b85699 --- /dev/null +++ b/packages/providers/agy/test/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "declaration": false, + "isolatedDeclarations": false, + "types": ["node"] + }, + "include": ["**/*.ts"] +} diff --git a/packages/providers/agy/tsconfig.json b/packages/providers/agy/tsconfig.json new file mode 100644 index 00000000..78461d1c --- /dev/null +++ b/packages/providers/agy/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "@perfectpan/lint-config/tsconfig/node.json", + "compilerOptions": { + "noEmit": true, + "declaration": true, + "isolatedDeclarations": true, + "lib": ["ES2024", "DOM", "DOM.Iterable"], + "types": [] + }, + "include": ["src/**/*.ts"] +} diff --git a/packages/providers/agy/vite.config.ts b/packages/providers/agy/vite.config.ts new file mode 100644 index 00000000..045b5e55 --- /dev/null +++ b/packages/providers/agy/vite.config.ts @@ -0,0 +1,9 @@ +import { fmt, lint } from "@perfectpan/lint-config/vite-plus"; +import { defineConfig } from "vite-plus"; + +import { withBoundaryLint } from "../../../infra/architecture/lint.ts"; + +export default defineConfig({ + fmt: { ...fmt, ignorePatterns: ["test/fixtures/**"] }, + lint: withBoundaryLint(lint, import.meta.url) +}); diff --git a/packages/testing/package.json b/packages/testing/package.json index 7c4fc4b6..1d4bf96e 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -31,6 +31,7 @@ "@rivus/agent-kit-acp": "workspace:*", "@rivus/agent-kit-cost": "workspace:*", "@rivus/agent-kit-platform-node": "workspace:*", + "@rivus/agent-kit-provider-agy": "workspace:*", "@rivus/agent-kit-provider-claude-code": "workspace:*", "@rivus/agent-kit-provider-codex": "workspace:*", "@rivus/agent-kit-provider-cursor": "workspace:*", diff --git a/packages/testing/test/discovery-parity.test.ts b/packages/testing/test/discovery-parity.test.ts index 02a87ba0..0c0d0321 100644 --- a/packages/testing/test/discovery-parity.test.ts +++ b/packages/testing/test/discovery-parity.test.ts @@ -226,7 +226,7 @@ const EXPECTED_DIFFERENCES: readonly { agent: string; fact: Fact; source: string ]; describe("parity with agent-finder", () => { - it("has agent-finder's 26 agents in its order, and the twelve built-in agents in report order", () => { + it("has agent-finder's 26 agents in its order, and the thirteen built-in agents in report order", () => { const finderOrder = cases[0]?.report.agents.map((agent) => agent.id) ?? []; expect(Object.keys(finderRecipes)).toEqual(finderOrder); // detectAgents reports in table order, so the builtin table keeps finder's relative order, with Grok at the end. @@ -237,7 +237,8 @@ describe("parity with agent-finder", () => { "grok", "kimi", "qoder", - "dim" + "dim", + "agy" ]); expect(cases.map((parityCase) => parityCase.name).toSorted()).toEqual([ "doctor-config-only", diff --git a/packages/testing/test/providers.ts b/packages/testing/test/providers.ts index af79f0df..69fc4372 100644 --- a/packages/testing/test/providers.ts +++ b/packages/testing/test/providers.ts @@ -53,6 +53,8 @@ import { kimiHookDialect } from "@rivus/agent-kit-provider-kimi/hooks"; import { kimiInstallAdapter } from "@rivus/agent-kit-provider-kimi/install"; import { kimiUsageDecoder } from "@rivus/agent-kit-provider-kimi/usage"; import { kimiSessionAdapter } from "@rivus/agent-kit-provider-kimi/sessions"; +import { agy } from "@rivus/agent-kit-provider-agy/identity"; +import { agyProbe } from "@rivus/agent-kit-provider-agy/discovery"; export const builtinCodingAgents = { "claude-code": claudeCode, codex: codex, @@ -63,7 +65,8 @@ export const builtinCodingAgents = { pi: pi, qoder, dim, - kimi + kimi, + agy }; export const builtinProbeRecipes = { opencode: opencodeProbe, @@ -75,7 +78,8 @@ export const builtinProbeRecipes = { grok: grokProbe, kimi: kimiProbe, qoder: qoderProbe, - dim: dimProbe + dim: dimProbe, + agy: agyProbe }; // ZCode first, as in the shell: its payloads also carry Grok's payload marker. export const builtinHookDialects = { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12d3ef26..49f732fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -567,6 +567,9 @@ importers: '@rivus/agent-kit-platform-node': specifier: workspace:* version: link:../platform-node + '@rivus/agent-kit-provider-agy': + specifier: workspace:* + version: link:../providers/agy '@rivus/agent-kit-provider-claude-code': specifier: workspace:* version: link:../providers/claude-code @@ -876,6 +879,34 @@ importers: specifier: 'catalog:' version: 5.0.5(@types/node@24.19.2)(@vitest/browser-preview@5.0.5)(@vitest/ui@5.0.5)(@voidzero-dev/vite-plus-core@1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1)) + packages/providers/agy: + dependencies: + '@rivus/agent-kit-acp': + specifier: workspace:* + version: link:../../acp + '@rivus/agent-kit-catalog': + specifier: workspace:* + version: link:../../catalog + '@rivus/agent-kit-discovery': + specifier: workspace:* + version: link:../../discovery + devDependencies: + '@perfectpan/lint-config': + specifier: 'catalog:' + version: https://codeload.github.com/PerfectPan/lint-config/tar.gz/21d4b41b699dfe9786674037a717809653b36026(eslint-plugin-better-tailwindcss@4.10.0(eslint@10.13.0(jiti@2.7.0)(supports-color@7.2.0))(oxlint@1.88.0(oxlint-tsgolint@7.0.2004)(vite-plus@1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1)))(tailwindcss@4.3.3)(typescript@7.0.2))(jscpd@5.4.2)(knip@6.45.1)(oxfmt@0.73.0(vite-plus@1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1)))(oxlint-tsgolint@7.0.2004)(oxlint@1.88.0(oxlint-tsgolint@7.0.2004)(vite-plus@1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1)))(typescript@7.0.2)(vite-plus@1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1)) + '@rivus/agent-kit-testing': + specifier: workspace:* + version: link:../../testing + '@types/node': + specifier: 'catalog:' + version: 24.19.2 + typescript: + specifier: 'catalog:' + version: 7.0.2 + vite-plus: + specifier: 'catalog:' + version: 1.3.0(@arethetypeswrong/core@0.18.5)(@types/node@24.19.2)(@vitest/ui@5.0.5)(esbuild@0.28.2)(jiti@2.7.0)(publint@0.3.25)(typescript@7.0.2)(yaml@2.9.1) + packages/providers/claude-code: dependencies: '@rivus/agent-kit-acp': @@ -1388,6 +1419,9 @@ importers: '@rivus/agent-kit-platform-node': specifier: workspace:* version: link:../platform-node + '@rivus/agent-kit-provider-agy': + specifier: workspace:* + version: link:../providers/agy '@rivus/agent-kit-provider-claude-code': specifier: workspace:* version: link:../providers/claude-code diff --git a/tests/smoke/README.md b/tests/smoke/README.md index da492c2a..56ae8557 100644 --- a/tests/smoke/README.md +++ b/tests/smoke/README.md @@ -11,7 +11,8 @@ AGENT_KIT_SMOKE_AGENTS=claude-code,codex,opencode,gemini-cli,grok,dsh pnpm run s ``` `AGENT_KIT_SMOKE_AGENTS` names the agents to run, by `CodingAgentId`; the others are skipped. Each agent needs its ACP -program on `PATH`: `claude-agent-acp`, `codex-acp`, `opencode`, `gemini`, `grok` and `dsh`. An agent gets only the variables +program on `PATH`: `claude-agent-acp`, `codex-acp`, `opencode`, `gemini`, `grok`, `dsh` and `agy` (Kimi Code, Qoder CLI +and DimCode launch their own `kimi`, `qodercli` and `dim` programs). An agent gets only the variables its `acp` profile lists in `builtinProviders`, taken from the shell's environment. For each agent, `acp.smoke.test.ts` probes it (a trial session reports `ready` or `needs-login`), sends one prompt From 818d02f37de11b25c22ea30806070920cac847ae Mon Sep 17 00:00:00 2001 From: PerfectPan <24316656+PerfectPan@users.noreply.github.com> Date: Wed, 18 Nov 2026 00:04:25 +0800 Subject: [PATCH 2/2] fix(agy): drop the GOOGLE_API_KEY login probe the CLI does not read --- packages/providers/agy/src/discovery.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/providers/agy/src/discovery.ts b/packages/providers/agy/src/discovery.ts index f4d928f0..afaa0a32 100644 --- a/packages/providers/agy/src/discovery.ts +++ b/packages/providers/agy/src/discovery.ts @@ -29,7 +29,6 @@ export const agyProbe: ProbeRecipe = { auth: { env: [ { name: "GEMINI_API_KEY", method: "api-key" }, - { name: "GOOGLE_API_KEY", method: "api-key" }, { name: "GOOGLE_APPLICATION_CREDENTIALS", method: "service-account" } ] },