replicas-cli 0.3.558 → 0.3.562
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.cjs +280 -31
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -349,6 +349,8 @@ function getProviderDisplayName(provider2, variant = "short") {
|
|
|
349
349
|
return "Codex";
|
|
350
350
|
case "cursor":
|
|
351
351
|
return "Cursor";
|
|
352
|
+
case "gemini":
|
|
353
|
+
return "Gemini";
|
|
352
354
|
case "muse":
|
|
353
355
|
return variant === "long" ? "Muse Code" : "Muse";
|
|
354
356
|
case "opencode":
|
|
@@ -372,6 +374,7 @@ var init_agent = __esm({
|
|
|
372
374
|
CLAUDE: "claude",
|
|
373
375
|
CODEX: "codex",
|
|
374
376
|
CURSOR: "cursor",
|
|
377
|
+
GEMINI: "gemini",
|
|
375
378
|
MUSE: "muse",
|
|
376
379
|
OPENCODE: "opencode",
|
|
377
380
|
PI: "pi",
|
|
@@ -396,6 +399,11 @@ var init_agent = __esm({
|
|
|
396
399
|
label: "Cursor",
|
|
397
400
|
description: "Use Cursor for tasks"
|
|
398
401
|
},
|
|
402
|
+
{
|
|
403
|
+
value: "gemini",
|
|
404
|
+
label: "Gemini",
|
|
405
|
+
description: "Use Gemini through the Antigravity CLI for tasks"
|
|
406
|
+
},
|
|
399
407
|
{
|
|
400
408
|
value: "muse",
|
|
401
409
|
label: "Muse Code",
|
|
@@ -418,6 +426,7 @@ var init_agent = __esm({
|
|
|
418
426
|
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
419
427
|
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
420
428
|
cursor: STANDARD_THINKING_LEVELS,
|
|
429
|
+
gemini: STANDARD_THINKING_LEVELS,
|
|
421
430
|
muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
|
|
422
431
|
opencode: STANDARD_THINKING_LEVELS,
|
|
423
432
|
pi: STANDARD_THINKING_LEVELS,
|
|
@@ -20995,7 +21004,7 @@ var init_services = __esm({
|
|
|
20995
21004
|
"claude-foundry",
|
|
20996
21005
|
"codex-foundry"
|
|
20997
21006
|
];
|
|
20998
|
-
SUBSCRIPTION_CREDENTIAL_SERVICES = ["claude", "codex", "muse"];
|
|
21007
|
+
SUBSCRIPTION_CREDENTIAL_SERVICES = ["claude", "codex", "gemini", "muse"];
|
|
20999
21008
|
}
|
|
21000
21009
|
});
|
|
21001
21010
|
|
|
@@ -21044,7 +21053,8 @@ var init_agents = __esm({
|
|
|
21044
21053
|
OPENCODE_GO: "opencode-go",
|
|
21045
21054
|
ASTER: "aster",
|
|
21046
21055
|
OPENROUTER: "openrouter",
|
|
21047
|
-
MUSE_OAUTH: "muse-oauth"
|
|
21056
|
+
MUSE_OAUTH: "muse-oauth",
|
|
21057
|
+
GEMINI_OAUTH: "gemini-oauth"
|
|
21048
21058
|
};
|
|
21049
21059
|
CREDENTIAL_TYPE = {
|
|
21050
21060
|
CLAUDE_OAUTH: "claude",
|
|
@@ -21062,7 +21072,8 @@ var init_agents = __esm({
|
|
|
21062
21072
|
ASTER_API_KEY: "aster_api_key",
|
|
21063
21073
|
OPENROUTER_API_KEY: "openrouter_api_key",
|
|
21064
21074
|
MUSE_OAUTH: "muse_oauth",
|
|
21065
|
-
MUSE_API_KEY: "muse_api_key"
|
|
21075
|
+
MUSE_API_KEY: "muse_api_key",
|
|
21076
|
+
GEMINI_OAUTH: "gemini_oauth"
|
|
21066
21077
|
};
|
|
21067
21078
|
ENVIRONMENT_AUTH_REQUIRED_KEYS = {
|
|
21068
21079
|
[AGENT.CLAUDE]: [
|
|
@@ -21098,6 +21109,9 @@ var init_agents = __esm({
|
|
|
21098
21109
|
[AGENT.CURSOR]: [
|
|
21099
21110
|
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.CURSOR_API_KEY }
|
|
21100
21111
|
],
|
|
21112
|
+
[AGENT.GEMINI]: [
|
|
21113
|
+
{ method: CREDENTIAL_METHOD.GEMINI_OAUTH, credentialType: CREDENTIAL_TYPE.GEMINI_OAUTH }
|
|
21114
|
+
],
|
|
21101
21115
|
[AGENT.MUSE]: [
|
|
21102
21116
|
{ method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH },
|
|
21103
21117
|
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.MUSE_API_KEY }
|
|
@@ -21571,6 +21585,7 @@ var init_design_tokens = __esm({
|
|
|
21571
21585
|
replicas: { light: "#2f9d57", dark: "#3eeba3" },
|
|
21572
21586
|
claude: "#d97757",
|
|
21573
21587
|
codex: ["#b1a7ff", "#7a9dff", "#3941ff"],
|
|
21588
|
+
gemini: ["#4796e3", "#9177c7", "#ca6673"],
|
|
21574
21589
|
muse: "#0668e1",
|
|
21575
21590
|
opencode: ["#4b4646", "#f1ecec"],
|
|
21576
21591
|
slack: ["#e01e5a", "#36c5f0", "#2eb67d", "#ecb22e"],
|
|
@@ -21687,8 +21702,7 @@ var init_manager = __esm({
|
|
|
21687
21702
|
model: external_exports.string().nullable(),
|
|
21688
21703
|
thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable(),
|
|
21689
21704
|
service_tier: external_exports.enum(SUBAGENT_SERVICE_TIERS),
|
|
21690
|
-
goal_mode: external_exports.boolean()
|
|
21691
|
-
plan_mode: external_exports.boolean()
|
|
21705
|
+
goal_mode: external_exports.boolean()
|
|
21692
21706
|
});
|
|
21693
21707
|
QUEUE_SECTIONS = [
|
|
21694
21708
|
{ label: "Open PRs", groups: ["needs_you", "ready_to_merge", "ready_to_review"] },
|
|
@@ -22243,7 +22257,7 @@ function classifyCanvasFilename(filename) {
|
|
|
22243
22257
|
const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
|
|
22244
22258
|
return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
|
|
22245
22259
|
}
|
|
22246
|
-
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, versionChangeSchema, engineUpdateChangesSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_UPLOAD_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22260
|
+
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_GEMINI_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, versionChangeSchema, engineUpdateChangesSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_UPLOAD_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22247
22261
|
var init_types4 = __esm({
|
|
22248
22262
|
"../shared/src/engine/types.ts"() {
|
|
22249
22263
|
"use strict";
|
|
@@ -22281,6 +22295,7 @@ var init_types4 = __esm({
|
|
|
22281
22295
|
MUSE_WONDER_1_0_MODEL = "muse-wonder-1.0";
|
|
22282
22296
|
MUSE_SPARK_1_3_MODEL = "muse-spark-1.3";
|
|
22283
22297
|
DEFAULT_MUSE_MODEL = "muse-spark-1.2";
|
|
22298
|
+
DEFAULT_GEMINI_MODEL = "gemini-3.8-flash";
|
|
22284
22299
|
DEFAULT_OPENROUTER_MODELS = [
|
|
22285
22300
|
DEFAULT_OPENCODE_MODEL,
|
|
22286
22301
|
DEEPSEEK_V4_PRO_MODEL,
|
|
@@ -22374,6 +22389,21 @@ var init_types4 = __esm({
|
|
|
22374
22389
|
CLAUDE_HAIKU_4_5_MODEL,
|
|
22375
22390
|
"kimi-k2.5"
|
|
22376
22391
|
],
|
|
22392
|
+
// Every plan has Gemini 3.8 Flash; Google AI Pro and Ultra add the Gemini 4 and Claude 5.5 models (antigravity.google/pricing).
|
|
22393
|
+
gemini: [
|
|
22394
|
+
DEFAULT_GEMINI_MODEL,
|
|
22395
|
+
"gemini-4-neon",
|
|
22396
|
+
"gemini-4-carbon",
|
|
22397
|
+
"gemini-4-argon",
|
|
22398
|
+
"gemini-4-hydrogen",
|
|
22399
|
+
"gemini-pro-orchestrator-neon",
|
|
22400
|
+
"gemini-pro-orchestrator-g1-pro",
|
|
22401
|
+
CLAUDE_OPUS_5_5_MODEL,
|
|
22402
|
+
CLAUDE_SONNET_5_5_MODEL,
|
|
22403
|
+
"claude-opus-4-6-thinking",
|
|
22404
|
+
"claude-sonnet-4-6",
|
|
22405
|
+
"gpt-oss-120b-medium"
|
|
22406
|
+
],
|
|
22377
22407
|
muse: [MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
|
|
22378
22408
|
opencode: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
|
|
22379
22409
|
pi: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS]
|
|
@@ -22455,6 +22485,15 @@ var init_types4 = __esm({
|
|
|
22455
22485
|
"xiaomi/mimo-v2.5-pro": "MiMo V2.5 Pro via OpenRouter",
|
|
22456
22486
|
"moonshotai/kimi-k2.6": "Kimi K2.6 via OpenRouter",
|
|
22457
22487
|
"moonshotai/kimi-k3": "Kimi K3 via OpenRouter",
|
|
22488
|
+
"gemini-4-neon": "Gemini 4 Neon",
|
|
22489
|
+
"gemini-4-carbon": "Gemini 4 Carbon",
|
|
22490
|
+
"gemini-4-argon": "Gemini 4 Argon",
|
|
22491
|
+
"gemini-4-hydrogen": "Gemini 4 Hydrogen",
|
|
22492
|
+
"gemini-pro-orchestrator-neon": "Orchestrator (Neon)",
|
|
22493
|
+
"gemini-pro-orchestrator-g1-pro": "Orchestrator (Argon)",
|
|
22494
|
+
"claude-opus-4-6-thinking": "Claude Opus 4.6 (Thinking)",
|
|
22495
|
+
"claude-sonnet-4-6": "Claude Sonnet 4.6",
|
|
22496
|
+
"gpt-oss-120b-medium": "GPT-OSS 120B",
|
|
22458
22497
|
[MUSE_WONDER_1_0_MODEL]: "Muse Wonder 1.0",
|
|
22459
22498
|
[MUSE_SPARK_1_3_MODEL]: "Muse Spark 1.3",
|
|
22460
22499
|
[DEFAULT_MUSE_MODEL]: "Muse Spark 1.2",
|
|
@@ -22659,7 +22698,7 @@ var init_chat_fork = __esm({
|
|
|
22659
22698
|
});
|
|
22660
22699
|
|
|
22661
22700
|
// ../shared/src/credential-refresh.ts
|
|
22662
|
-
var restingCredentialsSchema, engineCredentialRefreshFailureSchema;
|
|
22701
|
+
var restingCredentialsSchema, agentLoginWithdrawalSchema, engineCredentialRefreshFailureSchema;
|
|
22663
22702
|
var init_credential_refresh = __esm({
|
|
22664
22703
|
"../shared/src/credential-refresh.ts"() {
|
|
22665
22704
|
"use strict";
|
|
@@ -22672,10 +22711,15 @@ var init_credential_refresh = __esm({
|
|
|
22672
22711
|
scope: external_exports.enum(CREDENTIAL_SCOPE).optional(),
|
|
22673
22712
|
resetsAt: external_exports.string()
|
|
22674
22713
|
});
|
|
22714
|
+
agentLoginWithdrawalSchema = external_exports.object({
|
|
22715
|
+
envKeys: external_exports.array(external_exports.string()),
|
|
22716
|
+
files: external_exports.array(external_exports.string())
|
|
22717
|
+
});
|
|
22675
22718
|
engineCredentialRefreshFailureSchema = external_exports.object({
|
|
22676
22719
|
code: external_exports.string(),
|
|
22677
22720
|
credential: workspaceCredentialSelectionSchema.optional(),
|
|
22678
|
-
resting: restingCredentialsSchema.optional()
|
|
22721
|
+
resting: restingCredentialsSchema.optional(),
|
|
22722
|
+
revoke: agentLoginWithdrawalSchema.optional()
|
|
22679
22723
|
});
|
|
22680
22724
|
}
|
|
22681
22725
|
});
|
|
@@ -22920,7 +22964,6 @@ var init_v1 = __esm({
|
|
|
22920
22964
|
provider: external_exports.enum(ENGINE_AGENT_PROVIDERS).optional(),
|
|
22921
22965
|
model: external_exports.string().optional(),
|
|
22922
22966
|
customInstructions: external_exports.string().optional(),
|
|
22923
|
-
planMode: external_exports.boolean().optional(),
|
|
22924
22967
|
images: external_exports.array(external_exports.object({
|
|
22925
22968
|
type: external_exports.literal("image"),
|
|
22926
22969
|
source: external_exports.discriminatedUnion("type", [
|
|
@@ -23010,6 +23053,11 @@ var init_provider_icons = __esm({
|
|
|
23010
23053
|
viewBox: "640 340 320 320",
|
|
23011
23054
|
paths: ["M920.015 424.958L805.919 359.086C802.256 356.97 797.735 356.97 794.071 359.086L679.981 424.958C676.901 426.736 675 430.025 675 433.587V566.419C675 569.981 676.901 573.269 679.981 575.048L794.077 640.92C797.74 643.036 802.261 643.036 805.925 640.92L920.02 575.048C923.1 573.269 925.001 569.981 925.001 566.419V433.587C925.001 430.025 923.1 426.736 920.02 424.958H920.015ZM912.848 438.911L802.706 629.682C801.961 630.968 799.995 630.443 799.995 628.954V504.039C799.995 501.543 798.662 499.234 796.498 497.981L688.321 435.526C687.036 434.781 687.561 432.816 689.05 432.816H909.334C912.462 432.816 914.417 436.206 912.853 438.917H912.848V438.911Z"]
|
|
23012
23055
|
},
|
|
23056
|
+
gemini: {
|
|
23057
|
+
viewBox: "0 0 24 24",
|
|
23058
|
+
paths: ["M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"],
|
|
23059
|
+
gradient: BRAND_COLORS.gemini
|
|
23060
|
+
},
|
|
23013
23061
|
muse: {
|
|
23014
23062
|
viewBox: "0 0 24 24",
|
|
23015
23063
|
paths: ["M3 4h4.5l4.5 7.2L16.5 4H21v16h-4V10.5l-5 7.5-5-7.5V20H3V4Z"],
|
|
@@ -27627,7 +27675,6 @@ var init_replicas_mcp = __esm({
|
|
|
27627
27675
|
`One or more triggers. Cron: \`{ "type": "cron", "config": { "schedule": "0 9 * * 1", "timezone": "America/New_York" } }\`. GitHub: \`{ "type": "github", "config": { "event": "pull_request.opened", "repository_ids": ["<repository uuid>"] } }\`. Linear: \`{ "type": "linear", "config": { "event": "${LINEAR_ISSUE_STATE_CHANGED_EVENT}", "state_types": ["completed"] } }\`.`
|
|
27628
27676
|
),
|
|
27629
27677
|
description: external_exports.string().optional().describe("One-line summary shown in the dashboard."),
|
|
27630
|
-
plan_mode: external_exports.boolean().optional(),
|
|
27631
27678
|
goal_mode: external_exports.boolean().optional(),
|
|
27632
27679
|
fast_mode: external_exports.boolean().optional(),
|
|
27633
27680
|
workspace_lifecycle_policy: external_exports.enum(AUTOMATION_LIFECYCLE_POLICIES).optional().describe(
|
|
@@ -38160,6 +38207,133 @@ var init_muse_parser = __esm({
|
|
|
38160
38207
|
}
|
|
38161
38208
|
});
|
|
38162
38209
|
|
|
38210
|
+
// ../shared/src/display-message/parsers/gemini-parser.ts
|
|
38211
|
+
function contentText(content) {
|
|
38212
|
+
if (!Array.isArray(content)) return "";
|
|
38213
|
+
return content.flatMap((entry) => isRecord(entry) && entry.type === "content" && isRecord(entry.content) && typeof entry.content.text === "string" ? [entry.content.text] : []).join("\n");
|
|
38214
|
+
}
|
|
38215
|
+
function commandLine(input2) {
|
|
38216
|
+
if (!isRecord(input2)) return void 0;
|
|
38217
|
+
const command = [input2.CommandLine, input2.commandLine, input2.command_line, input2.command].find((value) => typeof value === "string" && value);
|
|
38218
|
+
return typeof command === "string" ? command : void 0;
|
|
38219
|
+
}
|
|
38220
|
+
function parseGeminiEvents(events) {
|
|
38221
|
+
const messages = [];
|
|
38222
|
+
const activeChunks = {};
|
|
38223
|
+
const toolUpdates = /* @__PURE__ */ new Map();
|
|
38224
|
+
const inputState = { requests: /* @__PURE__ */ new Map(), resolutions: /* @__PURE__ */ new Map(), requestedAt: /* @__PURE__ */ new Map() };
|
|
38225
|
+
let chunkSequence = 0;
|
|
38226
|
+
for (const event of events) {
|
|
38227
|
+
const userContent = getUserMessage(event);
|
|
38228
|
+
if (userContent !== null) {
|
|
38229
|
+
activeChunks.agent_message_chunk = void 0;
|
|
38230
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
38231
|
+
if (userContent.trim()) messages.push({
|
|
38232
|
+
id: getUserMessageId(event) ?? `gemini-user-${event.timestamp}`,
|
|
38233
|
+
type: "user",
|
|
38234
|
+
content: userContent,
|
|
38235
|
+
timestamp: event.timestamp
|
|
38236
|
+
});
|
|
38237
|
+
continue;
|
|
38238
|
+
}
|
|
38239
|
+
if (event.type === "gemini-error") {
|
|
38240
|
+
messages.push({
|
|
38241
|
+
id: `gemini-error-${event.timestamp}`,
|
|
38242
|
+
type: "error",
|
|
38243
|
+
message: typeof event.payload.message === "string" ? event.payload.message : "Gemini failed",
|
|
38244
|
+
timestamp: event.timestamp
|
|
38245
|
+
});
|
|
38246
|
+
continue;
|
|
38247
|
+
}
|
|
38248
|
+
if (event.type === "gemini-turn-complete") {
|
|
38249
|
+
for (const message2 of messages) {
|
|
38250
|
+
if (message2.type === "reasoning" && message2.status === "in_progress") message2.status = "completed";
|
|
38251
|
+
}
|
|
38252
|
+
markTurnEnd(messages, event.timestamp);
|
|
38253
|
+
activeChunks.agent_message_chunk = void 0;
|
|
38254
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
38255
|
+
continue;
|
|
38256
|
+
}
|
|
38257
|
+
if (applyToolInputEvent(event, messages, "gemini", inputState, isToolInputQuestion)) continue;
|
|
38258
|
+
if (event.type !== "gemini-session-update" && event.type !== "gemini-chunk" || !isRecord(event.payload.update)) continue;
|
|
38259
|
+
const update = event.payload.update;
|
|
38260
|
+
const kind = update.sessionUpdate;
|
|
38261
|
+
if (kind === "agent_message_chunk" || kind === "agent_thought_chunk") {
|
|
38262
|
+
if (!isRecord(update.content) || update.content.type !== "text" || typeof update.content.text !== "string" || !update.content.text) continue;
|
|
38263
|
+
const explicitId = typeof update.messageId === "string" && update.messageId ? `gemini-${kind}-${update.messageId}` : null;
|
|
38264
|
+
const id = explicitId ?? activeChunks[kind] ?? `gemini-${kind}-${chunkSequence++}`;
|
|
38265
|
+
activeChunks[kind] = id;
|
|
38266
|
+
if (!explicitId) activeChunks[kind === "agent_message_chunk" ? "agent_thought_chunk" : "agent_message_chunk"] = void 0;
|
|
38267
|
+
const existing = messages.find((message2) => message2.id === id);
|
|
38268
|
+
const content = `${existing && "content" in existing && typeof existing.content === "string" ? existing.content : ""}${update.content.text}`;
|
|
38269
|
+
upsertDisplayMessage(messages, kind === "agent_thought_chunk" ? { id, type: "reasoning", content, status: "in_progress", timestamp: existing?.timestamp ?? event.timestamp } : { id, type: "agent", content, timestamp: existing?.timestamp ?? event.timestamp });
|
|
38270
|
+
continue;
|
|
38271
|
+
}
|
|
38272
|
+
activeChunks.agent_message_chunk = void 0;
|
|
38273
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
38274
|
+
if ((kind === "tool_call" || kind === "tool_call_update") && typeof update.toolCallId === "string") {
|
|
38275
|
+
const call = { ...toolUpdates.get(update.toolCallId), ...update };
|
|
38276
|
+
toolUpdates.set(update.toolCallId, call);
|
|
38277
|
+
const id = `gemini-tool-${update.toolCallId}`;
|
|
38278
|
+
const timestamp2 = messages.find((message2) => message2.id === id)?.timestamp ?? event.timestamp;
|
|
38279
|
+
const status = call.status === "failed" ? "failed" : call.status === "completed" ? "completed" : "in_progress";
|
|
38280
|
+
const output3 = contentText(call.content) || stringifyDisplayValue(call.rawOutput);
|
|
38281
|
+
const inputRequest = inputState.requests.get(update.toolCallId);
|
|
38282
|
+
const diffs = Array.isArray(call.content) ? call.content.filter((entry) => isRecord(entry) && entry.type === "diff" && typeof entry.path === "string") : [];
|
|
38283
|
+
const command = call.kind === "execute" ? commandLine(call.rawInput) ?? (typeof call.title === "string" ? call.title : void 0) : void 0;
|
|
38284
|
+
if (!inputRequest && command) {
|
|
38285
|
+
upsertDisplayMessage(messages, { id, type: "command", command, output: output3, status, timestamp: timestamp2 });
|
|
38286
|
+
} else if (!inputRequest && diffs.length > 0) {
|
|
38287
|
+
upsertDisplayMessage(messages, {
|
|
38288
|
+
id,
|
|
38289
|
+
type: "file_change",
|
|
38290
|
+
changes: diffs.map((diff) => ({
|
|
38291
|
+
path: diff.path,
|
|
38292
|
+
kind: diff.oldText === null || diff.oldText === void 0 ? "add" : diff.newText === "" && call.kind === "delete" ? "delete" : "update"
|
|
38293
|
+
})),
|
|
38294
|
+
status,
|
|
38295
|
+
timestamp: timestamp2
|
|
38296
|
+
});
|
|
38297
|
+
} else {
|
|
38298
|
+
upsertDisplayMessage(messages, createCallDisplayMessage({
|
|
38299
|
+
id,
|
|
38300
|
+
server: "gemini",
|
|
38301
|
+
tool: [call.title, call.name, call.kind].find((value) => typeof value === "string" && value.length > 0) ?? "tool",
|
|
38302
|
+
inputRequest,
|
|
38303
|
+
input: call.rawInput === void 0 ? void 0 : isRecord(call.rawInput) ? call.rawInput : stringifyDisplayValue(call.rawInput),
|
|
38304
|
+
output: output3,
|
|
38305
|
+
status,
|
|
38306
|
+
timestamp: timestamp2
|
|
38307
|
+
}));
|
|
38308
|
+
}
|
|
38309
|
+
continue;
|
|
38310
|
+
}
|
|
38311
|
+
if (kind === "plan" && Array.isArray(update.entries)) {
|
|
38312
|
+
const items = update.entries.flatMap((entry) => {
|
|
38313
|
+
if (!isRecord(entry) || typeof entry.content !== "string") return [];
|
|
38314
|
+
const itemStatus = entry.status === "completed" || entry.status === "in_progress" ? entry.status : "pending";
|
|
38315
|
+
return [{ text: entry.content, completed: itemStatus === "completed", itemStatus }];
|
|
38316
|
+
});
|
|
38317
|
+
upsertDisplayMessage(messages, {
|
|
38318
|
+
id: "gemini-plan",
|
|
38319
|
+
type: "todo_list",
|
|
38320
|
+
items,
|
|
38321
|
+
status: items.every((item) => item.completed) ? "completed" : "in_progress",
|
|
38322
|
+
timestamp: event.timestamp
|
|
38323
|
+
});
|
|
38324
|
+
}
|
|
38325
|
+
}
|
|
38326
|
+
return messages;
|
|
38327
|
+
}
|
|
38328
|
+
var init_gemini_parser = __esm({
|
|
38329
|
+
"../shared/src/display-message/parsers/gemini-parser.ts"() {
|
|
38330
|
+
"use strict";
|
|
38331
|
+
init_agent_event_utils();
|
|
38332
|
+
init_type_guards();
|
|
38333
|
+
init_utils();
|
|
38334
|
+
}
|
|
38335
|
+
});
|
|
38336
|
+
|
|
38163
38337
|
// ../shared/src/display-message/parsers/pi-parser.ts
|
|
38164
38338
|
function nestedPayload(event) {
|
|
38165
38339
|
return isRecord(event.payload.assistantMessageEvent) ? event.payload.assistantMessageEvent : event.payload;
|
|
@@ -39208,6 +39382,9 @@ function parseProviderEvents(events, agentType, parentToolUseId) {
|
|
|
39208
39382
|
if (agentType === "cursor") {
|
|
39209
39383
|
return parseCursorEvents(events);
|
|
39210
39384
|
}
|
|
39385
|
+
if (agentType === "gemini") {
|
|
39386
|
+
return parseGeminiEvents(events);
|
|
39387
|
+
}
|
|
39211
39388
|
if (agentType === "muse") {
|
|
39212
39389
|
return parseMuseEvents(events);
|
|
39213
39390
|
}
|
|
@@ -39408,6 +39585,7 @@ var init_parsers = __esm({
|
|
|
39408
39585
|
init_cursor_parser();
|
|
39409
39586
|
init_opencode_parser();
|
|
39410
39587
|
init_muse_parser();
|
|
39588
|
+
init_gemini_parser();
|
|
39411
39589
|
init_pi_parser();
|
|
39412
39590
|
init_replicas_parser();
|
|
39413
39591
|
init_claude_parser();
|
|
@@ -39858,12 +40036,6 @@ var init_slash_commands = __esm({
|
|
|
39858
40036
|
init_types4();
|
|
39859
40037
|
SIDE_CHAT_COMMANDS = ["/btw", "/side"];
|
|
39860
40038
|
SLASH_COMMANDS = [
|
|
39861
|
-
{
|
|
39862
|
-
command: "/plan",
|
|
39863
|
-
description: "Switch to plan mode and optionally send a prompt.",
|
|
39864
|
-
argumentHint: "[prompt]",
|
|
39865
|
-
providers: ["claude", "codex", "cursor", "muse", "opencode", "pi"]
|
|
39866
|
-
},
|
|
39867
40039
|
{
|
|
39868
40040
|
command: "/fast",
|
|
39869
40041
|
description: "Use the fast service tier for future turns.",
|
|
@@ -39981,7 +40153,6 @@ var init_keyboard_shortcuts = __esm({
|
|
|
39981
40153
|
send: { label: "Send", group: "Composer", keys: { key: "Enter" }, fixed: true },
|
|
39982
40154
|
sendAlternate: { label: "Queue or steer instead", group: "Composer", keys: { key: "Enter", alt: true }, fixed: true },
|
|
39983
40155
|
newLine: { label: "New line", group: "Composer", keys: { key: "Enter", shift: true }, fixed: true },
|
|
39984
|
-
toggleTaskMode: { label: "Switch Plan / Build", group: "Composer", keys: { key: "Tab", shift: true } },
|
|
39985
40156
|
toggleVoiceInput: { label: "Voice input", group: "Composer", keys: { key: " ", mod: true, shift: true } },
|
|
39986
40157
|
previousPrompt: { label: "Previous prompt", group: "Composer", keys: { key: "ArrowUp" }, fixed: true },
|
|
39987
40158
|
searchPromptHistory: { label: "Search prompt history", group: "Composer", keys: { key: "r", ctrl: true } },
|
|
@@ -40494,12 +40665,45 @@ var init_muse_auth = __esm({
|
|
|
40494
40665
|
}
|
|
40495
40666
|
});
|
|
40496
40667
|
|
|
40668
|
+
// ../shared/src/gemini-auth.ts
|
|
40669
|
+
function buildGeminiAuthorizationUrl(codeChallenge, state) {
|
|
40670
|
+
return `https://accounts.google.com/o/oauth2/auth?${new URLSearchParams({
|
|
40671
|
+
access_type: "offline",
|
|
40672
|
+
client_id: GEMINI_OAUTH_CLIENT_ID,
|
|
40673
|
+
code_challenge: codeChallenge,
|
|
40674
|
+
code_challenge_method: "S256",
|
|
40675
|
+
prompt: "consent",
|
|
40676
|
+
redirect_uri: GEMINI_OAUTH_REDIRECT_URI,
|
|
40677
|
+
response_type: "code",
|
|
40678
|
+
scope: [
|
|
40679
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
40680
|
+
"https://www.googleapis.com/auth/userinfo.email",
|
|
40681
|
+
"https://www.googleapis.com/auth/userinfo.profile",
|
|
40682
|
+
"https://www.googleapis.com/auth/cclog",
|
|
40683
|
+
"https://www.googleapis.com/auth/experimentsandconfigs",
|
|
40684
|
+
"https://www.googleapis.com/auth/aicode",
|
|
40685
|
+
"openid"
|
|
40686
|
+
].join(" "),
|
|
40687
|
+
state
|
|
40688
|
+
})}`;
|
|
40689
|
+
}
|
|
40690
|
+
var GEMINI_OAUTH_CLIENT_ID, GEMINI_OAUTH_REDIRECT_URI, geminiCredentialRequestSchema;
|
|
40691
|
+
var init_gemini_auth = __esm({
|
|
40692
|
+
"../shared/src/gemini-auth.ts"() {
|
|
40693
|
+
"use strict";
|
|
40694
|
+
init_zod();
|
|
40695
|
+
GEMINI_OAUTH_CLIENT_ID = "1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com";
|
|
40696
|
+
GEMINI_OAUTH_REDIRECT_URI = "https://antigravity.google/oauth-callback";
|
|
40697
|
+
geminiCredentialRequestSchema = external_exports.object({ code: external_exports.string(), code_verifier: external_exports.string() });
|
|
40698
|
+
}
|
|
40699
|
+
});
|
|
40700
|
+
|
|
40497
40701
|
// ../shared/src/cli-version.ts
|
|
40498
40702
|
var CLI_VERSION;
|
|
40499
40703
|
var init_cli_version = __esm({
|
|
40500
40704
|
"../shared/src/cli-version.ts"() {
|
|
40501
40705
|
"use strict";
|
|
40502
|
-
CLI_VERSION = "0.3.
|
|
40706
|
+
CLI_VERSION = "0.3.562";
|
|
40503
40707
|
}
|
|
40504
40708
|
});
|
|
40505
40709
|
|
|
@@ -40713,8 +40917,8 @@ var init_command_protection = __esm({
|
|
|
40713
40917
|
mergeInProgress: external_exports.boolean().optional()
|
|
40714
40918
|
});
|
|
40715
40919
|
commandProtectionEvaluateRequestSchema = external_exports.object({
|
|
40716
|
-
provider: external_exports.enum(["claude", "codex", "cursor", "opencode", "pi", "harness"]),
|
|
40717
|
-
source: external_exports.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call", "harness_tool_call"]),
|
|
40920
|
+
provider: external_exports.enum(["claude", "codex", "cursor", "gemini", "opencode", "pi", "harness"]),
|
|
40921
|
+
source: external_exports.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "gemini_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call", "harness_tool_call"]),
|
|
40718
40922
|
toolName: external_exports.string(),
|
|
40719
40923
|
toolInput: external_exports.unknown(),
|
|
40720
40924
|
command: external_exports.string().nullish(),
|
|
@@ -51550,6 +51754,7 @@ var init_src = __esm({
|
|
|
51550
51754
|
init_claude_auth();
|
|
51551
51755
|
init_codex_auth();
|
|
51552
51756
|
init_muse_auth();
|
|
51757
|
+
init_gemini_auth();
|
|
51553
51758
|
init_cli_version();
|
|
51554
51759
|
init_version();
|
|
51555
51760
|
init_environment_files();
|
|
@@ -53830,6 +54035,51 @@ var init_muse_auth2 = __esm({
|
|
|
53830
54035
|
}
|
|
53831
54036
|
});
|
|
53832
54037
|
|
|
54038
|
+
// src/lib/gemini-oauth.ts
|
|
54039
|
+
async function runGeminiOAuthFlow(totalSteps) {
|
|
54040
|
+
const pkce = generatePkceCodes();
|
|
54041
|
+
renderAuthFlowStep(1, totalSteps, "Sign in with the Google account that has your Antigravity plan");
|
|
54042
|
+
await openForApproval("accounts.google.com", buildGeminiAuthorizationUrl(pkce.codeChallenge, generateState2()));
|
|
54043
|
+
renderAuthFlowStep(2, totalSteps, "Paste the code Antigravity shows");
|
|
54044
|
+
const code = await promptForAuthorizationCode();
|
|
54045
|
+
if (!code) throw new Error("No authorization code provided.");
|
|
54046
|
+
return { code, codeVerifier: pkce.codeVerifier };
|
|
54047
|
+
}
|
|
54048
|
+
var init_gemini_oauth = __esm({
|
|
54049
|
+
"src/lib/gemini-oauth.ts"() {
|
|
54050
|
+
"use strict";
|
|
54051
|
+
init_src();
|
|
54052
|
+
init_pkce();
|
|
54053
|
+
init_claude_oauth();
|
|
54054
|
+
init_oauth_flow_ui();
|
|
54055
|
+
}
|
|
54056
|
+
});
|
|
54057
|
+
|
|
54058
|
+
// src/commands/gemini-auth.ts
|
|
54059
|
+
async function geminiAuthCommand(options = {}) {
|
|
54060
|
+
await runCredentialAuthFlow(options, {
|
|
54061
|
+
provider: "gemini",
|
|
54062
|
+
providerLabel: "Gemini",
|
|
54063
|
+
credentialLabel: "Gemini",
|
|
54064
|
+
connectorLabel: "OAuth",
|
|
54065
|
+
oauthSteps: 2,
|
|
54066
|
+
orgEndpoint: "/v1/gemini/credentials",
|
|
54067
|
+
userEndpoint: "/v1/gemini/user/credentials",
|
|
54068
|
+
runOAuth: async (steps, save) => {
|
|
54069
|
+
await openForApproval("Replicas", await save(await runGeminiOAuthFlow(steps)));
|
|
54070
|
+
},
|
|
54071
|
+
toRequestBody: (authorization) => ({ code: authorization.code, code_verifier: authorization.codeVerifier })
|
|
54072
|
+
});
|
|
54073
|
+
}
|
|
54074
|
+
var init_gemini_auth2 = __esm({
|
|
54075
|
+
"src/commands/gemini-auth.ts"() {
|
|
54076
|
+
"use strict";
|
|
54077
|
+
init_credential_upload();
|
|
54078
|
+
init_gemini_oauth();
|
|
54079
|
+
init_oauth_flow_ui();
|
|
54080
|
+
}
|
|
54081
|
+
});
|
|
54082
|
+
|
|
53833
54083
|
// src/commands/init.ts
|
|
53834
54084
|
function getDefaultConfig() {
|
|
53835
54085
|
return {
|
|
@@ -53912,7 +54162,7 @@ var init_subscription_usage = __esm({
|
|
|
53912
54162
|
function credentialsPath(service, { org: org2 }, writable = false) {
|
|
53913
54163
|
const services = writable ? API_KEY_CREDENTIAL_SERVICES : [...API_KEY_CREDENTIAL_SERVICES, ...SUBSCRIPTION_CREDENTIAL_SERVICES];
|
|
53914
54164
|
if (!services.includes(service)) {
|
|
53915
|
-
throw new Error(`Unknown service: ${service}. Use one of: ${services.join(", ")}${writable ? ". Subscriptions connect with replicas claude-auth, codex-auth, or muse-auth" : ""}`);
|
|
54165
|
+
throw new Error(`Unknown service: ${service}. Use one of: ${services.join(", ")}${writable ? ". Subscriptions connect with replicas claude-auth, codex-auth, gemini-auth, or muse-auth" : ""}`);
|
|
53916
54166
|
}
|
|
53917
54167
|
return `/v1/${service}/${org2 ? "" : "user/"}credentials`;
|
|
53918
54168
|
}
|
|
@@ -55115,7 +55365,6 @@ async function replicaSendCommand(id, options) {
|
|
|
55115
55365
|
chat_id: options.chat,
|
|
55116
55366
|
model: options.model,
|
|
55117
55367
|
thinking_level: options.thinkingLevel,
|
|
55118
|
-
plan_mode: options.plan,
|
|
55119
55368
|
goal_mode: options.goal,
|
|
55120
55369
|
fast_mode: options.fast,
|
|
55121
55370
|
...options.reply ? {} : { expect_reply: false }
|
|
@@ -55878,7 +56127,6 @@ function formatAgentSummary(automation2) {
|
|
|
55878
56127
|
}
|
|
55879
56128
|
function formatModeSummary(automation2) {
|
|
55880
56129
|
const modes = [
|
|
55881
|
-
automation2.plan_mode ? "plan" : null,
|
|
55882
56130
|
automation2.goal_mode ? "goal" : null,
|
|
55883
56131
|
automation2.fast_mode ? "fast" : null
|
|
55884
56132
|
].filter(Boolean);
|
|
@@ -55921,7 +56169,7 @@ function printAutomation(automation2) {
|
|
|
55921
56169
|
if (automation2.agent_provider || automation2.model || automation2.thinking_level) {
|
|
55922
56170
|
console.log(import_chalk27.default.gray(` Agent: ${formatAgentSummary(automation2)}`));
|
|
55923
56171
|
}
|
|
55924
|
-
if (automation2.
|
|
56172
|
+
if (automation2.goal_mode || automation2.fast_mode) {
|
|
55925
56173
|
console.log(import_chalk27.default.gray(` Modes: ${formatModeSummary(automation2)}`));
|
|
55926
56174
|
}
|
|
55927
56175
|
console.log(import_chalk27.default.gray(` PR Follow-ups: ${automation2.config.capabilities?.pr_followups === true ? import_chalk27.default.green("managed") : "read-only"}`));
|
|
@@ -56260,7 +56508,6 @@ async function automationCreateCommand(name, options) {
|
|
|
56260
56508
|
...lifecyclePolicy ? { workspace_lifecycle_policy: lifecyclePolicy } : {},
|
|
56261
56509
|
...workspaceSize ? { workspace_size: workspaceSize } : {},
|
|
56262
56510
|
...options.autoStopMinutes ? { workspace_auto_stop_minutes: parseInt(options.autoStopMinutes, 10) } : {},
|
|
56263
|
-
...options.planMode ? { plan_mode: true } : {},
|
|
56264
56511
|
...options.goalMode ? { goal_mode: true } : {},
|
|
56265
56512
|
...options.fastMode ? { fast_mode: true } : {},
|
|
56266
56513
|
...agentSelection
|
|
@@ -56317,7 +56564,7 @@ async function automationEditCommand(id, options) {
|
|
|
56317
56564
|
model: existing.automation.model
|
|
56318
56565
|
});
|
|
56319
56566
|
const body2 = {};
|
|
56320
|
-
const hasOptions = options.name || options.prompt || options.description !== void 0 || workspaceSize || options.enabled !== void 0 || options.prFollowups !== void 0 || replacingTriggers || options.environment || options.triggerGithubExcludeUsers !== void 0 || options.triggerGitlabExcludeUsers !== void 0 || options.githubChecks !== void 0 || options.addGithubChecks !== void 0 || options.lifecycle || options.sleepWhenDone || options.autoStopMinutes || options.agentProvider !== void 0 || options.model !== void 0 || options.thinkingLevel !== void 0 || options.
|
|
56567
|
+
const hasOptions = options.name || options.prompt || options.description !== void 0 || workspaceSize || options.enabled !== void 0 || options.prFollowups !== void 0 || replacingTriggers || options.environment || options.triggerGithubExcludeUsers !== void 0 || options.triggerGitlabExcludeUsers !== void 0 || options.githubChecks !== void 0 || options.addGithubChecks !== void 0 || options.lifecycle || options.sleepWhenDone || options.autoStopMinutes || options.agentProvider !== void 0 || options.model !== void 0 || options.thinkingLevel !== void 0 || options.goalMode !== void 0 || options.fastMode !== void 0 || runAt !== void 0 || maxRuns !== void 0 || workspaceTarget !== void 0 || options.background !== void 0 || options.credentials !== void 0 || options.moveToOrg;
|
|
56321
56568
|
if (!hasOptions) {
|
|
56322
56569
|
const nameResponse = await ask({
|
|
56323
56570
|
type: "text",
|
|
@@ -56429,7 +56676,6 @@ async function automationEditCommand(id, options) {
|
|
|
56429
56676
|
if (options.autoStopMinutes) {
|
|
56430
56677
|
body2.workspace_auto_stop_minutes = parseInt(options.autoStopMinutes, 10);
|
|
56431
56678
|
}
|
|
56432
|
-
if (options.planMode !== void 0) body2.plan_mode = options.planMode;
|
|
56433
56679
|
if (options.goalMode !== void 0) body2.goal_mode = options.goalMode;
|
|
56434
56680
|
if (options.fastMode !== void 0) body2.fast_mode = options.fastMode;
|
|
56435
56681
|
if (maxRuns !== void 0) body2.max_runs = maxRuns;
|
|
@@ -58526,6 +58772,7 @@ var init_src2 = __esm({
|
|
|
58526
58772
|
init_codex_auth2();
|
|
58527
58773
|
init_claude_auth2();
|
|
58528
58774
|
init_muse_auth2();
|
|
58775
|
+
init_gemini_auth2();
|
|
58529
58776
|
init_init();
|
|
58530
58777
|
init_credentials2();
|
|
58531
58778
|
init_version_check();
|
|
@@ -58569,6 +58816,7 @@ var init_src2 = __esm({
|
|
|
58569
58816
|
"claude-auth",
|
|
58570
58817
|
"codex-auth",
|
|
58571
58818
|
"muse-auth",
|
|
58819
|
+
"gemini-auth",
|
|
58572
58820
|
"config",
|
|
58573
58821
|
"device",
|
|
58574
58822
|
"init",
|
|
@@ -58604,6 +58852,7 @@ var init_src2 = __esm({
|
|
|
58604
58852
|
program.command("init").description("Create a replicas.json or replicas.yaml configuration file").option("-f, --force", "Overwrite existing config file").option("-y, --yaml", "Create replicas.yaml instead of replicas.json").action(run(initCommand));
|
|
58605
58853
|
program.command("logout").description("Clear stored credentials").action(run(logoutCommand));
|
|
58606
58854
|
program.command("muse-auth").description("Connect your Muse Code subscription to Replicas (personal by default)").option("-u, --user", "Store credentials for your personal account (default)").option("-o, --org", "Share credentials with the whole organization (admins only)").option("-y, --yes", "Skip the destination confirmation prompt").action(run(museAuthCommand));
|
|
58855
|
+
program.command("gemini-auth").description("Connect the Google account with your Antigravity plan to Replicas for Gemini (personal by default)").option("-u, --user", "Store credentials for your personal account (default)").option("-o, --org", "Share credentials with the whole organization (admins only)").option("-y, --yes", "Skip the destination confirmation prompt").action(run(geminiAuthCommand));
|
|
58607
58856
|
program.command("whoami").description("Display current authenticated user").action(run(whoamiCommand));
|
|
58608
58857
|
program.command("codex-auth").description("Connect your Codex credentials to Replicas (personal by default)").option("-u, --user", "Store credentials for your personal account (default)").option("-o, --org", "Share credentials with the whole organization (admins only)").option("-y, --yes", "Skip the destination confirmation prompt").action(run(codexAuthCommand));
|
|
58609
58858
|
program.command("claude-auth").description("Connect your Claude Code credentials to Replicas (personal by default)").option("-u, --user", "Store credentials for your personal account (default)").option("-o, --org", "Share credentials with the whole organization (admins only)").option("-y, --yes", "Skip the destination confirmation prompt").action(run(claudeAuthCommand));
|
|
@@ -58624,7 +58873,7 @@ var init_src2 = __esm({
|
|
|
58624
58873
|
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").addOption(new import_commander.Option("-k, --kind <kind>", "Only list replicas of this kind").choices(WORKSPACE_KINDS)).action(run(replicaListCommand));
|
|
58625
58874
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
58626
58875
|
program.command("create [name]").description("Create a new replica (quote names with spaces)").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
58627
|
-
program.command("send <id>").description("Send a message to a replica").option("-m, --message <message>", "Message to send").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").option("-c, --chat <chatId>", "Chat to send to (defaults to the main chat)").option("--model <model>", "Model to use for this message").addOption(new import_commander.Option("--thinking-level <level>", "Thinking/reasoning level").choices(VALID_THINKING_LEVELS)).option("--
|
|
58876
|
+
program.command("send <id>").description("Send a message to a replica").option("-m, --message <message>", "Message to send").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").option("-c, --chat <chatId>", "Chat to send to (defaults to the main chat)").option("--model <model>", "Model to use for this message").addOption(new import_commander.Option("--thinking-level <level>", "Thinking/reasoning level").choices(VALID_THINKING_LEVELS)).option("--goal", "Set the message as the chat goal").option("--fast", "Run the message in fast mode").option("--no-reply", "From a workspace: don't return the recipient's reply to this chat").action(run(replicaSendCommand));
|
|
58628
58877
|
program.command("delete <id>").description("Delete a replica").option("-f, --force", "Skip confirmation prompt").action(run(replicaDeleteCommand));
|
|
58629
58878
|
program.command("read <id>").description("Read conversation history of a replica").option("-l, --limit <limit>", "Maximum number of events to return, from the end").option("--before <cursor>", "Read the page before this cursor (see Has More output)").option("-b, --before-event <index>", "Read the page before this event index (older engines)").option("-c, --chat <chatId>", "Chat to read (defaults to the main chat)").action(run(replicaReadCommand));
|
|
58630
58879
|
program.command("rename <id> <name>").description("Rename a replica (quote names with spaces)").action(run(workspaceRenameCommand));
|
|
@@ -58676,13 +58925,13 @@ var init_src2 = __esm({
|
|
|
58676
58925
|
credentials.command("list <agent>").description("List connected credentials for an agent (claude, codex, cursor, ...) and which one new workspaces use").action(run(credentialsListCommand));
|
|
58677
58926
|
credentials.command("get <service>").description("Show stored credentials for a service (secrets masked for API keys)").option("-o, --org", "Organization credentials instead of personal").action(run(credentialsGetCommand));
|
|
58678
58927
|
credentials.command("set <service>").description(`Store credentials. The API key (AWS secret for bedrock) is prompted for, or read from stdin. Services: ${API_KEY_CREDENTIAL_SERVICES.join(", ")}`).option("-o, --org", "Organization credentials (admins only)").option("--base-url <url>", "Base URL (ollama, anthropic-compatible, openai-compatible, codex-foundry)").option("--models <ids>", "Comma-separated model IDs (ollama)").option("--models-url <url>", "Models endpoint (openai-compatible)").option("--authorization-header <value>", "Authorization header value (openai-compatible)").option("--preserve-authorization-header", "Forward the authorization header unchanged (openai-compatible)").option("--aws-access-key-id <id>", "AWS access key ID (bedrock)").option("--aws-region <region>", "AWS region (bedrock)").option("--small-fast-model-region <region>", "Region for the small fast model (bedrock)").option("--resource <name>", "Azure Foundry resource (claude-foundry)").option("--sonnet-model <id>", "Sonnet deployment (claude-foundry)").option("--haiku-model <id>", "Haiku deployment (claude-foundry)").option("--opus-model <id>", "Opus deployment (claude-foundry)").option("--model <id>", "Model deployment (codex-foundry)").action(run(credentialsSetCommand));
|
|
58679
|
-
credentials.command("remove <service>").description("Remove stored credentials for a service (also claude, codex, muse subscriptions)").option("-o, --org", "Organization credentials instead of personal").action(run(credentialsRemoveCommand));
|
|
58928
|
+
credentials.command("remove <service>").description("Remove stored credentials for a service (also claude, codex, gemini, muse subscriptions)").option("-o, --org", "Organization credentials instead of personal").action(run(credentialsRemoveCommand));
|
|
58680
58929
|
credentials.command("usage").description("Show how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used (personal and organization by default)").addOption(new import_commander.Option("-o, --org", "Only organization subscriptions").conflicts("user")).option("-u, --user", "Only your personal subscriptions").action(run(credentialsUsageCommand));
|
|
58681
58930
|
automation = program.command("automation").alias("auto").description("Manage automations");
|
|
58682
58931
|
automation.command("list").description("List all automations").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").option("--owner <owner>", "Ownership filter: org, user, all").option("--trigger-type <type>", "Only automations with a trigger of this type (cron, github, gitlab, slack, sentry, linear, custom)").option("--enabled <enabled>", "Only enabled or disabled automations (true/false)").option("--search <search>", "Case-insensitive substring match on the name").option("--background <background>", "Only background (true) or main-list (false) automations").action(run(automationListCommand));
|
|
58683
58932
|
automation.command("get <id>").description("Get automation details by ID").action(run(automationGetCommand));
|
|
58684
|
-
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-d, --description <description>", "Description shown with the automation").option("-e, --environment <environment>", "Environment name or ID").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra, auto (default)").option("--trigger-cron <schedule>", 'Cron schedule expression, e.g. "0 9 * * 1-5" (repeatable)', collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules (default: UTC)").option("--trigger-github <event>", 'GitHub event, e.g. "pull_request.opened" (repeatable)', collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", 'GitLab event, e.g. "merge_request.opened" (repeatable)', collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups", "Allow follow-up actions on matching PRs").option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--
|
|
58685
|
-
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-d, --description <description>", "New description (pass empty string to clear)").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra, auto").option("--enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules").option("--trigger-github <event>", "Set GitHub event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", "Set GitLab event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--keep-triggers", "Add the --trigger-cron, --trigger-github, --trigger-gitlab, --in or --at triggers to the existing ones instead of replacing them").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (replaces the current list; pass empty string to remove them)").option("--add-github-checks <names>", "Comma-separated GitHub check names to add, keeping the ones already configured").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups <enabled>", "Allow follow-up actions on matching PRs (true/false)", parseBooleanOption).option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--
|
|
58933
|
+
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-d, --description <description>", "Description shown with the automation").option("-e, --environment <environment>", "Environment name or ID").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra, auto (default)").option("--trigger-cron <schedule>", 'Cron schedule expression, e.g. "0 9 * * 1-5" (repeatable)', collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules (default: UTC)").option("--trigger-github <event>", 'GitHub event, e.g. "pull_request.opened" (repeatable)', collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", 'GitLab event, e.g. "merge_request.opened" (repeatable)', collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups", "Allow follow-up actions on matching PRs").option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--goal-mode", "Set automation messages as goals").option("--fast-mode", "Run automation messages in fast mode").option("--personal", "Create a personal automation owned by the authenticated user").option("--in <duration>", "Run once after this long, e.g. 30m, 2h, 3d, 1w (inside a workspace, defaults --workspace to current)").option("--at <datetime>", "Run once at this ISO-8601 time with timezone, e.g. 2026-10-08T09:00:00-07:00").option("--max-runs <n>", 'Delete the automation after this many runs ("none" for unlimited)').option("--workspace <target>", "Where runs go: new (default, new workspace each run), reuse (one workspace for every run), current (this workspace), or a workspace ID").option("--background", "Mark this as an AI agent's own automation (a reminder, follow-up or recurring check-in for its task). Kept out of the main automations list").option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email (organization automations only)").option("--disabled", "Create in disabled state").action(run((name, options) => automationCreateCommand(name, { ...options, enabled: !options.disabled })));
|
|
58934
|
+
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-d, --description <description>", "New description (pass empty string to clear)").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra, auto").option("--enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules").option("--trigger-github <event>", "Set GitHub event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", "Set GitLab event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--keep-triggers", "Add the --trigger-cron, --trigger-github, --trigger-gitlab, --in or --at triggers to the existing ones instead of replacing them").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (replaces the current list; pass empty string to remove them)").option("--add-github-checks <names>", "Comma-separated GitHub check names to add, keeping the ones already configured").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups <enabled>", "Allow follow-up actions on matching PRs (true/false)", parseBooleanOption).option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--goal-mode <enabled>", "Set automation messages as goals (true/false)", parseBooleanOption).option("--fast-mode <enabled>", "Run automation messages in fast mode (true/false)", parseBooleanOption).option("--in <duration>", "Replace triggers with a one-time run after this long, e.g. 30m, 2h, 3d, 1w").option("--at <datetime>", "Replace triggers with a one-time run at this ISO-8601 time with timezone").option("--max-runs <n>", 'Delete the automation after this many runs in total ("none" for unlimited)').option("--workspace <target>", "Where runs go: new, reuse, current, or a workspace ID").option("--background <enabled>", "Keep it out of the main automations list (true/false)", parseBooleanOption).option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email, or org to use the organization's").option("--move-to-org", "Move a personal automation to the organization so teammates can see and edit it (cannot be undone)").action(run(automationEditCommand));
|
|
58686
58935
|
automation.command("run <id>").description("Manually trigger an automation (cron-triggered automations only)").action(run(automationRunCommand));
|
|
58687
58936
|
automation.command("delete <id>").description("Delete an automation").option("-f, --force", "Skip confirmation prompt").action(run(automationDeleteCommand));
|
|
58688
58937
|
automation.command("check <checkRunId>").description("Report this automation run's verdict on one of its GitHub checks").requiredOption("--token <token>", "Ownership token for this check, exactly as given in the prompt").requiredOption("--conclusion <conclusion>", "success or failure").requiredOption("--title <title>", "One-line verdict shown on the check").option("--summary <summary>", "What was checked and why it passed or failed").action(run(automationCheckCommand));
|