maestro-flow 0.4.24 → 0.4.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 (110) hide show
  1. package/.agents/skills/maestro-impeccable/SKILL.md +5 -1
  2. package/.agents/skills/maestro-next/SKILL.md +7 -1
  3. package/.agents/skills/maestro-player/SKILL.md +9 -2
  4. package/.agents/skills/maestro-tools-execute/SKILL.md +4 -4
  5. package/.agents/skills/spec-load/SKILL.md +11 -4
  6. package/.agy/skills/maestro-impeccable/SKILL.md +5 -1
  7. package/.agy/skills/maestro-next/SKILL.md +7 -1
  8. package/.agy/skills/maestro-player/SKILL.md +9 -2
  9. package/.agy/skills/maestro-tools-execute/SKILL.md +4 -4
  10. package/.agy/skills/spec-load/SKILL.md +11 -4
  11. package/.claude/commands/maestro-impeccable.md +5 -1
  12. package/.claude/commands/maestro-next.md +7 -1
  13. package/.claude/commands/maestro-player.md +9 -2
  14. package/.claude/commands/maestro-tools-execute.md +4 -4
  15. package/.claude/commands/spec-load.md +11 -4
  16. package/dashboard/dist-server/dashboard/src/server/routes/specs.js +96 -25
  17. package/dashboard/dist-server/dashboard/src/server/routes/specs.js.map +1 -1
  18. package/dashboard/dist-server/dashboard/src/shared/constants.d.ts +1 -0
  19. package/dashboard/dist-server/dashboard/src/shared/constants.js +1 -0
  20. package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
  21. package/dashboard/dist-server/src/graph/types.d.ts +98 -0
  22. package/dashboard/dist-server/src/graph/types.js +19 -1
  23. package/dashboard/dist-server/src/graph/types.js.map +1 -1
  24. package/dist/src/commands/kg.d.ts.map +1 -1
  25. package/dist/src/commands/kg.js +345 -2
  26. package/dist/src/commands/kg.js.map +1 -1
  27. package/dist/src/commands/spec.d.ts.map +1 -1
  28. package/dist/src/commands/spec.js +82 -38
  29. package/dist/src/commands/spec.js.map +1 -1
  30. package/dist/src/graph/db/connection.d.ts +22 -0
  31. package/dist/src/graph/db/connection.d.ts.map +1 -0
  32. package/dist/src/graph/db/connection.js +113 -0
  33. package/dist/src/graph/db/connection.js.map +1 -0
  34. package/dist/src/graph/db/index.d.ts +4 -0
  35. package/dist/src/graph/db/index.d.ts.map +1 -0
  36. package/dist/src/graph/db/index.js +4 -0
  37. package/dist/src/graph/db/index.js.map +1 -0
  38. package/dist/src/graph/db/migrations.d.ts +5 -0
  39. package/dist/src/graph/db/migrations.d.ts.map +1 -0
  40. package/dist/src/graph/db/migrations.js +18 -0
  41. package/dist/src/graph/db/migrations.js.map +1 -0
  42. package/dist/src/graph/db/queries.d.ts +50 -0
  43. package/dist/src/graph/db/queries.d.ts.map +1 -0
  44. package/dist/src/graph/db/queries.js +313 -0
  45. package/dist/src/graph/db/queries.js.map +1 -0
  46. package/dist/src/graph/db/schema.sql +131 -0
  47. package/dist/src/graph/facade.d.ts +53 -0
  48. package/dist/src/graph/facade.d.ts.map +1 -0
  49. package/dist/src/graph/facade.js +172 -0
  50. package/dist/src/graph/facade.js.map +1 -0
  51. package/dist/src/graph/graph-queries.d.ts +24 -0
  52. package/dist/src/graph/graph-queries.d.ts.map +1 -0
  53. package/dist/src/graph/graph-queries.js +173 -0
  54. package/dist/src/graph/graph-queries.js.map +1 -0
  55. package/dist/src/graph/index.d.ts +8 -0
  56. package/dist/src/graph/index.d.ts.map +1 -1
  57. package/dist/src/graph/index.js +9 -0
  58. package/dist/src/graph/index.js.map +1 -1
  59. package/dist/src/graph/loader.d.ts +8 -0
  60. package/dist/src/graph/loader.d.ts.map +1 -1
  61. package/dist/src/graph/loader.js +20 -0
  62. package/dist/src/graph/loader.js.map +1 -1
  63. package/dist/src/graph/migration.d.ts +8 -0
  64. package/dist/src/graph/migration.d.ts.map +1 -0
  65. package/dist/src/graph/migration.js +134 -0
  66. package/dist/src/graph/migration.js.map +1 -0
  67. package/dist/src/graph/search/index.d.ts +4 -0
  68. package/dist/src/graph/search/index.d.ts.map +1 -0
  69. package/dist/src/graph/search/index.js +3 -0
  70. package/dist/src/graph/search/index.js.map +1 -0
  71. package/dist/src/graph/search/query-parser.d.ts +11 -0
  72. package/dist/src/graph/search/query-parser.d.ts.map +1 -0
  73. package/dist/src/graph/search/query-parser.js +111 -0
  74. package/dist/src/graph/search/query-parser.js.map +1 -0
  75. package/dist/src/graph/search/query-utils.d.ts +12 -0
  76. package/dist/src/graph/search/query-utils.d.ts.map +1 -0
  77. package/dist/src/graph/search/query-utils.js +184 -0
  78. package/dist/src/graph/search/query-utils.js.map +1 -0
  79. package/dist/src/graph/sync/content-hash.d.ts +7 -0
  80. package/dist/src/graph/sync/content-hash.d.ts.map +1 -0
  81. package/dist/src/graph/sync/content-hash.js +33 -0
  82. package/dist/src/graph/sync/content-hash.js.map +1 -0
  83. package/dist/src/graph/sync/incremental-sync.d.ts +23 -0
  84. package/dist/src/graph/sync/incremental-sync.d.ts.map +1 -0
  85. package/dist/src/graph/sync/incremental-sync.js +338 -0
  86. package/dist/src/graph/sync/incremental-sync.js.map +1 -0
  87. package/dist/src/graph/sync/index.d.ts +7 -0
  88. package/dist/src/graph/sync/index.d.ts.map +1 -0
  89. package/dist/src/graph/sync/index.js +5 -0
  90. package/dist/src/graph/sync/index.js.map +1 -0
  91. package/dist/src/graph/sync/watch-policy.d.ts +2 -0
  92. package/dist/src/graph/sync/watch-policy.d.ts.map +1 -0
  93. package/dist/src/graph/sync/watch-policy.js +38 -0
  94. package/dist/src/graph/sync/watch-policy.js.map +1 -0
  95. package/dist/src/graph/sync/watcher.d.ts +44 -0
  96. package/dist/src/graph/sync/watcher.d.ts.map +1 -0
  97. package/dist/src/graph/sync/watcher.js +153 -0
  98. package/dist/src/graph/sync/watcher.js.map +1 -0
  99. package/dist/src/graph/traversal.d.ts +37 -0
  100. package/dist/src/graph/traversal.d.ts.map +1 -0
  101. package/dist/src/graph/traversal.js +335 -0
  102. package/dist/src/graph/traversal.js.map +1 -0
  103. package/dist/src/graph/types.d.ts +98 -0
  104. package/dist/src/graph/types.d.ts.map +1 -1
  105. package/dist/src/graph/types.js +19 -1
  106. package/dist/src/graph/types.js.map +1 -1
  107. package/dist/src/utils/update-notices.js +11 -0
  108. package/dist/src/utils/update-notices.js.map +1 -1
  109. package/package.json +4 -2
  110. package/workflows/analyze.md +19 -13
@@ -286,7 +286,7 @@ Append initial Intent Coverage Check to discussion.md.
286
286
 
287
287
  **Step 4.6: Baseline Confidence Scoring**
288
288
 
289
- Dimensions = the 6 analysis dimensions. Factors (weights): findings_depth(.30), evidence_strength(.25), coverage_breadth(.20), user_validation(.15), consistency(.10). Score each factor per dimension from Round 1 results. Append baseline confidence table to discussion.md. Thresholds: <60% 继续深入 | 60-80% 可选 | 80-95% 接近收敛 | >95% 建议收敛.
289
+ Dimensions = the 6 analysis dimensions. Factors (weights): findings_depth(.30), evidence_strength(.25), coverage_breadth(.20), user_validation(.15), consistency(.10). Score each factor per dimension from Round 1 results. Append baseline confidence table to discussion.md. Thresholds: <60% 继续深入 | 60-80% 需用户确认收敛 | >80% 建议收敛.
290
290
 
291
291
  ### Step 5: Interactive Discussion Loop
292
292
 
@@ -297,21 +297,27 @@ Generate 1-2 sentence recap linking previous round conclusions to current starti
297
297
 
298
298
  **5.2: Present Findings** from latest exploration/analysis
299
299
 
300
- **5.3: Gather Feedback** (AskUserQuestion, single-select, header: "分析反馈"):
301
- - **继续深入**: Deepen analysis — auto or user-specified direction
302
- - **调整方向**: Different focus or specific questions
303
- - **补充信息**: User has additional context, constraints, or corrections
304
- - **分析完成**: Sufficient exit to Phase 4
300
+ **5.3: Gather Feedback**
301
+
302
+ AskUserQuestion (single-select, header: "分析反馈"):
303
+ - **继续深入** (Recommended) deepen lowest-confidence dimension
304
+ - **调整方向**different focus or specific questions
305
+ - **补充信息** — user has additional context, constraints, or corrections
306
+ - **分析完成** — sufficient, exit to scoring
307
+
308
+ Question text: `Round {N} | Confidence: {overall}% | 最弱: {weakest_dim} ({dim_score}%)`
305
309
 
306
310
  **5.4: Process Response** (always record user choice + impact to discussion.md):
307
311
 
308
312
  | Choice | Action |
309
313
  |--------|--------|
310
- | 继续深入 | Sub-question (max 4 options: 3 context-driven + 1 heuristic frame-breaker) → CLI/agent exploration → merge findings |
314
+ | 继续深入 | AskUserQuestion sub-direction (below) → CLI/agent exploration → merge findings |
311
315
  | 调整方向 | Capture new direction → new CLI exploration → Record Decision (old vs new, reason, impact) |
312
316
  | 补充信息 | Capture user input → integrate → answer questions via CLI if needed → Record corrections |
313
317
  | 分析完成 | Exit loop → Record why concluding |
314
318
 
319
+ **继续深入 sub-direction**: AskUserQuestion (single-select, header: "深入方向", max 4 options: 3 context-driven from unresolved questions/low-confidence findings/unexplored dimensions + 1 heuristic "换角度审视"). "Other" auto-provided for custom direction.
320
+
315
321
  **5.5: Update discussion.md** after each round:
316
322
  - **Append** Round N: user input, direction, Q&A, corrections, new insights
317
323
  - **Append Technical Solutions** — for every solution proposed, validated, or rejected this round, record immediately using Technical Solution Record Format in `#### Technical Solutions`
@@ -347,7 +353,7 @@ Re-evaluate factors per dimension. Show delta: `Confidence: {prev}% → {current
347
353
  - **Stall Detection**: delta < 5% for 2 consecutive rounds → "分析可能停滞,建议切换方向或收敛"
348
354
 
349
355
  **5.10: Pre-Synthesis Readiness Gate** (on "分析完成"):
350
- Block if: ❌ items without deferral | any dimension < 40% | no pressure pass | unresolved contradictions. If blocked → AskUserQuestion: 补充后继续 or 忽略风险并继续 (record `residual_risks[]`).
356
+ Block if: ❌ items without deferral | any dimension < 40% | no pressure pass | unresolved contradictions | overall confidence < 80%. If blocked → AskUserQuestion: 补充后继续 or 忽略风险并继续 (record `residual_risks[]`, note accepted confidence level).
351
357
 
352
358
  **Auto mode (-y)**: auto-deepen ≤3 rounds, readiness gate auto-overrides with residual risk recording.
353
359
 
@@ -603,11 +609,11 @@ Display summary:
603
609
  - Key conclusions (if full mode)
604
610
  - Session stats
605
611
 
606
- **Next Step Selection** (AskUserQuestion, single-select, header: "Next Step"):
607
- - **快速执行**: Skill({ skill: "maestro-quick", args: "{task_description} --full" }) — build context from conclusions
608
- - **进入规划**: Phase mode → Skill({ skill: "maestro-plan", args: "{phase}" }); Scratch mode → Skill({ skill: "maestro-plan", args: "--dir {output_dir}" }) — plan directly against scratch directory
609
- - **产出Issue**: Convert recommendations to tracked issues
610
- - **完成**: No further action
612
+ AskUserQuestion (single-select, header: "Next Step"):
613
+ - **快速执行** — build context from conclusions, invoke maestro-quick
614
+ - **进入规划** phase planning (maestro-plan)
615
+ - **产出Issue** convert recommendations to tracked issues
616
+ - **完成** no further action
611
617
 
612
618
  Handle selection:
613
619