maestro-flow 0.4.5 → 0.4.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.
@@ -99,8 +99,8 @@ S_BUILD_CHAIN:
99
99
  -> S_CREATE_SESSION DO: A_BUILD_STEPS
100
100
 
101
101
  S_CREATE_SESSION:
102
- -> S_CONFIRM WHEN: not auto_mode
103
- -> S_LOAD_NEXT WHEN: auto_mode
102
+ -> S_CONFIRM WHEN: not auto_mode DO: A_CREATE_SESSION
103
+ -> S_LOAD_NEXT WHEN: auto_mode DO: A_CREATE_SESSION
104
104
 
105
105
  S_CONFIRM:
106
106
  -> S_LOAD_NEXT WHEN: "Proceed"
@@ -220,6 +220,13 @@ Priority: regex from intent `phase\s*(\d+)` -> latest in-progress artifact's pha
220
220
  6. Args use placeholders `{phase}`, `{intent}`, `{dirs}` — resolved at wave execution time
221
221
  7. Append `-y` to all skill args when `auto_mode` is true (see -y propagation table in context)
222
222
 
223
+ ### A_CREATE_SESSION
224
+
225
+ 1. Write `.workflow/.maestro/ralph-{YYYYMMDD-HHmmss}/status.json` (see Session JSON Schema)
226
+ 2. Initialize tracking:
227
+ - `create_goal({ objective: "Ralph lifecycle: {quality_mode} mode, {N} steps from {lifecycle_position}" })`
228
+ - `update_plan({ plan: steps.map(step => { step, status: "pending" }) })`
229
+
223
230
  ### A_BUILD_AND_SPAWN_WAVE
224
231
 
225
232
  1. Conditional step eval: check_coverage -> read validation.json, skip if >= threshold
@@ -255,11 +262,16 @@ Update session: milestone, phase, reset passed_gates. Re-infer quality_mode. Bui
255
262
 
256
263
  ### A_FINALIZE
257
264
 
258
- Set status = "completed". Sync update_plan. Release goal. Display completion report.
265
+ 1. Set `session.status = "completed"`, write status.json
266
+ 2. Sync update_plan: all steps → "completed"
267
+ 3. `update_goal({ status: "complete" })` — release goal constraint
268
+ 4. Display completion report
259
269
 
260
270
  ### A_PAUSE_SESSION
261
271
 
262
- Set status = "paused". Do NOT release goal. Display: use $maestro-ralph execute to continue.
272
+ 1. Set `session.status = "paused"`, write status.json
273
+ 2. Do NOT call `update_goal` — goal stays for `execute`/`continue` resume
274
+ 3. Display: use `$maestro-ralph execute` to continue
263
275
 
264
276
  </actions>
265
277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Workflow orchestration CLI with MCP endpoint support and extensible architecture",
5
5
  "type": "module",
6
6
  "imports": {