replicas-engine 0.1.1731 → 0.1.1733

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-IPZDXC3Q.js";
12
- import "./chunk-SKAYIAKC.js";
13
- import "./chunk-5Z7VROBY.js";
14
- import "./chunk-MMNI5WIA.js";
15
- import "./chunk-DFLWLV43.js";
11
+ } from "./chunk-K4NYGHUQ.js";
12
+ import "./chunk-DWVNAWGI.js";
13
+ import "./chunk-CSKRIU7K.js";
14
+ import "./chunk-MFXSL5G4.js";
15
+ import "./chunk-WD3L6FWJ.js";
16
16
  import "./chunk-UZSNFLDQ.js";
17
- import "./chunk-5K5WQE7A.js";
17
+ import "./chunk-JLCSSPG3.js";
18
18
  import "./chunk-VEQXQN22.js";
19
19
  export {
20
20
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XCFPXSY4.js";
7
7
  import {
8
8
  AspClient
9
- } from "./chunk-MMNI5WIA.js";
9
+ } from "./chunk-MFXSL5G4.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-5K5WQE7A.js";
21
+ } from "./chunk-JLCSSPG3.js";
22
22
 
23
23
  // src/managers/codex-asp/notification-dispatch.ts
24
24
  var TURN_STARTED_METHOD = "turn/started";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XCFPXSY4.js";
7
7
  import {
8
8
  engineScriptProcess
9
- } from "./chunk-SKAYIAKC.js";
9
+ } from "./chunk-DWVNAWGI.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-UZSNFLDQ.js";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-DFLWLV43.js";
7
+ } from "./chunk-WD3L6FWJ.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-5K5WQE7A.js";
24
+ } from "./chunk-JLCSSPG3.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-5K5WQE7A.js";
6
+ } from "./chunk-JLCSSPG3.js";
7
7
 
8
8
  // src/managers/subagent-mcp-config.ts
9
9
  import { existsSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-5Z7VROBY.js";
8
+ } from "./chunk-CSKRIU7K.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-5K5WQE7A.js";
21
+ } from "./chunk-JLCSSPG3.js";
22
22
 
23
23
  // src/services/command-protection-service.ts
24
24
  import { readFile, stat } from "fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-5K5WQE7A.js";
8
+ } from "./chunk-JLCSSPG3.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -20259,7 +20259,7 @@ function toolCallMessage(id, name, args, timestamp2, result) {
20259
20259
  return null;
20260
20260
  }
20261
20261
  })() : null;
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: 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 };
20263
20263
  }
20264
20264
  return createCallDisplayMessage({ id, server: "replicas", tool: name, input: args, output: result?.output, status, timestamp: timestamp2 });
20265
20265
  }
@@ -21994,7 +21994,7 @@ async function withRetry(label, fn, options) {
21994
21994
  }
21995
21995
 
21996
21996
  // ../shared/src/tensorlake.ts
21997
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8495";
21997
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8531";
21998
21998
  var TENSORLAKE_DISK_MB = 100 * 1024;
21999
21999
 
22000
22000
  // ../shared/src/egress.ts
@@ -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-SKAYIAKC.js";
6
+ } from "./chunk-DWVNAWGI.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-5Z7VROBY.js";
18
+ } from "./chunk-CSKRIU7K.js";
19
19
  import {
20
20
  AppServerProcess,
21
21
  buildCodexAgentEnv
22
- } from "./chunk-MMNI5WIA.js";
22
+ } from "./chunk-MFXSL5G4.js";
23
23
  import {
24
24
  SUBPROCESS_MAX_BUFFER,
25
25
  execFileAsync
26
- } from "./chunk-DFLWLV43.js";
26
+ } from "./chunk-WD3L6FWJ.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-5K5WQE7A.js";
71
+ } from "./chunk-JLCSSPG3.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-BNCBYTIZ.js")).restartCodexAspHostIfRunning();
343
+ if (provider === "codex") await (await import("./asp-host-KU77QZVW.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-BNCBYTIZ.js");
501
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-KU77QZVW.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-BNCBYTIZ.js");
527
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-KU77QZVW.js");
528
528
  await restartCodexAspHostIfRunning2();
529
529
  }
530
530
  setAgentCredentialSnapshot("codex", data);
@@ -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-DFLWLV43.js";
6
+ } from "./chunk-WD3L6FWJ.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-5K5WQE7A.js";
9
+ } from "./chunk-JLCSSPG3.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.1733";
248
248
  var INITIALIZE_METHOD = "initialize";
249
249
  var INITIALIZED_NOTIFICATION = "initialized";
250
250
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -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-5K5WQE7A.js";
6
+ } from "./chunk-JLCSSPG3.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -4,15 +4,15 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  getManagedPiMcpServers,
6
6
  managedMcpServerProcess
7
- } from "./chunk-PI3F53DJ.js";
7
+ } from "./chunk-CRB6P7I4.js";
8
8
  import "./chunk-XCFPXSY4.js";
9
- import "./chunk-SKAYIAKC.js";
9
+ import "./chunk-DWVNAWGI.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-UZSNFLDQ.js";
13
13
  import {
14
14
  rankToolsByQuery
15
- } from "./chunk-5K5WQE7A.js";
15
+ } from "./chunk-JLCSSPG3.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-6AKAVTQV.js";
7
- import "./chunk-5Z7VROBY.js";
8
- import "./chunk-DFLWLV43.js";
6
+ } from "./chunk-F2WVJOWL.js";
7
+ import "./chunk-CSKRIU7K.js";
8
+ import "./chunk-WD3L6FWJ.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-5K5WQE7A.js";
12
+ import "./chunk-JLCSSPG3.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-Q4GZ2R6Y.js";
21
+ } from "./chunk-CF6XLMV2.js";
22
22
  import "./chunk-XCFPXSY4.js";
23
23
  import {
24
24
  AppServerProcess,
25
25
  buildCodexAgentEnv
26
- } from "./chunk-MMNI5WIA.js";
27
- import "./chunk-DFLWLV43.js";
26
+ } from "./chunk-MFXSL5G4.js";
27
+ import "./chunk-WD3L6FWJ.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-5K5WQE7A.js";
37
+ } from "./chunk-JLCSSPG3.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-PI3F53DJ.js";
93
+ } from "./chunk-CRB6P7I4.js";
94
94
  import {
95
95
  evaluateCommandProtection,
96
96
  extractToolCommand,
97
97
  reportCommandProtectionBlock
98
- } from "./chunk-6AKAVTQV.js";
98
+ } from "./chunk-F2WVJOWL.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-Q4GZ2R6Y.js";
138
+ } from "./chunk-CF6XLMV2.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-WQX56KJG.js";
148
+ } from "./chunk-IZGVOH2B.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-IPZDXC3Q.js";
228
+ } from "./chunk-K4NYGHUQ.js";
229
229
  import {
230
230
  SUBAGENT_MCP_TOOL_TIMEOUT_MS,
231
231
  engineScriptProcess,
232
232
  subagentMcpProcessConfig
233
- } from "./chunk-SKAYIAKC.js";
233
+ } from "./chunk-DWVNAWGI.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-5Z7VROBY.js";
244
+ } from "./chunk-CSKRIU7K.js";
245
245
  import {
246
246
  AspRequestTimeoutError,
247
247
  AspResponseError,
248
248
  buildCodexAgentEnv,
249
249
  getCodexModelProvider
250
- } from "./chunk-MMNI5WIA.js";
250
+ } from "./chunk-MFXSL5G4.js";
251
251
  import {
252
252
  SUBPROCESS_MAX_BUFFER,
253
253
  execAsync,
254
254
  execFileAsync
255
- } from "./chunk-DFLWLV43.js";
255
+ } from "./chunk-WD3L6FWJ.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-5K5WQE7A.js";
559
+ } from "./chunk-JLCSSPG3.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-WQX56KJG.js";
6
+ } from "./chunk-IZGVOH2B.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-5K5WQE7A.js";
12
+ } from "./chunk-JLCSSPG3.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-5K5WQE7A.js";
14
+ } from "./chunk-JLCSSPG3.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.1731",
3
+ "version": "0.1.1733",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",