maestro-flow 0.5.41 → 0.5.43

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 (363) hide show
  1. package/.agents/skills/domain-add/SKILL.md +3 -0
  2. package/.agents/skills/learn-decompose/SKILL.md +7 -4
  3. package/.agents/skills/learn-follow/SKILL.md +4 -2
  4. package/.agents/skills/learn-investigate/SKILL.md +8 -6
  5. package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
  6. package/.agents/skills/maestro/SKILL.md +1 -1
  7. package/.agents/skills/maestro-amend/SKILL.md +1 -1
  8. package/.agents/skills/maestro-analyze/SKILL.md +1 -43
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -23
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +8 -25
  11. package/.agents/skills/maestro-collab/SKILL.md +6 -2
  12. package/.agents/skills/maestro-companion/SKILL.md +4 -1
  13. package/.agents/skills/maestro-composer/SKILL.md +4 -2
  14. package/.agents/skills/maestro-execute/SKILL.md +27 -9
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -17
  17. package/.agents/skills/maestro-guard/SKILL.md +2 -2
  18. package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
  19. package/.agents/skills/maestro-init/SKILL.md +1 -1
  20. package/.agents/skills/maestro-merge/SKILL.md +12 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -15
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
  24. package/.agents/skills/maestro-overlay/SKILL.md +9 -0
  25. package/.agents/skills/maestro-plan/SKILL.md +6 -62
  26. package/.agents/skills/maestro-player/SKILL.md +2 -2
  27. package/.agents/skills/maestro-quick/SKILL.md +5 -3
  28. package/.agents/skills/maestro-ralph/SKILL.md +8 -8
  29. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  30. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  32. package/.agents/skills/maestro-roadmap/SKILL.md +1 -9
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  34. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  36. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  37. package/.agents/skills/maestro-update/SKILL.md +10 -7
  38. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  39. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  40. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  41. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  42. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  43. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  44. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  45. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  46. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  47. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  48. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  49. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  50. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  51. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  52. package/.agents/skills/quality-debug/SKILL.md +16 -2
  53. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  54. package/.agents/skills/quality-review/SKILL.md +8 -0
  55. package/.agents/skills/quality-sync/SKILL.md +2 -2
  56. package/.agents/skills/quality-test/SKILL.md +9 -1
  57. package/.agents/skills/security-audit/SKILL.md +14 -4
  58. package/.agents/skills/spec-add/SKILL.md +5 -2
  59. package/.agents/skills/spec-load/SKILL.md +1 -1
  60. package/.agents/skills/spec-remove/SKILL.md +1 -1
  61. package/.agents/skills/spec-setup/SKILL.md +3 -0
  62. package/.agents/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  63. package/.agents/skills/team-coordinate/specs/role-spec-template.md +197 -198
  64. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  65. package/.agents/skills/team-roadmap-dev/specs/team-config.json +1 -1
  66. package/.agents/skills/team-swarm/roles/analyst/role.md +172 -176
  67. package/.agy/skills/domain-add/SKILL.md +3 -0
  68. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  69. package/.agy/skills/learn-follow/SKILL.md +4 -2
  70. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  71. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  72. package/.agy/skills/maestro/SKILL.md +1 -1
  73. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  74. package/.agy/skills/maestro-analyze/SKILL.md +1 -43
  75. package/.agy/skills/maestro-blueprint/SKILL.md +1 -23
  76. package/.agy/skills/maestro-brainstorm/SKILL.md +8 -25
  77. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  78. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  79. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  80. package/.agy/skills/maestro-execute/SKILL.md +27 -9
  81. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  82. package/.agy/skills/maestro-grill/SKILL.md +1 -17
  83. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  84. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  85. package/.agy/skills/maestro-init/SKILL.md +1 -1
  86. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  87. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -15
  88. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  89. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  90. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  91. package/.agy/skills/maestro-plan/SKILL.md +6 -62
  92. package/.agy/skills/maestro-player/SKILL.md +2 -2
  93. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  94. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  95. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  96. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  97. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  98. package/.agy/skills/maestro-roadmap/SKILL.md +1 -9
  99. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  100. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  101. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  102. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  103. package/.agy/skills/maestro-update/SKILL.md +10 -7
  104. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  105. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  106. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  107. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  108. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  109. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  110. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  111. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  112. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  113. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  114. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  115. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  116. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  117. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  118. package/.agy/skills/quality-debug/SKILL.md +16 -2
  119. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  120. package/.agy/skills/quality-review/SKILL.md +8 -0
  121. package/.agy/skills/quality-sync/SKILL.md +2 -2
  122. package/.agy/skills/quality-test/SKILL.md +9 -1
  123. package/.agy/skills/security-audit/SKILL.md +14 -4
  124. package/.agy/skills/spec-add/SKILL.md +5 -2
  125. package/.agy/skills/spec-load/SKILL.md +1 -1
  126. package/.agy/skills/spec-remove/SKILL.md +1 -1
  127. package/.agy/skills/spec-setup/SKILL.md +3 -0
  128. package/.agy/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  129. package/.agy/skills/team-coordinate/specs/role-spec-template.md +197 -198
  130. package/.agy/skills/team-roadmap-dev/SKILL.md +141 -153
  131. package/.agy/skills/team-roadmap-dev/specs/team-config.json +1 -1
  132. package/.agy/skills/team-swarm/roles/analyst/role.md +172 -176
  133. package/.claude/commands/domain-add.md +3 -0
  134. package/.claude/commands/learn-decompose.md +7 -4
  135. package/.claude/commands/learn-follow.md +4 -2
  136. package/.claude/commands/learn-investigate.md +8 -6
  137. package/.claude/commands/learn-second-opinion.md +6 -3
  138. package/.claude/commands/maestro-amend.md +1 -1
  139. package/.claude/commands/maestro-analyze.md +1 -43
  140. package/.claude/commands/maestro-blueprint.md +1 -23
  141. package/.claude/commands/maestro-brainstorm.md +8 -25
  142. package/.claude/commands/maestro-collab.md +6 -2
  143. package/.claude/commands/maestro-companion.md +4 -1
  144. package/.claude/commands/maestro-composer.md +4 -2
  145. package/.claude/commands/maestro-execute.md +27 -9
  146. package/.claude/commands/maestro-fork.md +4 -3
  147. package/.claude/commands/maestro-grill.md +1 -17
  148. package/.claude/commands/maestro-guard.md +2 -2
  149. package/.claude/commands/maestro-impeccable.md +2 -1
  150. package/.claude/commands/maestro-init.md +1 -1
  151. package/.claude/commands/maestro-merge.md +12 -1
  152. package/.claude/commands/maestro-milestone-audit.md +1 -15
  153. package/.claude/commands/maestro-milestone-complete.md +8 -3
  154. package/.claude/commands/maestro-milestone-release.md +8 -4
  155. package/.claude/commands/maestro-overlay.md +9 -0
  156. package/.claude/commands/maestro-plan.md +6 -62
  157. package/.claude/commands/maestro-player.md +2 -2
  158. package/.claude/commands/maestro-quick.md +5 -3
  159. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  160. package/.claude/commands/maestro-ralph-cli.md +663 -0
  161. package/.claude/commands/maestro-ralph-execute.md +127 -11
  162. package/.claude/commands/maestro-ralph.md +8 -8
  163. package/.claude/commands/maestro-roadmap.md +1 -9
  164. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  165. package/.claude/commands/maestro-tools-register.md +16 -1
  166. package/.claude/commands/maestro-ui-codify.md +11 -1
  167. package/.claude/commands/maestro-universal-workflow.md +28 -5
  168. package/.claude/commands/maestro-update.md +10 -7
  169. package/.claude/commands/maestro.md +1 -1
  170. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  171. package/.claude/commands/manage-drift-realign.md +6 -2
  172. package/.claude/commands/manage-harvest.md +4 -1
  173. package/.claude/commands/manage-issue-discover.md +1 -0
  174. package/.claude/commands/manage-kg-extractors.md +5 -1
  175. package/.claude/commands/manage-knowhow-capture.md +1 -0
  176. package/.claude/commands/manage-knowledge-audit.md +3 -0
  177. package/.claude/commands/manage-wiki.md +1 -0
  178. package/.claude/commands/odyssey-debug.md +2 -1
  179. package/.claude/commands/odyssey-improve.md +2 -2
  180. package/.claude/commands/odyssey-planex.md +8 -7
  181. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  182. package/.claude/commands/odyssey-ui.md +4 -4
  183. package/.claude/commands/quality-auto-test.md +11 -1
  184. package/.claude/commands/quality-debug.md +16 -2
  185. package/.claude/commands/quality-retrospective.md +9 -1
  186. package/.claude/commands/quality-review.md +8 -0
  187. package/.claude/commands/quality-sync.md +2 -2
  188. package/.claude/commands/quality-test.md +9 -1
  189. package/.claude/commands/security-audit.md +14 -4
  190. package/.claude/commands/spec-add.md +5 -2
  191. package/.claude/commands/spec-load.md +1 -1
  192. package/.claude/commands/spec-remove.md +1 -1
  193. package/.claude/commands/spec-setup.md +3 -0
  194. package/.claude/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  195. package/.claude/skills/team-coordinate/specs/role-spec-template.md +197 -198
  196. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  197. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  198. package/.claude/skills/team-swarm/roles/analyst/role.md +181 -185
  199. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  200. package/.codex/skills/domain-add/SKILL.md +5 -3
  201. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  202. package/.codex/skills/learn-follow/SKILL.md +12 -6
  203. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  204. package/.codex/skills/learn-retro/SKILL.md +12 -6
  205. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  206. package/.codex/skills/maestro/SKILL.md +19 -13
  207. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  208. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  209. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  210. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  211. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  212. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  213. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  214. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  215. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  216. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  217. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  218. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  219. package/.codex/skills/maestro-init/SKILL.md +3 -2
  220. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  221. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  222. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  223. package/.codex/skills/maestro-next/SKILL.md +11 -10
  224. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  225. package/.codex/skills/maestro-player/SKILL.md +11 -5
  226. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  227. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  228. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  229. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  230. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  231. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  232. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  233. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  234. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  235. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  236. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  237. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  238. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  239. package/.codex/skills/manage-issue/SKILL.md +8 -4
  240. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  241. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  242. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  243. package/.codex/skills/manage-learn/SKILL.md +2 -2
  244. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  245. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  246. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  247. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  248. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  249. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  250. package/.codex/skills/quality-debug/SKILL.md +18 -11
  251. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  252. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  253. package/.codex/skills/quality-review/SKILL.md +18 -11
  254. package/.codex/skills/quality-sync/SKILL.md +2 -2
  255. package/.codex/skills/quality-test/SKILL.md +7 -5
  256. package/.codex/skills/security-audit/SKILL.md +7 -5
  257. package/.codex/skills/spec-add/SKILL.md +9 -7
  258. package/.codex/skills/spec-load/SKILL.md +3 -2
  259. package/.codex/skills/spec-map/SKILL.md +10 -1
  260. package/.codex/skills/spec-remove/SKILL.md +3 -2
  261. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  262. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  263. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  264. package/.codex/skills/team-review/SKILL.md +50 -6
  265. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  266. package/.codex/skills/team-testing/SKILL.md +50 -2
  267. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  268. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  269. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  270. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  271. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  272. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  273. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  274. package/dashboard/dist-server/src/commands/install-backend.js +31 -16
  275. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  276. package/dashboard/dist-server/src/core/component-defs.js +25 -0
  277. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  278. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  280. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  281. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  282. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  283. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  284. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  285. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  286. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  287. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  289. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  290. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  292. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  293. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  294. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  295. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  296. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  297. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  298. package/dashboard/dist-server/src/tools/spec-loader.js +7 -3
  299. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  300. package/dist/src/commands/install-backend.d.ts.map +1 -1
  301. package/dist/src/commands/install-backend.js +31 -16
  302. package/dist/src/commands/install-backend.js.map +1 -1
  303. package/dist/src/core/component-defs.d.ts.map +1 -1
  304. package/dist/src/core/component-defs.js +25 -0
  305. package/dist/src/core/component-defs.js.map +1 -1
  306. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  307. package/dist/src/core/plugin-bridge.js +17 -0
  308. package/dist/src/core/plugin-bridge.js.map +1 -1
  309. package/dist/src/graph/kg/db/types.d.ts +3 -0
  310. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  311. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  312. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  313. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  314. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  315. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  316. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  317. package/dist/src/graph/kg/embedding/index.js +3 -0
  318. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  319. package/dist/src/graph/kg/engine.d.ts +19 -1
  320. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  321. package/dist/src/graph/kg/engine.js +71 -1
  322. package/dist/src/graph/kg/engine.js.map +1 -1
  323. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  324. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  325. package/dist/src/graph/kg/query/scoring.js +85 -1
  326. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  327. package/dist/src/graph/kg/query/search.d.ts +7 -0
  328. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  329. package/dist/src/graph/kg/query/search.js +117 -1
  330. package/dist/src/graph/kg/query/search.js.map +1 -1
  331. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  332. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  333. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  334. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  335. package/dist/src/hooks/kg-sync-hook.js +3 -0
  336. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  337. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  338. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  339. package/dist/src/tools/code-semantic-search.js +81 -0
  340. package/dist/src/tools/code-semantic-search.js.map +1 -0
  341. package/dist/src/tools/index.d.ts.map +1 -1
  342. package/dist/src/tools/index.js +4 -0
  343. package/dist/src/tools/index.js.map +1 -1
  344. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  345. package/dist/src/tools/spec-loader.js +7 -3
  346. package/dist/src/tools/spec-loader.js.map +1 -1
  347. package/dist/src/tools/wiki-search.d.ts +13 -0
  348. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  349. package/dist/src/tools/wiki-search.js +114 -0
  350. package/dist/src/tools/wiki-search.js.map +1 -0
  351. package/dist/src/utils/update-notices.js +23 -0
  352. package/dist/src/utils/update-notices.js.map +1 -1
  353. package/package.json +4 -1
  354. package/workflows/agy-instructions.md +147 -161
  355. package/workflows/claude-instructions.md +100 -48
  356. package/workflows/codex-instructions.md +147 -161
  357. package/workflows/execute.md +4 -3
  358. package/workflows/explore-usage.md +41 -81
  359. package/workflows/grill.md +11 -0
  360. package/workflows/milestone-audit.md +8 -0
  361. package/workflows/odyssey-base-codex.md +115 -116
  362. package/workflows/odyssey-base.md +89 -91
  363. package/workflows/plan.md +6 -0
@@ -1,32 +1,31 @@
1
- # Odyssey 共享基座
1
+ # Odyssey Shared Base
2
2
 
3
- 所有 Odyssey 命令(debug, improve, planex, review-test-fix, ui)共享此基座。
3
+ Shared by all Odyssey commands (debug, improve, planex, review-test-fix, ui).
4
4
 
5
5
  <execution_discipline>
6
- **四条铁律:**
7
6
 
8
- 1. **Phase auto-commit** — 每个阶段完成后自动 `git commit`,无需用户确认
9
- - 代码变更 + understanding.md → `git add` → `git commit -m "{command}({slug}): {phase} — {摘要}"`
10
- - session.json / evidence.ndjson 为运行时状态,不纳入 commit
7
+ 1. **Phase auto-commit** — auto `git commit` after each phase
8
+ - Code changes + understanding.md → `git add` → `git commit -m "{command}({slug}): {phase} — {summary}"`
9
+ - session.json / evidence.ndjson are runtime state, excluded from commits
11
10
 
12
- 2. **Confident edits only, but must attempt** — 有把握才改代码;仅在真正需要人类判断时记录 decision
11
+ 2. **Confident edits only, but must attempt** — edit when confident; record decision only when human judgment truly needed
13
12
  - Confident → edit + commit
14
- - Needs decision → `evidence.ndjson {"phase":"decision","status":"pending"}`,不动代码
15
- - ⚠️ **Decision gate** — 仅以下情形算 decision:跨模块架构权衡需人类方向 | 业务语义歧义修复可能改变意图 | 需引入新依赖或 breaking API
16
- - "不确定怎么修""范围太大""历史遗留" 不是合法 decision 理由
13
+ - Needs decision → `evidence.ndjson {"phase":"decision","status":"pending"}`, no code change
14
+ - **Decision gate** — only these qualify: cross-module architecture tradeoffs needing human direction | business semantics ambiguity where fix may change intent | new dependency or breaking API required
15
+ - "Unsure how to fix", "Too large scope", "Pre-existing issue" are NOT valid decision reasons
17
16
 
18
- 3. **多 CLI 辅助** — `maestro delegate` 多角度交叉验证
19
- - 不同阶段用不同 `--role`(analyze / review / explore
20
- - 所有 delegate 调用 `run_in_background: true`,等回调继续
17
+ 3. **Multi-CLI assist** — `maestro delegate` for cross-angle verification
18
+ - Different `--role` per phase (analyze / review / explore)
19
+ - All delegate calls `run_in_background: true`, wait for callback
21
20
 
22
- 4. **禁止以上下文消耗为由中断** — harness 自动 context compression;以"上下文不足""已执行 N 阶段"为由中断属纪律违反,必须完整走到 S_RECORD → END
21
+ 4. **Never abort for context exhaustion** — harness auto-compresses context; aborting due to "insufficient context" or "already ran N phases" is a discipline violation. Must complete through S_RECORD → END.
23
22
 
24
- **Zero-residual:** 每个发现必须有 actionfix / issue / decision)。"仅报告""历史遗留跳过"均禁止。
23
+ **Zero-residual:** Every finding must have an action (fix / issue / decision). "Report only" and "pre-existing skip" are forbidden.
25
24
  </execution_discipline>
26
25
 
27
26
  <shared_schemas>
28
27
 
29
- ### session.json 标准字段(所有命令共有)
28
+ ### session.json standard fields
30
29
 
31
30
  ```json
32
31
  {
@@ -40,15 +39,15 @@
40
39
  }
41
40
  ```
42
41
 
43
- 各命令在此基础上添加特有字段(如 `issue`, `target`, `requirement` 等)。
42
+ Each command adds its own fields (e.g. `issue`, `target`, `requirement`).
44
43
 
45
- ### evidence.ndjson 基础 schema(每行共有字段)
44
+ ### evidence.ndjson base schema
46
45
 
47
46
  ```json
48
47
  {"ts":"","phase":"","type":"","source":"","content":"","note":""}
49
48
  ```
50
49
 
51
- 各命令定义 phase-specific 扩展字段(如 `hypothesis`, `severity`, `dimension` 等)。
50
+ Each command defines phase-specific extension fields (e.g. `hypothesis`, `severity`, `dimension`).
52
51
 
53
52
  ### generalization_stats schema
54
53
 
@@ -64,9 +63,8 @@
64
63
  </shared_schemas>
65
64
 
66
65
  <anti_stall>
67
- **防停滞机制**
68
66
 
69
- ### session.json 新增字段
67
+ ### progress_metrics fields
70
68
 
71
69
  ```json
72
70
  {
@@ -82,12 +80,12 @@
82
80
 
83
81
  ### Progress Tracking
84
82
 
85
- 每个分析阶段结束时:
86
- 1. 统计 `new_findings`(去重后新发现)和 `repeated`(与已有 evidence 重复)
87
- 2. 写入 `progress_metrics.phase_stats[state_name]`
88
- 3. `new == 0` → `stale_count++`,`convergence_trend = "stalling"`
89
- 4. `new > 0` → `stale_count = 0`,更新 `last_productive_phase`
90
- 5. 连续 2 阶段 new 递减 → `convergence_trend = "diminishing"`
83
+ After each analytical phase:
84
+ 1. Count `new_findings` (deduplicated) and `repeated` (matching existing evidence)
85
+ 2. Write to `progress_metrics.phase_stats[state_name]`
86
+ 3. `new == 0` → `stale_count++`, `convergence_trend = "stalling"`
87
+ 4. `new > 0` → `stale_count = 0`, update `last_productive_phase`
88
+ 5. 2 consecutive phases with declining new → `convergence_trend = "diminishing"`
91
89
 
92
90
  ### Direction Diversity
93
91
 
@@ -95,45 +93,46 @@
95
93
  {
96
94
  "phase": "S_DIAGNOSE", "round": 1,
97
95
  "strategy_type": "scope_widen|perspective_shift|tool_switch|structural_pivot",
98
- "strategy_desc": "扩展搜索到 utils/", "result": "2 new findings"
96
+ "strategy_desc": "expand search to utils/", "result": "2 new findings"
99
97
  }
100
98
  ```
101
99
 
102
- **去重规则:** 自迭代前检查同 phase 历史新策略必须在 `strategy_type` `strategy_desc` 上不同 → 4 type 均已尝试 强制升级 stale_count
100
+ **Dedup rule:** Check same-phase history before self-iteration new strategy must differ in `strategy_type` or `strategy_desc` → all 4 types triedforce stale_count upgrade
103
101
 
104
102
  ### Stall Escalation Ladder
105
103
 
106
- | stale_count | 策略 |
107
- |-------------|------|
108
- | 0 | 正常推进 |
109
- | 1 | **换视角**不同 CLI 工具、反向追踪、手动阅读。方向必须与 directions_tried 不同 |
110
- | 2 | **结构性转向**重定义搜索维度、换分析框架、拆解子问题。不是参数调优 |
111
- | 3 | **人工升级** — AskUserQuestion / `-y` 自动 INCONCLUSIVE 并推进 |
104
+ | stale_count | Strategy |
105
+ |-------------|----------|
106
+ | 0 | Normal advance |
107
+ | 1 | **Shift perspective** different CLI tool, reverse trace, manual read. Must differ from directions_tried |
108
+ | 2 | **Structural pivot** redefine search dimensions, switch analysis framework, decompose sub-problems. Not parameter tuning |
109
+ | 3 | **Human escalation** — AskUserQuestion / `-y` auto INCONCLUSIVE and advance |
112
110
 
113
- ### /loop Heartbeat(可选,`--heartbeat` 启用)
111
+ ### /loop Heartbeat (optional, `--heartbeat`)
114
112
 
115
- 建议用户 `/loop 270s`。每阶段更新 `session.json.updated_at`。超 15 分钟未更新告警 + stale_count。连续 2 次无更新建议 `-c` resume
113
+ Suggest `/loop 270s`. Each phase updates `session.json.updated_at`. >15 min without update alert + stale_count. 2 consecutive no-update suggest `-c` resume.
116
114
  </anti_stall>
117
115
 
118
116
  <self_iteration>
119
- **Quality Gate(进度感知版)**
120
117
 
121
- | 维度 | sufficient | insufficient |
122
- |------|-----------|-------------|
123
- | Coverage | 已知相关文件/模块均已分析 | 遗漏 grep/git log 可发现的目标 |
124
- | Depth | ≥80% 发现有 file:line 级证据 | 多数仅泛泛描述 |
125
- | Actionability | 每条结论有具体后续动作 | 仅"建议关注"类无操作结论 |
118
+ ### Quality Gate
126
119
 
127
- **进度感知迭代(替代固定 3 轮):**
128
- - phase complete → evaluate 3 dims + check `progress_metrics`
129
- - any insufficient AND `stale_count < 3` re-enter,expansion strategy 必须经 directions_tried 去重
130
- - Stall Escalation Ladder 选择策略类型
120
+ | Dimension | Sufficient | Insufficient |
121
+ |-----------|-----------|-------------|
122
+ | Coverage | All known related files/modules analyzed | Missed targets discoverable via grep/git log |
123
+ | Depth | ≥80% findings have file:line evidence | Most findings lack specifics |
124
+ | Actionability | Each conclusion has concrete next action | "Consider reviewing" without action |
125
+
126
+ **Progress-aware iteration:**
127
+ - Phase complete → evaluate 3 dimensions + check `progress_metrics`
128
+ - Any insufficient AND `stale_count < 3` → re-enter with expansion strategy (must pass directions_tried dedup)
129
+ - Follow Stall Escalation Ladder for strategy selection
131
130
 
132
131
  **Expansion strategies:**
133
- - `scope_widen`: 更多目录、git log 深度 ×2、额外 delegate 角度
134
- - `perspective_shift`: 不同 CLI 工具、反向追踪、手动阅读
135
- - `tool_switch`: 切换到未使用的分析工具
136
- - `structural_pivot`: 重定义问题框架、拆解子问题
132
+ - `scope_widen`: more directories, git log depth ×2, additional delegate angles
133
+ - `perspective_shift`: different CLI tool, reverse trace, manual reading
134
+ - `tool_switch`: switch to unused analysis tool
135
+ - `structural_pivot`: redefine problem framework, decompose sub-problems
137
136
 
138
137
  **Exit:** all sufficient → advance | `stale_count >= 3` → log gaps, advance
139
138
 
@@ -144,104 +143,103 @@
144
143
 
145
144
  ### A_GENERALIZE
146
145
 
147
- 3 pattern extraction → 4-agent 并发 scan → cross-layer dedup → iterative deepening
146
+ 3-layer pattern extraction → 4-agent concurrent scan → cross-layer dedup → iterative deepening.
148
147
 
149
- **Pattern 来源:** 由各命令指定(root cause / audit findings / implementation patterns 等)。
148
+ **Pattern source:** specified by each command (root cause / audit findings / implementation patterns).
150
149
 
151
- **3 层提取:**
150
+ **3-layer extraction:**
152
151
 
153
152
  | Layer | Method | Example |
154
153
  |-------|--------|---------|
155
154
  | Syntax | Regex → Grep | `eval(`, missing `await`, inline styles |
156
- | Semantic | Agent 理解反模式 → scan | 未处理异步错误、缺少校验 |
157
- | Structural | 文件/模块结构相似性 | 同类导入结构、缺少 override |
155
+ | Semantic | Agent understands anti-pattern → scan | Unhandled async errors, missing validation |
156
+ | Structural | File/module structure similarity | Same import structure, missing override |
158
157
 
159
158
  Write `session.json.patterns[]`: `[{id, source, layer, signature, description, risk, fix_template, confidence}]`
160
159
 
161
- **4-agent 并发 scan(单条消息):**
160
+ **4-agent concurrent scan (single message):**
162
161
 
163
162
  | Agent | Strategy | Scope |
164
163
  |-------|----------|-------|
165
164
  | Syntax grep | Grep regex | Full project |
166
- | Semantic scan | 反模式检查 | Related modules |
167
- | Structural match | 结构相似文件 | Full project |
165
+ | Semantic scan | Anti-pattern check | Related modules |
166
+ | Structural match | Structurally similar files | Full project |
168
167
  | Historical grep | `git log -S` | Git history |
169
168
 
170
- **Cross-layer dedup:** 多层命中 → boost | 单层 → `needs_review` | 历史已修 → `regression_risk`
169
+ **Cross-layer dedup:** multi-layer hit → boost | single-layer → `needs_review` | historically fixed → `regression_risk`
171
170
 
172
- **Iterative deepening:** module ≥3 hits → 定向深扫(max 1 round
171
+ **Iterative deepening:** module ≥3 hits → targeted deep scan (max 1 round)
173
172
 
174
- **Persist:** understanding.md 泛化 section + `session.json.generalization_stats`(schema 见 shared_schemas)
173
+ **Persist:** understanding.md generalization section + `session.json.generalization_stats`
175
174
 
176
- 📌 Auto-commit: `"...({slug}): GENERALIZE — 泛化扫描完成"`
175
+ Commit: `"...({slug}): GENERALIZE — generalization scan complete"`
177
176
 
178
177
  ### A_DISCOVER
179
178
 
180
- 1. **Triage** 每个 hit ±10 行上下文分类 `bug` / `risk` / `safe`
179
+ 1. **Triage** each hit ±10 lines context classify `bug` / `risk` / `safe`
181
180
  2. **Route:**
182
- - bug + 可直接修**立即修复** → back to S_FIX
183
- - bug + 需跨模块决策创建 issue(含 fix 建议 + 影响分析)
184
- - risk → 评估能否直接加 guard;能
181
+ - bug + fix_template applicable immediate fix → back to S_FIX
182
+ - bug + needs cross-module decision or no fix_template create issue (with fix suggestion + impact analysis)
183
+ - risk → assess if guard can be added directly; yes fix; no → create issue
185
184
  - safe → skip
186
- Normal: AskUserQuestion | `-y`: auto-fix 可修的,其余 create issue
187
- 3. **Cross-phase loops:** `cross_phase_loops++`。`loops >= max_loops` → 必须逐项记录原因(禁止笼统"历史遗留"
185
+ Normal: AskUserQuestion | `-y`: auto-fix bugs with fix_template, create issue for rest
186
+ 3. **Cross-phase loops:** `cross_phase_loops++`. `loops >= max_loops` → must log per-item reasons (blanket "pre-existing" forbidden)
188
187
  4. Append evidence + update understanding.md
189
188
 
190
- 📌 Auto-commit: `"...({slug}): DISCOVER — 发现分类完成"`
189
+ Commit: `"...({slug}): DISCOVER — discovery triage complete"`
191
190
 
192
191
  ### A_RECORD
193
192
 
194
- 1. Finalize understanding.md 最后一节 — learnings 按各命令指定的分类表结构化
195
- - **两步模式:** 执行中写产出文件(临时)→ 完成后用户通过 next_step_routing 沉淀永久知识
196
- 2. Mark record goal done。Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count)
197
- 3. **Goal audit:** all `completion_confirmed` → `phase_goals_all_done = true`。未完成: Normal AskUserQuestion | `-y` auto accept
198
- 4. `current_state = "COMPLETED"`,emit completion summary(格式由各命令定义)
193
+ 1. Finalize understanding.md final section — learnings structured by each command's category table
194
+ 2. Mark record goal done. Pending decisions: Normal → AskUserQuestion | `-y` → skip (show deferred count)
195
+ 3. **Goal audit:** all `completion_confirmed` → `phase_goals_all_done = true`. Incomplete: Normal → AskUserQuestion | `-y` → auto accept
196
+ 4. `current_state = "COMPLETED"`, emit completion summary (format defined by each command)
199
197
 
200
- 📌 Auto-commit: `"...({slug}): RECORD — 会话总结与知识沉淀"`
198
+ Commit: `"...({slug}): RECORD — summary and knowledge persistence"`
201
199
 
202
200
  </shared_actions>
203
201
 
204
202
  <shared_appendix>
205
203
 
206
- ### Goal Prompt 机制
204
+ ### Goal Prompt
207
205
 
208
- **⚠️ 时机守卫:仅 INTAKE 完成后显示一次。RECORD 完成时禁止重显。**
206
+ **Timing guard: display ONCE after INTAKE completes. Never re-display at RECORD.**
209
207
 
210
208
  ```
211
- 📋 {Command} Odyssey 会话已创建。可随时复制以下 /goal 设定终止条件:
209
+ {Command} Odyssey session created. Copy the /goal below to set termination criteria:
212
210
 
213
- /goal 完成以下目标:
211
+ /goal Complete these goals:
214
212
  {for each G in phase_goals where status != "skipped":}
215
- - {G.id}: {G.goal} — 完成条件: {G.done_when}
213
+ - {G.id}: {G.goal} — done when: {G.done_when}
216
214
  {end for}
217
215
  {command-specific convergence rules}
218
- 遇到 phase=decision pending 必须 AskUserQuestion,不得自行 resolve
216
+ Pending phase=decision items must use AskUserQuestion, never self-resolve.
219
217
  ```
220
218
 
221
- 输出后继续执行不阻塞。
219
+ Continue execution after output, do not block.
222
220
 
223
- ### `-y` 通用规则
221
+ ### `-y` generic rules
224
222
 
225
223
  - Decision pending → best-effort continue, record `deferred`
226
224
  - 3-strike escalation → auto INCONCLUSIVE
227
- - Discovery routing → auto create issue
225
+ - Discovery routing → auto-fix bugs with fix_template, create issue for rest
228
226
  - Record pending → skip, show deferred count
229
227
  - Record goal audit → auto accept
230
228
 
231
- `deferred` items completion summary 显示为"待决策";可通过 `-c` 恢复。各命令在自身文件中列出特有 decision points
229
+ `deferred` items shown in completion summary; recoverable via `-c`. Each command lists its own specific decision points.
232
230
 
233
231
  ### Phase Goal Lifecycle
234
232
 
235
233
  `pending → done (confirmed=true)` | `pending → skipped (confirmed=true)` | `pending → failed (confirmed=false)`
236
234
 
237
- `phase_goals_all_done = true` 仅当 ALL goals `completion_confirmed == true`。
235
+ `phase_goals_all_done = true` only when ALL goals have `completion_confirmed == true`.
238
236
 
239
- ### Pre-load(可选,缺失不阻塞)
237
+ ### Pre-load (optional, missing does not block)
240
238
 
241
- | 层级 | 命令 |
242
- |------|------|
239
+ | Layer | Command |
240
+ |-------|---------|
243
241
  | Codebase docs | Read `.workflow/codebase/ARCHITECTURE.md` |
244
- | Wiki search | `maestro search "<keywords>" --json`(top 5 |
242
+ | Wiki search | `maestro search "<keywords>" --json` (top 5) |
245
243
  | Specs | `maestro load --type spec --category <cat>` |
246
244
  | Role knowledge | `maestro search --category <cat>` → `maestro load --type knowhow --id <id>` |
247
245
  | Prior sessions | `Glob(".workflow/scratch/*-{type}-odyssey-*")` |
package/workflows/plan.md CHANGED
@@ -145,6 +145,12 @@ When `--tdd` is active:
145
145
  4. **Load codebase context**
146
146
  - Read `.workflow/codebase/doc-index.json` if exists → extract relevant features, components, requirements
147
147
 
148
+ 4a. **Wiki knowledge search** (optional, proceed without if unavailable)
149
+ - Extract 2-5 key terms from phase goal/title
150
+ - Run `maestro search "<phase_keywords>" --json 2>/dev/null`
151
+ - If results: take top 10 entries as prior knowledge context for planner agent
152
+ - If unavailable: log W003, continue
153
+
148
154
  4b. **Load design reference** (if available)
149
155
  - If `${PHASE_DIR}/design-ref/MASTER.md` exists: load MASTER.md, design-tokens.json, animation-tokens.json (optional), layout-templates/layout-*.json
150
156
  - Every UI task must include in `read_first[]`: design-tokens.json, animation-tokens.json, relevant layout-*.json, MASTER.md