@narumitw/pi-goal 0.55.2 → 0.55.3
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/CHANGELOG.md +6 -0
- package/README.md +7 -2
- package/dist/chunks/{chunk-BMHQ3WQY.ts → chunk-OO6HXYSS.ts} +2 -2
- package/dist/chunks/{chunk-BMHQ3WQY.ts.map → chunk-OO6HXYSS.ts.map} +2 -2
- package/dist/chunks/{menu-JTGZ735U.ts → menu-ITMIHMQS.ts} +2 -2
- package/dist/index.ts +73 -2
- package/dist/index.ts.map +3 -3
- package/package.json +1 -1
- package/src/runtime.ts +1 -1
- package/src/tools.ts +3 -0
- package/src/wait-renderer.ts +106 -0
- /package/dist/chunks/{menu-JTGZ735U.ts.map → menu-ITMIHMQS.ts.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @narumitw/pi-goal
|
|
2
2
|
|
|
3
|
+
## 0.55.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ff27729: Keep the waiting footer short and render `goal_wait` with a compact reason preview, resume guidance, and expandable diagnostic details. Preserve tool payloads and waiting behavior.
|
|
8
|
+
|
|
3
9
|
## 0.55.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ See [Managing goals](./docs/managing-goals.md) for safety-epoch resets, failed-d
|
|
|
148
148
|
|
|
149
149
|
- `goal_complete` records completion only for the exact active goal id, requires an evidence-based summary, and renders an accepted summary as Markdown in the TUI.
|
|
150
150
|
- `goal_blocked` records a true repeated impasse with the exact goal id, reason, evidence, and repeated-turn count.
|
|
151
|
-
- `goal_wait` pauses automatic continuation after the agent arranges an external wake source, with an optional bounded resume deadline.
|
|
151
|
+
- `goal_wait` pauses automatic continuation after the agent arranges an external wake source, with an optional bounded resume deadline and expandable TUI details.
|
|
152
152
|
|
|
153
153
|
## 🔁 Session and reload behavior
|
|
154
154
|
|
|
@@ -180,7 +180,7 @@ This version no longer reads that global file, and `/goal clear` removes any leg
|
|
|
180
180
|
`@narumitw/pi-statusline` adds the default `🎯` icon unless configured otherwise:
|
|
181
181
|
|
|
182
182
|
- `active 3m · automatic 12/25` — an active goal without a token budget; elapsed time counts only periods when its status is active and not waiting.
|
|
183
|
-
- `waiting
|
|
183
|
+
- `waiting` — an active Goal is quiet until non-Goal work or its optional deadline wakes it; open `/goal` → **View full status** or use `/goal status` for the reason, deadline, and automatic-work count.
|
|
184
184
|
- `active 18k/100k · automatic 12/25` — an active goal with token usage and budget.
|
|
185
185
|
- `active 3m · automatic Unlimited` — explicit Unlimited automatic work.
|
|
186
186
|
- `paused · automatic limit 25/25` — the automatic-work limit paused the goal; `/goal` opens the recovery preview.
|
|
@@ -280,6 +280,11 @@ The tool result reports both the requested and effective values.
|
|
|
280
280
|
Prefer deadlines measured in minutes instead of repeated short wakes.
|
|
281
281
|
Omitting `resume_after_ms` intentionally permits an indefinite quiet wait.
|
|
282
282
|
|
|
283
|
+
In the TUI, the tool block shows a reason preview of at most two rows, any absolute safety deadline, and how to resume.
|
|
284
|
+
Use Pi's configured tool-expansion action to read the complete reason, Goal ID, and requested/effective delays when clamping occurs.
|
|
285
|
+
The call header does not repeat raw arguments; rejected calls retain their rejection message.
|
|
286
|
+
Print, JSON, and RPC tool results keep their original content and structured details.
|
|
287
|
+
|
|
283
288
|
An accepted call keeps the canonical Goal status active, checkpoints active elapsed time, and cancels pending continuation work.
|
|
284
289
|
It persists the reason and optional absolute deadline and terminates the normal single-tool run.
|
|
285
290
|
Call `goal_wait` alone because Pi only guarantees early termination when every finalized result in a parallel tool batch terminates.
|
|
@@ -2197,7 +2197,7 @@ function formatStatus(goal, automaticTurnLimit = DEFAULT_GOAL_SETTINGS.continuat
|
|
|
2197
2197
|
if (goal.status === "complete") return "complete";
|
|
2198
2198
|
const automatic = automaticTurnLimit === null ? "automatic Unlimited" : `automatic ${goal.automaticModelTurns}/${automaticTurnLimit}`;
|
|
2199
2199
|
if (goal.waiting) {
|
|
2200
|
-
return
|
|
2200
|
+
return "waiting";
|
|
2201
2201
|
}
|
|
2202
2202
|
if (goal.status === "paused" && goal.safetyPauseCause === "continuation_limit") {
|
|
2203
2203
|
if (automaticTurnLimit === null) {
|
|
@@ -2366,4 +2366,4 @@ export {
|
|
|
2366
2366
|
isContradictoryCompletionSummary,
|
|
2367
2367
|
goalIdRejectionReason
|
|
2368
2368
|
};
|
|
2369
|
-
//# sourceMappingURL=chunk-
|
|
2369
|
+
//# sourceMappingURL=chunk-OO6HXYSS.ts.map
|