nubos-pilot 1.3.0 → 1.3.2
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 +10 -0
- package/bin/np-tools/_commands.cjs +2 -0
- package/bin/np-tools/_elision-proxy-entry.cjs +13 -0
- package/bin/np-tools/doctor.cjs +25 -3
- package/bin/np-tools/elision-bench.cjs +67 -0
- package/bin/np-tools/elision-get.cjs +48 -0
- package/bin/np-tools/elision-get.test.cjs +66 -0
- package/bin/np-tools/loop-run-round.cjs +25 -11
- package/bin/np-tools/plan-milestone.cjs +1 -0
- package/bin/np-tools/research-phase.cjs +1 -1
- package/bin/np-tools/resume-work.cjs +9 -0
- package/bin/np-tools/resume-work.test.cjs +21 -1
- package/bin/np-tools/spawn-headless.cjs +62 -9
- package/lib/cache-align.cjs +78 -0
- package/lib/cache-align.test.cjs +69 -0
- package/lib/checkpoint-reconcile.cjs +42 -0
- package/lib/checkpoint-reconcile.test.cjs +106 -0
- package/lib/compress.cjs +495 -0
- package/lib/compress.test.cjs +267 -0
- package/lib/config-defaults.cjs +39 -0
- package/lib/config-schema.cjs +40 -4
- package/lib/elision-bench.cjs +409 -0
- package/lib/elision-bench.test.cjs +89 -0
- package/lib/elision-proxy.cjs +158 -0
- package/lib/elision-proxy.test.cjs +243 -0
- package/lib/elision.cjs +163 -0
- package/lib/elision.test.cjs +143 -0
- package/lib/git.cjs +4 -2
- package/lib/nubosloop.cjs +1 -1
- package/lib/output-steering.cjs +68 -0
- package/lib/output-steering.test.cjs +74 -0
- package/lib/researcher-swarm.cjs +14 -3
- package/lib/runtime/agent-loop.cjs +36 -6
- package/lib/runtime/agent-loop.test.cjs +105 -0
- package/lib/runtime/dispatch.cjs +6 -6
- package/lib/runtime/dispatch.test.cjs +17 -3
- package/lib/runtime/providers/openai-compat.cjs +2 -1
- package/lib/runtime/providers/openai-compat.test.cjs +9 -0
- package/lib/runtime/tools/index.cjs +33 -1
- package/lib/runtime/tools/index.test.cjs +24 -0
- package/lib/schemas/data/elision-entry.v1.json +16 -0
- package/lib/token-cost.cjs +46 -0
- package/lib/token-cost.test.cjs +42 -0
- package/np-tools.cjs +2 -0
- package/package.json +1 -1
- package/workflows/execute-phase.md +10 -2
package/package.json
CHANGED
|
@@ -118,16 +118,17 @@ If zero skills match, omit the block — do **not** invent skills. Adding new sk
|
|
|
118
118
|
|
|
119
119
|
## Pre-Flight — orphan-checkpoint guard
|
|
120
120
|
|
|
121
|
-
Detect stale checkpoints from a prior run before starting new work:
|
|
121
|
+
Detect stale checkpoints from a prior run before starting new work. `init resume-work` first **reconciles every checkpoint against git** (`lib/checkpoint-reconcile.cjs`): any checkpoint whose task already has a `task(<id>):` commit is a tombstone (finishTask never unlinked it — crash between commit and unlink, or a commit made outside `commit-task`) and is pruned silently. They surface in `RESUME.pruned_checkpoints` for the log, never as a prompt. Only genuinely **uncommitted** checkpoints reach `status: orphan` and the dialog below — so a finished milestone can never block the next one.
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
124
|
RESUME=$(node .nubos-pilot/bin/np-tools.cjs init resume-work)
|
|
125
125
|
RESUME_STATUS=$(echo "$RESUME" | node -e "process.stdin.on('data', d => console.log(JSON.parse(d).status))")
|
|
126
126
|
if [ "$RESUME_STATUS" = "orphan" ]; then
|
|
127
|
+
ORPHAN_ID=$(echo "$RESUME" | node -e "process.stdin.on('data', d => { const p = JSON.parse(d); console.log((p.checkpoint_ids || [])[0] || '') })")
|
|
127
128
|
CHOICE=$(node .nubos-pilot/bin/np-tools.cjs askuser --json '{
|
|
128
129
|
"type": "select",
|
|
129
130
|
"header": "Verwaiste Checkpoints gefunden",
|
|
130
|
-
"question": "Vor dem Milestone-Start
|
|
131
|
+
"question": "Vor dem Milestone-Start wurde ein uncommitteter Checkpoint ohne passenden STATE.current_task gefunden (kein zugehöriger Commit). Was tun?",
|
|
131
132
|
"options": [
|
|
132
133
|
{"label": "Clean working tree (reset-slice)", "description": "Verwirft die in-flight Task und löscht ihren Checkpoint."},
|
|
133
134
|
{"label": "Resume the orphan task", "description": "Setzt STATE.current_task auf den Checkpoint-Eintrag und spawnt den Executor."},
|
|
@@ -135,6 +136,13 @@ if [ "$RESUME_STATUS" = "orphan" ]; then
|
|
|
135
136
|
]
|
|
136
137
|
}')
|
|
137
138
|
case "$CHOICE" in
|
|
139
|
+
"Clean working tree (reset-slice)")
|
|
140
|
+
node .nubos-pilot/bin/np-tools.cjs reset-slice "$ORPHAN_ID"
|
|
141
|
+
;;
|
|
142
|
+
"Resume the orphan task")
|
|
143
|
+
echo "execute-phase: resuming orphan task $ORPHAN_ID — run /np:resume-work" >&2
|
|
144
|
+
exit 0
|
|
145
|
+
;;
|
|
138
146
|
"Abort") exit 0 ;;
|
|
139
147
|
esac
|
|
140
148
|
fi
|