replicas-engine 0.1.1725 → 0.1.1730

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.
@@ -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 z47 = void 0;
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
- z47 = offsetZ;
1126
+ z48 = offsetZ;
1127
1127
  this.dt = dt;
1128
1128
  } else {
1129
- z47 = "UTC";
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
- z47 = dt.zone.name;
1139
+ z48 = dt.zone.name;
1140
1140
  } else {
1141
- z47 = "UTC";
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 || z47;
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
  }
@@ -21635,6 +21806,9 @@ function percentage(tokens, maxTokens) {
21635
21806
  if (!maxTokens || maxTokens <= 0) return 0;
21636
21807
  return clampPercentage(tokens / maxTokens * 100);
21637
21808
  }
21809
+ function providerContextUsage(usage) {
21810
+ return { ...usage, source: "provider_usage", percentage: percentage(usage.totalTokens, usage.maxTokens), categories: [], updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
21811
+ }
21638
21812
  function autoCompactThresholdField(autoCompactThreshold) {
21639
21813
  return typeof autoCompactThreshold === "number" && Number.isFinite(autoCompactThreshold) ? { autoCompactThreshold } : {};
21640
21814
  }
@@ -21806,7 +21980,7 @@ async function withRetry(label, fn, options) {
21806
21980
  }
21807
21981
 
21808
21982
  // ../shared/src/tensorlake.ts
21809
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-21-v20";
21983
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8494";
21810
21984
  var TENSORLAKE_DISK_MB = 100 * 1024;
21811
21985
 
21812
21986
  // ../shared/src/egress.ts
@@ -22528,6 +22702,22 @@ function serializeMuseAuthFile(credentials) {
22528
22702
  }, null, 2);
22529
22703
  }
22530
22704
 
22705
+ // ../shared/src/gemini-auth.ts
22706
+ import { z as z36 } from "zod";
22707
+ function serializeGeminiAuthFile(credentials) {
22708
+ return JSON.stringify({
22709
+ token: {
22710
+ access_token: "",
22711
+ token_type: "Bearer",
22712
+ refresh_token: credentials.refreshToken,
22713
+ expiry: "1970-01-01T00:00:00Z"
22714
+ },
22715
+ auth_method: "consumer",
22716
+ id_token_email: credentials.user.email
22717
+ });
22718
+ }
22719
+ var geminiCredentialRequestSchema = z36.object({ code: z36.string(), code_verifier: z36.string() });
22720
+
22531
22721
  // ../shared/src/version.ts
22532
22722
  function compareVersions(v1, v2) {
22533
22723
  const parts1 = v1.split(".").map(Number);
@@ -22563,17 +22753,17 @@ var RECONNECT_GIVE_UP_MS = 2 * 6e4;
22563
22753
  var encoder3 = new TextEncoder();
22564
22754
 
22565
22755
  // ../shared/src/routes/billing.ts
22566
- import { z as z36 } from "zod";
22756
+ import { z as z37 } from "zod";
22567
22757
  var CREDIT_PURCHASE_MIN_CENTS = 5e3;
22568
22758
  var CREDIT_PURCHASE_MAX_CENTS = 1e6;
22569
22759
  var AUTO_RELOAD_THRESHOLD_MIN_CENTS = 1e3;
22570
- var autoReloadAmountsSchema = z36.object({
22571
- thresholdCents: z36.number().int().multipleOf(100).min(AUTO_RELOAD_THRESHOLD_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS),
22572
- amountCents: z36.number().int().multipleOf(100).min(CREDIT_PURCHASE_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS)
22760
+ var autoReloadAmountsSchema = z37.object({
22761
+ thresholdCents: z37.number().int().multipleOf(100).min(AUTO_RELOAD_THRESHOLD_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS),
22762
+ amountCents: z37.number().int().multipleOf(100).min(CREDIT_PURCHASE_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS)
22573
22763
  });
22574
22764
  var SOURCE_LIMIT_SOURCES = ["limrun", "modal", "revyl", "inference"];
22575
- var usageLimitCentsSchema = z36.number().int().min(100).max(1e8);
22576
- var sourceLimitsCentsSchema = z36.partialRecord(z36.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
22765
+ var usageLimitCentsSchema = z37.number().int().min(100).max(1e8);
22766
+ var sourceLimitsCentsSchema = z37.partialRecord(z37.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
22577
22767
 
22578
22768
  // ../shared/src/routes/codex.ts
22579
22769
  var CODEX_AUTH_ENV_KEYS = [
@@ -22727,7 +22917,7 @@ var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
22727
22917
  };
22728
22918
 
22729
22919
  // ../shared/src/routes/command-protection.ts
22730
- import { z as z37 } from "zod";
22920
+ import { z as z38 } from "zod";
22731
22921
 
22732
22922
  // ../shared/src/git-invocations.ts
22733
22923
  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 +23008,34 @@ function findCheckoutTarget(args) {
22818
23008
  }
22819
23009
 
22820
23010
  // ../shared/src/routes/command-protection.ts
22821
- var commandProtectionRepoStateSchema = z37.object({
22822
- branch: z37.string().nullable(),
22823
- defaultBranch: z37.string().nullable(),
22824
- pushBranch: z37.string().nullable(),
22825
- pushConfig: z37.string().nullable(),
22826
- headMessage: z37.string().nullable(),
22827
- mergeInProgress: z37.boolean().optional()
23011
+ var commandProtectionRepoStateSchema = z38.object({
23012
+ branch: z38.string().nullable(),
23013
+ defaultBranch: z38.string().nullable(),
23014
+ pushBranch: z38.string().nullable(),
23015
+ pushConfig: z38.string().nullable(),
23016
+ headMessage: z38.string().nullable(),
23017
+ mergeInProgress: z38.boolean().optional()
22828
23018
  });
22829
- var commandProtectionEvaluateRequestSchema = z37.object({
22830
- provider: z37.enum(["claude", "codex", "cursor", "opencode", "pi", "harness"]),
22831
- source: z37.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call", "harness_tool_call"]),
22832
- toolName: z37.string(),
22833
- toolInput: z37.unknown(),
22834
- command: z37.string().nullish(),
22835
- cwd: z37.string().nullish(),
22836
- toolUseId: z37.string().nullish(),
23019
+ var commandProtectionEvaluateRequestSchema = z38.object({
23020
+ provider: z38.enum(["claude", "codex", "cursor", "gemini", "opencode", "pi", "harness"]),
23021
+ 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"]),
23022
+ toolName: z38.string(),
23023
+ toolInput: z38.unknown(),
23024
+ command: z38.string().nullish(),
23025
+ cwd: z38.string().nullish(),
23026
+ toolUseId: z38.string().nullish(),
22837
23027
  // Read by the engine before the command runs, keyed by absolute path, so the
22838
23028
  // policy can see branches and commit messages the command text only references.
22839
- gitContext: z37.object({
22840
- repos: z37.record(z37.string(), commandProtectionRepoStateSchema),
22841
- messageFiles: z37.record(z37.string(), z37.string())
23029
+ gitContext: z38.object({
23030
+ repos: z38.record(z38.string(), commandProtectionRepoStateSchema),
23031
+ messageFiles: z38.record(z38.string(), z38.string())
22842
23032
  }).optional()
22843
23033
  });
22844
- var commandProtectionEvaluateResponseSchema = z37.object({
22845
- allowed: z37.boolean(),
22846
- enabled: z37.boolean(),
22847
- reason: z37.string().optional(),
22848
- matchedSignals: z37.array(z37.string()).optional()
23034
+ var commandProtectionEvaluateResponseSchema = z38.object({
23035
+ allowed: z38.boolean(),
23036
+ enabled: z38.boolean(),
23037
+ reason: z38.string().optional(),
23038
+ matchedSignals: z38.array(z38.string()).optional()
22849
23039
  });
22850
23040
  var COMMAND_PROTECTION_COMMAND_KEYS = ["command", "cmd", "script", "query", "endpoint", "path", "url", "mutation"];
22851
23041
  function stringifyCommandProtectionInput(value) {
@@ -23090,152 +23280,152 @@ function shouldRefreshPullRequests(toolName, toolInput) {
23090
23280
  }
23091
23281
 
23092
23282
  // ../shared/src/routes/scout.ts
23093
- import { z as z38 } from "zod";
23283
+ import { z as z39 } from "zod";
23094
23284
  var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
23095
- var scoutLinearSessionIntentRequestSchema = z38.object({
23096
- comment_id: z38.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
23097
- action: z38.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it hands off the task.")
23285
+ var scoutLinearSessionIntentRequestSchema = z39.object({
23286
+ comment_id: z39.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
23287
+ action: z39.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it hands off the task.")
23098
23288
  });
23099
- var scoutLinearStartRequestSchema = z38.object({
23100
- issue_id: z38.string().describe("Linear issue id from the envelope's `issue_id`."),
23101
- agent_session_id: z38.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
23102
- prompt: z38.string().trim().min(1).describe("The latest request, in its author's words. The workspace already receives the issue and its comments.")
23289
+ var scoutLinearStartRequestSchema = z39.object({
23290
+ issue_id: z39.string().describe("Linear issue id from the envelope's `issue_id`."),
23291
+ agent_session_id: z39.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
23292
+ 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
23293
  });
23104
- var scoutRouteLinearTicketRequestSchema = z38.object({
23105
- agent_session_id: z38.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
23106
- environment_id: z38.string().trim().min(1).optional().describe("Start the ticket in this environment."),
23107
- manager_id: z38.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
23294
+ var scoutRouteLinearTicketRequestSchema = z39.object({
23295
+ agent_session_id: z39.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
23296
+ environment_id: z39.string().trim().min(1).optional().describe("Start the ticket in this environment."),
23297
+ manager_id: z39.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
23108
23298
  }).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
23109
- var slackChannelIdSchema = z38.string().describe("Slack channel id from the envelope's `channel_id`.");
23110
- var slackThreadTsSchema = z38.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
23111
- var scoutSlackMessageReferenceSchema = z38.object({
23299
+ var slackChannelIdSchema = z39.string().describe("Slack channel id from the envelope's `channel_id`.");
23300
+ var slackThreadTsSchema = z39.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
23301
+ var scoutSlackMessageReferenceSchema = z39.object({
23112
23302
  channel_id: slackChannelIdSchema,
23113
23303
  thread_ts: slackThreadTsSchema,
23114
- message_ts: z38.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23115
- user_id: z38.string().describe("Slack user id of that message's author (the envelope's `user_id`).")
23304
+ message_ts: z39.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23305
+ user_id: z39.string().describe("Slack user id of that message's author (the envelope's `user_id`).")
23116
23306
  });
23117
- var scoutSlackSpawnRequestSchema = z38.object({
23307
+ var scoutSlackSpawnRequestSchema = z39.object({
23118
23308
  channel_id: slackChannelIdSchema,
23119
23309
  thread_ts: slackThreadTsSchema,
23120
- message_ts: z38.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."),
23121
- user_id: z38.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
23122
- prompt: z38.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."),
23123
- acknowledgement_ts: z38.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."),
23124
- environment_id: z38.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.`)
23310
+ 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."),
23311
+ user_id: z39.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
23312
+ 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."),
23313
+ 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."),
23314
+ 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
23315
  });
23126
23316
  var scoutSlackSpawnInNewThreadRequestSchema = scoutSlackSpawnRequestSchema.extend({
23127
- title: z38.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
23128
- prompt: z38.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."),
23129
- acknowledgement_ts: z38.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.")
23317
+ title: z39.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
23318
+ 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."),
23319
+ 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
23320
  });
23131
- var scoutSlackRelayRequestSchema = z38.object({
23321
+ var scoutSlackRelayRequestSchema = z39.object({
23132
23322
  channel_id: slackChannelIdSchema,
23133
23323
  thread_ts: slackThreadTsSchema,
23134
- message: z38.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."),
23135
- user_id: z38.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`."),
23136
- queue: z38.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."),
23137
- workspace_id: z38.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.`),
23138
- message_ts: z38.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.")
23324
+ 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."),
23325
+ 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`."),
23326
+ 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."),
23327
+ 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.`),
23328
+ 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
23329
  });
23140
- var scoutSlackSetThreadMutedRequestSchema = z38.object({
23330
+ var scoutSlackSetThreadMutedRequestSchema = z39.object({
23141
23331
  channel_id: slackChannelIdSchema,
23142
23332
  thread_ts: slackThreadTsSchema,
23143
- muted: z38.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
23333
+ muted: z39.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
23144
23334
  });
23145
23335
  var scoutSlackStopWorkspaceRequestSchema = scoutSlackMessageReferenceSchema.extend({
23146
- archive: z38.boolean().describe("true only when the person also asked to close or archive the workspace.")
23336
+ archive: z39.boolean().describe("true only when the person also asked to close or archive the workspace.")
23147
23337
  });
23148
- var scoutListWorkspacesRequestSchema = z38.object({
23338
+ var scoutListWorkspacesRequestSchema = z39.object({
23149
23339
  channel_id: slackChannelIdSchema,
23150
23340
  thread_ts: slackThreadTsSchema,
23151
- message_ts: z38.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23152
- user_id: z38.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
23153
- query: z38.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Manager names and pull request URLs.")
23341
+ message_ts: z39.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23342
+ 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."),
23343
+ query: z39.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Manager names and pull request URLs.")
23154
23344
  });
23155
- var scoutSlackConfirmationSchema = z38.object({
23156
- confirmation_channel_id: z38.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
23157
- confirmation_thread_ts: z38.string().describe("`thread_ts` from that message's envelope."),
23158
- confirmation_message_ts: z38.string().describe("`message_ts` from that message's envelope."),
23159
- confirmation_user_id: z38.string().describe("`user_id` from that message's envelope.")
23345
+ var scoutSlackConfirmationSchema = z39.object({
23346
+ confirmation_channel_id: z39.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
23347
+ confirmation_thread_ts: z39.string().describe("`thread_ts` from that message's envelope."),
23348
+ confirmation_message_ts: z39.string().describe("`message_ts` from that message's envelope."),
23349
+ confirmation_user_id: z39.string().describe("`user_id` from that message's envelope.")
23160
23350
  });
23161
23351
  var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
23162
23352
  var scoutSettingsConfirmationSchema = scoutSlackConfirmationSchema.partial().extend({
23163
- confirmation_dashboard_token: z38.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.")
23353
+ 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
23354
  });
23165
23355
  var scoutSaveChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
23166
- preset_id: z38.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
23167
- name: z38.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
23168
- description: z38.string().optional().describe("One-line summary of what the preset is for."),
23169
- icon: z38.enum(SCOUT_PRESET_ICONS).optional(),
23170
- instructions: z38.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
23356
+ preset_id: z39.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
23357
+ name: z39.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
23358
+ description: z39.string().optional().describe("One-line summary of what the preset is for."),
23359
+ icon: z39.enum(SCOUT_PRESET_ICONS).optional(),
23360
+ instructions: z39.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
23171
23361
  });
23172
23362
  var scoutUpdateChannelSettingsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23173
- source: z38.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
23174
- external_id: z38.string().describe("Slack channel id or Linear team id."),
23175
- monitored: z38.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."),
23176
- preset_id: z38.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
23177
- instructions: z38.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them."),
23178
- proactivity: z38.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."),
23179
- silent: z38.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.`),
23180
- muted: z38.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
23363
+ source: z39.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
23364
+ external_id: z39.string().describe("Slack channel id or Linear team id."),
23365
+ 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."),
23366
+ preset_id: z39.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
23367
+ 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."),
23368
+ 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."),
23369
+ 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.`),
23370
+ muted: z39.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
23181
23371
  });
23182
23372
  var managerSlackChannelLevelToolInputSchema = scoutSlackConfirmationSchema.extend({
23183
23373
  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
23374
  });
23185
23375
  var scoutSetSlackConnectMutedToolInputSchema = scoutSettingsConfirmationSchema.extend({
23186
- muted: z38.boolean().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again.")
23376
+ 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
23377
  });
23188
23378
  var scoutSetSlackConnectDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23189
- silent: z38.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."),
23190
- muted: z38.boolean().optional().describe("Kept for older callers; prefer `silent`."),
23191
- preset_id: z38.string().optional().describe("Preset for every Slack Connect channel without its own preset or instructions; an empty string removes it. Omit to keep it."),
23192
- instructions: z38.string().optional().describe("Complete default instructions, applied after that preset; replaces the existing text. An empty string clears them. Omit to keep them."),
23193
- proactivity: z38.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.")
23379
+ 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."),
23380
+ muted: z39.boolean().optional().describe("Kept for older callers; prefer `silent`."),
23381
+ 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."),
23382
+ 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."),
23383
+ 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
23384
  });
23195
23385
  var scoutSetOrganizationProactivityToolInputSchema = scoutSettingsConfirmationSchema.extend({
23196
- proactivity: z38.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.`)
23386
+ 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
23387
  });
23198
23388
  var scoutDeleteChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
23199
- preset_id: z38.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
23389
+ preset_id: z39.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
23200
23390
  });
23201
23391
  var RESET_TO_DEFAULT = "default";
23202
- var resettable = (schema, description2) => z38.union([schema, z38.literal(RESET_TO_DEFAULT)]).optional().describe(`${description2} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
23392
+ 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
23393
  var scoutSetSlackAgentDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23204
- agent_provider: resettable(z38.enum(VALID_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
23205
- model: resettable(z38.string(), "Model id for that agent; the default is the agent's own."),
23206
- thinking_level: resettable(z38.enum(VALID_THINKING_LEVELS), "Thinking level."),
23207
- goal_mode: resettable(z38.boolean(), "Goal mode."),
23208
- fast_mode: resettable(z38.boolean(), "Fast mode.")
23394
+ 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."),
23395
+ model: resettable(z39.string(), "Model id for that agent; the default is the agent's own."),
23396
+ thinking_level: resettable(z39.enum(VALID_THINKING_LEVELS), "Thinking level."),
23397
+ goal_mode: resettable(z39.boolean(), "Goal mode."),
23398
+ fast_mode: resettable(z39.boolean(), "Fast mode.")
23209
23399
  });
23210
- var scoutClaimSettingsOfferToolInputSchema = z38.object({
23400
+ var scoutClaimSettingsOfferToolInputSchema = z39.object({
23211
23401
  channel_id: slackChannelIdSchema,
23212
- kind: z38.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."),
23213
- user_id: z38.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."),
23214
- declined: z38.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
23402
+ 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."),
23403
+ 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."),
23404
+ declined: z39.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
23215
23405
  });
23216
23406
 
23217
23407
  // ../shared/src/routes/sentry.ts
23218
- import { z as z39 } from "zod";
23219
- var sentrySelfHostedConnectRequestSchema = z39.object({
23220
- baseUrl: z39.string().min(1),
23221
- token: z39.string().trim().min(1),
23222
- webhookSecret: z39.string().trim().optional()
23408
+ import { z as z40 } from "zod";
23409
+ var sentrySelfHostedConnectRequestSchema = z40.object({
23410
+ baseUrl: z40.string().min(1),
23411
+ token: z40.string().trim().min(1),
23412
+ webhookSecret: z40.string().trim().optional()
23223
23413
  });
23224
23414
 
23225
23415
  // ../shared/src/routes/user.ts
23226
23416
  var PROFILE_AVATAR_MAX_SIZE_BYTES = 5 * 1024 * 1024;
23227
23417
 
23228
23418
  // ../shared/src/routes/web-auth.ts
23229
- import { z as z40 } from "zod";
23230
- var webAuthRedeemResponseSchema = z40.object({
23231
- path: z40.string(),
23232
- organizationId: z40.string().nullable(),
23233
- session: z40.object({ access_token: z40.string(), refresh_token: z40.string(), user: z40.object({ id: z40.string(), email: z40.string() }) }).nullable()
23419
+ import { z as z41 } from "zod";
23420
+ var webAuthRedeemResponseSchema = z41.object({
23421
+ path: z41.string(),
23422
+ organizationId: z41.string().nullable(),
23423
+ session: z41.object({ access_token: z41.string(), refresh_token: z41.string(), user: z41.object({ id: z41.string(), email: z41.string() }) }).nullable()
23234
23424
  });
23235
23425
 
23236
23426
  // ../shared/src/routes/themes.ts
23237
- import { z as z41 } from "zod";
23238
- var updateThemeRequestSchema = z41.object({ theme: z41.string(), palette: z41.string(), accent: z41.string(), code: z41.string() }).partial();
23427
+ import { z as z42 } from "zod";
23428
+ var updateThemeRequestSchema = z42.object({ theme: z42.string(), palette: z42.string(), accent: z42.string(), code: z42.string() }).partial();
23239
23429
 
23240
23430
  // ../shared/src/routes/client-state.ts
23241
23431
  var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
@@ -23261,107 +23451,107 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
23261
23451
  var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
23262
23452
 
23263
23453
  // ../shared/src/routes/workspace-events.ts
23264
- import { z as z43 } from "zod";
23454
+ import { z as z44 } from "zod";
23265
23455
 
23266
23456
  // ../shared/src/routes/presence.ts
23267
- import { z as z42 } from "zod";
23268
- var presenceStatusSchema = z42.enum(["online", "typing"]);
23269
- var presenceLocationSchema = z42.object({
23270
- workspaceId: z42.string().optional()
23457
+ import { z as z43 } from "zod";
23458
+ var presenceStatusSchema = z43.enum(["online", "typing"]);
23459
+ var presenceLocationSchema = z43.object({
23460
+ workspaceId: z43.string().optional()
23271
23461
  });
23272
- var presenceEntrySchema = z42.object({
23273
- userId: z42.string(),
23462
+ var presenceEntrySchema = z43.object({
23463
+ userId: z43.string(),
23274
23464
  status: presenceStatusSchema,
23275
23465
  location: presenceLocationSchema,
23276
- ts: z42.string()
23466
+ ts: z43.string()
23277
23467
  });
23278
- var updatePresenceRequestSchema = z42.object({
23468
+ var updatePresenceRequestSchema = z43.object({
23279
23469
  status: presenceStatusSchema,
23280
23470
  location: presenceLocationSchema.optional()
23281
23471
  });
23282
23472
 
23283
23473
  // ../shared/src/routes/workspace-events.ts
23284
- var workspaceTurnCompletionSchema = z43.object({
23285
- workspaceName: z43.string(),
23286
- completedAt: z43.string(),
23287
- processing: z43.boolean().optional(),
23288
- pullRequestFeedback: z43.boolean().optional(),
23289
- attention: z43.object({ reason: z43.enum(CHAT_ATTENTION_REASONS), userId: z43.string() }).optional()
23474
+ var workspaceTurnCompletionSchema = z44.object({
23475
+ workspaceName: z44.string(),
23476
+ completedAt: z44.string(),
23477
+ processing: z44.boolean().optional(),
23478
+ pullRequestFeedback: z44.boolean().optional(),
23479
+ attention: z44.object({ reason: z44.enum(CHAT_ATTENTION_REASONS), userId: z44.string() }).optional()
23290
23480
  });
23291
- var inputRequestRaisedSchema = z43.object({ reason: z43.enum(INPUT_REQUEST_REASONS), userId: z43.string(), chatId: z43.string(), since: z43.string() });
23292
- var workspaceEventSchemaByType = z43.discriminatedUnion("type", [
23293
- z43.object({
23294
- type: z43.literal("workspace.changed"),
23295
- workspaceId: z43.string(),
23296
- accessChangedFor: z43.string().optional(),
23297
- accessChangedForOrg: z43.literal(true).optional(),
23298
- workspace: z43.object({ status: z43.enum(WORKSPACE_STATUSES), last_activity_at: z43.string().nullable() }).optional(),
23299
- name: z43.string().optional(),
23481
+ var inputRequestRaisedSchema = z44.object({ reason: z44.enum(INPUT_REQUEST_REASONS), userId: z44.string(), chatId: z44.string(), since: z44.string() });
23482
+ var workspaceEventSchemaByType = z44.discriminatedUnion("type", [
23483
+ z44.object({
23484
+ type: z44.literal("workspace.changed"),
23485
+ workspaceId: z44.string(),
23486
+ accessChangedFor: z44.string().optional(),
23487
+ accessChangedForOrg: z44.literal(true).optional(),
23488
+ workspace: z44.object({ status: z44.enum(WORKSPACE_STATUSES), last_activity_at: z44.string().nullable() }).optional(),
23489
+ name: z44.string().optional(),
23300
23490
  completion: workspaceTurnCompletionSchema.optional(),
23301
- ts: z43.string()
23491
+ ts: z44.string()
23302
23492
  }),
23303
- z43.object({
23304
- type: z43.literal("workspace.chat.changed"),
23305
- workspaceId: z43.string(),
23306
- chatId: z43.string(),
23307
- ts: z43.string()
23493
+ z44.object({
23494
+ type: z44.literal("workspace.chat.changed"),
23495
+ workspaceId: z44.string(),
23496
+ chatId: z44.string(),
23497
+ ts: z44.string()
23308
23498
  }),
23309
- z43.object({
23310
- type: z43.literal("workspace.chat.advanced"),
23311
- workspaceId: z43.string(),
23312
- chatId: z43.string(),
23313
- afterCursor: z43.string().optional(),
23314
- processing: z43.boolean(),
23315
- ts: z43.string()
23499
+ z44.object({
23500
+ type: z44.literal("workspace.chat.advanced"),
23501
+ workspaceId: z44.string(),
23502
+ chatId: z44.string(),
23503
+ afterCursor: z44.string().optional(),
23504
+ processing: z44.boolean(),
23505
+ ts: z44.string()
23316
23506
  }),
23317
- z43.object({
23318
- type: z43.literal("mobile-testing.changed"),
23319
- workspaceId: z43.string(),
23320
- ts: z43.string()
23507
+ z44.object({
23508
+ type: z44.literal("mobile-testing.changed"),
23509
+ workspaceId: z44.string(),
23510
+ ts: z44.string()
23321
23511
  }),
23322
- z43.object({
23323
- type: z43.literal("variable-request.changed"),
23324
- workspaceId: z43.string(),
23325
- ts: z43.string()
23512
+ z44.object({
23513
+ type: z44.literal("variable-request.changed"),
23514
+ workspaceId: z44.string(),
23515
+ ts: z44.string()
23326
23516
  }),
23327
- z43.object({
23328
- type: z43.literal("local-control-request.changed"),
23329
- workspaceId: z43.string(),
23330
- ts: z43.string()
23517
+ z44.object({
23518
+ type: z44.literal("local-control-request.changed"),
23519
+ workspaceId: z44.string(),
23520
+ ts: z44.string()
23331
23521
  }),
23332
- z43.object({
23333
- type: z43.literal("pull-request.changed"),
23334
- prUrl: z43.string(),
23335
- ts: z43.string()
23522
+ z44.object({
23523
+ type: z44.literal("pull-request.changed"),
23524
+ prUrl: z44.string(),
23525
+ ts: z44.string()
23336
23526
  }),
23337
- z43.object({
23338
- type: z43.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
23339
- workspaceId: z43.string(),
23340
- subagent: z43.object({ id: z43.string(), name: z43.string(), prUrl: z43.string().nullable() }),
23341
- ts: z43.string()
23527
+ z44.object({
23528
+ type: z44.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
23529
+ workspaceId: z44.string(),
23530
+ subagent: z44.object({ id: z44.string(), name: z44.string(), prUrl: z44.string().nullable() }),
23531
+ ts: z44.string()
23342
23532
  }),
23343
- z43.object({ type: z43.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z43.string(), ts: z43.string() }),
23344
- z43.object({ type: z43.literal("issues.synced"), syncId: z43.number(), ts: z43.string() }),
23345
- z43.object({ type: z43.literal("needs-you.changed"), workspaceId: z43.string().nullable(), userId: z43.string().optional(), request: inputRequestRaisedSchema.optional(), ts: z43.string() }),
23346
- z43.object({
23347
- type: z43.literal("workspace.shared"),
23348
- workspaceId: z43.string(),
23349
- workspaceName: z43.string(),
23350
- sharedWithUserId: z43.string(),
23351
- sharedByName: z43.string(),
23352
- ts: z43.string()
23533
+ z44.object({ type: z44.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z44.string(), ts: z44.string() }),
23534
+ z44.object({ type: z44.literal("issues.synced"), syncId: z44.number(), ts: z44.string() }),
23535
+ z44.object({ type: z44.literal("needs-you.changed"), workspaceId: z44.string().nullable(), userId: z44.string().optional(), request: inputRequestRaisedSchema.optional(), ts: z44.string() }),
23536
+ z44.object({
23537
+ type: z44.literal("workspace.shared"),
23538
+ workspaceId: z44.string(),
23539
+ workspaceName: z44.string(),
23540
+ sharedWithUserId: z44.string(),
23541
+ sharedByName: z44.string(),
23542
+ ts: z44.string()
23353
23543
  }),
23354
- z43.object({ type: z43.literal("client-state.changed"), userId: z43.string(), keys: z43.array(z43.string()), ts: z43.string() })
23544
+ z44.object({ type: z44.literal("client-state.changed"), userId: z44.string(), keys: z44.array(z44.string()), ts: z44.string() })
23355
23545
  ]);
23356
- var workspaceChangedEventSchema = z43.union([
23546
+ var workspaceChangedEventSchema = z44.union([
23357
23547
  workspaceEventSchemaByType,
23358
- z43.object({ type: z43.literal("presence.changed"), userId: z43.string(), entry: presenceEntrySchema.nullable(), ts: z43.string() }),
23359
- z43.object({ type: z43.literal("presence.changed"), ts: z43.string() })
23548
+ z44.object({ type: z44.literal("presence.changed"), userId: z44.string(), entry: presenceEntrySchema.nullable(), ts: z44.string() }),
23549
+ z44.object({ type: z44.literal("presence.changed"), ts: z44.string() })
23360
23550
  ]);
23361
23551
 
23362
23552
  // ../shared/src/routes/review-messages.ts
23363
- import { z as z44 } from "zod";
23364
- var sendPullRequestReviewMessageRequestSchema = z44.object({
23553
+ import { z as z45 } from "zod";
23554
+ var sendPullRequestReviewMessageRequestSchema = z45.object({
23365
23555
  ...sendChatMessageRequestSchema.pick({
23366
23556
  message: true,
23367
23557
  messageId: true,
@@ -23374,8 +23564,8 @@ var sendPullRequestReviewMessageRequestSchema = z44.object({
23374
23564
  ultrafastMode: true
23375
23565
  }).shape,
23376
23566
  /** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
23377
- newChat: z44.boolean().optional(),
23378
- provider: z44.enum(VALID_AGENT_PROVIDERS).optional()
23567
+ newChat: z45.boolean().optional(),
23568
+ provider: z45.enum(VALID_AGENT_PROVIDERS).optional()
23379
23569
  });
23380
23570
 
23381
23571
  // ../shared/src/audit-log.ts
@@ -24097,40 +24287,40 @@ function isSkillRegistryManifest(value) {
24097
24287
  }
24098
24288
 
24099
24289
  // ../shared/src/routes/variable-requests.ts
24100
- import { z as z45 } from "zod";
24290
+ import { z as z46 } from "zod";
24101
24291
  var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
24102
24292
  var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
24103
- var requestedVariableSchema = z45.object({
24104
- key: z45.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
24105
- required: z45.boolean(),
24106
- replace: z45.boolean().optional()
24293
+ var requestedVariableSchema = z46.object({
24294
+ key: z46.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
24295
+ required: z46.boolean(),
24296
+ replace: z46.boolean().optional()
24107
24297
  });
24108
- var requestedVariablesSchema = z45.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");
24109
- var createVariableRequestSchema = z45.object({
24298
+ 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");
24299
+ var createVariableRequestSchema = z46.object({
24110
24300
  variables: requestedVariablesSchema,
24111
- reason: z45.string().trim().max(500).nullish().transform((value) => value || null),
24112
- wait: z45.boolean().default(true)
24301
+ reason: z46.string().trim().max(500).nullish().transform((value) => value || null),
24302
+ wait: z46.boolean().default(true)
24113
24303
  });
24114
- var respondVariableRequestSchema = z45.discriminatedUnion("action", [
24115
- z45.object({
24116
- action: z45.literal("provide"),
24117
- destination: z45.enum(VARIABLE_REQUEST_DESTINATIONS),
24304
+ var respondVariableRequestSchema = z46.discriminatedUnion("action", [
24305
+ z46.object({
24306
+ action: z46.literal("provide"),
24307
+ destination: z46.enum(VARIABLE_REQUEST_DESTINATIONS),
24118
24308
  /** Defaults to the workspace's environment, so older clients keep saving there. */
24119
- environment_ids: z45.array(z45.string().uuid()).optional(),
24120
- overwrite: z45.boolean().optional(),
24121
- values: z45.record(z45.string().regex(VARIABLE_KEY_RE), z45.string())
24309
+ environment_ids: z46.array(z46.string().uuid()).optional(),
24310
+ overwrite: z46.boolean().optional(),
24311
+ values: z46.record(z46.string().regex(VARIABLE_KEY_RE), z46.string())
24122
24312
  }),
24123
- z45.object({ action: z45.literal("skip") })
24313
+ z46.object({ action: z46.literal("skip") })
24124
24314
  ]);
24125
24315
 
24126
24316
  // ../shared/src/routes/local-control-requests.ts
24127
- import { z as z46 } from "zod";
24128
- var createLocalControlRequestSchema = z46.object({
24129
- reason: z46.string().trim().max(500).optional().transform((value) => value || null),
24130
- wait: z46.boolean().default(true)
24317
+ import { z as z47 } from "zod";
24318
+ var createLocalControlRequestSchema = z47.object({
24319
+ reason: z47.string().trim().max(500).optional().transform((value) => value || null),
24320
+ wait: z47.boolean().default(true)
24131
24321
  });
24132
- var respondLocalControlRequestSchema = z46.object({ action: z46.enum(["allow", "dismiss"]) });
24133
- var setLocalControlSchema = z46.object({ enabled: z46.boolean() });
24322
+ var respondLocalControlRequestSchema = z47.object({ action: z47.enum(["allow", "dismiss"]) });
24323
+ var setLocalControlSchema = z47.object({ enabled: z47.boolean() });
24134
24324
 
24135
24325
  export {
24136
24326
  ENGINE_SEND_MESSAGE_FAILED_ERROR,
@@ -24211,6 +24401,7 @@ export {
24211
24401
  DEFAULT_OPENCODE_MODEL,
24212
24402
  DEFAULT_MUSE_MODEL,
24213
24403
  DEFAULT_PI_MODEL,
24404
+ DEFAULT_GEMINI_MODEL,
24214
24405
  getDefaultAgentModel,
24215
24406
  normalizeClaudeModel,
24216
24407
  getClaudeModelContextWindow,
@@ -24395,6 +24586,7 @@ export {
24395
24586
  canonicalizeChatTranscriptBlocks,
24396
24587
  lastUserBlockText,
24397
24588
  percentage,
24589
+ providerContextUsage,
24398
24590
  autoCompactThresholdField,
24399
24591
  normalizeAutoCompactThreshold,
24400
24592
  clampTokensToWindow,
@@ -24428,9 +24620,11 @@ export {
24428
24620
  parseProxyRouteCheck,
24429
24621
  headlessAgentRequestSchema,
24430
24622
  headlessAgentUsagePath,
24623
+ isAuthenticationErrorText,
24431
24624
  isClaudeAuthErrorText,
24432
24625
  isCodexAuthError,
24433
24626
  serializeMuseAuthFile,
24627
+ serializeGeminiAuthFile,
24434
24628
  isVersionBelow,
24435
24629
  hasChatStarted,
24436
24630
  EXEC_SOCKET_PATH,