replicas-engine 0.1.1545 → 0.1.1546

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,12 +8,12 @@ import {
8
8
  listCodexModelsForDetails,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-CV3NEYXS.js";
12
- import "./chunk-BIHYCLZ6.js";
13
- import "./chunk-RNWQ3VID.js";
14
- import "./chunk-KK352BIW.js";
11
+ } from "./chunk-NKWHUF3S.js";
12
+ import "./chunk-FUHU64OK.js";
13
+ import "./chunk-UIC4MUME.js";
14
+ import "./chunk-52PQEAVG.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-C44ECCFT.js";
16
+ import "./chunk-TCJCF2L2.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -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-C44ECCFT.js";
6
+ } from "./chunk-TCJCF2L2.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-KK352BIW.js";
7
+ } from "./chunk-52PQEAVG.js";
8
8
  import {
9
9
  isRecord as isRecord2
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -21,7 +21,7 @@ import {
21
21
  provisionedDeviceSchema,
22
22
  readReplicasRuntimeEnv,
23
23
  serializePosixEnvFile
24
- } from "./chunk-C44ECCFT.js";
24
+ } from "./chunk-TCJCF2L2.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
  AspClient
6
- } from "./chunk-RNWQ3VID.js";
6
+ } from "./chunk-UIC4MUME.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -15,7 +15,7 @@ import {
15
15
  isRecord,
16
16
  readOllamaAuthEnv,
17
17
  readOpenAICompatibleAuthEnv
18
- } from "./chunk-C44ECCFT.js";
18
+ } from "./chunk-TCJCF2L2.js";
19
19
 
20
20
  // src/managers/codex-asp/notification-dispatch.ts
21
21
  var TURN_STARTED_METHOD = "turn/started";
@@ -11,15 +11,15 @@ import {
11
11
  resolveDiffBase,
12
12
  runGitCommand,
13
13
  setAgentCredentialSnapshot
14
- } from "./chunk-BIHYCLZ6.js";
14
+ } from "./chunk-FUHU64OK.js";
15
15
  import {
16
16
  AppServerProcess,
17
17
  buildCodexAgentEnv
18
- } from "./chunk-RNWQ3VID.js";
18
+ } from "./chunk-UIC4MUME.js";
19
19
  import {
20
20
  SUBPROCESS_MAX_BUFFER,
21
21
  execFileAsync
22
- } from "./chunk-KK352BIW.js";
22
+ } from "./chunk-52PQEAVG.js";
23
23
  import {
24
24
  isRecord
25
25
  } from "./chunk-UZSNFLDQ.js";
@@ -57,7 +57,7 @@ import {
57
57
  resolveOpenAICompatibleModelsUrl,
58
58
  splitMothershipInstructions,
59
59
  withTimeout
60
- } from "./chunk-C44ECCFT.js";
60
+ } from "./chunk-TCJCF2L2.js";
61
61
 
62
62
  // src/managers/codex-token-manager.ts
63
63
  import { promises as fs } from "fs";
@@ -320,7 +320,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
320
320
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
321
321
  await this.applyCredentialsResponse(data);
322
322
  setAgentCredentialSnapshot("codex", data);
323
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-SRQQJJJU.js");
323
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-QXIHEQ5C.js");
324
324
  await restartCodexAspHostIfRunning2();
325
325
  });
326
326
  await this.start(true);
@@ -342,7 +342,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
342
342
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
343
343
  await this.applyCredentialsResponse(data);
344
344
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
345
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-SRQQJJJU.js");
345
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-QXIHEQ5C.js");
346
346
  await restartCodexAspHostIfRunning2();
347
347
  }
348
348
  setAgentCredentialSnapshot("codex", data);
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-C44ECCFT.js";
8
+ } from "./chunk-TCJCF2L2.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -11930,17 +11930,55 @@ var plain = {
11930
11930
  teal: "#14b8a6",
11931
11931
  lime: "#84cc16"
11932
11932
  };
11933
+ var PALETTE_PRESETS = {
11934
+ dark: ["default", "slate", "stone", "black", "high-contrast"],
11935
+ light: ["default", "slate", "stone", "neutral", "high-contrast"]
11936
+ };
11937
+ var PALETTES = {
11938
+ dark: [...PALETTE_PRESETS.dark, "custom"],
11939
+ light: [...PALETTE_PRESETS.light, "custom"]
11940
+ };
11941
+ var PALETTE_NAMES = [.../* @__PURE__ */ new Set([...PALETTES.dark, ...PALETTES.light])];
11942
+ var PALETTE_COLORS = {
11943
+ dark: {
11944
+ default: { background: "#111111", subtle: "#181818", muted: "#1f1f1f", selected: "#2a2a2a", elevated: "#2a2a2a", foreground: "#ededed", mutedForeground: "#a3a3a3", faintForeground: "#737373", border: "#2a2a2a", borderStrong: "#5c5c5c" },
11945
+ slate: { background: "#0d1117", subtle: "#131821", muted: "#19202a", selected: "#232b37", elevated: "#232b37", foreground: "#e6ecf4", mutedForeground: "#97a5ba", faintForeground: "#687487", border: "#242c38", borderStrong: "#515c6d" },
11946
+ stone: { background: "#1a1713", subtle: "#201c18", muted: "#27231f", selected: "#312d28", elevated: "#312d28", foreground: "#f2eae2", mutedForeground: "#b0a497", faintForeground: "#80756b", border: "#342f29", borderStrong: "#675e54" },
11947
+ black: { background: "#000000", subtle: "#0a0a0a", muted: "#141414", selected: "#222222", elevated: "#222222", foreground: "#ededed", mutedForeground: "#a1a1a1", faintForeground: "#6c6c6c", border: "#262626", borderStrong: "#525252" },
11948
+ "high-contrast": { background: "#0b0b0b", subtle: "#141414", muted: "#1c1c1c", selected: "#2e2e2e", elevated: "#2e2e2e", foreground: "#fafafa", mutedForeground: "#bababa", faintForeground: "#858585", border: "#353535", borderStrong: "#5e5e5e" }
11949
+ },
11950
+ light: {
11951
+ default: { background: "#ffffff", subtle: "#f7f8f6", muted: "#f2f3f1", selected: "#e8ece7", elevated: "#ffffff", foreground: "#162118", mutedForeground: "#67706a", faintForeground: "#a1a7a3", border: "#e2e6e0", borderStrong: "#b9c1b8" },
11952
+ slate: { background: "#ffffff", subtle: "#f5f8fc", muted: "#eff3f9", selected: "#e4eaf3", elevated: "#ffffff", foreground: "#171f2b", mutedForeground: "#56667c", faintForeground: "#8592a6", border: "#d9e1ec", borderStrong: "#acb7c7" },
11953
+ stone: { background: "#fdf9f5", subtle: "#f8f3ed", muted: "#f4eee7", selected: "#ede5dc", elevated: "#ffffff", foreground: "#241c15", mutedForeground: "#6c6053", faintForeground: "#978c80", border: "#e3dbd2", borderStrong: "#bcb0a3" },
11954
+ neutral: { background: "#ffffff", subtle: "#f9f9f9", muted: "#f3f3f3", selected: "#eaeaea", elevated: "#ffffff", foreground: "#111111", mutedForeground: "#606060", faintForeground: "#898989", border: "#dedede", borderStrong: "#b4b4b4" },
11955
+ "high-contrast": { background: "#ffffff", subtle: "#f5f5f5", muted: "#ededed", selected: "#e0e0e0", elevated: "#ffffff", foreground: "#0a0a0a", mutedForeground: "#4f4f4f", faintForeground: "#6b6b6b", border: "#cccccc", borderStrong: "#949494" }
11956
+ }
11957
+ };
11958
+ var ACCENT_PRESETS = ["green", "blue", "purple", "pink"];
11959
+ var ACCENTS = [...ACCENT_PRESETS, "custom"];
11960
+ var ACCENT_COLORS = {
11961
+ green: {
11962
+ dark: { primary: "#3eeba3", primaryText: "#3eeba3", primarySoft: "#3eeba31a" },
11963
+ light: { primary: "#2f9d57", primaryText: "#007136", primarySoft: "#2f9d571a" }
11964
+ },
11965
+ blue: {
11966
+ dark: { primary: "#60a5fa", primaryText: "#60a5fa", primarySoft: "#60a5fa1a" },
11967
+ light: { primary: "#2563eb", primaryText: "#1d4ed8", primarySoft: "#2563eb1a" }
11968
+ },
11969
+ purple: {
11970
+ dark: { primary: "#c084fc", primaryText: "#c084fc", primarySoft: "#c084fc1a" },
11971
+ light: { primary: "#9333ea", primaryText: "#7e22ce", primarySoft: "#9333ea1a" }
11972
+ },
11973
+ pink: {
11974
+ dark: { primary: "#f472b6", primaryText: "#f472b6", primarySoft: "#f472b61a" },
11975
+ light: { primary: "#db2777", primaryText: "#be185d", primarySoft: "#db27771a" }
11976
+ }
11977
+ };
11933
11978
  var dark = {
11934
- background: "#111111",
11935
- muted: "#1f1f1f",
11936
- selected: "#2a2a2a",
11937
- foreground: "#ededed",
11938
- mutedForeground: "#a3a3a3",
11939
- border: "#2a2a2a",
11940
- primary: "#3eeba3",
11941
- primaryText: "#3eeba3",
11979
+ ...PALETTE_COLORS.dark.default,
11980
+ ...ACCENT_COLORS.green.dark,
11942
11981
  primaryForeground: "#111111",
11943
- primarySoft: "#3eeba31a",
11944
11982
  success: "#3eeba3",
11945
11983
  successText: "#3eeba3",
11946
11984
  successForeground: "#111111",
@@ -11952,21 +11990,16 @@ var dark = {
11952
11990
  warning: "#f59e0b",
11953
11991
  warningText: "#f59e0b",
11954
11992
  warningSoft: "#f59e0b1a",
11993
+ warningForeground: "#111111",
11994
+ highlight: "#f59e0b4d",
11955
11995
  ...plain
11956
11996
  };
11957
11997
  var DESIGN_COLORS = {
11958
11998
  dark,
11959
11999
  light: {
11960
- background: "#ffffff",
11961
- muted: "#f2f3f1",
11962
- selected: "#e8ece7",
11963
- foreground: "#162118",
11964
- mutedForeground: "#67706a",
11965
- border: "#e2e6e0",
11966
- primary: "#2f9d57",
11967
- primaryText: "#007136",
12000
+ ...PALETTE_COLORS.light.default,
12001
+ ...ACCENT_COLORS.green.light,
11968
12002
  primaryForeground: "#ffffff",
11969
- primarySoft: "#2f9d571a",
11970
12003
  success: "#2f9d57",
11971
12004
  successText: "#007136",
11972
12005
  successForeground: "#ffffff",
@@ -11978,6 +12011,8 @@ var DESIGN_COLORS = {
11978
12011
  warning: "#92400e",
11979
12012
  warningText: "#92400e",
11980
12013
  warningSoft: "#92400e1f",
12014
+ warningForeground: "#ffffff",
12015
+ highlight: "#facc1580",
11981
12016
  ...plain
11982
12017
  }
11983
12018
  };
@@ -11994,6 +12029,15 @@ var BRAND_COLORS = {
11994
12029
  // Emails assume a white page.
11995
12030
  email: { text: "#222", muted: "#888", link: "#0066cc" }
11996
12031
  };
12032
+ var DEFAULT_APPEARANCE = {
12033
+ palette: "default",
12034
+ accent: "green",
12035
+ custom: {
12036
+ dark: { background: PALETTE_COLORS.dark.default.background, foreground: PALETTE_COLORS.dark.default.foreground },
12037
+ light: { background: PALETTE_COLORS.light.default.background, foreground: PALETTE_COLORS.light.default.foreground },
12038
+ accent: "#888888"
12039
+ }
12040
+ };
11997
12041
 
11998
12042
  // ../shared/src/provider-icons.ts
11999
12043
  var PROVIDER_ICON_DEFINITIONS = {
@@ -19657,7 +19701,7 @@ var VOICE_WAVEFORM = {
19657
19701
  };
19658
19702
 
19659
19703
  // ../shared/src/e2b.ts
19660
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-13-v55";
19704
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-14-v1";
19661
19705
 
19662
19706
  // ../shared/src/e2b-retry.ts
19663
19707
  var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
@@ -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-KK352BIW.js";
6
+ } from "./chunk-52PQEAVG.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-C44ECCFT.js";
9
+ } from "./chunk-TCJCF2L2.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
240
240
  if (method === "foundry") return "azure";
241
241
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
242
242
  }
243
- var ENGINE_PACKAGE_VERSION = "0.1.1545";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1546";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -6,7 +6,7 @@ import {
6
6
  getOriginDefaultBranch,
7
7
  monolithRequest,
8
8
  runGitCommand
9
- } from "./chunk-BIHYCLZ6.js";
9
+ } from "./chunk-FUHU64OK.js";
10
10
  import {
11
11
  extractCommandProtectionCommandText,
12
12
  findCommandProtectionGitLookups,
@@ -15,7 +15,7 @@ import {
15
15
  findScoutRepoWriteSignals,
16
16
  parseCommandProtectionRequest,
17
17
  withE2BRetry
18
- } from "./chunk-C44ECCFT.js";
18
+ } from "./chunk-TCJCF2L2.js";
19
19
 
20
20
  // src/services/command-protection-service.ts
21
21
  import { readFile, stat } from "fs/promises";
@@ -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-HQIXE24K.js";
7
- import "./chunk-BIHYCLZ6.js";
8
- import "./chunk-KK352BIW.js";
6
+ } from "./chunk-ZN5YWLHW.js";
7
+ import "./chunk-FUHU64OK.js";
8
+ import "./chunk-52PQEAVG.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-C44ECCFT.js";
12
+ import "./chunk-TCJCF2L2.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -14,12 +14,12 @@ import {
14
14
  recoverCompletedTurn,
15
15
  spawnMuseMsp,
16
16
  startMuseSession
17
- } from "./chunk-VZDYMEKF.js";
17
+ } from "./chunk-JPGPNDQT.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-RNWQ3VID.js";
22
- import "./chunk-KK352BIW.js";
21
+ } from "./chunk-UIC4MUME.js";
22
+ import "./chunk-52PQEAVG.js";
23
23
  import {
24
24
  AGENT,
25
25
  OPENCODE_GO_PROVIDER,
@@ -29,7 +29,7 @@ import {
29
29
  headlessAgentUsagePath,
30
30
  isRecord,
31
31
  withTimeout
32
- } from "./chunk-C44ECCFT.js";
32
+ } from "./chunk-TCJCF2L2.js";
33
33
  import "./chunk-VEQXQN22.js";
34
34
 
35
35
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  evaluateCommandProtection,
28
28
  extractToolCommand,
29
29
  reportCommandProtectionBlock
30
- } from "./chunk-HQIXE24K.js";
30
+ } from "./chunk-ZN5YWLHW.js";
31
31
  import {
32
32
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
33
33
  AGENT_MESSAGE_DELTA_METHOD,
@@ -65,10 +65,10 @@ import {
65
65
  spawnMuseMsp,
66
66
  startMuseSession,
67
67
  uuidV7
68
- } from "./chunk-VZDYMEKF.js";
68
+ } from "./chunk-JPGPNDQT.js";
69
69
  import {
70
70
  publishedPullRequestUrls
71
- } from "./chunk-6H3HT2JT.js";
71
+ } from "./chunk-SATAHCTE.js";
72
72
  import {
73
73
  ACCOUNT_RATE_LIMITS_READ_METHOD,
74
74
  AsyncLock,
@@ -143,7 +143,7 @@ import {
143
143
  timestampFromSeconds,
144
144
  upsertCredentialFileLines,
145
145
  writeSecureCredentialFile
146
- } from "./chunk-CV3NEYXS.js";
146
+ } from "./chunk-NKWHUF3S.js";
147
147
  import {
148
148
  ENGINE_ENV,
149
149
  UNQUOTED_PATHS_CONFIG,
@@ -154,15 +154,15 @@ import {
154
154
  resolveDiffBase,
155
155
  setAgentCredentialSnapshot,
156
156
  setLinearSessionId
157
- } from "./chunk-BIHYCLZ6.js";
157
+ } from "./chunk-FUHU64OK.js";
158
158
  import {
159
159
  getCodexModelProvider
160
- } from "./chunk-RNWQ3VID.js";
160
+ } from "./chunk-UIC4MUME.js";
161
161
  import {
162
162
  SUBPROCESS_MAX_BUFFER,
163
163
  execAsync,
164
164
  execFileAsync
165
- } from "./chunk-KK352BIW.js";
165
+ } from "./chunk-52PQEAVG.js";
166
166
  import {
167
167
  isRecord as isRecord2
168
168
  } from "./chunk-UZSNFLDQ.js";
@@ -443,7 +443,7 @@ import {
443
443
  workspaceTokenRequestSchema,
444
444
  workspaceTokenResponseSchema,
445
445
  wrapInTag
446
- } from "./chunk-C44ECCFT.js";
446
+ } from "./chunk-TCJCF2L2.js";
447
447
  import {
448
448
  cloneMcpConfig,
449
449
  ensureCompatibilityImports,
@@ -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-6H3HT2JT.js";
6
+ } from "./chunk-SATAHCTE.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-C44ECCFT.js";
12
+ } from "./chunk-TCJCF2L2.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-C44ECCFT.js";
14
+ } from "./chunk-TCJCF2L2.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.1545",
3
+ "version": "0.1.1546",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",