pi-goal-x 0.18.5 → 0.18.7
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 +6 -25
- 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, {
|
|
@@ -2628,28 +2627,12 @@ ${objective}` : objective,
|
|
|
2628
2627
|
details: goalDetails(state.goal),
|
|
2629
2628
|
};
|
|
2630
2629
|
} else {
|
|
2631
|
-
// ── Continue working
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
content: [
|
|
2635
|
-
`Goal audit skipped — user chose to continue working.`,
|
|
2636
|
-
`Goal remains ${statusLabel(auditTarget)}.`,
|
|
2637
|
-
].join("\n"),
|
|
2638
|
-
display: true,
|
|
2639
|
-
details: { phase: "skipped", goalId: auditTarget.id, auditor: auditorLabel },
|
|
2640
|
-
});
|
|
2641
|
-
syncGoalTools();
|
|
2642
|
-
updateUI(ctx);
|
|
2630
|
+
// ── Continue working → pause the goal ──────────────
|
|
2631
|
+
pauseActiveGoal(ctx);
|
|
2632
|
+
turnStoppedFor = state.goal?.id ?? null;
|
|
2643
2633
|
return {
|
|
2644
|
-
content: [{
|
|
2645
|
-
|
|
2646
|
-
text: [
|
|
2647
|
-
"User chose to continue working (bypassed audit via Escape).",
|
|
2648
|
-
"",
|
|
2649
|
-
"Resume working toward the goal.",
|
|
2650
|
-
].join("\n"),
|
|
2651
|
-
}],
|
|
2652
|
-
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,
|
|
2653
2636
|
};
|
|
2654
2637
|
}
|
|
2655
2638
|
}
|
|
@@ -3326,6 +3309,7 @@ promptGuidelines: [
|
|
|
3326
3309
|
// Per-turn flag resets (#4 + C9 fix).
|
|
3327
3310
|
goalWorkToolCalledThisTurn = false;
|
|
3328
3311
|
turnStoppedFor = null;
|
|
3312
|
+
syncGoalTools();
|
|
3329
3313
|
beginAccounting();
|
|
3330
3314
|
updateUI(ctx);
|
|
3331
3315
|
});
|
|
@@ -3357,9 +3341,6 @@ promptGuidelines: [
|
|
|
3357
3341
|
if (isMeaningfulProgressToolCall(event.toolName, asRecord(event)?.args)) {
|
|
3358
3342
|
if (state.goal?.id) activeGetGoalTurnsByGoalId.delete(state.goal.id);
|
|
3359
3343
|
goalWorkToolCalledThisTurn = true;
|
|
3360
|
-
} else if (state.goal?.status === "active" && state.goal.autoContinue && event.toolName !== "get_goal") {
|
|
3361
|
-
// A non-progress tool should not create an infinite retry chain.
|
|
3362
|
-
turnStoppedFor = state.goal.id;
|
|
3363
3344
|
}
|
|
3364
3345
|
return;
|
|
3365
3346
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goal-x",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.7",
|
|
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",
|