@codeam/shared 2.76.44 → 2.76.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +35 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -326,13 +326,11 @@ var AGENT_REGISTRY = {
|
|
|
326
326
|
// newest that same day. Three months of sending people through a bricked
|
|
327
327
|
// door — each one landing on `isGeminiIneligibleTier` at first use.
|
|
328
328
|
//
|
|
329
|
-
//
|
|
330
|
-
//
|
|
331
|
-
//
|
|
332
|
-
//
|
|
333
|
-
//
|
|
334
|
-
// path is ACP, so adopting it would mean shipping that risk. Revisit only
|
|
335
|
-
// when #31 ships an official mode.
|
|
329
|
+
// Antigravity CLI is its own agent now (`antigravity` below): official ACP
|
|
330
|
+
// (`agy acp`) shipped in agy 1.5.0 (2026-11-04), closing
|
|
331
|
+
// google-antigravity/antigravity-cli#31 — the reason we held off (only
|
|
332
|
+
// third-party adapters existed, which Google's FAQ called a ToS risk) is
|
|
333
|
+
// gone. Consumer-Google users belong there; Gemini CLI stays api_key only.
|
|
336
334
|
//
|
|
337
335
|
// Existing OAuth rows are NOT migrated: `supportedAuthMethods` gates the
|
|
338
336
|
// LINK call only, so the 46 stay readable and simply keep failing at the
|
|
@@ -370,6 +368,21 @@ var AGENT_REGISTRY = {
|
|
|
370
368
|
preferredAuthKind: "api_key",
|
|
371
369
|
// Native ACP server: `opencode acp` (stdio JSON-RPC).
|
|
372
370
|
acp: true
|
|
371
|
+
},
|
|
372
|
+
antigravity: {
|
|
373
|
+
id: "antigravity",
|
|
374
|
+
displayName: "Antigravity CLI",
|
|
375
|
+
binaryName: "agy",
|
|
376
|
+
enabled: true,
|
|
377
|
+
// Google's successor to Gemini CLI for consumer accounts (AI Pro / Ultra /
|
|
378
|
+
// free). `oauth_token` is the backend-minted blob (Antigravity's own OAuth
|
|
379
|
+
// client, redirect flow like Gemini's) written to
|
|
380
|
+
// ~/.gemini/antigravity-cli/antigravity-oauth-token; `api_key` is a Gemini
|
|
381
|
+
// API key (GEMINI_API_KEY + settings.json `modelProvider: "gemini"`).
|
|
382
|
+
supportedAuthKinds: ["oauth_token", "api_key"],
|
|
383
|
+
preferredAuthKind: "oauth_token",
|
|
384
|
+
// Native ACP server: `agy acp` (official since agy 1.5.0, 2026-11-04).
|
|
385
|
+
acp: true
|
|
373
386
|
}
|
|
374
387
|
};
|
|
375
388
|
function getEnabledAgents() {
|
|
@@ -419,6 +432,7 @@ var LINKED_AGENT_IDS = [
|
|
|
419
432
|
"kimi",
|
|
420
433
|
"openrouter",
|
|
421
434
|
"opencode",
|
|
435
|
+
"antigravity",
|
|
422
436
|
HOUSE_AGENT_ID,
|
|
423
437
|
...MANAGED_PROVIDER_IDS
|
|
424
438
|
];
|
|
@@ -441,6 +455,9 @@ var PUBLIC_TO_INTERNAL = {
|
|
|
441
455
|
// opencode is a real, distinct agent (its own binary + ACP server) — it does
|
|
442
456
|
// NOT map onto another runtime. Public id === internal id.
|
|
443
457
|
opencode: "opencode",
|
|
458
|
+
// Antigravity CLI (`agy`) is its own binary + native ACP server — public id
|
|
459
|
+
// === internal id, like opencode.
|
|
460
|
+
antigravity: "antigravity",
|
|
444
461
|
// OpenRouter runs Claude Code under the hood, pointed at OpenRouter's hosted
|
|
445
462
|
// "Anthropic Skin" (https://openrouter.ai/api — native Anthropic Messages
|
|
446
463
|
// protocol) with the user's vaulted `sk-or-…` key as ANTHROPIC_AUTH_TOKEN,
|
|
@@ -467,7 +484,8 @@ var INTERNAL_TO_PUBLIC = {
|
|
|
467
484
|
coderabbit: "coderabbit",
|
|
468
485
|
gemini: "gemini",
|
|
469
486
|
kimi: "kimi",
|
|
470
|
-
opencode: "opencode"
|
|
487
|
+
opencode: "opencode",
|
|
488
|
+
antigravity: "antigravity"
|
|
471
489
|
};
|
|
472
490
|
function isPublicToInternalKey(v) {
|
|
473
491
|
return Object.prototype.hasOwnProperty.call(PUBLIC_TO_INTERNAL, v);
|
|
@@ -547,6 +565,14 @@ if ! command -v opencode >/dev/null 2>&1; then
|
|
|
547
565
|
echo 'export PATH="$HOME/.opencode/bin:$PATH"' >> ~/.bashrc
|
|
548
566
|
export PATH="$HOME/.opencode/bin:$PATH"
|
|
549
567
|
fi`;
|
|
568
|
+
var ANTIGRAVITY = `
|
|
569
|
+
if ! command -v agy >/dev/null 2>&1; then
|
|
570
|
+
curl -fsSL https://antigravity.google/cli/install.sh | bash \\
|
|
571
|
+
|| { echo '[codeam:step] antigravity_install_retry' >&2; sleep 2; curl -fsSL https://antigravity.google/cli/install.sh | bash; } \\
|
|
572
|
+
|| { echo '[ERROR] Antigravity CLI install failed (antigravity.google/cli/install.sh)' >&2; exit 1; }
|
|
573
|
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
|
|
574
|
+
export PATH="$HOME/.local/bin:$PATH"
|
|
575
|
+
fi`;
|
|
550
576
|
var AIDER = `
|
|
551
577
|
if ! command -v aider >/dev/null 2>&1; then
|
|
552
578
|
pip install --no-cache-dir --break-system-packages aider-chat \\
|
|
@@ -560,6 +586,7 @@ var INSTALL_SNIPPETS = Object.freeze({
|
|
|
560
586
|
kimi: KIMI,
|
|
561
587
|
cursor: CURSOR,
|
|
562
588
|
opencode: OPENCODE,
|
|
589
|
+
antigravity: ANTIGRAVITY,
|
|
563
590
|
aider: AIDER,
|
|
564
591
|
coderabbit: CODERABBIT
|
|
565
592
|
});
|