replicas-engine 0.1.389 → 0.1.391

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 +22 -2
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -484,7 +484,7 @@ var WORKSPACE_SIZES = ["small", "large"];
484
484
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
485
485
 
486
486
  // ../shared/src/e2b.ts
487
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-03-v2";
487
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-03-v4";
488
488
 
489
489
  // ../shared/src/runtime-env.ts
490
490
  function parsePosixEnvFile(content) {
@@ -7878,7 +7878,7 @@ var AspClient = class {
7878
7878
  // src/managers/codex-asp/app-server-process.ts
7879
7879
  var DEFAULT_CODEX_BINARY = "codex";
7880
7880
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
7881
- var ENGINE_PACKAGE_VERSION = "0.1.389";
7881
+ var ENGINE_PACKAGE_VERSION = "0.1.391";
7882
7882
  var INITIALIZE_METHOD = "initialize";
7883
7883
  var INITIALIZED_NOTIFICATION = "initialized";
7884
7884
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -8182,6 +8182,13 @@ function stringifyToolOutput(value) {
8182
8182
  return truncateCodexAspTranscriptOutput(String(value));
8183
8183
  }
8184
8184
  }
8185
+ function stringifyCollabAgentStates(states) {
8186
+ const entries = Object.entries(states).map(([threadId, state]) => {
8187
+ const message = state?.message?.trim();
8188
+ return `${threadId}: ${state?.status ?? "unknown"}${message ? ` - ${message}` : ""}`;
8189
+ });
8190
+ return entries.length > 0 ? truncateCodexAspTranscriptOutput(entries.join("\n")) : void 0;
8191
+ }
8185
8192
  function truncateCodexAspTranscriptOutput(output, maxChars = MAX_CODEX_ASP_TRANSCRIPT_OUTPUT_CHARS) {
8186
8193
  return buildOutputPreview(output, {
8187
8194
  maxChars,
@@ -8297,6 +8304,19 @@ function itemToTranscriptItem(item, timestamp, status) {
8297
8304
  };
8298
8305
  }
8299
8306
  if (item.type === "collabAgentToolCall") {
8307
+ if (item.tool === "spawnAgent" && item.receiverThreadIds.length > 0) {
8308
+ return {
8309
+ type: "subagent",
8310
+ id: item.id,
8311
+ description: item.receiverThreadIds.length === 1 ? "Codex subagent" : `Codex subagents (${item.receiverThreadIds.length})`,
8312
+ prompt: item.prompt ?? "",
8313
+ subagentType: "codex",
8314
+ ...item.model ? { model: item.model } : {},
8315
+ output: stringifyCollabAgentStates(item.agentsStates),
8316
+ timestamp,
8317
+ status: normalizeCodexAspTranscriptStatus(item.status, item.status === "failed")
8318
+ };
8319
+ }
8300
8320
  return {
8301
8321
  type: "toolCall",
8302
8322
  id: item.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.389",
3
+ "version": "0.1.391",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",