replicas-engine 0.1.493 → 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.
Files changed (2) hide show
  1. package/dist/src/index.js +44 -7
  2. 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-24-v1";
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) {
@@ -9884,7 +9884,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
9884
9884
  var MIN_CODEX_CLI_VERSION = "0.144.6";
9885
9885
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
9886
9886
  var codexCliVersionEnsured = null;
9887
- var ENGINE_PACKAGE_VERSION = "0.1.493";
9887
+ var ENGINE_PACKAGE_VERSION = "0.1.494";
9888
9888
  var INITIALIZE_METHOD = "initialize";
9889
9889
  var INITIALIZED_NOTIFICATION = "initialized";
9890
9890
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -10240,6 +10240,29 @@ function stringifyCollabAgentStates(states) {
10240
10240
  });
10241
10241
  return entries.length > 0 ? truncateCodexAspTranscriptOutput(entries.join("\n")) : void 0;
10242
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
+ }
10243
10266
  function truncateCodexAspTranscriptOutput(output, maxChars = MAX_CODEX_ASP_TRANSCRIPT_OUTPUT_CHARS) {
10244
10267
  return buildOutputPreview(output, {
10245
10268
  maxChars,
@@ -10343,6 +10366,9 @@ function itemToTranscriptItem(item, timestamp, status) {
10343
10366
  };
10344
10367
  }
10345
10368
  if (item.type === "dynamicToolCall") {
10369
+ if (item.namespace === "collab" && item.tool === "wait") {
10370
+ return null;
10371
+ }
10346
10372
  return {
10347
10373
  type: "toolCall",
10348
10374
  id: item.id,
@@ -10356,18 +10382,19 @@ function itemToTranscriptItem(item, timestamp, status) {
10356
10382
  }
10357
10383
  if (item.type === "collabAgentToolCall") {
10358
10384
  if (item.tool === "spawnAgent" && item.receiverThreadIds.length > 0) {
10359
- return {
10360
- type: "subagent",
10385
+ return codexSubagentTranscriptItem({
10361
10386
  id: item.id,
10362
10387
  description: item.receiverThreadIds.length === 1 ? "Codex subagent" : `Codex subagents (${item.receiverThreadIds.length})`,
10363
10388
  prompt: item.prompt ?? "",
10364
- subagentType: "codex",
10365
10389
  receiverThreadIds: item.receiverThreadIds,
10366
- ...item.model ? { model: item.model } : {},
10390
+ model: item.model ?? void 0,
10367
10391
  output: stringifyCollabAgentStates(item.agentsStates),
10368
10392
  timestamp,
10369
10393
  status: normalizeCodexAspTranscriptStatus(item.status, item.status === "failed")
10370
- };
10394
+ });
10395
+ }
10396
+ if (item.tool === "wait") {
10397
+ return null;
10371
10398
  }
10372
10399
  return {
10373
10400
  type: "toolCall",
@@ -10380,6 +10407,16 @@ function itemToTranscriptItem(item, timestamp, status) {
10380
10407
  status: normalizeCodexAspTranscriptStatus(item.status, item.status === "failed")
10381
10408
  };
10382
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
+ }
10383
10420
  if (item.type === "webSearch") {
10384
10421
  return {
10385
10422
  type: "webSearch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.493",
3
+ "version": "0.1.494",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",