maestro-flow 0.3.1 → 0.3.3
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/.claude/CLAUDE.md +2 -2
- package/.claude/agents/cli-explore-agent.md +1 -1
- package/.claude/agents/team-worker.md +237 -237
- package/.claude/commands/maestro-coordinate.md +65 -65
- package/.claude/commands/maestro-link-coordinate.md +71 -71
- package/.claude/commands/maestro-overlay.md +178 -122
- package/.claude/commands/manage-issue-execute.md +73 -73
- package/.claude/skills/team-coordinate/SKILL.md +266 -266
- package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
- package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +94 -94
- package/.claude/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -62
- package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +85 -85
- package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +95 -95
- package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
- package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
- package/.claude/skills/team-review/SKILL.md +147 -147
- package/.claude/skills/team-review/roles/reviewer/role.md +68 -68
- package/.claude/skills/team-review/roles/scanner/role.md +79 -79
- package/.claude/skills/team-tech-debt/SKILL.md +128 -128
- package/.claude/skills/team-tech-debt/roles/executor/role.md +76 -76
- package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
- package/.claude/skills/team-tech-debt/roles/validator/role.md +78 -78
- package/.claude/skills/team-testing/SKILL.md +143 -143
- package/.claude/skills/team-testing/roles/executor/role.md +99 -99
- package/.claude/skills/team-testing/roles/generator/role.md +98 -98
- package/.codex/skills/maestro-coordinate/SKILL.md +4 -5
- package/.codex/skills/manage-issue-analyze/SKILL.md +3 -3
- package/.codex/skills/manage-issue-execute/SKILL.md +4 -4
- package/.codex/skills/manage-issue-plan/SKILL.md +2 -2
- package/.codex/skills/team-coordinate/SKILL.md +7 -7
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
- package/.codex/skills/team-review/SKILL.md +2 -2
- package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
- package/.codex/skills/team-review/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/SKILL.md +2 -2
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
- package/.codex/skills/team-testing/SKILL.md +2 -2
- package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-testing/roles/executor/role.md +1 -1
- package/.codex/skills/team-testing/roles/generator/role.md +1 -1
- package/README.md +31 -2
- package/README.zh-CN.md +23 -1
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +6 -15
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +77 -1
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +15 -0
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +29 -2
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +15 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +67 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install-ui/BackupConfig.d.ts +6 -4
- package/dist/src/commands/install-ui/BackupConfig.d.ts.map +1 -1
- package/dist/src/commands/install-ui/BackupConfig.js +39 -12
- package/dist/src/commands/install-ui/BackupConfig.js.map +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.d.ts.map +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.js +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.js.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -0
- package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.js +5 -1
- package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.js +30 -5
- package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.d.ts +1 -1
- package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.js +31 -6
- package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/commands/install-ui/InstallHub.d.ts +5 -0
- package/dist/src/commands/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallHub.js +24 -0
- package/dist/src/commands/install-ui/InstallHub.js.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.js +1 -1
- package/dist/src/commands/install-ui/InstallResult.js.map +1 -1
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts +9 -0
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -0
- package/dist/src/commands/install-ui/StatuslineConfig.js +13 -0
- package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -0
- package/dist/src/commands/install-ui/index.d.ts +1 -1
- package/dist/src/commands/install-ui/index.d.ts.map +1 -1
- package/dist/src/commands/install-ui/types.d.ts +6 -0
- package/dist/src/commands/install-ui/types.d.ts.map +1 -1
- package/dist/src/commands/install-ui/types.js +3 -0
- package/dist/src/commands/install-ui/types.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +6 -1
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/launcher.js +1 -1
- package/dist/src/commands/launcher.js.map +1 -1
- package/dist/src/commands/overlay-ui/OverlayList.d.ts +35 -0
- package/dist/src/commands/overlay-ui/OverlayList.d.ts.map +1 -0
- package/dist/src/commands/overlay-ui/OverlayList.js +143 -0
- package/dist/src/commands/overlay-ui/OverlayList.js.map +1 -0
- package/dist/src/commands/overlay-ui/index.d.ts +2 -0
- package/dist/src/commands/overlay-ui/index.d.ts.map +1 -0
- package/dist/src/commands/overlay-ui/index.js +188 -0
- package/dist/src/commands/overlay-ui/index.js.map +1 -0
- package/dist/src/commands/overlay.d.ts.map +1 -1
- package/dist/src/commands/overlay.js +124 -60
- package/dist/src/commands/overlay.js.map +1 -1
- package/dist/src/commands/team.d.ts +10 -0
- package/dist/src/commands/team.d.ts.map +1 -1
- package/dist/src/commands/team.js +436 -42
- package/dist/src/commands/team.js.map +1 -1
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js +58 -0
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts +36 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +109 -1
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/hooks/delegate-monitor.js +1 -1
- package/dist/src/hooks/delegate-monitor.js.map +1 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.d.ts.map +1 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.js +17 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
- package/dist/src/hooks/spec-injector.d.ts +2 -1
- package/dist/src/hooks/spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/spec-injector.js +19 -2
- package/dist/src/hooks/spec-injector.js.map +1 -1
- package/dist/src/hooks/team-monitor.d.ts.map +1 -1
- package/dist/src/hooks/team-monitor.js +17 -0
- package/dist/src/hooks/team-monitor.js.map +1 -1
- package/dist/src/i18n/locales/en.d.ts.map +1 -1
- package/dist/src/i18n/locales/en.js +25 -1
- 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 +25 -1
- package/dist/src/i18n/locales/zh.js.map +1 -1
- package/dist/src/i18n/types.d.ts +22 -0
- package/dist/src/i18n/types.d.ts.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.js +2 -7
- package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
- package/dist/src/tools/namespace-guard.d.ts +37 -0
- package/dist/src/tools/namespace-guard.d.ts.map +1 -0
- package/dist/src/tools/namespace-guard.js +126 -0
- package/dist/src/tools/namespace-guard.js.map +1 -0
- package/dist/src/tools/spec-loader.d.ts +17 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +71 -13
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/team-members.d.ts +16 -0
- package/dist/src/tools/team-members.d.ts.map +1 -1
- package/dist/src/tools/team-members.js +31 -0
- package/dist/src/tools/team-members.js.map +1 -1
- package/package.json +1 -1
- package/workflows/delegate-usage.md +330 -0
- package/dist/agents/cli-agent-runner.d.ts +0 -131
- package/dist/agents/cli-agent-runner.d.ts.map +0 -1
- package/dist/agents/cli-agent-runner.js +0 -688
- package/dist/agents/cli-agent-runner.js.map +0 -1
- package/dist/agents/cli-history-store.d.ts +0 -63
- package/dist/agents/cli-history-store.d.ts.map +0 -1
- package/dist/agents/cli-history-store.js +0 -242
- package/dist/agents/cli-history-store.js.map +0 -1
- package/dist/agents/dashboard-bridge.d.ts +0 -39
- package/dist/agents/dashboard-bridge.d.ts.map +0 -1
- package/dist/agents/dashboard-bridge.js +0 -76
- package/dist/agents/dashboard-bridge.js.map +0 -1
- package/dist/agents/parallel-cli-runner.d.ts +0 -46
- package/dist/agents/parallel-cli-runner.d.ts.map +0 -1
- package/dist/agents/parallel-cli-runner.js +0 -277
- package/dist/agents/parallel-cli-runner.js.map +0 -1
- package/dist/agents/terminal-adapter.d.ts +0 -94
- package/dist/agents/terminal-adapter.d.ts.map +0 -1
- package/dist/agents/terminal-adapter.js +0 -132
- package/dist/agents/terminal-adapter.js.map +0 -1
- package/dist/agents/terminal-backend.d.ts +0 -53
- package/dist/agents/terminal-backend.d.ts.map +0 -1
- package/dist/agents/terminal-backend.js +0 -286
- package/dist/agents/terminal-backend.js.map +0 -1
- package/dist/async/delegate-broker-client.d.ts +0 -22
- package/dist/async/delegate-broker-client.d.ts.map +0 -1
- package/dist/async/delegate-broker-client.js +0 -47
- package/dist/async/delegate-broker-client.js.map +0 -1
- package/dist/async/delegate-broker.d.ts +0 -180
- package/dist/async/delegate-broker.d.ts.map +0 -1
- package/dist/async/delegate-broker.js +0 -1040
- package/dist/async/delegate-broker.js.map +0 -1
- package/dist/async/delegate-control.d.ts +0 -37
- package/dist/async/delegate-control.d.ts.map +0 -1
- package/dist/async/delegate-control.js +0 -155
- package/dist/async/delegate-control.js.map +0 -1
- package/dist/async/index.d.ts +0 -3
- package/dist/async/index.d.ts.map +0 -1
- package/dist/async/index.js +0 -3
- package/dist/async/index.js.map +0 -1
- package/dist/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -40
- package/dist/cli.js.map +0 -1
- package/dist/commands/cli.d.ts +0 -3
- package/dist/commands/cli.d.ts.map +0 -1
- package/dist/commands/cli.js +0 -262
- package/dist/commands/cli.js.map +0 -1
- package/dist/commands/coordinate.d.ts +0 -3
- package/dist/commands/coordinate.d.ts.map +0 -1
- package/dist/commands/coordinate.js +0 -275
- package/dist/commands/coordinate.js.map +0 -1
- package/dist/commands/delegate.d.ts +0 -37
- package/dist/commands/delegate.d.ts.map +0 -1
- package/dist/commands/delegate.js +0 -470
- package/dist/commands/delegate.js.map +0 -1
- package/dist/commands/ext.d.ts +0 -3
- package/dist/commands/ext.d.ts.map +0 -1
- package/dist/commands/ext.js +0 -28
- package/dist/commands/ext.js.map +0 -1
- package/dist/commands/hooks.d.ts +0 -3
- package/dist/commands/hooks.d.ts.map +0 -1
- package/dist/commands/hooks.js +0 -126
- package/dist/commands/hooks.js.map +0 -1
- package/dist/commands/install.d.ts +0 -3
- package/dist/commands/install.d.ts.map +0 -1
- package/dist/commands/install.js +0 -621
- package/dist/commands/install.js.map +0 -1
- package/dist/commands/launcher.d.ts +0 -3
- package/dist/commands/launcher.d.ts.map +0 -1
- package/dist/commands/launcher.js +0 -635
- package/dist/commands/launcher.js.map +0 -1
- package/dist/commands/link-coordinate.d.ts +0 -3
- package/dist/commands/link-coordinate.d.ts.map +0 -1
- package/dist/commands/link-coordinate.js +0 -225
- package/dist/commands/link-coordinate.js.map +0 -1
- package/dist/commands/msg.d.ts +0 -3
- package/dist/commands/msg.d.ts.map +0 -1
- package/dist/commands/msg.js +0 -110
- package/dist/commands/msg.js.map +0 -1
- package/dist/commands/overlay.d.ts +0 -3
- package/dist/commands/overlay.d.ts.map +0 -1
- package/dist/commands/overlay.js +0 -243
- package/dist/commands/overlay.js.map +0 -1
- package/dist/commands/run.d.ts +0 -3
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -15
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -3
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -16
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/spec.d.ts +0 -8
- package/dist/commands/spec.d.ts.map +0 -1
- package/dist/commands/spec.js +0 -147
- package/dist/commands/spec.js.map +0 -1
- package/dist/commands/stop.d.ts +0 -3
- package/dist/commands/stop.d.ts.map +0 -1
- package/dist/commands/stop.js +0 -218
- package/dist/commands/stop.js.map +0 -1
- package/dist/commands/tool.d.ts +0 -3
- package/dist/commands/tool.d.ts.map +0 -1
- package/dist/commands/tool.js +0 -29
- package/dist/commands/tool.js.map +0 -1
- package/dist/commands/uninstall.d.ts +0 -3
- package/dist/commands/uninstall.d.ts.map +0 -1
- package/dist/commands/uninstall.js +0 -77
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/commands/view.d.ts +0 -3
- package/dist/commands/view.d.ts.map +0 -1
- package/dist/commands/view.js +0 -337
- package/dist/commands/view.js.map +0 -1
- package/dist/config/cli-tools-config.d.ts +0 -26
- package/dist/config/cli-tools-config.d.ts.map +0 -1
- package/dist/config/cli-tools-config.js +0 -49
- package/dist/config/cli-tools-config.js.map +0 -1
- package/dist/config/cli-tools-config.test.d.ts +0 -2
- package/dist/config/cli-tools-config.test.d.ts.map +0 -1
- package/dist/config/cli-tools-config.test.js +0 -59
- package/dist/config/cli-tools-config.test.js.map +0 -1
- package/dist/config/index.d.ts +0 -4
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -27
- package/dist/config/index.js.map +0 -1
- package/dist/config/paths.d.ts +0 -15
- package/dist/config/paths.d.ts.map +0 -1
- package/dist/config/paths.js +0 -27
- package/dist/config/paths.js.map +0 -1
- package/dist/config/template-discovery.d.ts +0 -32
- package/dist/config/template-discovery.d.ts.map +0 -1
- package/dist/config/template-discovery.js +0 -128
- package/dist/config/template-discovery.js.map +0 -1
- package/dist/coordinator/cli-executor.d.ts +0 -22
- package/dist/coordinator/cli-executor.d.ts.map +0 -1
- package/dist/coordinator/cli-executor.js +0 -49
- package/dist/coordinator/cli-executor.js.map +0 -1
- package/dist/coordinator/expr-evaluator.d.ts +0 -11
- package/dist/coordinator/expr-evaluator.d.ts.map +0 -1
- package/dist/coordinator/expr-evaluator.js +0 -351
- package/dist/coordinator/expr-evaluator.js.map +0 -1
- package/dist/coordinator/graph-loader.d.ts +0 -16
- package/dist/coordinator/graph-loader.d.ts.map +0 -1
- package/dist/coordinator/graph-loader.js +0 -190
- package/dist/coordinator/graph-loader.js.map +0 -1
- package/dist/coordinator/graph-types.d.ts +0 -304
- package/dist/coordinator/graph-types.d.ts.map +0 -1
- package/dist/coordinator/graph-types.js +0 -6
- package/dist/coordinator/graph-types.js.map +0 -1
- package/dist/coordinator/graph-walker.d.ts +0 -51
- package/dist/coordinator/graph-walker.d.ts.map +0 -1
- package/dist/coordinator/graph-walker.js +0 -666
- package/dist/coordinator/graph-walker.js.map +0 -1
- package/dist/coordinator/index.d.ts +0 -13
- package/dist/coordinator/index.d.ts.map +0 -1
- package/dist/coordinator/index.js +0 -14
- package/dist/coordinator/index.js.map +0 -1
- package/dist/coordinator/intent-router.d.ts +0 -11
- package/dist/coordinator/intent-router.d.ts.map +0 -1
- package/dist/coordinator/intent-router.js +0 -65
- package/dist/coordinator/intent-router.js.map +0 -1
- package/dist/coordinator/link-session.d.ts +0 -29
- package/dist/coordinator/link-session.d.ts.map +0 -1
- package/dist/coordinator/link-session.js +0 -192
- package/dist/coordinator/link-session.js.map +0 -1
- package/dist/coordinator/link-walker.d.ts +0 -56
- package/dist/coordinator/link-walker.d.ts.map +0 -1
- package/dist/coordinator/link-walker.js +0 -548
- package/dist/coordinator/link-walker.js.map +0 -1
- package/dist/coordinator/output-parser.d.ts +0 -5
- package/dist/coordinator/output-parser.d.ts.map +0 -1
- package/dist/coordinator/output-parser.js +0 -114
- package/dist/coordinator/output-parser.js.map +0 -1
- package/dist/coordinator/parallel-executor.d.ts +0 -24
- package/dist/coordinator/parallel-executor.d.ts.map +0 -1
- package/dist/coordinator/parallel-executor.js +0 -43
- package/dist/coordinator/parallel-executor.js.map +0 -1
- package/dist/coordinator/prompt-assembler.d.ts +0 -15
- package/dist/coordinator/prompt-assembler.d.ts.map +0 -1
- package/dist/coordinator/prompt-assembler.js +0 -228
- package/dist/coordinator/prompt-assembler.js.map +0 -1
- package/dist/coordinator/step-analyzer.d.ts +0 -8
- package/dist/coordinator/step-analyzer.d.ts.map +0 -1
- package/dist/coordinator/step-analyzer.js +0 -82
- package/dist/coordinator/step-analyzer.js.map +0 -1
- package/dist/core/extension-loader.d.ts +0 -11
- package/dist/core/extension-loader.d.ts.map +0 -1
- package/dist/core/extension-loader.js +0 -54
- package/dist/core/extension-loader.js.map +0 -1
- package/dist/core/manifest.d.ts +0 -24
- package/dist/core/manifest.d.ts.map +0 -1
- package/dist/core/manifest.js +0 -139
- package/dist/core/manifest.js.map +0 -1
- package/dist/core/mcp-tool-registry.integration.test.d.ts +0 -2
- package/dist/core/mcp-tool-registry.integration.test.d.ts.map +0 -1
- package/dist/core/mcp-tool-registry.integration.test.js +0 -220
- package/dist/core/mcp-tool-registry.integration.test.js.map +0 -1
- package/dist/core/overlay/applier.d.ts +0 -73
- package/dist/core/overlay/applier.d.ts.map +0 -1
- package/dist/core/overlay/applier.js +0 -248
- package/dist/core/overlay/applier.js.map +0 -1
- package/dist/core/overlay/loader.d.ts +0 -26
- package/dist/core/overlay/loader.d.ts.map +0 -1
- package/dist/core/overlay/loader.js +0 -199
- package/dist/core/overlay/loader.js.map +0 -1
- package/dist/core/overlay/patcher.d.ts +0 -26
- package/dist/core/overlay/patcher.d.ts.map +0 -1
- package/dist/core/overlay/patcher.js +0 -212
- package/dist/core/overlay/patcher.js.map +0 -1
- package/dist/core/overlay/section-parser.d.ts +0 -25
- package/dist/core/overlay/section-parser.d.ts.map +0 -1
- package/dist/core/overlay/section-parser.js +0 -99
- package/dist/core/overlay/section-parser.js.map +0 -1
- package/dist/core/overlay/types.d.ts +0 -51
- package/dist/core/overlay/types.d.ts.map +0 -1
- package/dist/core/overlay/types.js +0 -15
- package/dist/core/overlay/types.js.map +0 -1
- package/dist/core/tool-registry.d.ts +0 -10
- package/dist/core/tool-registry.d.ts.map +0 -1
- package/dist/core/tool-registry.js +0 -29
- package/dist/core/tool-registry.js.map +0 -1
- package/dist/core/tool-registry.test.d.ts +0 -2
- package/dist/core/tool-registry.test.d.ts.map +0 -1
- package/dist/core/tool-registry.test.js +0 -78
- package/dist/core/tool-registry.test.js.map +0 -1
- package/dist/db/connection-pool.d.ts +0 -21
- package/dist/db/connection-pool.d.ts.map +0 -1
- package/dist/db/connection-pool.js +0 -53
- package/dist/db/connection-pool.js.map +0 -1
- package/dist/db/index.d.ts +0 -6
- package/dist/db/index.d.ts.map +0 -1
- package/dist/db/index.js +0 -9
- package/dist/db/index.js.map +0 -1
- package/dist/db/schema/core/index.d.ts +0 -5
- package/dist/db/schema/core/index.d.ts.map +0 -1
- package/dist/db/schema/core/index.js +0 -5
- package/dist/db/schema/core/index.js.map +0 -1
- package/dist/db/schema/core/organizations.d.ts +0 -244
- package/dist/db/schema/core/organizations.d.ts.map +0 -1
- package/dist/db/schema/core/organizations.js +0 -44
- package/dist/db/schema/core/organizations.js.map +0 -1
- package/dist/db/schema/core/permissions.d.ts +0 -158
- package/dist/db/schema/core/permissions.d.ts.map +0 -1
- package/dist/db/schema/core/permissions.js +0 -62
- package/dist/db/schema/core/permissions.js.map +0 -1
- package/dist/db/schema/core/refresh-tokens.d.ts +0 -147
- package/dist/db/schema/core/refresh-tokens.d.ts.map +0 -1
- package/dist/db/schema/core/refresh-tokens.js +0 -22
- package/dist/db/schema/core/refresh-tokens.js.map +0 -1
- package/dist/db/schema/core/users.d.ts +0 -178
- package/dist/db/schema/core/users.d.ts.map +0 -1
- package/dist/db/schema/core/users.js +0 -14
- package/dist/db/schema/core/users.js.map +0 -1
- package/dist/db/tenant-migrator.d.ts +0 -11
- package/dist/db/tenant-migrator.d.ts.map +0 -1
- package/dist/db/tenant-migrator.js +0 -74
- package/dist/db/tenant-migrator.js.map +0 -1
- package/dist/db/tenant-schema.d.ts +0 -290
- package/dist/db/tenant-schema.d.ts.map +0 -1
- package/dist/db/tenant-schema.js +0 -32
- package/dist/db/tenant-schema.js.map +0 -1
- package/dist/hooks/constants.d.ts +0 -40
- package/dist/hooks/constants.d.ts.map +0 -1
- package/dist/hooks/constants.js +0 -53
- package/dist/hooks/constants.js.map +0 -1
- package/dist/hooks/context-monitor.d.ts +0 -33
- package/dist/hooks/context-monitor.d.ts.map +0 -1
- package/dist/hooks/context-monitor.js +0 -117
- package/dist/hooks/context-monitor.js.map +0 -1
- package/dist/hooks/delegate-monitor.d.ts +0 -24
- package/dist/hooks/delegate-monitor.d.ts.map +0 -1
- package/dist/hooks/delegate-monitor.js +0 -76
- package/dist/hooks/delegate-monitor.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -4
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/statusline.d.ts +0 -29
- package/dist/hooks/statusline.d.ts.map +0 -1
- package/dist/hooks/statusline.js +0 -134
- package/dist/hooks/statusline.js.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/mcp/delegate-channel-relay.d.ts +0 -51
- package/dist/mcp/delegate-channel-relay.d.ts.map +0 -1
- package/dist/mcp/delegate-channel-relay.js +0 -307
- package/dist/mcp/delegate-channel-relay.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -6
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -64
- package/dist/mcp/server.js.map +0 -1
- package/dist/middleware/auth.d.ts +0 -13
- package/dist/middleware/auth.d.ts.map +0 -1
- package/dist/middleware/auth.js +0 -27
- package/dist/middleware/auth.js.map +0 -1
- package/dist/middleware/permission.d.ts +0 -9
- package/dist/middleware/permission.d.ts.map +0 -1
- package/dist/middleware/permission.js +0 -19
- package/dist/middleware/permission.js.map +0 -1
- package/dist/middleware/rate-limit.d.ts +0 -9
- package/dist/middleware/rate-limit.d.ts.map +0 -1
- package/dist/middleware/rate-limit.js +0 -40
- package/dist/middleware/rate-limit.js.map +0 -1
- package/dist/middleware/tenant.d.ts +0 -17
- package/dist/middleware/tenant.d.ts.map +0 -1
- package/dist/middleware/tenant.js +0 -57
- package/dist/middleware/tenant.js.map +0 -1
- package/dist/middleware/validation.d.ts +0 -40
- package/dist/middleware/validation.d.ts.map +0 -1
- package/dist/middleware/validation.js +0 -51
- package/dist/middleware/validation.js.map +0 -1
- package/dist/routes/auth.d.ts +0 -3
- package/dist/routes/auth.d.ts.map +0 -1
- package/dist/routes/auth.js +0 -77
- package/dist/routes/auth.js.map +0 -1
- package/dist/routes/members.d.ts +0 -4
- package/dist/routes/members.d.ts.map +0 -1
- package/dist/routes/members.js +0 -114
- package/dist/routes/members.js.map +0 -1
- package/dist/routes/organizations.d.ts +0 -5
- package/dist/routes/organizations.d.ts.map +0 -1
- package/dist/routes/organizations.js +0 -97
- package/dist/routes/organizations.js.map +0 -1
- package/dist/services/auth.service.d.ts +0 -24
- package/dist/services/auth.service.d.ts.map +0 -1
- package/dist/services/auth.service.js +0 -70
- package/dist/services/auth.service.js.map +0 -1
- package/dist/services/password.service.d.ts +0 -3
- package/dist/services/password.service.d.ts.map +0 -1
- package/dist/services/password.service.js +0 -18
- package/dist/services/password.service.js.map +0 -1
- package/dist/services/rbac.service.d.ts +0 -7
- package/dist/services/rbac.service.d.ts.map +0 -1
- package/dist/services/rbac.service.js +0 -36
- package/dist/services/rbac.service.js.map +0 -1
- package/dist/services/token.service.d.ts +0 -18
- package/dist/services/token.service.d.ts.map +0 -1
- package/dist/services/token.service.js +0 -86
- package/dist/services/token.service.js.map +0 -1
- package/dist/tools/core-memory.d.ts +0 -12
- package/dist/tools/core-memory.d.ts.map +0 -1
- package/dist/tools/core-memory.js +0 -276
- package/dist/tools/core-memory.js.map +0 -1
- package/dist/tools/edit-file.d.ts +0 -25
- package/dist/tools/edit-file.d.ts.map +0 -1
- package/dist/tools/edit-file.js +0 -462
- package/dist/tools/edit-file.js.map +0 -1
- package/dist/tools/index.d.ts +0 -8
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -536
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/read-file.d.ts +0 -13
- package/dist/tools/read-file.d.ts.map +0 -1
- package/dist/tools/read-file.js +0 -91
- package/dist/tools/read-file.js.map +0 -1
- package/dist/tools/read-many-files.d.ts +0 -15
- package/dist/tools/read-many-files.d.ts.map +0 -1
- package/dist/tools/read-many-files.js +0 -187
- package/dist/tools/read-many-files.js.map +0 -1
- package/dist/tools/spec-index-builder.d.ts +0 -58
- package/dist/tools/spec-index-builder.d.ts.map +0 -1
- package/dist/tools/spec-index-builder.js +0 -211
- package/dist/tools/spec-index-builder.js.map +0 -1
- package/dist/tools/spec-init.d.ts +0 -17
- package/dist/tools/spec-init.d.ts.map +0 -1
- package/dist/tools/spec-init.js +0 -215
- package/dist/tools/spec-init.js.map +0 -1
- package/dist/tools/spec-keyword-extractor.d.ts +0 -24
- package/dist/tools/spec-keyword-extractor.d.ts.map +0 -1
- package/dist/tools/spec-keyword-extractor.js +0 -84
- package/dist/tools/spec-keyword-extractor.js.map +0 -1
- package/dist/tools/spec-keyword-extractor.test.d.ts +0 -2
- package/dist/tools/spec-keyword-extractor.test.d.ts.map +0 -1
- package/dist/tools/spec-keyword-extractor.test.js +0 -99
- package/dist/tools/spec-keyword-extractor.test.js.map +0 -1
- package/dist/tools/spec-loader.d.ts +0 -15
- package/dist/tools/spec-loader.d.ts.map +0 -1
- package/dist/tools/spec-loader.js +0 -93
- package/dist/tools/spec-loader.js.map +0 -1
- package/dist/tools/team-msg.d.ts +0 -52
- package/dist/tools/team-msg.d.ts.map +0 -1
- package/dist/tools/team-msg.js +0 -449
- package/dist/tools/team-msg.js.map +0 -1
- package/dist/tools/write-file.d.ts +0 -19
- package/dist/tools/write-file.d.ts.map +0 -1
- package/dist/tools/write-file.js +0 -165
- package/dist/tools/write-file.js.map +0 -1
- package/dist/types/index.d.ts +0 -47
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/tool-schema.d.ts +0 -37
- package/dist/types/tool-schema.d.ts.map +0 -1
- package/dist/types/tool-schema.js +0 -24
- package/dist/types/tool-schema.js.map +0 -1
- package/dist/utils/file-reader.d.ts +0 -74
- package/dist/utils/file-reader.d.ts.map +0 -1
- package/dist/utils/file-reader.js +0 -217
- package/dist/utils/file-reader.js.map +0 -1
- package/dist/utils/path-validator.d.ts +0 -52
- package/dist/utils/path-validator.d.ts.map +0 -1
- package/dist/utils/path-validator.js +0 -151
- package/dist/utils/path-validator.js.map +0 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: generator
|
|
3
|
-
prefix: TESTGEN
|
|
4
|
-
inner_loop: true
|
|
5
|
-
message_types:
|
|
6
|
-
success: tests_generated
|
|
7
|
-
revision: tests_revised
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Test Generator
|
|
12
|
-
|
|
13
|
-
Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
|
|
14
|
-
|
|
15
|
-
## Phase 2: Context Loading
|
|
16
|
-
|
|
17
|
-
| Input | Source | Required |
|
|
18
|
-
|-------|--------|----------|
|
|
19
|
-
| Task description | From task subject/description | Yes |
|
|
20
|
-
| Session path | Extracted from task description | Yes |
|
|
21
|
-
| Test strategy | <session>/strategy/test-strategy.md | Yes |
|
|
22
|
-
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
23
|
-
|
|
24
|
-
1. Extract session path and layer from task description
|
|
25
|
-
2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
|
|
26
|
-
3. Read test strategy:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Read("<session>/strategy/test-strategy.md")
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
3. Read source files to test (from strategy priority_files, limit 20)
|
|
33
|
-
4. Read .msg/meta.json for framework and scope context
|
|
34
|
-
|
|
35
|
-
5. Detect revision mode:
|
|
36
|
-
|
|
37
|
-
| Condition | Mode |
|
|
38
|
-
|-----------|------|
|
|
39
|
-
| Task subject contains "fix" or "revised" | Revision -- load previous failures |
|
|
40
|
-
| Otherwise | Fresh generation |
|
|
41
|
-
|
|
42
|
-
For revision mode:
|
|
43
|
-
- Read latest result file for failure details
|
|
44
|
-
- Read effective test patterns from .msg/meta.json
|
|
45
|
-
|
|
46
|
-
6. Read wisdom files if available
|
|
47
|
-
|
|
48
|
-
## Phase 3: Test Generation
|
|
49
|
-
|
|
50
|
-
**Strategy selection by complexity**:
|
|
51
|
-
|
|
52
|
-
| File Count | Strategy |
|
|
53
|
-
|------------|----------|
|
|
54
|
-
| <= 3 files | Direct: inline Write/Edit |
|
|
55
|
-
| 3-5 files | Single code-developer agent |
|
|
56
|
-
| > 5 files | Batch: group by module, one agent per batch |
|
|
57
|
-
|
|
58
|
-
**Direct generation** (per source file):
|
|
59
|
-
1. Generate test path: `<session>/tests/<layer>/<test-file>`
|
|
60
|
-
2. Generate test code: happy path, edge cases, error handling
|
|
61
|
-
3. Write test file
|
|
62
|
-
|
|
63
|
-
**CLI delegation** (medium/high complexity):
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
Bash({
|
|
67
|
-
command: `maestro
|
|
68
|
-
TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
|
|
69
|
-
MODE: write
|
|
70
|
-
CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
|
|
71
|
-
<if-revision: Previous failures: <failure-details>
|
|
72
|
-
Effective patterns: <patterns-from-meta>>
|
|
73
|
-
EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
|
|
74
|
-
CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
|
|
75
|
-
Source files to test:
|
|
76
|
-
<file-list-with-content>" --tool gemini --mode write --cd <session>`,
|
|
77
|
-
run_in_background: false
|
|
78
|
-
})
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Output verification**:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
Glob("<session>/tests/<layer>/**/*")
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## Phase 4: Self-Validation & State Update
|
|
88
|
-
|
|
89
|
-
**Validation checks**:
|
|
90
|
-
|
|
91
|
-
| Check | Method | Action on Fail |
|
|
92
|
-
|-------|--------|----------------|
|
|
93
|
-
| Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
|
|
94
|
-
| File count | Count generated files | Report issue |
|
|
95
|
-
| Import resolution | Check broken imports | Fix import paths |
|
|
96
|
-
|
|
97
|
-
Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
|
|
98
|
-
- Merge `{ "generator": { test_files, layer, round, is_revision } }`
|
|
1
|
+
---
|
|
2
|
+
role: generator
|
|
3
|
+
prefix: TESTGEN
|
|
4
|
+
inner_loop: true
|
|
5
|
+
message_types:
|
|
6
|
+
success: tests_generated
|
|
7
|
+
revision: tests_revised
|
|
8
|
+
error: error
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Test Generator
|
|
12
|
+
|
|
13
|
+
Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
|
|
14
|
+
|
|
15
|
+
## Phase 2: Context Loading
|
|
16
|
+
|
|
17
|
+
| Input | Source | Required |
|
|
18
|
+
|-------|--------|----------|
|
|
19
|
+
| Task description | From task subject/description | Yes |
|
|
20
|
+
| Session path | Extracted from task description | Yes |
|
|
21
|
+
| Test strategy | <session>/strategy/test-strategy.md | Yes |
|
|
22
|
+
| .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
|
|
23
|
+
|
|
24
|
+
1. Extract session path and layer from task description
|
|
25
|
+
2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
|
|
26
|
+
3. Read test strategy:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Read("<session>/strategy/test-strategy.md")
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
3. Read source files to test (from strategy priority_files, limit 20)
|
|
33
|
+
4. Read .msg/meta.json for framework and scope context
|
|
34
|
+
|
|
35
|
+
5. Detect revision mode:
|
|
36
|
+
|
|
37
|
+
| Condition | Mode |
|
|
38
|
+
|-----------|------|
|
|
39
|
+
| Task subject contains "fix" or "revised" | Revision -- load previous failures |
|
|
40
|
+
| Otherwise | Fresh generation |
|
|
41
|
+
|
|
42
|
+
For revision mode:
|
|
43
|
+
- Read latest result file for failure details
|
|
44
|
+
- Read effective test patterns from .msg/meta.json
|
|
45
|
+
|
|
46
|
+
6. Read wisdom files if available
|
|
47
|
+
|
|
48
|
+
## Phase 3: Test Generation
|
|
49
|
+
|
|
50
|
+
**Strategy selection by complexity**:
|
|
51
|
+
|
|
52
|
+
| File Count | Strategy |
|
|
53
|
+
|------------|----------|
|
|
54
|
+
| <= 3 files | Direct: inline Write/Edit |
|
|
55
|
+
| 3-5 files | Single code-developer agent |
|
|
56
|
+
| > 5 files | Batch: group by module, one agent per batch |
|
|
57
|
+
|
|
58
|
+
**Direct generation** (per source file):
|
|
59
|
+
1. Generate test path: `<session>/tests/<layer>/<test-file>`
|
|
60
|
+
2. Generate test code: happy path, edge cases, error handling
|
|
61
|
+
3. Write test file
|
|
62
|
+
|
|
63
|
+
**CLI delegation** (medium/high complexity):
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Bash({
|
|
67
|
+
command: `maestro delegate "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
|
|
68
|
+
TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
|
|
69
|
+
MODE: write
|
|
70
|
+
CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
|
|
71
|
+
<if-revision: Previous failures: <failure-details>
|
|
72
|
+
Effective patterns: <patterns-from-meta>>
|
|
73
|
+
EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
|
|
74
|
+
CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
|
|
75
|
+
Source files to test:
|
|
76
|
+
<file-list-with-content>" --tool gemini --mode write --cd <session>`,
|
|
77
|
+
run_in_background: false
|
|
78
|
+
})
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Output verification**:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Glob("<session>/tests/<layer>/**/*")
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Phase 4: Self-Validation & State Update
|
|
88
|
+
|
|
89
|
+
**Validation checks**:
|
|
90
|
+
|
|
91
|
+
| Check | Method | Action on Fail |
|
|
92
|
+
|-------|--------|----------------|
|
|
93
|
+
| Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
|
|
94
|
+
| File count | Count generated files | Report issue |
|
|
95
|
+
| Import resolution | Check broken imports | Fix import paths |
|
|
96
|
+
|
|
97
|
+
Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
|
|
98
|
+
- Merge `{ "generator": { test_files, layer, round, is_revision } }`
|
|
@@ -61,7 +61,7 @@ Intent → Resolve Chain → Step 1 → Step 2 → … → Step N →
|
|
|
61
61
|
|
|
62
62
|
## Implementation
|
|
63
63
|
|
|
64
|
-
> **Full implementation reference**: The complete `detectTaskType`, `detectNextAction`, and `chainMap` definitions (35+ intent patterns, 40+ chain types) are in
|
|
64
|
+
> **Full implementation reference**: The complete `detectTaskType`, `detectNextAction`, and `chainMap` definitions (35+ intent patterns, 40+ chain types) are in `~/.maestro/workflows/maestro-coordinate.codex.md`. Read that file for authoritative logic before executing any step.
|
|
65
65
|
|
|
66
66
|
### Session Initialization
|
|
67
67
|
|
|
@@ -213,9 +213,8 @@ The assembled prompt embeds the skill call so the agent knows exactly what to in
|
|
|
213
213
|
## TASK ASSIGNMENT
|
|
214
214
|
|
|
215
215
|
### MANDATORY FIRST STEPS
|
|
216
|
-
1. Read: ~/.
|
|
217
|
-
2. Read:
|
|
218
|
-
3. Read: ~/.codex/skills/{skill}/SKILL.md
|
|
216
|
+
1. Read: ~/.maestro/workflows/maestro-coordinate.codex.md
|
|
217
|
+
2. Read: ~/.codex/skills/{skill}/SKILL.md
|
|
219
218
|
|
|
220
219
|
---
|
|
221
220
|
|
|
@@ -308,4 +307,4 @@ Resume: $maestro-coordinate --continue
|
|
|
308
307
|
6. **Close before spawn**: Always `close_agent` the current step agent before spawning the next
|
|
309
308
|
7. **Dry-run is read-only**: Stop after displaying the chain plan — never spawn agents
|
|
310
309
|
8. **Timeout handling**: One urge via `send_message`; if still timed out → mark `failed`
|
|
311
|
-
9. **No CLI fallback**: All execution is agent-native — no `exec_command("maestro
|
|
310
|
+
9. **No CLI fallback**: All execution is agent-native — no `exec_command("maestro delegate ...")`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-issue-analyze
|
|
3
|
-
description: Root cause analysis for a specific issue via CLI exploration. Gathers codebase context (grep or semantic deep search), runs maestro
|
|
3
|
+
description: Root cause analysis for a specific issue via CLI exploration. Gathers codebase context (grep or semantic deep search), runs maestro delegate gemini analysis, and attaches a structured analysis record to the issue in issues.jsonl.
|
|
4
4
|
argument-hint: "<ISS-ID> [--tool gemini|qwen] [--depth standard|deep]"
|
|
5
5
|
allowed-tools: Read, Write, Bash, Glob, Grep
|
|
6
6
|
---
|
|
@@ -26,7 +26,7 @@ $maestro-issue-analyze "ISS-20260401-001 --tool qwen --depth standard"
|
|
|
26
26
|
|
|
27
27
|
## Overview
|
|
28
28
|
|
|
29
|
-
Sequential 4-step pipeline: load issue → gather codebase context → run CLI analysis → attach analysis record. The CLI analysis step invokes `maestro
|
|
29
|
+
Sequential 4-step pipeline: load issue → gather codebase context → run CLI analysis → attach analysis record. The CLI analysis step invokes `maestro delegate --to gemini --mode analysis` to produce a structured root-cause record written back into issues.jsonl. This is the first step in the issue resolution workflow: **analyze → plan → execute**.
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
Load Issue → Gather Context → CLI Analysis → Attach Record
|
|
@@ -119,7 +119,7 @@ CONSTRAINTS: Evidence required — file:line for each claim`
|
|
|
119
119
|
|
|
120
120
|
Write(`/tmp/iss-analyze-${issue.id}.txt`, promptContent)
|
|
121
121
|
functions.exec_command({
|
|
122
|
-
cmd: `maestro
|
|
122
|
+
cmd: `maestro delegate "$(cat /tmp/iss-analyze-${issue.id}.txt)" --to ${tool} --mode analysis`,
|
|
123
123
|
workdir: "."
|
|
124
124
|
})
|
|
125
125
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-issue-execute
|
|
3
|
-
description: Execute a planned solution for an issue via dual-mode dispatch. Auto-detects server UP (POST to /api/execution/dispatch) or DOWN (direct maestro
|
|
3
|
+
description: Execute a planned solution for an issue via dual-mode dispatch. Auto-detects server UP (POST to /api/execution/dispatch) or DOWN (direct maestro delegate). Updates issue status on completion with next-step routing to close, debug, or verify.
|
|
4
4
|
argument-hint: "<ISS-ID> [--executor claude-code|codex|gemini] [--dry-run]"
|
|
5
5
|
allowed-tools: Read, Write, Bash, Glob, Grep
|
|
6
6
|
---
|
|
@@ -27,7 +27,7 @@ $maestro-issue-execute "ISS-20260401-001 --executor gemini"
|
|
|
27
27
|
|
|
28
28
|
## Overview
|
|
29
29
|
|
|
30
|
-
Sequential 4-step pipeline with conditional dispatch: load issue → dry-run check → detect mode → execute + update. Server-UP path posts to the orchestration API; Server-DOWN path invokes `maestro
|
|
30
|
+
Sequential 4-step pipeline with conditional dispatch: load issue → dry-run check → detect mode → execute + update. Server-UP path posts to the orchestration API; Server-DOWN path invokes `maestro delegate` directly. This is the third step in the issue resolution workflow: **analyze → plan → execute**.
|
|
31
31
|
|
|
32
32
|
```
|
|
33
33
|
Load Issue → [dry-run?] → Detect Mode → Dispatch → Update Status
|
|
@@ -79,7 +79,7 @@ const serverUp = healthCheck.stdout.trim() === "200"
|
|
|
79
79
|
| Mode | Condition | Action |
|
|
80
80
|
|------|-----------|--------|
|
|
81
81
|
| Server UP | HTTP 200 from /health | POST to `/api/execution/dispatch` |
|
|
82
|
-
| Server DOWN | Any other result | Direct `maestro
|
|
82
|
+
| Server DOWN | Any other result | Direct `maestro delegate` execution |
|
|
83
83
|
|
|
84
84
|
```javascript
|
|
85
85
|
functions.update_plan({
|
|
@@ -124,7 +124,7 @@ functions.exec_command({
|
|
|
124
124
|
// Write prompt to temp file to avoid shell injection
|
|
125
125
|
Write(`/tmp/iss-exec-${issue.id}.txt`, execPrompt)
|
|
126
126
|
functions.exec_command({
|
|
127
|
-
cmd: `maestro
|
|
127
|
+
cmd: `maestro delegate "$(cat /tmp/iss-exec-${issue.id}.txt)" --to ${executor === 'codex' ? 'codex' : 'claude'} --mode write`,
|
|
128
128
|
workdir: "."
|
|
129
129
|
})
|
|
130
130
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-issue-plan
|
|
3
|
-
description: Solution planning for a specific issue. Auto-detects analysis context, runs maestro
|
|
3
|
+
description: Solution planning for a specific issue. Auto-detects analysis context, runs maestro delegate planning, and attaches a structured solution record with ordered steps and verification criteria to the issue in issues.jsonl.
|
|
4
4
|
argument-hint: "<ISS-ID> [--tool gemini|qwen] [--from-analysis]"
|
|
5
5
|
allowed-tools: Read, Write, Bash, Glob, Grep
|
|
6
6
|
---
|
|
@@ -82,7 +82,7 @@ CONSTRAINTS: Concrete steps only | File:line references required | No speculativ
|
|
|
82
82
|
// Write prompt to temp file to avoid shell injection
|
|
83
83
|
Write(`/tmp/iss-plan-${issueId}.txt`, prompt)
|
|
84
84
|
functions.exec_command({
|
|
85
|
-
cmd: `maestro
|
|
85
|
+
cmd: `maestro delegate "$(cat /tmp/iss-plan-${issueId}.txt)" --to ${tool} --mode analysis`,
|
|
86
86
|
workdir: "."
|
|
87
87
|
})
|
|
88
88
|
```
|
|
@@ -28,8 +28,8 @@ Universal team coordination skill: analyze task -> generate role-specs -> dispat
|
|
|
28
28
|
(roles generated at runtime from task analysis)
|
|
29
29
|
|
|
30
30
|
CLI Tools (callable by any worker):
|
|
31
|
-
maestro
|
|
32
|
-
maestro
|
|
31
|
+
maestro delegate --mode analysis - analysis and exploration
|
|
32
|
+
maestro delegate --mode write - code generation and modification
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Delegation Lock
|
|
@@ -48,7 +48,7 @@ Before calling ANY tool, apply this check:
|
|
|
48
48
|
| `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
|
|
49
49
|
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
50
50
|
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
51
|
-
| `Bash("maestro
|
|
51
|
+
| `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
|
|
52
52
|
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
53
53
|
|
|
54
54
|
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
@@ -65,8 +65,8 @@ Before calling ANY tool, apply this check:
|
|
|
65
65
|
| Session path | `.workflow/.team/TC-<slug>-<date>/` |
|
|
66
66
|
| Worker agent | `team-worker` |
|
|
67
67
|
| Message bus | `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)` |
|
|
68
|
-
| CLI analysis | `maestro
|
|
69
|
-
| CLI write | `maestro
|
|
68
|
+
| CLI analysis | `maestro delegate --mode analysis` |
|
|
69
|
+
| CLI write | `maestro delegate --mode write` |
|
|
70
70
|
| Max roles | 5 |
|
|
71
71
|
|
|
72
72
|
## Role Router
|
|
@@ -92,8 +92,8 @@ Workers can use CLI tools for analysis and code operations:
|
|
|
92
92
|
|
|
93
93
|
| Tool | Purpose |
|
|
94
94
|
|------|---------|
|
|
95
|
-
| maestro
|
|
96
|
-
| maestro
|
|
95
|
+
| maestro delegate --mode analysis | Analysis, exploration, pattern discovery |
|
|
96
|
+
| maestro delegate --mode write | Code generation, modification, refactoring |
|
|
97
97
|
|
|
98
98
|
### Dispatch
|
|
99
99
|
|
|
@@ -18,7 +18,7 @@ Orchestrate the team-coordinate workflow: task analysis, dynamic role-spec gener
|
|
|
18
18
|
```
|
|
19
19
|
WRONG: Read("src/components/Button.tsx") — worker work
|
|
20
20
|
WRONG: Grep(pattern="useState", path="src/") — worker work
|
|
21
|
-
WRONG: Bash("maestro
|
|
21
|
+
WRONG: Bash("maestro delegate '...' --to gemini") — worker work
|
|
22
22
|
WRONG: Edit("src/utils/helper.ts", ...) — worker work
|
|
23
23
|
WRONG: Bash("npm test") — worker work
|
|
24
24
|
WRONG: mcp__ace-tool__search_context(query="...") — worker work
|
|
@@ -71,7 +71,7 @@ Before calling ANY tool, apply this check:
|
|
|
71
71
|
| `Read` on `roles/`, `commands/`, `specs/`, `templates/` | ALLOWED | Loading own instructions |
|
|
72
72
|
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
73
73
|
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
74
|
-
| `Bash("maestro
|
|
74
|
+
| `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
|
|
75
75
|
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
76
76
|
|
|
77
77
|
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
@@ -86,7 +86,7 @@ Before calling ANY tool, apply this check:
|
|
|
86
86
|
- **Session path**: `.workflow/.team/TLV4-<slug>-<date>/`
|
|
87
87
|
- **State file**: `<session>/tasks.json`
|
|
88
88
|
- **Discovery files**: `<session>/discoveries/{task_id}.json`
|
|
89
|
-
- **CLI tools**: `maestro
|
|
89
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
90
90
|
|
|
91
91
|
## Worker Spawn Template
|
|
92
92
|
|
|
@@ -27,7 +27,7 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
|
|
|
27
27
|
|
|
28
28
|
2. **Explore domain** (use CLI analysis tools):
|
|
29
29
|
```bash
|
|
30
|
-
maestro
|
|
30
|
+
maestro delegate "PURPOSE: Research domain for {requirement}
|
|
31
31
|
TASK: • Identify problem statement • Define target users • Extract constraints • Map integration points
|
|
32
32
|
CONTEXT: @**/* | Memory: {requirement}
|
|
33
33
|
EXPECTED: Structured research context with problem/users/domain/constraints
|
|
@@ -294,7 +294,7 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
|
|
|
294
294
|
|
|
295
295
|
2. **Explore codebase** (use CLI analysis tools):
|
|
296
296
|
```bash
|
|
297
|
-
maestro
|
|
297
|
+
maestro delegate "PURPOSE: Explore codebase for {requirement}
|
|
298
298
|
TASK: • Identify relevant files • Find existing patterns • Locate integration points
|
|
299
299
|
CONTEXT: @**/* | Memory: {requirement}
|
|
300
300
|
EXPECTED: Exploration findings with file paths and patterns
|
|
@@ -36,7 +36,7 @@ Research and codebase exploration for context gathering.
|
|
|
36
36
|
4. If topic references file (@path or .md/.txt) -> read it
|
|
37
37
|
5. CLI seed analysis:
|
|
38
38
|
```
|
|
39
|
-
Bash({ command: `maestro
|
|
39
|
+
Bash({ command: `maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
|
|
40
40
|
TASK: * Extract problem statement * Identify target users * Determine domain
|
|
41
41
|
* List constraints * Identify 3-5 exploration dimensions
|
|
42
42
|
TOPIC: <topic-content>
|
|
@@ -54,7 +54,7 @@ Research and codebase exploration for context gathering.
|
|
|
54
54
|
|
|
55
55
|
When project detected:
|
|
56
56
|
```
|
|
57
|
-
Bash({ command: `maestro
|
|
57
|
+
Bash({ command: `maestro delegate "PURPOSE: Explore codebase for context
|
|
58
58
|
TASK: * Identify tech stack * Map architecture patterns * Document conventions * List integration points
|
|
59
59
|
MODE: analysis
|
|
60
60
|
CONTEXT: @**/*
|
|
@@ -14,7 +14,7 @@ Orchestrate team-lifecycle-v4: analyze -> dispatch -> spawn -> monitor -> report
|
|
|
14
14
|
```
|
|
15
15
|
WRONG: Read("src/...") — worker work
|
|
16
16
|
WRONG: Grep/Glob on project source — worker work
|
|
17
|
-
WRONG: Bash("maestro
|
|
17
|
+
WRONG: Bash("maestro delegate '...' --to gemini") — worker work
|
|
18
18
|
WRONG: Edit/Write on project source files — worker work
|
|
19
19
|
WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
|
|
20
20
|
```
|
|
@@ -47,7 +47,7 @@ WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
|
|
|
47
47
|
- Modify task output artifacts
|
|
48
48
|
- Spawn workers with general-purpose agent (MUST use team_worker)
|
|
49
49
|
- Generate more than 5 worker roles
|
|
50
|
-
- Call CLI tools (maestro
|
|
50
|
+
- Call CLI tools (maestro delegate) — only workers use CLI
|
|
51
51
|
|
|
52
52
|
## Command Execution Protocol
|
|
53
53
|
When coordinator needs to execute a specific phase:
|
|
@@ -51,7 +51,7 @@ CONSTRAINTS: Only modify listed files | Follow existing patterns
|
|
|
51
51
|
|
|
52
52
|
CLI call:
|
|
53
53
|
```
|
|
54
|
-
Bash(`maestro
|
|
54
|
+
Bash(`maestro delegate "<prompt>" --to <tool> --mode write --rule development-implement-feature`)
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Resume strategy:
|
|
@@ -36,7 +36,7 @@ Codebase-informed implementation planning with complexity assessment.
|
|
|
36
36
|
3. Check <session>/explorations/cache-index.json for cached explorations
|
|
37
37
|
4. Explore codebase (cache-aware):
|
|
38
38
|
```
|
|
39
|
-
Bash({ command: `maestro
|
|
39
|
+
Bash({ command: `maestro delegate "PURPOSE: Explore codebase to inform planning
|
|
40
40
|
TASK: * Search for relevant patterns * Identify files to modify * Document integration points
|
|
41
41
|
MODE: analysis
|
|
42
42
|
CONTEXT: @**/*
|
|
@@ -48,7 +48,7 @@ Codebase-informed implementation planning with complexity assessment.
|
|
|
48
48
|
|
|
49
49
|
Generate plan.json + .task/TASK-*.json:
|
|
50
50
|
```
|
|
51
|
-
Bash({ command: `maestro
|
|
51
|
+
Bash({ command: `maestro delegate "PURPOSE: Generate implementation plan from exploration results
|
|
52
52
|
TASK: * Create plan.json overview * Generate TASK-*.json files (2-7 tasks) * Define dependencies * Set convergence criteria
|
|
53
53
|
MODE: write
|
|
54
54
|
CONTEXT: @<session>/explorations/*.json
|
|
@@ -61,7 +61,7 @@ Template-driven document generation with progressive dependency loading.
|
|
|
61
61
|
|
|
62
62
|
CLI generation:
|
|
63
63
|
```
|
|
64
|
-
Bash({ command: `maestro
|
|
64
|
+
Bash({ command: `maestro delegate "PURPOSE: Generate <doc-type> document following template
|
|
65
65
|
TASK: * Load template * Apply spec config and discovery context * Integrate prior feedback * Generate all sections
|
|
66
66
|
MODE: write
|
|
67
67
|
CONTEXT: @<session>/spec/*.json @<template-path>
|
|
@@ -63,7 +63,7 @@ Before calling ANY tool, apply this check:
|
|
|
63
63
|
| `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
|
|
64
64
|
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
65
65
|
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
66
|
-
| `Bash("maestro
|
|
66
|
+
| `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
|
|
67
67
|
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
68
68
|
|
|
69
69
|
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
@@ -77,7 +77,7 @@ Before calling ANY tool, apply this check:
|
|
|
77
77
|
- **Session prefix**: `QA`
|
|
78
78
|
- **Session path**: `.workflow/.team/QA-<slug>-<date>/`
|
|
79
79
|
- **Team name**: `quality-assurance`
|
|
80
|
-
- **CLI tools**: `maestro
|
|
80
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
81
81
|
- **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
|
|
82
82
|
|
|
83
83
|
## Worker Spawn Template
|
|
@@ -12,7 +12,7 @@ Orchestrate team-quality-assurance: analyze -> dispatch -> spawn -> monitor -> r
|
|
|
12
12
|
**FORBIDDEN** (even if the task seems trivial):
|
|
13
13
|
```
|
|
14
14
|
WRONG: Read/Grep/Glob on project source code — worker work
|
|
15
|
-
WRONG: Bash("maestro
|
|
15
|
+
WRONG: Bash("maestro delegate ...") — worker work
|
|
16
16
|
WRONG: Edit/Write on project source files — worker work
|
|
17
17
|
WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
|
|
18
18
|
```
|
|
@@ -45,7 +45,7 @@ WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
|
|
|
45
45
|
- Modify test files or source code
|
|
46
46
|
- Spawn workers with general-purpose agent (MUST use team-worker)
|
|
47
47
|
- Generate more than 6 worker roles
|
|
48
|
-
- Call CLI tools (maestro
|
|
48
|
+
- Call CLI tools (maestro delegate) — only workers use CLI
|
|
49
49
|
|
|
50
50
|
## Command Execution Protocol
|
|
51
51
|
When coordinator needs to execute a specific phase:
|
|
@@ -39,7 +39,7 @@ Scan codebase from multiple perspectives (bug, security, test-coverage, code-qua
|
|
|
39
39
|
|
|
40
40
|
**Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
|
|
41
41
|
|
|
42
|
-
**Medium/High complexity**: CLI fan-out -- one `maestro
|
|
42
|
+
**Medium/High complexity**: CLI fan-out -- one `maestro delegate --mode analysis` per perspective:
|
|
43
43
|
|
|
44
44
|
For each active perspective, build prompt:
|
|
45
45
|
```
|
|
@@ -50,7 +50,7 @@ CONTEXT: @<scan-scope>
|
|
|
50
50
|
EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
|
|
51
51
|
CONSTRAINTS: Focus on actionable findings only
|
|
52
52
|
```
|
|
53
|
-
Execute via: `maestro
|
|
53
|
+
Execute via: `maestro delegate "<prompt>" --to gemini --mode analysis`
|
|
54
54
|
|
|
55
55
|
After all perspectives complete:
|
|
56
56
|
- Parse CLI outputs into structured findings
|
|
@@ -61,7 +61,7 @@ Before calling ANY tool, apply this check:
|
|
|
61
61
|
| `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
|
|
62
62
|
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
63
63
|
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
64
|
-
| `Bash("maestro
|
|
64
|
+
| `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
|
|
65
65
|
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
66
66
|
|
|
67
67
|
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
@@ -75,7 +75,7 @@ Before calling ANY tool, apply this check:
|
|
|
75
75
|
- **Session prefix**: `RV`
|
|
76
76
|
- **Session path**: `.workflow/.team/RV-<slug>-<date>/`
|
|
77
77
|
- **Team name**: `review`
|
|
78
|
-
- **CLI tools**: `maestro
|
|
78
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
79
79
|
- **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
|
|
80
80
|
|
|
81
81
|
## Worker Spawn Template
|
|
@@ -12,7 +12,7 @@ Orchestrate team-review: parse target -> detect mode -> dispatch task chain -> m
|
|
|
12
12
|
**FORBIDDEN** (even if the task seems trivial):
|
|
13
13
|
```
|
|
14
14
|
WRONG: Read/Grep/Glob on project source code — worker work
|
|
15
|
-
WRONG: Bash("maestro
|
|
15
|
+
WRONG: Bash("maestro delegate ...") — worker work
|
|
16
16
|
WRONG: Bash("semgrep/eslint/tsc ...") — worker work
|
|
17
17
|
WRONG: Edit/Write on project source files — worker work
|
|
18
18
|
```
|
|
@@ -45,7 +45,7 @@ WRONG: Edit/Write on project source files — worker work
|
|
|
45
45
|
- Perform code review or scanning directly
|
|
46
46
|
- Bypass worker roles
|
|
47
47
|
- Spawn workers with general-purpose agent (MUST use team_worker)
|
|
48
|
-
- Call CLI tools (maestro
|
|
48
|
+
- Call CLI tools (maestro delegate) — only workers use CLI
|
|
49
49
|
|
|
50
50
|
## Command Execution Protocol
|
|
51
51
|
When coordinator needs to execute a specific phase:
|
|
@@ -52,7 +52,7 @@ Build prompt per group requesting 6 enrichment fields per finding:
|
|
|
52
52
|
- `fix_complexity`: low / medium / high
|
|
53
53
|
- `fix_dependencies`: finding IDs that must be fixed first
|
|
54
54
|
|
|
55
|
-
Execute via `maestro
|
|
55
|
+
Execute via `maestro delegate --to gemini --mode analysis --rule analysis-diagnose-bug-root-cause` (fallback: qwen -> codex). Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
|
|
56
56
|
|
|
57
57
|
## Phase 4: Report Generation
|
|
58
58
|
|
|
@@ -59,7 +59,7 @@ Build prompt with target file patterns, toolchain dedup summary, and per-dimensi
|
|
|
59
59
|
- PRF: Algorithm complexity, N+1 queries, unnecessary sync, memory leaks, missing caching
|
|
60
60
|
- MNT: Architectural coupling, abstraction leaks, convention violations, dead code
|
|
61
61
|
|
|
62
|
-
Execute via `maestro
|
|
62
|
+
Execute via `maestro delegate --to gemini --mode analysis --rule analysis-review-code-quality` (fallback: qwen -> codex). Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
|
|
63
63
|
|
|
64
64
|
## Phase 4: Aggregate & Output
|
|
65
65
|
|
|
@@ -63,7 +63,7 @@ Before calling ANY tool, apply this check:
|
|
|
63
63
|
| `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
|
|
64
64
|
| `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
|
|
65
65
|
| `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
|
|
66
|
-
| `Bash("maestro
|
|
66
|
+
| `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
|
|
67
67
|
| `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
|
|
68
68
|
|
|
69
69
|
**If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
|
|
@@ -76,7 +76,7 @@ Before calling ANY tool, apply this check:
|
|
|
76
76
|
|
|
77
77
|
- **Session prefix**: `TD`
|
|
78
78
|
- **Session path**: `.workflow/.team/TD-<slug>-<date>/`
|
|
79
|
-
- **CLI tools**: `maestro
|
|
79
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
80
80
|
- **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
|
|
81
81
|
- **Max GC rounds**: 3
|
|
82
82
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
**FORBIDDEN** (even if the task seems trivial):
|
|
13
13
|
```
|
|
14
14
|
WRONG: Read/Grep/Glob on project source code — worker work
|
|
15
|
-
WRONG: Bash("maestro
|
|
15
|
+
WRONG: Bash("maestro delegate ...") — worker work
|
|
16
16
|
WRONG: Edit/Write on project source files — worker work
|
|
17
17
|
```
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ For each batch, use CLI tool for implementation:
|
|
|
37
37
|
**Per-batch delegation**:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
maestro
|
|
40
|
+
maestro delegate "PURPOSE: Apply tech debt fixes in batch; success = all items fixed without breaking changes
|
|
41
41
|
TASK: <batch-type-specific-tasks>
|
|
42
42
|
MODE: write
|
|
43
43
|
CONTEXT: @<worktree-path>/**/* | Memory: Remediation plan context
|
|
@@ -56,7 +56,7 @@ Multi-dimension tech debt scanner. Scan codebase across 5 dimensions (code, arch
|
|
|
56
56
|
- Classify findings into dimensions
|
|
57
57
|
|
|
58
58
|
**Medium/High Complexity** (Fan-out):
|
|
59
|
-
- Fan-out A: CLI exploration (structure, patterns, dependencies angles) via `maestro
|
|
59
|
+
- Fan-out A: CLI exploration (structure, patterns, dependencies angles) via `maestro delegate --to gemini --mode analysis`
|
|
60
60
|
- Fan-out B: CLI dimension analysis (parallel gemini per dimension -- code, architecture, testing, dependency, documentation)
|
|
61
61
|
- Fan-out C (High only): Multi-perspective Gemini analysis (security, performance, code-quality, architecture)
|
|
62
62
|
- Fan-in: Merge results, cross-deduplicate by file:line, boost severity for multi-source findings
|