replicas-engine 0.1.1730 → 0.1.1732

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.
@@ -8,13 +8,13 @@ import {
8
8
  listCodexModelsForDetails,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-KBE3MXTD.js";
12
- import "./chunk-2HQP6MMR.js";
13
- import "./chunk-BUJZF6CI.js";
14
- import "./chunk-PIZ63O3B.js";
15
- import "./chunk-O2BDFDEA.js";
11
+ } from "./chunk-H4RTGHD4.js";
12
+ import "./chunk-CC7Z6VSS.js";
13
+ import "./chunk-32R2DKC6.js";
14
+ import "./chunk-TQFW3EVP.js";
15
+ import "./chunk-PUMH4TJK.js";
16
16
  import "./chunk-UZSNFLDQ.js";
17
- import "./chunk-J6MIIMDU.js";
17
+ import "./chunk-TAIQDQNL.js";
18
18
  import "./chunk-VEQXQN22.js";
19
19
  export {
20
20
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-O2BDFDEA.js";
7
+ } from "./chunk-PUMH4TJK.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -21,7 +21,7 @@ import {
21
21
  provisionedDeviceSchema,
22
22
  readReplicasRuntimeEnv,
23
23
  serializePosixEnvFile
24
- } from "./chunk-J6MIIMDU.js";
24
+ } from "./chunk-TAIQDQNL.js";
25
25
 
26
26
  // src/runtime-env-loader.ts
27
27
  import { readFileSync } from "fs";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBAGENT_MCP_TOOL_NAMES
6
- } from "./chunk-J6MIIMDU.js";
6
+ } from "./chunk-TAIQDQNL.js";
7
7
 
8
8
  // src/managers/subagent-mcp-config.ts
9
9
  import { existsSync } from "fs";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  subagentCodexMcpConfig
6
- } from "./chunk-2HQP6MMR.js";
6
+ } from "./chunk-CC7Z6VSS.js";
7
7
  import {
8
8
  ENGINE_ENV,
9
9
  UNQUOTED_PATHS_CONFIG,
@@ -15,15 +15,15 @@ import {
15
15
  resolveDiffBase,
16
16
  runGitCommand,
17
17
  setAgentCredentialSnapshot
18
- } from "./chunk-BUJZF6CI.js";
18
+ } from "./chunk-32R2DKC6.js";
19
19
  import {
20
20
  AppServerProcess,
21
21
  buildCodexAgentEnv
22
- } from "./chunk-PIZ63O3B.js";
22
+ } from "./chunk-TQFW3EVP.js";
23
23
  import {
24
24
  SUBPROCESS_MAX_BUFFER,
25
25
  execFileAsync
26
- } from "./chunk-O2BDFDEA.js";
26
+ } from "./chunk-PUMH4TJK.js";
27
27
  import {
28
28
  isRecord
29
29
  } from "./chunk-UZSNFLDQ.js";
@@ -68,7 +68,7 @@ import {
68
68
  shrunkImageSize,
69
69
  splitManagerInstructions,
70
70
  withTimeout
71
- } from "./chunk-J6MIIMDU.js";
71
+ } from "./chunk-TAIQDQNL.js";
72
72
 
73
73
  // src/managers/codex-token-manager.ts
74
74
  import { promises as fs } from "fs";
@@ -340,7 +340,7 @@ async function withdrawAgentLogin(provider, { envKeys, files }) {
340
340
  { ...persisted.values, REPLICAS_AGENT_CREDENTIALS: JSON.stringify(remaining) },
341
341
  /* @__PURE__ */ new Set([...persisted.unsetKeys, ...envKeys])
342
342
  ));
343
- if (provider === "codex") await (await import("./asp-host-K3ISVMG6.js")).restartCodexAspHostIfRunning();
343
+ if (provider === "codex") await (await import("./asp-host-JR4YE7KY.js")).restartCodexAspHostIfRunning();
344
344
  return true;
345
345
  }
346
346
 
@@ -498,7 +498,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
498
498
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
499
499
  await this.applyCredentialsResponse(data);
500
500
  setAgentCredentialSnapshot("codex", data);
501
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-K3ISVMG6.js");
501
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-JR4YE7KY.js");
502
502
  await restartCodexAspHostIfRunning2();
503
503
  });
504
504
  await this.start(true);
@@ -524,7 +524,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
524
524
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
525
525
  await this.applyCredentialsResponse(data);
526
526
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
527
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-K3ISVMG6.js");
527
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-JR4YE7KY.js");
528
528
  await restartCodexAspHostIfRunning2();
529
529
  }
530
530
  setAgentCredentialSnapshot("codex", data);
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XCFPXSY4.js";
7
7
  import {
8
8
  engineScriptProcess
9
- } from "./chunk-2HQP6MMR.js";
9
+ } from "./chunk-CC7Z6VSS.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-UZSNFLDQ.js";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  HOOK_EXEC_MAX_BUFFER_BYTES
6
- } from "./chunk-J6MIIMDU.js";
6
+ } from "./chunk-TAIQDQNL.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XCFPXSY4.js";
7
7
  import {
8
8
  AspClient
9
- } from "./chunk-PIZ63O3B.js";
9
+ } from "./chunk-TQFW3EVP.js";
10
10
  import {
11
11
  ASTER_BASE_URL,
12
12
  ASTER_PROVIDER,
@@ -18,7 +18,7 @@ import {
18
18
  isRecord,
19
19
  readOllamaAuthEnv,
20
20
  readOpenAICompatibleAuthEnv
21
- } from "./chunk-J6MIIMDU.js";
21
+ } from "./chunk-TAIQDQNL.js";
22
22
 
23
23
  // src/managers/codex-asp/notification-dispatch.ts
24
24
  var TURN_STARTED_METHOD = "turn/started";
@@ -5,7 +5,7 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-BUJZF6CI.js";
8
+ } from "./chunk-32R2DKC6.js";
9
9
  import {
10
10
  COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES,
11
11
  COMMAND_PROTECTION_REPO_GIT_ARGS,
@@ -18,7 +18,7 @@ import {
18
18
  parseCommandProtectionRequest,
19
19
  toCommandProtectionRepoState,
20
20
  withRetry
21
- } from "./chunk-J6MIIMDU.js";
21
+ } from "./chunk-TAIQDQNL.js";
22
22
 
23
23
  // src/services/command-protection-service.ts
24
24
  import { readFile, stat } from "fs/promises";
@@ -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 z48 = void 0;
1119
+ let z49 = 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
- z48 = offsetZ;
1126
+ z49 = offsetZ;
1127
1127
  this.dt = dt;
1128
1128
  } else {
1129
- z48 = "UTC";
1129
+ z49 = "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
- z48 = dt.zone.name;
1139
+ z49 = dt.zone.name;
1140
1140
  } else {
1141
- z48 = "UTC";
1141
+ z49 = "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 || z48;
1150
+ intlOpts.timeZone = intlOpts.timeZone || z49;
1151
1151
  this.dtf = getCachedDTF(intl, intlOpts);
1152
1152
  }
1153
1153
  format() {
@@ -9519,6 +9519,7 @@ var plain = {
9519
9519
  teal: "#14b8a6",
9520
9520
  lime: "#84cc16"
9521
9521
  };
9522
+ var THEME_PREFERENCES = ["system", "light", "dark"];
9522
9523
  var PALETTE_PRESETS = {
9523
9524
  dark: ["default", "slate", "stone", "black", "high-contrast"],
9524
9525
  light: ["default", "slate", "stone", "neutral", "high-contrast"]
@@ -9620,6 +9621,14 @@ var mix = (from, to, amount) => {
9620
9621
  const target = channels(to);
9621
9622
  return `#${channels(from).map((channel, index) => Math.round(channel + (target[index] - channel) * amount).toString(16).padStart(2, "0")).join("")}`;
9622
9623
  };
9624
+ var linearChannels = (hex) => channels(hex).map((channel) => channel / 255).map((channel) => channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4);
9625
+ var luminance = (hex) => {
9626
+ const [r, g, b] = linearChannels(hex);
9627
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
9628
+ };
9629
+ var isHex = (value) => typeof value === "string" && /^#[0-9a-f]{6}$/i.test(value);
9630
+ var isCustomTheme = (value) => isRecord(value) && [value.background, value.foreground, value.accent].every(isHex);
9631
+ var customMode = ({ background, foreground }) => luminance(background) < luminance(foreground) ? "dark" : "light";
9623
9632
  var DEFAULT_THEME = {
9624
9633
  palette: "default",
9625
9634
  accent: "green",
@@ -15266,9 +15275,10 @@ replicas theme set --theme dark --color-theme slate
15266
15275
  replicas theme set --accent purple
15267
15276
  replicas theme set --accent ff5500
15268
15277
  replicas theme set --code 0d1117,e6ecf4,ff5500
15278
+ replicas theme publish --name "Ocean" --code 0b1622,e6f0f8,f2b94b --wallpaper ./ocean.webp --effect dither
15269
15279
  \`\`\`
15270
15280
 
15271
- A color theme always goes with \`--theme light\` or \`--theme dark\`. An accent is a preset name or any hex color. A theme code is three hex colors: background, text, accent. Write hex colors without the \`#\`, which the shell reads as a comment. \`replicas theme set --help\` lists the names. For a look the presets don't cover, choose the three colors yourself and pass them as \`--code\`; the text has to read clearly on the background, or it is refused.
15281
+ A color theme always goes with \`--theme light\` or \`--theme dark\`. An accent is a preset name or any hex color. A theme code is three hex colors: background, text, accent. Write hex colors without the \`#\`, which the shell reads as a comment. \`replicas theme set --help\` and \`replicas theme publish --help\` list the options. For a look the presets don't cover, choose the three colors yourself and pass them as \`--code\`; the text has to read clearly on the background, or it is refused. \`replicas theme publish\` publishes to the Replicas gallery under the workspace writer's account (with optional \`--description\`, \`--wallpaper\`, \`--effect\`, and font flags).
15272
15282
 
15273
15283
  It changes the theme of the one person who has written in this workspace, and prints their email. You cannot pick someone else. When several people have written here, or nobody has yet (a workspace started by an automation, another agent, the API or the CLI, until its person sends a message in it), it refuses: tell them they can change their own under **Themes** in the account menu. A workspace created before this command existed answers \`unknown command\`: say the same.
15274
15284
 
@@ -15681,6 +15691,10 @@ var ALERT_SOUND_FAMILIES = {
15681
15691
  wood: ["ready", "pluck", "knock", "bloom", "steps"]
15682
15692
  };
15683
15693
  var ALERT_SOUNDS = [...ALERT_SOUND_FAMILIES.glass, ...ALERT_SOUND_FAMILIES.wood];
15694
+ var CHAT_TEXT_SIZES = ["small", "default", "large", "larger"];
15695
+ var APP_FONTS = ["inter", "system", "atkinson", "geist", "ibm-plex-sans", "source-sans", "lexend"];
15696
+ var CODE_FONTS = ["geist-mono", "system", "atkinson-mono", "jetbrains-mono", "fira-code", "source-code-pro", "ibm-plex-mono"];
15697
+ var WALLPAPER_EFFECTS = ["soft", "duotone", "dither", "none"];
15684
15698
  var WALLPAPER_VIDEO_MAX_BYTES = 16 * 1024 * 1024;
15685
15699
  var PUSH_WHEN_ACTIVE_COPY = {
15686
15700
  wait: `Wait ${PUSH_HOLD_MINUTES} minutes`,
@@ -20245,7 +20259,7 @@ function toolCallMessage(id, name, args, timestamp2, result) {
20245
20259
  return null;
20246
20260
  }
20247
20261
  })() : null;
20248
- return { id, type: "subagent", toolUseId: id, description: typeof args.title === "string" ? args.title : "Replicas subagent", prompt: typeof args.prompt === "string" ? args.prompt : "", subagentType: "replicas", model: typeof args.model === "string" ? args.model : void 0, receiverThreadIds: isRecord(spawned) && typeof spawned.agentId === "string" ? [spawned.agentId] : void 0, status: result?.isError ? "failed" : "in_progress", nestedEvents: [], timestamp: timestamp2 };
20262
+ return { id, type: "subagent", toolUseId: id, description: typeof args.title === "string" ? args.title : "Replicas subagent", prompt: typeof args.prompt === "string" ? args.prompt : "", subagentType: "replicas", model: isRecord(spawned) && typeof spawned.model === "string" ? spawned.model : typeof args.model === "string" ? args.model : void 0, receiverThreadIds: isRecord(spawned) && typeof spawned.agentId === "string" ? [spawned.agentId] : void 0, status: result?.isError ? "failed" : "in_progress", nestedEvents: [], timestamp: timestamp2 };
20249
20263
  }
20250
20264
  return createCallDisplayMessage({ id, server: "replicas", tool: name, input: args, output: result?.output, status, timestamp: timestamp2 });
20251
20265
  }
@@ -21980,7 +21994,7 @@ async function withRetry(label, fn, options) {
21980
21994
  }
21981
21995
 
21982
21996
  // ../shared/src/tensorlake.ts
21983
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8494";
21997
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8496";
21984
21998
  var TENSORLAKE_DISK_MB = 100 * 1024;
21985
21999
 
21986
22000
  // ../shared/src/egress.ts
@@ -23424,8 +23438,65 @@ var webAuthRedeemResponseSchema = z41.object({
23424
23438
  });
23425
23439
 
23426
23440
  // ../shared/src/routes/themes.ts
23441
+ import { z as z43 } from "zod";
23442
+
23443
+ // ../shared/src/routes/marketplace.ts
23427
23444
  import { z as z42 } from "zod";
23428
- var updateThemeRequestSchema = z42.object({ theme: z42.string(), palette: z42.string(), accent: z42.string(), code: z42.string() }).partial();
23445
+ var MARKETPLACE_NAME_MAX_LENGTH = 40;
23446
+ var MARKETPLACE_DESCRIPTION_MAX_LENGTH = 200;
23447
+ var MARKETPLACE_REPORT_MAX_LENGTH = 500;
23448
+ var themeColorsSchema = z42.object({
23449
+ palette: z42.custom((value) => PALETTES.some((palette) => palette === value)),
23450
+ accent: z42.custom((value) => ACCENTS.some((accent) => accent === value)),
23451
+ custom: z42.custom(isCustomTheme)
23452
+ });
23453
+ var wallpaperSchema = z42.object({ key: z42.string(), effect: z42.enum(WALLPAPER_EFFECTS) });
23454
+ function themeModes({ palette, custom }) {
23455
+ return palette === "custom" ? [customMode(custom)] : ["light", "dark"].filter((mode) => PALETTE_PRESETS[mode].some((name) => name === palette));
23456
+ }
23457
+ function themeMode(colors, mode) {
23458
+ const modes = themeModes(colors);
23459
+ if (modes.length === 1) return modes[0];
23460
+ return mode ?? "system";
23461
+ }
23462
+ var themeSettingsShape = {
23463
+ colors: themeColorsSchema,
23464
+ mode: z42.enum(THEME_PREFERENCES),
23465
+ chat_text_size: z42.enum(CHAT_TEXT_SIZES),
23466
+ app_font: z42.enum(APP_FONTS),
23467
+ code_font: z42.enum(CODE_FONTS)
23468
+ };
23469
+ var themeContentSchema = z42.object({
23470
+ ...themeSettingsShape,
23471
+ mode: themeSettingsShape.mode.optional(),
23472
+ chat_text_size: themeSettingsShape.chat_text_size.default(DEFAULT_USER_PREFERENCES.chat_text_size),
23473
+ app_font: themeSettingsShape.app_font.default(DEFAULT_USER_PREFERENCES.app_font),
23474
+ code_font: themeSettingsShape.code_font.default(DEFAULT_USER_PREFERENCES.code_font),
23475
+ wallpaper: wallpaperSchema.nullable()
23476
+ }).transform((content) => ({ ...content, mode: themeMode(content.colors, content.mode) }));
23477
+ var publishBase = {
23478
+ name: z42.string().trim().min(1).max(MARKETPLACE_NAME_MAX_LENGTH),
23479
+ description: z42.string().trim().max(MARKETPLACE_DESCRIPTION_MAX_LENGTH).nullable()
23480
+ };
23481
+ var themeFields = { ...publishBase, ...themeSettingsShape, wallpaper: z42.object({ key: z42.string().nullable(), effect: z42.enum(WALLPAPER_EFFECTS) }).nullable() };
23482
+ var updateMarketplaceThemeSchema = z42.object(themeFields);
23483
+ var publishMarketplaceItemSchema = z42.discriminatedUnion("kind", [
23484
+ z42.object({ kind: z42.literal("theme"), ...themeFields }),
23485
+ z42.object({ kind: z42.literal("avatar"), ...publishBase, workspace_id: z42.string().uuid() })
23486
+ ]);
23487
+ var reportMarketplaceItemSchema = z42.object({ reason: z42.string().trim().min(1).max(MARKETPLACE_REPORT_MAX_LENGTH) });
23488
+ var adminUpdateMarketplaceItemSchema = z42.object({ hidden: z42.boolean() });
23489
+
23490
+ // ../shared/src/routes/themes.ts
23491
+ var updateThemeRequestSchema = z43.object({ theme: z43.string(), palette: z43.string(), accent: z43.string(), code: z43.string() }).partial();
23492
+ var publishThemeRequestSchema = updateThemeRequestSchema.extend({
23493
+ name: z43.string().trim().min(1).max(MARKETPLACE_NAME_MAX_LENGTH),
23494
+ description: z43.string().trim().max(MARKETPLACE_DESCRIPTION_MAX_LENGTH).nullable().optional(),
23495
+ effect: z43.enum(WALLPAPER_EFFECTS).optional(),
23496
+ app_font: z43.enum(APP_FONTS).optional(),
23497
+ code_font: z43.enum(CODE_FONTS).optional(),
23498
+ chat_text_size: z43.enum(CHAT_TEXT_SIZES).optional()
23499
+ });
23429
23500
 
23430
23501
  // ../shared/src/routes/client-state.ts
23431
23502
  var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
@@ -23451,107 +23522,107 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
23451
23522
  var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
23452
23523
 
23453
23524
  // ../shared/src/routes/workspace-events.ts
23454
- import { z as z44 } from "zod";
23525
+ import { z as z45 } from "zod";
23455
23526
 
23456
23527
  // ../shared/src/routes/presence.ts
23457
- import { z as z43 } from "zod";
23458
- var presenceStatusSchema = z43.enum(["online", "typing"]);
23459
- var presenceLocationSchema = z43.object({
23460
- workspaceId: z43.string().optional()
23528
+ import { z as z44 } from "zod";
23529
+ var presenceStatusSchema = z44.enum(["online", "typing"]);
23530
+ var presenceLocationSchema = z44.object({
23531
+ workspaceId: z44.string().optional()
23461
23532
  });
23462
- var presenceEntrySchema = z43.object({
23463
- userId: z43.string(),
23533
+ var presenceEntrySchema = z44.object({
23534
+ userId: z44.string(),
23464
23535
  status: presenceStatusSchema,
23465
23536
  location: presenceLocationSchema,
23466
- ts: z43.string()
23537
+ ts: z44.string()
23467
23538
  });
23468
- var updatePresenceRequestSchema = z43.object({
23539
+ var updatePresenceRequestSchema = z44.object({
23469
23540
  status: presenceStatusSchema,
23470
23541
  location: presenceLocationSchema.optional()
23471
23542
  });
23472
23543
 
23473
23544
  // ../shared/src/routes/workspace-events.ts
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()
23545
+ var workspaceTurnCompletionSchema = z45.object({
23546
+ workspaceName: z45.string(),
23547
+ completedAt: z45.string(),
23548
+ processing: z45.boolean().optional(),
23549
+ pullRequestFeedback: z45.boolean().optional(),
23550
+ attention: z45.object({ reason: z45.enum(CHAT_ATTENTION_REASONS), userId: z45.string() }).optional()
23480
23551
  });
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(),
23552
+ var inputRequestRaisedSchema = z45.object({ reason: z45.enum(INPUT_REQUEST_REASONS), userId: z45.string(), chatId: z45.string(), since: z45.string() });
23553
+ var workspaceEventSchemaByType = z45.discriminatedUnion("type", [
23554
+ z45.object({
23555
+ type: z45.literal("workspace.changed"),
23556
+ workspaceId: z45.string(),
23557
+ accessChangedFor: z45.string().optional(),
23558
+ accessChangedForOrg: z45.literal(true).optional(),
23559
+ workspace: z45.object({ status: z45.enum(WORKSPACE_STATUSES), last_activity_at: z45.string().nullable() }).optional(),
23560
+ name: z45.string().optional(),
23490
23561
  completion: workspaceTurnCompletionSchema.optional(),
23491
- ts: z44.string()
23562
+ ts: z45.string()
23492
23563
  }),
23493
- z44.object({
23494
- type: z44.literal("workspace.chat.changed"),
23495
- workspaceId: z44.string(),
23496
- chatId: z44.string(),
23497
- ts: z44.string()
23564
+ z45.object({
23565
+ type: z45.literal("workspace.chat.changed"),
23566
+ workspaceId: z45.string(),
23567
+ chatId: z45.string(),
23568
+ ts: z45.string()
23498
23569
  }),
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()
23570
+ z45.object({
23571
+ type: z45.literal("workspace.chat.advanced"),
23572
+ workspaceId: z45.string(),
23573
+ chatId: z45.string(),
23574
+ afterCursor: z45.string().optional(),
23575
+ processing: z45.boolean(),
23576
+ ts: z45.string()
23506
23577
  }),
23507
- z44.object({
23508
- type: z44.literal("mobile-testing.changed"),
23509
- workspaceId: z44.string(),
23510
- ts: z44.string()
23578
+ z45.object({
23579
+ type: z45.literal("mobile-testing.changed"),
23580
+ workspaceId: z45.string(),
23581
+ ts: z45.string()
23511
23582
  }),
23512
- z44.object({
23513
- type: z44.literal("variable-request.changed"),
23514
- workspaceId: z44.string(),
23515
- ts: z44.string()
23583
+ z45.object({
23584
+ type: z45.literal("variable-request.changed"),
23585
+ workspaceId: z45.string(),
23586
+ ts: z45.string()
23516
23587
  }),
23517
- z44.object({
23518
- type: z44.literal("local-control-request.changed"),
23519
- workspaceId: z44.string(),
23520
- ts: z44.string()
23588
+ z45.object({
23589
+ type: z45.literal("local-control-request.changed"),
23590
+ workspaceId: z45.string(),
23591
+ ts: z45.string()
23521
23592
  }),
23522
- z44.object({
23523
- type: z44.literal("pull-request.changed"),
23524
- prUrl: z44.string(),
23525
- ts: z44.string()
23593
+ z45.object({
23594
+ type: z45.literal("pull-request.changed"),
23595
+ prUrl: z45.string(),
23596
+ ts: z45.string()
23526
23597
  }),
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()
23598
+ z45.object({
23599
+ type: z45.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
23600
+ workspaceId: z45.string(),
23601
+ subagent: z45.object({ id: z45.string(), name: z45.string(), prUrl: z45.string().nullable() }),
23602
+ ts: z45.string()
23532
23603
  }),
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()
23604
+ z45.object({ type: z45.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z45.string(), ts: z45.string() }),
23605
+ z45.object({ type: z45.literal("issues.synced"), syncId: z45.number(), ts: z45.string() }),
23606
+ z45.object({ type: z45.literal("needs-you.changed"), workspaceId: z45.string().nullable(), userId: z45.string().optional(), request: inputRequestRaisedSchema.optional(), ts: z45.string() }),
23607
+ z45.object({
23608
+ type: z45.literal("workspace.shared"),
23609
+ workspaceId: z45.string(),
23610
+ workspaceName: z45.string(),
23611
+ sharedWithUserId: z45.string(),
23612
+ sharedByName: z45.string(),
23613
+ ts: z45.string()
23543
23614
  }),
23544
- z44.object({ type: z44.literal("client-state.changed"), userId: z44.string(), keys: z44.array(z44.string()), ts: z44.string() })
23615
+ z45.object({ type: z45.literal("client-state.changed"), userId: z45.string(), keys: z45.array(z45.string()), ts: z45.string() })
23545
23616
  ]);
23546
- var workspaceChangedEventSchema = z44.union([
23617
+ var workspaceChangedEventSchema = z45.union([
23547
23618
  workspaceEventSchemaByType,
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() })
23619
+ z45.object({ type: z45.literal("presence.changed"), userId: z45.string(), entry: presenceEntrySchema.nullable(), ts: z45.string() }),
23620
+ z45.object({ type: z45.literal("presence.changed"), ts: z45.string() })
23550
23621
  ]);
23551
23622
 
23552
23623
  // ../shared/src/routes/review-messages.ts
23553
- import { z as z45 } from "zod";
23554
- var sendPullRequestReviewMessageRequestSchema = z45.object({
23624
+ import { z as z46 } from "zod";
23625
+ var sendPullRequestReviewMessageRequestSchema = z46.object({
23555
23626
  ...sendChatMessageRequestSchema.pick({
23556
23627
  message: true,
23557
23628
  messageId: true,
@@ -23564,8 +23635,8 @@ var sendPullRequestReviewMessageRequestSchema = z45.object({
23564
23635
  ultrafastMode: true
23565
23636
  }).shape,
23566
23637
  /** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
23567
- newChat: z45.boolean().optional(),
23568
- provider: z45.enum(VALID_AGENT_PROVIDERS).optional()
23638
+ newChat: z46.boolean().optional(),
23639
+ provider: z46.enum(VALID_AGENT_PROVIDERS).optional()
23569
23640
  });
23570
23641
 
23571
23642
  // ../shared/src/audit-log.ts
@@ -24287,40 +24358,40 @@ function isSkillRegistryManifest(value) {
24287
24358
  }
24288
24359
 
24289
24360
  // ../shared/src/routes/variable-requests.ts
24290
- import { z as z46 } from "zod";
24361
+ import { z as z47 } from "zod";
24291
24362
  var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
24292
24363
  var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
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()
24364
+ var requestedVariableSchema = z47.object({
24365
+ key: z47.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
24366
+ required: z47.boolean(),
24367
+ replace: z47.boolean().optional()
24297
24368
  });
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({
24369
+ var requestedVariablesSchema = z47.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");
24370
+ var createVariableRequestSchema = z47.object({
24300
24371
  variables: requestedVariablesSchema,
24301
- reason: z46.string().trim().max(500).nullish().transform((value) => value || null),
24302
- wait: z46.boolean().default(true)
24372
+ reason: z47.string().trim().max(500).nullish().transform((value) => value || null),
24373
+ wait: z47.boolean().default(true)
24303
24374
  });
24304
- var respondVariableRequestSchema = z46.discriminatedUnion("action", [
24305
- z46.object({
24306
- action: z46.literal("provide"),
24307
- destination: z46.enum(VARIABLE_REQUEST_DESTINATIONS),
24375
+ var respondVariableRequestSchema = z47.discriminatedUnion("action", [
24376
+ z47.object({
24377
+ action: z47.literal("provide"),
24378
+ destination: z47.enum(VARIABLE_REQUEST_DESTINATIONS),
24308
24379
  /** Defaults to the workspace's environment, so older clients keep saving there. */
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())
24380
+ environment_ids: z47.array(z47.string().uuid()).optional(),
24381
+ overwrite: z47.boolean().optional(),
24382
+ values: z47.record(z47.string().regex(VARIABLE_KEY_RE), z47.string())
24312
24383
  }),
24313
- z46.object({ action: z46.literal("skip") })
24384
+ z47.object({ action: z47.literal("skip") })
24314
24385
  ]);
24315
24386
 
24316
24387
  // ../shared/src/routes/local-control-requests.ts
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)
24388
+ import { z as z48 } from "zod";
24389
+ var createLocalControlRequestSchema = z48.object({
24390
+ reason: z48.string().trim().max(500).optional().transform((value) => value || null),
24391
+ wait: z48.boolean().default(true)
24321
24392
  });
24322
- var respondLocalControlRequestSchema = z47.object({ action: z47.enum(["allow", "dismiss"]) });
24323
- var setLocalControlSchema = z47.object({ enabled: z47.boolean() });
24393
+ var respondLocalControlRequestSchema = z48.object({ action: z48.enum(["allow", "dismiss"]) });
24394
+ var setLocalControlSchema = z48.object({ enabled: z48.boolean() });
24324
24395
 
24325
24396
  export {
24326
24397
  ENGINE_SEND_MESSAGE_FAILED_ERROR,
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-J6MIIMDU.js";
8
+ } from "./chunk-TAIQDQNL.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  execFileAsync
6
- } from "./chunk-O2BDFDEA.js";
6
+ } from "./chunk-PUMH4TJK.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-J6MIIMDU.js";
9
+ } from "./chunk-TAIQDQNL.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -244,7 +244,7 @@ function getCodexModelProvider(method) {
244
244
  if (method === "foundry") return "azure";
245
245
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
246
246
  }
247
- var ENGINE_PACKAGE_VERSION = "0.1.1730";
247
+ var ENGINE_PACKAGE_VERSION = "0.1.1732";
248
248
  var INITIALIZE_METHOD = "initialize";
249
249
  var INITIALIZED_NOTIFICATION = "initialized";
250
250
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -4,15 +4,15 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  getManagedPiMcpServers,
6
6
  managedMcpServerProcess
7
- } from "./chunk-OW37FXFJ.js";
7
+ } from "./chunk-O23RKS4X.js";
8
8
  import "./chunk-XCFPXSY4.js";
9
- import "./chunk-2HQP6MMR.js";
9
+ import "./chunk-CC7Z6VSS.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-UZSNFLDQ.js";
13
13
  import {
14
14
  rankToolsByQuery
15
- } from "./chunk-J6MIIMDU.js";
15
+ } from "./chunk-TAIQDQNL.js";
16
16
  import "./chunk-VEQXQN22.js";
17
17
 
18
18
  // src/codemode-mcp.ts
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-LIX74B2Y.js";
7
- import "./chunk-BUJZF6CI.js";
8
- import "./chunk-O2BDFDEA.js";
6
+ } from "./chunk-RT3MWDFG.js";
7
+ import "./chunk-32R2DKC6.js";
8
+ import "./chunk-PUMH4TJK.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-J6MIIMDU.js";
12
+ import "./chunk-TAIQDQNL.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -18,13 +18,13 @@ import {
18
18
  spawnMuseMsp,
19
19
  startGeminiSession,
20
20
  startMuseSession
21
- } from "./chunk-VHY4DMEA.js";
21
+ } from "./chunk-QUEALEEB.js";
22
22
  import "./chunk-XCFPXSY4.js";
23
23
  import {
24
24
  AppServerProcess,
25
25
  buildCodexAgentEnv
26
- } from "./chunk-PIZ63O3B.js";
27
- import "./chunk-O2BDFDEA.js";
26
+ } from "./chunk-TQFW3EVP.js";
27
+ import "./chunk-PUMH4TJK.js";
28
28
  import {
29
29
  AGENT,
30
30
  OPENCODE_GO_PROVIDER,
@@ -34,7 +34,7 @@ import {
34
34
  headlessAgentUsagePath,
35
35
  isRecord,
36
36
  withTimeout
37
- } from "./chunk-J6MIIMDU.js";
37
+ } from "./chunk-TAIQDQNL.js";
38
38
  import "./chunk-VEQXQN22.js";
39
39
 
40
40
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -90,12 +90,12 @@ import {
90
90
  import {
91
91
  getManagedPiMcpServers,
92
92
  managedMcpServerProcess
93
- } from "./chunk-OW37FXFJ.js";
93
+ } from "./chunk-O23RKS4X.js";
94
94
  import {
95
95
  evaluateCommandProtection,
96
96
  extractToolCommand,
97
97
  reportCommandProtectionBlock
98
- } from "./chunk-LIX74B2Y.js";
98
+ } from "./chunk-RT3MWDFG.js";
99
99
  import {
100
100
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
101
101
  AGENT_MESSAGE_DELTA_METHOD,
@@ -135,7 +135,7 @@ import {
135
135
  startMuseSession,
136
136
  thinkingVariant,
137
137
  uuidV7
138
- } from "./chunk-VHY4DMEA.js";
138
+ } from "./chunk-QUEALEEB.js";
139
139
  import {
140
140
  GEMINI_AUTH_PATH,
141
141
  GEMINI_CLI_PATH,
@@ -145,7 +145,7 @@ import {
145
145
  } from "./chunk-XCFPXSY4.js";
146
146
  import {
147
147
  publishedPullRequestUrls
148
- } from "./chunk-ITJRSUSN.js";
148
+ } from "./chunk-TFWTKR5Q.js";
149
149
  import {
150
150
  ACCOUNT_RATE_LIMITS_READ_METHOD,
151
151
  AsyncLock,
@@ -225,12 +225,12 @@ import {
225
225
  upsertCredentialFileLines,
226
226
  withdrawAgentLogin,
227
227
  writeSecureCredentialFile
228
- } from "./chunk-KBE3MXTD.js";
228
+ } from "./chunk-H4RTGHD4.js";
229
229
  import {
230
230
  SUBAGENT_MCP_TOOL_TIMEOUT_MS,
231
231
  engineScriptProcess,
232
232
  subagentMcpProcessConfig
233
- } from "./chunk-2HQP6MMR.js";
233
+ } from "./chunk-CC7Z6VSS.js";
234
234
  import {
235
235
  ENGINE_ENV,
236
236
  UNQUOTED_PATHS_CONFIG,
@@ -241,18 +241,18 @@ import {
241
241
  resolveDiffBase,
242
242
  setAgentCredentialSnapshot,
243
243
  setLinearSessionId
244
- } from "./chunk-BUJZF6CI.js";
244
+ } from "./chunk-32R2DKC6.js";
245
245
  import {
246
246
  AspRequestTimeoutError,
247
247
  AspResponseError,
248
248
  buildCodexAgentEnv,
249
249
  getCodexModelProvider
250
- } from "./chunk-PIZ63O3B.js";
250
+ } from "./chunk-TQFW3EVP.js";
251
251
  import {
252
252
  SUBPROCESS_MAX_BUFFER,
253
253
  execAsync,
254
254
  execFileAsync
255
- } from "./chunk-O2BDFDEA.js";
255
+ } from "./chunk-PUMH4TJK.js";
256
256
  import {
257
257
  isRecord
258
258
  } from "./chunk-UZSNFLDQ.js";
@@ -556,7 +556,7 @@ import {
556
556
  workspaceTokenRequestSchema,
557
557
  workspaceTokenResponseSchema,
558
558
  wrapInTag
559
- } from "./chunk-J6MIIMDU.js";
559
+ } from "./chunk-TAIQDQNL.js";
560
560
  import {
561
561
  __commonJS,
562
562
  __export,
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-ITJRSUSN.js";
6
+ } from "./chunk-TFWTKR5Q.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-J6MIIMDU.js";
12
+ } from "./chunk-TAIQDQNL.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -11,7 +11,7 @@ import {
11
11
  spawnSubagentRequestSchema,
12
12
  subagentResponseSchema,
13
13
  waitSubagentRequestSchema
14
- } from "./chunk-J6MIIMDU.js";
14
+ } from "./chunk-TAIQDQNL.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1730",
3
+ "version": "0.1.1732",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",