replicas-engine 0.1.492 → 0.1.494
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/index.js +45 -7
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -602,7 +602,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
602
602
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
603
603
|
|
|
604
604
|
// ../shared/src/e2b.ts
|
|
605
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-
|
|
605
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-24-v2";
|
|
606
606
|
|
|
607
607
|
// ../shared/src/runtime-env.ts
|
|
608
608
|
function shellQuotePosix(value) {
|
|
@@ -2552,6 +2552,7 @@ var DEFAULT_USER_PREFERENCES = {
|
|
|
2552
2552
|
respond_to_human_pr_reviews: false,
|
|
2553
2553
|
pr_user_attribution: false,
|
|
2554
2554
|
auto_draft_prs: false,
|
|
2555
|
+
open_prs_in_graphite: false,
|
|
2555
2556
|
default_fast_mode: false,
|
|
2556
2557
|
agent_defaults: { ...EMPTY_AGENT_DEFAULT_SETTINGS }
|
|
2557
2558
|
};
|
|
@@ -9883,7 +9884,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
9883
9884
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
9884
9885
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
9885
9886
|
var codexCliVersionEnsured = null;
|
|
9886
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
9887
|
+
var ENGINE_PACKAGE_VERSION = "0.1.494";
|
|
9887
9888
|
var INITIALIZE_METHOD = "initialize";
|
|
9888
9889
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
9889
9890
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -10239,6 +10240,29 @@ function stringifyCollabAgentStates(states) {
|
|
|
10239
10240
|
});
|
|
10240
10241
|
return entries.length > 0 ? truncateCodexAspTranscriptOutput(entries.join("\n")) : void 0;
|
|
10241
10242
|
}
|
|
10243
|
+
function codexSubagentTranscriptItem({
|
|
10244
|
+
id,
|
|
10245
|
+
description,
|
|
10246
|
+
prompt,
|
|
10247
|
+
receiverThreadIds,
|
|
10248
|
+
model,
|
|
10249
|
+
output,
|
|
10250
|
+
timestamp,
|
|
10251
|
+
status
|
|
10252
|
+
}) {
|
|
10253
|
+
return {
|
|
10254
|
+
type: "subagent",
|
|
10255
|
+
id,
|
|
10256
|
+
description,
|
|
10257
|
+
prompt,
|
|
10258
|
+
subagentType: "codex",
|
|
10259
|
+
receiverThreadIds,
|
|
10260
|
+
...model ? { model } : {},
|
|
10261
|
+
...output ? { output } : {},
|
|
10262
|
+
timestamp,
|
|
10263
|
+
status
|
|
10264
|
+
};
|
|
10265
|
+
}
|
|
10242
10266
|
function truncateCodexAspTranscriptOutput(output, maxChars = MAX_CODEX_ASP_TRANSCRIPT_OUTPUT_CHARS) {
|
|
10243
10267
|
return buildOutputPreview(output, {
|
|
10244
10268
|
maxChars,
|
|
@@ -10342,6 +10366,9 @@ function itemToTranscriptItem(item, timestamp, status) {
|
|
|
10342
10366
|
};
|
|
10343
10367
|
}
|
|
10344
10368
|
if (item.type === "dynamicToolCall") {
|
|
10369
|
+
if (item.namespace === "collab" && item.tool === "wait") {
|
|
10370
|
+
return null;
|
|
10371
|
+
}
|
|
10345
10372
|
return {
|
|
10346
10373
|
type: "toolCall",
|
|
10347
10374
|
id: item.id,
|
|
@@ -10355,18 +10382,19 @@ function itemToTranscriptItem(item, timestamp, status) {
|
|
|
10355
10382
|
}
|
|
10356
10383
|
if (item.type === "collabAgentToolCall") {
|
|
10357
10384
|
if (item.tool === "spawnAgent" && item.receiverThreadIds.length > 0) {
|
|
10358
|
-
return {
|
|
10359
|
-
type: "subagent",
|
|
10385
|
+
return codexSubagentTranscriptItem({
|
|
10360
10386
|
id: item.id,
|
|
10361
10387
|
description: item.receiverThreadIds.length === 1 ? "Codex subagent" : `Codex subagents (${item.receiverThreadIds.length})`,
|
|
10362
10388
|
prompt: item.prompt ?? "",
|
|
10363
|
-
subagentType: "codex",
|
|
10364
10389
|
receiverThreadIds: item.receiverThreadIds,
|
|
10365
|
-
|
|
10390
|
+
model: item.model ?? void 0,
|
|
10366
10391
|
output: stringifyCollabAgentStates(item.agentsStates),
|
|
10367
10392
|
timestamp,
|
|
10368
10393
|
status: normalizeCodexAspTranscriptStatus(item.status, item.status === "failed")
|
|
10369
|
-
};
|
|
10394
|
+
});
|
|
10395
|
+
}
|
|
10396
|
+
if (item.tool === "wait") {
|
|
10397
|
+
return null;
|
|
10370
10398
|
}
|
|
10371
10399
|
return {
|
|
10372
10400
|
type: "toolCall",
|
|
@@ -10379,6 +10407,16 @@ function itemToTranscriptItem(item, timestamp, status) {
|
|
|
10379
10407
|
status: normalizeCodexAspTranscriptStatus(item.status, item.status === "failed")
|
|
10380
10408
|
};
|
|
10381
10409
|
}
|
|
10410
|
+
if (item.type === "subAgentActivity" && item.kind === "started") {
|
|
10411
|
+
return codexSubagentTranscriptItem({
|
|
10412
|
+
id: item.id,
|
|
10413
|
+
description: item.agentPath,
|
|
10414
|
+
prompt: "",
|
|
10415
|
+
receiverThreadIds: [item.agentThreadId],
|
|
10416
|
+
timestamp,
|
|
10417
|
+
status
|
|
10418
|
+
});
|
|
10419
|
+
}
|
|
10382
10420
|
if (item.type === "webSearch") {
|
|
10383
10421
|
return {
|
|
10384
10422
|
type: "webSearch",
|