replicas-engine 0.1.1723 → 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.
@@ -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"],
@@ -9686,8 +9691,7 @@ var managerSubagentSettingsSchema = z4.object({
9686
9691
  model: z4.string().nullable(),
9687
9692
  thinking_level: z4.enum(VALID_THINKING_LEVELS).nullable(),
9688
9693
  service_tier: z4.enum(SUBAGENT_SERVICE_TIERS),
9689
- goal_mode: z4.boolean(),
9690
- plan_mode: z4.boolean()
9694
+ goal_mode: z4.boolean()
9691
9695
  });
9692
9696
  var QUEUE_SECTIONS = [
9693
9697
  { label: "Open PRs", groups: ["needs_you", "ready_to_merge", "ready_to_review"] },
@@ -10063,6 +10067,7 @@ var DEFAULT_CHAT_TITLES = {
10063
10067
  claude: "Claude Code",
10064
10068
  codex: "Codex",
10065
10069
  cursor: "Cursor",
10070
+ gemini: "Gemini",
10066
10071
  muse: "Muse Code",
10067
10072
  opencode: "Opencode",
10068
10073
  pi: "Pi",
@@ -10104,6 +10109,7 @@ var MUSE_WONDER_1_0_MODEL = "muse-wonder-1.0";
10104
10109
  var MUSE_SPARK_1_3_MODEL = "muse-spark-1.3";
10105
10110
  var DEFAULT_MUSE_MODEL = "muse-spark-1.2";
10106
10111
  var DEFAULT_PI_MODEL = DEFAULT_OPENCODE_MODEL;
10112
+ var DEFAULT_GEMINI_MODEL = "gemini-3.8-flash";
10107
10113
  var DEFAULT_OPENROUTER_MODELS = [
10108
10114
  DEFAULT_OPENCODE_MODEL,
10109
10115
  DEEPSEEK_V4_PRO_MODEL,
@@ -10121,6 +10127,7 @@ var FALLBACK_AGENT_MODEL = {
10121
10127
  claude: DEFAULT_CLAUDE_MODEL,
10122
10128
  codex: DEFAULT_CODEX_MODEL,
10123
10129
  cursor: DEFAULT_CURSOR_MODEL,
10130
+ gemini: DEFAULT_GEMINI_MODEL,
10124
10131
  muse: DEFAULT_MUSE_MODEL,
10125
10132
  opencode: DEFAULT_OPENCODE_MODEL,
10126
10133
  pi: DEFAULT_PI_MODEL,
@@ -10239,6 +10246,21 @@ var AGENT_MODELS = {
10239
10246
  CLAUDE_HAIKU_4_5_MODEL,
10240
10247
  "kimi-k2.5"
10241
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
+ ],
10242
10264
  muse: [MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
10243
10265
  opencode: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
10244
10266
  pi: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS]
@@ -10327,6 +10349,15 @@ var MODEL_LABELS = {
10327
10349
  "xiaomi/mimo-v2.5-pro": "MiMo V2.5 Pro via OpenRouter",
10328
10350
  "moonshotai/kimi-k2.6": "Kimi K2.6 via OpenRouter",
10329
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",
10330
10361
  [MUSE_WONDER_1_0_MODEL]: "Muse Wonder 1.0",
10331
10362
  [MUSE_SPARK_1_3_MODEL]: "Muse Spark 1.3",
10332
10363
  [DEFAULT_MUSE_MODEL]: "Muse Spark 1.2",
@@ -10751,7 +10782,8 @@ var CREDENTIAL_METHOD = {
10751
10782
  OPENCODE_GO: "opencode-go",
10752
10783
  ASTER: "aster",
10753
10784
  OPENROUTER: "openrouter",
10754
- MUSE_OAUTH: "muse-oauth"
10785
+ MUSE_OAUTH: "muse-oauth",
10786
+ GEMINI_OAUTH: "gemini-oauth"
10755
10787
  };
10756
10788
  var CREDENTIAL_TYPE = {
10757
10789
  CLAUDE_OAUTH: "claude",
@@ -10769,7 +10801,8 @@ var CREDENTIAL_TYPE = {
10769
10801
  ASTER_API_KEY: "aster_api_key",
10770
10802
  OPENROUTER_API_KEY: "openrouter_api_key",
10771
10803
  MUSE_OAUTH: "muse_oauth",
10772
- MUSE_API_KEY: "muse_api_key"
10804
+ MUSE_API_KEY: "muse_api_key",
10805
+ GEMINI_OAUTH: "gemini_oauth"
10773
10806
  };
10774
10807
  var ENVIRONMENT_AUTH_REQUIRED_KEYS = {
10775
10808
  [AGENT.CLAUDE]: [
@@ -10811,6 +10844,9 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
10811
10844
  [AGENT.CURSOR]: [
10812
10845
  { method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.CURSOR_API_KEY }
10813
10846
  ],
10847
+ [AGENT.GEMINI]: [
10848
+ { method: CREDENTIAL_METHOD.GEMINI_OAUTH, credentialType: CREDENTIAL_TYPE.GEMINI_OAUTH }
10849
+ ],
10814
10850
  [AGENT.MUSE]: [
10815
10851
  { method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH },
10816
10852
  { method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.MUSE_API_KEY }
@@ -10860,6 +10896,8 @@ function getCredentialMethodLabel(agent, method) {
10860
10896
  return INFERENCE_PROVIDER_LABELS[method];
10861
10897
  case CREDENTIAL_METHOD.MUSE_OAUTH:
10862
10898
  return "Muse account";
10899
+ case CREDENTIAL_METHOD.GEMINI_OAUTH:
10900
+ return "Google account";
10863
10901
  }
10864
10902
  }
10865
10903
 
@@ -11260,7 +11298,6 @@ var sendChatMessageRequestSchema = z9.object({
11260
11298
  provider: z9.enum(ENGINE_AGENT_PROVIDERS).optional(),
11261
11299
  model: z9.string().optional(),
11262
11300
  customInstructions: z9.string().optional(),
11263
- planMode: z9.boolean().optional(),
11264
11301
  images: z9.array(z9.object({
11265
11302
  type: z9.literal("image"),
11266
11303
  source: z9.discriminatedUnion("type", [
@@ -12583,10 +12620,15 @@ var restingCredentialsSchema = z20.object({
12583
12620
  scope: z20.enum(CREDENTIAL_SCOPE).optional(),
12584
12621
  resetsAt: z20.string()
12585
12622
  });
12623
+ var agentLoginWithdrawalSchema = z20.object({
12624
+ envKeys: z20.array(z20.string()),
12625
+ files: z20.array(z20.string())
12626
+ });
12586
12627
  var engineCredentialRefreshFailureSchema = z20.object({
12587
12628
  code: z20.string(),
12588
12629
  credential: workspaceCredentialSelectionSchema.optional(),
12589
- resting: restingCredentialsSchema.optional()
12630
+ resting: restingCredentialsSchema.optional(),
12631
+ revoke: agentLoginWithdrawalSchema.optional()
12590
12632
  });
12591
12633
 
12592
12634
  // ../shared/src/credential-pool.ts
@@ -12617,6 +12659,11 @@ var PROVIDER_ICON_DEFINITIONS = {
12617
12659
  viewBox: "640 340 320 320",
12618
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"]
12619
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
+ },
12620
12667
  muse: {
12621
12668
  viewBox: "0 0 24 24",
12622
12669
  paths: ["M3 4h4.5l4.5 7.2L16.5 4H21v16h-4V10.5l-5 7.5-5-7.5V20H3V4Z"],
@@ -16266,7 +16313,6 @@ var automationToolInputSchema = z28.object({
16266
16313
  `One or more triggers. Cron: \`{ "type": "cron", "config": { "schedule": "0 9 * * 1", "timezone": "America/New_York" } }\`. GitHub: \`{ "type": "github", "config": { "event": "pull_request.opened", "repository_ids": ["<repository uuid>"] } }\`. Linear: \`{ "type": "linear", "config": { "event": "${LINEAR_ISSUE_STATE_CHANGED_EVENT}", "state_types": ["completed"] } }\`.`
16267
16314
  ),
16268
16315
  description: z28.string().optional().describe("One-line summary shown in the dashboard."),
16269
- plan_mode: z28.boolean().optional(),
16270
16316
  goal_mode: z28.boolean().optional(),
16271
16317
  fast_mode: z28.boolean().optional(),
16272
16318
  workspace_lifecycle_policy: z28.enum(AUTOMATION_LIFECYCLE_POLICIES).optional().describe(
@@ -19846,6 +19892,125 @@ function parseMuseEvents(events) {
19846
19892
  return messages;
19847
19893
  }
19848
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
+
19849
20014
  // ../shared/src/display-message/parsers/pi-parser.ts
19850
20015
  function nestedPayload(event) {
19851
20016
  return isRecord(event.payload.assistantMessageEvent) ? event.payload.assistantMessageEvent : event.payload;
@@ -20851,6 +21016,9 @@ function parseProviderEvents(events, agentType, parentToolUseId) {
20851
21016
  if (agentType === "cursor") {
20852
21017
  return parseCursorEvents(events);
20853
21018
  }
21019
+ if (agentType === "gemini") {
21020
+ return parseGeminiEvents(events);
21021
+ }
20854
21022
  if (agentType === "muse") {
20855
21023
  return parseMuseEvents(events);
20856
21024
  }
@@ -21809,7 +21977,7 @@ async function withRetry(label, fn, options) {
21809
21977
  }
21810
21978
 
21811
21979
  // ../shared/src/tensorlake.ts
21812
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-21-v19";
21980
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v7918";
21813
21981
  var TENSORLAKE_DISK_MB = 100 * 1024;
21814
21982
 
21815
21983
  // ../shared/src/egress.ts
@@ -21931,12 +22099,6 @@ function createProviderSlashCommand(provider2, name, description2, argumentHint)
21931
22099
  }
21932
22100
  var SIDE_CHAT_COMMANDS = ["/btw", "/side"];
21933
22101
  var SLASH_COMMANDS = [
21934
- {
21935
- command: "/plan",
21936
- description: "Switch to plan mode and optionally send a prompt.",
21937
- argumentHint: "[prompt]",
21938
- providers: ["claude", "codex", "cursor", "muse", "opencode", "pi"]
21939
- },
21940
22102
  {
21941
22103
  command: "/fast",
21942
22104
  description: "Use the fast service tier for future turns.",
@@ -22097,7 +22259,6 @@ var KEYBOARD_SHORTCUTS = {
22097
22259
  send: { label: "Send", group: "Composer", keys: { key: "Enter" }, fixed: true },
22098
22260
  sendAlternate: { label: "Queue or steer instead", group: "Composer", keys: { key: "Enter", alt: true }, fixed: true },
22099
22261
  newLine: { label: "New line", group: "Composer", keys: { key: "Enter", shift: true }, fixed: true },
22100
- toggleTaskMode: { label: "Switch Plan / Build", group: "Composer", keys: { key: "Tab", shift: true } },
22101
22262
  toggleVoiceInput: { label: "Voice input", group: "Composer", keys: { key: " ", mod: true, shift: true } },
22102
22263
  previousPrompt: { label: "Previous prompt", group: "Composer", keys: { key: "ArrowUp" }, fixed: true },
22103
22264
  searchPromptHistory: { label: "Search prompt history", group: "Composer", keys: { key: "r", ctrl: true } },
@@ -22538,6 +22699,22 @@ function serializeMuseAuthFile(credentials) {
22538
22699
  }, null, 2);
22539
22700
  }
22540
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
+
22541
22718
  // ../shared/src/version.ts
22542
22719
  function compareVersions(v1, v2) {
22543
22720
  const parts1 = v1.split(".").map(Number);
@@ -22573,17 +22750,17 @@ var RECONNECT_GIVE_UP_MS = 2 * 6e4;
22573
22750
  var encoder3 = new TextEncoder();
22574
22751
 
22575
22752
  // ../shared/src/routes/billing.ts
22576
- import { z as z36 } from "zod";
22753
+ import { z as z37 } from "zod";
22577
22754
  var CREDIT_PURCHASE_MIN_CENTS = 5e3;
22578
22755
  var CREDIT_PURCHASE_MAX_CENTS = 1e6;
22579
22756
  var AUTO_RELOAD_THRESHOLD_MIN_CENTS = 1e3;
22580
- var autoReloadAmountsSchema = z36.object({
22581
- thresholdCents: z36.number().int().multipleOf(100).min(AUTO_RELOAD_THRESHOLD_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS),
22582
- amountCents: z36.number().int().multipleOf(100).min(CREDIT_PURCHASE_MIN_CENTS).max(CREDIT_PURCHASE_MAX_CENTS)
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)
22583
22760
  });
22584
22761
  var SOURCE_LIMIT_SOURCES = ["limrun", "modal", "revyl", "inference"];
22585
- var usageLimitCentsSchema = z36.number().int().min(100).max(1e8);
22586
- var sourceLimitsCentsSchema = z36.partialRecord(z36.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
22762
+ var usageLimitCentsSchema = z37.number().int().min(100).max(1e8);
22763
+ var sourceLimitsCentsSchema = z37.partialRecord(z37.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
22587
22764
 
22588
22765
  // ../shared/src/routes/codex.ts
22589
22766
  var CODEX_AUTH_ENV_KEYS = [
@@ -22737,7 +22914,7 @@ var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
22737
22914
  };
22738
22915
 
22739
22916
  // ../shared/src/routes/command-protection.ts
22740
- import { z as z37 } from "zod";
22917
+ import { z as z38 } from "zod";
22741
22918
 
22742
22919
  // ../shared/src/git-invocations.ts
22743
22920
  var COMMIT_VALUE_OPTIONS = /* @__PURE__ */ new Set(["message", "file", "trailer", "reuse-message", "reedit-message", "fixup", "squash", "template", "author", "date", "cleanup", "pathspec-from-file"]);
@@ -22828,34 +23005,34 @@ function findCheckoutTarget(args) {
22828
23005
  }
22829
23006
 
22830
23007
  // ../shared/src/routes/command-protection.ts
22831
- var commandProtectionRepoStateSchema = z37.object({
22832
- branch: z37.string().nullable(),
22833
- defaultBranch: z37.string().nullable(),
22834
- pushBranch: z37.string().nullable(),
22835
- pushConfig: z37.string().nullable(),
22836
- headMessage: z37.string().nullable(),
22837
- mergeInProgress: z37.boolean().optional()
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()
22838
23015
  });
22839
- var commandProtectionEvaluateRequestSchema = z37.object({
22840
- provider: z37.enum(["claude", "codex", "cursor", "opencode", "pi", "harness"]),
22841
- source: z37.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call", "harness_tool_call"]),
22842
- toolName: z37.string(),
22843
- toolInput: z37.unknown(),
22844
- command: z37.string().nullish(),
22845
- cwd: z37.string().nullish(),
22846
- toolUseId: z37.string().nullish(),
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(),
22847
23024
  // Read by the engine before the command runs, keyed by absolute path, so the
22848
23025
  // policy can see branches and commit messages the command text only references.
22849
- gitContext: z37.object({
22850
- repos: z37.record(z37.string(), commandProtectionRepoStateSchema),
22851
- messageFiles: z37.record(z37.string(), z37.string())
23026
+ gitContext: z38.object({
23027
+ repos: z38.record(z38.string(), commandProtectionRepoStateSchema),
23028
+ messageFiles: z38.record(z38.string(), z38.string())
22852
23029
  }).optional()
22853
23030
  });
22854
- var commandProtectionEvaluateResponseSchema = z37.object({
22855
- allowed: z37.boolean(),
22856
- enabled: z37.boolean(),
22857
- reason: z37.string().optional(),
22858
- matchedSignals: z37.array(z37.string()).optional()
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()
22859
23036
  });
22860
23037
  var COMMAND_PROTECTION_COMMAND_KEYS = ["command", "cmd", "script", "query", "endpoint", "path", "url", "mutation"];
22861
23038
  function stringifyCommandProtectionInput(value) {
@@ -23100,152 +23277,152 @@ function shouldRefreshPullRequests(toolName, toolInput) {
23100
23277
  }
23101
23278
 
23102
23279
  // ../shared/src/routes/scout.ts
23103
- import { z as z38 } from "zod";
23280
+ import { z as z39 } from "zod";
23104
23281
  var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
23105
- var scoutLinearSessionIntentRequestSchema = z38.object({
23106
- comment_id: z38.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
23107
- action: z38.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it hands off the task.")
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.")
23108
23285
  });
23109
- var scoutLinearStartRequestSchema = z38.object({
23110
- issue_id: z38.string().describe("Linear issue id from the envelope's `issue_id`."),
23111
- agent_session_id: z38.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
23112
- prompt: z38.string().trim().min(1).describe("The latest request, in its author's words. The workspace already receives the issue and its comments.")
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.")
23113
23290
  });
23114
- var scoutRouteLinearTicketRequestSchema = z38.object({
23115
- agent_session_id: z38.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
23116
- environment_id: z38.string().trim().min(1).optional().describe("Start the ticket in this environment."),
23117
- manager_id: z38.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
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.")
23118
23295
  }).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
23119
- var slackChannelIdSchema = z38.string().describe("Slack channel id from the envelope's `channel_id`.");
23120
- var slackThreadTsSchema = z38.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
23121
- var scoutSlackMessageReferenceSchema = z38.object({
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({
23122
23299
  channel_id: slackChannelIdSchema,
23123
23300
  thread_ts: slackThreadTsSchema,
23124
- message_ts: z38.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23125
- user_id: z38.string().describe("Slack user id of that message's author (the envelope's `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`).")
23126
23303
  });
23127
- var scoutSlackSpawnRequestSchema = z38.object({
23304
+ var scoutSlackSpawnRequestSchema = z39.object({
23128
23305
  channel_id: slackChannelIdSchema,
23129
23306
  thread_ts: slackThreadTsSchema,
23130
- 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."),
23131
- user_id: z38.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
23132
- 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."),
23133
- 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."),
23134
- 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.`)
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.`)
23135
23312
  });
23136
23313
  var scoutSlackSpawnInNewThreadRequestSchema = scoutSlackSpawnRequestSchema.extend({
23137
- title: z38.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
23138
- 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."),
23139
- 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.")
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.")
23140
23317
  });
23141
- var scoutSlackRelayRequestSchema = z38.object({
23318
+ var scoutSlackRelayRequestSchema = z39.object({
23142
23319
  channel_id: slackChannelIdSchema,
23143
23320
  thread_ts: slackThreadTsSchema,
23144
- 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."),
23145
- 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`."),
23146
- 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."),
23147
- 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.`),
23148
- 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.")
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.")
23149
23326
  });
23150
- var scoutSlackSetThreadMutedRequestSchema = z38.object({
23327
+ var scoutSlackSetThreadMutedRequestSchema = z39.object({
23151
23328
  channel_id: slackChannelIdSchema,
23152
23329
  thread_ts: slackThreadTsSchema,
23153
- muted: z38.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
23330
+ muted: z39.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
23154
23331
  });
23155
23332
  var scoutSlackStopWorkspaceRequestSchema = scoutSlackMessageReferenceSchema.extend({
23156
- archive: z38.boolean().describe("true only when the person also asked to close or archive the workspace.")
23333
+ archive: z39.boolean().describe("true only when the person also asked to close or archive the workspace.")
23157
23334
  });
23158
- var scoutListWorkspacesRequestSchema = z38.object({
23335
+ var scoutListWorkspacesRequestSchema = z39.object({
23159
23336
  channel_id: slackChannelIdSchema,
23160
23337
  thread_ts: slackThreadTsSchema,
23161
- message_ts: z38.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
23162
- 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."),
23163
- query: z38.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Manager names and pull request URLs.")
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.")
23164
23341
  });
23165
- var scoutSlackConfirmationSchema = z38.object({
23166
- confirmation_channel_id: z38.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
23167
- confirmation_thread_ts: z38.string().describe("`thread_ts` from that message's envelope."),
23168
- confirmation_message_ts: z38.string().describe("`message_ts` from that message's envelope."),
23169
- confirmation_user_id: z38.string().describe("`user_id` from that message's envelope.")
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.")
23170
23347
  });
23171
23348
  var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
23172
23349
  var scoutSettingsConfirmationSchema = scoutSlackConfirmationSchema.partial().extend({
23173
- 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.")
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.")
23174
23351
  });
23175
23352
  var scoutSaveChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
23176
- preset_id: z38.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
23177
- name: z38.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
23178
- description: z38.string().optional().describe("One-line summary of what the preset is for."),
23179
- icon: z38.enum(SCOUT_PRESET_ICONS).optional(),
23180
- instructions: z38.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
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.")
23181
23358
  });
23182
23359
  var scoutUpdateChannelSettingsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23183
- source: z38.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
23184
- external_id: z38.string().describe("Slack channel id or Linear team id."),
23185
- 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."),
23186
- preset_id: z38.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
23187
- 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."),
23188
- 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."),
23189
- 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.`),
23190
- muted: z38.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
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`.")
23191
23368
  });
23192
23369
  var managerSlackChannelLevelToolInputSchema = scoutSlackConfirmationSchema.extend({
23193
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`.")
23194
23371
  });
23195
23372
  var scoutSetSlackConnectMutedToolInputSchema = scoutSettingsConfirmationSchema.extend({
23196
- muted: z38.boolean().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again.")
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.")
23197
23374
  });
23198
23375
  var scoutSetSlackConnectDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23199
- 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."),
23200
- muted: z38.boolean().optional().describe("Kept for older callers; prefer `silent`."),
23201
- 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."),
23202
- 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."),
23203
- 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.")
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.")
23204
23381
  });
23205
23382
  var scoutSetOrganizationProactivityToolInputSchema = scoutSettingsConfirmationSchema.extend({
23206
- 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.`)
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.`)
23207
23384
  });
23208
23385
  var scoutDeleteChannelPresetToolInputSchema = scoutSettingsConfirmationSchema.extend({
23209
- preset_id: z38.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
23386
+ preset_id: z39.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
23210
23387
  });
23211
23388
  var RESET_TO_DEFAULT = "default";
23212
- 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.`);
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.`);
23213
23390
  var scoutSetSlackAgentDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
23214
- 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."),
23215
- model: resettable(z38.string(), "Model id for that agent; the default is the agent's own."),
23216
- thinking_level: resettable(z38.enum(VALID_THINKING_LEVELS), "Thinking level."),
23217
- goal_mode: resettable(z38.boolean(), "Goal mode."),
23218
- fast_mode: resettable(z38.boolean(), "Fast mode.")
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.")
23219
23396
  });
23220
- var scoutClaimSettingsOfferToolInputSchema = z38.object({
23397
+ var scoutClaimSettingsOfferToolInputSchema = z39.object({
23221
23398
  channel_id: slackChannelIdSchema,
23222
- 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."),
23223
- 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."),
23224
- declined: z38.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
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.")
23225
23402
  });
23226
23403
 
23227
23404
  // ../shared/src/routes/sentry.ts
23228
- import { z as z39 } from "zod";
23229
- var sentrySelfHostedConnectRequestSchema = z39.object({
23230
- baseUrl: z39.string().min(1),
23231
- token: z39.string().trim().min(1),
23232
- webhookSecret: z39.string().trim().optional()
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()
23233
23410
  });
23234
23411
 
23235
23412
  // ../shared/src/routes/user.ts
23236
23413
  var PROFILE_AVATAR_MAX_SIZE_BYTES = 5 * 1024 * 1024;
23237
23414
 
23238
23415
  // ../shared/src/routes/web-auth.ts
23239
- import { z as z40 } from "zod";
23240
- var webAuthRedeemResponseSchema = z40.object({
23241
- path: z40.string(),
23242
- organizationId: z40.string().nullable(),
23243
- session: z40.object({ access_token: z40.string(), refresh_token: z40.string(), user: z40.object({ id: z40.string(), email: z40.string() }) }).nullable()
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()
23244
23421
  });
23245
23422
 
23246
23423
  // ../shared/src/routes/themes.ts
23247
- import { z as z41 } from "zod";
23248
- var updateThemeRequestSchema = z41.object({ theme: z41.string(), palette: z41.string(), accent: z41.string(), code: z41.string() }).partial();
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();
23249
23426
 
23250
23427
  // ../shared/src/routes/client-state.ts
23251
23428
  var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
@@ -23271,107 +23448,107 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
23271
23448
  var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
23272
23449
 
23273
23450
  // ../shared/src/routes/workspace-events.ts
23274
- import { z as z43 } from "zod";
23451
+ import { z as z44 } from "zod";
23275
23452
 
23276
23453
  // ../shared/src/routes/presence.ts
23277
- import { z as z42 } from "zod";
23278
- var presenceStatusSchema = z42.enum(["online", "typing"]);
23279
- var presenceLocationSchema = z42.object({
23280
- workspaceId: z42.string().optional()
23454
+ import { z as z43 } from "zod";
23455
+ var presenceStatusSchema = z43.enum(["online", "typing"]);
23456
+ var presenceLocationSchema = z43.object({
23457
+ workspaceId: z43.string().optional()
23281
23458
  });
23282
- var presenceEntrySchema = z42.object({
23283
- userId: z42.string(),
23459
+ var presenceEntrySchema = z43.object({
23460
+ userId: z43.string(),
23284
23461
  status: presenceStatusSchema,
23285
23462
  location: presenceLocationSchema,
23286
- ts: z42.string()
23463
+ ts: z43.string()
23287
23464
  });
23288
- var updatePresenceRequestSchema = z42.object({
23465
+ var updatePresenceRequestSchema = z43.object({
23289
23466
  status: presenceStatusSchema,
23290
23467
  location: presenceLocationSchema.optional()
23291
23468
  });
23292
23469
 
23293
23470
  // ../shared/src/routes/workspace-events.ts
23294
- var workspaceTurnCompletionSchema = z43.object({
23295
- workspaceName: z43.string(),
23296
- completedAt: z43.string(),
23297
- processing: z43.boolean().optional(),
23298
- pullRequestFeedback: z43.boolean().optional(),
23299
- attention: z43.object({ reason: z43.enum(CHAT_ATTENTION_REASONS), userId: z43.string() }).optional()
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()
23300
23477
  });
23301
- var inputRequestRaisedSchema = z43.object({ reason: z43.enum(INPUT_REQUEST_REASONS), userId: z43.string(), chatId: z43.string(), since: z43.string() });
23302
- var workspaceEventSchemaByType = z43.discriminatedUnion("type", [
23303
- z43.object({
23304
- type: z43.literal("workspace.changed"),
23305
- workspaceId: z43.string(),
23306
- accessChangedFor: z43.string().optional(),
23307
- accessChangedForOrg: z43.literal(true).optional(),
23308
- workspace: z43.object({ status: z43.enum(WORKSPACE_STATUSES), last_activity_at: z43.string().nullable() }).optional(),
23309
- name: z43.string().optional(),
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(),
23310
23487
  completion: workspaceTurnCompletionSchema.optional(),
23311
- ts: z43.string()
23488
+ ts: z44.string()
23312
23489
  }),
23313
- z43.object({
23314
- type: z43.literal("workspace.chat.changed"),
23315
- workspaceId: z43.string(),
23316
- chatId: z43.string(),
23317
- ts: z43.string()
23490
+ z44.object({
23491
+ type: z44.literal("workspace.chat.changed"),
23492
+ workspaceId: z44.string(),
23493
+ chatId: z44.string(),
23494
+ ts: z44.string()
23318
23495
  }),
23319
- z43.object({
23320
- type: z43.literal("workspace.chat.advanced"),
23321
- workspaceId: z43.string(),
23322
- chatId: z43.string(),
23323
- afterCursor: z43.string().optional(),
23324
- processing: z43.boolean(),
23325
- ts: z43.string()
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()
23326
23503
  }),
23327
- z43.object({
23328
- type: z43.literal("mobile-testing.changed"),
23329
- workspaceId: z43.string(),
23330
- ts: z43.string()
23504
+ z44.object({
23505
+ type: z44.literal("mobile-testing.changed"),
23506
+ workspaceId: z44.string(),
23507
+ ts: z44.string()
23331
23508
  }),
23332
- z43.object({
23333
- type: z43.literal("variable-request.changed"),
23334
- workspaceId: z43.string(),
23335
- ts: z43.string()
23509
+ z44.object({
23510
+ type: z44.literal("variable-request.changed"),
23511
+ workspaceId: z44.string(),
23512
+ ts: z44.string()
23336
23513
  }),
23337
- z43.object({
23338
- type: z43.literal("local-control-request.changed"),
23339
- workspaceId: z43.string(),
23340
- ts: z43.string()
23514
+ z44.object({
23515
+ type: z44.literal("local-control-request.changed"),
23516
+ workspaceId: z44.string(),
23517
+ ts: z44.string()
23341
23518
  }),
23342
- z43.object({
23343
- type: z43.literal("pull-request.changed"),
23344
- prUrl: z43.string(),
23345
- ts: z43.string()
23519
+ z44.object({
23520
+ type: z44.literal("pull-request.changed"),
23521
+ prUrl: z44.string(),
23522
+ ts: z44.string()
23346
23523
  }),
23347
- z43.object({
23348
- type: z43.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
23349
- workspaceId: z43.string(),
23350
- subagent: z43.object({ id: z43.string(), name: z43.string(), prUrl: z43.string().nullable() }),
23351
- ts: z43.string()
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()
23352
23529
  }),
23353
- z43.object({ type: z43.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z43.string(), ts: z43.string() }),
23354
- z43.object({ type: z43.literal("issues.synced"), syncId: z43.number(), ts: z43.string() }),
23355
- z43.object({ type: z43.literal("needs-you.changed"), workspaceId: z43.string().nullable(), userId: z43.string().optional(), request: inputRequestRaisedSchema.optional(), ts: z43.string() }),
23356
- z43.object({
23357
- type: z43.literal("workspace.shared"),
23358
- workspaceId: z43.string(),
23359
- workspaceName: z43.string(),
23360
- sharedWithUserId: z43.string(),
23361
- sharedByName: z43.string(),
23362
- ts: z43.string()
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()
23363
23540
  }),
23364
- z43.object({ type: z43.literal("client-state.changed"), userId: z43.string(), keys: z43.array(z43.string()), ts: z43.string() })
23541
+ z44.object({ type: z44.literal("client-state.changed"), userId: z44.string(), keys: z44.array(z44.string()), ts: z44.string() })
23365
23542
  ]);
23366
- var workspaceChangedEventSchema = z43.union([
23543
+ var workspaceChangedEventSchema = z44.union([
23367
23544
  workspaceEventSchemaByType,
23368
- z43.object({ type: z43.literal("presence.changed"), userId: z43.string(), entry: presenceEntrySchema.nullable(), ts: z43.string() }),
23369
- z43.object({ type: z43.literal("presence.changed"), ts: z43.string() })
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() })
23370
23547
  ]);
23371
23548
 
23372
23549
  // ../shared/src/routes/review-messages.ts
23373
- import { z as z44 } from "zod";
23374
- var sendPullRequestReviewMessageRequestSchema = z44.object({
23550
+ import { z as z45 } from "zod";
23551
+ var sendPullRequestReviewMessageRequestSchema = z45.object({
23375
23552
  ...sendChatMessageRequestSchema.pick({
23376
23553
  message: true,
23377
23554
  messageId: true,
@@ -23384,8 +23561,8 @@ var sendPullRequestReviewMessageRequestSchema = z44.object({
23384
23561
  ultrafastMode: true
23385
23562
  }).shape,
23386
23563
  /** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
23387
- newChat: z44.boolean().optional(),
23388
- provider: z44.enum(VALID_AGENT_PROVIDERS).optional()
23564
+ newChat: z45.boolean().optional(),
23565
+ provider: z45.enum(VALID_AGENT_PROVIDERS).optional()
23389
23566
  });
23390
23567
 
23391
23568
  // ../shared/src/audit-log.ts
@@ -24107,40 +24284,40 @@ function isSkillRegistryManifest(value) {
24107
24284
  }
24108
24285
 
24109
24286
  // ../shared/src/routes/variable-requests.ts
24110
- import { z as z45 } from "zod";
24287
+ import { z as z46 } from "zod";
24111
24288
  var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
24112
24289
  var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
24113
- var requestedVariableSchema = z45.object({
24114
- key: z45.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
24115
- required: z45.boolean(),
24116
- replace: z45.boolean().optional()
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()
24117
24294
  });
24118
- 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");
24119
- var createVariableRequestSchema = z45.object({
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({
24120
24297
  variables: requestedVariablesSchema,
24121
- reason: z45.string().trim().max(500).nullish().transform((value) => value || null),
24122
- wait: z45.boolean().default(true)
24298
+ reason: z46.string().trim().max(500).nullish().transform((value) => value || null),
24299
+ wait: z46.boolean().default(true)
24123
24300
  });
24124
- var respondVariableRequestSchema = z45.discriminatedUnion("action", [
24125
- z45.object({
24126
- action: z45.literal("provide"),
24127
- destination: z45.enum(VARIABLE_REQUEST_DESTINATIONS),
24301
+ var respondVariableRequestSchema = z46.discriminatedUnion("action", [
24302
+ z46.object({
24303
+ action: z46.literal("provide"),
24304
+ destination: z46.enum(VARIABLE_REQUEST_DESTINATIONS),
24128
24305
  /** Defaults to the workspace's environment, so older clients keep saving there. */
24129
- environment_ids: z45.array(z45.string().uuid()).optional(),
24130
- overwrite: z45.boolean().optional(),
24131
- values: z45.record(z45.string().regex(VARIABLE_KEY_RE), z45.string())
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())
24132
24309
  }),
24133
- z45.object({ action: z45.literal("skip") })
24310
+ z46.object({ action: z46.literal("skip") })
24134
24311
  ]);
24135
24312
 
24136
24313
  // ../shared/src/routes/local-control-requests.ts
24137
- import { z as z46 } from "zod";
24138
- var createLocalControlRequestSchema = z46.object({
24139
- reason: z46.string().trim().max(500).optional().transform((value) => value || null),
24140
- wait: z46.boolean().default(true)
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)
24141
24318
  });
24142
- var respondLocalControlRequestSchema = z46.object({ action: z46.enum(["allow", "dismiss"]) });
24143
- var setLocalControlSchema = z46.object({ enabled: z46.boolean() });
24319
+ var respondLocalControlRequestSchema = z47.object({ action: z47.enum(["allow", "dismiss"]) });
24320
+ var setLocalControlSchema = z47.object({ enabled: z47.boolean() });
24144
24321
 
24145
24322
  export {
24146
24323
  ENGINE_SEND_MESSAGE_FAILED_ERROR,
@@ -24221,6 +24398,7 @@ export {
24221
24398
  DEFAULT_OPENCODE_MODEL,
24222
24399
  DEFAULT_MUSE_MODEL,
24223
24400
  DEFAULT_PI_MODEL,
24401
+ DEFAULT_GEMINI_MODEL,
24224
24402
  getDefaultAgentModel,
24225
24403
  normalizeClaudeModel,
24226
24404
  getClaudeModelContextWindow,
@@ -24441,6 +24619,7 @@ export {
24441
24619
  isClaudeAuthErrorText,
24442
24620
  isCodexAuthError,
24443
24621
  serializeMuseAuthFile,
24622
+ serializeGeminiAuthFile,
24444
24623
  isVersionBelow,
24445
24624
  hasChatStarted,
24446
24625
  EXEC_SOCKET_PATH,