@rasensio/aidlc-content 1.53.0 → 1.55.0

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/docs/roadmap.md CHANGED
@@ -171,12 +171,15 @@ asks four questions, each a list with one choice marked recommended:
171
171
 
172
172
  Flags skip the questions: `--agent`, `--parallel`, `--cost-cap <usd|none>`, `--release
173
173
  <repo-script|merge-only>`. The answers go to `<git-common-dir>/aidlc/autopilot/config.json`, per
174
- machine and never committed, beside autopilot's `state.json`, `run.json`, `logs/` and `STOP` file.
174
+ machine and never committed, beside autopilot's `state.json`, `run.json`, `logs/`, `STOP` file and, while paused, `paused.json`.
175
175
 
176
176
  **Watching and stopping.** `aidlc autopilot status` shows the active run and each item's step, pull
177
177
  request, CI failure count and last error. `aidlc autopilot stop` (or `/aidlc-autopilot-stop`) ends the
178
178
  run at its next step: nothing further is started, merged or released, and agents already running
179
- finish their item. `aidlc autopilot forget <instance>` stops tracking an item you finished or
179
+ finish their item. `aidlc autopilot pause` freezes the run and its agents where they are —
180
+ for closing a laptop, whose sleep would otherwise cut the agents' network and get their items parked —
181
+ and `aidlc autopilot resume` carries on; a pause waits for a pass in progress rather than freeze a merge or
182
+ release halfway. `aidlc autopilot forget <instance>` stops tracking an item you finished or
180
183
  abandoned by hand; a pull request merged by hand is noticed and dropped on its own. A rate limit
181
184
  from `gh` or the agent backs off five minutes, doubling to at most
182
185
  two hours. `aidlc autopilot tick --dry-run` prints every command one pass would run and runs only the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "1.53.0",
3
+ "version": "1.55.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,17 +26,17 @@
26
26
  "glossary.yaml"
27
27
  ],
28
28
  "engines": {
29
- "node": ">=18.0.0"
29
+ "node": ">=22.13.0"
30
30
  },
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "yaml": "^2.9.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^20.19.43",
37
- "fast-check": "^3.23.2",
38
- "typescript": "^5.8.3",
39
- "vitest": "^4.1.11"
36
+ "@types/node": "22.15.32",
37
+ "fast-check": "4.9.0",
38
+ "typescript": "5.8.3",
39
+ "vitest": "4.1.11"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc",
@@ -70,6 +70,7 @@ If `.aidlc/state/` is empty or missing, offer just three options: start somethin
70
70
  | Browse / promote the roadmap | Follow the **aidlc-roadmap** skill (browse/promote flow) |
71
71
  | Start a roadmap item in a new worktree | Follow the **aidlc-roadmap** skill (**Promote into a new worktree**). It ends by handing off to a new session; do not start the phase here |
72
72
  | Work the backlog in the background ("do the next 3 items", "do all the items") | Follow the **aidlc-autopilot** skill |
73
+ | Pause or resume autopilot ("I'm closing the laptop") | Follow the **aidlc-autopilot** skill (step 6) |
73
74
  | Stop autopilot | Follow the **aidlc-autopilot-stop** skill |
74
75
  | Show status | Summarize each instance from its state files — name, template, current phase, completion %, and whether it looks stalled. When the roadmap is non-empty, append the per-status counts (e.g. "roadmap: 3 inbox, 5 backlog, 12 done") |
75
76
  | Review an artifact | Follow the **aidlc-review** skill |
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  name: aidlc-autopilot
3
- description: Works the next backlog items in the background — "do the next 3 items" or "do all the items" — and reports how to watch and stop
3
+ description: Works the next backlog items in the background — "do the next 3 items" or "do all the items" — pauses and resumes that run, and reports how to watch and stop
4
4
  phase: implementation
5
5
  priority: 60
6
- trigger: When the user asks to do, work, build or ship the next n backlog items, or all of them, without supervising each one
6
+ trigger: When the user asks to do, work, build or ship the next n backlog items, or all of them, without supervising each one — or to pause or resume that run
7
7
  ---
8
8
  # Autopilot
9
9
 
@@ -28,13 +28,17 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
28
28
  4. **If it refuses:**
29
29
  - *not set up* → tell the user to run `aidlc autopilot setup` in their own terminal. It asks which agent to use and what it may do; that choice is theirs, so do not pick it with flags on their behalf.
30
30
  - *a run is already active* → report its pid and offer `aidlc autopilot stop` first.
31
+ - *the run is paused* → offer `aidlc autopilot resume`.
31
32
 
32
- 5. **Report**, in four short lines: what it is doing (how many items), the log file it printed, `aidlc autopilot status` to watch, and `/aidlc-autopilot-stop` (or `aidlc autopilot stop`) to stop.
33
+ 5. **Report**, in five short lines: what it is doing (how many items), the log file it printed, `aidlc autopilot status` to watch, `aidlc autopilot pause` before the machine sleeps (`aidlc autopilot resume` after), and `/aidlc-autopilot-stop` (or `aidlc autopilot stop`) to stop.
34
+
35
+ 6. **Pause and resume.** When the user is stepping away or closing the laptop, run `aidlc autopilot pause`; when they are back, `aidlc autopilot resume`. Report what each printed. If pause says a pass is in progress — a merge or a release — run it again a minute later rather than stopping the run.
33
36
 
34
37
  ## What the run does on its own
35
38
 
36
39
  - Takes items in `aidlc roadmap next` order. Builds at most two at once, and never more than the count asked for.
37
40
  - Parks an item (moves it to `hold/` with a reason) when its agent stops short, when CI fails twice, or when it passes the cost cap.
41
+ - An agent that loses the network exits, and is parked. Sleep cuts the network, so a run on a laptop needs `aidlc autopilot pause` first: it freezes the run and its agents where they are, and `aidlc autopilot resume` carries on.
38
42
  - Before each merge, brings the item's branch up to date with main and waits for CI on the new head. A conflict with main goes back to the item's agent, twice at most, then the item is parked. A pull request someone merged by hand is dropped from tracking.
39
43
  - Halts the merge queue when a step fails. Running `aidlc autopilot run` again retries a failure that came before the merge; a failed release is for a person — `aidlc autopilot status` shows the error. `aidlc autopilot forget <instance>` stops tracking an item finished by hand.
40
44
  - Ends when the asked-for items are each released or parked, or, with `--all`, when nothing is ready and nothing is in flight.
@@ -42,4 +46,4 @@ The CLI does the work. This skill starts it and says how to watch and stop it. D
42
46
  ## Exit Criteria
43
47
 
44
48
  - `aidlc autopilot run` has started a run, or its refusal has been reported with the one command that fixes it
45
- - The user knows where the log is, how to watch, and how to stop
49
+ - The user knows where the log is, how to watch, how to pause, and how to stop
@@ -3,7 +3,7 @@ name: aidlc-autopilot-stop
3
3
  description: Stops the background autopilot run — nothing further is started, merged or released
4
4
  phase: implementation
5
5
  priority: 60
6
- trigger: When the user asks to stop, halt or pause autopilot or the background backlog run
6
+ trigger: When the user asks to stop or halt autopilot or the background backlog run
7
7
  ---
8
8
  # Stop Autopilot
9
9
 
@@ -11,6 +11,8 @@ trigger: When the user asks to stop, halt or pause autopilot or the background b
11
11
 
12
12
  Stop the background run in one step.
13
13
 
14
+ Stopping is not pausing. A user stepping away — closing the laptop — wants `aidlc autopilot pause`, which freezes the run and its agents where they are until `aidlc autopilot resume` (see the **aidlc-autopilot** skill). A stopped run leaves its agents running, and on a sleeping laptop they lose the network, exit, and have their items parked.
15
+
14
16
  ## Instructions
15
17
 
16
18
  1. Run: