maestro-flow-one 0.2.27 → 0.2.29

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.
@@ -145,7 +145,11 @@ Layer 1 did not match. Check for chain-level keywords — even if the prompt als
145
145
  | design system, tokens, design foundation, design infrastructure | foundation |
146
146
  | real-time, live, browser | live |
147
147
 
148
- Ambiguous + no `-y` → AskUserQuestion.
148
+ Ambiguous + no `-y`:
149
+
150
+ AskUserQuestion (single-select, header: "意图确认"):
151
+ - Options: top 2-3 matched chains from Layer 2 table, each with label = chain name, description = matched keywords
152
+ - Last option: **"直接构建"** — skip chain, route to Layer 3 craft
149
153
 
150
154
  ### Layer 3: Concrete build task → Direct craft
151
155
 
@@ -218,7 +218,13 @@ brainstorm → blueprint → init → analyze-macro → roadmap
218
218
  执行参数: <args>
219
219
  ```
220
220
 
221
- `--dry-run` 展示后结束;`-y` 直接 S_EXECUTE;否则 AskUserQuestion 提供:执行 top pick / 选备选 / 修改参数 / 取消。
221
+ `--dry-run` 展示后结束;`-y` 直接 S_EXECUTE;否则:
222
+
223
+ AskUserQuestion (single-select, header: "执行确认"):
224
+ - **执行推荐** (Recommended) — run top pick with shown args
225
+ - **选择备选** — pick from alternative commands
226
+ - **修改参数** — adjust args before executing
227
+ - **取消** — do nothing
222
228
 
223
229
  </presentation>
224
230
 
@@ -145,13 +145,20 @@ S_COMPLETE:
145
145
  - **skill/command**: `Skill(skill, resolved_args)` → extract session_id, output_path, artifacts
146
146
  - **cli**: `Bash(run_in_background: true)` → STOP, wait for callback → `maestro delegate output <id>`
147
147
  - **agent**: `Agent(subagent_type, resolved_args)`
148
- - **checkpoint**: write checkpoint snapshot. If auto_continue==false: AskUserQuestion (Continue/Pause/Abort)
148
+ - **checkpoint**: write checkpoint snapshot. If auto_continue==false:
149
+ AskUserQuestion (single-select, header: "Checkpoint"):
150
+ - **Continue** — proceed to next step
151
+ - **Pause** — save progress, exit (resume with `-c`)
152
+ - **Abort** — stop workflow
149
153
  4. Set step status="completed" (or "skipped"/"failed"), write status.json
150
154
 
151
155
  ### A_COMPLETE_SESSION
152
156
 
153
157
  Set status="completed", completed_at. Display summary: session, template, steps completed, context, per-step results, artifacts, session dir.
154
- AskUserQuestion: Keep session / Run again / Done.
158
+ AskUserQuestion (single-select, header: "完成"):
159
+ - **Keep session** — preserve artifacts for reference
160
+ - **Run again** — re-execute with same template
161
+ - **Done** — clean up and exit
155
162
 
156
163
  </actions>
157
164
 
@@ -71,10 +71,10 @@ maestro wiki load <knowhow-id>
71
71
 
72
72
  ### Step 3: Confirm Execution
73
73
 
74
- Ask user:
75
- - Execute steps as-is?
76
- - Adjust parameters/scope?
77
- - View only, do not execute?
74
+ AskUserQuestion (single-select, header: "执行方式"):
75
+ - **Execute as-is** (Recommended) — run all steps with current parameters
76
+ - **Adjust parameters** — modify scope or parameters before executing
77
+ - **View only** display steps without executing
78
78
 
79
79
  ### Step 4: Step-by-Step Execution
80
80
 
@@ -35,7 +35,7 @@ $ARGUMENTS -- optional flags.
35
35
  | Agent | Focus | Output file |
36
36
  |-------|-------|-------------|
37
37
  | Mapper 1 | **Tech stack** -- languages, frameworks, dependencies, build system | `tech-stack.md` |
38
- | Mapper 2 | **Architecture** -- produced by KG pipeline Step 14 (UA architecture-analyzer delegate); layers, module boundaries, data flow, entry points | `architecture.md` |
38
+ | Mapper 2 | **Architecture** -- layers, module boundaries, data flow, entry points | `architecture.md` |
39
39
  | Mapper 3 | **Features** -- capabilities, API surface, user-facing functionality | `features.md` |
40
40
  | Mapper 4 | **Cross-cutting concerns** -- error handling, logging, auth, config, testing | `concerns.md` |
41
41
 
@@ -43,9 +43,7 @@ $ARGUMENTS -- optional flags.
43
43
  - `.workflow/` -- must be initialized (project.md, state.json exist)
44
44
  - `.workflow/codebase/` -- target directory (will be cleared and rebuilt)
45
45
  - `.workflow/codebase/doc-index.json` -- generated documentation index
46
- - `.workflow/codebase/knowledge-graph.json` -- Knowledge Graph with nodes, edges, layers, and tour (generated by KG pipeline Steps 10–17 if UA vendor is installed)
47
-
48
- **UA vendor requirement:** The KG pipeline (Steps 10–17) requires the UA vendor at `~/.maestro/vendor/ua/understand-anything-plugin/`. If not installed, these steps are skipped automatically. Run `scripts/ua-vendor-setup.sh` to install.
46
+ - `.workflow/codebase/knowledge-graph.json` -- Knowledge Graph with nodes, edges, layers, and tour (generated by `maestro kg index`)
49
47
  </context>
50
48
 
51
49
  <execution>
@@ -79,8 +77,8 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
79
77
  - [ ] All documentation files regenerated
80
78
  - [ ] state.json updated with rebuild timestamp
81
79
  - [ ] project.md Tech Stack section updated if changes detected
82
- - [ ] KG pipeline executed (if UA vendor installed)
83
- - [ ] knowledge-graph.json generated in .workflow/codebase/ (if UA vendor installed)
80
+ - [ ] KG pipeline executed (`maestro kg index`)
81
+ - [ ] knowledge-graph.json generated in .workflow/codebase/
84
82
  - [ ] KG nodes indexed as virtual wiki entries (automatic via WikiIndexer on next wiki access)
85
83
  - [ ] Next step routing: `/manage-status` or `/manage-codebase-refresh` for incremental updates later
86
84
  - [ ] KG impact check available: `maestro kg diff-wiki` for future change impact analysis
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: spec-load
3
3
  description: Load specs and lessons for current context
4
- argument-hint: "[--category <category>] [--keyword <word>]"
4
+ argument-hint: "[--scope <scope>] [--category <category>] [--keyword <word>]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Bash
@@ -9,8 +9,9 @@ allowed-tools:
9
9
  - Grep
10
10
  ---
11
11
  <purpose>
12
- Load relevant specs filtered by category (file-level) and/or keyword (entry-level).
12
+ Load relevant specs filtered by scope, category (file-level) and/or keyword (entry-level).
13
13
  Category-based loading: loads the category's primary doc in full + matching entries from other files.
14
+ By default, loads from both global (~/.maestro/specs/) and project (.workflow/specs/) layers.
14
15
  </purpose>
15
16
 
16
17
  <required_reading>
@@ -21,6 +22,11 @@ Category-based loading: loads the category's primary doc in full + matching entr
21
22
  $ARGUMENTS -- optional flags and keyword
22
23
 
23
24
  **Flags:**
25
+ - `--scope <scope>` — Load scope (default: global + project merged):
26
+ - `project`: project baseline only (.workflow/specs/)
27
+ - `global`: global + project merged (~/.maestro/specs/ + .workflow/specs/)
28
+ - `team`: project + team shared (.workflow/collab/specs/)
29
+ - `personal`: project + team + personal (requires uid)
24
30
  - `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug, learning, ui.
25
31
  - `--keyword <word>` — Filter by keyword within entries
26
32
 
@@ -38,7 +44,8 @@ $ARGUMENTS -- optional flags and keyword
38
44
 
39
45
  **Examples:**
40
46
  ```
41
- /spec-load --category coding # coding全文 + 跨文件coding条目
47
+ /spec-load --category coding # coding全文 + 跨文件coding条目 (global + project)
48
+ /spec-load --scope global --category arch # 明确包含全局 arch 规范
42
49
  /spec-load --category review # review-standards + quality-rules + 跨文件review条目
43
50
  /spec-load --category coding --keyword auth
44
51
  /spec-load --keyword auth
@@ -57,7 +64,7 @@ Follow '~/.maestro/workflows/specs-load.md' completely.
57
64
  <error_codes>
58
65
  | Code | Severity | Description | Stage |
59
66
  |------|----------|-------------|-------|
60
- | E001 | fatal | `.workflow/specs/` not initialized -- run `/spec-setup` first | detect_context |
67
+ | E001 | warning | `.workflow/specs/` not initialized -- run `/spec-setup` first (global specs still available) | detect_context |
61
68
  | W001 | warning | No matching specs found for keyword -- showing all specs in category instead | load_specs |
62
69
  </error_codes>
63
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow-one",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "All Maestro workflow commands as a single Claude Code skill — intent routing, decision gates, minimal closed-loop chains",
5
5
  "bin": {
6
6
  "maestro-flow": "bin/maestro-flow.js"