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.
Files changed (46) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/bin/np-tools/_commands.cjs +2 -0
  3. package/bin/np-tools/_elision-proxy-entry.cjs +13 -0
  4. package/bin/np-tools/doctor.cjs +25 -3
  5. package/bin/np-tools/elision-bench.cjs +67 -0
  6. package/bin/np-tools/elision-get.cjs +48 -0
  7. package/bin/np-tools/elision-get.test.cjs +66 -0
  8. package/bin/np-tools/loop-run-round.cjs +25 -11
  9. package/bin/np-tools/plan-milestone.cjs +1 -0
  10. package/bin/np-tools/research-phase.cjs +1 -1
  11. package/bin/np-tools/resume-work.cjs +9 -0
  12. package/bin/np-tools/resume-work.test.cjs +21 -1
  13. package/bin/np-tools/spawn-headless.cjs +62 -9
  14. package/lib/cache-align.cjs +78 -0
  15. package/lib/cache-align.test.cjs +69 -0
  16. package/lib/checkpoint-reconcile.cjs +42 -0
  17. package/lib/checkpoint-reconcile.test.cjs +106 -0
  18. package/lib/compress.cjs +495 -0
  19. package/lib/compress.test.cjs +267 -0
  20. package/lib/config-defaults.cjs +39 -0
  21. package/lib/config-schema.cjs +40 -4
  22. package/lib/elision-bench.cjs +409 -0
  23. package/lib/elision-bench.test.cjs +89 -0
  24. package/lib/elision-proxy.cjs +158 -0
  25. package/lib/elision-proxy.test.cjs +243 -0
  26. package/lib/elision.cjs +163 -0
  27. package/lib/elision.test.cjs +143 -0
  28. package/lib/git.cjs +4 -2
  29. package/lib/nubosloop.cjs +1 -1
  30. package/lib/output-steering.cjs +68 -0
  31. package/lib/output-steering.test.cjs +74 -0
  32. package/lib/researcher-swarm.cjs +14 -3
  33. package/lib/runtime/agent-loop.cjs +36 -6
  34. package/lib/runtime/agent-loop.test.cjs +105 -0
  35. package/lib/runtime/dispatch.cjs +6 -6
  36. package/lib/runtime/dispatch.test.cjs +17 -3
  37. package/lib/runtime/providers/openai-compat.cjs +2 -1
  38. package/lib/runtime/providers/openai-compat.test.cjs +9 -0
  39. package/lib/runtime/tools/index.cjs +33 -1
  40. package/lib/runtime/tools/index.test.cjs +24 -0
  41. package/lib/schemas/data/elision-entry.v1.json +16 -0
  42. package/lib/token-cost.cjs +46 -0
  43. package/lib/token-cost.test.cjs +42 -0
  44. package/np-tools.cjs +2 -0
  45. package/package.json +1 -1
  46. package/workflows/execute-phase.md +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nubos-pilot",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Self-hosted AI pilot for any codebase. Researcher and critic agents plan, execute and verify each change.",
5
5
  "homepage": "https://pilot.nubos.cloud",
6
6
  "repository": {
@@ -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 wurden Checkpoint-Dateien ohne passenden STATE.current_task gefunden. Was tun?",
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