replicas-cli 0.2.804 → 0.2.805
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 +16 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23096,6 +23096,7 @@ function normalizeBackgroundTaskStatus(status) {
|
|
|
23096
23096
|
// ../shared/src/display-message/constants.ts
|
|
23097
23097
|
var USER_MESSAGE_MATCH_GRACE_PERIOD_MS = 3e4;
|
|
23098
23098
|
var COMPACTION_CONTENT = "Context compacted";
|
|
23099
|
+
var GOAL_TOOL_NAME = "goal";
|
|
23099
23100
|
|
|
23100
23101
|
// ../shared/src/shell-commands.ts
|
|
23101
23102
|
var SHELL_OPAQUE = "\0";
|
|
@@ -27305,6 +27306,20 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
27305
27306
|
const messageId = event.payload.message?.id;
|
|
27306
27307
|
const contentBlocks = normalizeContentBlocks(event.payload.message?.content);
|
|
27307
27308
|
const messageKey = messageId || event.timestamp;
|
|
27309
|
+
const localCommand = event.payload.local_command_run;
|
|
27310
|
+
const goalArgs = isRecord(localCommand) && localCommand.command === GOAL_TOOL_NAME && typeof localCommand.args === "string" ? localCommand.args.trim() : "";
|
|
27311
|
+
if (goalArgs) {
|
|
27312
|
+
upsertDisplayMessage(messages, {
|
|
27313
|
+
id: `goal-${messageKey}`,
|
|
27314
|
+
type: "tool_call",
|
|
27315
|
+
server: "claude",
|
|
27316
|
+
tool: GOAL_TOOL_NAME,
|
|
27317
|
+
input: goalArgs === "clear" ? void 0 : { objective: goalArgs },
|
|
27318
|
+
status: "completed",
|
|
27319
|
+
timestamp: event.timestamp
|
|
27320
|
+
});
|
|
27321
|
+
return;
|
|
27322
|
+
}
|
|
27308
27323
|
const streamRefs = messageId ? partialIndexes.get(messageId) : void 0;
|
|
27309
27324
|
if (messageId) {
|
|
27310
27325
|
if (liveStreamId !== null && liveStreamId !== messageId) {
|
|
@@ -28061,7 +28076,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28061
28076
|
});
|
|
28062
28077
|
|
|
28063
28078
|
// ../shared/src/cli-version.ts
|
|
28064
|
-
var CLI_VERSION = "0.2.
|
|
28079
|
+
var CLI_VERSION = "0.2.805";
|
|
28065
28080
|
|
|
28066
28081
|
// ../shared/src/version.ts
|
|
28067
28082
|
function compareVersions(v1, v2) {
|