replicas-cli 0.3.683 → 0.3.685
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/index.cjs +28 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40885,7 +40885,13 @@ var init_types7 = __esm({
|
|
|
40885
40885
|
})
|
|
40886
40886
|
}),
|
|
40887
40887
|
/** A model call that saved no step of its own, such as a failed attempt or one cut off mid-stream; its `harness_usage` row says what it cost. */
|
|
40888
|
-
external_exports.object({
|
|
40888
|
+
external_exports.object({
|
|
40889
|
+
type: external_exports.literal("model_call"),
|
|
40890
|
+
payload: external_exports.looseObject({
|
|
40891
|
+
/** Ids (`imageId`) of images the provider refused on this call; later calls send a note in their place. */
|
|
40892
|
+
rejectedImages: external_exports.array(external_exports.string()).optional()
|
|
40893
|
+
})
|
|
40894
|
+
})
|
|
40889
40895
|
]);
|
|
40890
40896
|
harnessLiveMessageSchema = external_exports.union([
|
|
40891
40897
|
external_exports.object({ type: external_exports.literal("delta"), streamId: external_exports.string(), text: external_exports.string() }),
|
|
@@ -41056,15 +41062,30 @@ function toolCallMessage(id, name, args, timestamp2, result) {
|
|
|
41056
41062
|
if (name === "web_search" && typeof args.query === "string") {
|
|
41057
41063
|
return { id, type: "web_search", query: args.query, status, timestamp: timestamp2 };
|
|
41058
41064
|
}
|
|
41059
|
-
if (name === "spawn_agent") {
|
|
41060
|
-
const
|
|
41065
|
+
if (name === "spawn_agent" || name === "delegate" || name === "look") {
|
|
41066
|
+
const fusion = name !== "spawn_agent";
|
|
41067
|
+
const reply = fusion ? result?.details : result?.output ? (() => {
|
|
41061
41068
|
try {
|
|
41062
41069
|
return JSON.parse(result.output);
|
|
41063
41070
|
} catch {
|
|
41064
41071
|
return null;
|
|
41065
41072
|
}
|
|
41066
41073
|
})() : null;
|
|
41067
|
-
|
|
41074
|
+
const worker = isRecord(reply) ? reply : void 0;
|
|
41075
|
+
return {
|
|
41076
|
+
id,
|
|
41077
|
+
type: "subagent",
|
|
41078
|
+
toolUseId: id,
|
|
41079
|
+
description: typeof args.title === "string" ? args.title : typeof args.question === "string" ? args.question : fusion ? "Replicas worker" : "Replicas subagent",
|
|
41080
|
+
prompt: typeof args.prompt === "string" ? args.prompt : typeof args.brief === "string" ? args.brief : typeof args.question === "string" ? args.question : "",
|
|
41081
|
+
subagentType: "replicas",
|
|
41082
|
+
model: typeof worker?.model === "string" ? worker.model : typeof args.model === "string" ? args.model : void 0,
|
|
41083
|
+
receiverThreadIds: typeof worker?.agentId === "string" ? [worker.agentId] : void 0,
|
|
41084
|
+
status: !fusion ? result?.isError ? "failed" : "in_progress" : !result ? "in_progress" : result.isError ? "failed" : "completed",
|
|
41085
|
+
...fusion && result?.output ? { output: result.output } : {},
|
|
41086
|
+
nestedEvents: [],
|
|
41087
|
+
timestamp: timestamp2
|
|
41088
|
+
};
|
|
41068
41089
|
}
|
|
41069
41090
|
return createCallDisplayMessage({ id, server: "replicas", tool: name, input: args, output: result?.output, status, timestamp: timestamp2 });
|
|
41070
41091
|
}
|
|
@@ -41156,7 +41177,8 @@ function parseReplicasEvents(events) {
|
|
|
41156
41177
|
upsertDisplayMessage(messages, toolCallMessage(`replicas-tool-${message2.toolCallId}`, call.name, call.args, call.timestamp, {
|
|
41157
41178
|
output: extractToolResultText(message2.content) || void 0,
|
|
41158
41179
|
isError: message2.isError === true,
|
|
41159
|
-
exitCode
|
|
41180
|
+
exitCode,
|
|
41181
|
+
...isRecord(message2.details) ? { details: message2.details } : {}
|
|
41160
41182
|
}));
|
|
41161
41183
|
return;
|
|
41162
41184
|
}
|
|
@@ -43555,7 +43577,7 @@ var CLI_VERSION;
|
|
|
43555
43577
|
var init_cli_version = __esm({
|
|
43556
43578
|
"../shared/src/cli-version.ts"() {
|
|
43557
43579
|
"use strict";
|
|
43558
|
-
CLI_VERSION = "0.3.
|
|
43580
|
+
CLI_VERSION = "0.3.685";
|
|
43559
43581
|
}
|
|
43560
43582
|
});
|
|
43561
43583
|
|