pi-better-subagents 0.26.2 → 0.27.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 +23 -6
- package/child-operations.ts +1109 -0
- package/child-ownership.ts +12 -1
- package/cleanup.ts +11 -2
- package/docs/usage.md +44 -3
- package/effective-settings.ts +26 -5
- package/finalization.ts +53 -8
- package/goal-provider.ts +42 -4
- package/index.ts +554 -25
- package/lifecycle.ts +26 -0
- package/navigator.mjs +13 -2
- package/navigator.ts +1 -0
- package/operation-bridge-types.ts +1109 -0
- package/package.json +2 -1
- package/park-checkpoint.ts +61 -0
- package/parse.ts +19 -1
- package/registry.ts +192 -6
- package/session-store.ts +3 -0
- package/shared-execution-policy.ts +2 -0
- package/shared-operation-coordinator/index.ts +113 -0
- package/shared-operation-coordinator/src/errors.ts +75 -0
- package/shared-operation-coordinator/src/operations.ts +376 -0
- package/shared-operation-coordinator/src/outbox.ts +431 -0
- package/shared-operation-coordinator/src/rows.ts +439 -0
- package/shared-operation-coordinator/src/schema.ts +244 -0
- package/shared-operation-coordinator/src/sqlite.ts +239 -0
- package/shared-operation-coordinator/src/store.ts +397 -0
- package/shared-operation-coordinator/src/types.ts +648 -0
- package/shared-operation-coordinator/src/validate.ts +239 -0
- package/shared-operation-coordinator/src/waits.ts +1378 -0
- package/shared-task-exec.ts +9 -0
- package/stop.ts +7 -3
- package/task-guard.ts +22 -3
- package/task-policy.ts +7 -0
- package/worker-operations-host.ts +1226 -0
- package/worker-waits.ts +2549 -0
package/README.md
CHANGED
|
@@ -36,12 +36,29 @@ authorized, write the result, and return. Pending CI is a valid handoff, not a p
|
|
|
36
36
|
The hook refuses recognized `gh run watch`, `gh pr checks --watch`, and bundled
|
|
37
37
|
delivery-watcher commands through `bash` and `run_application`. Short status reads,
|
|
38
38
|
failed-log retrieval, and legitimate long local tests and builds remain allowed.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
Workers retain ownership of their assigned validation. When Background Tasks is
|
|
40
|
+
loaded, default workers receive a guarded bridge to supervised local operations.
|
|
41
|
+
They launch a known long command with `bg_task_spawn`, continue independent work,
|
|
42
|
+
and call `wait_for_operations` when only the operation remains. The worker saves
|
|
43
|
+
the wait result and exits, releasing its capacity slot. Once the operation settles,
|
|
44
|
+
the same conversation resumes to read the evidence, acknowledge its interpretation,
|
|
45
|
+
and finish the assignment. A completed parked attempt does not complete the assignment.
|
|
46
|
+
|
|
47
|
+
When the guarded bridge is unavailable, workers hand back the exact command, cwd,
|
|
48
|
+
required environment variable names (never secret values), current evidence and
|
|
49
|
+
remaining validation. The coordinator runs the command through background tools
|
|
50
|
+
and inspects its terminal result. Shell polling and detachment are not substitutes.
|
|
51
|
+
|
|
52
|
+
Explicit tool exclusions and clean loadouts remain authoritative. The bridge does
|
|
53
|
+
not expand permissions: an operation must satisfy both the captured worker policy
|
|
54
|
+
and the current Background Tasks policy. Parking requires Pi SDK 0.82.1 or later,
|
|
55
|
+
a saved conversation, and a registered continuation adapter. If any prerequisite
|
|
56
|
+
cannot be proved, parking is refused or held with a reason.
|
|
57
|
+
|
|
58
|
+
The coordinator owns established command-only jobs and external delivery waits.
|
|
59
|
+
Use `watch_delivery` for supported merge observation. Recognized external watcher
|
|
60
|
+
commands remain refused in workers, including through their background bridge.
|
|
61
|
+
Command permissions and timeouts are unchanged.
|
|
45
62
|
|
|
46
63
|
## Install
|
|
47
64
|
|