maestro-flow 0.3.23 → 0.3.25

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 (86) hide show
  1. package/.claude/agents/cli-explore-agent.md +2 -2
  2. package/.claude/commands/learn-investigate.md +26 -0
  3. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.d.ts +2 -0
  4. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +32 -7
  5. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  6. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
  7. package/dashboard/dist-server/src/agents/cli-agent-runner.js +62 -4
  8. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  9. package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
  10. package/dashboard/dist-server/src/commands/delegate.js +1 -0
  11. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  12. package/dashboard/dist-server/src/config/cli-tools-config.d.ts +4 -0
  13. package/dashboard/dist-server/src/config/cli-tools-config.js +22 -0
  14. package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
  15. package/dashboard/dist-server/src/config/paths.d.ts +1 -0
  16. package/dashboard/dist-server/src/config/paths.js +1 -0
  17. package/dashboard/dist-server/src/config/paths.js.map +1 -1
  18. package/dashboard/dist-server/src/tools/spec-entry-parser.d.ts +55 -0
  19. package/dashboard/dist-server/src/tools/spec-entry-parser.js +222 -0
  20. package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -0
  21. package/dashboard/dist-server/src/tools/spec-loader.d.ts +51 -0
  22. package/dashboard/dist-server/src/tools/spec-loader.js +267 -0
  23. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -0
  24. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  25. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  26. package/dist/src/agents/cli-agent-runner.js +62 -4
  27. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  28. package/dist/src/cli.js +2 -0
  29. package/dist/src/cli.js.map +1 -1
  30. package/dist/src/commands/config-ui/ConfigSourcesView.d.ts +6 -0
  31. package/dist/src/commands/config-ui/ConfigSourcesView.d.ts.map +1 -0
  32. package/dist/src/commands/config-ui/ConfigSourcesView.js +25 -0
  33. package/dist/src/commands/config-ui/ConfigSourcesView.js.map +1 -0
  34. package/dist/src/commands/config-ui/SkillConfigDashboard.d.ts +9 -0
  35. package/dist/src/commands/config-ui/SkillConfigDashboard.d.ts.map +1 -0
  36. package/dist/src/commands/config-ui/SkillConfigDashboard.js +64 -0
  37. package/dist/src/commands/config-ui/SkillConfigDashboard.js.map +1 -0
  38. package/dist/src/commands/config-ui/SkillParamEditor.d.ts +12 -0
  39. package/dist/src/commands/config-ui/SkillParamEditor.d.ts.map +1 -0
  40. package/dist/src/commands/config-ui/SkillParamEditor.js +162 -0
  41. package/dist/src/commands/config-ui/SkillParamEditor.js.map +1 -0
  42. package/dist/src/commands/config-ui/SkillsList.d.ts +12 -0
  43. package/dist/src/commands/config-ui/SkillsList.d.ts.map +1 -0
  44. package/dist/src/commands/config-ui/SkillsList.js +91 -0
  45. package/dist/src/commands/config-ui/SkillsList.js.map +1 -0
  46. package/dist/src/commands/config.d.ts +8 -0
  47. package/dist/src/commands/config.d.ts.map +1 -0
  48. package/dist/src/commands/config.js +172 -0
  49. package/dist/src/commands/config.js.map +1 -0
  50. package/dist/src/commands/delegate.d.ts +2 -0
  51. package/dist/src/commands/delegate.d.ts.map +1 -1
  52. package/dist/src/commands/delegate.js +1 -0
  53. package/dist/src/commands/delegate.js.map +1 -1
  54. package/dist/src/commands/install.d.ts.map +1 -1
  55. package/dist/src/commands/install.js +5 -0
  56. package/dist/src/commands/install.js.map +1 -1
  57. package/dist/src/config/argument-hint-parser.d.ts +49 -0
  58. package/dist/src/config/argument-hint-parser.d.ts.map +1 -0
  59. package/dist/src/config/argument-hint-parser.js +283 -0
  60. package/dist/src/config/argument-hint-parser.js.map +1 -0
  61. package/dist/src/config/cli-tools-config.d.ts +4 -0
  62. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  63. package/dist/src/config/cli-tools-config.js +22 -0
  64. package/dist/src/config/cli-tools-config.js.map +1 -1
  65. package/dist/src/config/paths.d.ts +1 -0
  66. package/dist/src/config/paths.d.ts.map +1 -1
  67. package/dist/src/config/paths.js +1 -0
  68. package/dist/src/config/paths.js.map +1 -1
  69. package/dist/src/config/skill-config.d.ts +56 -0
  70. package/dist/src/config/skill-config.d.ts.map +1 -0
  71. package/dist/src/config/skill-config.js +188 -0
  72. package/dist/src/config/skill-config.js.map +1 -0
  73. package/dist/src/hooks/skill-context.d.ts +12 -2
  74. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  75. package/dist/src/hooks/skill-context.js +126 -39
  76. package/dist/src/hooks/skill-context.js.map +1 -1
  77. package/package.json +1 -1
  78. package/templates/cli/protocols/analysis-protocol.md +121 -121
  79. package/templates/cli/protocols/write-protocol.md +138 -138
  80. package/workflows/debug.md +35 -0
  81. package/workflows/execute.md +23 -0
  82. package/workflows/milestone-audit.md +28 -0
  83. package/workflows/plan.md +17 -0
  84. package/workflows/review.md +46 -0
  85. package/workflows/test-gen.md +28 -0
  86. package/workflows/verify.md +38 -0
@@ -219,6 +219,52 @@ verdict:
219
219
 
220
220
  ---
221
221
 
222
+ ## Step 6.5: CLI Supplementary Analysis (standard + deep only)
223
+
224
+ **Skip for quick level or if no enabled CLI tools.**
225
+
226
+ **Purpose:** Use external CLI tool as a second opinion on critical findings before deep-dive. The CLI analysis supplements (not replaces) the agent review — its results are merged into findings.
227
+
228
+ ```
229
+ IF level == "quick" OR no CLI tools enabled: skip to Step 7
230
+
231
+ # Gather critical/high findings for CLI cross-check
232
+ cli_targets = all_findings.filter(f => f.severity in ["critical", "high"])
233
+ IF cli_targets.length == 0: skip to Step 7
234
+
235
+ # Build concise review prompt from findings
236
+ finding_summary = cli_targets.map(f => "${f.id}: [${f.severity}] ${f.file}:${f.line} — ${f.title}").join("\n")
237
+
238
+ Bash({
239
+ command: 'maestro delegate "PURPOSE: Cross-verify code review findings and identify missed issues
240
+ TASK: For each finding, verify severity is accurate | Check for false positives | Identify any critical issues missed by initial review in the same files
241
+ MODE: analysis
242
+ CONTEXT: @${review_files as glob pattern}
243
+ EXPECTED: JSON array of { finding_id, verified: bool, adjusted_severity?, missed_issues?: [{ severity, file, line, title, description }] }
244
+ CONSTRAINTS: Only report missed issues of severity high or above | Do not duplicate existing findings
245
+
246
+ Existing findings to verify:
247
+ ${finding_summary}
248
+ " --role review --mode analysis',
249
+ run_in_background: true
250
+ })
251
+ ```
252
+
253
+ **On callback:**
254
+ ```
255
+ cli_result = maestro delegate output <id>
256
+ Parse JSON from cli_result
257
+
258
+ For each verified finding:
259
+ If adjusted_severity differs: update finding.severity, add finding.cli_note = "severity adjusted by CLI review"
260
+ For each missed_issue:
261
+ Append to all_findings with id: "CLI-{NNN}", source: "cli-supplementary"
262
+
263
+ Recalculate severity_dist after merge
264
+ ```
265
+
266
+ ---
267
+
222
268
  ## Step 7: Deep-Dive (Conditional)
223
269
 
224
270
  **Skip entirely for quick level.**
@@ -58,6 +58,34 @@ Apply --layer filter if set.
58
58
 
59
59
  ---
60
60
 
61
+ ### Step 3.5: CLI Supplementary Test Analysis (optional)
62
+
63
+ **Purpose:** Use external CLI tool to analyze source code and suggest edge cases and boundary conditions that manual classification may miss.
64
+
65
+ **Skip if** no enabled CLI tools or classified files are all "skip".
66
+
67
+ ```
68
+ IF no CLI tools enabled OR all files classified as "skip": skip to Step 4
69
+
70
+ # Build file list for analysis
71
+ target_files = unit + integration + e2e files, map to paths
72
+
73
+ Bash({
74
+ command: 'maestro delegate "PURPOSE: Analyze source files to identify test-worthy edge cases and boundary conditions
75
+ TASK: For each file, identify: error handling paths | boundary conditions | state transitions | external dependency interactions
76
+ MODE: analysis
77
+ CONTEXT: @${target_files as glob}
78
+ EXPECTED: JSON array of { file, edge_cases: [{ description, type: boundary|error|state|integration, priority: high|medium }] }
79
+ CONSTRAINTS: Only report non-obvious cases | Max 5 edge cases per file | Focus on untested paths
80
+ " --role analyze --mode analysis',
81
+ run_in_background: true
82
+ })
83
+ ```
84
+
85
+ **On callback:** Parse result, merge edge_cases into Step 4 test_cases for matching files. Mark CLI-suggested cases with `source: "cli-analysis"`.
86
+
87
+ ---
88
+
61
89
  ### Step 4: Generate Test Plan
62
90
 
63
91
  For each gap + classified file, create a test entry:
@@ -102,6 +102,44 @@ The `constraint_violations[]` array is included in the final `verification.json`
102
102
 
103
103
  ---
104
104
 
105
+ ## V0.8: CLI Supplementary Verification (optional)
106
+
107
+ **Purpose:** Use external CLI tool for broad anti-pattern and completeness scan as a supplementary signal before structural verification. Results feed into V1 as pre-collected evidence.
108
+
109
+ **Skip if** no enabled CLI tools.
110
+
111
+ ```
112
+ IF no CLI tools enabled: skip to V1
113
+
114
+ # Collect modified files list from task summaries
115
+ modified_files_list = modified_files.join(", ")
116
+
117
+ Bash({
118
+ command: 'maestro delegate "PURPOSE: Pre-verify code completeness and anti-patterns in modified files
119
+ TASK: Check for TODO/FIXME/HACK markers | Detect stub implementations (empty functions, placeholder returns) | Verify imports are used | Check for console.log/print debug statements left behind
120
+ MODE: analysis
121
+ CONTEXT: @${modified_files as glob pattern}
122
+ EXPECTED: JSON { anti_patterns: [{ type, file, line, description, severity }], completeness_flags: [{ file, issue, severity }] }
123
+ CONSTRAINTS: Only scan the listed modified files | severity = blocker|warning|info
124
+ " --role analyze --mode analysis',
125
+ run_in_background: true
126
+ })
127
+ ```
128
+
129
+ **On callback:**
130
+ ```
131
+ cli_verify = maestro delegate output <id>
132
+ Parse JSON result
133
+
134
+ # Merge into constraint_violations for V3 aggregation
135
+ For each anti_pattern with severity == "blocker":
136
+ Append to constraint_violations as { id: "CLI-AP-{NNN}", type: "cli_anti_pattern", ... }
137
+
138
+ Pass cli_verify.completeness_flags as supplementary context to V1 verification
139
+ ```
140
+
141
+ ---
142
+
105
143
  ## V1: Goal-Backward Verification
106
144
 
107
145
  **Purpose:** Verify execution results match phase goals through 3-layer structural checking.