maestro-flow 0.4.26 → 0.5.1
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.
- package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
- package/.agents/skills/learn-follow/SKILL.md +1 -1
- package/.agents/skills/learn-investigate/SKILL.md +2 -2
- package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
- package/.agents/skills/maestro/SKILL.md +6 -3
- package/.agents/skills/maestro-analyze/SKILL.md +53 -2
- package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
- package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
- package/.agents/skills/maestro-collab/SKILL.md +1 -1
- package/.agents/skills/maestro-companion/SKILL.md +4 -4
- package/.agents/skills/maestro-composer/SKILL.md +1 -1
- package/.agents/skills/maestro-execute/SKILL.md +29 -6
- package/.agents/skills/maestro-fork/SKILL.md +24 -0
- package/.agents/skills/maestro-grill/SKILL.md +38 -1
- package/.agents/skills/maestro-help/SKILL.md +5 -6
- package/.agents/skills/maestro-help/index/catalog.json +7 -9
- package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
- package/.agents/skills/maestro-init/SKILL.md +11 -0
- package/.agents/skills/maestro-merge/SKILL.md +17 -1
- package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
- package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
- package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
- package/.agents/skills/maestro-next/SKILL.md +8 -9
- package/.agents/skills/maestro-overlay/SKILL.md +3 -3
- package/.agents/skills/maestro-plan/SKILL.md +21 -3
- package/.agents/skills/maestro-quick/SKILL.md +13 -1
- package/.agents/skills/maestro-ralph/SKILL.md +18 -20
- package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
- package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
- package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
- package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
- package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
- package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
- package/.agents/skills/maestro-update/SKILL.md +59 -116
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
- package/.agents/skills/manage-harvest/SKILL.md +1 -1
- package/.agents/skills/manage-knowhow/SKILL.md +3 -1
- package/.agents/skills/manage-knowhow-capture/SKILL.md +7 -4
- package/.agents/skills/manage-wiki/SKILL.md +17 -8
- package/.agents/skills/quality-auto-test/SKILL.md +3 -3
- package/.agents/skills/quality-debug/SKILL.md +4 -4
- package/.agents/skills/quality-refactor/SKILL.md +2 -2
- package/.agents/skills/quality-retrospective/SKILL.md +5 -5
- package/.agents/skills/quality-review/SKILL.md +4 -4
- package/.agents/skills/quality-sync/SKILL.md +1 -0
- package/.agents/skills/quality-test/SKILL.md +4 -4
- package/.agents/skills/spec-add/SKILL.md +6 -4
- package/.agents/skills/spec-setup/SKILL.md +1 -1
- package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
- package/.agy/skills/learn-follow/SKILL.md +1 -1
- package/.agy/skills/learn-investigate/SKILL.md +2 -2
- package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
- package/.agy/skills/maestro/SKILL.md +6 -3
- package/.agy/skills/maestro-analyze/SKILL.md +53 -2
- package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
- package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
- package/.agy/skills/maestro-collab/SKILL.md +1 -1
- package/.agy/skills/maestro-companion/SKILL.md +4 -4
- package/.agy/skills/maestro-composer/SKILL.md +1 -1
- package/.agy/skills/maestro-execute/SKILL.md +29 -6
- package/.agy/skills/maestro-fork/SKILL.md +24 -0
- package/.agy/skills/maestro-grill/SKILL.md +38 -1
- package/.agy/skills/maestro-help/SKILL.md +5 -6
- package/.agy/skills/maestro-help/index/catalog.json +7 -9
- package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
- package/.agy/skills/maestro-init/SKILL.md +11 -0
- package/.agy/skills/maestro-merge/SKILL.md +17 -1
- package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
- package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
- package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
- package/.agy/skills/maestro-next/SKILL.md +8 -9
- package/.agy/skills/maestro-overlay/SKILL.md +3 -3
- package/.agy/skills/maestro-plan/SKILL.md +21 -3
- package/.agy/skills/maestro-quick/SKILL.md +13 -1
- package/.agy/skills/maestro-ralph/SKILL.md +18 -20
- package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
- package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
- package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
- package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
- package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
- package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
- package/.agy/skills/maestro-update/SKILL.md +59 -116
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
- package/.agy/skills/manage-harvest/SKILL.md +1 -1
- package/.agy/skills/manage-knowhow/SKILL.md +3 -1
- package/.agy/skills/manage-knowhow-capture/SKILL.md +7 -4
- package/.agy/skills/manage-wiki/SKILL.md +17 -8
- package/.agy/skills/quality-auto-test/SKILL.md +3 -3
- package/.agy/skills/quality-debug/SKILL.md +4 -4
- package/.agy/skills/quality-refactor/SKILL.md +2 -2
- package/.agy/skills/quality-retrospective/SKILL.md +5 -5
- package/.agy/skills/quality-review/SKILL.md +4 -4
- package/.agy/skills/quality-sync/SKILL.md +1 -0
- package/.agy/skills/quality-test/SKILL.md +4 -4
- package/.agy/skills/spec-add/SKILL.md +6 -4
- package/.agy/skills/spec-setup/SKILL.md +1 -1
- package/.claude/commands/learn-follow.md +1 -1
- package/.claude/commands/learn-investigate.md +2 -2
- package/.claude/commands/learn-second-opinion.md +1 -1
- package/.claude/commands/maestro-analyze.md +53 -2
- package/.claude/commands/maestro-blueprint.md +36 -1
- package/.claude/commands/maestro-brainstorm.md +40 -1
- package/.claude/commands/maestro-collab.md +1 -1
- package/.claude/commands/maestro-companion.md +4 -4
- package/.claude/commands/maestro-composer.md +1 -1
- package/.claude/commands/maestro-execute.md +29 -6
- package/.claude/commands/maestro-fork.md +24 -0
- package/.claude/commands/maestro-grill.md +38 -1
- package/.claude/commands/maestro-impeccable.md +13 -0
- package/.claude/commands/maestro-init.md +11 -0
- package/.claude/commands/maestro-merge.md +17 -1
- package/.claude/commands/maestro-milestone-audit.md +34 -2
- package/.claude/commands/maestro-milestone-complete.md +19 -1
- package/.claude/commands/maestro-milestone-release.md +18 -0
- package/.claude/commands/maestro-next.md +8 -9
- package/.claude/commands/maestro-overlay.md +3 -3
- package/.claude/commands/maestro-plan.md +21 -3
- package/.claude/commands/maestro-quick.md +13 -1
- package/.claude/commands/maestro-ralph-beta.md +8 -14
- package/.claude/commands/maestro-ralph-execute.md +1 -2
- package/.claude/commands/maestro-ralph.md +18 -20
- package/.claude/commands/maestro-roadmap.md +28 -2
- package/.claude/commands/maestro-swarm-workflow.md +2 -2
- package/.claude/commands/maestro-tools-register.md +2 -2
- package/.claude/commands/maestro-ui-codify.md +20 -0
- package/.claude/commands/maestro-update.md +59 -116
- package/.claude/commands/maestro.md +6 -3
- package/.claude/commands/manage-codebase-rebuild.md +3 -3
- package/.claude/commands/manage-harvest.md +1 -1
- package/.claude/commands/manage-knowhow-capture.md +7 -4
- package/.claude/commands/manage-knowhow.md +3 -1
- package/.claude/commands/manage-wiki.md +17 -8
- package/.claude/commands/quality-auto-test.md +3 -3
- package/.claude/commands/quality-debug.md +4 -4
- package/.claude/commands/quality-refactor.md +2 -2
- package/.claude/commands/quality-retrospective.md +5 -5
- package/.claude/commands/quality-review.md +4 -4
- package/.claude/commands/quality-sync.md +1 -0
- package/.claude/commands/quality-test.md +4 -4
- package/.claude/commands/spec-add.md +6 -4
- package/.claude/commands/spec-setup.md +1 -1
- package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
- package/.claude/skills/maestro-help/SKILL.md +5 -6
- package/.claude/skills/maestro-help/index/catalog.json +7 -9
- package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
- package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
- package/.codex/skills/codify-to-knowhow/SKILL.md +6 -5
- package/.codex/skills/learn-decompose/SKILL.md +1 -1
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +1 -1
- package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
- package/.codex/skills/maestro/SKILL.md +29 -31
- package/.codex/skills/maestro-analyze/SKILL.md +17 -4
- package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
- package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
- package/.codex/skills/maestro-collab/SKILL.md +1 -1
- package/.codex/skills/maestro-companion/SKILL.md +2 -2
- package/.codex/skills/maestro-composer/SKILL.md +0 -1
- package/.codex/skills/maestro-execute/SKILL.md +11 -8
- package/.codex/skills/maestro-fork/SKILL.md +4 -0
- package/.codex/skills/maestro-grill/SKILL.md +8 -2
- package/.codex/skills/maestro-help/SKILL.md +6 -9
- package/.codex/skills/maestro-help/catalog.json +6 -8
- package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
- package/.codex/skills/maestro-init/SKILL.md +3 -0
- package/.codex/skills/maestro-merge/SKILL.md +5 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
- package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
- package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
- package/.codex/skills/maestro-next/SKILL.md +3 -4
- package/.codex/skills/maestro-plan/SKILL.md +5 -2
- package/.codex/skills/maestro-quick/SKILL.md +4 -1
- package/.codex/skills/maestro-ralph/SKILL.md +14 -20
- package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
- package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
- package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
- package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
- package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
- package/.codex/skills/maestro-update/SKILL.md +35 -130
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
- package/.codex/skills/manage-harvest/SKILL.md +2 -2
- package/.codex/skills/manage-knowhow/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow-capture/SKILL.md +32 -20
- package/.codex/skills/manage-status/SKILL.md +1 -2
- package/.codex/skills/quality-auto-test/SKILL.md +2 -2
- package/.codex/skills/quality-debug/SKILL.md +2 -2
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +3 -4
- package/.codex/skills/spec-add/SKILL.md +5 -3
- package/.codex/skills/spec-remove/SKILL.md +2 -2
- package/.codex/skills/team-coordinate/SKILL.md +1 -1
- package/.codex/skills/wiki-digest/SKILL.md +2 -2
- package/chains/brainstorm-driven.json +2 -34
- package/chains/full-lifecycle.json +2 -34
- package/chains/next-milestone.json +0 -7
- package/chains/quality-loop.json +3 -19
- package/chains/roadmap-driven.json +2 -34
- package/chains/spec-driven.json +2 -34
- package/chains/ui-craft-build.json +2 -23
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
- package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
- package/dashboard/dist-server/src/types/index.d.ts +2 -0
- package/dist/src/cli.js +1 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +55 -5
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +2 -1
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +48 -3
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/kg.d.ts +1 -1
- package/dist/src/commands/kg.d.ts.map +1 -1
- package/dist/src/commands/kg.js +285 -112
- package/dist/src/commands/kg.js.map +1 -1
- package/dist/src/commands/knowhow.d.ts.map +1 -1
- package/dist/src/commands/knowhow.js +28 -37
- package/dist/src/commands/knowhow.js.map +1 -1
- package/dist/src/commands/ralph.js +1 -1
- package/dist/src/commands/ralph.js.map +1 -1
- package/dist/src/commands/search.d.ts +36 -0
- package/dist/src/commands/search.d.ts.map +1 -0
- package/dist/src/commands/search.js +120 -0
- package/dist/src/commands/search.js.map +1 -0
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +15 -59
- package/dist/src/commands/spec.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +7 -0
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/commands/wiki.d.ts.map +1 -1
- package/dist/src/commands/wiki.js +6 -21
- package/dist/src/commands/wiki.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +13 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +37 -85
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/core/skill-converter.d.ts +25 -0
- package/dist/src/core/skill-converter.d.ts.map +1 -0
- package/dist/src/core/skill-converter.js +605 -0
- package/dist/src/core/skill-converter.js.map +1 -0
- package/dist/src/graph/codegraph-adapter.d.ts +147 -0
- package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
- package/dist/src/graph/codegraph-adapter.js +266 -0
- package/dist/src/graph/codegraph-adapter.js.map +1 -0
- package/dist/src/hooks/constants.d.ts +4 -0
- package/dist/src/hooks/constants.d.ts.map +1 -1
- package/dist/src/hooks/constants.js +14 -1
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/context-format.d.ts +46 -0
- package/dist/src/hooks/context-format.d.ts.map +1 -0
- package/dist/src/hooks/context-format.js +58 -0
- package/dist/src/hooks/context-format.js.map +1 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +2 -0
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
- package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/keyword-spec-injector.js +92 -7
- package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
- package/dist/src/hooks/kg-context-injector.d.ts +19 -0
- package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
- package/dist/src/hooks/kg-context-injector.js +139 -0
- package/dist/src/hooks/kg-context-injector.js.map +1 -0
- package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
- package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
- package/dist/src/hooks/kg-sync-hook.js +139 -0
- package/dist/src/hooks/kg-sync-hook.js.map +1 -0
- package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
- package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
- package/dist/src/hooks/skill-context.d.ts.map +1 -1
- package/dist/src/hooks/skill-context.js +0 -1
- package/dist/src/hooks/skill-context.js.map +1 -1
- package/dist/src/hooks/spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/spec-injector.js +66 -13
- package/dist/src/hooks/spec-injector.js.map +1 -1
- package/dist/src/hooks/statusline.d.ts +8 -1
- package/dist/src/hooks/statusline.d.ts.map +1 -1
- package/dist/src/hooks/statusline.js +45 -29
- package/dist/src/hooks/statusline.js.map +1 -1
- package/dist/src/hooks/wiki-role-loader.js +1 -1
- package/dist/src/hooks/wiki-role-loader.js.map +1 -1
- package/dist/src/i18n/locales/en.d.ts.map +1 -1
- package/dist/src/i18n/locales/en.js +4 -0
- package/dist/src/i18n/locales/en.js.map +1 -1
- package/dist/src/i18n/locales/zh.d.ts.map +1 -1
- package/dist/src/i18n/locales/zh.js +4 -0
- package/dist/src/i18n/locales/zh.js.map +1 -1
- package/dist/src/i18n/types.d.ts +4 -0
- package/dist/src/i18n/types.d.ts.map +1 -1
- package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
- package/dist/src/ralph/cmd-skills.js +9 -2
- package/dist/src/ralph/cmd-skills.js.map +1 -1
- package/dist/src/ralph/skill-scanner.d.ts +1 -1
- package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
- package/dist/src/ralph/skill-scanner.js +14 -0
- package/dist/src/ralph/skill-scanner.js.map +1 -1
- package/dist/src/ralph/status-schema.d.ts +1 -1
- package/dist/src/ralph/status-schema.d.ts.map +1 -1
- package/dist/src/tools/spec-entry-parser.d.ts +2 -1
- package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
- package/dist/src/tools/spec-entry-parser.js +7 -4
- package/dist/src/tools/spec-entry-parser.js.map +1 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +27 -3
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/spec-writer.d.ts +10 -1
- package/dist/src/tools/spec-writer.d.ts.map +1 -1
- package/dist/src/tools/spec-writer.js +86 -7
- package/dist/src/tools/spec-writer.js.map +1 -1
- package/dist/src/tools/store-knowhow.d.ts.map +1 -1
- package/dist/src/tools/store-knowhow.js +27 -7
- package/dist/src/tools/store-knowhow.js.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.js +7 -1
- package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.d.ts +1 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js +3 -1
- package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +25 -1
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +13 -5
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.js +10 -0
- package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.js +5 -1
- package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/utils/cli-format.d.ts +6 -0
- package/dist/src/utils/cli-format.d.ts.map +1 -1
- package/dist/src/utils/cli-format.js +25 -0
- package/dist/src/utils/cli-format.js.map +1 -1
- package/dist/src/utils/update-notices.js +25 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +5 -2
- package/templates/workflows/specs/node-catalog.md +0 -2
- package/workflows/agy-instructions.md +1 -1
- package/workflows/analyze.md +9 -4
- package/workflows/auto-test.md +2 -2
- package/workflows/business-test.md +1 -1
- package/workflows/claude-instructions.md +23 -11
- package/workflows/codex-instructions.md +2 -3
- package/workflows/execute.md +153 -7
- package/workflows/finish-work.md +1 -1
- package/workflows/fork.md +1 -1
- package/workflows/impeccable/design.md +1 -0
- package/workflows/impeccable.md +1 -0
- package/workflows/integration-test.md +1 -1
- package/workflows/knowhow.md +14 -8
- package/workflows/maestro-super.md +1 -1
- package/workflows/maestro.codex.md +18 -34
- package/workflows/maestro.md +34 -42
- package/workflows/review.md +1 -1
- package/workflows/specs-add.md +1 -1
- package/workflows/specs-setup.md +2 -2
- package/workflows/status.md +2 -2
- package/workflows/swarm/wf-verify.js +1 -1
- package/workflows/test-gen.md +2 -2
- package/workflows/test.md +1 -1
- package/workflows/updates/README.md +41 -0
- package/workflows/updates/update-v3-setup.md +79 -0
- package/workflows/verify.md +7 -1
- package/.agents/skills/learn-retro/SKILL.md +0 -159
- package/.agents/skills/maestro-learn/SKILL.md +0 -142
- package/.agents/skills/maestro-verify/SKILL.md +0 -146
- package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
- package/.agents/skills/manage-learn/SKILL.md +0 -67
- package/.agents/skills/wiki-connect/SKILL.md +0 -64
- package/.agents/skills/wiki-digest/SKILL.md +0 -70
- package/.agy/skills/learn-retro/SKILL.md +0 -159
- package/.agy/skills/maestro-learn/SKILL.md +0 -142
- package/.agy/skills/maestro-verify/SKILL.md +0 -146
- package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
- package/.agy/skills/manage-learn/SKILL.md +0 -64
- package/.agy/skills/wiki-connect/SKILL.md +0 -64
- package/.agy/skills/wiki-digest/SKILL.md +0 -70
- package/.claude/commands/learn-retro.md +0 -157
- package/.claude/commands/maestro-learn.md +0 -140
- package/.claude/commands/maestro-verify.md +0 -144
- package/.claude/commands/manage-codebase-refresh.md +0 -60
- package/.claude/commands/manage-learn.md +0 -65
- package/.claude/commands/wiki-connect.md +0 -62
- package/.claude/commands/wiki-digest.md +0 -68
- package/.codex/skills/maestro-verify/SKILL.md +0 -254
- package/chains/execute-verify.json +0 -59
- package/chains/singles/verify.json +0 -26
|
@@ -52,7 +52,7 @@ Remaining → intent (new session)
|
|
|
52
52
|
3. **执行 step 通过 `maestro ralph next` 加载** — CLI 解析 frontmatter + `<required_reading>` + `<deferred_reading>`、读 required 全文、拼 prompt、写 `step.load.*` + `active_step_index` + `step.status="running"`
|
|
53
53
|
4. **decision step 内联评估** — 不 handoff、不调 ralph next;按 `step.decision` 分派 A_DECISION_*
|
|
54
54
|
5. **每个 step 必须 `completion_confirmed: true`** — 由 `maestro ralph complete N --status DONE|DONE_WITH_CONCERNS` 写入;STATUS 仅 `DONE | DONE_WITH_CONCERNS | NEEDS_RETRY | BLOCKED`
|
|
55
|
-
6. **command_path 在 A_BUILD_STEPS 解析** — 通过 `maestro ralph skills --platform
|
|
55
|
+
6. **command_path 在 A_BUILD_STEPS 解析** — 通过 `maestro ralph skills --platform agy --json --quiet` 预校验(project 覆盖 global,只扫描 `.claude/commands/`);未命中标 `command_scope = "missing"`
|
|
56
56
|
7. **required reading 由 CLI 加载** — 缺失 → 退出码 1(E007)→ pause session;ralph build 阶段不读 .md 内容
|
|
57
57
|
8. **active_step_index 一致性由 CLI 维护** — 同一 session 同时最多一个 step 持有;E008/E009 直接退出
|
|
58
58
|
9. **Decomposition is outcome-oriented** — sub-goals 为可观测交付,禁止 lifecycle 复刻;`/goal` 由用户输入
|
|
@@ -175,7 +175,7 @@ S_TICK_EXEC: Entry: A_EXEC_STEP
|
|
|
175
175
|
→ S_HANDLE_FAIL WHEN: ralph complete with NEEDS_RETRY|BLOCKED
|
|
176
176
|
|
|
177
177
|
S_TICK_DECISION: (gate 名取自 `step.decision`)
|
|
178
|
-
→ S_TICK_APPLY WHEN: quality-gate (post-
|
|
178
|
+
→ S_TICK_APPLY WHEN: quality-gate (post-execute, post-business-test, post-review, post-test)
|
|
179
179
|
DO: A_DELEGATE_EVALUATE
|
|
180
180
|
→ S_TICK_APPLY WHEN: goal-gate (post-goal-audit)
|
|
181
181
|
DO: A_GOAL_AUDIT_EVALUATE
|
|
@@ -412,8 +412,7 @@ narrow → derive defaults from intent + codebase, skip questions.
|
|
|
412
412
|
| roadmap | `maestro-roadmap --from analyze:{analyze_macro_id}` | *(same)* | — | all |
|
|
413
413
|
| analyze | `maestro-analyze {phase}` | `maestro-analyze` | — | all |
|
|
414
414
|
| plan | `maestro-plan {phase}` *(scope=phase)* / `maestro-plan --from analyze:{analyze_macro_id}` *(scope=standalone)* / `maestro-plan --from blueprint:{blueprint_id}` *(scope=standalone)* | `maestro-plan` | — | all |
|
|
415
|
-
| execute | `maestro-execute {phase}` | `maestro-execute` |
|
|
416
|
-
| verify | `maestro-verify {phase}` | `maestro-verify` | `post-verify` | all |
|
|
415
|
+
| execute | `maestro-execute {phase}` | `maestro-execute` | `post-execute` | all |
|
|
417
416
|
| business-test | `quality-auto-test {phase}` | `quality-auto-test` | `post-business-test` | full only |
|
|
418
417
|
| review | `quality-review {phase}` | `quality-review` | `post-review` | all (quick: append `--tier quick`) |
|
|
419
418
|
| test-gen | `quality-auto-test {phase}` | `quality-auto-test` | — | full / standard if coverage<80% |
|
|
@@ -435,7 +434,7 @@ narrow → derive defaults from intent + codebase, skip questions.
|
|
|
435
434
|
8. **占位符**:independent 保留 `{phase}` `{intent}`;unified 不带 `{phase}`
|
|
436
435
|
9. **command_path 解析**(执行 step):
|
|
437
436
|
- skill 名 = args 前的第一个 token
|
|
438
|
-
- `run_command("maestro ralph skills --platform
|
|
437
|
+
- `run_command("maestro ralph skills --platform agy --json --quiet")` 拉取 global + project(project 覆盖 global),匹配 skill 名:
|
|
439
438
|
- 命中 → `command_scope = "global" | "project"`,`command_path = <绝对路径>`
|
|
440
439
|
- 未命中 → `command_scope = "missing"`, `command_path = null` → A_CREATE_SESSION raise E006
|
|
441
440
|
10. **每个 step 初始化** `completion_confirmed: false`, `completion_status: null`, `completion_evidence: null`, `deferred_reads: []`, `load: null`
|
|
@@ -542,7 +541,7 @@ Write enriched args back to status.json.
|
|
|
542
541
|
3. Map result files:
|
|
543
542
|
| Decision | Files |
|
|
544
543
|
|----------|-------|
|
|
545
|
-
| post-
|
|
544
|
+
| post-execute | verification.json |
|
|
546
545
|
| post-business-test | .tests/auto-test/report.json |
|
|
547
546
|
| post-review | review.json |
|
|
548
547
|
| post-test | uat.md, .tests/test-results.json |
|
|
@@ -715,8 +714,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
|
|
|
715
714
|
|
|
716
715
|
[✓] 0. maestro-plan 1 [global]
|
|
717
716
|
[✓] 1. maestro-execute 1 [project]
|
|
718
|
-
[✓] 2.
|
|
719
|
-
[✓] 3. ◆ post-verify [decision]
|
|
717
|
+
[✓] 2. ◆ post-execute [decision]
|
|
720
718
|
...
|
|
721
719
|
============================================================
|
|
722
720
|
```
|
|
@@ -791,13 +789,12 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
|
|
|
791
789
|
|
|
792
790
|
插入的执行 step 按 A_BUILD_STEPS 规则 9 解析 `command_path` + `command_scope`;`decision:*` 条目为 decision 节点。
|
|
793
791
|
|
|
794
|
-
**post-
|
|
792
|
+
**post-execute:**
|
|
795
793
|
```
|
|
796
794
|
quality-debug "{gap_summary}"
|
|
797
795
|
maestro-plan --gaps {phase}
|
|
798
796
|
maestro-execute {phase}
|
|
799
|
-
|
|
800
|
-
decision:post-verify {retry+1}
|
|
797
|
+
decision:post-execute {retry+1}
|
|
801
798
|
```
|
|
802
799
|
|
|
803
800
|
**post-business-test:**
|
|
@@ -805,8 +802,7 @@ decision:post-verify {retry+1}
|
|
|
805
802
|
quality-debug --from-business-test "{gap_summary}"
|
|
806
803
|
maestro-plan --gaps {phase}
|
|
807
804
|
maestro-execute {phase}
|
|
808
|
-
|
|
809
|
-
decision:post-verify {retry: 0}
|
|
805
|
+
decision:post-execute {retry: 0}
|
|
810
806
|
quality-auto-test {phase}
|
|
811
807
|
decision:post-business-test {retry+1}
|
|
812
808
|
```
|
|
@@ -825,8 +821,7 @@ decision:post-review {retry+1}
|
|
|
825
821
|
quality-debug --from-uat "{gap_summary}"
|
|
826
822
|
maestro-plan --gaps {phase}
|
|
827
823
|
maestro-execute {phase}
|
|
828
|
-
|
|
829
|
-
decision:post-verify {retry: 0}
|
|
824
|
+
decision:post-execute {retry: 0}
|
|
830
825
|
quality-auto-test {phase}
|
|
831
826
|
decision:post-business-test {retry: 0}
|
|
832
827
|
quality-review {phase}
|
|
@@ -841,7 +836,6 @@ decision:post-test {retry+1}
|
|
|
841
836
|
# for each unmet sub-goal G{n}, scoped to target_phase:
|
|
842
837
|
maestro-plan --gaps {target_phase} "G{n}: {gap}" [goal_ref: G{n}]
|
|
843
838
|
maestro-execute {target_phase} [goal_ref: G{n}]
|
|
844
|
-
maestro-verify {target_phase} [goal_ref: G{n}]
|
|
845
839
|
# after all unmet groups inserted:
|
|
846
840
|
decision:post-goal-audit {retry+1}
|
|
847
841
|
```
|
|
@@ -199,8 +199,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
|
|
|
199
199
|
|
|
200
200
|
[✓] 0. maestro-plan 1 [global]
|
|
201
201
|
[✓] 1. maestro-execute 1 [project]
|
|
202
|
-
[✓] 2.
|
|
203
|
-
[✓] 3. ◆ post-verify [decision]
|
|
202
|
+
[✓] 2. ◆ post-execute [decision]
|
|
204
203
|
...
|
|
205
204
|
============================================================
|
|
206
205
|
```
|
|
@@ -63,13 +63,13 @@ maestro-analyze ─┘ context-package.json
|
|
|
63
63
|
↓
|
|
64
64
|
maestro-roadmap → .workflow/roadmap.md (Milestone > Phase hierarchy)
|
|
65
65
|
↓
|
|
66
|
-
maestro-analyze {phase} → maestro-plan → maestro-execute
|
|
66
|
+
maestro-analyze {phase} → maestro-plan → maestro-execute
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### Pre-load
|
|
70
70
|
|
|
71
71
|
1. **Specs**: `maestro spec load --category arch` — load architecture constraints for phase decomposition
|
|
72
|
-
2. **Wiki search**: `maestro
|
|
72
|
+
2. **Wiki search**: `maestro search "{requirement keywords}" --json` → prior knowledge
|
|
73
73
|
3. All optional — proceed without if unavailable
|
|
74
74
|
</context>
|
|
75
75
|
|
|
@@ -94,6 +94,32 @@ Sub-modes:
|
|
|
94
94
|
- **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
|
|
95
95
|
- **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
|
|
96
96
|
|
|
97
|
+
### Phase Gates (MANDATORY, BLOCKING — Create mode)
|
|
98
|
+
|
|
99
|
+
**GATE 1: Input → Decomposition**
|
|
100
|
+
- REQUIRED: Requirement parsed with goal, constraints, stakeholders.
|
|
101
|
+
- REQUIRED: Upstream context loaded via --from (if specified).
|
|
102
|
+
|
|
103
|
+
**GATE 2: Decomposition → Refinement**
|
|
104
|
+
- REQUIRED: Milestones defined with deliverable targets.
|
|
105
|
+
- REQUIRED: Phases defined within milestones with dependencies.
|
|
106
|
+
- REQUIRED: Every Active requirement from project.md mapped to exactly one phase.
|
|
107
|
+
- REQUIRED: No circular dependencies in phase ordering.
|
|
108
|
+
|
|
109
|
+
**GATE 3: Refinement → Completion**
|
|
110
|
+
- REQUIRED: User approved roadmap (or auto-approved with -y).
|
|
111
|
+
- REQUIRED: `.workflow/roadmap.md` written with Milestone > Phase hierarchy.
|
|
112
|
+
- REQUIRED: Artifact registered in state.json with milestone entries.
|
|
113
|
+
|
|
114
|
+
### Artifact Verification (before completion)
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
REQUIRED_ARTIFACTS = [
|
|
118
|
+
".workflow/roadmap.md" // Milestone > Phase hierarchy with progress table
|
|
119
|
+
]
|
|
120
|
+
```
|
|
121
|
+
If missing: DO NOT report completion.
|
|
122
|
+
|
|
97
123
|
</execution>
|
|
98
124
|
|
|
99
125
|
<completion>
|
|
@@ -25,7 +25,7 @@ Scripts: `~/.maestro/workflows/swarm/wf-*.js`
|
|
|
25
25
|
| `wf-analyze` | maestro-analyze | explore → 6-dim scoring → **skeptic cross-verify** → **3-way advocacy (go/no-go/conditional) + referee** |
|
|
26
26
|
| `wf-brainstorm` | maestro-brainstorm | multi-role analysis → **3-specialist cross-review** → **3-proposal competition** → **arbitrator** |
|
|
27
27
|
| `wf-review` | quality-review | 6-dim scan → **3-vote adversarial verify (prosecutor/defense/judge)** → **3-perspective report + arbitrated verdict** |
|
|
28
|
-
| `wf-verify` | maestro-
|
|
28
|
+
| `wf-verify` | maestro-execute (verification gate) | 3-layer + antipattern + convergence → **prosecutor vs defender debate** → **judge verdict** |
|
|
29
29
|
| `wf-grill` | maestro-grill | explore → parallel branch stress → **meta-skeptic challenge** → **3-vote verdict (optimist/pessimist/realist)** |
|
|
30
30
|
| `wf-plan` | maestro-plan | parallel context → **3-strategy competing proposals** → **judge panel scoring** → **3-critic adversarial check** |
|
|
31
31
|
| `wf-execute` | maestro-execute | wave-based parallel execution → **adversarial convergence spot-check** → **3-vote status determination** |
|
|
@@ -227,7 +227,7 @@ Ralph 可以在 A_BUILD_STEPS 中将某些 step 的执行方式标记为 `swarm-
|
|
|
227
227
|
"args": "--script wf-analyze {phase}",
|
|
228
228
|
"stage": "analyze",
|
|
229
229
|
"command_scope": "project",
|
|
230
|
-
"command_path": "<resolved by maestro ralph skills>"
|
|
230
|
+
"command_path": "<resolved by maestro ralph skills --platform agy>"
|
|
231
231
|
}
|
|
232
232
|
```
|
|
233
233
|
|
|
@@ -67,7 +67,7 @@ Parse $ARGUMENTS to determine mode:
|
|
|
67
67
|
- Analyze improvement points (step splitting, prerequisites, error handling)
|
|
68
68
|
|
|
69
69
|
**Promote mode** (existing knowhow → tool):
|
|
70
|
-
- Locate document: `maestro
|
|
70
|
+
- Locate document: `maestro search "<name>" --type knowhow` or by path in `.workflow/knowhow/`
|
|
71
71
|
- Read document, verify it contains actionable steps (numbered list or ## Steps section)
|
|
72
72
|
- If no actionable steps, suggest extract mode instead
|
|
73
73
|
- Determine category (Step 3) and summary ("Use when ...")
|
|
@@ -130,7 +130,7 @@ summary: "Use when <timing>. <scope description>"
|
|
|
130
130
|
**Optionally register spec ref entry** for index discoverability:
|
|
131
131
|
```bash
|
|
132
132
|
maestro spec add <category> "<title>" "Use when <timing>. <scope summary>" --keywords "<csv>" \
|
|
133
|
-
--ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
|
|
133
|
+
--description "<one-line summary>" --ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
### Step 6: Verify
|
|
@@ -57,6 +57,26 @@ If specs not initialized, continue without — the workflow still produces valid
|
|
|
57
57
|
Route to `~/.maestro/workflows/ui-codify.md` and follow completely.
|
|
58
58
|
|
|
59
59
|
The workflow orchestrates 4 phases with deferred loading of phase-specific workflow files. Each phase reads its workflow file only when execution reaches that phase.
|
|
60
|
+
|
|
61
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
62
|
+
|
|
63
|
+
**GATE Phase 1 → Phase 2**: Source path validated, file discovery completed. design-tokens.json generated.
|
|
64
|
+
**GATE Phase 2 → Phase 3**: layout-templates.json generated with component patterns.
|
|
65
|
+
**GATE Phase 3 → Phase 4**: preview.html + preview.css generated as interactive showcase.
|
|
66
|
+
**GATE Phase 4 → Completion**: knowhow-manifest.json created. codify-to-knowhow called and completed.
|
|
67
|
+
|
|
68
|
+
### Artifact Verification (before completion)
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
REQUIRED_ARTIFACTS = [
|
|
72
|
+
"design-tokens.json", // Phase 1
|
|
73
|
+
"layout-templates.json", // Phase 2
|
|
74
|
+
"preview.html", // Phase 3
|
|
75
|
+
"preview.css", // Phase 3
|
|
76
|
+
"knowhow-manifest.json" // Phase 4
|
|
77
|
+
]
|
|
78
|
+
```
|
|
79
|
+
If any artifact is missing: DO NOT report completion.
|
|
60
80
|
</execution>
|
|
61
81
|
|
|
62
82
|
<error_codes>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-update
|
|
3
3
|
description: Detect version, preview changes, apply workflow upgrades
|
|
4
|
-
argument-hint: [--dry-run] [--force]
|
|
4
|
+
argument-hint: [--dry-run] [--force] [--setup-only]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- grep_search
|
|
@@ -11,9 +11,13 @@ allowed-tools:
|
|
|
11
11
|
- write_to_file
|
|
12
12
|
---
|
|
13
13
|
<purpose>
|
|
14
|
-
|
|
14
|
+
Version router — detect current version, run schema migration to latest, then follow the version-specific smart upgrade workflow.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Migration scripts live in two layers:
|
|
17
|
+
- **Schema** (`src/migrations/`): code-level state.json transforms, auto-chained by registry
|
|
18
|
+
- **Workflow** (`~/.maestro/workflows/updates/`): version-specific upgrade guides with environment setup
|
|
19
|
+
|
|
20
|
+
Schema migrations handle the mechanical version bump. Workflow docs handle the smart part — what the user needs to know, configure, or verify for that version. The router runs schema first, then loads the matching workflow doc.
|
|
17
21
|
</purpose>
|
|
18
22
|
|
|
19
23
|
<context>
|
|
@@ -21,131 +25,80 @@ $ARGUMENTS — optional flags.
|
|
|
21
25
|
|
|
22
26
|
**Flags:**
|
|
23
27
|
- `--dry-run` -- Preview migration plan without executing
|
|
24
|
-
- `--force` -- Skip confirmation prompts
|
|
28
|
+
- `--force` -- Skip confirmation prompts
|
|
29
|
+
- `--setup-only` -- Skip schema migration, run only the setup for current version
|
|
25
30
|
|
|
26
|
-
**
|
|
27
|
-
- Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
|
|
28
|
-
- All migrations are registered via `src/migrations/index.ts`
|
|
29
|
-
- Registry auto-chains: detects current version → walks chain → applies in order
|
|
30
|
-
- To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
|
|
31
|
+
**Version source:** `.workflow/state.json` → `version` field
|
|
31
32
|
|
|
32
|
-
**
|
|
33
|
-
-
|
|
34
|
-
- Outputs JSON (with `--json`) or human-readable text
|
|
33
|
+
**Workflow docs:** `~/.maestro/workflows/updates/`
|
|
34
|
+
- `update-v{TO}-setup.md` — post-migration setup for version {TO}
|
|
35
35
|
|
|
36
|
-
**
|
|
36
|
+
**Schema registry:** `src/migrations/` — handles all intermediate version bumps automatically
|
|
37
37
|
</context>
|
|
38
38
|
|
|
39
39
|
<execution>
|
|
40
40
|
|
|
41
|
-
### Step 1: Detect
|
|
41
|
+
### Step 1: Detect Version
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
1. Read .workflow/state.json
|
|
45
|
-
2.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
=== Maestro Workflow Update ===
|
|
49
|
-
Project: {project_name}
|
|
50
|
-
Version: {version}
|
|
51
|
-
Location: {.workflow/ path}
|
|
44
|
+
1. Read .workflow/state.json → extract version (default "1.0" if missing)
|
|
45
|
+
2. Display:
|
|
46
|
+
=== Maestro Update ===
|
|
47
|
+
Current version: v{version}
|
|
52
48
|
```
|
|
53
49
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
IF `--setup-only`:
|
|
51
|
+
→ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
|
|
52
|
+
→ IF exists: follow that document completely, then EXIT
|
|
53
|
+
→ IF not exists: display "No setup script for v{version}" → EXIT
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
|
|
60
|
-
```
|
|
55
|
+
### Step 2: Check for Updates
|
|
61
56
|
|
|
62
|
-
Parse the JSON output. If status is `up-to-date`:
|
|
63
57
|
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
1. Run: npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
|
|
59
|
+
2. Parse JSON output
|
|
60
|
+
3. IF status = "up-to-date":
|
|
61
|
+
Display "Already up to date (v{version})"
|
|
62
|
+
→ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
|
|
63
|
+
→ IF exists: ask_question "Run setup for v{version}?" → load and follow
|
|
64
|
+
→ EXIT
|
|
65
|
+
|
|
66
|
+
4. Display target:
|
|
67
|
+
Update available: v{current} → v{target}
|
|
68
|
+
Schema migrations: {N} step(s) (handled automatically)
|
|
69
69
|
```
|
|
70
|
-
Pending Migrations ({N} step(s)):
|
|
71
|
-
|
|
72
|
-
1. [v{from} → v{to}] {name}
|
|
73
|
-
{description}
|
|
74
|
-
|
|
75
|
-
2. [v{from} → v{to}] {name}
|
|
76
|
-
{description}
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
If `--dry-run` flag was passed by user → display plan and EXIT.
|
|
80
70
|
|
|
81
|
-
|
|
71
|
+
IF `--dry-run` → display info and EXIT.
|
|
82
72
|
|
|
83
|
-
|
|
73
|
+
### Step 3: Execute
|
|
84
74
|
|
|
85
75
|
```
|
|
86
|
-
|
|
76
|
+
1. Confirm (unless --force):
|
|
77
|
+
ask_question: "Upgrade v{current} → v{target}?"
|
|
78
|
+
Options: [执行 / 取消]
|
|
87
79
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Version: v{from} → v{to}
|
|
80
|
+
2. Create backup:
|
|
81
|
+
Bash: cp .workflow/state.json .workflow/state.json.backup-v{current}-{timestamp}
|
|
91
82
|
|
|
92
|
-
|
|
93
|
-
|
|
83
|
+
3. Run schema migration (handles all intermediate steps automatically):
|
|
84
|
+
Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
|
|
85
|
+
Parse result, display changes.
|
|
94
86
|
|
|
95
|
-
|
|
96
|
-
ask_question: "Apply this migration?"
|
|
97
|
-
Options: [yes / skip / abort]
|
|
87
|
+
4. IF failed → display backup restore command → EXIT
|
|
98
88
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
- "abort" → display summary of what was applied so far → EXIT
|
|
89
|
+
5. Load version-specific setup:
|
|
90
|
+
Read: ~/.maestro/workflows/updates/update-v{target}-setup.md
|
|
91
|
+
IF exists → follow completely (hooks, deps, knowledge system config)
|
|
103
92
|
|
|
104
|
-
|
|
105
|
-
→ proceed to Step 4 (execute)
|
|
93
|
+
6. Display: "v{current} → v{target}: done"
|
|
106
94
|
```
|
|
107
95
|
|
|
108
|
-
### Step 4:
|
|
96
|
+
### Step 4: Summary
|
|
109
97
|
|
|
110
98
|
```
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
2. Run migration:
|
|
115
|
-
Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
|
|
116
|
-
|
|
117
|
-
NOTE: The runner executes ALL pending migrations. For step-by-step control,
|
|
118
|
-
read state.json, call the migration function directly, or use the runner
|
|
119
|
-
which stops on first failure.
|
|
120
|
-
|
|
121
|
-
3. Parse result JSON and display:
|
|
122
|
-
|
|
123
|
-
{status_icon} Step {N} completed: {name}
|
|
124
|
-
Summary: {summary}
|
|
125
|
-
Changes:
|
|
126
|
-
- {change_1}
|
|
127
|
-
- {change_2}
|
|
128
|
-
- ...
|
|
129
|
-
|
|
130
|
-
4. If failed:
|
|
131
|
-
Display: "Migration failed: {summary}"
|
|
132
|
-
Display: "Backup available at: {backup_path}"
|
|
133
|
-
Display: "Restore with: cp {backup_path} .workflow/state.json"
|
|
134
|
-
→ EXIT
|
|
135
|
-
|
|
136
|
-
5. Continue loop to next step
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Step 5: Summary
|
|
140
|
-
|
|
141
|
-
After all steps completed (or user aborted):
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
=== Migration Complete ===
|
|
145
|
-
Applied: {applied_count} / {total_count} migration(s)
|
|
146
|
-
Skipped: {skipped_count}
|
|
147
|
-
Version: v{original} → v{final}
|
|
148
|
-
Backup: .workflow/state.json.backup-v{original}-{timestamp}
|
|
99
|
+
=== Update Complete ===
|
|
100
|
+
Version: v{current} → v{target}
|
|
101
|
+
Backup: .workflow/state.json.backup-v{current}-{timestamp}
|
|
149
102
|
|
|
150
103
|
Next steps:
|
|
151
104
|
/manage-status -- Verify project state
|
|
@@ -154,22 +107,12 @@ Next steps:
|
|
|
154
107
|
|
|
155
108
|
</execution>
|
|
156
109
|
|
|
157
|
-
<error_codes>
|
|
158
|
-
| Code | Severity | Condition | Recovery |
|
|
159
|
-
|------|----------|-----------|----------|
|
|
160
|
-
| E001 | error | .workflow/state.json not found | Run /maestro-init first |
|
|
161
|
-
| E002 | error | state.json parse error | Check file for corruption |
|
|
162
|
-
| E003 | error | Migration function failed | Restore from backup |
|
|
163
|
-
| W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
|
|
164
|
-
| W002 | warning | tsx not available | Install tsx: npm i -D tsx |
|
|
165
|
-
</error_codes>
|
|
166
|
-
|
|
167
110
|
<success_criteria>
|
|
168
111
|
- [ ] Current version detected from state.json
|
|
169
|
-
- [ ]
|
|
170
|
-
- [ ]
|
|
171
|
-
- [ ]
|
|
172
|
-
- [ ]
|
|
173
|
-
- [ ]
|
|
174
|
-
- [ ] Summary shows
|
|
112
|
+
- [ ] Schema migrations run automatically (no manual intermediate steps)
|
|
113
|
+
- [ ] Backup created before migration
|
|
114
|
+
- [ ] Version-specific setup doc loaded and followed (if exists)
|
|
115
|
+
- [ ] --setup-only runs only setup for current version
|
|
116
|
+
- [ ] --dry-run previews without executing
|
|
117
|
+
- [ ] Summary shows version change and backup path
|
|
175
118
|
</success_criteria>
|
|
@@ -55,9 +55,9 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
|
|
|
55
55
|
|
|
56
56
|
**Next-step routing on completion:**
|
|
57
57
|
- View updated project state → `/manage-status`
|
|
58
|
-
- Incremental updates later → `/
|
|
58
|
+
- Incremental updates later → `/quality-sync`
|
|
59
59
|
- Verify KG stats → `maestro kg stats`
|
|
60
|
-
- Verify wiki integration → `maestro
|
|
60
|
+
- Verify wiki integration → `maestro search "kg" --type knowhow`
|
|
61
61
|
- Future change impact → `maestro kg diff-wiki`
|
|
62
62
|
</execution>
|
|
63
63
|
|
|
@@ -82,6 +82,6 @@ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
|
|
|
82
82
|
- [ ] KG pipeline executed (`maestro kg index`)
|
|
83
83
|
- [ ] knowledge-graph.json generated in .workflow/codebase/
|
|
84
84
|
- [ ] KG nodes indexed as virtual wiki entries (automatic via WikiIndexer on next wiki access)
|
|
85
|
-
- [ ] Next step routing: `/manage-status` or `/
|
|
85
|
+
- [ ] Next step routing: `/manage-status` or `/quality-sync` for incremental updates later
|
|
86
86
|
- [ ] KG impact check available: `maestro kg diff-wiki` for future change impact analysis
|
|
87
87
|
</success_criteria>
|
|
@@ -55,7 +55,7 @@ Extraction patterns, classification rules, routing infrastructure, and fragment
|
|
|
55
55
|
|
|
56
56
|
**Next-step routing on completion:**
|
|
57
57
|
- Review wiki entries → `maestro wiki list --type note`
|
|
58
|
-
- Connect wiki graph → `/wiki
|
|
58
|
+
- Connect wiki graph → `/manage-wiki connect --fix`
|
|
59
59
|
- Triage issues → `/manage-issue list --source harvest`
|
|
60
60
|
- View specs → `/spec-load --role implement`
|
|
61
61
|
- Full retrospective → `/quality-retrospective`
|
|
@@ -12,9 +12,11 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
<purpose>
|
|
14
14
|
Unified memory management across two stores:
|
|
15
|
-
1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and
|
|
15
|
+
1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts, tips, insights, and all reusable knowledge, created by `manage-knowhow-capture`
|
|
16
16
|
2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
|
|
17
17
|
|
|
18
|
+
Also scans `.workflow/specs/learnings.md` for legacy insight entries (backward compat with former `manage-learn`).
|
|
19
|
+
|
|
18
20
|
Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
|
|
19
21
|
</purpose>
|
|
20
22
|
|
|
@@ -12,7 +12,7 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
<purpose>
|
|
14
14
|
Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
|
|
15
|
-
Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow
|
|
15
|
+
Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro search --type knowhow`.
|
|
16
16
|
</purpose>
|
|
17
17
|
|
|
18
18
|
<required_reading>
|
|
@@ -22,7 +22,7 @@ Auto-indexed by WikiIndexer (type=knowhow), searchable via `maestro knowhow sear
|
|
|
22
22
|
<context>
|
|
23
23
|
$ARGUMENTS — type token + description + optional flags.
|
|
24
24
|
|
|
25
|
-
**Flags**: `--lang <lang>`, `--source <url>`, `--tag tag1,tag2`, `--title <title>`, `--asset-type <type>`, `--code-paths <paths>`, `--category <cat>`
|
|
25
|
+
**Flags**: `--lang <lang>`, `--source <url>`, `--tag tag1,tag2`, `--title <title>`, `--description <desc>`, `--asset-type <type>`, `--code-paths <paths>`, `--category <cat>`
|
|
26
26
|
|
|
27
27
|
**Type routing** (first token match):
|
|
28
28
|
|
|
@@ -37,15 +37,18 @@ $ARGUMENTS — type token + description + optional flags.
|
|
|
37
37
|
| `asset`/`ast`/`资产`/`契约` | asset | AST- | assetType, codePaths, category |
|
|
38
38
|
| `blueprint`/`blp`/`蓝图` | blueprint | BLP- | codePaths, category |
|
|
39
39
|
| `document`/`doc`/`文档` | document | DOC- | (general fallback) |
|
|
40
|
+
| `insight`/`ins`/`洞察`/`经验` | insight | INS- | content, tags, phase (replaces former manage-learn) |
|
|
40
41
|
| Short text + `--tag` | tip | TIP- | — |
|
|
41
|
-
| No args | — | — | ask_question (
|
|
42
|
+
| No args | — | — | ask_question (10 options) |
|
|
42
43
|
|
|
43
|
-
**Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{
|
|
44
|
+
**Output**: `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{slug}.md` with YAML frontmatter (title, description, type, category, created, tags, source, lang, status)
|
|
44
45
|
</context>
|
|
45
46
|
|
|
46
47
|
<execution>
|
|
47
48
|
Follow '~/.maestro/workflows/knowhow.md' completely.
|
|
48
49
|
|
|
50
|
+
**Description rule**: Every entry MUST have a `description` field in frontmatter — a one-line summary (under 120 chars) for search results. WikiIndexer uses priority chain: `description > content[:240]`. Use `--description` flag value if provided; otherwise auto-generate from content.
|
|
51
|
+
|
|
49
52
|
**Tags language rule**: Tags must match content language. Chinese content → Chinese tags (如 `认证,令牌,刷新`). English content → English tags. Mixed → bilingual.
|
|
50
53
|
|
|
51
54
|
**Type-specific content rules**:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: manage-wiki
|
|
3
3
|
description: Manage wiki graph — health, cleanup, search, stats
|
|
4
|
-
argument-hint: <subcommand: health|search|cleanup|stats> [query] [--fix] [--dry-run]
|
|
4
|
+
argument-hint: <subcommand: health|search|cleanup|stats|connect|digest> [query] [--fix] [--dry-run]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- grep_search
|
|
@@ -11,9 +11,7 @@ allowed-tools:
|
|
|
11
11
|
- write_to_file
|
|
12
12
|
---
|
|
13
13
|
<purpose>
|
|
14
|
-
Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup,
|
|
15
|
-
|
|
16
|
-
Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
|
|
14
|
+
Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, graph statistics, link discovery, and knowledge synthesis — the single entry point for all wiki graph operations.
|
|
17
15
|
</purpose>
|
|
18
16
|
|
|
19
17
|
<required_reading>
|
|
@@ -30,16 +28,26 @@ $ARGUMENTS — subcommand and optional flags.
|
|
|
30
28
|
| `search <query>` | Interactive BM25 search with follow-up actions |
|
|
31
29
|
| `cleanup` | Find and resolve orphans, broken links, stale entries |
|
|
32
30
|
| `stats` | Graph statistics — type distribution, tag frequency, growth trends |
|
|
31
|
+
| `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
|
|
32
|
+
| `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
|
|
33
33
|
| No args | Same as `health` |
|
|
34
34
|
|
|
35
35
|
**Flags:**
|
|
36
36
|
- `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
|
|
37
|
-
- `--fix` — Auto-fix issues found during cleanup (remove broken links,
|
|
37
|
+
- `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
|
|
38
38
|
- `--json` — Output in JSON format
|
|
39
|
+
- `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
|
|
40
|
+
- `--max N` — (connect) Maximum number of suggestions
|
|
41
|
+
- `--format brief|full` — (digest) Output format
|
|
42
|
+
- `--recent N` — (digest) Scope to N most recent entries
|
|
43
|
+
- `--create-issues` — (digest) Create issues for identified knowledge gaps
|
|
39
44
|
</context>
|
|
40
45
|
|
|
41
46
|
<execution>
|
|
42
|
-
|
|
47
|
+
**Subcommand routing:**
|
|
48
|
+
- `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
|
|
49
|
+
- `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
|
|
50
|
+
- `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
|
|
43
51
|
</execution>
|
|
44
52
|
|
|
45
53
|
<error_codes>
|
|
@@ -53,9 +61,10 @@ Follow '~/.maestro/workflows/wiki-manage.md' completely.
|
|
|
53
61
|
</error_codes>
|
|
54
62
|
|
|
55
63
|
<success_criteria>
|
|
56
|
-
- [ ] Subcommand parsed (health/search/cleanup/stats)
|
|
64
|
+
- [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
|
|
57
65
|
- [ ] Wiki data loaded via `maestro wiki` CLI
|
|
58
66
|
- [ ] Results displayed in formatted output
|
|
59
|
-
- [ ] If cleanup --fix: issues resolved and delta reported
|
|
67
|
+
- [ ] If cleanup/connect --fix: issues resolved and delta reported
|
|
68
|
+
- [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
|
|
60
69
|
- [ ] Next-step suggestions provided
|
|
61
70
|
</success_criteria>
|
|
@@ -54,7 +54,7 @@ Flags, artifact context resolution, and output formats defined in workflow auto-
|
|
|
54
54
|
1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
|
|
55
55
|
2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
|
|
56
56
|
3. **Role Knowledge**:
|
|
57
|
-
- Browse: `maestro
|
|
57
|
+
- Browse: `maestro search --category test`
|
|
58
58
|
- Load task-relevant entries: `maestro wiki load <id1> [id2...]`
|
|
59
59
|
4. All are optional — proceed without if unavailable.
|
|
60
60
|
</context>
|
|
@@ -90,13 +90,13 @@ Append to state.json.artifacts[]:
|
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
**Next-step routing on completion:**
|
|
93
|
-
- Converged (>=95%) → `/
|
|
93
|
+
- Converged (>=95%) → `/quality-review {phase}`
|
|
94
94
|
- All requirements verified (spec source) → `/maestro-milestone-audit`
|
|
95
95
|
- Bugs discovered → `/quality-debug --from-uat {phase}`
|
|
96
96
|
- Max iter, >80% → `/quality-test {phase}` for manual UAT
|
|
97
97
|
- Max iter, <80% → `/quality-debug {phase}`
|
|
98
98
|
- Coverage still low → `/quality-auto-test {phase} --layer {missing}`
|
|
99
|
-
- Re-run all pass → `/
|
|
99
|
+
- Re-run all pass → `/quality-review {phase}`
|
|
100
100
|
- Single pass, all pass → `/quality-test {phase}`
|
|
101
101
|
</execution>
|
|
102
102
|
|