@tryarcanist/cli 0.1.260 → 0.1.262
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 +3 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8845,7 +8845,6 @@ function isNonContentInterstitial(event) {
|
|
|
8845
8845
|
switch (event.type) {
|
|
8846
8846
|
case "agent_progress":
|
|
8847
8847
|
case "retry_status":
|
|
8848
|
-
case "memory_usage":
|
|
8849
8848
|
case "memory_recall_usage":
|
|
8850
8849
|
case "agent_timeline":
|
|
8851
8850
|
return true;
|
|
@@ -9038,18 +9037,6 @@ function projectPromptRetrying(data, index) {
|
|
|
9038
9037
|
...typeof data?.reason === "string" ? { reason: data.reason } : {}
|
|
9039
9038
|
};
|
|
9040
9039
|
}
|
|
9041
|
-
function projectMemoryUsage(data, index) {
|
|
9042
|
-
const activeMemoryIds = Array.isArray(data?.activeMemoryIds) ? data.activeMemoryIds.filter((id) => typeof id === "string" && id.trim().length > 0) : [];
|
|
9043
|
-
const activeMemories = mergeMemoryRefs(activeMemoryIds, data?.activeMemories);
|
|
9044
|
-
return {
|
|
9045
|
-
type: "memory_usage",
|
|
9046
|
-
id: `mem-${data?.timestamp ?? index}`,
|
|
9047
|
-
activeMemoryIds,
|
|
9048
|
-
activeMemories,
|
|
9049
|
-
usageSource: data?.usageSource === "company_bootstrap" ? "company_bootstrap" : "prompt_start",
|
|
9050
|
-
...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
|
|
9051
|
-
};
|
|
9052
|
-
}
|
|
9053
9040
|
function projectMemoryRecallUsage(data, index) {
|
|
9054
9041
|
const requestedMemoryIds = Array.isArray(data?.requestedMemoryIds) ? data.requestedMemoryIds.filter((id) => typeof id === "string" && id.trim().length > 0) : [];
|
|
9055
9042
|
const returnedMemoryIds = Array.isArray(data?.returnedMemoryIds) ? data.returnedMemoryIds.filter((id) => typeof id === "string" && id.trim().length > 0) : [];
|
|
@@ -9324,9 +9311,6 @@ function flattenSessionEvents(raw) {
|
|
|
9324
9311
|
case "prompt_retrying":
|
|
9325
9312
|
pushEvent(state, projectPromptRetrying(data, state.merged.length));
|
|
9326
9313
|
break;
|
|
9327
|
-
case "memory_usage":
|
|
9328
|
-
pushEvent(state, projectMemoryUsage(data, state.merged.length));
|
|
9329
|
-
break;
|
|
9330
9314
|
case "memory_recall_usage":
|
|
9331
9315
|
pushEvent(state, projectMemoryRecallUsage(data, state.merged.length));
|
|
9332
9316
|
break;
|
|
@@ -9520,8 +9504,7 @@ var SCAFFOLDING_MARKERS = [
|
|
|
9520
9504
|
/^Previous Slack message\b/im,
|
|
9521
9505
|
/^Current Slack message author:/im,
|
|
9522
9506
|
/^Current Slack channel:/im,
|
|
9523
|
-
/^Repository:\s+\S+$/im
|
|
9524
|
-
/^\[arcanist:review-loop\b/im
|
|
9507
|
+
/^Repository:\s+\S+$/im
|
|
9525
9508
|
];
|
|
9526
9509
|
var REVIEW_PROMPT_FIRST_LINE_RE = /^Review pull request \S+ at its current head\./;
|
|
9527
9510
|
function stripReviewPromptEnrichment(text) {
|
|
@@ -9551,11 +9534,6 @@ function stripPromptScaffolding(text) {
|
|
|
9551
9534
|
return kept.join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
9552
9535
|
}
|
|
9553
9536
|
function derivePromptDisplayText(prompt) {
|
|
9554
|
-
if (prompt.prompt.trimStart().startsWith("[arcanist:review-loop")) {
|
|
9555
|
-
const reply2 = prompt.replyToText?.trim();
|
|
9556
|
-
if (reply2 && reply2 !== prompt.prompt.trim() && !promptContainsScaffolding(reply2)) return reply2;
|
|
9557
|
-
return prompt.prompt.trim();
|
|
9558
|
-
}
|
|
9559
9537
|
const reply = prompt.replyToText?.trim();
|
|
9560
9538
|
if (reply && !promptContainsScaffolding(reply)) return reply;
|
|
9561
9539
|
if (REVIEW_PROMPT_FIRST_LINE_RE.test(prompt.prompt.trimStart())) {
|
|
@@ -9582,6 +9560,8 @@ var ERROR_CODES = [
|
|
|
9582
9560
|
"model_overloaded",
|
|
9583
9561
|
"config_error",
|
|
9584
9562
|
"failed_edits",
|
|
9563
|
+
// No producer since the memory subsystem was removed. Retained because the code is
|
|
9564
|
+
// persisted on historical session rows, which would otherwise render as "unknown".
|
|
9585
9565
|
"memory_enforcement_failed",
|
|
9586
9566
|
"failure_loop_suspected",
|
|
9587
9567
|
"empty_completion",
|
|
@@ -9721,10 +9701,6 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
9721
9701
|
}
|
|
9722
9702
|
return `*[${event.tool} output truncated]*
|
|
9723
9703
|
`;
|
|
9724
|
-
// Historical sessions may still carry `memory_usage`. Memory subsystem is
|
|
9725
|
-
// gone; keep the case for ActivityEvent exhaustiveness and render nothing.
|
|
9726
|
-
case "memory_usage":
|
|
9727
|
-
return "";
|
|
9728
9704
|
// Despite the name, `memory_recall_usage` is Zeus's telemetry transport for
|
|
9729
9705
|
// some events and still appears in projected transcripts. Keep handling.
|
|
9730
9706
|
case "memory_recall_usage":
|