@claudexor/harness-agy

中文文档
5.1.0发布于 2026/11/08MITTypeScriptES Module构建来源已验证近 30 天下载 4768

Google Antigravity CLI adapter (agy -p --output-format stream-json).

原始使用文档

@claudexor/harness-agy

Adapter for Google's Antigravity CLI (agy): translates agy -p --output-format stream-json into typed HarnessEvents.

Accounts use NAMED credential-profile bindings only (there is no engine-default agy credential). Every binding has a Claudexor-owned HOME that scopes vendor state under $HOME/.gemini/...; credential custody is platform-defined. On Darwin, Claudexor lazily prepares the profile's own Library/Keychains/login.keychain-db before an agy child starts. When setup succeeds this prevents the missing-keychain prompt; an unsafe profile path refuses that child before it can trigger SecurityAgent, while an operational setup miss leaves the vendor's own file fallback available. The implementation bootstraps the DB under a neutral filename and adopts the canonical name, because Apple's security tool treats a path containing login.keychain as a user search-list entry. This keeps host default/list preferences untouched. The vendor still owns the item; no host Keychain is bridged and no credential bytes are copied. Linux keeps the config-file/HOME route. Windows uses the current OS user's Credential Manager identity, permits one enabled binding, and treats HOME as state scoping rather than an independent Google identity. Readiness always comes from the bounded vendor /model probe, never from the presence or absence of antigravity-oauth-token. See src/profile.ts for the route and verification contract.

Fixtures under fixtures/ pin the recorded 1.1.13 stream shapes; see fixtures/manifest.yaml for provenance and stream-semantics expectations.

Model enumeration uses the named profile's agy models table through the same bounded, pipe-EOF runner as doctor and quota, with self-update disabled. Failed or malformed reads remain unknown. An unscoped query returns marked historical hints without probing a host account. Catalog absence is advisory: an explicit unlisted id reaches the vendor unchanged with the engine's unverified-model disclosure. Known Gemini and Claude/GPT families retain their declared quota scope for new ids; an unrelated model family has unknown applicability. fixtures/models.tsv records the October 2026 table with the version ambiguity disclosed in fixtures/manifest.yaml.

版本与发布记录

@claudexor/harness-agy 共发布 64 个版本,首次发布于 2026/08/17;过去 12 个月发布了 64 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.1.0latest2026/11/082 天前
5.0.22026/11/027 天前
5.0.12026/11/018 天前
4.8.22026/10/2912 天前
4.8.12026/10/2812 天前
4.7.02026/10/2318 天前

其他发布通道:next → 3.22.0。

关于 @claudexor/harness-agy 的常见问题

@claudexor/harness-agy 是什么?

Google Antigravity CLI adapter (agy -p --output-format stream-json).

如何安装 @claudexor/harness-agy?

在项目目录运行 npm install @claudexor/harness-agy,或使用 pnpm add / yarn add / bun add。

@claudexor/harness-agy 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@claudexor/harness-agy 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@claudexor/harness-agy 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.15.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@claudexor/harness-agy 可以商用吗?

@claudexor/harness-agy 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@claudexor/harness-agy 的下载量有多少?

根据 npm 官方下载统计,@claudexor/harness-agy 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,768 次,日均约 159 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@claudexor/harness-agy 还在维护吗?

最新版本 5.1.0 发布于 2026/11/08(2 天前);至今共发布 64 个版本,其中过去 12 个月发布了 64 个;首次发布于 2026/08/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。