maestro-flow 0.5.38 → 0.5.40
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/odyssey-debug/SKILL.md +90 -269
- package/.agents/skills/odyssey-improve/SKILL.md +39 -240
- package/.agents/skills/odyssey-planex/SKILL.md +21 -105
- package/.agents/skills/odyssey-review-test-fix/SKILL.md +98 -318
- package/.agents/skills/odyssey-ui/SKILL.md +82 -265
- package/.agy/skills/odyssey-debug/SKILL.md +90 -269
- package/.agy/skills/odyssey-improve/SKILL.md +39 -240
- package/.agy/skills/odyssey-planex/SKILL.md +21 -105
- package/.agy/skills/odyssey-review-test-fix/SKILL.md +98 -318
- package/.agy/skills/odyssey-ui/SKILL.md +82 -265
- package/.claude/commands/odyssey-debug.md +90 -269
- package/.claude/commands/odyssey-improve.md +39 -240
- package/.claude/commands/odyssey-planex.md +21 -105
- package/.claude/commands/odyssey-review-test-fix.md +98 -318
- package/.claude/commands/odyssey-ui.md +82 -265
- package/.codex/agents/cli-explore-agent.toml +181 -0
- package/.codex/agents/cross-role-reviewer.toml +165 -0
- package/.codex/agents/impeccable-agent.toml +89 -0
- package/.codex/agents/role-design-author.toml +213 -0
- package/.codex/agents/team-worker.toml +4 -7
- package/.codex/agents/ui-design-agent.toml +260 -0
- package/.codex/agents/workflow-analyzer.toml +106 -0
- package/.codex/agents/workflow-codebase-mapper.toml +69 -0
- package/.codex/agents/workflow-collab-planner.toml +140 -0
- package/.codex/agents/workflow-debugger.toml +95 -0
- package/.codex/agents/workflow-executor.toml +124 -0
- package/.codex/agents/workflow-external-researcher.toml +80 -0
- package/.codex/agents/workflow-integration-checker.toml +76 -0
- package/.codex/agents/workflow-nyquist-auditor.toml +77 -0
- package/.codex/agents/workflow-phase-researcher.toml +76 -0
- package/.codex/agents/workflow-plan-checker.toml +93 -0
- package/.codex/agents/workflow-planner.toml +192 -0
- package/.codex/agents/workflow-project-researcher.toml +65 -0
- package/.codex/agents/workflow-research-synthesizer.toml +65 -0
- package/.codex/agents/workflow-reviewer.toml +75 -0
- package/.codex/agents/workflow-roadmapper.toml +75 -0
- package/.codex/agents/workflow-verifier.toml +113 -0
- package/.codex/skills/maestro/SKILL.md +1 -0
- package/.codex/skills/maestro-analyze/SKILL.md +33 -15
- package/.codex/skills/maestro-brainstorm/SKILL.md +13 -10
- package/.codex/skills/maestro-collab/SKILL.md +30 -75
- package/.codex/skills/maestro-execute/SKILL.md +19 -12
- package/.codex/skills/maestro-grill/SKILL.md +12 -11
- package/.codex/skills/maestro-next/SKILL.md +3 -3
- package/.codex/skills/maestro-overlay/SKILL.md +1 -1
- package/.codex/skills/maestro-plan/SKILL.md +17 -8
- package/.codex/skills/maestro-ralph/SKILL.md +3 -0
- package/.codex/skills/maestro-ralph-execute/SKILL.md +1 -0
- package/.codex/skills/maestro-roadmap/SKILL.md +14 -8
- package/.codex/skills/manage-learn/SKILL.md +1 -1
- package/.codex/skills/odyssey-debug/SKILL.md +185 -275
- package/.codex/skills/odyssey-improve/SKILL.md +216 -308
- package/.codex/skills/odyssey-planex/SKILL.md +317 -159
- package/.codex/skills/odyssey-review-test-fix/SKILL.md +137 -255
- package/.codex/skills/odyssey-ui/SKILL.md +183 -247
- package/.codex/skills/quality-review/SKILL.md +17 -10
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +6 -12
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +6 -14
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +2 -6
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +6 -14
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +3 -7
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -5
- package/.codex/skills/team-review/roles/reviewer/role.md +2 -5
- package/.codex/skills/team-review/roles/scanner/role.md +2 -5
- package/.codex/skills/team-tech-debt/roles/executor/role.md +3 -7
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +2 -5
- package/.codex/skills/team-tech-debt/roles/validator/role.md +3 -7
- package/.codex/skills/team-testing/roles/executor/role.md +3 -7
- package/.codex/skills/team-testing/roles/generator/role.md +3 -7
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +23 -2
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +242 -26
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +92 -29
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/src/commands/hooks.d.ts +2 -1
- package/dashboard/dist-server/src/commands/hooks.js +16 -9
- package/dashboard/dist-server/src/commands/hooks.js.map +1 -1
- package/dashboard/dist-server/src/commands/install-backend.js +19 -0
- package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
- package/dashboard/dist-server/src/core/manifest.d.ts +5 -0
- package/dashboard/dist-server/src/core/manifest.js.map +1 -1
- package/dashboard/dist-server/src/core/plugin-bridge.d.ts +59 -0
- package/dashboard/dist-server/src/core/plugin-bridge.js +355 -0
- package/dashboard/dist-server/src/core/plugin-bridge.js.map +1 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js +5 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
- package/dashboard/dist-server/src/hooks/session-context.js +276 -3
- package/dashboard/dist-server/src/hooks/session-context.js.map +1 -1
- package/dashboard/dist-server/src/search/daemon-client.d.ts +8 -3
- package/dashboard/dist-server/src/search/daemon-client.js +20 -0
- package/dashboard/dist-server/src/search/daemon-client.js.map +1 -1
- package/dist/src/cli.js +19 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/domain.d.ts.map +1 -1
- package/dist/src/commands/domain.js +12 -3
- package/dist/src/commands/domain.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +2 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +16 -9
- 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 +19 -0
- 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 +50 -3
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/plugin.d.ts +3 -0
- package/dist/src/commands/plugin.d.ts.map +1 -0
- package/dist/src/commands/plugin.js +137 -0
- package/dist/src/commands/plugin.js.map +1 -0
- package/dist/src/commands/search.d.ts.map +1 -1
- package/dist/src/commands/search.js +59 -6
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +15 -0
- 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 +23 -0
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/core/install-executor.d.ts +1 -1
- package/dist/src/core/install-executor.d.ts.map +1 -1
- package/dist/src/core/install-executor.js +27 -0
- package/dist/src/core/install-executor.js.map +1 -1
- package/dist/src/core/install-profile.d.ts +5 -0
- package/dist/src/core/install-profile.d.ts.map +1 -1
- package/dist/src/core/install-profile.js +8 -0
- package/dist/src/core/install-profile.js.map +1 -1
- package/dist/src/core/manifest.d.ts +5 -0
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/plugin-bridge.d.ts +60 -0
- package/dist/src/core/plugin-bridge.d.ts.map +1 -0
- package/dist/src/core/plugin-bridge.js +355 -0
- package/dist/src/core/plugin-bridge.js.map +1 -0
- package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
- package/dist/src/hooks/kg-sync-hook.js +5 -0
- package/dist/src/hooks/kg-sync-hook.js.map +1 -1
- package/dist/src/hooks/session-context.d.ts.map +1 -1
- package/dist/src/hooks/session-context.js +276 -3
- package/dist/src/hooks/session-context.js.map +1 -1
- package/dist/src/search/daemon-client.d.ts +8 -3
- package/dist/src/search/daemon-client.d.ts.map +1 -1
- package/dist/src/search/daemon-client.js +20 -0
- package/dist/src/search/daemon-client.js.map +1 -1
- package/dist/src/search/daemon.d.ts +3 -3
- package/dist/src/search/daemon.d.ts.map +1 -1
- package/dist/src/search/daemon.js +9 -3
- package/dist/src/search/daemon.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +43 -14
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/types.d.ts +2 -0
- package/dist/src/tui/install-ui/types.d.ts.map +1 -1
- package/dist/src/tui/install-ui/types.js.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.js +13 -1
- package/dist/src/tui/install-ui/useInstallFlowState.js.map +1 -1
- package/dist/src/utils/update-notices.js +11 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +1 -1
- package/workflows/odyssey-base.md +258 -0
- package/workflows/shell-exec-protocol.md +30 -0
|
@@ -25,15 +25,12 @@
|
|
|
25
25
|
|
|
26
26
|
2. **Explore domain** (use CLI analysis tools):
|
|
27
27
|
```
|
|
28
|
-
|
|
29
|
-
cmd: `maestro delegate "PURPOSE: Research domain for {requirement}
|
|
28
|
+
shell_exec(`maestro delegate "PURPOSE: Research domain for {requirement}
|
|
30
29
|
TASK: • Identify problem statement • Define target users • Extract constraints • Map integration points
|
|
31
30
|
CONTEXT: @**/* | Memory: {requirement}
|
|
32
31
|
EXPECTED: Structured research context with problem/users/domain/constraints
|
|
33
|
-
CONSTRAINTS: Read-only analysis" --role analyze --mode analysis --rule analysis-trace-code-execution`,
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
32
|
+
CONSTRAINTS: Read-only analysis" --role analyze --mode analysis --rule analysis-trace-code-execution`, { timeout: 30000 })
|
|
33
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
37
34
|
```
|
|
38
35
|
|
|
39
36
|
3. **Extract structured context**:
|
|
@@ -296,15 +293,12 @@
|
|
|
296
293
|
|
|
297
294
|
2. **Explore codebase** (use CLI analysis tools):
|
|
298
295
|
```
|
|
299
|
-
|
|
300
|
-
cmd: `maestro delegate "PURPOSE: Explore codebase for {requirement}
|
|
296
|
+
shell_exec(`maestro delegate "PURPOSE: Explore codebase for {requirement}
|
|
301
297
|
TASK: • Identify relevant files • Find existing patterns • Locate integration points
|
|
302
298
|
CONTEXT: @**/* | Memory: {requirement}
|
|
303
299
|
EXPECTED: Exploration findings with file paths and patterns
|
|
304
|
-
CONSTRAINTS: Read-only analysis" --role explore --mode analysis --rule analysis-trace-code-execution`,
|
|
305
|
-
|
|
306
|
-
})
|
|
307
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
300
|
+
CONSTRAINTS: Read-only analysis" --role explore --mode analysis --rule analysis-trace-code-execution`, { timeout: 30000 })
|
|
301
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
308
302
|
```
|
|
309
303
|
|
|
310
304
|
3. **Generate implementation plan**:
|
|
@@ -36,17 +36,13 @@ 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
|
-
|
|
40
|
-
cmd: `maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
|
|
39
|
+
shell_exec(`maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
|
|
41
40
|
TASK: * Extract problem statement * Identify target users * Determine domain
|
|
42
41
|
* List constraints * Identify 3-5 exploration dimensions
|
|
43
42
|
TOPIC: <topic-content>
|
|
44
43
|
MODE: analysis
|
|
45
|
-
EXPECTED: JSON with: problem_statement, target_users[], domain, constraints[], exploration_dimensions[]" --role analyze --mode analysis`,
|
|
46
|
-
|
|
47
|
-
max_output_tokens: 6000
|
|
48
|
-
})
|
|
49
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
44
|
+
EXPECTED: JSON with: problem_statement, target_users[], domain, constraints[], exploration_dimensions[]" --role analyze --mode analysis`, { timeout: 30000 })
|
|
45
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
50
46
|
// NEVER skip — seed analysis result is required for context packaging
|
|
51
47
|
```
|
|
52
48
|
6. Parse result JSON
|
|
@@ -60,16 +56,12 @@ Research and codebase exploration for context gathering.
|
|
|
60
56
|
|
|
61
57
|
When project detected:
|
|
62
58
|
```
|
|
63
|
-
|
|
64
|
-
cmd: `maestro delegate "PURPOSE: Explore codebase for context
|
|
59
|
+
shell_exec(`maestro delegate "PURPOSE: Explore codebase for context
|
|
65
60
|
TASK: * Identify tech stack * Map architecture patterns * Document conventions * List integration points
|
|
66
61
|
MODE: analysis
|
|
67
62
|
CONTEXT: @**/*
|
|
68
|
-
EXPECTED: JSON with: tech_stack[], architecture_patterns[], conventions[], integration_points[]" --role explore --mode analysis`,
|
|
69
|
-
|
|
70
|
-
max_output_tokens: 6000
|
|
71
|
-
})
|
|
72
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
63
|
+
EXPECTED: JSON with: tech_stack[], architecture_patterns[], conventions[], integration_points[]" --role explore --mode analysis`, { timeout: 30000 })
|
|
64
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
73
65
|
// NEVER skip — codebase context is required for downstream roles
|
|
74
66
|
```
|
|
75
67
|
|
|
@@ -51,12 +51,8 @@ CONSTRAINTS: Only modify listed files | Follow existing patterns
|
|
|
51
51
|
|
|
52
52
|
CLI call:
|
|
53
53
|
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
yield_time_ms: 30000,
|
|
57
|
-
max_output_tokens: 6000
|
|
58
|
-
})
|
|
59
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
54
|
+
shell_exec(`maestro delegate "<prompt>" --role implement --mode write --rule development-implement-feature`, { timeout: 30000 })
|
|
55
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
60
56
|
// NEVER skip — implementation must complete before convergence check
|
|
61
57
|
```
|
|
62
58
|
|
|
@@ -36,16 +36,12 @@ 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
|
-
|
|
40
|
-
cmd: `maestro delegate "PURPOSE: Explore codebase to inform planning
|
|
39
|
+
shell_exec(`maestro delegate "PURPOSE: Explore codebase to inform planning
|
|
41
40
|
TASK: * Search for relevant patterns * Identify files to modify * Document integration points
|
|
42
41
|
MODE: analysis
|
|
43
42
|
CONTEXT: @**/*
|
|
44
|
-
EXPECTED: JSON with: relevant_files[], patterns[], integration_points[], recommendations[]" --role explore --mode analysis`,
|
|
45
|
-
|
|
46
|
-
max_output_tokens: 6000
|
|
47
|
-
})
|
|
48
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
43
|
+
EXPECTED: JSON with: relevant_files[], patterns[], integration_points[], recommendations[]" --role explore --mode analysis`, { timeout: 30000 })
|
|
44
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
49
45
|
// NEVER skip — delegate result is required for plan generation
|
|
50
46
|
```
|
|
51
47
|
5. Store results in <session>/explorations/
|
|
@@ -54,17 +50,13 @@ Codebase-informed implementation planning with complexity assessment.
|
|
|
54
50
|
|
|
55
51
|
Generate plan.json + .task/TASK-*.json:
|
|
56
52
|
```
|
|
57
|
-
|
|
58
|
-
cmd: `maestro delegate "PURPOSE: Generate implementation plan from exploration results
|
|
53
|
+
shell_exec(`maestro delegate "PURPOSE: Generate implementation plan from exploration results
|
|
59
54
|
TASK: * Create plan.json overview * Generate TASK-*.json files (2-7 tasks) * Define dependencies * Set convergence criteria
|
|
60
55
|
MODE: write
|
|
61
56
|
CONTEXT: @<session>/explorations/*.json
|
|
62
57
|
EXPECTED: Files: plan.json + .task/TASK-*.json
|
|
63
|
-
CONSTRAINTS: 2-7 tasks, include id/title/files[]/convergence.criteria/depends_on" --role implement --mode write`,
|
|
64
|
-
|
|
65
|
-
max_output_tokens: 6000
|
|
66
|
-
})
|
|
67
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
58
|
+
CONSTRAINTS: 2-7 tasks, include id/title/files[]/convergence.criteria/depends_on" --role implement --mode write`, { timeout: 30000 })
|
|
59
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
68
60
|
// NEVER skip — must wait for plan files to be written
|
|
69
61
|
```
|
|
70
62
|
|
|
@@ -61,17 +61,13 @@ Template-driven document generation with progressive dependency loading.
|
|
|
61
61
|
|
|
62
62
|
CLI generation:
|
|
63
63
|
```
|
|
64
|
-
|
|
65
|
-
cmd: `maestro delegate "PURPOSE: Generate <doc-type> document following template
|
|
64
|
+
shell_exec(`maestro delegate "PURPOSE: Generate <doc-type> document following template
|
|
66
65
|
TASK: * Load template * Apply spec config and discovery context * Integrate prior feedback * Generate all sections
|
|
67
66
|
MODE: write
|
|
68
67
|
CONTEXT: @<session>/spec/*.json @<template-path>
|
|
69
68
|
EXPECTED: Document at <output-path> with YAML frontmatter, all sections, cross-references
|
|
70
|
-
CONSTRAINTS: Follow document standards" --role implement --mode write --cd <session>`,
|
|
71
|
-
|
|
72
|
-
max_output_tokens: 6000
|
|
73
|
-
})
|
|
74
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
69
|
+
CONSTRAINTS: Follow document standards" --role implement --mode write --cd <session>`, { timeout: 30000 })
|
|
70
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
75
71
|
// NEVER skip — document must be fully written before validation
|
|
76
72
|
```
|
|
77
73
|
|
|
@@ -51,11 +51,8 @@ EXPECTED: List of findings with severity (critical/high/medium/low), file:line r
|
|
|
51
51
|
CONSTRAINTS: Focus on actionable findings only
|
|
52
52
|
```
|
|
53
53
|
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
yield_time_ms: 30000, max_output_tokens: 6000
|
|
57
|
-
})
|
|
58
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
54
|
+
shell_exec(`maestro delegate "<prompt>" --role analyze --mode analysis`, { timeout: 30000 })
|
|
55
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
59
56
|
// NEVER skip — each perspective's findings are required for aggregation
|
|
60
57
|
```
|
|
61
58
|
|
|
@@ -54,11 +54,8 @@ Build prompt per group requesting 6 enrichment fields per finding:
|
|
|
54
54
|
|
|
55
55
|
Execute via:
|
|
56
56
|
```
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
yield_time_ms: 30000, max_output_tokens: 6000
|
|
60
|
-
})
|
|
61
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
57
|
+
shell_exec(`maestro delegate "<prompt>" --role review --mode analysis --rule analysis-diagnose-bug-root-cause`, { timeout: 30000 })
|
|
58
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
62
59
|
// NEVER skip — enrichment results are required for report generation
|
|
63
60
|
```
|
|
64
61
|
Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
|
|
@@ -61,11 +61,8 @@ Build prompt with target file patterns, toolchain dedup summary, and per-dimensi
|
|
|
61
61
|
|
|
62
62
|
Execute via:
|
|
63
63
|
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
yield_time_ms: 30000, max_output_tokens: 6000
|
|
67
|
-
})
|
|
68
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
64
|
+
shell_exec(`maestro delegate "<prompt>" --role review --mode analysis --rule analysis-review-code-quality`, { timeout: 30000 })
|
|
65
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
69
66
|
// NEVER skip — semantic findings are required for aggregation
|
|
70
67
|
```
|
|
71
68
|
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`.
|
|
@@ -37,19 +37,15 @@ For each batch, use CLI tool for implementation:
|
|
|
37
37
|
**Per-batch delegation**:
|
|
38
38
|
|
|
39
39
|
```
|
|
40
|
-
|
|
41
|
-
cmd: `maestro delegate "PURPOSE: Apply tech debt fixes in batch; success = all items fixed without breaking changes
|
|
40
|
+
shell_exec(`maestro delegate "PURPOSE: Apply tech debt fixes in batch; success = all items fixed without breaking changes
|
|
42
41
|
TASK: <batch-type-specific-tasks>
|
|
43
42
|
MODE: write
|
|
44
43
|
CONTEXT: @<worktree-path>/**/* | Memory: Remediation plan context
|
|
45
44
|
EXPECTED: Code changes that fix debt items, maintain backward compatibility, pass existing tests
|
|
46
45
|
CONSTRAINTS: Minimal changes only | No new features | No suppressions | Read files before modifying
|
|
47
46
|
Batch type: <refactor|update-deps|add-tests|add-docs|restructure>
|
|
48
|
-
Items: <list-of-items-with-file-paths-and-descriptions>" --role implement --mode write --cd "<worktree-path>"`,
|
|
49
|
-
|
|
50
|
-
max_output_tokens: 6000
|
|
51
|
-
})
|
|
52
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
47
|
+
Items: <list-of-items-with-file-paths-and-descriptions>" --role implement --mode write --cd "<worktree-path>"`, { timeout: 30000 })
|
|
48
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
53
49
|
// NEVER skip — must wait for batch fix to complete before next batch or validation
|
|
54
50
|
```
|
|
55
51
|
|
|
@@ -63,11 +63,8 @@ Multi-dimension tech debt scanner. Scan codebase across 5 dimensions (code, arch
|
|
|
63
63
|
|
|
64
64
|
**Delegate execution protocol** (applies to ALL fan-out CLI calls):
|
|
65
65
|
```
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
yield_time_ms: 30000, max_output_tokens: 6000
|
|
69
|
-
})
|
|
70
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
66
|
+
shell_exec(`maestro delegate "<prompt>" --role <role> --mode analysis`, { timeout: 30000 })
|
|
67
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
71
68
|
// NEVER skip — each fan-out result is required for fan-in merge
|
|
72
69
|
```
|
|
73
70
|
|
|
@@ -58,17 +58,13 @@ Execute 4-layer validation (all commands in worktree):
|
|
|
58
58
|
**Auto-fix attempt** (when total_regressions <= 3):
|
|
59
59
|
- Use CLI tool to fix regressions in worktree:
|
|
60
60
|
```
|
|
61
|
-
|
|
62
|
-
cmd: `cd "${worktreePath}" && maestro delegate "PURPOSE: Fix regressions found in validation
|
|
61
|
+
shell_exec(`cd "${worktreePath}" && maestro delegate "PURPOSE: Fix regressions found in validation
|
|
63
62
|
TASK: ${regressionDetails}
|
|
64
63
|
MODE: write
|
|
65
64
|
CONTEXT: @${modifiedFiles.join(' @')}
|
|
66
65
|
EXPECTED: Fixed regressions
|
|
67
|
-
CONSTRAINTS: Fix only regressions | Preserve debt cleanup changes | No suppressions" --role implement --mode write`,
|
|
68
|
-
|
|
69
|
-
max_output_tokens: 6000
|
|
70
|
-
})
|
|
71
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
66
|
+
CONSTRAINTS: Fix only regressions | Preserve debt cleanup changes | No suppressions" --role implement --mode write`, { timeout: 30000 })
|
|
67
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
72
68
|
// NEVER skip — must wait for fix before re-running validation
|
|
73
69
|
```
|
|
74
70
|
- Re-run validation checks after fix attempt
|
|
@@ -61,19 +61,15 @@ Bash("<test-command> 2>&1 || true")
|
|
|
61
61
|
**Auto-fix delegation** (on failure):
|
|
62
62
|
|
|
63
63
|
```
|
|
64
|
-
|
|
65
|
-
cmd: `maestro delegate "PURPOSE: Fix test failures to achieve pass rate >= 0.95; success = all tests pass
|
|
64
|
+
shell_exec(`maestro delegate "PURPOSE: Fix test failures to achieve pass rate >= 0.95; success = all tests pass
|
|
66
65
|
TASK: • Analyze test failure output • Identify root causes • Fix test code only (not source) • Preserve test intent
|
|
67
66
|
MODE: write
|
|
68
67
|
CONTEXT: @<session>/<test-dir>/**/* | Memory: Test framework: <framework>, iteration <N>/3
|
|
69
68
|
EXPECTED: Fixed test files with: corrected assertions, proper async handling, fixed imports, maintained coverage
|
|
70
69
|
CONSTRAINTS: Only modify test files | Preserve test structure | No source code changes
|
|
71
70
|
Test failures:
|
|
72
|
-
<test-output>" --role implement --mode write --cd <session>`,
|
|
73
|
-
|
|
74
|
-
max_output_tokens: 6000
|
|
75
|
-
})
|
|
76
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
71
|
+
<test-output>" --role implement --mode write --cd <session>`, { timeout: 30000 })
|
|
72
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
77
73
|
// NEVER skip — must wait for fix to complete before re-running tests
|
|
78
74
|
```
|
|
79
75
|
|
|
@@ -63,8 +63,7 @@ For revision mode:
|
|
|
63
63
|
**CLI delegation** (medium/high complexity):
|
|
64
64
|
|
|
65
65
|
```
|
|
66
|
-
|
|
67
|
-
cmd: `maestro delegate "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
|
|
66
|
+
shell_exec(`maestro delegate "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
|
|
68
67
|
TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
|
|
69
68
|
MODE: write
|
|
70
69
|
CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
|
|
@@ -73,11 +72,8 @@ Effective patterns: <patterns-from-meta>>
|
|
|
73
72
|
EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
|
|
74
73
|
CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
|
|
75
74
|
Source files to test:
|
|
76
|
-
<file-list-with-content>" --role implement --mode write --cd <session>`,
|
|
77
|
-
|
|
78
|
-
max_output_tokens: 6000
|
|
79
|
-
})
|
|
80
|
-
// ⚠️ If session_id returned → poll write_stdin until completion (see @~/.maestro/workflows/delegate-protocol.codex.md)
|
|
75
|
+
<file-list-with-content>" --role implement --mode write --cd <session>`, { timeout: 30000 })
|
|
76
|
+
// Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
|
|
81
77
|
// NEVER skip — must wait for test files to be generated before verification
|
|
82
78
|
```
|
|
83
79
|
|
|
@@ -28,6 +28,19 @@ export interface DeviceConfig {
|
|
|
28
28
|
dtype: DtypeType;
|
|
29
29
|
batchSize: number;
|
|
30
30
|
}
|
|
31
|
+
export interface EmbeddingApiConfig {
|
|
32
|
+
baseUrl: string;
|
|
33
|
+
apiKey: string;
|
|
34
|
+
model: string;
|
|
35
|
+
dimensions?: number;
|
|
36
|
+
/** Model context window in tokens. Used for dynamic batch sizing. Default: 8192. */
|
|
37
|
+
contextLength?: number;
|
|
38
|
+
/** Fixed batch size (number of texts). Overrides dynamic batching when set. */
|
|
39
|
+
batchSize?: number;
|
|
40
|
+
concurrency?: number;
|
|
41
|
+
}
|
|
42
|
+
export declare function loadEmbeddingApiConfig(): EmbeddingApiConfig | null;
|
|
43
|
+
export declare function isApiMode(): boolean;
|
|
31
44
|
export interface RankedResult {
|
|
32
45
|
docId: string;
|
|
33
46
|
score: number;
|
|
@@ -38,7 +51,6 @@ export interface RRFSignal {
|
|
|
38
51
|
results: RankedResult[];
|
|
39
52
|
}
|
|
40
53
|
export declare function mergeRRFSignals(signals: RRFSignal[], limit: number, k?: number): RankedResult[];
|
|
41
|
-
export declare function mergeRRF(bm25Results: RankedResult[], vectorResults: RankedResult[], limit: number, k?: number, bm25Weight?: number, vectorWeight?: number): RankedResult[];
|
|
42
54
|
/**
|
|
43
55
|
* Hybrid fusion: RRF for ordering stability + BM25 magnitude for score discrimination.
|
|
44
56
|
* finalScore = alpha * rrfNorm + (1-alpha) * bm25Norm
|
|
@@ -62,7 +74,16 @@ export interface HardwareInfo {
|
|
|
62
74
|
reason: string;
|
|
63
75
|
}
|
|
64
76
|
export declare function getHardwareInfo(): Promise<HardwareInfo>;
|
|
77
|
+
export declare function getModelId(): string;
|
|
65
78
|
export declare const DEFAULT_MODEL_ID = "Xenova/multilingual-e5-small";
|
|
79
|
+
export type ModelProgressCallback = (info: {
|
|
80
|
+
status: string;
|
|
81
|
+
file?: string;
|
|
82
|
+
progress?: number;
|
|
83
|
+
loaded?: number;
|
|
84
|
+
total?: number;
|
|
85
|
+
}) => void;
|
|
86
|
+
export declare function setProgressCallback(cb: ModelProgressCallback | null): void;
|
|
66
87
|
export declare function isAvailable(): Promise<boolean>;
|
|
67
88
|
export declare function getUnavailableReason(): string | null;
|
|
68
89
|
export declare function embedTexts(texts: string[]): Promise<Float32Array[]>;
|
|
@@ -78,5 +99,5 @@ export interface DocForEmbedding {
|
|
|
78
99
|
body?: string;
|
|
79
100
|
}
|
|
80
101
|
export declare function hashDocContent(d: DocForEmbedding): string;
|
|
81
|
-
export declare function buildEmbeddingIndex(docs: DocForEmbedding[], existingIndex?: EmbeddingIndex | null): Promise<EmbeddingIndex>;
|
|
102
|
+
export declare function buildEmbeddingIndex(docs: DocForEmbedding[], existingIndex?: EmbeddingIndex | null, precomputedHashes?: string[]): Promise<EmbeddingIndex>;
|
|
82
103
|
export {};
|