pi-better-goal 0.6.0 → 0.6.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/README.md +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Use `pi-better-goal` when a Pi session should keep an explicit objective visible
|
|
|
17
17
|
- Background work that finishes while an `ask_user_question` is pending is handed to the agent right after the answer.
|
|
18
18
|
- A compact goal widget that does not replace Pi's footer.
|
|
19
19
|
- Background activity tracking for subagents and other registered providers.
|
|
20
|
-
- A progress-aware follow-up loop with ten identical no-progress retries and linear backoff (
|
|
20
|
+
- A progress-aware follow-up loop with ten identical no-progress retries and linear backoff (60s through 600s by default), followed by a hold recoverable with `/goal resume`. Delays saturate at Node's timer limit, and observed background drains reset progress before callback turns can cancel the wake. Pi's network retry policy remains independent.
|
|
21
21
|
- An observable-progress stall state for active goals.
|
|
22
22
|
|
|
23
23
|
## Skill-Owned Workflows
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./types.js";
|
|
51
51
|
|
|
52
52
|
const POLL_INTERVAL_MS = 2_000;
|
|
53
|
-
const DEFAULT_IDLE_CONTINUATION_DELAY_MS =
|
|
53
|
+
const DEFAULT_IDLE_CONTINUATION_DELAY_MS = 60_000;
|
|
54
54
|
const DEFAULT_MAX_NO_PROGRESS_RETRIES = 10;
|
|
55
55
|
const MAX_TIMER_DELAY_MS = 2_147_483_647;
|
|
56
56
|
const WAKE_DISABLED =
|
|
@@ -124,7 +124,7 @@ function parseDurationEnv(raw: string | undefined, fallback: number): number {
|
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Linear backoff for no-progress retries: each identical outcome waits one more
|
|
127
|
-
* grace period than the last (
|
|
127
|
+
* grace period than the last (60s, 120s, 180s, ... by default).
|
|
128
128
|
*/
|
|
129
129
|
export function idleContinuationDelay(noProgressRetries: number, baseMs = IDLE_CONTINUATION_DELAY_MS): number {
|
|
130
130
|
return Math.min(MAX_TIMER_DELAY_MS, baseMs * (1 + Math.max(0, noProgressRetries)));
|