replicas-engine 0.1.1468 → 0.1.1469

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-N56AYSSL.js";
12
- import "./chunk-SD5L6OVZ.js";
13
- import "./chunk-E2JX442I.js";
14
- import "./chunk-LPQ7AVQW.js";
11
+ } from "./chunk-MOSHKZWN.js";
12
+ import "./chunk-OTFBY4WF.js";
13
+ import "./chunk-AMBSJQ6V.js";
14
+ import "./chunk-BI3P7Y24.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-PA53M422.js";
16
+ import "./chunk-LWUFKQAD.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
 
5
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/ui-stream-types.ts
5
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/ui-stream-types.ts
6
6
  import { z } from "zod";
7
7
  var UI_STREAM_HOST_CONTEXT_KEY = "pi-mcp-adapter/stream";
8
8
  var UI_STREAM_REQUEST_META_KEY = "pi-mcp-adapter/stream-token";
@@ -57,7 +57,7 @@ function getVisualizationStreamEnvelope(structuredContent) {
57
57
  return parsed.success ? parsed.data : void 0;
58
58
  }
59
59
 
60
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/types.ts
60
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/types.ts
61
61
  var MCP_STATUS_EVENT = "pi-mcp-adapter/status/v1";
62
62
  var MCP_STATUS_SNAPSHOT_VERSION = 1;
63
63
  function extractUiPromptText(params) {
@@ -269,7 +269,7 @@ function isToolAllowed(toolName, serverName, prefix, includeTools, excludeTools,
269
269
  return isToolIncluded(toolName, serverName, prefix, includeTools, otherCurrentCandidates) && !isToolExcluded(toolName, serverName, prefix, excludeTools, otherCurrentCandidates);
270
270
  }
271
271
 
272
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/agent-dir.ts
272
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/agent-dir.ts
273
273
  import { readFileSync } from "fs";
274
274
  import { homedir } from "os";
275
275
  import { join, resolve } from "path";
@@ -315,7 +315,7 @@ function getAppClientUri() {
315
315
  return typeof uri === "string" && uri.trim() ? uri.trim() : void 0;
316
316
  }
317
317
 
318
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/utils.ts
318
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/utils.ts
319
319
  import { spawnSync } from "child_process";
320
320
  import { homedir as homedir2, platform } from "os";
321
321
  import { extname, isAbsolute, join as join2 } from "path";
@@ -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-E2JX442I.js";
6
+ } from "./chunk-AMBSJQ6V.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-PA53M422.js";
18
+ } from "./chunk-LWUFKQAD.js";
19
19
 
20
20
  // src/managers/codex-asp/notification-dispatch.ts
21
21
  var TURN_STARTED_METHOD = "turn/started";
@@ -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-LPQ7AVQW.js";
6
+ } from "./chunk-BI3P7Y24.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-PA53M422.js";
9
+ } from "./chunk-LWUFKQAD.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.1468";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1469";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  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-PA53M422.js";
6
+ } from "./chunk-LWUFKQAD.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -16,9 +16,9 @@ import {
16
16
  resolveConfigPath,
17
17
  resolveServerUrl,
18
18
  resolveToolPrefix
19
- } from "./chunk-BMC4R5IZ.js";
19
+ } from "./chunk-244SUBHF.js";
20
20
 
21
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/resource-tools.ts
21
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/resource-tools.ts
22
22
  function resourceNameToToolName(name) {
23
23
  let result = name.replace(/[^a-zA-Z0-9]/g, "_").replace(/_+/g, "_").replace(/^_+/, "").replace(/_+$/, "").toLowerCase();
24
24
  if (!result || /^\d/.test(result)) {
@@ -27,7 +27,7 @@ function resourceNameToToolName(name) {
27
27
  return result;
28
28
  }
29
29
 
30
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/ui-tool-visibility.ts
30
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/ui-tool-visibility.ts
31
31
  function extractUiToolVisibility(meta) {
32
32
  if (!meta || typeof meta !== "object") return void 0;
33
33
  const ui = meta.ui;
@@ -49,12 +49,12 @@ function isUiToolCallableByApp(visibility) {
49
49
  return visibility === void 0 || visibility.includes("app");
50
50
  }
51
51
 
52
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/metadata-cache.ts
52
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/metadata-cache.ts
53
53
  import { existsSync, readFileSync, writeFileSync, renameSync, mkdirSync } from "fs";
54
54
  import { dirname } from "path";
55
55
  import { createHash } from "crypto";
56
56
 
57
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/ui-app-bridge-helpers.ts
57
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/ui-app-bridge-helpers.ts
58
58
  var RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
59
59
  var RESOURCE_URI_META_KEY = "ui/resourceUri";
60
60
  function getToolUiResourceUri(tool) {
@@ -86,7 +86,7 @@ function getNestedResourceUri(meta) {
86
86
  return ui.resourceUri;
87
87
  }
88
88
 
89
- // ../node_modules/.bun/pi-mcp-adapter@2.32.1+04b0d7b0bc944965/node_modules/pi-mcp-adapter/metadata-cache.ts
89
+ // ../node_modules/.bun/pi-mcp-adapter@2.32.1+f2da34192be1730e/node_modules/pi-mcp-adapter/metadata-cache.ts
90
90
  var CACHE_VERSION = 1;
91
91
  var CACHE_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1e3;
92
92
  function getMetadataCachePath() {
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-PA53M422.js";
8
+ } from "./chunk-LWUFKQAD.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -14895,8 +14895,8 @@ var BOARD_RULES = `- The board, a live status page you keep with \`${REPLICAS_MC
14895
14895
  - On every \`finished\` and \`archived\` event, move that ship's rows out of Working, or remove them, so Working only lists ships that are working.
14896
14896
  - A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or add it to Questions only if you can't decide.
14897
14897
  - When a pull request should merge once it's approved and CI passes, call \`${REPLICAS_MCP_TOOLS.mergeWhenReady}\`: Replicas merges it and sends \`merged\`, or \`needs_attention\` saying why it can't. Never watch CI or pull requests with \`gh\`, sleep loops or wait scripts, and merge one yourself only when the user wants it merged right away.
14898
- - On every ship event and every answer the user gives on the board (marked "${BOARD_ANSWER_NOTE}"), act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, update the board, and end your turn with no text at all. Never write an acknowledgement such as "Noted.", even if earlier turns did.
14899
- - The chat is like texting an assistant: the user sees only your final reply to each message they type, never your tool calls, earlier text, or anything written on a ship event or board answer. Write in chat only to reply to what the user just asked, in a line or two with links. Anything that needs the user later goes on the board, never in chat. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
14898
+ - On every ship event and every answer the user gives on the board (marked "${BOARD_ANSWER_NOTE}"), act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board. Then write in chat only if the turn delivers something the user asked for, such as the answer, result, media or links, or needs their attention; otherwise end your turn with no text at all. Saying what you put on the board, or that you archived or messaged a ship, delivers nothing. Never write an acknowledgement such as "Noted.", even if earlier turns did.
14899
+ - The chat is like texting an assistant: the user sees only your final reply of each turn, never your tool calls or earlier text, so put everything they should see in it. Write in a line or two with links, and include any media inline. Anything that needs the user later goes on the board. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
14900
14900
  - When the user picks a choice or clicks a button that messages or merges, Replicas removes that item from the board for you. Add it back, or a new item, only if the user is still needed.
14901
14901
  `;
14902
14902
  var MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
@@ -19451,7 +19451,7 @@ function extractLatestContextUsage(events, provider2) {
19451
19451
  }
19452
19452
 
19453
19453
  // ../shared/src/e2b.ts
19454
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-09-v10";
19454
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-09-v11";
19455
19455
 
19456
19456
  // ../shared/src/e2b-retry.ts
19457
19457
  var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
@@ -11,15 +11,15 @@ import {
11
11
  resolveDiffBase,
12
12
  runGitCommand,
13
13
  setAgentCredentialSnapshot
14
- } from "./chunk-SD5L6OVZ.js";
14
+ } from "./chunk-OTFBY4WF.js";
15
15
  import {
16
16
  AppServerProcess,
17
17
  buildCodexAgentEnv
18
- } from "./chunk-E2JX442I.js";
18
+ } from "./chunk-AMBSJQ6V.js";
19
19
  import {
20
20
  SUBPROCESS_MAX_BUFFER,
21
21
  execFileAsync
22
- } from "./chunk-LPQ7AVQW.js";
22
+ } from "./chunk-BI3P7Y24.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-PA53M422.js";
60
+ } from "./chunk-LWUFKQAD.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-37WEVT62.js");
323
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-G5EDCDHJ.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-37WEVT62.js");
345
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-G5EDCDHJ.js");
346
346
  await restartCodexAspHostIfRunning2();
347
347
  }
348
348
  setAgentCredentialSnapshot("codex", data);
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-LPQ7AVQW.js";
7
+ } from "./chunk-BI3P7Y24.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-PA53M422.js";
24
+ } from "./chunk-LWUFKQAD.js";
25
25
 
26
26
  // src/runtime-env-loader.ts
27
27
  import { readFileSync } from "fs";