replicas-cli 0.2.360 → 0.2.362

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/index.mjs +10 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -9693,7 +9693,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
9693
9693
  var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
9694
9694
 
9695
9695
  // ../shared/src/cli-version.ts
9696
- var CLI_VERSION = "0.2.360";
9696
+ var CLI_VERSION = "0.2.362";
9697
9697
 
9698
9698
  // ../shared/src/version.ts
9699
9699
  function compareVersions(v1, v2) {
@@ -10920,14 +10920,19 @@ function parseClaudeEvents(events, parentToolUseId) {
10920
10920
  });
10921
10921
  } else if (toolName === "mcp__relay-subagent-tools__spawn_agent") {
10922
10922
  const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
10923
+ const provider = typeof inputObj.provider === "string" ? inputObj.provider : "unknown";
10924
+ const prompt = typeof inputObj.prompt === "string" ? inputObj.prompt : "";
10925
+ const model = typeof inputObj.model === "string" ? inputObj.model : void 0;
10926
+ const title = typeof inputObj.title === "string" ? inputObj.title : void 0;
10923
10927
  messages.push({
10924
10928
  id: `subagent-${event.timestamp}-${messages.length}`,
10925
10929
  type: "subagent",
10926
10930
  toolUseId,
10927
- description: inputObj.title || `Relay subagent (${inputObj.provider || "unknown"})`,
10928
- prompt: inputObj.prompt || "",
10929
- subagentType: inputObj.provider || "unknown",
10930
- model: inputObj.model,
10931
+ description: title || `Relay subagent (${provider})`,
10932
+ prompt,
10933
+ subagentType: provider,
10934
+ model,
10935
+ thinkingLevel: isValidThinkingLevel(inputObj.thinking_level) ? inputObj.thinking_level : void 0,
10931
10936
  status: "in_progress",
10932
10937
  nestedEvents: [],
10933
10938
  isChatBased: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.360",
3
+ "version": "0.2.362",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {