pi-goal-x 0.18.4 → 0.18.6
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/extensions/goal.ts +5 -23
- package/package.json +1 -1
package/extensions/goal.ts
CHANGED
|
@@ -510,7 +510,6 @@ export default function goalExtension(pi: ExtensionAPI): void {
|
|
|
510
510
|
stopAuditAnimation();
|
|
511
511
|
auditProgress = null;
|
|
512
512
|
goalWidgetComponent?.invalidate();
|
|
513
|
-
ctx.ui.notify("Audit skipped by user.", "warning");
|
|
514
513
|
if (state.goal) {
|
|
515
514
|
try {
|
|
516
515
|
appendGoalEvent(ctx, {
|
|
@@ -904,7 +903,6 @@ export default function goalExtension(pi: ExtensionAPI): void {
|
|
|
904
903
|
}
|
|
905
904
|
clearStoppedRuntimeState();
|
|
906
905
|
runningGoalId = null;
|
|
907
|
-
syncGoalTools();
|
|
908
906
|
updateUI(ctx);
|
|
909
907
|
}
|
|
910
908
|
|
|
@@ -2629,28 +2627,12 @@ ${objective}` : objective,
|
|
|
2629
2627
|
details: goalDetails(state.goal),
|
|
2630
2628
|
};
|
|
2631
2629
|
} else {
|
|
2632
|
-
// ── Continue working
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
content: [
|
|
2636
|
-
`Goal audit skipped — user chose to continue working.`,
|
|
2637
|
-
`Goal remains ${statusLabel(auditTarget)}.`,
|
|
2638
|
-
].join("\n"),
|
|
2639
|
-
display: true,
|
|
2640
|
-
details: { phase: "skipped", goalId: auditTarget.id, auditor: auditorLabel },
|
|
2641
|
-
});
|
|
2642
|
-
syncGoalTools();
|
|
2643
|
-
updateUI(ctx);
|
|
2630
|
+
// ── Continue working → pause the goal ──────────────
|
|
2631
|
+
pauseActiveGoal(ctx);
|
|
2632
|
+
turnStoppedFor = state.goal?.id ?? null;
|
|
2644
2633
|
return {
|
|
2645
|
-
content: [{
|
|
2646
|
-
|
|
2647
|
-
text: [
|
|
2648
|
-
"User chose to continue working (bypassed audit via Escape).",
|
|
2649
|
-
"",
|
|
2650
|
-
"Resume working toward the goal.",
|
|
2651
|
-
].join("\n"),
|
|
2652
|
-
}],
|
|
2653
|
-
details: goalDetails(state.goal),
|
|
2634
|
+
content: [{ type: "text", text: "Goal paused — user chose to continue working after skipping audit." }],
|
|
2635
|
+
details: state.goal ? goalDetails(state.goal) : undefined,
|
|
2654
2636
|
};
|
|
2655
2637
|
}
|
|
2656
2638
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goal-x",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"description": "Goal mode extension for pi: persistent long-running objectives, /goal-set drafting, Sisyphus prompt style, autoContinue, and an above-editor status overlay. Fork of @capyup/pi-goal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pi-goal-x contributors",
|