replicas-engine 0.1.472 → 0.1.473

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 +26 -2
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -582,7 +582,7 @@ var WORKSPACE_SIZES = ["small", "large"];
582
582
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
583
583
 
584
584
  // ../shared/src/e2b.ts
585
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-21-v2";
585
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-21-v3";
586
586
 
587
587
  // ../shared/src/runtime-env.ts
588
588
  function shellQuotePosix(value) {
@@ -4368,6 +4368,19 @@ function parseClaudeEvents(events, parentToolUseId) {
4368
4368
  isChatBased: true,
4369
4369
  timestamp: event.timestamp
4370
4370
  });
4371
+ } else if (toolName === "mcp__relay-subagent-tools__message_agent") {
4372
+ const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
4373
+ messages.push({
4374
+ id: `subagent-followup-${event.timestamp}-${messages.length}`,
4375
+ type: "subagent_followup",
4376
+ toolUseId,
4377
+ chatId: typeof inputObj.chatId === "string" ? inputObj.chatId : "",
4378
+ message: typeof inputObj.message === "string" ? inputObj.message : "",
4379
+ model: typeof inputObj.model === "string" ? inputObj.model : void 0,
4380
+ thinkingLevel: isValidThinkingLevel(inputObj.thinking_level) ? inputObj.thinking_level : void 0,
4381
+ status: "in_progress",
4382
+ timestamp: event.timestamp
4383
+ });
4371
4384
  } else if (toolName === "mcp__relay-subagent-tools__delete_agent") {
4372
4385
  const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
4373
4386
  const mcp = parseMcpToolName(toolName);
@@ -4511,10 +4524,21 @@ function parseClaudeEvents(events, parentToolUseId) {
4511
4524
  message.chatId = parsed.chatId;
4512
4525
  }
4513
4526
  }
4527
+ } else if (message.type === "subagent_followup") {
4528
+ message.output = resultContent;
4529
+ message.status = status;
4514
4530
  }
4515
4531
  }
4516
4532
  }
4517
4533
  });
4534
+ for (const message of messages) {
4535
+ if (message.type !== "subagent_followup") continue;
4536
+ const target = messages.find((candidate) => candidate.type === "subagent" && candidate.chatId === message.chatId);
4537
+ if (target?.type === "subagent") {
4538
+ message.targetTitle = target.description;
4539
+ message.targetProvider = target.subagentType;
4540
+ }
4541
+ }
4518
4542
  const staleIndexes = /* @__PURE__ */ new Set();
4519
4543
  for (const streamId of [...completedStreamIds, ...supersededStreamIds]) {
4520
4544
  const refs = partialIndexes.get(streamId);
@@ -9882,7 +9906,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
9882
9906
  var MIN_CODEX_CLI_VERSION = "0.144.6";
9883
9907
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
9884
9908
  var codexCliVersionEnsured = null;
9885
- var ENGINE_PACKAGE_VERSION = "0.1.472";
9909
+ var ENGINE_PACKAGE_VERSION = "0.1.473";
9886
9910
  var INITIALIZE_METHOD = "initialize";
9887
9911
  var INITIALIZED_NOTIFICATION = "initialized";
9888
9912
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.472",
3
+ "version": "0.1.473",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",