oh-my-claude-sisyphus 3.1.0 → 3.2.2
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/README.md +3 -1
- package/commands/autopilot.md +131 -0
- package/commands/cancel-autopilot.md +35 -0
- package/dist/__tests__/installer.test.js +1 -1
- package/dist/__tests__/learned-skills/config.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/config.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/config.test.js +37 -0
- package/dist/__tests__/learned-skills/config.test.js.map +1 -0
- package/dist/__tests__/learned-skills/detector.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/detector.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/detector.test.js +99 -0
- package/dist/__tests__/learned-skills/detector.test.js.map +1 -0
- package/dist/__tests__/learned-skills/finder.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/finder.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/finder.test.js +59 -0
- package/dist/__tests__/learned-skills/finder.test.js.map +1 -0
- package/dist/__tests__/learned-skills/loader.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/loader.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/loader.test.js +69 -0
- package/dist/__tests__/learned-skills/loader.test.js.map +1 -0
- package/dist/__tests__/learned-skills/parser.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/parser.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/parser.test.js +81 -0
- package/dist/__tests__/learned-skills/parser.test.js.map +1 -0
- package/dist/__tests__/learned-skills/validator.test.d.ts +2 -0
- package/dist/__tests__/learned-skills/validator.test.d.ts.map +1 -0
- package/dist/__tests__/learned-skills/validator.test.js +85 -0
- package/dist/__tests__/learned-skills/validator.test.js.map +1 -0
- package/dist/__tests__/skills.test.js +8 -4
- package/dist/__tests__/skills.test.js.map +1 -1
- package/dist/agents/definitions.d.ts +32 -0
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +93 -1
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/delegation-validator.d.ts +31 -0
- package/dist/agents/delegation-validator.d.ts.map +1 -0
- package/dist/agents/delegation-validator.js +75 -0
- package/dist/agents/delegation-validator.js.map +1 -0
- package/dist/agents/document-writer.d.ts +11 -0
- package/dist/agents/document-writer.d.ts.map +1 -0
- package/dist/agents/document-writer.js +209 -0
- package/dist/agents/document-writer.js.map +1 -0
- package/dist/agents/frontend-engineer.d.ts +11 -0
- package/dist/agents/frontend-engineer.d.ts.map +1 -0
- package/dist/agents/frontend-engineer.js +115 -0
- package/dist/agents/frontend-engineer.js.map +1 -0
- package/dist/agents/librarian.d.ts +12 -0
- package/dist/agents/librarian.d.ts.map +1 -0
- package/dist/agents/librarian.js +103 -0
- package/dist/agents/librarian.js.map +1 -0
- package/dist/agents/metis.d.ts +12 -0
- package/dist/agents/metis.d.ts.map +1 -0
- package/dist/agents/metis.js +117 -0
- package/dist/agents/metis.js.map +1 -0
- package/dist/agents/momus.d.ts +12 -0
- package/dist/agents/momus.d.ts.map +1 -0
- package/dist/agents/momus.js +128 -0
- package/dist/agents/momus.js.map +1 -0
- package/dist/agents/multimodal-looker.d.ts +11 -0
- package/dist/agents/multimodal-looker.d.ts.map +1 -0
- package/dist/agents/multimodal-looker.js +70 -0
- package/dist/agents/multimodal-looker.js.map +1 -0
- package/dist/agents/oracle.d.ts +13 -0
- package/dist/agents/oracle.d.ts.map +1 -0
- package/dist/agents/oracle.js +191 -0
- package/dist/agents/oracle.js.map +1 -0
- package/dist/agents/orchestrator-sisyphus.d.ts +11 -0
- package/dist/agents/orchestrator-sisyphus.d.ts.map +1 -0
- package/dist/agents/orchestrator-sisyphus.js +115 -0
- package/dist/agents/orchestrator-sisyphus.js.map +1 -0
- package/dist/agents/prometheus.d.ts +12 -0
- package/dist/agents/prometheus.d.ts.map +1 -0
- package/dist/agents/prometheus.js +195 -0
- package/dist/agents/prometheus.js.map +1 -0
- package/dist/agents/prompt-generator.d.ts +95 -0
- package/dist/agents/prompt-generator.d.ts.map +1 -0
- package/dist/agents/prompt-generator.js +140 -0
- package/dist/agents/prompt-generator.js.map +1 -0
- package/dist/agents/prompt-sections/index.d.ts +44 -0
- package/dist/agents/prompt-sections/index.d.ts.map +1 -0
- package/dist/agents/prompt-sections/index.js +194 -0
- package/dist/agents/prompt-sections/index.js.map +1 -0
- package/dist/agents/sisyphus-junior.d.ts +12 -0
- package/dist/agents/sisyphus-junior.d.ts.map +1 -0
- package/dist/agents/sisyphus-junior.js +93 -0
- package/dist/agents/sisyphus-junior.js.map +1 -0
- package/dist/agents/types.d.ts +2 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js.map +1 -1
- package/dist/cli/index.js +0 -0
- package/dist/features/background-agent/manager.d.ts +10 -1
- package/dist/features/background-agent/manager.d.ts.map +1 -1
- package/dist/features/background-agent/manager.js +79 -11
- package/dist/features/background-agent/manager.js.map +1 -1
- package/dist/features/background-agent/types.d.ts +30 -1
- package/dist/features/background-agent/types.d.ts.map +1 -1
- package/dist/features/delegation-categories/index.d.ts +116 -0
- package/dist/features/delegation-categories/index.d.ts.map +1 -0
- package/dist/features/delegation-categories/index.js +287 -0
- package/dist/features/delegation-categories/index.js.map +1 -0
- package/dist/features/delegation-categories/test-categories.d.ts +7 -0
- package/dist/features/delegation-categories/test-categories.d.ts.map +1 -0
- package/dist/features/delegation-categories/test-categories.js +88 -0
- package/dist/features/delegation-categories/test-categories.js.map +1 -0
- package/dist/features/delegation-categories/types.d.ts +51 -0
- package/dist/features/delegation-categories/types.d.ts.map +1 -0
- package/dist/features/delegation-categories/types.js +8 -0
- package/dist/features/delegation-categories/types.js.map +1 -0
- package/dist/features/index.d.ts +2 -0
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +10 -0
- package/dist/features/index.js.map +1 -1
- package/dist/features/model-routing/prompts/index.d.ts +2 -0
- package/dist/features/model-routing/prompts/index.d.ts.map +1 -1
- package/dist/features/model-routing/prompts/index.js +6 -0
- package/dist/features/model-routing/prompts/index.js.map +1 -1
- package/dist/features/notepad-wisdom/extractor.d.ts +30 -0
- package/dist/features/notepad-wisdom/extractor.d.ts.map +1 -0
- package/dist/features/notepad-wisdom/extractor.js +68 -0
- package/dist/features/notepad-wisdom/extractor.js.map +1 -0
- package/dist/features/notepad-wisdom/index.d.ts +39 -0
- package/dist/features/notepad-wisdom/index.d.ts.map +1 -0
- package/dist/features/notepad-wisdom/index.js +169 -0
- package/dist/features/notepad-wisdom/index.js.map +1 -0
- package/dist/features/notepad-wisdom/types.d.ts +18 -0
- package/dist/features/notepad-wisdom/types.d.ts.map +1 -0
- package/dist/features/notepad-wisdom/types.js +7 -0
- package/dist/features/notepad-wisdom/types.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/cancel.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/cancel.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/cancel.test.js +397 -0
- package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/prompts.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/prompts.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/prompts.test.js +74 -0
- package/dist/hooks/autopilot/__tests__/prompts.test.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/state.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/state.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/state.test.js +75 -0
- package/dist/hooks/autopilot/__tests__/state.test.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/summary.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/summary.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/summary.test.js +289 -0
- package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/transition.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/transition.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/transition.test.js +59 -0
- package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -0
- package/dist/hooks/autopilot/__tests__/validation.test.d.ts +2 -0
- package/dist/hooks/autopilot/__tests__/validation.test.d.ts.map +1 -0
- package/dist/hooks/autopilot/__tests__/validation.test.js +450 -0
- package/dist/hooks/autopilot/__tests__/validation.test.js.map +1 -0
- package/dist/hooks/autopilot/cancel.d.ts +42 -0
- package/dist/hooks/autopilot/cancel.d.ts.map +1 -0
- package/dist/hooks/autopilot/cancel.js +156 -0
- package/dist/hooks/autopilot/cancel.js.map +1 -0
- package/dist/hooks/autopilot/enforcement.d.ts +28 -0
- package/dist/hooks/autopilot/enforcement.d.ts.map +1 -0
- package/dist/hooks/autopilot/enforcement.js +147 -0
- package/dist/hooks/autopilot/enforcement.js.map +1 -0
- package/dist/hooks/autopilot/index.d.ts +17 -0
- package/dist/hooks/autopilot/index.d.ts.map +1 -0
- package/dist/hooks/autopilot/index.js +24 -0
- package/dist/hooks/autopilot/index.js.map +1 -0
- package/dist/hooks/autopilot/prompts.d.ts +37 -0
- package/dist/hooks/autopilot/prompts.d.ts.map +1 -0
- package/dist/hooks/autopilot/prompts.js +353 -0
- package/dist/hooks/autopilot/prompts.js.map +1 -0
- package/dist/hooks/autopilot/signals.d.ts +20 -0
- package/dist/hooks/autopilot/signals.d.ts.map +1 -0
- package/dist/hooks/autopilot/signals.js +75 -0
- package/dist/hooks/autopilot/signals.js.map +1 -0
- package/dist/hooks/autopilot/state.d.ts +67 -0
- package/dist/hooks/autopilot/state.d.ts.map +1 -0
- package/dist/hooks/autopilot/state.js +244 -0
- package/dist/hooks/autopilot/state.js.map +1 -0
- package/dist/hooks/autopilot/summary.d.ts +27 -0
- package/dist/hooks/autopilot/summary.d.ts.map +1 -0
- package/dist/hooks/autopilot/summary.js +160 -0
- package/dist/hooks/autopilot/summary.js.map +1 -0
- package/dist/hooks/autopilot/transition.d.ts +39 -0
- package/dist/hooks/autopilot/transition.d.ts.map +1 -0
- package/dist/hooks/autopilot/transition.js +216 -0
- package/dist/hooks/autopilot/transition.js.map +1 -0
- package/dist/hooks/autopilot/types.d.ts +211 -0
- package/dist/hooks/autopilot/types.d.ts.map +1 -0
- package/dist/hooks/autopilot/types.js +30 -0
- package/dist/hooks/autopilot/types.js.map +1 -0
- package/dist/hooks/autopilot/validation.d.ts +43 -0
- package/dist/hooks/autopilot/validation.d.ts.map +1 -0
- package/dist/hooks/autopilot/validation.js +191 -0
- package/dist/hooks/autopilot/validation.js.map +1 -0
- package/dist/hooks/bridge.d.ts +1 -1
- package/dist/hooks/bridge.d.ts.map +1 -1
- package/dist/hooks/bridge.js +64 -3
- package/dist/hooks/bridge.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/keyword-detector/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/index.d.ts.map +1 -1
- package/dist/hooks/keyword-detector/index.js +38 -2
- package/dist/hooks/keyword-detector/index.js.map +1 -1
- package/dist/hooks/learned-skills/config.d.ts +53 -0
- package/dist/hooks/learned-skills/config.d.ts.map +1 -0
- package/dist/hooks/learned-skills/config.js +103 -0
- package/dist/hooks/learned-skills/config.js.map +1 -0
- package/dist/hooks/learned-skills/constants.d.ts +24 -0
- package/dist/hooks/learned-skills/constants.d.ts.map +1 -0
- package/dist/hooks/learned-skills/constants.js +26 -0
- package/dist/hooks/learned-skills/constants.js.map +1 -0
- package/dist/hooks/learned-skills/detection-hook.d.ts +39 -0
- package/dist/hooks/learned-skills/detection-hook.d.ts.map +1 -0
- package/dist/hooks/learned-skills/detection-hook.js +83 -0
- package/dist/hooks/learned-skills/detection-hook.js.map +1 -0
- package/dist/hooks/learned-skills/detector.d.ts +30 -0
- package/dist/hooks/learned-skills/detector.d.ts.map +1 -0
- package/dist/hooks/learned-skills/detector.js +150 -0
- package/dist/hooks/learned-skills/detector.js.map +1 -0
- package/dist/hooks/learned-skills/finder.d.ts +21 -0
- package/dist/hooks/learned-skills/finder.d.ts.map +1 -0
- package/dist/hooks/learned-skills/finder.js +117 -0
- package/dist/hooks/learned-skills/finder.js.map +1 -0
- package/dist/hooks/learned-skills/index.d.ts +62 -0
- package/dist/hooks/learned-skills/index.d.ts.map +1 -0
- package/dist/hooks/learned-skills/index.js +137 -0
- package/dist/hooks/learned-skills/index.js.map +1 -0
- package/dist/hooks/learned-skills/loader.d.ts +20 -0
- package/dist/hooks/learned-skills/loader.d.ts.map +1 -0
- package/dist/hooks/learned-skills/loader.js +107 -0
- package/dist/hooks/learned-skills/loader.js.map +1 -0
- package/dist/hooks/learned-skills/parser.d.ts +21 -0
- package/dist/hooks/learned-skills/parser.d.ts.map +1 -0
- package/dist/hooks/learned-skills/parser.js +190 -0
- package/dist/hooks/learned-skills/parser.js.map +1 -0
- package/dist/hooks/learned-skills/promotion.d.ts +29 -0
- package/dist/hooks/learned-skills/promotion.d.ts.map +1 -0
- package/dist/hooks/learned-skills/promotion.js +87 -0
- package/dist/hooks/learned-skills/promotion.js.map +1 -0
- package/dist/hooks/learned-skills/types.d.ts +109 -0
- package/dist/hooks/learned-skills/types.d.ts.map +1 -0
- package/dist/hooks/learned-skills/types.js +8 -0
- package/dist/hooks/learned-skills/types.js.map +1 -0
- package/dist/hooks/learned-skills/validator.d.ts +15 -0
- package/dist/hooks/learned-skills/validator.d.ts.map +1 -0
- package/dist/hooks/learned-skills/validator.js +87 -0
- package/dist/hooks/learned-skills/validator.js.map +1 -0
- package/dist/hooks/learned-skills/writer.d.ts +27 -0
- package/dist/hooks/learned-skills/writer.d.ts.map +1 -0
- package/dist/hooks/learned-skills/writer.js +126 -0
- package/dist/hooks/learned-skills/writer.js.map +1 -0
- package/dist/hooks/mnemosyne/config.d.ts +53 -0
- package/dist/hooks/mnemosyne/config.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/config.js +103 -0
- package/dist/hooks/mnemosyne/config.js.map +1 -0
- package/dist/hooks/mnemosyne/constants.d.ts +24 -0
- package/dist/hooks/mnemosyne/constants.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/constants.js +26 -0
- package/dist/hooks/mnemosyne/constants.js.map +1 -0
- package/dist/hooks/mnemosyne/detection-hook.d.ts +39 -0
- package/dist/hooks/mnemosyne/detection-hook.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/detection-hook.js +83 -0
- package/dist/hooks/mnemosyne/detection-hook.js.map +1 -0
- package/dist/hooks/mnemosyne/detector.d.ts +30 -0
- package/dist/hooks/mnemosyne/detector.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/detector.js +150 -0
- package/dist/hooks/mnemosyne/detector.js.map +1 -0
- package/dist/hooks/mnemosyne/finder.d.ts +21 -0
- package/dist/hooks/mnemosyne/finder.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/finder.js +117 -0
- package/dist/hooks/mnemosyne/finder.js.map +1 -0
- package/dist/hooks/mnemosyne/index.d.ts +62 -0
- package/dist/hooks/mnemosyne/index.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/index.js +137 -0
- package/dist/hooks/mnemosyne/index.js.map +1 -0
- package/dist/hooks/mnemosyne/loader.d.ts +20 -0
- package/dist/hooks/mnemosyne/loader.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/loader.js +113 -0
- package/dist/hooks/mnemosyne/loader.js.map +1 -0
- package/dist/hooks/mnemosyne/parser.d.ts +21 -0
- package/dist/hooks/mnemosyne/parser.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/parser.js +190 -0
- package/dist/hooks/mnemosyne/parser.js.map +1 -0
- package/dist/hooks/mnemosyne/promotion.d.ts +29 -0
- package/dist/hooks/mnemosyne/promotion.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/promotion.js +87 -0
- package/dist/hooks/mnemosyne/promotion.js.map +1 -0
- package/dist/hooks/mnemosyne/types.d.ts +109 -0
- package/dist/hooks/mnemosyne/types.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/types.js +8 -0
- package/dist/hooks/mnemosyne/types.js.map +1 -0
- package/dist/hooks/mnemosyne/validator.d.ts +15 -0
- package/dist/hooks/mnemosyne/validator.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/validator.js +87 -0
- package/dist/hooks/mnemosyne/validator.js.map +1 -0
- package/dist/hooks/mnemosyne/writer.d.ts +27 -0
- package/dist/hooks/mnemosyne/writer.d.ts.map +1 -0
- package/dist/hooks/mnemosyne/writer.js +126 -0
- package/dist/hooks/mnemosyne/writer.js.map +1 -0
- package/dist/hooks/persistent-mode/index.d.ts +6 -2
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +33 -3
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/sisyphus-orchestrator/constants.d.ts +23 -0
- package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +1 -0
- package/dist/hooks/sisyphus-orchestrator/constants.js +142 -0
- package/dist/hooks/sisyphus-orchestrator/constants.js.map +1 -0
- package/dist/hooks/sisyphus-orchestrator/index.d.ts +113 -0
- package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +1 -0
- package/dist/hooks/sisyphus-orchestrator/index.js +309 -0
- package/dist/hooks/sisyphus-orchestrator/index.js.map +1 -0
- package/dist/hooks/todo-continuation/index.d.ts +31 -1
- package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
- package/dist/hooks/todo-continuation/index.js +38 -1
- package/dist/hooks/todo-continuation/index.js.map +1 -1
- package/dist/hud/elements/autopilot.d.ts +29 -0
- package/dist/hud/elements/autopilot.d.ts.map +1 -0
- package/dist/hud/elements/autopilot.js +97 -0
- package/dist/hud/elements/autopilot.js.map +1 -0
- package/dist/hud/elements/index.d.ts +1 -0
- package/dist/hud/elements/index.d.ts.map +1 -1
- package/dist/hud/elements/index.js +1 -0
- package/dist/hud/elements/index.js.map +1 -1
- package/dist/hud/index.js +7 -5
- package/dist/hud/index.js.map +1 -1
- package/dist/hud/omc-state.d.ts +7 -0
- package/dist/hud/omc-state.d.ts.map +1 -1
- package/dist/hud/omc-state.js +39 -1
- package/dist/hud/omc-state.js.map +1 -1
- package/dist/hud/render.d.ts.map +1 -1
- package/dist/hud/render.js +7 -0
- package/dist/hud/render.js.map +1 -1
- package/dist/hud/sisyphus-state.d.ts +31 -0
- package/dist/hud/sisyphus-state.d.ts.map +1 -0
- package/dist/hud/sisyphus-state.js +163 -0
- package/dist/hud/sisyphus-state.js.map +1 -0
- package/dist/hud/types.d.ts +5 -0
- package/dist/hud/types.d.ts.map +1 -1
- package/dist/hud/types.js +6 -0
- package/dist/hud/types.js.map +1 -1
- package/dist/installer/index.d.ts +1 -1
- package/dist/installer/index.js +3 -3
- package/dist/installer/index.js.map +1 -1
- package/dist/tools/diagnostics/index.d.ts +29 -0
- package/dist/tools/diagnostics/index.d.ts.map +1 -0
- package/dist/tools/diagnostics/index.js +118 -0
- package/dist/tools/diagnostics/index.js.map +1 -0
- package/dist/tools/diagnostics/lsp-aggregator.d.ts +26 -0
- package/dist/tools/diagnostics/lsp-aggregator.d.ts.map +1 -0
- package/dist/tools/diagnostics/lsp-aggregator.js +99 -0
- package/dist/tools/diagnostics/lsp-aggregator.js.map +1 -0
- package/dist/tools/diagnostics/tsc-runner.d.ts +26 -0
- package/dist/tools/diagnostics/tsc-runner.d.ts.map +1 -0
- package/dist/tools/diagnostics/tsc-runner.js +70 -0
- package/dist/tools/diagnostics/tsc-runner.js.map +1 -0
- package/dist/tools/lsp-tools.d.ts +10 -0
- package/dist/tools/lsp-tools.d.ts.map +1 -1
- package/dist/tools/lsp-tools.js +43 -1
- package/dist/tools/lsp-tools.js.map +1 -1
- package/dist/tools/resume-session.d.ts +63 -0
- package/dist/tools/resume-session.d.ts.map +1 -0
- package/dist/tools/resume-session.js +106 -0
- package/dist/tools/resume-session.js.map +1 -0
- package/dist/utils/__tests__/paths.test.d.ts +2 -0
- package/dist/utils/__tests__/paths.test.d.ts.map +1 -0
- package/dist/utils/__tests__/paths.test.js +88 -0
- package/dist/utils/__tests__/paths.test.js.map +1 -0
- package/dist/utils/paths.d.ts +32 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +55 -0
- package/dist/utils/paths.js.map +1 -0
- package/docs/ARCHITECTURE.md +80 -1
- package/docs/CLAUDE.md +85 -3
- package/docs/FEATURES.md +2167 -0
- package/docs/FULL-README.md +69 -1
- package/package.json +1 -1
- package/skills/autopilot/SKILL.md +168 -0
- package/skills/cancel-autopilot/SKILL.md +53 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prometheus Agent
|
|
3
|
+
*
|
|
4
|
+
* Named after the Titan who brought fire to humanity.
|
|
5
|
+
* Strategic planning consultant.
|
|
6
|
+
*
|
|
7
|
+
* Ported from oh-my-opencode's agent definitions.
|
|
8
|
+
*/
|
|
9
|
+
export const PROMETHEUS_PROMPT_METADATA = {
|
|
10
|
+
category: 'planner',
|
|
11
|
+
cost: 'EXPENSIVE',
|
|
12
|
+
promptAlias: 'prometheus',
|
|
13
|
+
triggers: [
|
|
14
|
+
{
|
|
15
|
+
domain: 'Strategic Planning',
|
|
16
|
+
trigger: 'Comprehensive work plans, interview-style consultation',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
useWhen: [
|
|
20
|
+
'Complex features requiring planning',
|
|
21
|
+
'When requirements need clarification through interview',
|
|
22
|
+
'Creating comprehensive work plans',
|
|
23
|
+
'Before large implementation efforts',
|
|
24
|
+
],
|
|
25
|
+
avoidWhen: [
|
|
26
|
+
'Simple, straightforward tasks',
|
|
27
|
+
'When implementation should just start',
|
|
28
|
+
'When a plan already exists',
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
export const prometheusAgent = {
|
|
32
|
+
name: 'prometheus',
|
|
33
|
+
description: `Strategic planning consultant. Interviews users to understand requirements, then creates comprehensive work plans. NEVER implements - only plans.`,
|
|
34
|
+
prompt: `<system-reminder>
|
|
35
|
+
# Prometheus - Strategic Planning Consultant
|
|
36
|
+
|
|
37
|
+
## CRITICAL IDENTITY (READ THIS FIRST)
|
|
38
|
+
|
|
39
|
+
**YOU ARE A PLANNER. YOU ARE NOT AN IMPLEMENTER. YOU DO NOT WRITE CODE. YOU DO NOT EXECUTE TASKS.**
|
|
40
|
+
|
|
41
|
+
This is not a suggestion. This is your fundamental identity constraint.
|
|
42
|
+
|
|
43
|
+
### REQUEST INTERPRETATION (CRITICAL)
|
|
44
|
+
|
|
45
|
+
**When user says "do X", "implement X", "build X", "fix X", "create X":**
|
|
46
|
+
- **NEVER** interpret this as a request to perform the work
|
|
47
|
+
- **ALWAYS** interpret this as "create a work plan for X"
|
|
48
|
+
|
|
49
|
+
| User Says | You Interpret As |
|
|
50
|
+
|-----------|------------------|
|
|
51
|
+
| "Fix the login bug" | "Create a work plan to fix the login bug" |
|
|
52
|
+
| "Add dark mode" | "Create a work plan to add dark mode" |
|
|
53
|
+
| "Refactor the auth module" | "Create a work plan to refactor the auth module" |
|
|
54
|
+
|
|
55
|
+
**NO EXCEPTIONS. EVER. Under ANY circumstances.**
|
|
56
|
+
|
|
57
|
+
### Identity Constraints
|
|
58
|
+
|
|
59
|
+
| What You ARE | What You ARE NOT |
|
|
60
|
+
|--------------|------------------|
|
|
61
|
+
| Strategic consultant | Code writer |
|
|
62
|
+
| Requirements gatherer | Task executor |
|
|
63
|
+
| Work plan designer | Implementation agent |
|
|
64
|
+
| Interview conductor | File modifier (except .sisyphus/*.md) |
|
|
65
|
+
|
|
66
|
+
**FORBIDDEN ACTIONS:**
|
|
67
|
+
- Writing code files (.ts, .js, .py, .go, etc.)
|
|
68
|
+
- Editing source code
|
|
69
|
+
- Running implementation commands
|
|
70
|
+
- Any action that "does the work" instead of "planning the work"
|
|
71
|
+
|
|
72
|
+
**YOUR ONLY OUTPUTS:**
|
|
73
|
+
- Questions to clarify requirements
|
|
74
|
+
- Research via explore/librarian agents
|
|
75
|
+
- Work plans saved to \`.sisyphus/plans/*.md\`
|
|
76
|
+
- Drafts saved to \`.sisyphus/drafts/*.md\`
|
|
77
|
+
</system-reminder>
|
|
78
|
+
|
|
79
|
+
You are Prometheus, the strategic planning consultant. Named after the Titan who brought fire to humanity, you bring foresight and structure to complex work through thoughtful consultation.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
# PHASE 1: INTERVIEW MODE (DEFAULT)
|
|
84
|
+
|
|
85
|
+
## Step 0: Intent Classification (EVERY request)
|
|
86
|
+
|
|
87
|
+
Before diving into consultation, classify the work intent:
|
|
88
|
+
|
|
89
|
+
| Intent | Signal | Interview Focus |
|
|
90
|
+
|--------|--------|-----------------|
|
|
91
|
+
| **Trivial/Simple** | Quick fix, small change | Fast turnaround: Quick questions, propose action |
|
|
92
|
+
| **Refactoring** | "refactor", "restructure" | Safety focus: Test coverage, risk tolerance |
|
|
93
|
+
| **Build from Scratch** | New feature, greenfield | Discovery focus: Explore patterns first |
|
|
94
|
+
| **Mid-sized Task** | Scoped feature | Boundary focus: Clear deliverables, exclusions |
|
|
95
|
+
|
|
96
|
+
## When to Use Research Agents
|
|
97
|
+
|
|
98
|
+
| Situation | Action |
|
|
99
|
+
|-----------|--------|
|
|
100
|
+
| User mentions unfamiliar technology | \`librarian\`: Find official docs |
|
|
101
|
+
| User wants to modify existing code | \`explore\`: Find current implementation |
|
|
102
|
+
| User describes new feature | \`explore\`: Find similar features in codebase |
|
|
103
|
+
|
|
104
|
+
## Context-Aware Interview Mode (CRITICAL)
|
|
105
|
+
|
|
106
|
+
If you receive **PRE-GATHERED CONTEXT** from the orchestrator (look for "Pre-Gathered Codebase Context" section in your prompt):
|
|
107
|
+
|
|
108
|
+
1. **DO NOT** ask questions that the context already answers
|
|
109
|
+
2. **DO** use the context to inform your interview
|
|
110
|
+
3. **ONLY** ask questions about user preferences, NOT codebase facts
|
|
111
|
+
|
|
112
|
+
### Question Classification (Before Asking ANY Question)
|
|
113
|
+
|
|
114
|
+
| Type | Example | Ask User? |
|
|
115
|
+
|------|---------|-----------|
|
|
116
|
+
| **Codebase fact** | "What patterns exist?" | NO - use provided context |
|
|
117
|
+
| **Codebase fact** | "Where is X implemented?" | NO - use provided context |
|
|
118
|
+
| **Codebase fact** | "What's the current architecture?" | NO - use provided context |
|
|
119
|
+
| **Codebase fact** | "What files are involved?" | NO - use provided context |
|
|
120
|
+
| **Preference** | "Should we prioritize speed or quality?" | YES - ask user |
|
|
121
|
+
| **Requirement** | "What's the deadline?" | YES - ask user |
|
|
122
|
+
| **Scope** | "Should this include feature Y?" | YES - ask user |
|
|
123
|
+
| **Constraint** | "Are there performance requirements?" | YES - ask user |
|
|
124
|
+
| **Ownership** | "Who will maintain this?" | YES - ask user |
|
|
125
|
+
| **Risk tolerance** | "How much refactoring is acceptable?" | YES - ask user |
|
|
126
|
+
|
|
127
|
+
### If Context NOT Provided
|
|
128
|
+
|
|
129
|
+
If the orchestrator did NOT provide pre-gathered context:
|
|
130
|
+
1. Use \`explore\` agent yourself to gather codebase context FIRST
|
|
131
|
+
2. THEN ask only user-preference questions
|
|
132
|
+
3. **Never burden the user with questions the codebase can answer**
|
|
133
|
+
|
|
134
|
+
### Example Good vs Bad Questions
|
|
135
|
+
|
|
136
|
+
| BAD (asks user about codebase) | GOOD (asks user about preferences) |
|
|
137
|
+
|--------------------------------|-------------------------------------|
|
|
138
|
+
| "Where is auth implemented?" | "What auth method do you prefer (OAuth, JWT, session)?" |
|
|
139
|
+
| "What patterns does the codebase use?" | "What's your timeline for this feature?" |
|
|
140
|
+
| "How many files will this touch?" | "Should we prioritize backward compatibility?" |
|
|
141
|
+
| "What's the test coverage?" | "What's your risk tolerance for this change?" |
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
# PHASE 2: PLAN GENERATION TRIGGER
|
|
146
|
+
|
|
147
|
+
ONLY transition to plan generation when user says:
|
|
148
|
+
- "Make it into a work plan!"
|
|
149
|
+
- "Save it as a file"
|
|
150
|
+
- "Generate the plan" / "Create the work plan"
|
|
151
|
+
|
|
152
|
+
## Pre-Generation: Metis Consultation (MANDATORY)
|
|
153
|
+
|
|
154
|
+
**BEFORE generating the plan**, summon Metis to catch what you might have missed.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
# PHASE 3: PLAN GENERATION
|
|
159
|
+
|
|
160
|
+
## Plan Structure
|
|
161
|
+
|
|
162
|
+
Generate plan to: \`.sisyphus/plans/{name}.md\`
|
|
163
|
+
|
|
164
|
+
Include:
|
|
165
|
+
- Context (Original Request, Interview Summary, Research Findings)
|
|
166
|
+
- Work Objectives (Core Objective, Deliverables, Definition of Done)
|
|
167
|
+
- Must Have / Must NOT Have (Guardrails)
|
|
168
|
+
- Task Flow and Dependencies
|
|
169
|
+
- Detailed TODOs with acceptance criteria
|
|
170
|
+
- Commit Strategy
|
|
171
|
+
- Success Criteria
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
# BEHAVIORAL SUMMARY
|
|
176
|
+
|
|
177
|
+
| Phase | Trigger | Behavior |
|
|
178
|
+
|-------|---------|----------|
|
|
179
|
+
| **Interview Mode** | Default state | Consult, research, discuss. NO plan generation. |
|
|
180
|
+
| **Pre-Generation** | "Make it into a work plan" | Summon Metis → Ask final questions |
|
|
181
|
+
| **Plan Generation** | After pre-generation complete | Generate plan, optionally loop through Momus |
|
|
182
|
+
| **Handoff** | Plan saved | Tell user "Plan saved. Start implementing when ready." |
|
|
183
|
+
|
|
184
|
+
## Key Principles
|
|
185
|
+
|
|
186
|
+
1. **Interview First** - Understand before planning
|
|
187
|
+
2. **Research-Backed Advice** - Use agents to provide evidence-based recommendations
|
|
188
|
+
3. **User Controls Transition** - NEVER generate plan until explicitly requested
|
|
189
|
+
4. **Metis Before Plan** - Always catch gaps before committing to plan
|
|
190
|
+
5. **Clear Handoff** - Tell user the plan is ready to implement`,
|
|
191
|
+
tools: ['Read', 'Write', 'Edit', 'Grep', 'Glob'],
|
|
192
|
+
model: 'opus',
|
|
193
|
+
metadata: PROMETHEUS_PROMPT_METADATA,
|
|
194
|
+
};
|
|
195
|
+
//# sourceMappingURL=prometheus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prometheus.js","sourceRoot":"","sources":["../../src/agents/prometheus.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAAwB;IAC7D,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EAAE,wDAAwD;SAClE;KACF;IACD,OAAO,EAAE;QACP,qCAAqC;QACrC,wDAAwD;QACxD,mCAAmC;QACnC,qCAAqC;KACtC;IACD,SAAS,EAAE;QACT,+BAA+B;QAC/B,uCAAuC;QACvC,4BAA4B;KAC7B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,mJAAmJ;IAChK,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEA4JsD;IAC9D,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAChD,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,0BAA0B;CACrC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic Prompt Generator for Oh-My-Claude-Sisyphus
|
|
3
|
+
*
|
|
4
|
+
* Generates orchestrator prompts dynamically from agent metadata.
|
|
5
|
+
* Adding a new agent to definitions.ts automatically includes it in the generated prompt.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentConfig } from './types.js';
|
|
8
|
+
import { buildToolSelectionSection } from './prompt-sections/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Options for controlling what sections are included in generated prompt
|
|
11
|
+
*/
|
|
12
|
+
export interface GeneratorOptions {
|
|
13
|
+
/** Include agent registry section (default: true) */
|
|
14
|
+
includeAgents?: boolean;
|
|
15
|
+
/** Include trigger table section (default: true) */
|
|
16
|
+
includeTriggers?: boolean;
|
|
17
|
+
/** Include tool selection guidance (default: true) */
|
|
18
|
+
includeTools?: boolean;
|
|
19
|
+
/** Include delegation matrix (default: true) */
|
|
20
|
+
includeDelegationTable?: boolean;
|
|
21
|
+
/** Include orchestration principles (default: true) */
|
|
22
|
+
includePrinciples?: boolean;
|
|
23
|
+
/** Include workflow section (default: true) */
|
|
24
|
+
includeWorkflow?: boolean;
|
|
25
|
+
/** Include critical rules (default: true) */
|
|
26
|
+
includeRules?: boolean;
|
|
27
|
+
/** Include completion checklist (default: true) */
|
|
28
|
+
includeChecklist?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Generate complete orchestrator prompt from agent definitions
|
|
32
|
+
*
|
|
33
|
+
* @param agents - Array of agent configurations
|
|
34
|
+
* @param options - Options controlling which sections to include
|
|
35
|
+
* @returns Generated orchestrator prompt string
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import { getAgentDefinitions } from './definitions.js';
|
|
40
|
+
* import { generateOrchestratorPrompt } from './prompt-generator.js';
|
|
41
|
+
*
|
|
42
|
+
* const agents = Object.values(getAgentDefinitions()).map(def => ({
|
|
43
|
+
* name: def.name,
|
|
44
|
+
* description: def.description,
|
|
45
|
+
* prompt: def.prompt,
|
|
46
|
+
* tools: def.tools,
|
|
47
|
+
* model: def.model,
|
|
48
|
+
* metadata: def.metadata
|
|
49
|
+
* }));
|
|
50
|
+
*
|
|
51
|
+
* const prompt = generateOrchestratorPrompt(agents);
|
|
52
|
+
* console.log(prompt);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function generateOrchestratorPrompt(agents: AgentConfig[], options?: GeneratorOptions): string;
|
|
56
|
+
/**
|
|
57
|
+
* Build agent section only (for embedding in other prompts)
|
|
58
|
+
*/
|
|
59
|
+
export declare function buildAgentSection(agents: AgentConfig[]): string;
|
|
60
|
+
/**
|
|
61
|
+
* Build triggers section only
|
|
62
|
+
*/
|
|
63
|
+
export declare function buildTriggersSection(agents: AgentConfig[]): string;
|
|
64
|
+
/**
|
|
65
|
+
* Build tool selection section only (alias for buildToolSelectionSection from prompt-sections)
|
|
66
|
+
*/
|
|
67
|
+
export { buildToolSelectionSection };
|
|
68
|
+
/**
|
|
69
|
+
* Build delegation table section only
|
|
70
|
+
*/
|
|
71
|
+
export declare function buildDelegationTableSection(agents: AgentConfig[]): string;
|
|
72
|
+
/**
|
|
73
|
+
* Convert agent definitions record to array of AgentConfig for generation
|
|
74
|
+
*
|
|
75
|
+
* @param definitions - Record of agent definitions from getAgentDefinitions()
|
|
76
|
+
* @returns Array of AgentConfig suitable for prompt generation
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* import { getAgentDefinitions } from './definitions.js';
|
|
81
|
+
* import { convertDefinitionsToConfigs, generateOrchestratorPrompt } from './prompt-generator.js';
|
|
82
|
+
*
|
|
83
|
+
* const definitions = getAgentDefinitions();
|
|
84
|
+
* const agents = convertDefinitionsToConfigs(definitions);
|
|
85
|
+
* const prompt = generateOrchestratorPrompt(agents);
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare function convertDefinitionsToConfigs(definitions: Record<string, {
|
|
89
|
+
description: string;
|
|
90
|
+
prompt: string;
|
|
91
|
+
tools: string[];
|
|
92
|
+
model?: string;
|
|
93
|
+
metadata?: any;
|
|
94
|
+
}>): AgentConfig[];
|
|
95
|
+
//# sourceMappingURL=prompt-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-generator.d.ts","sourceRoot":"","sources":["../../src/agents/prompt-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAIL,yBAAyB,EAM1B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gDAAgD;IAChD,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,WAAW,EAAE,EACrB,OAAO,CAAC,EAAE,gBAAgB,GACzB,MAAM,CAuDR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAE/D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAEzE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC,GACD,WAAW,EAAE,CASf"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic Prompt Generator for Oh-My-Claude-Sisyphus
|
|
3
|
+
*
|
|
4
|
+
* Generates orchestrator prompts dynamically from agent metadata.
|
|
5
|
+
* Adding a new agent to definitions.ts automatically includes it in the generated prompt.
|
|
6
|
+
*/
|
|
7
|
+
import { buildHeader, buildAgentRegistry, buildTriggerTable, buildToolSelectionSection, buildDelegationMatrix, buildOrchestrationPrinciples, buildWorkflow, buildCriticalRules, buildCompletionChecklist } from './prompt-sections/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Default generator options (all sections enabled)
|
|
10
|
+
*/
|
|
11
|
+
const DEFAULT_OPTIONS = {
|
|
12
|
+
includeAgents: true,
|
|
13
|
+
includeTriggers: true,
|
|
14
|
+
includeTools: true,
|
|
15
|
+
includeDelegationTable: true,
|
|
16
|
+
includePrinciples: true,
|
|
17
|
+
includeWorkflow: true,
|
|
18
|
+
includeRules: true,
|
|
19
|
+
includeChecklist: true
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Generate complete orchestrator prompt from agent definitions
|
|
23
|
+
*
|
|
24
|
+
* @param agents - Array of agent configurations
|
|
25
|
+
* @param options - Options controlling which sections to include
|
|
26
|
+
* @returns Generated orchestrator prompt string
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import { getAgentDefinitions } from './definitions.js';
|
|
31
|
+
* import { generateOrchestratorPrompt } from './prompt-generator.js';
|
|
32
|
+
*
|
|
33
|
+
* const agents = Object.values(getAgentDefinitions()).map(def => ({
|
|
34
|
+
* name: def.name,
|
|
35
|
+
* description: def.description,
|
|
36
|
+
* prompt: def.prompt,
|
|
37
|
+
* tools: def.tools,
|
|
38
|
+
* model: def.model,
|
|
39
|
+
* metadata: def.metadata
|
|
40
|
+
* }));
|
|
41
|
+
*
|
|
42
|
+
* const prompt = generateOrchestratorPrompt(agents);
|
|
43
|
+
* console.log(prompt);
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export function generateOrchestratorPrompt(agents, options) {
|
|
47
|
+
const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
48
|
+
const sections = [];
|
|
49
|
+
// Always include header
|
|
50
|
+
sections.push(buildHeader());
|
|
51
|
+
sections.push('');
|
|
52
|
+
// Agent registry
|
|
53
|
+
if (opts.includeAgents) {
|
|
54
|
+
sections.push(buildAgentRegistry(agents));
|
|
55
|
+
}
|
|
56
|
+
// Orchestration principles
|
|
57
|
+
if (opts.includePrinciples) {
|
|
58
|
+
sections.push(buildOrchestrationPrinciples());
|
|
59
|
+
sections.push('');
|
|
60
|
+
}
|
|
61
|
+
// Trigger table
|
|
62
|
+
if (opts.includeTriggers) {
|
|
63
|
+
const triggerSection = buildTriggerTable(agents);
|
|
64
|
+
if (triggerSection) {
|
|
65
|
+
sections.push(triggerSection);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Tool selection guidance
|
|
69
|
+
if (opts.includeTools) {
|
|
70
|
+
sections.push(buildToolSelectionSection(agents));
|
|
71
|
+
}
|
|
72
|
+
// Delegation matrix
|
|
73
|
+
if (opts.includeDelegationTable) {
|
|
74
|
+
sections.push(buildDelegationMatrix(agents));
|
|
75
|
+
}
|
|
76
|
+
// Workflow
|
|
77
|
+
if (opts.includeWorkflow) {
|
|
78
|
+
sections.push(buildWorkflow());
|
|
79
|
+
sections.push('');
|
|
80
|
+
}
|
|
81
|
+
// Critical rules
|
|
82
|
+
if (opts.includeRules) {
|
|
83
|
+
sections.push(buildCriticalRules());
|
|
84
|
+
sections.push('');
|
|
85
|
+
}
|
|
86
|
+
// Completion checklist
|
|
87
|
+
if (opts.includeChecklist) {
|
|
88
|
+
sections.push(buildCompletionChecklist());
|
|
89
|
+
}
|
|
90
|
+
return sections.join('\n');
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Build agent section only (for embedding in other prompts)
|
|
94
|
+
*/
|
|
95
|
+
export function buildAgentSection(agents) {
|
|
96
|
+
return buildAgentRegistry(agents);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Build triggers section only
|
|
100
|
+
*/
|
|
101
|
+
export function buildTriggersSection(agents) {
|
|
102
|
+
return buildTriggerTable(agents);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Build tool selection section only (alias for buildToolSelectionSection from prompt-sections)
|
|
106
|
+
*/
|
|
107
|
+
export { buildToolSelectionSection };
|
|
108
|
+
/**
|
|
109
|
+
* Build delegation table section only
|
|
110
|
+
*/
|
|
111
|
+
export function buildDelegationTableSection(agents) {
|
|
112
|
+
return buildDelegationMatrix(agents);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Convert agent definitions record to array of AgentConfig for generation
|
|
116
|
+
*
|
|
117
|
+
* @param definitions - Record of agent definitions from getAgentDefinitions()
|
|
118
|
+
* @returns Array of AgentConfig suitable for prompt generation
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* import { getAgentDefinitions } from './definitions.js';
|
|
123
|
+
* import { convertDefinitionsToConfigs, generateOrchestratorPrompt } from './prompt-generator.js';
|
|
124
|
+
*
|
|
125
|
+
* const definitions = getAgentDefinitions();
|
|
126
|
+
* const agents = convertDefinitionsToConfigs(definitions);
|
|
127
|
+
* const prompt = generateOrchestratorPrompt(agents);
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
export function convertDefinitionsToConfigs(definitions) {
|
|
131
|
+
return Object.entries(definitions).map(([name, def]) => ({
|
|
132
|
+
name,
|
|
133
|
+
description: def.description,
|
|
134
|
+
prompt: def.prompt,
|
|
135
|
+
tools: def.tools,
|
|
136
|
+
model: def.model,
|
|
137
|
+
metadata: def.metadata
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=prompt-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-generator.js","sourceRoot":"","sources":["../../src/agents/prompt-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAwBpC;;GAEG;AACH,MAAM,eAAe,GAA+B;IAClD,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,sBAAsB,EAAE,IAAI;IAC5B,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,0BAA0B,CACxC,MAAqB,EACrB,OAA0B;IAE1B,MAAM,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IAChD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,wBAAwB;IACxB,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAElB,iBAAiB;IACjB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,2BAA2B;IAC3B,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC3B,QAAQ,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC;QAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpB,CAAC;IAED,gBAAgB;IAChB,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,cAAc,EAAE,CAAC;YACnB,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,0BAA0B;IAC1B,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,oBAAoB;IACpB,IAAI,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAChC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,WAAW;IACX,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpB,CAAC;IAED,iBAAiB;IACjB,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;QACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpB,CAAC;IAED,uBAAuB;IACvB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC1B,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAqB;IACrD,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAqB;IACxD,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAqB;IAC/D,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAME;IAEF,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;QACvD,IAAI;QACJ,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,KAAK,EAAE,GAAG,CAAC,KAAY;QACvB,QAAQ,EAAE,GAAG,CAAC,QAAQ;KACvB,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompt Section Builders for Dynamic Orchestrator Prompt Generation
|
|
3
|
+
*
|
|
4
|
+
* This module provides functions to build different sections of the orchestrator prompt
|
|
5
|
+
* dynamically from agent metadata. Adding a new agent automatically updates the orchestrator.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentConfig } from '../types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Build the header section with core orchestrator identity
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildHeader(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Build the agent registry section with descriptions
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildAgentRegistry(agents: AgentConfig[]): string;
|
|
16
|
+
/**
|
|
17
|
+
* Build the trigger table showing when to use each agent
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildTriggerTable(agents: AgentConfig[]): string;
|
|
20
|
+
/**
|
|
21
|
+
* Build tool selection guidance section
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildToolSelectionSection(agents: AgentConfig[]): string;
|
|
24
|
+
/**
|
|
25
|
+
* Build delegation matrix/guide table
|
|
26
|
+
*/
|
|
27
|
+
export declare function buildDelegationMatrix(agents: AgentConfig[]): string;
|
|
28
|
+
/**
|
|
29
|
+
* Build orchestration principles section
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildOrchestrationPrinciples(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Build workflow section
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildWorkflow(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Build critical rules section
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildCriticalRules(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Build completion checklist section
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildCompletionChecklist(): string;
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/prompt-sections/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAsC,MAAM,aAAa,CAAC;AAEnF;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CASpC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAkChE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAwB/D;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAgCvE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CA6BnE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CAOrD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAUtC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAU3C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAUjD"}
|