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.
- package/dist/src/{asp-host-37WEVT62.js → asp-host-G5EDCDHJ.js} +5 -5
- package/dist/src/{chunk-BMC4R5IZ.js → chunk-244SUBHF.js} +4 -4
- package/dist/src/{chunk-Y4MISH4T.js → chunk-2YQDYO67.js} +2 -2
- package/dist/src/{chunk-E2JX442I.js → chunk-AMBSJQ6V.js} +3 -3
- package/dist/src/{chunk-LPQ7AVQW.js → chunk-BI3P7Y24.js} +1 -1
- package/dist/src/{chunk-UP57BRAF.js → chunk-DYAYKYJO.js} +6 -6
- package/dist/src/{chunk-EYBTEKBB.js → chunk-JG3ESZI7.js} +1 -1
- package/dist/src/{chunk-PA53M422.js → chunk-LWUFKQAD.js} +3 -3
- package/dist/src/{chunk-N56AYSSL.js → chunk-MOSHKZWN.js} +6 -6
- package/dist/src/{chunk-SD5L6OVZ.js → chunk-OTFBY4WF.js} +2 -2
- package/dist/src/{chunk-UHBYG6JY.js → chunk-UU7DWQFZ.js} +572 -495
- package/dist/src/{chunk-ONSLBG2S.js → chunk-VPOFUDT5.js} +2 -2
- package/dist/src/{chunk-HHIELO4H.js → chunk-Z5DK3VRN.js} +2 -2
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +1007 -355
- package/dist/src/{mcp-panel-2XMW56WJ.js → mcp-panel-H3TDJYHQ.js} +4 -4
- package/dist/src/{mcp-setup-panel-RG6Z4BOM.js → mcp-setup-panel-7NV26F37.js} +4 -4
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +2 -2
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
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-
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
+
} from "./chunk-BI3P7Y24.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
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.
|
|
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-
|
|
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-
|
|
19
|
+
} from "./chunk-244SUBHF.js";
|
|
20
20
|
|
|
21
|
-
// ../node_modules/.bun/pi-mcp-adapter@2.32.1+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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() {
|
|
@@ -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,
|
|
14899
|
-
- The chat is like texting an assistant: the user sees only your final reply
|
|
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-
|
|
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-
|
|
14
|
+
} from "./chunk-OTFBY4WF.js";
|
|
15
15
|
import {
|
|
16
16
|
AppServerProcess,
|
|
17
17
|
buildCodexAgentEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AMBSJQ6V.js";
|
|
19
19
|
import {
|
|
20
20
|
SUBPROCESS_MAX_BUFFER,
|
|
21
21
|
execFileAsync
|
|
22
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
+
} from "./chunk-LWUFKQAD.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|