replicas-engine 0.1.1725 → 0.1.1727
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/src/{asp-host-7DGBCD52.js → asp-host-TWRX3YXW.js} +6 -6
- package/dist/src/{chunk-UDR2HT74.js → chunk-2X4SV2H7.js} +2 -2
- package/dist/src/{chunk-LIXZEE44.js → chunk-F2YDU3AP.js} +3 -3
- package/dist/src/{chunk-YNHFXBHT.js → chunk-GBVHK7GR.js} +416 -227
- package/dist/src/{chunk-ESENYL7M.js → chunk-LWHGKKNM.js} +1 -1
- package/dist/src/{chunk-DHAQM6LA.js → chunk-M6ELG3GK.js} +1 -1
- package/dist/src/{chunk-APCSKPLU.js → chunk-NTSUADYM.js} +1 -1
- package/dist/src/{chunk-3SJP6X3P.js → chunk-OAFO4KYM.js} +86 -43
- package/dist/src/{chunk-ZYRAETMX.js → chunk-OY6X5AUJ.js} +2 -2
- package/dist/src/{chunk-4YQ4UWFY.js → chunk-QN5PAZSN.js} +65 -8
- package/dist/src/{chunk-7ZDAVYTV.js → chunk-XCFPXSY4.js} +4 -0
- package/dist/src/{chunk-EZWCNWX2.js → chunk-YKUHRKKX.js} +2 -2
- package/dist/src/codemode-mcp.js +4 -4
- package/dist/src/command-protection-hook.js +17 -6
- package/dist/src/headless-agent.js +48 -5
- package/dist/src/index.js +620 -157
- package/dist/src/post-tool-pr-hook.js +4 -3
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -1116,17 +1116,17 @@ var require_luxon = __commonJS({
|
|
|
1116
1116
|
constructor(dt, intl, opts) {
|
|
1117
1117
|
this.opts = opts;
|
|
1118
1118
|
this.originalZone = void 0;
|
|
1119
|
-
let
|
|
1119
|
+
let z48 = void 0;
|
|
1120
1120
|
if (this.opts.timeZone) {
|
|
1121
1121
|
this.dt = dt;
|
|
1122
1122
|
} else if (dt.zone.type === "fixed") {
|
|
1123
1123
|
const gmtOffset = -1 * (dt.offset / 60);
|
|
1124
1124
|
const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;
|
|
1125
1125
|
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
1126
|
-
|
|
1126
|
+
z48 = offsetZ;
|
|
1127
1127
|
this.dt = dt;
|
|
1128
1128
|
} else {
|
|
1129
|
-
|
|
1129
|
+
z48 = "UTC";
|
|
1130
1130
|
this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({
|
|
1131
1131
|
minutes: dt.offset
|
|
1132
1132
|
});
|
|
@@ -1136,9 +1136,9 @@ var require_luxon = __commonJS({
|
|
|
1136
1136
|
this.dt = dt;
|
|
1137
1137
|
} else if (dt.zone.type === "iana") {
|
|
1138
1138
|
this.dt = dt;
|
|
1139
|
-
|
|
1139
|
+
z48 = dt.zone.name;
|
|
1140
1140
|
} else {
|
|
1141
|
-
|
|
1141
|
+
z48 = "UTC";
|
|
1142
1142
|
this.dt = dt.setZone("UTC").plus({
|
|
1143
1143
|
minutes: dt.offset
|
|
1144
1144
|
});
|
|
@@ -1147,7 +1147,7 @@ var require_luxon = __commonJS({
|
|
|
1147
1147
|
const intlOpts = {
|
|
1148
1148
|
...this.opts
|
|
1149
1149
|
};
|
|
1150
|
-
intlOpts.timeZone = intlOpts.timeZone ||
|
|
1150
|
+
intlOpts.timeZone = intlOpts.timeZone || z48;
|
|
1151
1151
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
1152
1152
|
}
|
|
1153
1153
|
format() {
|
|
@@ -9212,6 +9212,7 @@ var AGENT = {
|
|
|
9212
9212
|
CLAUDE: "claude",
|
|
9213
9213
|
CODEX: "codex",
|
|
9214
9214
|
CURSOR: "cursor",
|
|
9215
|
+
GEMINI: "gemini",
|
|
9215
9216
|
MUSE: "muse",
|
|
9216
9217
|
OPENCODE: "opencode",
|
|
9217
9218
|
PI: "pi",
|
|
@@ -9232,6 +9233,7 @@ var THINKING_LEVELS_BY_AGENT = {
|
|
|
9232
9233
|
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
9233
9234
|
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
9234
9235
|
cursor: STANDARD_THINKING_LEVELS,
|
|
9236
|
+
gemini: STANDARD_THINKING_LEVELS,
|
|
9235
9237
|
muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
|
|
9236
9238
|
opencode: STANDARD_THINKING_LEVELS,
|
|
9237
9239
|
pi: STANDARD_THINKING_LEVELS,
|
|
@@ -9258,6 +9260,8 @@ function getProviderDisplayName(provider2, variant = "short") {
|
|
|
9258
9260
|
return "Codex";
|
|
9259
9261
|
case "cursor":
|
|
9260
9262
|
return "Cursor";
|
|
9263
|
+
case "gemini":
|
|
9264
|
+
return "Gemini";
|
|
9261
9265
|
case "muse":
|
|
9262
9266
|
return variant === "long" ? "Muse Code" : "Muse";
|
|
9263
9267
|
case "opencode":
|
|
@@ -9601,6 +9605,7 @@ var BRAND_COLORS = {
|
|
|
9601
9605
|
replicas: { light: "#2f9d57", dark: "#3eeba3" },
|
|
9602
9606
|
claude: "#d97757",
|
|
9603
9607
|
codex: ["#b1a7ff", "#7a9dff", "#3941ff"],
|
|
9608
|
+
gemini: ["#4796e3", "#9177c7", "#ca6673"],
|
|
9604
9609
|
muse: "#0668e1",
|
|
9605
9610
|
opencode: ["#4b4646", "#f1ecec"],
|
|
9606
9611
|
slack: ["#e01e5a", "#36c5f0", "#2eb67d", "#ecb22e"],
|
|
@@ -10062,6 +10067,7 @@ var DEFAULT_CHAT_TITLES = {
|
|
|
10062
10067
|
claude: "Claude Code",
|
|
10063
10068
|
codex: "Codex",
|
|
10064
10069
|
cursor: "Cursor",
|
|
10070
|
+
gemini: "Gemini",
|
|
10065
10071
|
muse: "Muse Code",
|
|
10066
10072
|
opencode: "Opencode",
|
|
10067
10073
|
pi: "Pi",
|
|
@@ -10103,6 +10109,7 @@ var MUSE_WONDER_1_0_MODEL = "muse-wonder-1.0";
|
|
|
10103
10109
|
var MUSE_SPARK_1_3_MODEL = "muse-spark-1.3";
|
|
10104
10110
|
var DEFAULT_MUSE_MODEL = "muse-spark-1.2";
|
|
10105
10111
|
var DEFAULT_PI_MODEL = DEFAULT_OPENCODE_MODEL;
|
|
10112
|
+
var DEFAULT_GEMINI_MODEL = "gemini-3.8-flash";
|
|
10106
10113
|
var DEFAULT_OPENROUTER_MODELS = [
|
|
10107
10114
|
DEFAULT_OPENCODE_MODEL,
|
|
10108
10115
|
DEEPSEEK_V4_PRO_MODEL,
|
|
@@ -10120,6 +10127,7 @@ var FALLBACK_AGENT_MODEL = {
|
|
|
10120
10127
|
claude: DEFAULT_CLAUDE_MODEL,
|
|
10121
10128
|
codex: DEFAULT_CODEX_MODEL,
|
|
10122
10129
|
cursor: DEFAULT_CURSOR_MODEL,
|
|
10130
|
+
gemini: DEFAULT_GEMINI_MODEL,
|
|
10123
10131
|
muse: DEFAULT_MUSE_MODEL,
|
|
10124
10132
|
opencode: DEFAULT_OPENCODE_MODEL,
|
|
10125
10133
|
pi: DEFAULT_PI_MODEL,
|
|
@@ -10238,6 +10246,21 @@ var AGENT_MODELS = {
|
|
|
10238
10246
|
CLAUDE_HAIKU_4_5_MODEL,
|
|
10239
10247
|
"kimi-k2.5"
|
|
10240
10248
|
],
|
|
10249
|
+
// Every plan has Gemini 3.8 Flash; Google AI Pro and Ultra add the Gemini 4 and Claude 5.5 models (antigravity.google/pricing).
|
|
10250
|
+
gemini: [
|
|
10251
|
+
DEFAULT_GEMINI_MODEL,
|
|
10252
|
+
"gemini-4-neon",
|
|
10253
|
+
"gemini-4-carbon",
|
|
10254
|
+
"gemini-4-argon",
|
|
10255
|
+
"gemini-4-hydrogen",
|
|
10256
|
+
"gemini-pro-orchestrator-neon",
|
|
10257
|
+
"gemini-pro-orchestrator-g1-pro",
|
|
10258
|
+
CLAUDE_OPUS_5_5_MODEL,
|
|
10259
|
+
CLAUDE_SONNET_5_5_MODEL,
|
|
10260
|
+
"claude-opus-4-6-thinking",
|
|
10261
|
+
"claude-sonnet-4-6",
|
|
10262
|
+
"gpt-oss-120b-medium"
|
|
10263
|
+
],
|
|
10241
10264
|
muse: [MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
|
|
10242
10265
|
opencode: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
|
|
10243
10266
|
pi: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS]
|
|
@@ -10326,6 +10349,15 @@ var MODEL_LABELS = {
|
|
|
10326
10349
|
"xiaomi/mimo-v2.5-pro": "MiMo V2.5 Pro via OpenRouter",
|
|
10327
10350
|
"moonshotai/kimi-k2.6": "Kimi K2.6 via OpenRouter",
|
|
10328
10351
|
"moonshotai/kimi-k3": "Kimi K3 via OpenRouter",
|
|
10352
|
+
"gemini-4-neon": "Gemini 4 Neon",
|
|
10353
|
+
"gemini-4-carbon": "Gemini 4 Carbon",
|
|
10354
|
+
"gemini-4-argon": "Gemini 4 Argon",
|
|
10355
|
+
"gemini-4-hydrogen": "Gemini 4 Hydrogen",
|
|
10356
|
+
"gemini-pro-orchestrator-neon": "Orchestrator (Neon)",
|
|
10357
|
+
"gemini-pro-orchestrator-g1-pro": "Orchestrator (Argon)",
|
|
10358
|
+
"claude-opus-4-6-thinking": "Claude Opus 4.6 (Thinking)",
|
|
10359
|
+
"claude-sonnet-4-6": "Claude Sonnet 4.6",
|
|
10360
|
+
"gpt-oss-120b-medium": "GPT-OSS 120B",
|
|
10329
10361
|
[MUSE_WONDER_1_0_MODEL]: "Muse Wonder 1.0",
|
|
10330
10362
|
[MUSE_SPARK_1_3_MODEL]: "Muse Spark 1.3",
|
|
10331
10363
|
[DEFAULT_MUSE_MODEL]: "Muse Spark 1.2",
|
|
@@ -10750,7 +10782,8 @@ var CREDENTIAL_METHOD = {
|
|
|
10750
10782
|
OPENCODE_GO: "opencode-go",
|
|
10751
10783
|
ASTER: "aster",
|
|
10752
10784
|
OPENROUTER: "openrouter",
|
|
10753
|
-
MUSE_OAUTH: "muse-oauth"
|
|
10785
|
+
MUSE_OAUTH: "muse-oauth",
|
|
10786
|
+
GEMINI_OAUTH: "gemini-oauth"
|
|
10754
10787
|
};
|
|
10755
10788
|
var CREDENTIAL_TYPE = {
|
|
10756
10789
|
CLAUDE_OAUTH: "claude",
|
|
@@ -10768,7 +10801,8 @@ var CREDENTIAL_TYPE = {
|
|
|
10768
10801
|
ASTER_API_KEY: "aster_api_key",
|
|
10769
10802
|
OPENROUTER_API_KEY: "openrouter_api_key",
|
|
10770
10803
|
MUSE_OAUTH: "muse_oauth",
|
|
10771
|
-
MUSE_API_KEY: "muse_api_key"
|
|
10804
|
+
MUSE_API_KEY: "muse_api_key",
|
|
10805
|
+
GEMINI_OAUTH: "gemini_oauth"
|
|
10772
10806
|
};
|
|
10773
10807
|
var ENVIRONMENT_AUTH_REQUIRED_KEYS = {
|
|
10774
10808
|
[AGENT.CLAUDE]: [
|
|
@@ -10810,6 +10844,9 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
|
|
|
10810
10844
|
[AGENT.CURSOR]: [
|
|
10811
10845
|
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.CURSOR_API_KEY }
|
|
10812
10846
|
],
|
|
10847
|
+
[AGENT.GEMINI]: [
|
|
10848
|
+
{ method: CREDENTIAL_METHOD.GEMINI_OAUTH, credentialType: CREDENTIAL_TYPE.GEMINI_OAUTH }
|
|
10849
|
+
],
|
|
10813
10850
|
[AGENT.MUSE]: [
|
|
10814
10851
|
{ method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH },
|
|
10815
10852
|
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.MUSE_API_KEY }
|
|
@@ -10859,6 +10896,8 @@ function getCredentialMethodLabel(agent, method) {
|
|
|
10859
10896
|
return INFERENCE_PROVIDER_LABELS[method];
|
|
10860
10897
|
case CREDENTIAL_METHOD.MUSE_OAUTH:
|
|
10861
10898
|
return "Muse account";
|
|
10899
|
+
case CREDENTIAL_METHOD.GEMINI_OAUTH:
|
|
10900
|
+
return "Google account";
|
|
10862
10901
|
}
|
|
10863
10902
|
}
|
|
10864
10903
|
|
|
@@ -12581,10 +12620,15 @@ var restingCredentialsSchema = z20.object({
|
|
|
12581
12620
|
scope: z20.enum(CREDENTIAL_SCOPE).optional(),
|
|
12582
12621
|
resetsAt: z20.string()
|
|
12583
12622
|
});
|
|
12623
|
+
var agentLoginWithdrawalSchema = z20.object({
|
|
12624
|
+
envKeys: z20.array(z20.string()),
|
|
12625
|
+
files: z20.array(z20.string())
|
|
12626
|
+
});
|
|
12584
12627
|
var engineCredentialRefreshFailureSchema = z20.object({
|
|
12585
12628
|
code: z20.string(),
|
|
12586
12629
|
credential: workspaceCredentialSelectionSchema.optional(),
|
|
12587
|
-
resting: restingCredentialsSchema.optional()
|
|
12630
|
+
resting: restingCredentialsSchema.optional(),
|
|
12631
|
+
revoke: agentLoginWithdrawalSchema.optional()
|
|
12588
12632
|
});
|
|
12589
12633
|
|
|
12590
12634
|
// ../shared/src/credential-pool.ts
|
|
@@ -12615,6 +12659,11 @@ var PROVIDER_ICON_DEFINITIONS = {
|
|
|
12615
12659
|
viewBox: "640 340 320 320",
|
|
12616
12660
|
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"]
|
|
12617
12661
|
},
|
|
12662
|
+
gemini: {
|
|
12663
|
+
viewBox: "0 0 24 24",
|
|
12664
|
+
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"],
|
|
12665
|
+
gradient: BRAND_COLORS.gemini
|
|
12666
|
+
},
|
|
12618
12667
|
muse: {
|
|
12619
12668
|
viewBox: "0 0 24 24",
|
|
12620
12669
|
paths: ["M3 4h4.5l4.5 7.2L16.5 4H21v16h-4V10.5l-5 7.5-5-7.5V20H3V4Z"],
|
|
@@ -19843,6 +19892,125 @@ function parseMuseEvents(events) {
|
|
|
19843
19892
|
return messages;
|
|
19844
19893
|
}
|
|
19845
19894
|
|
|
19895
|
+
// ../shared/src/display-message/parsers/gemini-parser.ts
|
|
19896
|
+
function contentText(content) {
|
|
19897
|
+
if (!Array.isArray(content)) return "";
|
|
19898
|
+
return content.flatMap((entry) => isRecord(entry) && entry.type === "content" && isRecord(entry.content) && typeof entry.content.text === "string" ? [entry.content.text] : []).join("\n");
|
|
19899
|
+
}
|
|
19900
|
+
function commandLine(input) {
|
|
19901
|
+
if (!isRecord(input)) return void 0;
|
|
19902
|
+
const command = [input.CommandLine, input.commandLine, input.command_line, input.command].find((value) => typeof value === "string" && value);
|
|
19903
|
+
return typeof command === "string" ? command : void 0;
|
|
19904
|
+
}
|
|
19905
|
+
function parseGeminiEvents(events) {
|
|
19906
|
+
const messages = [];
|
|
19907
|
+
const activeChunks = {};
|
|
19908
|
+
const toolUpdates = /* @__PURE__ */ new Map();
|
|
19909
|
+
const inputState = { requests: /* @__PURE__ */ new Map(), resolutions: /* @__PURE__ */ new Map(), requestedAt: /* @__PURE__ */ new Map() };
|
|
19910
|
+
let chunkSequence = 0;
|
|
19911
|
+
for (const event of events) {
|
|
19912
|
+
const userContent = getUserMessage(event);
|
|
19913
|
+
if (userContent !== null) {
|
|
19914
|
+
activeChunks.agent_message_chunk = void 0;
|
|
19915
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
19916
|
+
if (userContent.trim()) messages.push({
|
|
19917
|
+
id: getUserMessageId(event) ?? `gemini-user-${event.timestamp}`,
|
|
19918
|
+
type: "user",
|
|
19919
|
+
content: userContent,
|
|
19920
|
+
timestamp: event.timestamp
|
|
19921
|
+
});
|
|
19922
|
+
continue;
|
|
19923
|
+
}
|
|
19924
|
+
if (event.type === "gemini-error") {
|
|
19925
|
+
messages.push({
|
|
19926
|
+
id: `gemini-error-${event.timestamp}`,
|
|
19927
|
+
type: "error",
|
|
19928
|
+
message: typeof event.payload.message === "string" ? event.payload.message : "Gemini failed",
|
|
19929
|
+
timestamp: event.timestamp
|
|
19930
|
+
});
|
|
19931
|
+
continue;
|
|
19932
|
+
}
|
|
19933
|
+
if (event.type === "gemini-turn-complete") {
|
|
19934
|
+
for (const message2 of messages) {
|
|
19935
|
+
if (message2.type === "reasoning" && message2.status === "in_progress") message2.status = "completed";
|
|
19936
|
+
}
|
|
19937
|
+
markTurnEnd(messages, event.timestamp);
|
|
19938
|
+
activeChunks.agent_message_chunk = void 0;
|
|
19939
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
19940
|
+
continue;
|
|
19941
|
+
}
|
|
19942
|
+
if (applyToolInputEvent(event, messages, "gemini", inputState, isToolInputQuestion)) continue;
|
|
19943
|
+
if (event.type !== "gemini-session-update" && event.type !== "gemini-chunk" || !isRecord(event.payload.update)) continue;
|
|
19944
|
+
const update = event.payload.update;
|
|
19945
|
+
const kind = update.sessionUpdate;
|
|
19946
|
+
if (kind === "agent_message_chunk" || kind === "agent_thought_chunk") {
|
|
19947
|
+
if (!isRecord(update.content) || update.content.type !== "text" || typeof update.content.text !== "string" || !update.content.text) continue;
|
|
19948
|
+
const explicitId = typeof update.messageId === "string" && update.messageId ? `gemini-${kind}-${update.messageId}` : null;
|
|
19949
|
+
const id = explicitId ?? activeChunks[kind] ?? `gemini-${kind}-${chunkSequence++}`;
|
|
19950
|
+
activeChunks[kind] = id;
|
|
19951
|
+
if (!explicitId) activeChunks[kind === "agent_message_chunk" ? "agent_thought_chunk" : "agent_message_chunk"] = void 0;
|
|
19952
|
+
const existing = messages.find((message2) => message2.id === id);
|
|
19953
|
+
const content = `${existing && "content" in existing && typeof existing.content === "string" ? existing.content : ""}${update.content.text}`;
|
|
19954
|
+
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 });
|
|
19955
|
+
continue;
|
|
19956
|
+
}
|
|
19957
|
+
activeChunks.agent_message_chunk = void 0;
|
|
19958
|
+
activeChunks.agent_thought_chunk = void 0;
|
|
19959
|
+
if ((kind === "tool_call" || kind === "tool_call_update") && typeof update.toolCallId === "string") {
|
|
19960
|
+
const call = { ...toolUpdates.get(update.toolCallId), ...update };
|
|
19961
|
+
toolUpdates.set(update.toolCallId, call);
|
|
19962
|
+
const id = `gemini-tool-${update.toolCallId}`;
|
|
19963
|
+
const timestamp2 = messages.find((message2) => message2.id === id)?.timestamp ?? event.timestamp;
|
|
19964
|
+
const status = call.status === "failed" ? "failed" : call.status === "completed" ? "completed" : "in_progress";
|
|
19965
|
+
const output = contentText(call.content) || stringifyDisplayValue(call.rawOutput);
|
|
19966
|
+
const inputRequest = inputState.requests.get(update.toolCallId);
|
|
19967
|
+
const diffs = Array.isArray(call.content) ? call.content.filter((entry) => isRecord(entry) && entry.type === "diff" && typeof entry.path === "string") : [];
|
|
19968
|
+
const command = call.kind === "execute" ? commandLine(call.rawInput) ?? (typeof call.title === "string" ? call.title : void 0) : void 0;
|
|
19969
|
+
if (!inputRequest && command) {
|
|
19970
|
+
upsertDisplayMessage(messages, { id, type: "command", command, output, status, timestamp: timestamp2 });
|
|
19971
|
+
} else if (!inputRequest && diffs.length > 0) {
|
|
19972
|
+
upsertDisplayMessage(messages, {
|
|
19973
|
+
id,
|
|
19974
|
+
type: "file_change",
|
|
19975
|
+
changes: diffs.map((diff) => ({
|
|
19976
|
+
path: diff.path,
|
|
19977
|
+
kind: diff.oldText === null || diff.oldText === void 0 ? "add" : diff.newText === "" && call.kind === "delete" ? "delete" : "update"
|
|
19978
|
+
})),
|
|
19979
|
+
status,
|
|
19980
|
+
timestamp: timestamp2
|
|
19981
|
+
});
|
|
19982
|
+
} else {
|
|
19983
|
+
upsertDisplayMessage(messages, createCallDisplayMessage({
|
|
19984
|
+
id,
|
|
19985
|
+
server: "gemini",
|
|
19986
|
+
tool: [call.title, call.name, call.kind].find((value) => typeof value === "string" && value.length > 0) ?? "tool",
|
|
19987
|
+
inputRequest,
|
|
19988
|
+
input: call.rawInput === void 0 ? void 0 : isRecord(call.rawInput) ? call.rawInput : stringifyDisplayValue(call.rawInput),
|
|
19989
|
+
output,
|
|
19990
|
+
status,
|
|
19991
|
+
timestamp: timestamp2
|
|
19992
|
+
}));
|
|
19993
|
+
}
|
|
19994
|
+
continue;
|
|
19995
|
+
}
|
|
19996
|
+
if (kind === "plan" && Array.isArray(update.entries)) {
|
|
19997
|
+
const items = update.entries.flatMap((entry) => {
|
|
19998
|
+
if (!isRecord(entry) || typeof entry.content !== "string") return [];
|
|
19999
|
+
const itemStatus = entry.status === "completed" || entry.status === "in_progress" ? entry.status : "pending";
|
|
20000
|
+
return [{ text: entry.content, completed: itemStatus === "completed", itemStatus }];
|
|
20001
|
+
});
|
|
20002
|
+
upsertDisplayMessage(messages, {
|
|
20003
|
+
id: "gemini-plan",
|
|
20004
|
+
type: "todo_list",
|
|
20005
|
+
items,
|
|
20006
|
+
status: items.every((item) => item.completed) ? "completed" : "in_progress",
|
|
20007
|
+
timestamp: event.timestamp
|
|
20008
|
+
});
|
|
20009
|
+
}
|
|
20010
|
+
}
|
|
20011
|
+
return messages;
|
|
20012
|
+
}
|
|
20013
|
+
|
|
19846
20014
|
// ../shared/src/display-message/parsers/pi-parser.ts
|
|
19847
20015
|
function nestedPayload(event) {
|
|
19848
20016
|
return isRecord(event.payload.assistantMessageEvent) ? event.payload.assistantMessageEvent : event.payload;
|
|
@@ -20848,6 +21016,9 @@ function parseProviderEvents(events, agentType, parentToolUseId) {
|
|
|
20848
21016
|
if (agentType === "cursor") {
|
|
20849
21017
|
return parseCursorEvents(events);
|
|
20850
21018
|
}
|
|
21019
|
+
if (agentType === "gemini") {
|
|
21020
|
+
return parseGeminiEvents(events);
|
|
21021
|
+
}
|
|
20851
21022
|
if (agentType === "muse") {
|
|
20852
21023
|
return parseMuseEvents(events);
|
|
20853
21024
|
}
|
|
@@ -21806,7 +21977,7 @@ async function withRetry(label, fn, options) {
|
|
|
21806
21977
|
}
|
|
21807
21978
|
|
|
21808
21979
|
// ../shared/src/tensorlake.ts
|
|
21809
|
-
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-
|
|
21980
|
+
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v7918";
|
|
21810
21981
|
var TENSORLAKE_DISK_MB = 100 * 1024;
|
|
21811
21982
|
|
|
21812
21983
|
// ../shared/src/egress.ts
|
|
@@ -22528,6 +22699,22 @@ function serializeMuseAuthFile(credentials) {
|
|
|
22528
22699
|
}, null, 2);
|
|
22529
22700
|
}
|
|
22530
22701
|
|
|
22702
|
+
// ../shared/src/gemini-auth.ts
|
|
22703
|
+
import { z as z36 } from "zod";
|
|
22704
|
+
function serializeGeminiAuthFile(credentials) {
|
|
22705
|
+
return JSON.stringify({
|
|
22706
|
+
token: {
|
|
22707
|
+
access_token: "",
|
|
22708
|
+
token_type: "Bearer",
|
|
22709
|
+
refresh_token: credentials.refreshToken,
|
|
22710
|
+
expiry: "1970-01-01T00:00:00Z"
|
|
22711
|
+
},
|
|
22712
|
+
auth_method: "consumer",
|
|
22713
|
+
id_token_email: credentials.user.email
|
|
22714
|
+
});
|
|
22715
|
+
}
|
|
22716
|
+
var geminiCredentialRequestSchema = z36.object({ code: z36.string(), code_verifier: z36.string() });
|
|
22717
|
+
|
|
22531
22718
|
// ../shared/src/version.ts
|
|
22532
22719
|
function compareVersions(v1, v2) {
|
|
22533
22720
|
const parts1 = v1.split(".").map(Number);
|
|
@@ -22563,17 +22750,17 @@ var RECONNECT_GIVE_UP_MS = 2 * 6e4;
|
|
|
22563
22750
|
var encoder3 = new TextEncoder();
|
|
22564
22751
|
|
|
22565
22752
|
// ../shared/src/routes/billing.ts
|
|
22566
|
-
import { z as
|
|
22753
|
+
import { z as z37 } from "zod";
|
|
22567
22754
|
var CREDIT_PURCHASE_MIN_CENTS = 5e3;
|
|
22568
22755
|
var CREDIT_PURCHASE_MAX_CENTS = 1e6;
|
|
22569
22756
|
var AUTO_RELOAD_THRESHOLD_MIN_CENTS = 1e3;
|
|
22570
|
-
var autoReloadAmountsSchema =
|
|
22571
|
-
thresholdCents:
|
|
22572
|
-
amountCents:
|
|
22757
|
+
var autoReloadAmountsSchema = z37.object({
|
|
22758
|
+
thresholdCents: z37.number().int().multipleOf(100).min(AUTO_RELOAD_THRESHOLD_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS),
|
|
22759
|
+
amountCents: z37.number().int().multipleOf(100).min(CREDIT_PURCHASE_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS)
|
|
22573
22760
|
});
|
|
22574
22761
|
var SOURCE_LIMIT_SOURCES = ["limrun", "modal", "revyl", "inference"];
|
|
22575
|
-
var usageLimitCentsSchema =
|
|
22576
|
-
var sourceLimitsCentsSchema =
|
|
22762
|
+
var usageLimitCentsSchema = z37.number().int().min(100).max(1e8);
|
|
22763
|
+
var sourceLimitsCentsSchema = z37.partialRecord(z37.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
|
|
22577
22764
|
|
|
22578
22765
|
// ../shared/src/routes/codex.ts
|
|
22579
22766
|
var CODEX_AUTH_ENV_KEYS = [
|
|
@@ -22727,7 +22914,7 @@ var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
|
|
|
22727
22914
|
};
|
|
22728
22915
|
|
|
22729
22916
|
// ../shared/src/routes/command-protection.ts
|
|
22730
|
-
import { z as
|
|
22917
|
+
import { z as z38 } from "zod";
|
|
22731
22918
|
|
|
22732
22919
|
// ../shared/src/git-invocations.ts
|
|
22733
22920
|
var COMMIT_VALUE_OPTIONS = /* @__PURE__ */ new Set(["message", "file", "trailer", "reuse-message", "reedit-message", "fixup", "squash", "template", "author", "date", "cleanup", "pathspec-from-file"]);
|
|
@@ -22818,34 +23005,34 @@ function findCheckoutTarget(args) {
|
|
|
22818
23005
|
}
|
|
22819
23006
|
|
|
22820
23007
|
// ../shared/src/routes/command-protection.ts
|
|
22821
|
-
var commandProtectionRepoStateSchema =
|
|
22822
|
-
branch:
|
|
22823
|
-
defaultBranch:
|
|
22824
|
-
pushBranch:
|
|
22825
|
-
pushConfig:
|
|
22826
|
-
headMessage:
|
|
22827
|
-
mergeInProgress:
|
|
23008
|
+
var commandProtectionRepoStateSchema = z38.object({
|
|
23009
|
+
branch: z38.string().nullable(),
|
|
23010
|
+
defaultBranch: z38.string().nullable(),
|
|
23011
|
+
pushBranch: z38.string().nullable(),
|
|
23012
|
+
pushConfig: z38.string().nullable(),
|
|
23013
|
+
headMessage: z38.string().nullable(),
|
|
23014
|
+
mergeInProgress: z38.boolean().optional()
|
|
22828
23015
|
});
|
|
22829
|
-
var commandProtectionEvaluateRequestSchema =
|
|
22830
|
-
provider:
|
|
22831
|
-
source:
|
|
22832
|
-
toolName:
|
|
22833
|
-
toolInput:
|
|
22834
|
-
command:
|
|
22835
|
-
cwd:
|
|
22836
|
-
toolUseId:
|
|
23016
|
+
var commandProtectionEvaluateRequestSchema = z38.object({
|
|
23017
|
+
provider: z38.enum(["claude", "codex", "cursor", "gemini", "opencode", "pi", "harness"]),
|
|
23018
|
+
source: z38.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"]),
|
|
23019
|
+
toolName: z38.string(),
|
|
23020
|
+
toolInput: z38.unknown(),
|
|
23021
|
+
command: z38.string().nullish(),
|
|
23022
|
+
cwd: z38.string().nullish(),
|
|
23023
|
+
toolUseId: z38.string().nullish(),
|
|
22837
23024
|
// Read by the engine before the command runs, keyed by absolute path, so the
|
|
22838
23025
|
// policy can see branches and commit messages the command text only references.
|
|
22839
|
-
gitContext:
|
|
22840
|
-
repos:
|
|
22841
|
-
messageFiles:
|
|
23026
|
+
gitContext: z38.object({
|
|
23027
|
+
repos: z38.record(z38.string(), commandProtectionRepoStateSchema),
|
|
23028
|
+
messageFiles: z38.record(z38.string(), z38.string())
|
|
22842
23029
|
}).optional()
|
|
22843
23030
|
});
|
|
22844
|
-
var commandProtectionEvaluateResponseSchema =
|
|
22845
|
-
allowed:
|
|
22846
|
-
enabled:
|
|
22847
|
-
reason:
|
|
22848
|
-
matchedSignals:
|
|
23031
|
+
var commandProtectionEvaluateResponseSchema = z38.object({
|
|
23032
|
+
allowed: z38.boolean(),
|
|
23033
|
+
enabled: z38.boolean(),
|
|
23034
|
+
reason: z38.string().optional(),
|
|
23035
|
+
matchedSignals: z38.array(z38.string()).optional()
|
|
22849
23036
|
});
|
|
22850
23037
|
var COMMAND_PROTECTION_COMMAND_KEYS = ["command", "cmd", "script", "query", "endpoint", "path", "url", "mutation"];
|
|
22851
23038
|
function stringifyCommandProtectionInput(value) {
|
|
@@ -23090,152 +23277,152 @@ function shouldRefreshPullRequests(toolName, toolInput) {
|
|
|
23090
23277
|
}
|
|
23091
23278
|
|
|
23092
23279
|
// ../shared/src/routes/scout.ts
|
|
23093
|
-
import { z as
|
|
23280
|
+
import { z as z39 } from "zod";
|
|
23094
23281
|
var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
|
|
23095
|
-
var scoutLinearSessionIntentRequestSchema =
|
|
23096
|
-
comment_id:
|
|
23097
|
-
action:
|
|
23282
|
+
var scoutLinearSessionIntentRequestSchema = z39.object({
|
|
23283
|
+
comment_id: z39.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
|
|
23284
|
+
action: z39.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it hands off the task.")
|
|
23098
23285
|
});
|
|
23099
|
-
var scoutLinearStartRequestSchema =
|
|
23100
|
-
issue_id:
|
|
23101
|
-
agent_session_id:
|
|
23102
|
-
prompt:
|
|
23286
|
+
var scoutLinearStartRequestSchema = z39.object({
|
|
23287
|
+
issue_id: z39.string().describe("Linear issue id from the envelope's `issue_id`."),
|
|
23288
|
+
agent_session_id: z39.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
|
|
23289
|
+
prompt: z39.string().trim().min(1).describe("The latest request, in its author's words. The workspace already receives the issue and its comments.")
|
|
23103
23290
|
});
|
|
23104
|
-
var scoutRouteLinearTicketRequestSchema =
|
|
23105
|
-
agent_session_id:
|
|
23106
|
-
environment_id:
|
|
23107
|
-
manager_id:
|
|
23291
|
+
var scoutRouteLinearTicketRequestSchema = z39.object({
|
|
23292
|
+
agent_session_id: z39.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
|
|
23293
|
+
environment_id: z39.string().trim().min(1).optional().describe("Start the ticket in this environment."),
|
|
23294
|
+
manager_id: z39.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
|
|
23108
23295
|
}).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
|
|
23109
|
-
var slackChannelIdSchema =
|
|
23110
|
-
var slackThreadTsSchema =
|
|
23111
|
-
var scoutSlackMessageReferenceSchema =
|
|
23296
|
+
var slackChannelIdSchema = z39.string().describe("Slack channel id from the envelope's `channel_id`.");
|
|
23297
|
+
var slackThreadTsSchema = z39.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
|
|
23298
|
+
var scoutSlackMessageReferenceSchema = z39.object({
|
|
23112
23299
|
channel_id: slackChannelIdSchema,
|
|
23113
23300
|
thread_ts: slackThreadTsSchema,
|
|
23114
|
-
message_ts:
|
|
23115
|
-
user_id:
|
|
23301
|
+
message_ts: z39.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
23302
|
+
user_id: z39.string().describe("Slack user id of that message's author (the envelope's `user_id`).")
|
|
23116
23303
|
});
|
|
23117
|
-
var scoutSlackSpawnRequestSchema =
|
|
23304
|
+
var scoutSlackSpawnRequestSchema = z39.object({
|
|
23118
23305
|
channel_id: slackChannelIdSchema,
|
|
23119
23306
|
thread_ts: slackThreadTsSchema,
|
|
23120
|
-
message_ts:
|
|
23121
|
-
user_id:
|
|
23122
|
-
prompt:
|
|
23123
|
-
acknowledgement_ts:
|
|
23124
|
-
environment_id:
|
|
23307
|
+
message_ts: z39.string().describe("Timestamp of the Slack message that asked for the work (the envelope's `message_ts`). The server verifies this message and its author."),
|
|
23308
|
+
user_id: z39.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
|
|
23309
|
+
prompt: z39.string().describe("The person's request in their own words, quoting earlier messages only when it points to them. The workspace already receives the Slack thread, so add no research, plan, or guesses."),
|
|
23310
|
+
acknowledgement_ts: z39.string().optional().describe("`ts` of the one-line reply you posted in this thread before spawning. The server appends the workspace link to it and tells the workspace not to acknowledge again."),
|
|
23311
|
+
environment_id: z39.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose. If routing cannot choose, the call fails and nothing is posted, so pick one or ask the person.`)
|
|
23125
23312
|
});
|
|
23126
23313
|
var scoutSlackSpawnInNewThreadRequestSchema = scoutSlackSpawnRequestSchema.extend({
|
|
23127
|
-
title:
|
|
23128
|
-
prompt:
|
|
23129
|
-
acknowledgement_ts:
|
|
23314
|
+
title: z39.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
|
|
23315
|
+
prompt: z39.string().describe("The person's request in their own words. The full source thread is attached as background, so add no summary, research, plan, or guesses."),
|
|
23316
|
+
acknowledgement_ts: z39.string().optional().describe("`ts` of the one-line reply you posted in this thread before spawning. The server appends the new thread's link to it.")
|
|
23130
23317
|
});
|
|
23131
|
-
var scoutSlackRelayRequestSchema =
|
|
23318
|
+
var scoutSlackRelayRequestSchema = z39.object({
|
|
23132
23319
|
channel_id: slackChannelIdSchema,
|
|
23133
23320
|
thread_ts: slackThreadTsSchema,
|
|
23134
|
-
message:
|
|
23135
|
-
user_id:
|
|
23136
|
-
queue:
|
|
23137
|
-
workspace_id:
|
|
23138
|
-
message_ts:
|
|
23321
|
+
message: z39.string().describe("The follow-up to deliver: every fresh message that belongs to this update, in its author's words, with no research, plan, or guesses added. When forwarding to a `workspace_id` other than the thread's own workspace, also quote exactly the thread messages the request points to (\"forward this\"), since that workspace gets only this message."),
|
|
23322
|
+
user_id: z39.string().optional().describe("Slack user id of the follow-up's author (the envelope's `user_id`), so it is attributed to them. Defaults to the thread's original requester. Required with `workspace_id`."),
|
|
23323
|
+
queue: z39.boolean().optional().describe("Set true only when the person explicitly asked for this to happen after the current task finishes. Delivers behind the active turn instead of interrupting it."),
|
|
23324
|
+
workspace_id: z39.string().optional().describe(`Existing workspace id, from \`${REPLICAS_MCP_TOOLS.listWorkspaces}\` or a workspace link in the thread, to bind a thread without a workspace to before relaying. The author must be able to see it. Binding a Manager gives it the person's own Slack message and the thread instead of \`message\`. In a thread already bound to a different workspace, or in a Manager's channel, nothing is bound: the workspace or Manager gets only \`message\`, once, with a link back to Slack, and the thread stays where it is. Omit to relay into the thread's own workspace.`),
|
|
23325
|
+
message_ts: z39.string().optional().describe("Timestamp of the Slack message that led to this relay (the envelope's `message_ts`). Required with `workspace_id`; the server verifies this message and its author.")
|
|
23139
23326
|
});
|
|
23140
|
-
var scoutSlackSetThreadMutedRequestSchema =
|
|
23327
|
+
var scoutSlackSetThreadMutedRequestSchema = z39.object({
|
|
23141
23328
|
channel_id: slackChannelIdSchema,
|
|
23142
23329
|
thread_ts: slackThreadTsSchema,
|
|
23143
|
-
muted:
|
|
23330
|
+
muted: z39.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
|
|
23144
23331
|
});
|
|
23145
23332
|
var scoutSlackStopWorkspaceRequestSchema = scoutSlackMessageReferenceSchema.extend({
|
|
23146
|
-
archive:
|
|
23333
|
+
archive: z39.boolean().describe("true only when the person also asked to close or archive the workspace.")
|
|
23147
23334
|
});
|
|
23148
|
-
var scoutListWorkspacesRequestSchema =
|
|
23335
|
+
var scoutListWorkspacesRequestSchema = z39.object({
|
|
23149
23336
|
channel_id: slackChannelIdSchema,
|
|
23150
23337
|
thread_ts: slackThreadTsSchema,
|
|
23151
|
-
message_ts:
|
|
23152
|
-
user_id:
|
|
23153
|
-
query:
|
|
23338
|
+
message_ts: z39.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
23339
|
+
user_id: z39.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
|
|
23340
|
+
query: z39.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Manager names and pull request URLs.")
|
|
23154
23341
|
});
|
|
23155
|
-
var scoutSlackConfirmationSchema =
|
|
23156
|
-
confirmation_channel_id:
|
|
23157
|
-
confirmation_thread_ts:
|
|
23158
|
-
confirmation_message_ts:
|
|
23159
|
-
confirmation_user_id:
|
|
23342
|
+
var scoutSlackConfirmationSchema = z39.object({
|
|
23343
|
+
confirmation_channel_id: z39.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
|
|
23344
|
+
confirmation_thread_ts: z39.string().describe("`thread_ts` from that message's envelope."),
|
|
23345
|
+
confirmation_message_ts: z39.string().describe("`message_ts` from that message's envelope."),
|
|
23346
|
+
confirmation_user_id: z39.string().describe("`user_id` from that message's envelope.")
|
|
23160
23347
|
});
|
|
23161
23348
|
var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
|
|
23162
23349
|
var scoutSettingsConfirmationSchema = scoutSlackConfirmationSchema.partial().extend({
|
|
23163
|
-
confirmation_dashboard_token:
|
|
23350
|
+
confirmation_dashboard_token: z39.string().optional().describe("For a request from a person in the Replicas dashboard: the `confirmation_dashboard_token` given in that message. Pass it instead of the Slack `confirmation_*` fields; the server authorizes the person who sent it, while it is still the latest message in its chat.")
|
|
23164
23351
|
});
|
|
23165
23352
|
var scoutSaveChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23166
|
-
preset_id:
|
|
23167
|
-
name:
|
|
23168
|
-
description:
|
|
23169
|
-
icon:
|
|
23170
|
-
instructions:
|
|
23353
|
+
preset_id: z39.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
|
|
23354
|
+
name: z39.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
|
|
23355
|
+
description: z39.string().optional().describe("One-line summary of what the preset is for."),
|
|
23356
|
+
icon: z39.enum(SCOUT_PRESET_ICONS).optional(),
|
|
23357
|
+
instructions: z39.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
|
|
23171
23358
|
});
|
|
23172
23359
|
var scoutUpdateChannelSettingsToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23173
|
-
source:
|
|
23174
|
-
external_id:
|
|
23175
|
-
monitored:
|
|
23176
|
-
preset_id:
|
|
23177
|
-
instructions:
|
|
23178
|
-
proactivity:
|
|
23179
|
-
silent:
|
|
23180
|
-
muted:
|
|
23360
|
+
source: z39.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
|
|
23361
|
+
external_id: z39.string().describe("Slack channel id or Linear team id."),
|
|
23362
|
+
monitored: z39.boolean().optional().describe("Linear: `true` starts monitoring the team (organization admins only), `false` stops. Slack: kept for older callers; prefer `proactivity`. `false` means `tagged`, and `true` lifts a `tagged` channel back to the organization's level. Omit to keep it."),
|
|
23363
|
+
preset_id: z39.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
|
|
23364
|
+
instructions: z39.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them."),
|
|
23365
|
+
proactivity: z39.enum([...SCOUT_PROACTIVITY_LEVELS, "organization"]).optional().describe("Slack only: this channel's or group DM's own level, overriding the organization's here alone. `organization` makes it follow the organization's level again. Omit to keep it. 1:1 DMs are always addressed to Replicas, so they take no level."),
|
|
23366
|
+
silent: z39.enum(["on", "off", "default"]).optional().describe(`Slack only, organization admins only: \`on\` puts this channel in silent mode, where Replicas reads it and follows its instructions but never posts, reacts, or starts work there. \`off\` turns silent mode off here, \`default\` follows the Slack Connect default from \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\`. Omit to keep it.`),
|
|
23367
|
+
muted: z39.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
|
|
23181
23368
|
});
|
|
23182
23369
|
var managerSlackChannelLevelToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
23183
23370
|
proactivity: scoutUpdateChannelSettingsToolInputSchema.shape.proactivity.unwrap().describe("This channel's own level. `organization` makes it follow the organization's level again, which a Manager's channel raises to at least `balanced`.")
|
|
23184
23371
|
});
|
|
23185
23372
|
var scoutSetSlackConnectMutedToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23186
|
-
muted:
|
|
23373
|
+
muted: z39.boolean().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again.")
|
|
23187
23374
|
});
|
|
23188
23375
|
var scoutSetSlackConnectDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23189
|
-
silent:
|
|
23190
|
-
muted:
|
|
23191
|
-
preset_id:
|
|
23192
|
-
instructions:
|
|
23193
|
-
proactivity:
|
|
23376
|
+
silent: z39.boolean().optional().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again. Omit to keep it."),
|
|
23377
|
+
muted: z39.boolean().optional().describe("Kept for older callers; prefer `silent`."),
|
|
23378
|
+
preset_id: z39.string().optional().describe("Preset for every Slack Connect channel without its own preset or instructions; an empty string removes it. Omit to keep it."),
|
|
23379
|
+
instructions: z39.string().optional().describe("Complete default instructions, applied after that preset; replaces the existing text. An empty string clears them. Omit to keep them."),
|
|
23380
|
+
proactivity: z39.enum([...SCOUT_PROACTIVITY_LEVELS, "default"]).optional().describe("Level for every Slack Connect channel without its own level. `default` returns them to `tagged`. Omit to keep it.")
|
|
23194
23381
|
});
|
|
23195
23382
|
var scoutSetOrganizationProactivityToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23196
|
-
proactivity:
|
|
23383
|
+
proactivity: z39.enum(SCOUT_PROACTIVITY_LEVELS).describe(`The level every Slack channel and group DM follows unless it has its own. Slack Connect channels without their own level follow the shared-channel default from \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\` instead.`)
|
|
23197
23384
|
});
|
|
23198
23385
|
var scoutDeleteChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23199
|
-
preset_id:
|
|
23386
|
+
preset_id: z39.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
|
|
23200
23387
|
});
|
|
23201
23388
|
var RESET_TO_DEFAULT = "default";
|
|
23202
|
-
var resettable = (schema, description2) =>
|
|
23389
|
+
var resettable = (schema, description2) => z39.union([schema, z39.literal(RESET_TO_DEFAULT)]).optional().describe(`${description2} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
|
|
23203
23390
|
var scoutSetSlackAgentDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
23204
|
-
agent_provider: resettable(
|
|
23205
|
-
model: resettable(
|
|
23206
|
-
thinking_level: resettable(
|
|
23207
|
-
goal_mode: resettable(
|
|
23208
|
-
fast_mode: resettable(
|
|
23391
|
+
agent_provider: resettable(z39.enum(VALID_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
|
|
23392
|
+
model: resettable(z39.string(), "Model id for that agent; the default is the agent's own."),
|
|
23393
|
+
thinking_level: resettable(z39.enum(VALID_THINKING_LEVELS), "Thinking level."),
|
|
23394
|
+
goal_mode: resettable(z39.boolean(), "Goal mode."),
|
|
23395
|
+
fast_mode: resettable(z39.boolean(), "Fast mode.")
|
|
23209
23396
|
});
|
|
23210
|
-
var scoutClaimSettingsOfferToolInputSchema =
|
|
23397
|
+
var scoutClaimSettingsOfferToolInputSchema = z39.object({
|
|
23211
23398
|
channel_id: slackChannelIdSchema,
|
|
23212
|
-
kind:
|
|
23213
|
-
user_id:
|
|
23214
|
-
declined:
|
|
23399
|
+
kind: z39.enum(SCOUT_SETTINGS_OFFERS).describe("`proactivity`: offering a lower level after frustration. `raise_proactivity`: offering a higher level after someone had to @mention you. `instructions`: offering channel instructions or a preset. `organization_proactivity` and `raise_organization_proactivity`: offering to lower or raise the workspace default; only decline them, the server claims them for you."),
|
|
23400
|
+
user_id: z39.string().optional().describe("The envelope's `user_id`. Required for `proactivity` and `raise_proactivity`, so the server can say whether they are an organization admin."),
|
|
23401
|
+
declined: z39.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
|
|
23215
23402
|
});
|
|
23216
23403
|
|
|
23217
23404
|
// ../shared/src/routes/sentry.ts
|
|
23218
|
-
import { z as
|
|
23219
|
-
var sentrySelfHostedConnectRequestSchema =
|
|
23220
|
-
baseUrl:
|
|
23221
|
-
token:
|
|
23222
|
-
webhookSecret:
|
|
23405
|
+
import { z as z40 } from "zod";
|
|
23406
|
+
var sentrySelfHostedConnectRequestSchema = z40.object({
|
|
23407
|
+
baseUrl: z40.string().min(1),
|
|
23408
|
+
token: z40.string().trim().min(1),
|
|
23409
|
+
webhookSecret: z40.string().trim().optional()
|
|
23223
23410
|
});
|
|
23224
23411
|
|
|
23225
23412
|
// ../shared/src/routes/user.ts
|
|
23226
23413
|
var PROFILE_AVATAR_MAX_SIZE_BYTES = 5 * 1024 * 1024;
|
|
23227
23414
|
|
|
23228
23415
|
// ../shared/src/routes/web-auth.ts
|
|
23229
|
-
import { z as
|
|
23230
|
-
var webAuthRedeemResponseSchema =
|
|
23231
|
-
path:
|
|
23232
|
-
organizationId:
|
|
23233
|
-
session:
|
|
23416
|
+
import { z as z41 } from "zod";
|
|
23417
|
+
var webAuthRedeemResponseSchema = z41.object({
|
|
23418
|
+
path: z41.string(),
|
|
23419
|
+
organizationId: z41.string().nullable(),
|
|
23420
|
+
session: z41.object({ access_token: z41.string(), refresh_token: z41.string(), user: z41.object({ id: z41.string(), email: z41.string() }) }).nullable()
|
|
23234
23421
|
});
|
|
23235
23422
|
|
|
23236
23423
|
// ../shared/src/routes/themes.ts
|
|
23237
|
-
import { z as
|
|
23238
|
-
var updateThemeRequestSchema =
|
|
23424
|
+
import { z as z42 } from "zod";
|
|
23425
|
+
var updateThemeRequestSchema = z42.object({ theme: z42.string(), palette: z42.string(), accent: z42.string(), code: z42.string() }).partial();
|
|
23239
23426
|
|
|
23240
23427
|
// ../shared/src/routes/client-state.ts
|
|
23241
23428
|
var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
|
|
@@ -23261,107 +23448,107 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
|
|
|
23261
23448
|
var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
|
|
23262
23449
|
|
|
23263
23450
|
// ../shared/src/routes/workspace-events.ts
|
|
23264
|
-
import { z as
|
|
23451
|
+
import { z as z44 } from "zod";
|
|
23265
23452
|
|
|
23266
23453
|
// ../shared/src/routes/presence.ts
|
|
23267
|
-
import { z as
|
|
23268
|
-
var presenceStatusSchema =
|
|
23269
|
-
var presenceLocationSchema =
|
|
23270
|
-
workspaceId:
|
|
23454
|
+
import { z as z43 } from "zod";
|
|
23455
|
+
var presenceStatusSchema = z43.enum(["online", "typing"]);
|
|
23456
|
+
var presenceLocationSchema = z43.object({
|
|
23457
|
+
workspaceId: z43.string().optional()
|
|
23271
23458
|
});
|
|
23272
|
-
var presenceEntrySchema =
|
|
23273
|
-
userId:
|
|
23459
|
+
var presenceEntrySchema = z43.object({
|
|
23460
|
+
userId: z43.string(),
|
|
23274
23461
|
status: presenceStatusSchema,
|
|
23275
23462
|
location: presenceLocationSchema,
|
|
23276
|
-
ts:
|
|
23463
|
+
ts: z43.string()
|
|
23277
23464
|
});
|
|
23278
|
-
var updatePresenceRequestSchema =
|
|
23465
|
+
var updatePresenceRequestSchema = z43.object({
|
|
23279
23466
|
status: presenceStatusSchema,
|
|
23280
23467
|
location: presenceLocationSchema.optional()
|
|
23281
23468
|
});
|
|
23282
23469
|
|
|
23283
23470
|
// ../shared/src/routes/workspace-events.ts
|
|
23284
|
-
var workspaceTurnCompletionSchema =
|
|
23285
|
-
workspaceName:
|
|
23286
|
-
completedAt:
|
|
23287
|
-
processing:
|
|
23288
|
-
pullRequestFeedback:
|
|
23289
|
-
attention:
|
|
23471
|
+
var workspaceTurnCompletionSchema = z44.object({
|
|
23472
|
+
workspaceName: z44.string(),
|
|
23473
|
+
completedAt: z44.string(),
|
|
23474
|
+
processing: z44.boolean().optional(),
|
|
23475
|
+
pullRequestFeedback: z44.boolean().optional(),
|
|
23476
|
+
attention: z44.object({ reason: z44.enum(CHAT_ATTENTION_REASONS), userId: z44.string() }).optional()
|
|
23290
23477
|
});
|
|
23291
|
-
var inputRequestRaisedSchema =
|
|
23292
|
-
var workspaceEventSchemaByType =
|
|
23293
|
-
|
|
23294
|
-
type:
|
|
23295
|
-
workspaceId:
|
|
23296
|
-
accessChangedFor:
|
|
23297
|
-
accessChangedForOrg:
|
|
23298
|
-
workspace:
|
|
23299
|
-
name:
|
|
23478
|
+
var inputRequestRaisedSchema = z44.object({ reason: z44.enum(INPUT_REQUEST_REASONS), userId: z44.string(), chatId: z44.string(), since: z44.string() });
|
|
23479
|
+
var workspaceEventSchemaByType = z44.discriminatedUnion("type", [
|
|
23480
|
+
z44.object({
|
|
23481
|
+
type: z44.literal("workspace.changed"),
|
|
23482
|
+
workspaceId: z44.string(),
|
|
23483
|
+
accessChangedFor: z44.string().optional(),
|
|
23484
|
+
accessChangedForOrg: z44.literal(true).optional(),
|
|
23485
|
+
workspace: z44.object({ status: z44.enum(WORKSPACE_STATUSES), last_activity_at: z44.string().nullable() }).optional(),
|
|
23486
|
+
name: z44.string().optional(),
|
|
23300
23487
|
completion: workspaceTurnCompletionSchema.optional(),
|
|
23301
|
-
ts:
|
|
23488
|
+
ts: z44.string()
|
|
23302
23489
|
}),
|
|
23303
|
-
|
|
23304
|
-
type:
|
|
23305
|
-
workspaceId:
|
|
23306
|
-
chatId:
|
|
23307
|
-
ts:
|
|
23490
|
+
z44.object({
|
|
23491
|
+
type: z44.literal("workspace.chat.changed"),
|
|
23492
|
+
workspaceId: z44.string(),
|
|
23493
|
+
chatId: z44.string(),
|
|
23494
|
+
ts: z44.string()
|
|
23308
23495
|
}),
|
|
23309
|
-
|
|
23310
|
-
type:
|
|
23311
|
-
workspaceId:
|
|
23312
|
-
chatId:
|
|
23313
|
-
afterCursor:
|
|
23314
|
-
processing:
|
|
23315
|
-
ts:
|
|
23496
|
+
z44.object({
|
|
23497
|
+
type: z44.literal("workspace.chat.advanced"),
|
|
23498
|
+
workspaceId: z44.string(),
|
|
23499
|
+
chatId: z44.string(),
|
|
23500
|
+
afterCursor: z44.string().optional(),
|
|
23501
|
+
processing: z44.boolean(),
|
|
23502
|
+
ts: z44.string()
|
|
23316
23503
|
}),
|
|
23317
|
-
|
|
23318
|
-
type:
|
|
23319
|
-
workspaceId:
|
|
23320
|
-
ts:
|
|
23504
|
+
z44.object({
|
|
23505
|
+
type: z44.literal("mobile-testing.changed"),
|
|
23506
|
+
workspaceId: z44.string(),
|
|
23507
|
+
ts: z44.string()
|
|
23321
23508
|
}),
|
|
23322
|
-
|
|
23323
|
-
type:
|
|
23324
|
-
workspaceId:
|
|
23325
|
-
ts:
|
|
23509
|
+
z44.object({
|
|
23510
|
+
type: z44.literal("variable-request.changed"),
|
|
23511
|
+
workspaceId: z44.string(),
|
|
23512
|
+
ts: z44.string()
|
|
23326
23513
|
}),
|
|
23327
|
-
|
|
23328
|
-
type:
|
|
23329
|
-
workspaceId:
|
|
23330
|
-
ts:
|
|
23514
|
+
z44.object({
|
|
23515
|
+
type: z44.literal("local-control-request.changed"),
|
|
23516
|
+
workspaceId: z44.string(),
|
|
23517
|
+
ts: z44.string()
|
|
23331
23518
|
}),
|
|
23332
|
-
|
|
23333
|
-
type:
|
|
23334
|
-
prUrl:
|
|
23335
|
-
ts:
|
|
23519
|
+
z44.object({
|
|
23520
|
+
type: z44.literal("pull-request.changed"),
|
|
23521
|
+
prUrl: z44.string(),
|
|
23522
|
+
ts: z44.string()
|
|
23336
23523
|
}),
|
|
23337
|
-
|
|
23338
|
-
type:
|
|
23339
|
-
workspaceId:
|
|
23340
|
-
subagent:
|
|
23341
|
-
ts:
|
|
23524
|
+
z44.object({
|
|
23525
|
+
type: z44.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
|
|
23526
|
+
workspaceId: z44.string(),
|
|
23527
|
+
subagent: z44.object({ id: z44.string(), name: z44.string(), prUrl: z44.string().nullable() }),
|
|
23528
|
+
ts: z44.string()
|
|
23342
23529
|
}),
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
type:
|
|
23348
|
-
workspaceId:
|
|
23349
|
-
workspaceName:
|
|
23350
|
-
sharedWithUserId:
|
|
23351
|
-
sharedByName:
|
|
23352
|
-
ts:
|
|
23530
|
+
z44.object({ type: z44.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z44.string(), ts: z44.string() }),
|
|
23531
|
+
z44.object({ type: z44.literal("issues.synced"), syncId: z44.number(), ts: z44.string() }),
|
|
23532
|
+
z44.object({ type: z44.literal("needs-you.changed"), workspaceId: z44.string().nullable(), userId: z44.string().optional(), request: inputRequestRaisedSchema.optional(), ts: z44.string() }),
|
|
23533
|
+
z44.object({
|
|
23534
|
+
type: z44.literal("workspace.shared"),
|
|
23535
|
+
workspaceId: z44.string(),
|
|
23536
|
+
workspaceName: z44.string(),
|
|
23537
|
+
sharedWithUserId: z44.string(),
|
|
23538
|
+
sharedByName: z44.string(),
|
|
23539
|
+
ts: z44.string()
|
|
23353
23540
|
}),
|
|
23354
|
-
|
|
23541
|
+
z44.object({ type: z44.literal("client-state.changed"), userId: z44.string(), keys: z44.array(z44.string()), ts: z44.string() })
|
|
23355
23542
|
]);
|
|
23356
|
-
var workspaceChangedEventSchema =
|
|
23543
|
+
var workspaceChangedEventSchema = z44.union([
|
|
23357
23544
|
workspaceEventSchemaByType,
|
|
23358
|
-
|
|
23359
|
-
|
|
23545
|
+
z44.object({ type: z44.literal("presence.changed"), userId: z44.string(), entry: presenceEntrySchema.nullable(), ts: z44.string() }),
|
|
23546
|
+
z44.object({ type: z44.literal("presence.changed"), ts: z44.string() })
|
|
23360
23547
|
]);
|
|
23361
23548
|
|
|
23362
23549
|
// ../shared/src/routes/review-messages.ts
|
|
23363
|
-
import { z as
|
|
23364
|
-
var sendPullRequestReviewMessageRequestSchema =
|
|
23550
|
+
import { z as z45 } from "zod";
|
|
23551
|
+
var sendPullRequestReviewMessageRequestSchema = z45.object({
|
|
23365
23552
|
...sendChatMessageRequestSchema.pick({
|
|
23366
23553
|
message: true,
|
|
23367
23554
|
messageId: true,
|
|
@@ -23374,8 +23561,8 @@ var sendPullRequestReviewMessageRequestSchema = z44.object({
|
|
|
23374
23561
|
ultrafastMode: true
|
|
23375
23562
|
}).shape,
|
|
23376
23563
|
/** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
|
|
23377
|
-
newChat:
|
|
23378
|
-
provider:
|
|
23564
|
+
newChat: z45.boolean().optional(),
|
|
23565
|
+
provider: z45.enum(VALID_AGENT_PROVIDERS).optional()
|
|
23379
23566
|
});
|
|
23380
23567
|
|
|
23381
23568
|
// ../shared/src/audit-log.ts
|
|
@@ -24097,40 +24284,40 @@ function isSkillRegistryManifest(value) {
|
|
|
24097
24284
|
}
|
|
24098
24285
|
|
|
24099
24286
|
// ../shared/src/routes/variable-requests.ts
|
|
24100
|
-
import { z as
|
|
24287
|
+
import { z as z46 } from "zod";
|
|
24101
24288
|
var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
|
|
24102
24289
|
var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
|
|
24103
|
-
var requestedVariableSchema =
|
|
24104
|
-
key:
|
|
24105
|
-
required:
|
|
24106
|
-
replace:
|
|
24290
|
+
var requestedVariableSchema = z46.object({
|
|
24291
|
+
key: z46.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
|
|
24292
|
+
required: z46.boolean(),
|
|
24293
|
+
replace: z46.boolean().optional()
|
|
24107
24294
|
});
|
|
24108
|
-
var requestedVariablesSchema =
|
|
24109
|
-
var createVariableRequestSchema =
|
|
24295
|
+
var requestedVariablesSchema = z46.array(requestedVariableSchema).min(1, "must not be empty").max(ENVIRONMENT_SETUP_LIMITS.variables).refine((variables) => new Set(variables.map((variable) => variable.key)).size === variables.length, "must have unique keys");
|
|
24296
|
+
var createVariableRequestSchema = z46.object({
|
|
24110
24297
|
variables: requestedVariablesSchema,
|
|
24111
|
-
reason:
|
|
24112
|
-
wait:
|
|
24298
|
+
reason: z46.string().trim().max(500).nullish().transform((value) => value || null),
|
|
24299
|
+
wait: z46.boolean().default(true)
|
|
24113
24300
|
});
|
|
24114
|
-
var respondVariableRequestSchema =
|
|
24115
|
-
|
|
24116
|
-
action:
|
|
24117
|
-
destination:
|
|
24301
|
+
var respondVariableRequestSchema = z46.discriminatedUnion("action", [
|
|
24302
|
+
z46.object({
|
|
24303
|
+
action: z46.literal("provide"),
|
|
24304
|
+
destination: z46.enum(VARIABLE_REQUEST_DESTINATIONS),
|
|
24118
24305
|
/** Defaults to the workspace's environment, so older clients keep saving there. */
|
|
24119
|
-
environment_ids:
|
|
24120
|
-
overwrite:
|
|
24121
|
-
values:
|
|
24306
|
+
environment_ids: z46.array(z46.string().uuid()).optional(),
|
|
24307
|
+
overwrite: z46.boolean().optional(),
|
|
24308
|
+
values: z46.record(z46.string().regex(VARIABLE_KEY_RE), z46.string())
|
|
24122
24309
|
}),
|
|
24123
|
-
|
|
24310
|
+
z46.object({ action: z46.literal("skip") })
|
|
24124
24311
|
]);
|
|
24125
24312
|
|
|
24126
24313
|
// ../shared/src/routes/local-control-requests.ts
|
|
24127
|
-
import { z as
|
|
24128
|
-
var createLocalControlRequestSchema =
|
|
24129
|
-
reason:
|
|
24130
|
-
wait:
|
|
24314
|
+
import { z as z47 } from "zod";
|
|
24315
|
+
var createLocalControlRequestSchema = z47.object({
|
|
24316
|
+
reason: z47.string().trim().max(500).optional().transform((value) => value || null),
|
|
24317
|
+
wait: z47.boolean().default(true)
|
|
24131
24318
|
});
|
|
24132
|
-
var respondLocalControlRequestSchema =
|
|
24133
|
-
var setLocalControlSchema =
|
|
24319
|
+
var respondLocalControlRequestSchema = z47.object({ action: z47.enum(["allow", "dismiss"]) });
|
|
24320
|
+
var setLocalControlSchema = z47.object({ enabled: z47.boolean() });
|
|
24134
24321
|
|
|
24135
24322
|
export {
|
|
24136
24323
|
ENGINE_SEND_MESSAGE_FAILED_ERROR,
|
|
@@ -24211,6 +24398,7 @@ export {
|
|
|
24211
24398
|
DEFAULT_OPENCODE_MODEL,
|
|
24212
24399
|
DEFAULT_MUSE_MODEL,
|
|
24213
24400
|
DEFAULT_PI_MODEL,
|
|
24401
|
+
DEFAULT_GEMINI_MODEL,
|
|
24214
24402
|
getDefaultAgentModel,
|
|
24215
24403
|
normalizeClaudeModel,
|
|
24216
24404
|
getClaudeModelContextWindow,
|
|
@@ -24431,6 +24619,7 @@ export {
|
|
|
24431
24619
|
isClaudeAuthErrorText,
|
|
24432
24620
|
isCodexAuthError,
|
|
24433
24621
|
serializeMuseAuthFile,
|
|
24622
|
+
serializeGeminiAuthFile,
|
|
24434
24623
|
isVersionBelow,
|
|
24435
24624
|
hasChatStarted,
|
|
24436
24625
|
EXEC_SOCKET_PATH,
|