@nodeint/migent 0.1.5 → 0.1.6

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.
@@ -13,7 +13,16 @@ requires:
13
13
  workflow: plan
14
14
 
15
15
  stages:
16
+ - id: prepare
17
+ description: Check the tree before the draft.
18
+ # No role: Migent runs verify and does not start an agent.
19
+ verify:
20
+ - pnpm build
21
+ verify_timeout: 1800
22
+ depends_on: []
23
+
16
24
  - id: draft
25
+ description: Write the draft.
17
26
  role: planner
18
27
  # model is a name under models in config.yaml, not a provider model id.
19
28
  model: planner
@@ -21,7 +30,8 @@ stages:
21
30
  # Only keys the adapter marks overridable are stored on the provider session.
22
31
  options:
23
32
  reasoning-effort: high
24
- depends_on: []
33
+ depends_on:
34
+ - prepare
25
35
  # max_revisions is allowed only when a route returns to this stage.
26
36
  max_revisions: 2
27
37
  instructions:
@@ -0,0 +1,65 @@
1
+ # Sessions: uncommon run and resume cases
2
+
3
+ The everyday commands are in SKILL.md. This file covers the rest.
4
+
5
+ ## Prerequisite session (`--prior`)
6
+
7
+ If the workflow's `requires` block names a prerequisite workflow and decision,
8
+ find the session:
9
+
10
+ ```
11
+ migent session list --workflow <workflow-id> --status completed --json
12
+ ```
13
+
14
+ Then pass its id with `--prior <session-id>`. `session continue` accepts
15
+ `--prior` too.
16
+
17
+ ## Several blocked stages
18
+
19
+ When more than one stage is blocked, `session continue` needs the stage:
20
+
21
+ ```
22
+ migent session continue <session-id> --stage <stage> --reply "<reply>"
23
+ ```
24
+
25
+ The other stages stay blocked.
26
+
27
+ ## Cancelled session (exit 130)
28
+
29
+ Ask the user first. `session continue <session-id>` resumes that same
30
+ execution. A cut-off verify runs again. A cancelled stage with no role
31
+ reruns its verify list in place and does not open a provider. Role status
32
+ and `--reply` are in the skill's Resume section.
33
+
34
+ ## Limits
35
+
36
+ Accepted by workflow `session run` and by `session continue`.
37
+
38
+ | Flag | Meaning |
39
+ | --- | --- |
40
+ | `--max-dispatches <n>` | Stage dispatches allowed in this command (default 20). |
41
+ | `--unlimited-dispatches` | Removes the dispatch ceiling. Use only if the user agrees. |
42
+
43
+ A failed stage stays stopped until `session continue`. That command runs the
44
+ stage and does not sleep until an old `retry_at`. Exit 3 is `stage_failed`.
45
+ Exit 8 is `quota` for `--once` and `--stage`, which do not wait. Exit 130
46
+ during a wait disarms the timer. A single role result uses 0, 1, and 130.
47
+ Exit 6 remains only the path that reopened more than one role execution.
48
+
49
+ ## `--once` and revision counts
50
+
51
+ `session continue <id>` resets revision counts. `session continue <id> --once`
52
+ advances one stage and does not.
53
+
54
+ ## Config changed during a session
55
+
56
+ A session keeps the workflow, models, and role instructions it started with.
57
+ Later edits warn on stderr and do not change it. Run `migent doctor --json`
58
+ and tell the user. To adopt the current versions:
59
+
60
+ ```
61
+ migent session continue <session-id> --refresh-workflow
62
+ migent session run --session <session-id> --workflow <workflow> --refresh-workflow
63
+ ```
64
+
65
+ The second form is for starting a prepared session.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodeint/migent",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Compose AI coding agents into repeatable engineering workflows.",
5
5
  "keywords": [
6
6
  "ai",
@@ -43,9 +43,9 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@clack/prompts": "^1.8.1",
46
- "@nodeint/migent-adapters": "0.1.5",
47
- "@nodeint/migent-kernel": "0.1.5",
48
- "@nodeint/migent-registry": "0.1.5",
46
+ "@nodeint/migent-adapters": "0.1.6",
47
+ "@nodeint/migent-kernel": "0.1.6",
48
+ "@nodeint/migent-registry": "0.1.6",
49
49
  "commander": "^14.0.2",
50
50
  "picocolors": "^1.1.1"
51
51
  },