@tryarcanist/cli 0.1.149 → 0.1.151
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.js +0 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1536,14 +1536,6 @@ function projectPromptRetrying(data, index) {
|
|
|
1536
1536
|
...typeof data?.reason === "string" ? { reason: data.reason } : {}
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
|
-
function projectBranchChanged(data, index) {
|
|
1540
|
-
return {
|
|
1541
|
-
type: "branch_changed",
|
|
1542
|
-
id: `bc-${data?.timestamp ?? index}`,
|
|
1543
|
-
branch: typeof data?.branch === "string" ? data.branch : "",
|
|
1544
|
-
...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
|
|
1545
|
-
};
|
|
1546
|
-
}
|
|
1547
1539
|
function projectMemoryUsage(data, index) {
|
|
1548
1540
|
const activeMemoryIds = Array.isArray(data?.activeMemoryIds) ? data.activeMemoryIds.filter((id) => typeof id === "string" && id.trim().length > 0) : [];
|
|
1549
1541
|
const activeMemories = mergeMemoryRefs(activeMemoryIds, data?.activeMemories);
|
|
@@ -1810,9 +1802,6 @@ function flattenSessionEvents(raw) {
|
|
|
1810
1802
|
case "prompt_retrying":
|
|
1811
1803
|
pushEvent(state, projectPromptRetrying(data, state.merged.length));
|
|
1812
1804
|
break;
|
|
1813
|
-
case "branch_changed":
|
|
1814
|
-
pushEvent(state, projectBranchChanged(data, state.merged.length));
|
|
1815
|
-
break;
|
|
1816
1805
|
case "memory_usage":
|
|
1817
1806
|
pushEvent(state, projectMemoryUsage(data, state.merged.length));
|
|
1818
1807
|
break;
|
|
@@ -2128,9 +2117,6 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
2128
2117
|
`;
|
|
2129
2118
|
}
|
|
2130
2119
|
return `*[${event.tool} output truncated]*
|
|
2131
|
-
`;
|
|
2132
|
-
case "branch_changed":
|
|
2133
|
-
return `*[switched to branch \`${event.branch}\`]*
|
|
2134
2120
|
`;
|
|
2135
2121
|
case "memory_usage":
|
|
2136
2122
|
return event.activeMemoryIds.length > 0 ? `*[used ${event.activeMemoryIds.length === 1 ? "1 memory" : `${event.activeMemoryIds.length} memories`}: ${event.activeMemories.map((memory) => `\`${memory.title || memory.id}\``).join(", ")}]*
|
|
@@ -2414,8 +2400,6 @@ function renderWatchEvent(event, state) {
|
|
|
2414
2400
|
const files = Array.isArray(data.files) ? data.files.filter((item) => typeof item === "string") : [];
|
|
2415
2401
|
return { kind: "line", line: `[patch] ${files.join(", ")}` };
|
|
2416
2402
|
}
|
|
2417
|
-
case "branch_changed":
|
|
2418
|
-
return { kind: "line", line: `[branch] ${String(data.branch ?? "")}` };
|
|
2419
2403
|
case "agent_timeline": {
|
|
2420
2404
|
const eventType = String(data.eventType ?? "timeline");
|
|
2421
2405
|
const status = typeof data.status === "string" ? ` ${data.status}` : "";
|