@narumitw/pi-goal 0.54.0 → 0.54.1
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/chunks/{chunk-XHEFHXTF.js → chunk-UC6U2RFG.js} +8 -2
- package/dist/chunks/{chunk-XHEFHXTF.js.map → chunk-UC6U2RFG.js.map} +2 -2
- package/dist/chunks/{menu-4GLAABLR.js → menu-R2B7UE3T.js} +2 -2
- package/dist/index.ts +6 -3
- package/dist/index.ts.map +2 -2
- package/package.json +2 -2
- package/src/lifecycle.ts +5 -0
- package/src/runtime.ts +9 -1
- package/src/tools.ts +1 -1
- /package/dist/chunks/{menu-4GLAABLR.js.map → menu-R2B7UE3T.js.map} +0 -0
|
@@ -1557,6 +1557,13 @@ var GoalRuntime = class {
|
|
|
1557
1557
|
clearLegacyPersistedGoal(cwd);
|
|
1558
1558
|
}
|
|
1559
1559
|
clearActiveGoal(ctx, reason = "goal cleared", releaseWorkflow = true) {
|
|
1560
|
+
this.clearActiveGoalState(ctx, reason, releaseWorkflow);
|
|
1561
|
+
this.ensureInactiveGoalContextContract(ctx);
|
|
1562
|
+
}
|
|
1563
|
+
clearCompletedGoal(ctx) {
|
|
1564
|
+
this.clearActiveGoalState(ctx, "goal cleared", true);
|
|
1565
|
+
}
|
|
1566
|
+
clearActiveGoalState(ctx, reason, releaseWorkflow) {
|
|
1560
1567
|
const clearedGoal = this.activeGoal;
|
|
1561
1568
|
this.clearGoalWaitTimer();
|
|
1562
1569
|
this.cancelContinuationWork();
|
|
@@ -1566,7 +1573,6 @@ var GoalRuntime = class {
|
|
|
1566
1573
|
this.activeGoal = void 0;
|
|
1567
1574
|
this.legacyQueueState = void 0;
|
|
1568
1575
|
this.clearPersistedGoal(ctx.cwd, clearedGoal, reason);
|
|
1569
|
-
this.ensureInactiveGoalContextContract(ctx);
|
|
1570
1576
|
ctx.ui.setStatus(STATUS_KEY, void 0);
|
|
1571
1577
|
if (releaseWorkflow) this.releaseWorkflow();
|
|
1572
1578
|
}
|
|
@@ -1894,4 +1900,4 @@ export {
|
|
|
1894
1900
|
isContradictoryCompletionSummary,
|
|
1895
1901
|
goalIdRejectionReason
|
|
1896
1902
|
};
|
|
1897
|
-
//# sourceMappingURL=chunk-
|
|
1903
|
+
//# sourceMappingURL=chunk-UC6U2RFG.js.map
|