@vibedeckx/darwin-arm64 0.3.55 → 0.3.56
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/bin.js +21 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -244594,7 +244594,22 @@ function lastErrorMessage(entries) {
|
|
|
244594
244594
|
}
|
|
244595
244595
|
return void 0;
|
|
244596
244596
|
}
|
|
244597
|
+
var DONE_ITEM_MAX_CHARS = 200;
|
|
244598
|
+
function appendDoneItem(items, item) {
|
|
244599
|
+
const chars = Array.from(item.trim());
|
|
244600
|
+
const clipped = chars.length > DONE_ITEM_MAX_CHARS ? `${chars.slice(0, DONE_ITEM_MAX_CHARS).join("")}\u2026` : chars.join("");
|
|
244601
|
+
return [...items ?? [], clipped];
|
|
244602
|
+
}
|
|
244603
|
+
function doneItemsBlock(items) {
|
|
244604
|
+
if (!items?.length) return "";
|
|
244605
|
+
return `## \u4E4B\u524D\u7684 session \u5DF2\u5B8C\u6210\u7684\u9879\uFF08\u5FAA\u73AF\u81EA\u52A8\u8BB0\u5F55\uFF0C\u5171 ${items.length} \u9879\uFF0C\u6309\u5B8C\u6210\u987A\u5E8F\uFF09
|
|
244606
|
+
${items.map((i) => `- ${i}`).join("\n")}
|
|
244607
|
+
---
|
|
244608
|
+
|
|
244609
|
+
`;
|
|
244610
|
+
}
|
|
244597
244611
|
function iterationInstruction(params) {
|
|
244612
|
+
const done = doneItemsBlock(params.doneItems);
|
|
244598
244613
|
const note = params.handoffNote ? `## \u4E0A\u4E00\u8F6E\u7559\u4E0B\u7684\u4EA4\u63A5
|
|
244599
244614
|
${params.handoffNote}
|
|
244600
244615
|
---
|
|
@@ -244602,7 +244617,7 @@ ${params.handoffNote}
|
|
|
244602
244617
|
` : "";
|
|
244603
244618
|
const closing = params.handoff ? `${TASK_STATUS_INSTRUCTIONS}
|
|
244604
244619
|
${HANDOFF_INSTRUCTIONS}` : TASK_STATUS_INSTRUCTIONS;
|
|
244605
|
-
return `${note}${params.prompt}
|
|
244620
|
+
return `${done}${note}${params.prompt}
|
|
244606
244621
|
${closing}`;
|
|
244607
244622
|
}
|
|
244608
244623
|
var taskActivationKey = (runId, sessionId) => `task:${runId}:${sessionId}`;
|
|
@@ -244840,6 +244855,11 @@ var RepeatLoopRunner = class {
|
|
|
244840
244855
|
prevItem: item,
|
|
244841
244856
|
remaining,
|
|
244842
244857
|
stopAfterCurrent: false,
|
|
244858
|
+
// Only a completed item enters the ledger: a blocked or unreadable
|
|
244859
|
+
// reply names the item it was stuck on, and a `continue` the check
|
|
244860
|
+
// command rejected is a claim, not progress — after the gate the
|
|
244861
|
+
// next session must pick that step up again, not skip it.
|
|
244862
|
+
...status === "continue" && item && !checkFailure ? { doneItems: appendDoneItem(freshParams.doneItems, item) } : {},
|
|
244843
244863
|
...freshParams.handoff ? { handoffNote: handoff ?? freshParams.handoffNote ?? null } : {}
|
|
244844
244864
|
};
|
|
244845
244865
|
const insertRun2 = settlement2.next === "finished" ? void 0 : {
|