monomind 1.10.1 → 1.10.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/.claude/agents/academic/academic-anthropologist.md +126 -0
- package/.claude/agents/academic/academic-geographer.md +128 -0
- package/.claude/agents/academic/academic-historian.md +124 -0
- package/.claude/agents/academic/academic-narratologist.md +119 -0
- package/.claude/agents/academic/academic-psychologist.md +119 -0
- package/.claude/agents/analysis/analyze-code-quality.md +58 -0
- package/.claude/agents/analysis/code-analyzer.md +189 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +58 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +54 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +977 -0
- package/.claude/agents/consensus/performance-benchmarker.md +831 -0
- package/.claude/agents/consensus/quorum-manager.md +803 -0
- package/.claude/agents/consensus/security-manager.md +602 -0
- package/.claude/agents/core/coder.md +262 -0
- package/.claude/agents/core/planner.md +170 -0
- package/.claude/agents/core/researcher.md +192 -0
- package/.claude/agents/core/reviewer.md +327 -0
- package/.claude/agents/core/tester.md +318 -0
- package/.claude/agents/data/ml/data-ml-model.md +76 -0
- package/.claude/agents/design/design-monodesign.md +121 -0
- package/.claude/agents/development/dev-backend-api.md +178 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +52 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +63 -0
- package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +212 -0
- package/.claude/agents/engineering/engineering-ai-engineer.md +165 -0
- package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +108 -0
- package/.claude/agents/engineering/engineering-backend-architect.md +254 -0
- package/.claude/agents/engineering/engineering-code-reviewer.md +95 -0
- package/.claude/agents/engineering/engineering-data-engineer.md +307 -0
- package/.claude/agents/engineering/engineering-database-optimizer.md +200 -0
- package/.claude/agents/engineering/engineering-devops-automator.md +430 -0
- package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +174 -0
- package/.claude/agents/engineering/engineering-feishu-integration-developer.md +607 -0
- package/.claude/agents/engineering/engineering-frontend-developer.md +249 -0
- package/.claude/agents/engineering/engineering-git-workflow-master.md +108 -0
- package/.claude/agents/engineering/engineering-incident-response-commander.md +482 -0
- package/.claude/agents/engineering/engineering-mobile-app-builder.md +499 -0
- package/.claude/agents/engineering/engineering-rapid-prototyper.md +463 -0
- package/.claude/agents/engineering/engineering-security-engineer.md +303 -0
- package/.claude/agents/engineering/engineering-senior-developer.md +195 -0
- package/.claude/agents/engineering/engineering-software-architect.md +100 -0
- package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +528 -0
- package/.claude/agents/engineering/engineering-sre.md +114 -0
- package/.claude/agents/engineering/engineering-technical-writer.md +412 -0
- package/.claude/agents/engineering/engineering-threat-detection-engineer.md +540 -0
- package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +351 -0
- package/.claude/agents/game-development/blender/blender-addon-engineer.md +235 -0
- package/.claude/agents/game-development/game-audio-engineer.md +265 -0
- package/.claude/agents/game-development/game-designer.md +168 -0
- package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +335 -0
- package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +298 -0
- package/.claude/agents/game-development/godot/godot-shader-developer.md +267 -0
- package/.claude/agents/game-development/level-designer.md +209 -0
- package/.claude/agents/game-development/narrative-designer.md +244 -0
- package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +298 -0
- package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +306 -0
- package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +326 -0
- package/.claude/agents/game-development/technical-artist.md +230 -0
- package/.claude/agents/game-development/unity/unity-architect.md +272 -0
- package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +311 -0
- package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +322 -0
- package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +270 -0
- package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +314 -0
- package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +311 -0
- package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +257 -0
- package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +274 -0
- package/.claude/agents/github/code-review-swarm.md +557 -0
- package/.claude/agents/github/github-modes.md +154 -0
- package/.claude/agents/github/issue-tracker.md +299 -0
- package/.claude/agents/github/multi-repo-swarm.md +525 -0
- package/.claude/agents/github/pr-manager.md +163 -0
- package/.claude/agents/github/project-board-sync.md +478 -0
- package/.claude/agents/github/release-manager.md +296 -0
- package/.claude/agents/github/release-swarm.md +597 -0
- package/.claude/agents/github/repo-architect.md +359 -0
- package/.claude/agents/github/swarm-issue.md +548 -0
- package/.claude/agents/github/swarm-pr.md +427 -0
- package/.claude/agents/github/sync-coordinator.md +355 -0
- package/.claude/agents/github/workflow-automation.md +640 -0
- package/.claude/agents/goal/agent.md +804 -0
- package/.claude/agents/goal/code-goal-planner.md +445 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +129 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +202 -0
- package/.claude/agents/hive-mind/scout-explorer.md +241 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +192 -0
- package/.claude/agents/hive-mind/worker-specialist.md +216 -0
- package/.claude/agents/marketing/marketing-ai-citation-strategist.md +171 -0
- package/.claude/agents/marketing/marketing-app-store-optimizer.md +322 -0
- package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +227 -0
- package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +200 -0
- package/.claude/agents/marketing/marketing-book-co-author.md +111 -0
- package/.claude/agents/marketing/marketing-carousel-growth-engine.md +200 -0
- package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +284 -0
- package/.claude/agents/marketing/marketing-competitive-content.md +155 -0
- package/.claude/agents/marketing/marketing-content-creator.md +67 -0
- package/.claude/agents/marketing/marketing-cro-specialist.md +147 -0
- package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +260 -0
- package/.claude/agents/marketing/marketing-douyin-strategist.md +150 -0
- package/.claude/agents/marketing/marketing-email-specialist.md +90 -0
- package/.claude/agents/marketing/marketing-growth-hacker.md +54 -0
- package/.claude/agents/marketing/marketing-instagram-curator.md +114 -0
- package/.claude/agents/marketing/marketing-kuaishou-strategist.md +224 -0
- package/.claude/agents/marketing/marketing-launch-strategist.md +129 -0
- package/.claude/agents/marketing/marketing-linkedin-content-creator.md +215 -0
- package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +306 -0
- package/.claude/agents/marketing/marketing-podcast-strategist.md +278 -0
- package/.claude/agents/marketing/marketing-pricing-strategist.md +127 -0
- package/.claude/agents/marketing/marketing-private-domain-operator.md +309 -0
- package/.claude/agents/marketing/marketing-reddit-community-builder.md +124 -0
- package/.claude/agents/marketing/marketing-seo-specialist.md +279 -0
- package/.claude/agents/marketing/marketing-short-video-editing-coach.md +413 -0
- package/.claude/agents/marketing/marketing-social-media-strategist.md +125 -0
- package/.claude/agents/marketing/marketing-tiktok-strategist.md +126 -0
- package/.claude/agents/marketing/marketing-twitter-engager.md +127 -0
- package/.claude/agents/marketing/marketing-wechat-official-account.md +146 -0
- package/.claude/agents/marketing/marketing-weibo-strategist.md +241 -0
- package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +139 -0
- package/.claude/agents/marketing/marketing-zhihu-strategist.md +163 -0
- package/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude/agents/optimization/benchmark-suite.md +663 -0
- package/.claude/agents/optimization/load-balancer.md +429 -0
- package/.claude/agents/optimization/performance-monitor.md +670 -0
- package/.claude/agents/optimization/resource-allocator.md +672 -0
- package/.claude/agents/optimization/topology-optimizer.md +806 -0
- package/.claude/agents/paid-media/paid-media-auditor.md +71 -0
- package/.claude/agents/paid-media/paid-media-creative-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-ppc-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +71 -0
- package/.claude/agents/paid-media/paid-media-search-query-analyst.md +71 -0
- package/.claude/agents/paid-media/paid-media-tracking-specialist.md +71 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/product/product-behavioral-nudge-engine.md +81 -0
- package/.claude/agents/product/product-feedback-synthesizer.md +119 -0
- package/.claude/agents/product/product-manager.md +469 -0
- package/.claude/agents/product/product-sprint-prioritizer.md +154 -0
- package/.claude/agents/product/product-trend-researcher.md +159 -0
- package/.claude/agents/project-management/project-management-experiment-tracker.md +199 -0
- package/.claude/agents/project-management/project-management-jira-workflow-steward.md +231 -0
- package/.claude/agents/project-management/project-management-project-shepherd.md +195 -0
- package/.claude/agents/project-management/project-management-studio-operations.md +201 -0
- package/.claude/agents/project-management/project-management-studio-producer.md +204 -0
- package/.claude/agents/project-management/project-manager-senior.md +136 -0
- package/.claude/agents/reasoning/agent.md +804 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/agents/sales/sales-account-strategist.md +228 -0
- package/.claude/agents/sales/sales-coach.md +272 -0
- package/.claude/agents/sales/sales-deal-strategist.md +181 -0
- package/.claude/agents/sales/sales-discovery-coach.md +226 -0
- package/.claude/agents/sales/sales-engineer.md +183 -0
- package/.claude/agents/sales/sales-outbound-strategist.md +202 -0
- package/.claude/agents/sales/sales-pipeline-analyst.md +268 -0
- package/.claude/agents/sales/sales-proposal-strategist.md +218 -0
- package/.claude/agents/schemas/architecture-output.json +43 -0
- package/.claude/agents/schemas/code-review-output.json +28 -0
- package/.claude/agents/schemas/generic-task-input.json +12 -0
- package/.claude/agents/schemas/implementation-output.json +18 -0
- package/.claude/agents/schemas/research-output.json +31 -0
- package/.claude/agents/schemas/security-audit-output.json +29 -0
- package/.claude/agents/schemas/test-report-output.json +29 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +65 -0
- package/.claude/agents/sparc/architecture.md +453 -0
- package/.claude/agents/sparc/pseudocode.md +299 -0
- package/.claude/agents/sparc/refinement.md +504 -0
- package/.claude/agents/sparc/specification.md +258 -0
- package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +338 -0
- package/.claude/agents/spatial-computing/terminal-integration-specialist.md +71 -0
- package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +55 -0
- package/.claude/agents/specialists/integration-architect.md +94 -0
- package/.claude/agents/specialists/memory-specialist.md +298 -0
- package/.claude/agents/specialists/performance-engineer.md +387 -0
- package/.claude/agents/specialists/queen-coordinator.md +67 -0
- package/.claude/agents/specialists/security-architect.md +154 -0
- package/.claude/agents/specialized/accounts-payable-agent.md +186 -0
- package/.claude/agents/specialized/agentic-identity-trust.md +388 -0
- package/.claude/agents/specialized/agents-orchestrator.md +368 -0
- package/.claude/agents/specialized/automation-governance-architect.md +217 -0
- package/.claude/agents/specialized/blockchain-security-auditor.md +497 -0
- package/.claude/agents/specialized/compliance-auditor.md +159 -0
- package/.claude/agents/specialized/corporate-training-designer.md +193 -0
- package/.claude/agents/specialized/data-consolidation-agent.md +61 -0
- package/.claude/agents/specialized/government-digital-presales-consultant.md +364 -0
- package/.claude/agents/specialized/healthcare-marketing-compliance.md +396 -0
- package/.claude/agents/specialized/identity-graph-operator.md +261 -0
- package/.claude/agents/specialized/lsp-index-engineer.md +315 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +89 -0
- package/.claude/agents/specialized/recruitment-specialist.md +510 -0
- package/.claude/agents/specialized/report-distribution-agent.md +66 -0
- package/.claude/agents/specialized/sales-data-extraction-agent.md +68 -0
- package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +89 -0
- package/.claude/agents/specialized/specialized-developer-advocate.md +318 -0
- package/.claude/agents/specialized/specialized-document-generator.md +56 -0
- package/.claude/agents/specialized/specialized-french-consulting-market.md +193 -0
- package/.claude/agents/specialized/specialized-korean-business-navigator.md +217 -0
- package/.claude/agents/specialized/specialized-mcp-builder.md +64 -0
- package/.claude/agents/specialized/specialized-model-qa.md +489 -0
- package/.claude/agents/specialized/specialized-salesforce-architect.md +181 -0
- package/.claude/agents/specialized/specialized-workflow-architect.md +598 -0
- package/.claude/agents/specialized/study-abroad-advisor.md +283 -0
- package/.claude/agents/specialized/supply-chain-strategist.md +583 -0
- package/.claude/agents/specialized/zk-steward.md +212 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +333 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +180 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +295 -0
- package/.claude/agents/sublinear/performance-optimizer.md +363 -0
- package/.claude/agents/sublinear/trading-predictor.md +242 -0
- package/.claude/agents/support/support-analytics-reporter.md +366 -0
- package/.claude/agents/support/support-executive-summary-generator.md +213 -0
- package/.claude/agents/support/support-finance-tracker.md +443 -0
- package/.claude/agents/support/support-infrastructure-maintainer.md +619 -0
- package/.claude/agents/support/support-legal-compliance-checker.md +589 -0
- package/.claude/agents/support/support-support-responder.md +586 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +364 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +318 -0
- package/.claude/agents/swarm/mesh-coordinator.md +363 -0
- package/.claude/agents/templates/automation-smart-agent.md +185 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +83 -0
- package/.claude/agents/templates/github-pr-manager.md +155 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +231 -0
- package/.claude/agents/templates/memory-coordinator.md +163 -0
- package/.claude/agents/templates/migration-plan.md +724 -0
- package/.claude/agents/templates/orchestrator-task.md +120 -0
- package/.claude/agents/templates/performance-analyzer.md +179 -0
- package/.claude/agents/templates/sparc-coordinator.md +163 -0
- package/.claude/agents/testing/production-validator.md +374 -0
- package/.claude/agents/testing/tdd-london-swarm.md +241 -0
- package/.claude/agents/testing/testing-accessibility-auditor.md +322 -0
- package/.claude/agents/testing/testing-api-tester.md +307 -0
- package/.claude/agents/testing/testing-evidence-collector.md +211 -0
- package/.claude/agents/testing/testing-performance-benchmarker.md +269 -0
- package/.claude/agents/testing/testing-reality-checker.md +237 -0
- package/.claude/agents/testing/testing-test-results-analyzer.md +306 -0
- package/.claude/agents/testing/testing-tool-evaluator.md +395 -0
- package/.claude/agents/testing/testing-workflow-optimizer.md +451 -0
- package/.claude/checkpoints/1767754460.json +8 -0
- package/.claude/commands/agents/README.md +14 -0
- package/.claude/commands/agents/agent-capabilities.md +25 -0
- package/.claude/commands/agents/agent-coordination.md +32 -0
- package/.claude/commands/agents/agent-spawning.md +32 -0
- package/.claude/commands/agents/agent-types.md +30 -0
- package/.claude/commands/analysis/README.md +18 -0
- package/.claude/commands/analysis/bottleneck-detect.md +69 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +52 -0
- package/.claude/commands/analysis/token-efficiency.md +42 -0
- package/.claude/commands/analysis/token-usage.md +47 -0
- package/.claude/commands/automation/README.md +19 -0
- package/.claude/commands/automation/auto-agent.md +86 -0
- package/.claude/commands/automation/self-healing.md +108 -0
- package/.claude/commands/automation/session-memory.md +89 -0
- package/.claude/commands/automation/smart-agents.md +81 -0
- package/.claude/commands/automation/smart-spawn.md +66 -0
- package/.claude/commands/automation/workflow-select.md +60 -0
- package/.claude/commands/browse.md +32 -0
- package/.claude/commands/coordination/README.md +13 -0
- package/.claude/commands/coordination/agent-spawn.md +69 -0
- package/.claude/commands/coordination/swarm-init.md +82 -0
- package/.claude/commands/coordination/task-orchestrate.md +79 -0
- package/.claude/commands/github/README.md +24 -0
- package/.claude/commands/github/github-modes.md +151 -0
- package/.claude/commands/github/issue-tracker.md +293 -0
- package/.claude/commands/github/pr-manager.md +173 -0
- package/.claude/commands/github/release-manager.md +343 -0
- package/.claude/commands/github/repo-architect.md +379 -0
- package/.claude/commands/github/sync-coordinator.md +297 -0
- package/.claude/commands/hive-mind/README.md +42 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +72 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +68 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +73 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +82 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +56 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +55 -0
- package/.claude/commands/hive-mind/hive-mind.md +87 -0
- package/.claude/commands/hooks/README.md +66 -0
- package/.claude/commands/hooks/overview.md +117 -0
- package/.claude/commands/hooks/post-edit.md +78 -0
- package/.claude/commands/hooks/post-task.md +62 -0
- package/.claude/commands/hooks/pre-edit.md +81 -0
- package/.claude/commands/hooks/pre-task.md +76 -0
- package/.claude/commands/hooks/session-end.md +82 -0
- package/.claude/commands/hooks/setup.md +132 -0
- package/.claude/commands/mastermind/_repeat.md +451 -0
- package/.claude/commands/mastermind/architect.md +55 -0
- package/.claude/commands/mastermind/brain.md +102 -0
- package/.claude/commands/mastermind/build.md +26 -0
- package/.claude/commands/mastermind/content.md +26 -0
- package/.claude/commands/mastermind/createorg.md +97 -0
- package/.claude/commands/mastermind/finance.md +26 -0
- package/.claude/commands/mastermind/idea.md +26 -0
- package/.claude/commands/mastermind/marketing.md +26 -0
- package/.claude/commands/mastermind/master.md +772 -0
- package/.claude/commands/mastermind/ops.md +26 -0
- package/.claude/commands/mastermind/release.md +26 -0
- package/.claude/commands/mastermind/research.md +26 -0
- package/.claude/commands/mastermind/review.md +26 -0
- package/.claude/commands/mastermind/runorg.md +109 -0
- package/.claude/commands/mastermind/sales.md +26 -0
- package/.claude/commands/mastermind/techport.md +26 -0
- package/.claude/commands/mastermind.md +121 -0
- package/.claude/commands/memory/README.md +79 -0
- package/.claude/commands/memory/memory-search.md +77 -0
- package/.claude/commands/monitoring/README.md +69 -0
- package/.claude/commands/monitoring/agent-metrics.md +65 -0
- package/.claude/commands/monitoring/agents.md +71 -0
- package/.claude/commands/monitoring/status.md +108 -0
- package/.claude/commands/monograph/README.md +102 -0
- package/.claude/commands/monograph/monograph-build.md +79 -0
- package/.claude/commands/monograph/monograph-search.md +96 -0
- package/.claude/commands/monograph/monograph-stats.md +53 -0
- package/.claude/commands/monograph/monograph-watch.md +63 -0
- package/.claude/commands/monograph/monograph-wiki.md +91 -0
- package/.claude/commands/monomind/createtask.md +277 -0
- package/.claude/commands/monomind/do.md +446 -0
- package/.claude/commands/monomind/help.md +118 -0
- package/.claude/commands/monomind/idea.md +273 -0
- package/.claude/commands/monomind/improve.md +350 -0
- package/.claude/commands/monomind/memory.md +230 -0
- package/.claude/commands/monomind/repeat.md +257 -0
- package/.claude/commands/monomind/review.md +317 -0
- package/.claude/commands/monomind/specialagents.md +125 -0
- package/.claude/commands/monomind/swarm.md +161 -0
- package/.claude/commands/monomind/understand.md +191 -0
- package/.claude/commands/optimization/README.md +73 -0
- package/.claude/commands/optimization/auto-topology.md +85 -0
- package/.claude/commands/optimization/parallel-execution.md +76 -0
- package/.claude/commands/optimization/performance-optimize.md +79 -0
- package/.claude/commands/pair/README.md +79 -0
- package/.claude/commands/pair/examples.md +156 -0
- package/.claude/commands/pair/modes.md +122 -0
- package/.claude/commands/pair/session.md +124 -0
- package/.claude/commands/sparc/analyzer.md +35 -0
- package/.claude/commands/sparc/architect.md +36 -0
- package/.claude/commands/sparc/ask.md +56 -0
- package/.claude/commands/sparc/batch-executor.md +37 -0
- package/.claude/commands/sparc/code.md +48 -0
- package/.claude/commands/sparc/coder.md +37 -0
- package/.claude/commands/sparc/debug.md +42 -0
- package/.claude/commands/sparc/debugger.md +37 -0
- package/.claude/commands/sparc/designer.md +36 -0
- package/.claude/commands/sparc/devops.md +68 -0
- package/.claude/commands/sparc/docs-writer.md +39 -0
- package/.claude/commands/sparc/documenter.md +37 -0
- package/.claude/commands/sparc/innovator.md +37 -0
- package/.claude/commands/sparc/integration.md +42 -0
- package/.claude/commands/sparc/mcp.md +76 -0
- package/.claude/commands/sparc/memory-manager.md +57 -0
- package/.claude/commands/sparc/optimizer.md +37 -0
- package/.claude/commands/sparc/orchestrator.md +70 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +42 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +42 -0
- package/.claude/commands/sparc/researcher.md +37 -0
- package/.claude/commands/sparc/reviewer.md +37 -0
- package/.claude/commands/sparc/security-review.md +39 -0
- package/.claude/commands/sparc/sparc-modes.md +120 -0
- package/.claude/commands/sparc/sparc.md +71 -0
- package/.claude/commands/sparc/spec-pseudocode.md +39 -0
- package/.claude/commands/sparc/supabase-admin.md +301 -0
- package/.claude/commands/sparc/swarm-coordinator.md +50 -0
- package/.claude/commands/sparc/tdd.md +37 -0
- package/.claude/commands/sparc/tester.md +37 -0
- package/.claude/commands/sparc/tutorial.md +38 -0
- package/.claude/commands/sparc/workflow-manager.md +37 -0
- package/.claude/commands/sparc.md +112 -0
- package/.claude/commands/stream-chain/pipeline.md +116 -0
- package/.claude/commands/stream-chain/run.md +156 -0
- package/.claude/commands/swarm/README.md +40 -0
- package/.claude/commands/swarm/analysis.md +73 -0
- package/.claude/commands/swarm/development.md +72 -0
- package/.claude/commands/swarm/examples.md +103 -0
- package/.claude/commands/swarm/maintenance.md +75 -0
- package/.claude/commands/swarm/optimization.md +84 -0
- package/.claude/commands/swarm/research.md +76 -0
- package/.claude/commands/swarm/swarm-analysis.md +62 -0
- package/.claude/commands/swarm/swarm-background.md +65 -0
- package/.claude/commands/swarm/swarm-modes.md +67 -0
- package/.claude/commands/swarm/swarm-monitor.md +54 -0
- package/.claude/commands/swarm/swarm-status.md +44 -0
- package/.claude/commands/swarm/swarm-strategies.md +76 -0
- package/.claude/commands/swarm/swarm.md +79 -0
- package/.claude/commands/swarm/testing.md +80 -0
- package/.claude/commands/tokens.md +18 -0
- package/.claude/commands/training/README.md +39 -0
- package/.claude/commands/training/model-update.md +78 -0
- package/.claude/commands/training/neural-patterns.md +73 -0
- package/.claude/commands/training/neural-train.md +79 -0
- package/.claude/commands/training/pattern-learn.md +69 -0
- package/.claude/commands/training/specialization.md +92 -0
- package/.claude/commands/truth/start.md +121 -0
- package/.claude/commands/ts.md +14 -0
- package/.claude/commands/verify/check.md +106 -0
- package/.claude/commands/verify/start.md +105 -0
- package/.claude/commands/workflows/README.md +65 -0
- package/.claude/commands/workflows/development.md +86 -0
- package/.claude/commands/workflows/research.md +89 -0
- package/.claude/commands/workflows/workflow-create.md +84 -0
- package/.claude/commands/workflows/workflow-execute.md +103 -0
- package/.claude/commands/workflows/workflow-export.md +90 -0
- package/.claude/config/v1-dependency-optimization.json +266 -0
- package/.claude/config/v1-performance-targets.json +251 -0
- package/.claude/helpers/README.md +105 -0
- package/.claude/helpers/auto-memory-hook.mjs +369 -0
- package/.claude/helpers/context-persistence-hook.mjs +1988 -0
- package/.claude/helpers/control-start.cjs +91 -0
- package/.claude/helpers/extras-registry.json +5141 -0
- package/.claude/helpers/graphify-freshen.cjs +98 -0
- package/.claude/helpers/hook-handler.cjs +1718 -0
- package/.claude/helpers/intelligence.cjs +227 -0
- package/.claude/helpers/learning-service.mjs +1144 -0
- package/.claude/helpers/loop-tracker.cjs +107 -0
- package/.claude/helpers/memory-palace.cjs +401 -0
- package/.claude/helpers/memory.cjs +84 -0
- package/.claude/helpers/metrics-db.mjs +488 -0
- package/.claude/helpers/router.cjs +450 -0
- package/.claude/helpers/session.cjs +125 -0
- package/.claude/helpers/skill-registry.json +946 -0
- package/.claude/helpers/statusline.cjs +1331 -0
- package/.claude/helpers/swarm-hooks.sh +761 -0
- package/.claude/helpers/toggle-statusline.cjs +58 -0
- package/.claude/helpers/token-tracker.cjs +934 -0
- package/.claude/mcp.json +3 -0
- package/.claude/scheduled_tasks.lock +1 -0
- package/.claude/settings.json +318 -0
- package/.claude/settings.local.json +51 -0
- package/.claude/skills/.monomind/data/ranked-context.json +5 -0
- package/.claude/skills/.monomind/sessions/current.json +13 -0
- package/.claude/skills/.monomind/sessions/session-1777829336455.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777831614725.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777832095857.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777839814183.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777841847131.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777843309463.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777880867159.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777881884593.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777884090471.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777884808221.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777885672155.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777886852818.json +15 -0
- package/.claude/skills/.monomind/sessions/session-1777896532690.json +15 -0
- package/.claude/skills/agent-browser-testing/SKILL.md +312 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +549 -0
- package/.claude/skills/agentdb-learning/SKILL.md +544 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +337 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +508 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +335 -0
- package/.claude/skills/agentic-integration/SKILL.md +265 -0
- package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
- package/.claude/skills/cli-modernization/SKILL.md +950 -0
- package/.claude/skills/core-implementation/SKILL.md +892 -0
- package/.claude/skills/ddd-architecture/SKILL.md +444 -0
- package/.claude/skills/github-code-review/SKILL.md +1147 -0
- package/.claude/skills/github-multi-repo/SKILL.md +912 -0
- package/.claude/skills/github-project-management/SKILL.md +1245 -0
- package/.claude/skills/github-release-management/SKILL.md +1118 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1107 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +709 -0
- package/.claude/skills/hooks-automation/SKILL.md +1196 -0
- package/.claude/skills/mastermind/_agent-select.md +132 -0
- package/.claude/skills/mastermind/_intake.md +83 -0
- package/.claude/skills/mastermind/_protocol.md +380 -0
- package/.claude/skills/mastermind/access.md +236 -0
- package/.claude/skills/mastermind/activity.md +191 -0
- package/.claude/skills/mastermind/adapter-manager.md +259 -0
- package/.claude/skills/mastermind/adapters.md +204 -0
- package/.claude/skills/mastermind/agent-detail.md +242 -0
- package/.claude/skills/mastermind/agents.md +178 -0
- package/.claude/skills/mastermind/approval-detail.md +259 -0
- package/.claude/skills/mastermind/approve.md +181 -0
- package/.claude/skills/mastermind/architect.md +863 -0
- package/.claude/skills/mastermind/backup.md +197 -0
- package/.claude/skills/mastermind/bootstrap.md +190 -0
- package/.claude/skills/mastermind/budgets.md +237 -0
- package/.claude/skills/mastermind/build.md +170 -0
- package/.claude/skills/mastermind/companies.md +256 -0
- package/.claude/skills/mastermind/content.md +197 -0
- package/.claude/skills/mastermind/costs.md +151 -0
- package/.claude/skills/mastermind/createorg.md +344 -0
- package/.claude/skills/mastermind/diagnose.md +249 -0
- package/.claude/skills/mastermind/env.md +198 -0
- package/.claude/skills/mastermind/environments.md +250 -0
- package/.claude/skills/mastermind/export.md +324 -0
- package/.claude/skills/mastermind/finance.md +166 -0
- package/.claude/skills/mastermind/goal-detail.md +255 -0
- package/.claude/skills/mastermind/goals.md +149 -0
- package/.claude/skills/mastermind/heartbeat.md +164 -0
- package/.claude/skills/mastermind/idea.md +1120 -0
- package/.claude/skills/mastermind/import.md +281 -0
- package/.claude/skills/mastermind/inbox.md +214 -0
- package/.claude/skills/mastermind/instance-settings.md +315 -0
- package/.claude/skills/mastermind/instance.md +231 -0
- package/.claude/skills/mastermind/invite-landing.md +227 -0
- package/.claude/skills/mastermind/invites.md +254 -0
- package/.claude/skills/mastermind/issue-detail.md +291 -0
- package/.claude/skills/mastermind/issues.md +235 -0
- package/.claude/skills/mastermind/join-queue.md +170 -0
- package/.claude/skills/mastermind/liveness.md +392 -0
- package/.claude/skills/mastermind/marketing.md +228 -0
- package/.claude/skills/mastermind/memory.md +321 -0
- package/.claude/skills/mastermind/monotask.md +350 -0
- package/.claude/skills/mastermind/my-issues.md +146 -0
- package/.claude/skills/mastermind/new-agent.md +241 -0
- package/.claude/skills/mastermind/ops.md +168 -0
- package/.claude/skills/mastermind/org-chart.md +207 -0
- package/.claude/skills/mastermind/org-settings.md +217 -0
- package/.claude/skills/mastermind/plan-to-tasks.md +136 -0
- package/.claude/skills/mastermind/plugin-manager.md +241 -0
- package/.claude/skills/mastermind/plugin-settings.md +273 -0
- package/.claude/skills/mastermind/plugins.md +190 -0
- package/.claude/skills/mastermind/profile.md +187 -0
- package/.claude/skills/mastermind/project-detail.md +249 -0
- package/.claude/skills/mastermind/project-workspace.md +244 -0
- package/.claude/skills/mastermind/projects.md +164 -0
- package/.claude/skills/mastermind/references/copywriting-frameworks.md +181 -0
- package/.claude/skills/mastermind/references/persuasion-psychology.md +158 -0
- package/.claude/skills/mastermind/release.md +168 -0
- package/.claude/skills/mastermind/research.md +168 -0
- package/.claude/skills/mastermind/review.md +169 -0
- package/.claude/skills/mastermind/routine-detail.md +253 -0
- package/.claude/skills/mastermind/routines.md +202 -0
- package/.claude/skills/mastermind/runorg.md +373 -0
- package/.claude/skills/mastermind/sales.md +170 -0
- package/.claude/skills/mastermind/search.md +186 -0
- package/.claude/skills/mastermind/secrets.md +199 -0
- package/.claude/skills/mastermind/skills.md +156 -0
- package/.claude/skills/mastermind/tasks.md +149 -0
- package/.claude/skills/mastermind/techport.md +743 -0
- package/.claude/skills/mastermind/threads.md +259 -0
- package/.claude/skills/mastermind/tree-control.md +250 -0
- package/.claude/skills/mastermind/wiki.md +314 -0
- package/.claude/skills/mastermind/workspace-detail.md +317 -0
- package/.claude/skills/mastermind/workspaces.md +261 -0
- package/.claude/skills/mastermind/worktree.md +187 -0
- package/.claude/skills/mcp-optimization/SKILL.md +837 -0
- package/.claude/skills/memory-unification/SKILL.md +196 -0
- package/.claude/skills/monodesign/SKILL.md +302 -0
- package/.claude/skills/monodesign/reference/adapt.md +190 -0
- package/.claude/skills/monodesign/reference/animate.md +175 -0
- package/.claude/skills/monodesign/reference/antipatterns-catalog.md +187 -0
- package/.claude/skills/monodesign/reference/audit.md +133 -0
- package/.claude/skills/monodesign/reference/bolder.md +113 -0
- package/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
- package/.claude/skills/monodesign/reference/brand.md +114 -0
- package/.claude/skills/monodesign/reference/clarify.md +174 -0
- package/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
- package/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
- package/.claude/skills/monodesign/reference/colorize.md +154 -0
- package/.claude/skills/monodesign/reference/component-specs.md +260 -0
- package/.claude/skills/monodesign/reference/component-states.md +274 -0
- package/.claude/skills/monodesign/reference/component-system.md +358 -0
- package/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
- package/.claude/skills/monodesign/reference/craft.md +193 -0
- package/.claude/skills/monodesign/reference/critique.md +213 -0
- package/.claude/skills/monodesign/reference/delight.md +302 -0
- package/.claude/skills/monodesign/reference/design-principles.md +246 -0
- package/.claude/skills/monodesign/reference/distill.md +111 -0
- package/.claude/skills/monodesign/reference/document.md +427 -0
- package/.claude/skills/monodesign/reference/extract.md +69 -0
- package/.claude/skills/monodesign/reference/harden.md +347 -0
- package/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
- package/.claude/skills/monodesign/reference/image-prompts.md +118 -0
- package/.claude/skills/monodesign/reference/interaction-design.md +195 -0
- package/.claude/skills/monodesign/reference/layout.md +141 -0
- package/.claude/skills/monodesign/reference/live.md +622 -0
- package/.claude/skills/monodesign/reference/motion-design.md +109 -0
- package/.claude/skills/monodesign/reference/onboard.md +234 -0
- package/.claude/skills/monodesign/reference/optimize.md +258 -0
- package/.claude/skills/monodesign/reference/overdrive.md +130 -0
- package/.claude/skills/monodesign/reference/personas.md +179 -0
- package/.claude/skills/monodesign/reference/polish.md +233 -0
- package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
- package/.claude/skills/monodesign/reference/product.md +62 -0
- package/.claude/skills/monodesign/reference/quieter.md +99 -0
- package/.claude/skills/monodesign/reference/responsive-design.md +114 -0
- package/.claude/skills/monodesign/reference/shape.md +151 -0
- package/.claude/skills/monodesign/reference/spatial-design.md +100 -0
- package/.claude/skills/monodesign/reference/teach.md +156 -0
- package/.claude/skills/monodesign/reference/token-architecture.md +222 -0
- package/.claude/skills/monodesign/reference/typeset.md +124 -0
- package/.claude/skills/monodesign/reference/typography.md +159 -0
- package/.claude/skills/monodesign/reference/ux-research.md +143 -0
- package/.claude/skills/monodesign/reference/ux-rules.md +211 -0
- package/.claude/skills/monodesign/reference/ux-writing.md +107 -0
- package/.claude/skills/monomotion/SKILL.md +145 -0
- package/.claude/skills/monomotion/rules/api-control.md +139 -0
- package/.claude/skills/monomotion/rules/effects.md +109 -0
- package/.claude/skills/monomotion/rules/integration.md +140 -0
- package/.claude/skills/monomotion/rules/scroll.md +131 -0
- package/.claude/skills/monomotion/rules/sequencing.md +105 -0
- package/.claude/skills/monomotion/rules/svg.md +101 -0
- package/.claude/skills/monomotion/rules/text.md +119 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +560 -0
- package/.claude/skills/performance-optimization/SKILL.md +416 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +444 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +199 -0
- package/.claude/skills/security-hardening/SKILL.md +101 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +950 -0
- package/.claude/skills/specialagent/SKILL.md +208 -0
- package/.claude/skills/stop-slop/SKILL.md +67 -0
- package/.claude/skills/stop-slop/references/examples.md +61 -0
- package/.claude/skills/stop-slop/references/phrases.md +130 -0
- package/.claude/skills/stop-slop/references/structures.md +136 -0
- package/.claude/skills/stream-chain/SKILL.md +560 -0
- package/.claude/skills/swarm-advanced/SKILL.md +940 -0
- package/.claude/skills/swarm-coordination/SKILL.md +451 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/verification-quality/SKILL.md +674 -0
- package/.claude/statusline-command.sh +176 -0
- package/.claude/statusline.mjs +109 -0
- package/.claude/statusline.sh +431 -0
- package/.claude/workflows/feature-dev.yaml +18 -0
- package/.claude/workflows/security-audit.yaml +10 -0
- package/.claude-plugin/README.md +705 -0
- package/.claude-plugin/docs/INSTALLATION.md +258 -0
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +359 -0
- package/.claude-plugin/docs/QUICKSTART.md +360 -0
- package/.claude-plugin/docs/STRUCTURE.md +126 -0
- package/.claude-plugin/hooks/hooks.json +74 -0
- package/.claude-plugin/marketplace.json +98 -0
- package/.claude-plugin/plugin.json +70 -0
- package/.claude-plugin/scripts/install.sh +234 -0
- package/.claude-plugin/scripts/uninstall.sh +36 -0
- package/.claude-plugin/scripts/verify.sh +108 -0
- package/LICENSE +21 -0
- package/README.md +441 -0
- package/bin/cli.js +11 -0
- package/bin/npx-safe-launch.js +9 -0
- package/package.json +71 -11
- package/packages/@monomind/cli/README.md +441 -0
- package/packages/@monomind/cli/bin/cli.js +221 -0
- package/packages/@monomind/cli/bin/mcp-server.js +189 -0
- package/packages/@monomind/cli/bin/preinstall.cjs +2 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/analyze.d.ts +32 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/analyze.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/analyze.js +297 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/analyze.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/build.d.ts +8 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/build.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/build.js +73 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/build.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cache.d.ts +12 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cache.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cache.js +43 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cache.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cluster.d.ts +5 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cluster.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js +120 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/detect.d.ts +21 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/detect.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/detect.js +195 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/detect.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/export.d.ts +21 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/export.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/export.js +68 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/export.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.d.ts +20 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.js +158 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.js +88 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.js +121 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.js +121 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.js +181 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.js +117 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.js +112 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.js +130 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.js +230 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.js +120 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.js +195 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.js +110 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.js +122 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.d.ts +3 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.js +295 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.d.ts +38 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.js +242 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts +48 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.js +137 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.d.ts +7 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.js +2 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/index.d.ts +28 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/index.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/index.js +26 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/index.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.d.ts +27 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.js +269 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/report.d.ts +26 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/report.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/report.js +214 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/report.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/types.d.ts +124 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/types.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/types.js +2 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/types.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/visualize.d.ts +4 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/visualize.d.ts.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/visualize.js +574 -0
- package/packages/@monomind/cli/bundled-graph/dist/src/visualize.js.map +1 -0
- package/packages/@monomind/cli/bundled-graph/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/@monomind/cli/bundled-graph/package.json +57 -0
- package/packages/@monomind/cli/dist/src/agents/halt-signal.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/agents/halt-signal.js +76 -0
- package/packages/@monomind/cli/dist/src/agents/index.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/agents/index.js +13 -0
- package/packages/@monomind/cli/dist/src/agents/managed-agent.d.ts +41 -0
- package/packages/@monomind/cli/dist/src/agents/managed-agent.js +69 -0
- package/packages/@monomind/cli/dist/src/agents/prompt-experiment.d.ts +23 -0
- package/packages/@monomind/cli/dist/src/agents/prompt-experiment.js +49 -0
- package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.d.ts +22 -0
- package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.js +80 -0
- package/packages/@monomind/cli/dist/src/agents/registry-builder.d.ts +36 -0
- package/packages/@monomind/cli/dist/src/agents/registry-builder.js +200 -0
- package/packages/@monomind/cli/dist/src/agents/registry-query.d.ts +71 -0
- package/packages/@monomind/cli/dist/src/agents/registry-query.js +125 -0
- package/packages/@monomind/cli/dist/src/agents/score-decay.d.ts +19 -0
- package/packages/@monomind/cli/dist/src/agents/score-decay.js +22 -0
- package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.js +40 -0
- package/packages/@monomind/cli/dist/src/agents/specialization-scorer.d.ts +54 -0
- package/packages/@monomind/cli/dist/src/agents/specialization-scorer.js +212 -0
- package/packages/@monomind/cli/dist/src/agents/termination-watcher.d.ts +30 -0
- package/packages/@monomind/cli/dist/src/agents/termination-watcher.js +84 -0
- package/packages/@monomind/cli/dist/src/agents/trigger-index.d.ts +20 -0
- package/packages/@monomind/cli/dist/src/agents/trigger-index.js +38 -0
- package/packages/@monomind/cli/dist/src/agents/trigger-scanner.d.ts +64 -0
- package/packages/@monomind/cli/dist/src/agents/trigger-scanner.js +308 -0
- package/packages/@monomind/cli/dist/src/agents/version-diff.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/agents/version-diff.js +64 -0
- package/packages/@monomind/cli/dist/src/agents/version-store.d.ts +60 -0
- package/packages/@monomind/cli/dist/src/agents/version-store.js +235 -0
- package/packages/@monomind/cli/dist/src/autopilot-state.d.ts +77 -0
- package/packages/@monomind/cli/dist/src/autopilot-state.js +330 -0
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.d.ts +87 -0
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.js +273 -0
- package/packages/@monomind/cli/dist/src/benchmarks/metric-evaluators.d.ts +36 -0
- package/packages/@monomind/cli/dist/src/benchmarks/metric-evaluators.js +114 -0
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.js +404 -0
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.js +333 -0
- package/packages/@monomind/cli/dist/src/commands/agent.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/agent.js +943 -0
- package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +19 -0
- package/packages/@monomind/cli/dist/src/commands/analyze.js +2048 -0
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.js +238 -0
- package/packages/@monomind/cli/dist/src/commands/appliance.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/appliance.js +406 -0
- package/packages/@monomind/cli/dist/src/commands/autopilot.d.ts +15 -0
- package/packages/@monomind/cli/dist/src/commands/autopilot.js +362 -0
- package/packages/@monomind/cli/dist/src/commands/benchmark.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/benchmark.js +571 -0
- package/packages/@monomind/cli/dist/src/commands/claims.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/claims.js +632 -0
- package/packages/@monomind/cli/dist/src/commands/cleanup.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/commands/cleanup.js +218 -0
- package/packages/@monomind/cli/dist/src/commands/completions.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/completions.js +539 -0
- package/packages/@monomind/cli/dist/src/commands/config.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/config.js +460 -0
- package/packages/@monomind/cli/dist/src/commands/daemon.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/daemon.js +671 -0
- package/packages/@monomind/cli/dist/src/commands/deployment.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/deployment.js +691 -0
- package/packages/@monomind/cli/dist/src/commands/doctor.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/doctor.js +647 -0
- package/packages/@monomind/cli/dist/src/commands/embeddings.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/embeddings.js +1652 -0
- package/packages/@monomind/cli/dist/src/commands/guidance.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/guidance.js +560 -0
- package/packages/@monomind/cli/dist/src/commands/hive-mind.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/hive-mind.js +1238 -0
- package/packages/@monomind/cli/dist/src/commands/hooks.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/hooks.js +4446 -0
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +119 -0
- package/packages/@monomind/cli/dist/src/commands/index.js +404 -0
- package/packages/@monomind/cli/dist/src/commands/init.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/init.js +853 -0
- package/packages/@monomind/cli/dist/src/commands/issues.d.ts +21 -0
- package/packages/@monomind/cli/dist/src/commands/issues.js +567 -0
- package/packages/@monomind/cli/dist/src/commands/mcp.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/mcp.js +705 -0
- package/packages/@monomind/cli/dist/src/commands/memory.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/memory.js +1596 -0
- package/packages/@monomind/cli/dist/src/commands/migrate.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/migrate.js +790 -0
- package/packages/@monomind/cli/dist/src/commands/monograph.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/monograph.js +526 -0
- package/packages/@monomind/cli/dist/src/commands/neural.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/neural.js +1494 -0
- package/packages/@monomind/cli/dist/src/commands/performance.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/performance.js +601 -0
- package/packages/@monomind/cli/dist/src/commands/plugins.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/plugins.js +796 -0
- package/packages/@monomind/cli/dist/src/commands/process.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/process.js +718 -0
- package/packages/@monomind/cli/dist/src/commands/progress.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/progress.js +259 -0
- package/packages/@monomind/cli/dist/src/commands/providers.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/providers.js +391 -0
- package/packages/@monomind/cli/dist/src/commands/replay.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/replay.js +60 -0
- package/packages/@monomind/cli/dist/src/commands/route.d.ts +16 -0
- package/packages/@monomind/cli/dist/src/commands/route.js +939 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/backup.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/backup.js +746 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.js +489 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.js +359 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/index.d.ts +29 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/index.js +129 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.js +481 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.js +497 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/optimize.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/optimize.js +504 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.js +765 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/status.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/ruvector/status.js +491 -0
- package/packages/@monomind/cli/dist/src/commands/security.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/commands/security.js +943 -0
- package/packages/@monomind/cli/dist/src/commands/session.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/session.js +793 -0
- package/packages/@monomind/cli/dist/src/commands/start.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/start.js +432 -0
- package/packages/@monomind/cli/dist/src/commands/status.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/status.js +591 -0
- package/packages/@monomind/cli/dist/src/commands/swarm.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/swarm.js +812 -0
- package/packages/@monomind/cli/dist/src/commands/task.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/task.js +671 -0
- package/packages/@monomind/cli/dist/src/commands/tokens.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/tokens.js +107 -0
- package/packages/@monomind/cli/dist/src/commands/transfer-store.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/commands/transfer-store.js +428 -0
- package/packages/@monomind/cli/dist/src/commands/ui.js +68 -0
- package/packages/@monomind/cli/dist/src/commands/update.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/update.js +276 -0
- package/packages/@monomind/cli/dist/src/commands/workflow.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/commands/workflow.js +644 -0
- package/packages/@monomind/cli/dist/src/config-adapter.d.ts +16 -0
- package/packages/@monomind/cli/dist/src/config-adapter.js +186 -0
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.d.ts +50 -0
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.js +142 -0
- package/packages/@monomind/cli/dist/src/consensus/index.d.ts +7 -0
- package/packages/@monomind/cli/dist/src/consensus/index.js +6 -0
- package/packages/@monomind/cli/dist/src/consensus/vote-signer.d.ts +36 -0
- package/packages/@monomind/cli/dist/src/consensus/vote-signer.js +71 -0
- package/packages/@monomind/cli/dist/src/context/context-provider.d.ts +44 -0
- package/packages/@monomind/cli/dist/src/context/context-provider.js +25 -0
- package/packages/@monomind/cli/dist/src/context/git-state-provider.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/context/git-state-provider.js +34 -0
- package/packages/@monomind/cli/dist/src/context/index.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/context/index.js +12 -0
- package/packages/@monomind/cli/dist/src/context/project-conventions-provider.d.ts +15 -0
- package/packages/@monomind/cli/dist/src/context/project-conventions-provider.js +19 -0
- package/packages/@monomind/cli/dist/src/context/prompt-assembler.d.ts +26 -0
- package/packages/@monomind/cli/dist/src/context/prompt-assembler.js +93 -0
- package/packages/@monomind/cli/dist/src/context/task-history-provider.d.ts +24 -0
- package/packages/@monomind/cli/dist/src/context/task-history-provider.js +32 -0
- package/packages/@monomind/cli/dist/src/context/user-preferences-provider.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/context/user-preferences-provider.js +27 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-reader.d.ts +31 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-reader.js +81 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.d.ts +27 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.js +90 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-writer.d.ts +24 -0
- package/packages/@monomind/cli/dist/src/dlq/dlq-writer.js +65 -0
- package/packages/@monomind/cli/dist/src/dlq/index.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/dlq/index.js +7 -0
- package/packages/@monomind/cli/dist/src/eval/dataset-manager.d.ts +33 -0
- package/packages/@monomind/cli/dist/src/eval/dataset-manager.js +107 -0
- package/packages/@monomind/cli/dist/src/eval/dataset-runner.d.ts +23 -0
- package/packages/@monomind/cli/dist/src/eval/dataset-runner.js +59 -0
- package/packages/@monomind/cli/dist/src/eval/index.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/eval/index.js +7 -0
- package/packages/@monomind/cli/dist/src/eval/trace-collector.d.ts +40 -0
- package/packages/@monomind/cli/dist/src/eval/trace-collector.js +102 -0
- package/packages/@monomind/cli/dist/src/index.d.ts +82 -0
- package/packages/@monomind/cli/dist/src/index.js +580 -0
- package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +558 -0
- package/packages/@monomind/cli/dist/src/init/executor.d.ts +38 -0
- package/packages/@monomind/cli/dist/src/init/executor.js +2172 -0
- package/packages/@monomind/cli/dist/src/init/helpers-generator.d.ts +60 -0
- package/packages/@monomind/cli/dist/src/init/helpers-generator.js +1235 -0
- package/packages/@monomind/cli/dist/src/init/index.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/init/index.js +15 -0
- package/packages/@monomind/cli/dist/src/init/mcp-generator.d.ts +26 -0
- package/packages/@monomind/cli/dist/src/init/mcp-generator.js +99 -0
- package/packages/@monomind/cli/dist/src/init/settings-generator.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/init/settings-generator.js +417 -0
- package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.d.ts +38 -0
- package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.js +586 -0
- package/packages/@monomind/cli/dist/src/init/statusline-generator.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/init/statusline-generator.js +1171 -0
- package/packages/@monomind/cli/dist/src/init/types.d.ts +315 -0
- package/packages/@monomind/cli/dist/src/init/types.js +254 -0
- package/packages/@monomind/cli/dist/src/interactive/interrupt.d.ts +22 -0
- package/packages/@monomind/cli/dist/src/interactive/interrupt.js +71 -0
- package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.js +48 -0
- package/packages/@monomind/cli/dist/src/mcp/tool-registry.d.ts +61 -0
- package/packages/@monomind/cli/dist/src/mcp/tool-registry.js +246 -0
- package/packages/@monomind/cli/dist/src/mcp-client.d.ts +92 -0
- package/packages/@monomind/cli/dist/src/mcp-client.js +270 -0
- package/packages/@monomind/cli/dist/src/mcp-server.d.ts +170 -0
- package/packages/@monomind/cli/dist/src/mcp-server.js +829 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/a2a-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/a2a-tools.js +244 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.js +607 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/agentdb-tools.js +596 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.js +326 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.js +129 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.js +237 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.js +729 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.js +797 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.js +381 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.js +728 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.js +509 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +823 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.js +485 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.js +49 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.d.ts +15 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +646 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +957 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +3440 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +39 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/index.js +41 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +530 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +6306 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +16 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +718 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.d.ts +16 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.js +656 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.js +350 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.d.ts +17 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.js +30 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.js +295 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.js +434 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.js +378 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.js +317 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.js +552 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.js +446 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.js +309 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.js +401 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/types.d.ts +37 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/types.js +14 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.js +230 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.js +631 -0
- package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.d.ts +295 -0
- package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.js +632 -0
- package/packages/@monomind/cli/dist/src/memory/intelligence.d.ts +338 -0
- package/packages/@monomind/cli/dist/src/memory/intelligence.js +1049 -0
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +410 -0
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +1654 -0
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +414 -0
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +2284 -0
- package/packages/@monomind/cli/dist/src/memory/sona-optimizer.d.ts +234 -0
- package/packages/@monomind/cli/dist/src/memory/sona-optimizer.js +650 -0
- package/packages/@monomind/cli/dist/src/model/complexity-scorer.d.ts +21 -0
- package/packages/@monomind/cli/dist/src/model/complexity-scorer.js +106 -0
- package/packages/@monomind/cli/dist/src/model/index.d.ts +4 -0
- package/packages/@monomind/cli/dist/src/model/index.js +4 -0
- package/packages/@monomind/cli/dist/src/model/model-settings.d.ts +22 -0
- package/packages/@monomind/cli/dist/src/model/model-settings.js +33 -0
- package/packages/@monomind/cli/dist/src/model/model-tier-resolver.d.ts +24 -0
- package/packages/@monomind/cli/dist/src/model/model-tier-resolver.js +65 -0
- package/packages/@monomind/cli/dist/src/observability/replay-reader.d.ts +40 -0
- package/packages/@monomind/cli/dist/src/observability/replay-reader.js +138 -0
- package/packages/@monomind/cli/dist/src/orchestration/index.d.ts +7 -0
- package/packages/@monomind/cli/dist/src/orchestration/index.js +6 -0
- package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.js +31 -0
- package/packages/@monomind/cli/dist/src/orchestration/routing-modes.d.ts +68 -0
- package/packages/@monomind/cli/dist/src/orchestration/routing-modes.js +180 -0
- package/packages/@monomind/cli/dist/src/output.d.ts +133 -0
- package/packages/@monomind/cli/dist/src/output.js +514 -0
- package/packages/@monomind/cli/dist/src/parser.d.ts +59 -0
- package/packages/@monomind/cli/dist/src/parser.js +459 -0
- package/packages/@monomind/cli/dist/src/plugins/manager.d.ts +133 -0
- package/packages/@monomind/cli/dist/src/plugins/manager.js +493 -0
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.d.ts +88 -0
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +859 -0
- package/packages/@monomind/cli/dist/src/plugins/store/index.d.ts +76 -0
- package/packages/@monomind/cli/dist/src/plugins/store/index.js +141 -0
- package/packages/@monomind/cli/dist/src/plugins/store/search.d.ts +46 -0
- package/packages/@monomind/cli/dist/src/plugins/store/search.js +230 -0
- package/packages/@monomind/cli/dist/src/plugins/store/types.d.ts +274 -0
- package/packages/@monomind/cli/dist/src/plugins/store/types.js +7 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.js +188 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.d.ts +101 -0
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.js +248 -0
- package/packages/@monomind/cli/dist/src/production/error-handler.d.ts +94 -0
- package/packages/@monomind/cli/dist/src/production/error-handler.js +321 -0
- package/packages/@monomind/cli/dist/src/production/index.d.ts +23 -0
- package/packages/@monomind/cli/dist/src/production/index.js +18 -0
- package/packages/@monomind/cli/dist/src/production/monitoring.d.ts +161 -0
- package/packages/@monomind/cli/dist/src/production/monitoring.js +360 -0
- package/packages/@monomind/cli/dist/src/production/rate-limiter.d.ts +80 -0
- package/packages/@monomind/cli/dist/src/production/rate-limiter.js +209 -0
- package/packages/@monomind/cli/dist/src/production/retry.d.ts +48 -0
- package/packages/@monomind/cli/dist/src/production/retry.js +179 -0
- package/packages/@monomind/cli/dist/src/prompt.d.ts +44 -0
- package/packages/@monomind/cli/dist/src/prompt.js +501 -0
- package/packages/@monomind/cli/dist/src/runtime/headless.d.ts +60 -0
- package/packages/@monomind/cli/dist/src/runtime/headless.js +284 -0
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.d.ts +182 -0
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.js +316 -0
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.js +277 -0
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.js +539 -0
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.js +157 -0
- package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.d.ts +176 -0
- package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.js +718 -0
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.js +551 -0
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.js +643 -0
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.js +929 -0
- package/packages/@monomind/cli/dist/src/ruvector/index.d.ts +39 -0
- package/packages/@monomind/cli/dist/src/ruvector/index.js +76 -0
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.js +455 -0
- package/packages/@monomind/cli/dist/src/ruvector/model-router.d.ts +222 -0
- package/packages/@monomind/cli/dist/src/ruvector/model-router.js +512 -0
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.d.ts +213 -0
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.js +649 -0
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.d.ts +217 -0
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.js +712 -0
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.d.ts +179 -0
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.js +363 -0
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.js +178 -0
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.d.ts +69 -0
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.js +243 -0
- package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.d.ts +50 -0
- package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.js +95 -0
- package/packages/@monomind/cli/dist/src/services/claim-service.d.ts +206 -0
- package/packages/@monomind/cli/dist/src/services/claim-service.js +849 -0
- package/packages/@monomind/cli/dist/src/services/config-file-manager.d.ts +51 -0
- package/packages/@monomind/cli/dist/src/services/config-file-manager.js +312 -0
- package/packages/@monomind/cli/dist/src/services/container-worker-pool.d.ts +197 -0
- package/packages/@monomind/cli/dist/src/services/container-worker-pool.js +623 -0
- package/packages/@monomind/cli/dist/src/services/headless-worker-executor.d.ts +311 -0
- package/packages/@monomind/cli/dist/src/services/headless-worker-executor.js +1167 -0
- package/packages/@monomind/cli/dist/src/services/index.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/services/index.js +11 -0
- package/packages/@monomind/cli/dist/src/services/registry-api.d.ts +58 -0
- package/packages/@monomind/cli/dist/src/services/registry-api.js +199 -0
- package/packages/@monomind/cli/dist/src/services/ruvector-training.d.ts +222 -0
- package/packages/@monomind/cli/dist/src/services/ruvector-training.js +696 -0
- package/packages/@monomind/cli/dist/src/services/worker-daemon.d.ts +248 -0
- package/packages/@monomind/cli/dist/src/services/worker-daemon.js +1083 -0
- package/packages/@monomind/cli/dist/src/services/worker-queue.d.ts +201 -0
- package/packages/@monomind/cli/dist/src/services/worker-queue.js +594 -0
- package/packages/@monomind/cli/dist/src/suggest.d.ts +53 -0
- package/packages/@monomind/cli/dist/src/suggest.js +209 -0
- package/packages/@monomind/cli/dist/src/swarm/communication-graph.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/swarm/communication-graph.js +77 -0
- package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.d.ts +31 -0
- package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.js +61 -0
- package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.d.ts +19 -0
- package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.js +68 -0
- package/packages/@monomind/cli/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/transfer/anonymization/index.js +177 -0
- package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.js +205 -0
- package/packages/@monomind/cli/dist/src/transfer/export.d.ts +25 -0
- package/packages/@monomind/cli/dist/src/transfer/export.js +115 -0
- package/packages/@monomind/cli/dist/src/transfer/index.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/transfer/index.js +31 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/client.js +384 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.js +420 -0
- package/packages/@monomind/cli/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/packages/@monomind/cli/dist/src/transfer/models/seraphine.js +373 -0
- package/packages/@monomind/cli/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/packages/@monomind/cli/dist/src/transfer/serialization/cfp.js +183 -0
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.js +281 -0
- package/packages/@monomind/cli/dist/src/transfer/storage/index.d.ts +6 -0
- package/packages/@monomind/cli/dist/src/transfer/storage/index.js +6 -0
- package/packages/@monomind/cli/dist/src/transfer/store/discovery.d.ts +91 -0
- package/packages/@monomind/cli/dist/src/transfer/store/discovery.js +437 -0
- package/packages/@monomind/cli/dist/src/transfer/store/download.d.ts +79 -0
- package/packages/@monomind/cli/dist/src/transfer/store/download.js +423 -0
- package/packages/@monomind/cli/dist/src/transfer/store/index.d.ts +84 -0
- package/packages/@monomind/cli/dist/src/transfer/store/index.js +153 -0
- package/packages/@monomind/cli/dist/src/transfer/store/publish.d.ts +76 -0
- package/packages/@monomind/cli/dist/src/transfer/store/publish.js +293 -0
- package/packages/@monomind/cli/dist/src/transfer/store/registry.d.ts +58 -0
- package/packages/@monomind/cli/dist/src/transfer/store/registry.js +301 -0
- package/packages/@monomind/cli/dist/src/transfer/store/search.d.ts +54 -0
- package/packages/@monomind/cli/dist/src/transfer/store/search.js +232 -0
- package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/packages/@monomind/cli/dist/src/transfer/store/types.d.ts +193 -0
- package/packages/@monomind/cli/dist/src/transfer/store/types.js +6 -0
- package/packages/@monomind/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/packages/@monomind/cli/dist/src/transfer/test-seraphine.js +105 -0
- package/packages/@monomind/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/packages/@monomind/cli/dist/src/transfer/tests/test-store.js +214 -0
- package/packages/@monomind/cli/dist/src/transfer/types.d.ts +245 -0
- package/packages/@monomind/cli/dist/src/transfer/types.js +6 -0
- package/packages/@monomind/cli/dist/src/types.d.ts +198 -0
- package/packages/@monomind/cli/dist/src/types.js +38 -0
- package/packages/@monomind/cli/dist/src/update/checker.d.ts +34 -0
- package/packages/@monomind/cli/dist/src/update/checker.js +198 -0
- package/packages/@monomind/cli/dist/src/update/executor.d.ts +32 -0
- package/packages/@monomind/cli/dist/src/update/executor.js +186 -0
- package/packages/@monomind/cli/dist/src/update/index.d.ts +33 -0
- package/packages/@monomind/cli/dist/src/update/index.js +64 -0
- package/packages/@monomind/cli/dist/src/update/rate-limiter.d.ts +31 -0
- package/packages/@monomind/cli/dist/src/update/rate-limiter.js +116 -0
- package/packages/@monomind/cli/dist/src/update/validator.d.ts +17 -0
- package/packages/@monomind/cli/dist/src/update/validator.js +118 -0
- package/packages/@monomind/cli/dist/src/utils/parse-jsonl.d.ts +6 -0
- package/packages/@monomind/cli/dist/src/utils/parse-jsonl.js +22 -0
- package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.d.ts +10 -0
- package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.js +82 -0
- package/packages/@monomind/cli/dist/src/workflow/context-resolver.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/workflow/context-resolver.js +23 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-builder.d.ts +17 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-builder.js +129 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-executor.d.ts +9 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-executor.js +116 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-types.d.ts +41 -0
- package/packages/@monomind/cli/dist/src/workflow/dag-types.js +8 -0
- package/packages/@monomind/cli/dist/src/workflow/dsl-parser.d.ts +12 -0
- package/packages/@monomind/cli/dist/src/workflow/dsl-parser.js +20 -0
- package/packages/@monomind/cli/dist/src/workflow/dsl-schema.d.ts +165 -0
- package/packages/@monomind/cli/dist/src/workflow/dsl-schema.js +82 -0
- package/packages/@monomind/cli/dist/src/workflow/index.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/workflow/index.js +11 -0
- package/packages/@monomind/cli/dist/src/workflow/template-engine.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/workflow/template-engine.js +40 -0
- package/packages/@monomind/cli/dist/src/workflow/workflow-executor.d.ts +29 -0
- package/packages/@monomind/cli/dist/src/workflow/workflow-executor.js +227 -0
- package/packages/@monomind/cli/package.json +115 -0
- package/packages/@monomind/guidance/README.md +1192 -0
- package/packages/@monomind/guidance/dist/adversarial.d.ts +284 -0
- package/packages/@monomind/guidance/dist/adversarial.js +572 -0
- package/packages/@monomind/guidance/dist/analyzer.d.ts +530 -0
- package/packages/@monomind/guidance/dist/analyzer.js +2518 -0
- package/packages/@monomind/guidance/dist/artifacts.d.ts +283 -0
- package/packages/@monomind/guidance/dist/artifacts.js +356 -0
- package/packages/@monomind/guidance/dist/authority.d.ts +290 -0
- package/packages/@monomind/guidance/dist/authority.js +558 -0
- package/packages/@monomind/guidance/dist/capabilities.d.ts +209 -0
- package/packages/@monomind/guidance/dist/capabilities.js +485 -0
- package/packages/@monomind/guidance/dist/coherence.d.ts +233 -0
- package/packages/@monomind/guidance/dist/coherence.js +372 -0
- package/packages/@monomind/guidance/dist/compiler.d.ts +87 -0
- package/packages/@monomind/guidance/dist/compiler.js +419 -0
- package/packages/@monomind/guidance/dist/conformance-kit.d.ts +225 -0
- package/packages/@monomind/guidance/dist/conformance-kit.js +629 -0
- package/packages/@monomind/guidance/dist/continue-gate.d.ts +214 -0
- package/packages/@monomind/guidance/dist/continue-gate.js +353 -0
- package/packages/@monomind/guidance/dist/crypto-utils.d.ts +17 -0
- package/packages/@monomind/guidance/dist/crypto-utils.js +24 -0
- package/packages/@monomind/guidance/dist/evolution.d.ts +282 -0
- package/packages/@monomind/guidance/dist/evolution.js +500 -0
- package/packages/@monomind/guidance/dist/gates.d.ts +79 -0
- package/packages/@monomind/guidance/dist/gates.js +302 -0
- package/packages/@monomind/guidance/dist/gateway.d.ts +206 -0
- package/packages/@monomind/guidance/dist/gateway.js +452 -0
- package/packages/@monomind/guidance/dist/generators.d.ts +153 -0
- package/packages/@monomind/guidance/dist/generators.js +682 -0
- package/packages/@monomind/guidance/dist/headless.d.ts +177 -0
- package/packages/@monomind/guidance/dist/headless.js +342 -0
- package/packages/@monomind/guidance/dist/hooks.d.ts +109 -0
- package/packages/@monomind/guidance/dist/hooks.js +347 -0
- package/packages/@monomind/guidance/dist/index.d.ts +205 -0
- package/packages/@monomind/guidance/dist/index.js +321 -0
- package/packages/@monomind/guidance/dist/ledger.d.ts +162 -0
- package/packages/@monomind/guidance/dist/ledger.js +375 -0
- package/packages/@monomind/guidance/dist/manifest-validator.d.ts +289 -0
- package/packages/@monomind/guidance/dist/manifest-validator.js +838 -0
- package/packages/@monomind/guidance/dist/memory-gate.d.ts +222 -0
- package/packages/@monomind/guidance/dist/memory-gate.js +382 -0
- package/packages/@monomind/guidance/dist/meta-governance.d.ts +265 -0
- package/packages/@monomind/guidance/dist/meta-governance.js +348 -0
- package/packages/@monomind/guidance/dist/optimizer.d.ts +104 -0
- package/packages/@monomind/guidance/dist/optimizer.js +329 -0
- package/packages/@monomind/guidance/dist/persistence.d.ts +189 -0
- package/packages/@monomind/guidance/dist/persistence.js +464 -0
- package/packages/@monomind/guidance/dist/proof.d.ts +185 -0
- package/packages/@monomind/guidance/dist/proof.js +238 -0
- package/packages/@monomind/guidance/dist/retriever.d.ts +116 -0
- package/packages/@monomind/guidance/dist/retriever.js +394 -0
- package/packages/@monomind/guidance/dist/ruvbot-integration.d.ts +370 -0
- package/packages/@monomind/guidance/dist/ruvbot-integration.js +738 -0
- package/packages/@monomind/guidance/dist/temporal.d.ts +426 -0
- package/packages/@monomind/guidance/dist/temporal.js +658 -0
- package/packages/@monomind/guidance/dist/trust.d.ts +283 -0
- package/packages/@monomind/guidance/dist/trust.js +473 -0
- package/packages/@monomind/guidance/dist/truth-anchors.d.ts +276 -0
- package/packages/@monomind/guidance/dist/truth-anchors.js +488 -0
- package/packages/@monomind/guidance/dist/types.d.ts +378 -0
- package/packages/@monomind/guidance/dist/types.js +10 -0
- package/packages/@monomind/guidance/dist/uncertainty.d.ts +372 -0
- package/packages/@monomind/guidance/dist/uncertainty.js +619 -0
- package/packages/@monomind/guidance/dist/wasm-kernel.d.ts +48 -0
- package/packages/@monomind/guidance/dist/wasm-kernel.js +158 -0
- package/packages/@monomind/guidance/package.json +198 -0
- package/packages/@monomind/shared/README.md +322 -0
- package/packages/@monomind/shared/dist/agent-contract.d.ts +28 -0
- package/packages/@monomind/shared/dist/agent-contract.js +57 -0
- package/packages/@monomind/shared/dist/agent-error-result.d.ts +17 -0
- package/packages/@monomind/shared/dist/agent-error-result.js +23 -0
- package/packages/@monomind/shared/dist/core/config/defaults.d.ts +41 -0
- package/packages/@monomind/shared/dist/core/config/defaults.js +186 -0
- package/packages/@monomind/shared/dist/core/config/index.d.ts +8 -0
- package/packages/@monomind/shared/dist/core/config/index.js +12 -0
- package/packages/@monomind/shared/dist/core/config/loader.d.ts +45 -0
- package/packages/@monomind/shared/dist/core/config/loader.js +238 -0
- package/packages/@monomind/shared/dist/core/config/schema.d.ts +324 -0
- package/packages/@monomind/shared/dist/core/config/schema.js +160 -0
- package/packages/@monomind/shared/dist/core/config/validator.d.ts +92 -0
- package/packages/@monomind/shared/dist/core/config/validator.js +147 -0
- package/packages/@monomind/shared/dist/core/event-bus.d.ts +31 -0
- package/packages/@monomind/shared/dist/core/event-bus.js +197 -0
- package/packages/@monomind/shared/dist/core/index.d.ts +15 -0
- package/packages/@monomind/shared/dist/core/index.js +19 -0
- package/packages/@monomind/shared/dist/core/interfaces/agent.interface.d.ts +200 -0
- package/packages/@monomind/shared/dist/core/interfaces/agent.interface.js +6 -0
- package/packages/@monomind/shared/dist/core/interfaces/coordinator.interface.d.ts +310 -0
- package/packages/@monomind/shared/dist/core/interfaces/coordinator.interface.js +7 -0
- package/packages/@monomind/shared/dist/core/interfaces/event.interface.d.ts +224 -0
- package/packages/@monomind/shared/dist/core/interfaces/event.interface.js +46 -0
- package/packages/@monomind/shared/dist/core/interfaces/index.d.ts +10 -0
- package/packages/@monomind/shared/dist/core/interfaces/index.js +15 -0
- package/packages/@monomind/shared/dist/core/interfaces/memory.interface.d.ts +298 -0
- package/packages/@monomind/shared/dist/core/interfaces/memory.interface.js +7 -0
- package/packages/@monomind/shared/dist/core/interfaces/task.interface.d.ts +185 -0
- package/packages/@monomind/shared/dist/core/interfaces/task.interface.js +6 -0
- package/packages/@monomind/shared/dist/core/orchestrator/event-coordinator.d.ts +35 -0
- package/packages/@monomind/shared/dist/core/orchestrator/event-coordinator.js +101 -0
- package/packages/@monomind/shared/dist/core/orchestrator/health-monitor.d.ts +60 -0
- package/packages/@monomind/shared/dist/core/orchestrator/health-monitor.js +166 -0
- package/packages/@monomind/shared/dist/core/orchestrator/index.d.ts +46 -0
- package/packages/@monomind/shared/dist/core/orchestrator/index.js +64 -0
- package/packages/@monomind/shared/dist/core/orchestrator/lifecycle-manager.d.ts +56 -0
- package/packages/@monomind/shared/dist/core/orchestrator/lifecycle-manager.js +195 -0
- package/packages/@monomind/shared/dist/core/orchestrator/session-manager.d.ts +83 -0
- package/packages/@monomind/shared/dist/core/orchestrator/session-manager.js +193 -0
- package/packages/@monomind/shared/dist/core/orchestrator/task-manager.d.ts +49 -0
- package/packages/@monomind/shared/dist/core/orchestrator/task-manager.js +253 -0
- package/packages/@monomind/shared/dist/events/domain-events.d.ts +282 -0
- package/packages/@monomind/shared/dist/events/domain-events.js +165 -0
- package/packages/@monomind/shared/dist/events/event-store.d.ts +126 -0
- package/packages/@monomind/shared/dist/events/event-store.js +416 -0
- package/packages/@monomind/shared/dist/events/event-store.test.d.ts +8 -0
- package/packages/@monomind/shared/dist/events/event-store.test.js +293 -0
- package/packages/@monomind/shared/dist/events/example-usage.d.ts +10 -0
- package/packages/@monomind/shared/dist/events/example-usage.js +193 -0
- package/packages/@monomind/shared/dist/events/index.d.ts +21 -0
- package/packages/@monomind/shared/dist/events/index.js +22 -0
- package/packages/@monomind/shared/dist/events/projections.d.ts +177 -0
- package/packages/@monomind/shared/dist/events/projections.js +421 -0
- package/packages/@monomind/shared/dist/events/rvf-event-log.d.ts +82 -0
- package/packages/@monomind/shared/dist/events/rvf-event-log.js +340 -0
- package/packages/@monomind/shared/dist/events/state-reconstructor.d.ts +101 -0
- package/packages/@monomind/shared/dist/events/state-reconstructor.js +263 -0
- package/packages/@monomind/shared/dist/events.d.ts +80 -0
- package/packages/@monomind/shared/dist/events.js +249 -0
- package/packages/@monomind/shared/dist/hooks/example-usage.d.ts +42 -0
- package/packages/@monomind/shared/dist/hooks/example-usage.js +351 -0
- package/packages/@monomind/shared/dist/hooks/executor.d.ts +100 -0
- package/packages/@monomind/shared/dist/hooks/executor.js +264 -0
- package/packages/@monomind/shared/dist/hooks/hooks.test.d.ts +9 -0
- package/packages/@monomind/shared/dist/hooks/hooks.test.js +322 -0
- package/packages/@monomind/shared/dist/hooks/index.d.ts +52 -0
- package/packages/@monomind/shared/dist/hooks/index.js +51 -0
- package/packages/@monomind/shared/dist/hooks/registry.d.ts +133 -0
- package/packages/@monomind/shared/dist/hooks/registry.js +277 -0
- package/packages/@monomind/shared/dist/hooks/safety/bash-safety.d.ts +105 -0
- package/packages/@monomind/shared/dist/hooks/safety/bash-safety.js +481 -0
- package/packages/@monomind/shared/dist/hooks/safety/file-organization.d.ts +144 -0
- package/packages/@monomind/shared/dist/hooks/safety/file-organization.js +328 -0
- package/packages/@monomind/shared/dist/hooks/safety/git-commit.d.ts +158 -0
- package/packages/@monomind/shared/dist/hooks/safety/git-commit.js +450 -0
- package/packages/@monomind/shared/dist/hooks/safety/index.d.ts +17 -0
- package/packages/@monomind/shared/dist/hooks/safety/index.js +17 -0
- package/packages/@monomind/shared/dist/hooks/session-hooks.d.ts +234 -0
- package/packages/@monomind/shared/dist/hooks/session-hooks.js +334 -0
- package/packages/@monomind/shared/dist/hooks/task-hooks.d.ts +163 -0
- package/packages/@monomind/shared/dist/hooks/task-hooks.js +326 -0
- package/packages/@monomind/shared/dist/hooks/types.d.ts +267 -0
- package/packages/@monomind/shared/dist/hooks/types.js +62 -0
- package/packages/@monomind/shared/dist/hooks/verify-exports.test.d.ts +9 -0
- package/packages/@monomind/shared/dist/hooks/verify-exports.test.js +93 -0
- package/packages/@monomind/shared/dist/index.d.ts +46 -0
- package/packages/@monomind/shared/dist/index.js +77 -0
- package/packages/@monomind/shared/dist/mcp/connection-pool.d.ts +98 -0
- package/packages/@monomind/shared/dist/mcp/connection-pool.js +364 -0
- package/packages/@monomind/shared/dist/mcp/index.d.ts +69 -0
- package/packages/@monomind/shared/dist/mcp/index.js +84 -0
- package/packages/@monomind/shared/dist/mcp/server.d.ts +166 -0
- package/packages/@monomind/shared/dist/mcp/server.js +593 -0
- package/packages/@monomind/shared/dist/mcp/session-manager.d.ts +136 -0
- package/packages/@monomind/shared/dist/mcp/session-manager.js +335 -0
- package/packages/@monomind/shared/dist/mcp/tool-registry.d.ts +178 -0
- package/packages/@monomind/shared/dist/mcp/tool-registry.js +439 -0
- package/packages/@monomind/shared/dist/mcp/transport/http.d.ts +104 -0
- package/packages/@monomind/shared/dist/mcp/transport/http.js +476 -0
- package/packages/@monomind/shared/dist/mcp/transport/index.d.ts +102 -0
- package/packages/@monomind/shared/dist/mcp/transport/index.js +238 -0
- package/packages/@monomind/shared/dist/mcp/transport/stdio.d.ts +104 -0
- package/packages/@monomind/shared/dist/mcp/transport/stdio.js +263 -0
- package/packages/@monomind/shared/dist/mcp/transport/websocket.d.ts +133 -0
- package/packages/@monomind/shared/dist/mcp/transport/websocket.js +396 -0
- package/packages/@monomind/shared/dist/mcp/types.d.ts +438 -0
- package/packages/@monomind/shared/dist/mcp/types.js +54 -0
- package/packages/@monomind/shared/dist/plugin-interface.d.ts +544 -0
- package/packages/@monomind/shared/dist/plugin-interface.js +23 -0
- package/packages/@monomind/shared/dist/plugin-loader.d.ts +139 -0
- package/packages/@monomind/shared/dist/plugin-loader.js +434 -0
- package/packages/@monomind/shared/dist/plugin-registry.d.ts +183 -0
- package/packages/@monomind/shared/dist/plugin-registry.js +457 -0
- package/packages/@monomind/shared/dist/plugins/index.d.ts +10 -0
- package/packages/@monomind/shared/dist/plugins/index.js +10 -0
- package/packages/@monomind/shared/dist/plugins/official/hive-mind-plugin.d.ts +106 -0
- package/packages/@monomind/shared/dist/plugins/official/hive-mind-plugin.js +241 -0
- package/packages/@monomind/shared/dist/plugins/official/index.d.ts +10 -0
- package/packages/@monomind/shared/dist/plugins/official/index.js +10 -0
- package/packages/@monomind/shared/dist/plugins/official/maestro-plugin.d.ts +121 -0
- package/packages/@monomind/shared/dist/plugins/official/maestro-plugin.js +355 -0
- package/packages/@monomind/shared/dist/plugins/types.d.ts +93 -0
- package/packages/@monomind/shared/dist/plugins/types.js +9 -0
- package/packages/@monomind/shared/dist/reducers.d.ts +33 -0
- package/packages/@monomind/shared/dist/reducers.js +89 -0
- package/packages/@monomind/shared/dist/resilience/bulkhead.d.ts +105 -0
- package/packages/@monomind/shared/dist/resilience/bulkhead.js +206 -0
- package/packages/@monomind/shared/dist/resilience/circuit-breaker.d.ts +132 -0
- package/packages/@monomind/shared/dist/resilience/circuit-breaker.js +233 -0
- package/packages/@monomind/shared/dist/resilience/index.d.ts +19 -0
- package/packages/@monomind/shared/dist/resilience/index.js +19 -0
- package/packages/@monomind/shared/dist/resilience/rate-limiter.d.ts +168 -0
- package/packages/@monomind/shared/dist/resilience/rate-limiter.js +314 -0
- package/packages/@monomind/shared/dist/resilience/retry.d.ts +91 -0
- package/packages/@monomind/shared/dist/resilience/retry.js +159 -0
- package/packages/@monomind/shared/dist/retry-policy.d.ts +14 -0
- package/packages/@monomind/shared/dist/retry-policy.js +23 -0
- package/packages/@monomind/shared/dist/retry-runner.d.ts +21 -0
- package/packages/@monomind/shared/dist/retry-runner.js +57 -0
- package/packages/@monomind/shared/dist/schema-validator.d.ts +46 -0
- package/packages/@monomind/shared/dist/schema-validator.js +133 -0
- package/packages/@monomind/shared/dist/scratchpad.d.ts +23 -0
- package/packages/@monomind/shared/dist/scratchpad.js +32 -0
- package/packages/@monomind/shared/dist/security/index.d.ts +10 -0
- package/packages/@monomind/shared/dist/security/index.js +12 -0
- package/packages/@monomind/shared/dist/security/input-validation.d.ts +73 -0
- package/packages/@monomind/shared/dist/security/input-validation.js +201 -0
- package/packages/@monomind/shared/dist/security/secure-random.d.ts +92 -0
- package/packages/@monomind/shared/dist/security/secure-random.js +142 -0
- package/packages/@monomind/shared/dist/services/index.d.ts +7 -0
- package/packages/@monomind/shared/dist/services/index.js +7 -0
- package/packages/@monomind/shared/dist/services/progress.service.d.ts +124 -0
- package/packages/@monomind/shared/dist/services/progress.service.js +402 -0
- package/packages/@monomind/shared/dist/state-manager.d.ts +34 -0
- package/packages/@monomind/shared/dist/state-manager.js +73 -0
- package/packages/@monomind/shared/dist/state-validator.d.ts +20 -0
- package/packages/@monomind/shared/dist/state-validator.js +49 -0
- package/packages/@monomind/shared/dist/swarm-state.d.ts +52 -0
- package/packages/@monomind/shared/dist/swarm-state.js +18 -0
- package/packages/@monomind/shared/dist/testing/fixture-builder.d.ts +14 -0
- package/packages/@monomind/shared/dist/testing/fixture-builder.js +32 -0
- package/packages/@monomind/shared/dist/testing/index.d.ts +2 -0
- package/packages/@monomind/shared/dist/testing/index.js +2 -0
- package/packages/@monomind/shared/dist/testing/test-model.d.ts +29 -0
- package/packages/@monomind/shared/dist/testing/test-model.js +53 -0
- package/packages/@monomind/shared/dist/types/agent-registry.d.ts +62 -0
- package/packages/@monomind/shared/dist/types/agent-registry.js +8 -0
- package/packages/@monomind/shared/dist/types/agent-version.d.ts +49 -0
- package/packages/@monomind/shared/dist/types/agent-version.js +7 -0
- package/packages/@monomind/shared/dist/types/agent.types.d.ts +137 -0
- package/packages/@monomind/shared/dist/types/agent.types.js +6 -0
- package/packages/@monomind/shared/dist/types/benchmark.d.ts +39 -0
- package/packages/@monomind/shared/dist/types/benchmark.js +6 -0
- package/packages/@monomind/shared/dist/types/communication-flow.d.ts +25 -0
- package/packages/@monomind/shared/dist/types/communication-flow.js +7 -0
- package/packages/@monomind/shared/dist/types/consensus-audit.d.ts +40 -0
- package/packages/@monomind/shared/dist/types/consensus-audit.js +7 -0
- package/packages/@monomind/shared/dist/types/dlq.d.ts +40 -0
- package/packages/@monomind/shared/dist/types/dlq.js +7 -0
- package/packages/@monomind/shared/dist/types/eval.d.ts +59 -0
- package/packages/@monomind/shared/dist/types/eval.js +6 -0
- package/packages/@monomind/shared/dist/types/index.d.ts +19 -0
- package/packages/@monomind/shared/dist/types/index.js +33 -0
- package/packages/@monomind/shared/dist/types/mcp.types.d.ts +266 -0
- package/packages/@monomind/shared/dist/types/mcp.types.js +7 -0
- package/packages/@monomind/shared/dist/types/memory.types.d.ts +236 -0
- package/packages/@monomind/shared/dist/types/memory.types.js +7 -0
- package/packages/@monomind/shared/dist/types/retry.d.ts +72 -0
- package/packages/@monomind/shared/dist/types/retry.js +40 -0
- package/packages/@monomind/shared/dist/types/specialization.d.ts +27 -0
- package/packages/@monomind/shared/dist/types/specialization.js +8 -0
- package/packages/@monomind/shared/dist/types/swarm.types.d.ts +186 -0
- package/packages/@monomind/shared/dist/types/swarm.types.js +65 -0
- package/packages/@monomind/shared/dist/types/task.types.d.ts +178 -0
- package/packages/@monomind/shared/dist/types/task.types.js +32 -0
- package/packages/@monomind/shared/dist/types/termination.d.ts +29 -0
- package/packages/@monomind/shared/dist/types/termination.js +14 -0
- package/packages/@monomind/shared/dist/types/tool-version.d.ts +41 -0
- package/packages/@monomind/shared/dist/types/tool-version.js +8 -0
- package/packages/@monomind/shared/dist/types/trigger.d.ts +40 -0
- package/packages/@monomind/shared/dist/types/trigger.js +8 -0
- package/packages/@monomind/shared/dist/types.d.ts +197 -0
- package/packages/@monomind/shared/dist/types.js +21 -0
- package/packages/@monomind/shared/dist/utils/secure-logger.d.ts +69 -0
- package/packages/@monomind/shared/dist/utils/secure-logger.js +208 -0
- package/packages/@monomind/shared/package.json +42 -0
- package/packages/README.md +513 -0
- package/bin/monomind.js +0 -50
|
@@ -0,0 +1,1120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind-idea
|
|
3
|
+
description: Mastermind idea domain — product ideation, feature brainstorming, pivot exploration. Spawns an Idea Manager agent for divergent thinking, then validates, elaborates, and decomposes approved ideas into actionable subtasks on separate dev and ops task boards.
|
|
4
|
+
type: domain-skill
|
|
5
|
+
default_mode: confirm
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Mastermind Idea Domain
|
|
9
|
+
|
|
10
|
+
This skill is invoked by `mastermind:master` or directly via `/mastermind:idea`.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- `brain_context`: BRAIN CONTEXT block (injected by master, or loaded standalone via _protocol.md brain load)
|
|
17
|
+
- `prompt`: the ideation goal for this run
|
|
18
|
+
- `project_name`: monotask space name
|
|
19
|
+
- `mode`: auto | confirm
|
|
20
|
+
|
|
21
|
+
Note: the `board_id` that mastermind:master may pass is its own orchestration board. The idea domain always creates a dedicated **ideation board** with its own pipeline columns — do not reuse master's board_id.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Complexity Assessment
|
|
26
|
+
|
|
27
|
+
Assess the prompt to determine execution mode:
|
|
28
|
+
|
|
29
|
+
**Simple (direct execution):** Single-answer ideation, one agent:
|
|
30
|
+
- "Give me 5 name ideas for this feature"
|
|
31
|
+
- "Suggest one pivot angle for this product"
|
|
32
|
+
→ Use a single researcher or content-creator agent. Skip Steps 3–6. Go straight to Step 7 (Brain Write).
|
|
33
|
+
|
|
34
|
+
**Complex (full pipeline):** Any of these:
|
|
35
|
+
- Product strategy or pivot exploration (multiple angles needed)
|
|
36
|
+
- Feature ideation requiring market and user context
|
|
37
|
+
- Competitive landscape brainstorm
|
|
38
|
+
- Full product vision document
|
|
39
|
+
→ Run Steps 3–6 (Board Setup → Idea Manager → Validation → Elaboration + Tasks).
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Standalone Execution (when called without master)
|
|
44
|
+
|
|
45
|
+
If this skill is invoked directly (not by master):
|
|
46
|
+
|
|
47
|
+
1. Load brain context following _protocol.md Brain Load Procedure (namespace: `idea`)
|
|
48
|
+
2. Run intake from _intake.md if prompt is vague
|
|
49
|
+
3. For complex prompts: run Steps 3–6 below
|
|
50
|
+
4. At end: follow _protocol.md Brain Write Procedure (namespace: `idea`)
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Simple Execution
|
|
55
|
+
|
|
56
|
+
For simple prompts (single agent, single output):
|
|
57
|
+
|
|
58
|
+
1. Spawn one Task agent with the ideation request as a self-contained briefing
|
|
59
|
+
2. Collect output
|
|
60
|
+
3. If called standalone (not from master): follow _protocol.md Brain Write Procedure (namespace: `idea`)
|
|
61
|
+
4. Return unified output schema with `status: complete`
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Complex Execution
|
|
66
|
+
|
|
67
|
+
### Step 3 — Monotask Board Setup
|
|
68
|
+
|
|
69
|
+
Set up the space and ideation board. The ideation board has a dedicated pipeline with six columns (not master's board).
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Compatible with macOS bash 3.2
|
|
73
|
+
project_name="${project_name:-$(basename "$PWD")}"
|
|
74
|
+
date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
75
|
+
idea_canonical="${project_name}-idea"
|
|
76
|
+
|
|
77
|
+
# Find or create space (by exact name)
|
|
78
|
+
space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
|
|
79
|
+
[ -z "$space_id" ] && space_id=$(monotask space create "$project_name" 2>/dev/null | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
|
|
80
|
+
[ -z "$space_id" ] && { echo "ERROR: Could not find or create space '$project_name'"; exit 1; }
|
|
81
|
+
|
|
82
|
+
# Find existing idea board by canonical name — reuse across runs (same pattern as master Step 6)
|
|
83
|
+
# board list format is "uuid: name" (colon-space separator, NOT pipe)
|
|
84
|
+
BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$idea_canonical" | head -1)
|
|
85
|
+
|
|
86
|
+
if [ -n "$BOARD_ID" ]; then
|
|
87
|
+
echo "Reusing idea board: $BOARD_ID ($idea_canonical)"
|
|
88
|
+
columns=$(monotask column list "$BOARD_ID" --json)
|
|
89
|
+
COL_NEW=$(echo "$columns" | jq -r '.[] | select(.title == "New") | .id' | head -1)
|
|
90
|
+
COL_EVALUATED=$(echo "$columns" | jq -r '.[] | select(.title == "Evaluated") | .id' | head -1)
|
|
91
|
+
COL_ELABORATED=$(echo "$columns"| jq -r '.[] | select(.title == "Elaborated") | .id' | head -1)
|
|
92
|
+
COL_TASKED=$(echo "$columns" | jq -r '.[] | select(.title == "Tasked") | .id' | head -1)
|
|
93
|
+
COL_ICED=$(echo "$columns" | jq -r '.[] | select(.title == "Iced") | .id' | head -1)
|
|
94
|
+
COL_REJECTED=$(echo "$columns" | jq -r '.[] | select(.title == "Rejected") | .id' | head -1)
|
|
95
|
+
[ -z "$COL_NEW" ] && { echo "ERROR: 'New' column missing on board $BOARD_ID — was board created with wrong schema?"; exit 1; }
|
|
96
|
+
[ -z "$COL_EVALUATED" ] && { echo "ERROR: 'Evaluated' column missing on board $BOARD_ID"; exit 1; }
|
|
97
|
+
[ -z "$COL_ELABORATED" ] && { echo "ERROR: 'Elaborated' column missing on board $BOARD_ID"; exit 1; }
|
|
98
|
+
[ -z "$COL_TASKED" ] && { echo "ERROR: 'Tasked' column missing on board $BOARD_ID"; exit 1; }
|
|
99
|
+
[ -z "$COL_ICED" ] && { echo "ERROR: 'Iced' column missing on board $BOARD_ID"; exit 1; }
|
|
100
|
+
[ -z "$COL_REJECTED" ] && { echo "ERROR: 'Rejected' column missing on board $BOARD_ID"; exit 1; }
|
|
101
|
+
else
|
|
102
|
+
echo "Creating idea board: $idea_canonical"
|
|
103
|
+
BOARD_ID=$(monotask board create --space "$space_id" "$idea_canonical" --json 2>/dev/null | jq -r '.id // empty')
|
|
104
|
+
[ -z "$BOARD_ID" ] && { echo "ERROR: Failed to create idea board '$idea_canonical'"; exit 1; }
|
|
105
|
+
monotask space boards add "$space_id" "$BOARD_ID" >/dev/null 2>&1 || true
|
|
106
|
+
COL_NEW=$(monotask column create "$BOARD_ID" "New" --json | jq -r '.id // empty')
|
|
107
|
+
COL_EVALUATED=$(monotask column create "$BOARD_ID" "Evaluated" --json | jq -r '.id // empty')
|
|
108
|
+
COL_ELABORATED=$(monotask column create "$BOARD_ID" "Elaborated" --json | jq -r '.id // empty')
|
|
109
|
+
COL_TASKED=$(monotask column create "$BOARD_ID" "Tasked" --json | jq -r '.id // empty')
|
|
110
|
+
COL_ICED=$(monotask column create "$BOARD_ID" "Iced" --json | jq -r '.id // empty')
|
|
111
|
+
COL_REJECTED=$(monotask column create "$BOARD_ID" "Rejected" --json | jq -r '.id // empty')
|
|
112
|
+
fi
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**After either branch above, validate and echo all values.** This is the canonical source for Step 4 Task construction.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Guard all column IDs — catches silent jq failures in the create branch
|
|
119
|
+
[ -z "$COL_NEW" ] && { echo "ERROR: COL_NEW empty after board setup"; exit 1; }
|
|
120
|
+
[ -z "$COL_EVALUATED" ] && { echo "ERROR: COL_EVALUATED empty after board setup"; exit 1; }
|
|
121
|
+
[ -z "$COL_ELABORATED" ] && { echo "ERROR: COL_ELABORATED empty after board setup"; exit 1; }
|
|
122
|
+
[ -z "$COL_TASKED" ] && { echo "ERROR: COL_TASKED empty after board setup"; exit 1; }
|
|
123
|
+
[ -z "$COL_ICED" ] && { echo "ERROR: COL_ICED empty after board setup"; exit 1; }
|
|
124
|
+
[ -z "$COL_REJECTED" ] && { echo "ERROR: COL_REJECTED empty after board setup"; exit 1; }
|
|
125
|
+
|
|
126
|
+
# Validate BOARD_ID looks like a UUID before proceeding
|
|
127
|
+
[[ ! "$BOARD_ID" =~ ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ ]] && \
|
|
128
|
+
{ echo "ERROR: BOARD_ID '$BOARD_ID' is not a valid UUID — aborting to prevent board name corruption"; exit 1; }
|
|
129
|
+
|
|
130
|
+
# Echo literal values — READ THESE and embed them as string literals in the Step 4 Task prompt.
|
|
131
|
+
# These are shell variables; they DO NOT survive into the Task agent's context.
|
|
132
|
+
echo "=== IDEA BOARD LITERAL VALUES ==="
|
|
133
|
+
echo "BOARD_ID=$BOARD_ID"
|
|
134
|
+
echo "COL_NEW=$COL_NEW"
|
|
135
|
+
echo "COL_EVALUATED=$COL_EVALUATED"
|
|
136
|
+
echo "COL_ELABORATED=$COL_ELABORATED"
|
|
137
|
+
echo "COL_TASKED=$COL_TASKED"
|
|
138
|
+
echo "COL_ICED=$COL_ICED"
|
|
139
|
+
echo "COL_REJECTED=$COL_REJECTED"
|
|
140
|
+
echo "==================================="
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
### Step 4 — Idea Manager Agent (Divergent Thinking)
|
|
146
|
+
|
|
147
|
+
**Before spawning the Idea Manager**, run the registry-aware specialist selection to determine which agents to use. This replaces hardcoded agent types with the best available specialists for the prompt.
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
REGISTRY=".monomind/registry.json"
|
|
151
|
+
PROMPT="$prompt"
|
|
152
|
+
TOP_N=6
|
|
153
|
+
|
|
154
|
+
# Select user/market/ops angle specialists
|
|
155
|
+
CATEGORIES="marketing strategy product academic specialized"
|
|
156
|
+
user_market_agents=$(jq \
|
|
157
|
+
--arg cats "$CATEGORIES" \
|
|
158
|
+
--arg kw "$(echo "$PROMPT" | tr '[:upper:]' '[:lower:]' | grep -oE '[a-z]{5,}' | sort -u | tr '\n' ' ')" \
|
|
159
|
+
--argjson n "$TOP_N" \
|
|
160
|
+
'[ .agents[] | select(.deprecated != true)
|
|
161
|
+
| select(.category as $c | ($cats | split(" ") | any(. == $c)))
|
|
162
|
+
| {name: .name, slug: .slug, category: .category,
|
|
163
|
+
score: (
|
|
164
|
+
(.name | ascii_downcase) as $n |
|
|
165
|
+
# Score on ANY keyword match (mirrors master.md pick_domain_manager scoring)
|
|
166
|
+
(if ($kw | length) > 0
|
|
167
|
+
then ([$kw | split(" ")[] | select(length > 0) | if ($n | contains(.)) then 1 else 0 end] | add // 0)
|
|
168
|
+
else 0 end)
|
|
169
|
+
)}
|
|
170
|
+
] | sort_by(-.score) | unique_by(.slug) | .[0:$n] | [.[].name]' \
|
|
171
|
+
"$REGISTRY" 2>/dev/null)
|
|
172
|
+
|
|
173
|
+
# Select technical angle specialists
|
|
174
|
+
CATEGORIES="engineering development architecture"
|
|
175
|
+
tech_agents=$(jq \
|
|
176
|
+
--arg cats "$CATEGORIES" \
|
|
177
|
+
--argjson n 3 \
|
|
178
|
+
'[ .agents[] | select(.deprecated != true)
|
|
179
|
+
| select(.category as $c | ($cats | split(" ") | any(. == $c)))
|
|
180
|
+
| {name: .name, slug: .slug}
|
|
181
|
+
] | unique_by(.slug) | .[0:$n] | [.[].name]' \
|
|
182
|
+
"$REGISTRY" 2>/dev/null)
|
|
183
|
+
|
|
184
|
+
# Merge: take top 6 from market/ops + top 2 from tech (cap at 8 total)
|
|
185
|
+
# Both variables hold JSON arrays (no -r flag) — use jq -s add to merge properly
|
|
186
|
+
specialist_list=$(jq -s 'add // [] | unique | .[0:8]' \
|
|
187
|
+
<(printf '%s' "$user_market_agents") \
|
|
188
|
+
<(printf '%s' "$tech_agents") 2>/dev/null)
|
|
189
|
+
|
|
190
|
+
# Fallback if registry missing or returned an empty array — need at least 2 specialists
|
|
191
|
+
specialist_count=$(echo "$specialist_list" | jq 'length // 0' 2>/dev/null || echo 0)
|
|
192
|
+
[ "$specialist_count" -lt 2 ] && specialist_list='["researcher","Trend Researcher","Growth Hacker","UX Researcher","Content Creator","Account Strategist"]'
|
|
193
|
+
|
|
194
|
+
echo "Selected specialists: $specialist_list"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**CRITICAL — Variable substitution required before constructing the Task call:**
|
|
198
|
+
The Task agent runs in an isolated context and cannot inherit shell variables. Before writing the Task prompt below, read the literal UUID values from the `=== IDEA BOARD LITERAL VALUES ===` echo block above and embed them as **hard-coded strings** in the prompt. Do NOT write `${BOARD_ID}`, `${COL_NEW}`, etc. in the prompt — the agent will receive those as literal dollar-sign strings and its `monotask card create` calls will fail, causing it to improvise with `monotask board create` and corrupt board names. Replace every `${BOARD_ID}`, `${COL_NEW}`, `${project_name}`, `${brain_context}`, `${prompt}`, `${date}`, and `${specialist_list}` with the actual value before calling Task. Leave `$result`, `$CARD_ID`, and other loop-internal variables as-is — they are bash variables the agent itself will set at runtime, not substitution targets.
|
|
199
|
+
|
|
200
|
+
Spawn the Idea Manager with `run_in_background: false` so its output is available for Step 5.
|
|
201
|
+
|
|
202
|
+
```javascript
|
|
203
|
+
Task({
|
|
204
|
+
subagent_type: "coordinator",
|
|
205
|
+
description: "Idea Manager for project " + project_name,
|
|
206
|
+
run_in_background: false,
|
|
207
|
+
prompt: `SAFETY CHECK: Before doing anything else, verify that the BOARD_ID you received matches UUID format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12 hex chars). If it does not, STOP immediately and report "ERROR: BOARD_ID was not substituted — received: <value>". Do NOT call monotask board create, monotask space create, or any board/space/column creation commands. Your only job is creating CARDS on the board you were given.
|
|
208
|
+
|
|
209
|
+
You are the Idea Manager for project "${project_name}".
|
|
210
|
+
|
|
211
|
+
CONTEXT: ${date} | Project: ${project_name} | Spawned by: mastermind:idea
|
|
212
|
+
|
|
213
|
+
BRAIN CONTEXT:
|
|
214
|
+
${brain_context}
|
|
215
|
+
|
|
216
|
+
YOUR BOARD: ${BOARD_ID}
|
|
217
|
+
COL_NEW: ${COL_NEW}
|
|
218
|
+
YOUR GOAL: ${prompt}
|
|
219
|
+
|
|
220
|
+
STEP 1 — PLAN
|
|
221
|
+
Decompose the ideation goal into distinct exploration angles. For each angle, identify:
|
|
222
|
+
- Perspective (market, user, technical, competitive, business operations)
|
|
223
|
+
- Which specialist to assign
|
|
224
|
+
- Expected output format
|
|
225
|
+
|
|
226
|
+
STEP 2 — SPAWN SPECIALISTS
|
|
227
|
+
Spawn one Task agent per angle (all in parallel, mesh topology). Each agent receives the
|
|
228
|
+
angle description, brain context, and project context, and must return a JSON array of ideas.
|
|
229
|
+
|
|
230
|
+
The following specialist agents have been pre-selected from the registry as best-fit for this prompt.
|
|
231
|
+
Spawn ALL of them in one message, assigning each a distinct angle:
|
|
232
|
+
|
|
233
|
+
SPECIALISTS: ${specialist_list}
|
|
234
|
+
|
|
235
|
+
Assign each specialist the angle that best matches their domain expertise.
|
|
236
|
+
For any specialist you don't recognize, assign them the closest research or analysis angle.
|
|
237
|
+
Always ensure at minimum these angles are covered even if the same agent covers multiple:
|
|
238
|
+
- Market / competitive landscape
|
|
239
|
+
- User / UX perspective
|
|
240
|
+
- Growth / acquisition
|
|
241
|
+
- Business operations / process
|
|
242
|
+
- Technical feasibility (at least one engineering-category agent)
|
|
243
|
+
|
|
244
|
+
Each specialist must classify every idea with one of these categories:
|
|
245
|
+
feature — new product capability for end users
|
|
246
|
+
technical-baseline — infrastructure, tooling, or technical debt (not user-visible)
|
|
247
|
+
business-operation — internal process, workflow, marketing, sales, ops, or org change
|
|
248
|
+
|
|
249
|
+
Each specialist returns ideas in this format:
|
|
250
|
+
[
|
|
251
|
+
{
|
|
252
|
+
"title": "...",
|
|
253
|
+
"description": "...",
|
|
254
|
+
"category": "feature | technical-baseline | business-operation"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
STEP 3 — DEDUPLICATE
|
|
259
|
+
Collect all ideas from all specialists. Drop any idea whose title is more than 80% similar
|
|
260
|
+
to an already-kept idea (fuzzy match). Keep the richer description when deduplicating.
|
|
261
|
+
|
|
262
|
+
STEP 4 — CREATE CARDS AND RETURN
|
|
263
|
+
For each unique idea, create one card in the New column (COL_NEW = ${COL_NEW}):
|
|
264
|
+
|
|
265
|
+
result=$(monotask card create "${BOARD_ID}" "${COL_NEW}" "<idea title ≤80 chars>" --json)
|
|
266
|
+
CARD_ID=$(echo "$result" | jq -r '.id // empty')
|
|
267
|
+
[ -z "$CARD_ID" ] && { echo "WARN: card creation failed for '<idea title>', skipping"; continue; }
|
|
268
|
+
monotask card set-description "${BOARD_ID}" "$CARD_ID" "<2-3 sentence description>"
|
|
269
|
+
monotask card comment add "${BOARD_ID}" "$CARD_ID" "CATEGORY: <feature | technical-baseline | business-operation>
|
|
270
|
+
SOURCE: <which specialist angle produced this>"
|
|
271
|
+
monotask card label add "${BOARD_ID}" "$CARD_ID" "mastermind-idea"
|
|
272
|
+
monotask card label add "${BOARD_ID}" "$CARD_ID" "category:<category>"
|
|
273
|
+
|
|
274
|
+
Then output a JSON block labelled IDEAS_OUTPUT with one entry per unique idea:
|
|
275
|
+
|
|
276
|
+
IDEAS_OUTPUT
|
|
277
|
+
[
|
|
278
|
+
{
|
|
279
|
+
"card_id": "<monotask card ID just created>",
|
|
280
|
+
"title": "<idea title>",
|
|
281
|
+
"description": "<2-3 sentence description>",
|
|
282
|
+
"category": "feature | technical-baseline | business-operation",
|
|
283
|
+
"source_angle": "<which specialist produced this>"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
END_IDEAS_OUTPUT`
|
|
287
|
+
})
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Parse the `IDEAS_OUTPUT` JSON block from the agent's response and assign it:
|
|
291
|
+
```bash
|
|
292
|
+
ideas_output_json='<paste the JSON array from IDEAS_OUTPUT here>'
|
|
293
|
+
```
|
|
294
|
+
If the `IDEAS_OUTPUT` block is absent from the agent's response (agent error, timeout, or unrecoverable failure), set `ideas_output_json='[]'` and treat as zero ideas.
|
|
295
|
+
If zero ideas were returned, report "Idea Manager produced no ideas." — skip Steps 5–6 and proceed to Step 7 (Brain Write).
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
### Step 5 — Validation (Product Manager Evaluation)
|
|
300
|
+
|
|
301
|
+
**Build `ideas_list` before constructing the Step 5 Task prompt:**
|
|
302
|
+
```bash
|
|
303
|
+
# Format the full IDEAS_OUTPUT array (from Step 4) as the literal string to embed in the Task prompt.
|
|
304
|
+
# Each line: card_id | title | description | category | source_angle
|
|
305
|
+
ideas_list=$(echo "$ideas_output_json" | jq -r \
|
|
306
|
+
'.[] | "- card_id: \(.card_id)\n title: \(.title)\n description: \(.description)\n category: \(.category)\n source: \(.source_angle)\n"')
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**CRITICAL — Variable substitution required for Step 5 Task call:**
|
|
310
|
+
Before constructing the Task prompt below, read the literal UUID values from the `=== IDEA BOARD LITERAL VALUES ===` echo block (Step 3) and embed them as hard-coded strings. Also embed the full `brain_context`, `prompt`, and `ideas_list` (built above) as literal text. Replace every `${BOARD_ID}`, `${COL_EVALUATED}`, `${COL_ICED}`, `${COL_REJECTED}`, `${brain_context}`, `${prompt}`, `${project_name}`, `${date}`, and `${ideas_list}` with its actual value before calling Task — the agent receives unsubstituted `${...}` strings verbatim and silently skips every board update.
|
|
311
|
+
|
|
312
|
+
Spawn a single `general-purpose` agent via the Task tool. Do NOT use `Product Manager` — that agent type lacks Bash tool access and cannot execute `monotask` CLI commands. The evaluator agent produces verdicts and executes all board updates directly via Bash.
|
|
313
|
+
|
|
314
|
+
```javascript
|
|
315
|
+
Task({
|
|
316
|
+
subagent_type: "general-purpose",
|
|
317
|
+
description: "PM validation for project " + project_name,
|
|
318
|
+
run_in_background: false,
|
|
319
|
+
prompt: `SAFETY CHECK: Verify that the BOARD_ID you received matches UUID format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12 hex chars). If it does not, STOP and report "ERROR: BOARD_ID not substituted — received: <value>". Do NOT call monotask board create, space create, or column create. Your only job is evaluating cards and running impact/effort updates on existing cards.
|
|
320
|
+
|
|
321
|
+
You are the Product Manager evaluator for project "${project_name}".
|
|
322
|
+
|
|
323
|
+
CONTEXT: ${date} | Project: ${project_name}
|
|
324
|
+
ORIGINAL GOAL: ${prompt}
|
|
325
|
+
|
|
326
|
+
BRAIN CONTEXT:
|
|
327
|
+
${brain_context}
|
|
328
|
+
|
|
329
|
+
YOUR BOARD: ${BOARD_ID}
|
|
330
|
+
COL_EVALUATED: ${COL_EVALUATED}
|
|
331
|
+
COL_ICED: ${COL_ICED}
|
|
332
|
+
COL_REJECTED: ${COL_REJECTED}
|
|
333
|
+
|
|
334
|
+
IDEAS TO EVALUATE (formatted from IDEAS_OUTPUT parsed in Step 4 — paste the full JSON array here as literal text):
|
|
335
|
+
${ideas_list}
|
|
336
|
+
|
|
337
|
+
For EVERY idea above, determine:
|
|
338
|
+
- verdict: evaluated | iced | rejected
|
|
339
|
+
- impact: 0–10 (business value / strategic importance)
|
|
340
|
+
- effort: 0–10 (implementation cost / complexity)
|
|
341
|
+
- skipElaboration: true (simple, no deep research needed) | false (edge cases should be explored) — only for evaluated
|
|
342
|
+
- rationale: 1-2 sentence value statement (evaluated), blocking question (iced), or rejection reason (rejected)
|
|
343
|
+
|
|
344
|
+
MANDATORY BOARD UPDATES — after determining all verdicts, build your verdicts as a JSON array and iterate over it:
|
|
345
|
+
|
|
346
|
+
# Paste your full VERDICTS_OUTPUT array here as verdicts_json (before outputting the block)
|
|
347
|
+
verdicts_json='[ ... your verdict objects ... ]'
|
|
348
|
+
while IFS= read -r row; do
|
|
349
|
+
CARD_ID=$(echo "$row" | jq -r '.card_id')
|
|
350
|
+
verdict=$(echo "$row" | jq -r '.verdict')
|
|
351
|
+
impact=$(echo "$row" | jq -r '.impact')
|
|
352
|
+
effort=$(echo "$row" | jq -r '.effort')
|
|
353
|
+
rationale=$(echo "$row" | jq -r '.rationale')
|
|
354
|
+
if [ "$verdict" = "evaluated" ]; then
|
|
355
|
+
monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_EVALUATED}" --json
|
|
356
|
+
monotask card set-impact "${BOARD_ID}" "$CARD_ID" "$impact"
|
|
357
|
+
monotask card set-effort "${BOARD_ID}" "$CARD_ID" "$effort"
|
|
358
|
+
monotask card comment add "${BOARD_ID}" "$CARD_ID" "Value: $rationale"
|
|
359
|
+
elif [ "$verdict" = "iced" ]; then
|
|
360
|
+
monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_ICED}" --json
|
|
361
|
+
monotask card set-impact "${BOARD_ID}" "$CARD_ID" "$impact"
|
|
362
|
+
monotask card set-effort "${BOARD_ID}" "$CARD_ID" "$effort"
|
|
363
|
+
monotask card comment add "${BOARD_ID}" "$CARD_ID" "Blocked: $rationale"
|
|
364
|
+
elif [ "$verdict" = "rejected" ]; then
|
|
365
|
+
monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_REJECTED}" --json
|
|
366
|
+
monotask card comment add "${BOARD_ID}" "$CARD_ID" "Rejected: $rationale"
|
|
367
|
+
fi
|
|
368
|
+
done < <(echo "$verdicts_json" | jq -c '.[]')
|
|
369
|
+
|
|
370
|
+
IMPORTANT: set-impact and set-effort MUST be called for every evaluated and iced idea. Do not skip them.
|
|
371
|
+
|
|
372
|
+
After completing all board updates, output this structured block:
|
|
373
|
+
|
|
374
|
+
VERDICTS_OUTPUT
|
|
375
|
+
[
|
|
376
|
+
{
|
|
377
|
+
"card_id": "<card ID>",
|
|
378
|
+
"title": "<idea title>",
|
|
379
|
+
"category": "feature | technical-baseline | business-operation",
|
|
380
|
+
"verdict": "evaluated | iced | rejected",
|
|
381
|
+
"skipElaboration": true | false,
|
|
382
|
+
"rationale": "<value statement | blocking question | rejection reason>",
|
|
383
|
+
"impact": <0-10>,
|
|
384
|
+
"effort": <0-10>
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
END_VERDICTS_OUTPUT`
|
|
388
|
+
})
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
After the PM agent completes, parse the `VERDICTS_OUTPUT` block from the agent's response and assign it:
|
|
392
|
+
```bash
|
|
393
|
+
verdicts_output_json='<paste the JSON array from VERDICTS_OUTPUT here>'
|
|
394
|
+
```
|
|
395
|
+
If the `VERDICTS_OUTPUT` block is absent (agent error or malformed output), set `verdicts_output_json='[]'` — all ideas will be treated as iced and Step 6 will be skipped.
|
|
396
|
+
This variable is used throughout Steps 6a and 6c to build idea lists, registry keywords, and inherit impact/effort scores — it must be set before proceeding. If **all** ideas are iced or rejected, output a summary table — skip Step 6 and proceed to Step 7 (Brain Write).
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
### Step 6 — Elaboration + Task Decomposition
|
|
401
|
+
|
|
402
|
+
#### 6a. Elaboration (conditional)
|
|
403
|
+
|
|
404
|
+
For any evaluated idea with `skipElaboration: true`, move it directly to `Elaborated`, set a description, and write a rationale comment so future readers understand why no deep elaboration was needed:
|
|
405
|
+
```bash
|
|
406
|
+
while IFS= read -r skip_idea; do
|
|
407
|
+
CARD_ID=$(echo "$skip_idea" | jq -r '.card_id')
|
|
408
|
+
skip_title=$(echo "$skip_idea" | jq -r '.title')
|
|
409
|
+
skip_rationale=$(echo "$skip_idea" | jq -r '.rationale // "No rationale provided"')
|
|
410
|
+
skip_impact=$(echo "$skip_idea" | jq -r '.impact // 5')
|
|
411
|
+
skip_effort=$(echo "$skip_idea" | jq -r '.effort // 5')
|
|
412
|
+
monotask card set-description "$BOARD_ID" "$CARD_ID" "Elaboration skipped — PM assessed this as straightforward.
|
|
413
|
+
|
|
414
|
+
Rationale: $skip_rationale
|
|
415
|
+
|
|
416
|
+
Impact: $skip_impact/10 | Effort: $skip_effort/10"
|
|
417
|
+
monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ELABORATED" --json
|
|
418
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Elaboration skipped: PM assessed this idea as straightforward with no significant unknowns. Rationale: $skip_rationale"
|
|
419
|
+
done < <(echo "$verdicts_output_json" | jq -c '[.[] | select(.verdict == "evaluated") | select(.skipElaboration == true)] | .[]')
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
For ideas with `skipElaboration: false`, **split by category** before spawning agents:
|
|
423
|
+
|
|
424
|
+
**Build `dev_ideas_list` and `ops_ideas_list` before constructing the Step 6a Task prompts:**
|
|
425
|
+
```bash
|
|
426
|
+
# Filter VERDICTS_OUTPUT (parsed in Step 5) by category and format as literal text.
|
|
427
|
+
# IMPORTANT: exclude skipElaboration:true ideas — they were already moved to Elaborated above
|
|
428
|
+
# and must not be sent to elaboration agents again.
|
|
429
|
+
dev_ideas_list=$(echo "$verdicts_output_json" | jq -r \
|
|
430
|
+
'.[] | select(.verdict == "evaluated") | select(.skipElaboration != true)
|
|
431
|
+
| select(.category == "feature" or .category == "technical-baseline") |
|
|
432
|
+
"- card_id: \(.card_id)\n title: \(.title)\n category: \(.category)\n rationale: \(.rationale)\n"')
|
|
433
|
+
|
|
434
|
+
ops_ideas_list=$(echo "$verdicts_output_json" | jq -r \
|
|
435
|
+
'.[] | select(.verdict == "evaluated") | select(.skipElaboration != true)
|
|
436
|
+
| select(.category == "business-operation") |
|
|
437
|
+
"- card_id: \(.card_id)\n title: \(.title)\n category: \(.category)\n rationale: \(.rationale)\n"')
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
**CRITICAL — Variable substitution required for Step 6a Task calls:**
|
|
441
|
+
Elaboration agents run in isolated Task contexts. Before constructing each Task prompt, replace every `${brain_context}`, `${dev_ideas_list}`, and `${ops_ideas_list}` with the actual literal text — `brain_context` from the brain load, `dev_ideas_list` and `ops_ideas_list` built above. Do NOT leave any `${...}` placeholders in the prompt — the agent receives them as literal dollar-sign strings and produces empty ELABORATION_OUTPUT blocks.
|
|
442
|
+
|
|
443
|
+
**Dev ideas** (`feature` or `technical-baseline`) — **skip if `dev_ideas_list` is empty** (no evaluated feature/technical-baseline ideas without skipElaboration; set `dev_researcher_json='[]'` and `dev_codebase_json='[]'` instead and do not spawn these agents):
|
|
444
|
+
Spawn two agents in parallel via Task tool:
|
|
445
|
+
|
|
446
|
+
```javascript
|
|
447
|
+
// Agent 1 — code explorer
|
|
448
|
+
Task({
|
|
449
|
+
subagent_type: "feature-dev:code-explorer",
|
|
450
|
+
description: "Elaboration: codebase constraints for dev ideas",
|
|
451
|
+
run_in_background: true,
|
|
452
|
+
prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
|
|
453
|
+
|
|
454
|
+
Analyze the following dev ideas against the current codebase. For each idea, trace relevant execution paths, map dependencies, and surface constraints or implementation risks.
|
|
455
|
+
|
|
456
|
+
BRAIN CONTEXT:
|
|
457
|
+
${brain_context}
|
|
458
|
+
|
|
459
|
+
IDEAS:
|
|
460
|
+
${dev_ideas_list}
|
|
461
|
+
|
|
462
|
+
Output this block:
|
|
463
|
+
ELABORATION_OUTPUT
|
|
464
|
+
[
|
|
465
|
+
{
|
|
466
|
+
"card_id": "<idea card ID>",
|
|
467
|
+
"findings": "<detailed codebase constraints, dependency risks, and implementation notes>",
|
|
468
|
+
"blocking_issue": "<blocking issue if any, or null>"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
END_ELABORATION_OUTPUT`
|
|
472
|
+
})
|
|
473
|
+
|
|
474
|
+
// Agent 2 — researcher
|
|
475
|
+
Task({
|
|
476
|
+
subagent_type: "researcher",
|
|
477
|
+
description: "Elaboration: prior art and edge cases for dev ideas",
|
|
478
|
+
run_in_background: true,
|
|
479
|
+
prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
|
|
480
|
+
|
|
481
|
+
Research the following dev ideas. For each idea, find prior art, known edge cases, implementation pitfalls, and relevant open-source approaches.
|
|
482
|
+
|
|
483
|
+
BRAIN CONTEXT:
|
|
484
|
+
${brain_context}
|
|
485
|
+
|
|
486
|
+
IDEAS:
|
|
487
|
+
${dev_ideas_list}
|
|
488
|
+
|
|
489
|
+
Output this block:
|
|
490
|
+
ELABORATION_OUTPUT
|
|
491
|
+
[
|
|
492
|
+
{
|
|
493
|
+
"card_id": "<idea card ID>",
|
|
494
|
+
"findings": "<prior art, edge cases, pitfalls, and relevant examples>",
|
|
495
|
+
"blocking_issue": "<blocking issue if any, or null>"
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
END_ELABORATION_OUTPUT`
|
|
499
|
+
})
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
**Business-operation ideas** (`business-operation`) — **skip if `ops_ideas_list` is empty** (no evaluated business-operation ideas without skipElaboration; set `ops_researcher_json='[]'` and `ops_pm_json='[]'` instead and do not spawn these agents):
|
|
503
|
+
Spawn two agents in parallel via Task tool:
|
|
504
|
+
|
|
505
|
+
```javascript
|
|
506
|
+
// Agent 1 — researcher
|
|
507
|
+
Task({
|
|
508
|
+
subagent_type: "researcher",
|
|
509
|
+
description: "Elaboration: industry benchmarks for ops ideas",
|
|
510
|
+
run_in_background: true,
|
|
511
|
+
prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
|
|
512
|
+
|
|
513
|
+
Research the following business-operation ideas. For each idea, find industry benchmarks, comparable operational processes, known pitfalls, and market context.
|
|
514
|
+
|
|
515
|
+
BRAIN CONTEXT:
|
|
516
|
+
${brain_context}
|
|
517
|
+
|
|
518
|
+
IDEAS:
|
|
519
|
+
${ops_ideas_list}
|
|
520
|
+
|
|
521
|
+
Output this block:
|
|
522
|
+
ELABORATION_OUTPUT
|
|
523
|
+
[
|
|
524
|
+
{
|
|
525
|
+
"card_id": "<idea card ID>",
|
|
526
|
+
"findings": "<industry benchmarks, comparable processes, pitfalls, and market context>",
|
|
527
|
+
"blocking_issue": "<blocking issue if any, or null>"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
END_ELABORATION_OUTPUT`
|
|
531
|
+
})
|
|
532
|
+
|
|
533
|
+
// Agent 2 — Product Manager
|
|
534
|
+
Task({
|
|
535
|
+
subagent_type: "Product Manager",
|
|
536
|
+
description: "Elaboration: feasibility assessment for ops ideas",
|
|
537
|
+
run_in_background: true,
|
|
538
|
+
prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
|
|
539
|
+
|
|
540
|
+
Assess the following business-operation ideas for process feasibility, stakeholder impact, alignment with existing workflows, and resource requirements.
|
|
541
|
+
|
|
542
|
+
BRAIN CONTEXT:
|
|
543
|
+
${brain_context}
|
|
544
|
+
|
|
545
|
+
IDEAS:
|
|
546
|
+
${ops_ideas_list}
|
|
547
|
+
|
|
548
|
+
Output this block:
|
|
549
|
+
ELABORATION_OUTPUT
|
|
550
|
+
[
|
|
551
|
+
{
|
|
552
|
+
"card_id": "<idea card ID>",
|
|
553
|
+
"findings": "<feasibility assessment, stakeholder impact, workflow alignment, resource needs>",
|
|
554
|
+
"blocking_issue": "<blocking issue if any, or null>"
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
END_ELABORATION_OUTPUT`
|
|
558
|
+
})
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
Wait for all spawned background elaboration agents to complete before proceeding (0, 2, or 4 agents depending on which lists were non-empty — see guards above). Then build `merged_elaboration_json` by merging agent outputs per `card_id` and injecting `category` from `verdicts_output_json`:
|
|
562
|
+
|
|
563
|
+
```bash
|
|
564
|
+
# Assign each agent's ELABORATION_OUTPUT JSON array from its output block:
|
|
565
|
+
dev_researcher_json='<ELABORATION_OUTPUT array from the dev researcher agent>'
|
|
566
|
+
dev_codebase_json='<ELABORATION_OUTPUT array from the dev code-explorer agent>'
|
|
567
|
+
ops_researcher_json='<ELABORATION_OUTPUT array from the ops researcher agent>'
|
|
568
|
+
ops_pm_json='<ELABORATION_OUTPUT array from the ops PM agent>'
|
|
569
|
+
# Use '[]' for any track that had no ideas (e.g. if all ideas were dev, set ops_* to '[]')
|
|
570
|
+
# If an ELABORATION_OUTPUT block is absent from an agent's response (error/timeout), set that variable to '[]'
|
|
571
|
+
|
|
572
|
+
# Merge dev track: full outer join researcher + codebase by card_id, inject category from verdicts.
|
|
573
|
+
# Use union of card_ids from both agents — if one agent skips a card the other covers, it's preserved.
|
|
574
|
+
# blocking_issue: take from whichever agent found one (researcher OR codebase).
|
|
575
|
+
dev_merged=$(jq -n \
|
|
576
|
+
--argjson r "$dev_researcher_json" \
|
|
577
|
+
--argjson c "$dev_codebase_json" \
|
|
578
|
+
--argjson v "$verdicts_output_json" \
|
|
579
|
+
'([$r[], $c[]] | map(.card_id) | unique) as $ids |
|
|
580
|
+
[$ids[] | . as $id |
|
|
581
|
+
{ card_id: $id,
|
|
582
|
+
blocking_issue: (
|
|
583
|
+
([$r[] | select(.card_id == $id)] | first | .blocking_issue // null) //
|
|
584
|
+
([$c[] | select(.card_id == $id)] | first | .blocking_issue // null)
|
|
585
|
+
),
|
|
586
|
+
researcher_findings: ([$r[] | select(.card_id == $id)] | first | .findings // ""),
|
|
587
|
+
codebase_findings: ([$c[] | select(.card_id == $id)] | first | .findings // ""),
|
|
588
|
+
category: ([$v[] | select(.card_id == $id)] | first | .category // "feature") }]')
|
|
589
|
+
|
|
590
|
+
# Merge ops track: full outer join researcher + PM findings by card_id, inject category.
|
|
591
|
+
# blocking_issue: take from whichever agent found one (researcher OR PM).
|
|
592
|
+
ops_merged=$(jq -n \
|
|
593
|
+
--argjson r "$ops_researcher_json" \
|
|
594
|
+
--argjson p "$ops_pm_json" \
|
|
595
|
+
--argjson v "$verdicts_output_json" \
|
|
596
|
+
'([$r[], $p[]] | map(.card_id) | unique) as $ids |
|
|
597
|
+
[$ids[] | . as $id |
|
|
598
|
+
{ card_id: $id,
|
|
599
|
+
blocking_issue: (
|
|
600
|
+
([$r[] | select(.card_id == $id)] | first | .blocking_issue // null) //
|
|
601
|
+
([$p[] | select(.card_id == $id)] | first | .blocking_issue // null)
|
|
602
|
+
),
|
|
603
|
+
researcher_findings: ([$r[] | select(.card_id == $id)] | first | .findings // ""),
|
|
604
|
+
pm_findings: ([$p[] | select(.card_id == $id)] | first | .findings // ""),
|
|
605
|
+
category: ([$v[] | select(.card_id == $id)] | first | .category // "business-operation") }]')
|
|
606
|
+
|
|
607
|
+
# Combine both tracks
|
|
608
|
+
merged_elaboration_json=$(jq -s 'add // []' <(echo "$dev_merged") <(echo "$ops_merged"))
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
Use process substitution (not a pipeline) so the while loop runs in the main shell and variables remain in scope after `done`:
|
|
612
|
+
|
|
613
|
+
```bash
|
|
614
|
+
while IFS= read -r idea; do
|
|
615
|
+
CARD_ID=$(echo "$idea" | jq -r '.card_id')
|
|
616
|
+
category=$(echo "$idea" | jq -r '.category')
|
|
617
|
+
blocking_issue=$(echo "$idea" | jq -r '.blocking_issue // ""')
|
|
618
|
+
[ "$blocking_issue" = "null" ] && blocking_issue="" # guard against agents outputting the string "null"
|
|
619
|
+
|
|
620
|
+
if [ "$category" = "business-operation" ]; then
|
|
621
|
+
researcher_findings=$(echo "$idea" | jq -r '.researcher_findings')
|
|
622
|
+
pm_findings=$(echo "$idea" | jq -r '.pm_findings')
|
|
623
|
+
monotask card set-description "$BOARD_ID" "$CARD_ID" "## Elaboration Findings
|
|
624
|
+
|
|
625
|
+
### Industry context & benchmarks:
|
|
626
|
+
$researcher_findings
|
|
627
|
+
|
|
628
|
+
### Feasibility & stakeholder impact:
|
|
629
|
+
$pm_findings"
|
|
630
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Industry context & benchmarks: $researcher_findings"
|
|
631
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Feasibility & stakeholder impact: $pm_findings"
|
|
632
|
+
else
|
|
633
|
+
researcher_findings=$(echo "$idea" | jq -r '.researcher_findings')
|
|
634
|
+
codebase_findings=$(echo "$idea" | jq -r '.codebase_findings')
|
|
635
|
+
monotask card set-description "$BOARD_ID" "$CARD_ID" "## Elaboration Findings
|
|
636
|
+
|
|
637
|
+
### Edge cases & prior art:
|
|
638
|
+
$researcher_findings
|
|
639
|
+
|
|
640
|
+
### Codebase constraints:
|
|
641
|
+
$codebase_findings"
|
|
642
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Edge cases & prior art: $researcher_findings"
|
|
643
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Codebase constraints: $codebase_findings"
|
|
644
|
+
fi
|
|
645
|
+
|
|
646
|
+
if [ -n "$blocking_issue" ]; then
|
|
647
|
+
monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ICED" --json
|
|
648
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Blocked during elaboration: $blocking_issue"
|
|
649
|
+
else
|
|
650
|
+
monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ELABORATED" --json
|
|
651
|
+
fi
|
|
652
|
+
done < <(echo "$merged_elaboration_json" | jq -c '.[]')
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
#### 6b. User Confirmation Gate
|
|
656
|
+
|
|
657
|
+
**Auto-mode bypass:** If `mode` is `auto` (set by mastermind:master or caller), skip this gate entirely and proceed directly to Step 6c with all elaborated ideas.
|
|
658
|
+
|
|
659
|
+
**Confirm mode only:** If `mode` is `confirm` (default), present a review table of all elaborated ideas to the user.
|
|
660
|
+
|
|
661
|
+
Build the table from `verdicts_output_json` (filtered to `verdict == "evaluated"` AND `card_id` not in the set of ideas with a non-null `blocking_issue` in `merged_elaboration_json`). Exclude ideas iced during elaboration — they are already in the `Iced` column and must not appear in this review. For each row:
|
|
662
|
+
- **Impact** and **Effort** come from `.impact` and `.effort` fields in `verdicts_output_json`
|
|
663
|
+
- **Track**: `feature` or `technical-baseline` → `dev`; `business-operation` → `ops`
|
|
664
|
+
|
|
665
|
+
Print this exact format:
|
|
666
|
+
|
|
667
|
+
```
|
|
668
|
+
╔══════════════════════════════════════════════════════════════════════╗
|
|
669
|
+
║ IDEA REVIEW — Please confirm before task generation ║
|
|
670
|
+
╚══════════════════════════════════════════════════════════════════════╝
|
|
671
|
+
|
|
672
|
+
# | Title | Category | Impact | Effort | Track
|
|
673
|
+
---|--------------------------------|-------------------|--------|--------|-------
|
|
674
|
+
1 | <title> | <category> | <N>/10 | <N>/10 | dev / ops
|
|
675
|
+
2 | <title> | <category> | <N>/10 | <N>/10 | dev / ops
|
|
676
|
+
...
|
|
677
|
+
|
|
678
|
+
To proceed: reply with one of:
|
|
679
|
+
• "go" — generate tasks for all ideas above
|
|
680
|
+
• "remove 2,4" — drop ideas by number, generate tasks for the rest
|
|
681
|
+
• "remove 3 | add detail to 1: <your notes>" — remove some, annotate others
|
|
682
|
+
• "add detail to 2: <your notes>" — annotate an idea before decomposing
|
|
683
|
+
• "stop" — cancel task generation
|
|
684
|
+
|
|
685
|
+
Waiting for your confirmation.
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
Wait for the user's response before continuing. Do not spawn any agents until a reply is received.
|
|
689
|
+
|
|
690
|
+
**Process the user's reply:**
|
|
691
|
+
|
|
692
|
+
- **"go"**: proceed with all elaborated ideas.
|
|
693
|
+
- **"remove N[,N...]"**: remove those ideas from the elaboration list. Move their ideation cards to `Iced`:
|
|
694
|
+
```bash
|
|
695
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "Removed by user before task generation"
|
|
696
|
+
monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ICED" --json
|
|
697
|
+
```
|
|
698
|
+
- **"add detail to N: <notes>"**: append the notes as a card comment before decomposing:
|
|
699
|
+
```bash
|
|
700
|
+
monotask card comment add "$BOARD_ID" "$CARD_ID" "User notes: <notes>"
|
|
701
|
+
```
|
|
702
|
+
- **"stop"**: skip Step 6c. Proceed directly to Step 7 (Brain Write). Print a summary of ideas in Elaborated/Iced/Rejected and return `status: partial`.
|
|
703
|
+
- Combined instructions ("remove 2,4 | add detail to 1: ...") are processed together.
|
|
704
|
+
|
|
705
|
+
After applying all user instructions, proceed to Step 6c with the remaining ideas.
|
|
706
|
+
|
|
707
|
+
---
|
|
708
|
+
|
|
709
|
+
#### 6c. Task Decomposition
|
|
710
|
+
|
|
711
|
+
**Select decomposition agents from the registry** before spawning. Run this selection once per track:
|
|
712
|
+
|
|
713
|
+
```bash
|
|
714
|
+
REGISTRY=".monomind/registry.json"
|
|
715
|
+
|
|
716
|
+
# Dev decomposition agent — pick the most relevant engineering/architecture specialist
|
|
717
|
+
dev_decomp_agent=$(jq -r \
|
|
718
|
+
'[ .agents[] | select(.deprecated != true)
|
|
719
|
+
| select(.category == "engineering" or .category == "architecture")
|
|
720
|
+
| {name: .name,
|
|
721
|
+
score: (.name | ascii_downcase |
|
|
722
|
+
if contains("architect") then 3
|
|
723
|
+
elif contains("backend") then 2
|
|
724
|
+
elif contains("mobile") then 2
|
|
725
|
+
elif contains("frontend") then 2
|
|
726
|
+
elif contains("security") then 2
|
|
727
|
+
elif contains("data") then 2
|
|
728
|
+
else 1 end
|
|
729
|
+
)}
|
|
730
|
+
] | sort_by(-.score) | .[0].name // "Software Architect"' \
|
|
731
|
+
"$REGISTRY" 2>/dev/null)
|
|
732
|
+
dev_decomp_agent="${dev_decomp_agent:-Software Architect}"
|
|
733
|
+
|
|
734
|
+
# Ops decomposition agent — pick the most relevant strategy/sales/product specialist
|
|
735
|
+
ops_decomp_agent=$(jq -r \
|
|
736
|
+
'[ .agents[] | select(.deprecated != true)
|
|
737
|
+
| select(.category == "strategy" or .category == "sales" or .category == "product" or .category == "marketing")
|
|
738
|
+
| {name: .name,
|
|
739
|
+
score: (.name | ascii_downcase |
|
|
740
|
+
if contains("product manager") then 4
|
|
741
|
+
elif contains("launch") then 3
|
|
742
|
+
elif contains("outbound") then 3
|
|
743
|
+
elif contains("deal") then 3
|
|
744
|
+
elif contains("pricing") then 3
|
|
745
|
+
elif contains("growth") then 2
|
|
746
|
+
else 1 end
|
|
747
|
+
)}
|
|
748
|
+
] | sort_by(-.score) | .[0].name // "Product Manager"' \
|
|
749
|
+
"$REGISTRY" 2>/dev/null)
|
|
750
|
+
ops_decomp_agent="${ops_decomp_agent:-Product Manager}"
|
|
751
|
+
|
|
752
|
+
echo "Dev decomp: $dev_decomp_agent | Ops decomp: $ops_decomp_agent"
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
**CRITICAL — Variable substitution required for Step 6c Task calls:**
|
|
756
|
+
Before constructing each Task prompt, replace `${brain_context}`, `${prompt}`, `${project_name}`, `${dev_ideas_elaborated}`, and `${ops_ideas_elaborated}` with actual literal text. Also substitute the `subagent_type` values: replace `dev_decomp_agent` and `ops_decomp_agent` with the string values echoed by the registry selection above (e.g. `"Software Architect"`). Build those lists from the VERDICTS_OUTPUT and ELABORATION_OUTPUT results:
|
|
757
|
+
|
|
758
|
+
```bash
|
|
759
|
+
# Collect IDs of cards iced during elaboration (blocking_issue was set) — exclude from decomposition.
|
|
760
|
+
# merged_elaboration_json covers agent-elaborated ideas only (not skipElaboration:true ones).
|
|
761
|
+
elaboration_blocked=$(echo "$merged_elaboration_json" | jq \
|
|
762
|
+
'[.[] | select(.blocking_issue != null and .blocking_issue != "" and .blocking_issue != "null") | .card_id]')
|
|
763
|
+
# Safeguard: if jq failed (e.g. null input), default to empty array so decomp proceeds safely
|
|
764
|
+
[ -z "$elaboration_blocked" ] && elaboration_blocked='[]'
|
|
765
|
+
|
|
766
|
+
# Build elaborated idea lists for decomposition agents.
|
|
767
|
+
# Include: evaluated ideas (PM verdict) that were NOT iced during elaboration.
|
|
768
|
+
# This covers both skipElaboration:true ideas and agent-elaborated ideas in the Elaborated column.
|
|
769
|
+
# Use `any(. == $id)` not `contains([$id])` — contains does substring matching on strings (wrong for UUIDs).
|
|
770
|
+
dev_ideas_elaborated=$(echo "$verdicts_output_json" | jq -r \
|
|
771
|
+
--argjson blocked "$elaboration_blocked" \
|
|
772
|
+
'[.[] | select(.verdict=="evaluated")
|
|
773
|
+
| select(.card_id as $id | ($blocked | any(. == $id)) | not)
|
|
774
|
+
| select(.category=="feature" or .category=="technical-baseline") |
|
|
775
|
+
"card_id: \(.card_id)\ntitle: \(.title)\ncategory: \(.category)\nrationale: \(.rationale)\nimpact: \(.impact) effort: \(.effort)"] | join("\n\n")')
|
|
776
|
+
|
|
777
|
+
ops_ideas_elaborated=$(echo "$verdicts_output_json" | jq -r \
|
|
778
|
+
--argjson blocked "$elaboration_blocked" \
|
|
779
|
+
'[.[] | select(.verdict=="evaluated")
|
|
780
|
+
| select(.card_id as $id | ($blocked | any(. == $id)) | not)
|
|
781
|
+
| select(.category=="business-operation") |
|
|
782
|
+
"card_id: \(.card_id)\ntitle: \(.title)\ncategory: \(.category)\nrationale: \(.rationale)\nimpact: \(.impact) effort: \(.effort)"] | join("\n\n")')
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
**Spawn decomposition agents by track** — run both in parallel if both tracks have elaborated ideas:
|
|
786
|
+
|
|
787
|
+
```javascript
|
|
788
|
+
// Dev decomposition agent (only if dev_ideas_elaborated is non-empty)
|
|
789
|
+
Task({
|
|
790
|
+
subagent_type: dev_decomp_agent, // value from registry selection above
|
|
791
|
+
description: "Task decomposition: dev ideas for " + project_name,
|
|
792
|
+
run_in_background: true,
|
|
793
|
+
prompt: `SAFETY CHECK: You are a decomposition agent. You must NOT call monotask board create, space create, or column create. Your only job is producing a TASKS_OUTPUT block — the outer skill creates the cards. If you are unsure of any card ID, list it as "UNKNOWN" rather than inventing a value.
|
|
794
|
+
|
|
795
|
+
Decompose the following dev ideas into concrete subtasks (2–6 per idea). Each subtask should be independently implementable.
|
|
796
|
+
|
|
797
|
+
PROJECT: ${project_name}
|
|
798
|
+
GOAL: ${prompt}
|
|
799
|
+
|
|
800
|
+
BRAIN CONTEXT:
|
|
801
|
+
${brain_context}
|
|
802
|
+
|
|
803
|
+
DEV IDEAS TO DECOMPOSE:
|
|
804
|
+
${dev_ideas_elaborated}
|
|
805
|
+
|
|
806
|
+
For each idea, produce 2–6 subtasks. If an idea's scope is unclear, flag it in FLAGGED instead of decomposing.
|
|
807
|
+
|
|
808
|
+
TASKS_OUTPUT
|
|
809
|
+
[
|
|
810
|
+
{
|
|
811
|
+
"parent_card_id": "<ideation board card ID from the list above>",
|
|
812
|
+
"title": "<subtask title ≤80 chars>",
|
|
813
|
+
"description": "<what to build/do — specific and actionable>",
|
|
814
|
+
"category": "feature | technical-baseline",
|
|
815
|
+
"agent": "<recommended subagent_type>",
|
|
816
|
+
"effort": <1-10>,
|
|
817
|
+
"has_prerequisites": <true | false>
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
FLAGGED
|
|
821
|
+
[
|
|
822
|
+
{ "card_id": "<ideation card ID>", "question": "<what needs clarifying>" }
|
|
823
|
+
]
|
|
824
|
+
END_TASKS_OUTPUT`
|
|
825
|
+
})
|
|
826
|
+
|
|
827
|
+
// Ops decomposition agent (only if ops_ideas_elaborated is non-empty)
|
|
828
|
+
Task({
|
|
829
|
+
subagent_type: ops_decomp_agent, // value from registry selection above
|
|
830
|
+
description: "Task decomposition: ops ideas for " + project_name,
|
|
831
|
+
run_in_background: true,
|
|
832
|
+
prompt: `SAFETY CHECK: You are a decomposition agent. You must NOT call monotask board create, space create, or column create. Your only job is producing a TASKS_OUTPUT block — the outer skill creates the cards. If you are unsure of any card ID, list it as "UNKNOWN" rather than inventing a value.
|
|
833
|
+
|
|
834
|
+
Decompose the following business-operation ideas into concrete subtasks (2–6 per idea). Each subtask should be independently actionable.
|
|
835
|
+
|
|
836
|
+
PROJECT: ${project_name}
|
|
837
|
+
GOAL: ${prompt}
|
|
838
|
+
|
|
839
|
+
BRAIN CONTEXT:
|
|
840
|
+
${brain_context}
|
|
841
|
+
|
|
842
|
+
OPS IDEAS TO DECOMPOSE:
|
|
843
|
+
${ops_ideas_elaborated}
|
|
844
|
+
|
|
845
|
+
For each idea, produce 2–6 subtasks. If an idea's scope is unclear, flag it in FLAGGED instead of decomposing.
|
|
846
|
+
|
|
847
|
+
TASKS_OUTPUT
|
|
848
|
+
[
|
|
849
|
+
{
|
|
850
|
+
"parent_card_id": "<ideation board card ID from the list above>",
|
|
851
|
+
"title": "<subtask title ≤80 chars>",
|
|
852
|
+
"description": "<what to build/do — specific and actionable>",
|
|
853
|
+
"category": "business-operation",
|
|
854
|
+
"agent": "<recommended subagent_type>",
|
|
855
|
+
"effort": <1-10>,
|
|
856
|
+
"has_prerequisites": <true | false>
|
|
857
|
+
}
|
|
858
|
+
]
|
|
859
|
+
FLAGGED
|
|
860
|
+
[
|
|
861
|
+
{ "card_id": "<ideation card ID>", "question": "<what needs clarifying>" }
|
|
862
|
+
]
|
|
863
|
+
END_TASKS_OUTPUT`
|
|
864
|
+
})
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
**After both decomposition agents return**, the outer skill creates task cards on the appropriate board for each task's category. Each task card inherits the parent idea's `impact` and `effort` scores from the VERDICTS_OUTPUT parsed in Step 5 — look up by `parent_card_id`.
|
|
868
|
+
|
|
869
|
+
---
|
|
870
|
+
|
|
871
|
+
**Dev task board** (`feature` / `technical-baseline` → `Implementation Tasks`):
|
|
872
|
+
|
|
873
|
+
Canonical board name: `${project_name}-tasks-dev`. Find-or-create:
|
|
874
|
+
|
|
875
|
+
```bash
|
|
876
|
+
# space_id from Step 3 is gone (each Bash tool call is a new shell).
|
|
877
|
+
# Re-derive from project_name so board creation works correctly on first run.
|
|
878
|
+
if [ -z "$space_id" ]; then
|
|
879
|
+
space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
|
|
880
|
+
[ -z "$space_id" ] && { echo "ERROR: space '$project_name' not found — run Step 3 first"; exit 1; }
|
|
881
|
+
fi
|
|
882
|
+
dev_task_canonical="${project_name}-tasks-dev"
|
|
883
|
+
# board list format is "uuid: name" (colon-space separator, NOT pipe)
|
|
884
|
+
TASK_BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$dev_task_canonical" | head -1)
|
|
885
|
+
if [ -n "$TASK_BOARD_ID" ]; then
|
|
886
|
+
echo "Reusing dev task board: $TASK_BOARD_ID ($dev_task_canonical)"
|
|
887
|
+
task_columns=$(monotask column list "$TASK_BOARD_ID" --json)
|
|
888
|
+
TASK_COL_TODO=$(echo "$task_columns" | jq -r '.[] | select(.title=="Todo") | .id' | head -1)
|
|
889
|
+
TASK_COL_BACKLOG=$(echo "$task_columns" | jq -r '.[] | select(.title=="Backlog") | .id' | head -1)
|
|
890
|
+
else
|
|
891
|
+
echo "Creating dev task board: $dev_task_canonical"
|
|
892
|
+
TASK_BOARD_ID=$(monotask board create --space "$space_id" "$dev_task_canonical" --json 2>/dev/null | jq -r '.id // empty')
|
|
893
|
+
[ -z "$TASK_BOARD_ID" ] && { echo "ERROR: Failed to create dev task board"; exit 1; }
|
|
894
|
+
monotask space boards add "$space_id" "$TASK_BOARD_ID" >/dev/null 2>&1 || true
|
|
895
|
+
TASK_COL_BACKLOG=$(monotask column create "$TASK_BOARD_ID" "Backlog" --json | jq -r '.id // empty')
|
|
896
|
+
TASK_COL_TODO=$(monotask column create "$TASK_BOARD_ID" "Todo" --json | jq -r '.id // empty')
|
|
897
|
+
monotask column create "$TASK_BOARD_ID" "In Progress" --json >/dev/null
|
|
898
|
+
monotask column create "$TASK_BOARD_ID" "Human in Loop" --json >/dev/null
|
|
899
|
+
monotask column create "$TASK_BOARD_ID" "Review" --json >/dev/null
|
|
900
|
+
monotask column create "$TASK_BOARD_ID" "Done" --json >/dev/null
|
|
901
|
+
monotask column create "$TASK_BOARD_ID" "Cancelled" --json >/dev/null
|
|
902
|
+
fi
|
|
903
|
+
[ -z "$TASK_BOARD_ID" ] && { echo "ERROR: TASK_BOARD_ID empty — aborting"; exit 1; }
|
|
904
|
+
[ -z "$TASK_COL_TODO" ] && { echo "ERROR: Could not find Todo column on dev task board"; exit 1; }
|
|
905
|
+
[ -z "$TASK_COL_BACKLOG" ] && { echo "ERROR: Could not find Backlog column on dev task board"; exit 1; }
|
|
906
|
+
```
|
|
907
|
+
|
|
908
|
+
---
|
|
909
|
+
|
|
910
|
+
**Ops task board** (`business-operation` → `Operations Tasks`):
|
|
911
|
+
|
|
912
|
+
Canonical board name: `${project_name}-tasks-ops`. Find-or-create:
|
|
913
|
+
|
|
914
|
+
```bash
|
|
915
|
+
# Restore space_id if not available (same pattern as dev task board block above).
|
|
916
|
+
if [ -z "$space_id" ]; then
|
|
917
|
+
space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
|
|
918
|
+
[ -z "$space_id" ] && { echo "ERROR: space '$project_name' not found"; exit 1; }
|
|
919
|
+
fi
|
|
920
|
+
ops_task_canonical="${project_name}-tasks-ops"
|
|
921
|
+
# board list format is "uuid: name" (colon-space separator, NOT pipe)
|
|
922
|
+
OPS_BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$ops_task_canonical" | head -1)
|
|
923
|
+
if [ -n "$OPS_BOARD_ID" ]; then
|
|
924
|
+
echo "Reusing ops task board: $OPS_BOARD_ID ($ops_task_canonical)"
|
|
925
|
+
ops_columns=$(monotask column list "$OPS_BOARD_ID" --json)
|
|
926
|
+
OPS_COL_TODO=$(echo "$ops_columns" | jq -r '.[] | select(.title=="Todo") | .id' | head -1)
|
|
927
|
+
OPS_COL_BACKLOG=$(echo "$ops_columns" | jq -r '.[] | select(.title=="Backlog") | .id' | head -1)
|
|
928
|
+
else
|
|
929
|
+
echo "Creating ops task board: $ops_task_canonical"
|
|
930
|
+
OPS_BOARD_ID=$(monotask board create --space "$space_id" "$ops_task_canonical" --json 2>/dev/null | jq -r '.id // empty')
|
|
931
|
+
[ -z "$OPS_BOARD_ID" ] && { echo "ERROR: Failed to create ops task board"; exit 1; }
|
|
932
|
+
monotask space boards add "$space_id" "$OPS_BOARD_ID" >/dev/null 2>&1 || true
|
|
933
|
+
OPS_COL_BACKLOG=$(monotask column create "$OPS_BOARD_ID" "Backlog" --json | jq -r '.id // empty')
|
|
934
|
+
OPS_COL_TODO=$(monotask column create "$OPS_BOARD_ID" "Todo" --json | jq -r '.id // empty')
|
|
935
|
+
monotask column create "$OPS_BOARD_ID" "In Progress" --json >/dev/null
|
|
936
|
+
monotask column create "$OPS_BOARD_ID" "Human in Loop" --json >/dev/null
|
|
937
|
+
monotask column create "$OPS_BOARD_ID" "Review" --json >/dev/null
|
|
938
|
+
monotask column create "$OPS_BOARD_ID" "Done" --json >/dev/null
|
|
939
|
+
monotask column create "$OPS_BOARD_ID" "Cancelled" --json >/dev/null
|
|
940
|
+
fi
|
|
941
|
+
[ -z "$OPS_BOARD_ID" ] && { echo "ERROR: OPS_BOARD_ID empty — aborting"; exit 1; }
|
|
942
|
+
[ -z "$OPS_COL_TODO" ] && { echo "ERROR: Could not find Todo column on ops task board"; exit 1; }
|
|
943
|
+
[ -z "$OPS_COL_BACKLOG" ] && { echo "ERROR: Could not find Backlog column on ops task board"; exit 1; }
|
|
944
|
+
```
|
|
945
|
+
|
|
946
|
+
---
|
|
947
|
+
|
|
948
|
+
**Assign TASKS_OUTPUT from each decomposition agent, then merge and iterate:**
|
|
949
|
+
|
|
950
|
+
```bash
|
|
951
|
+
# Parse the TASKS_OUTPUT block from the dev decomp agent's response and assign:
|
|
952
|
+
dev_tasks_json='<TASKS_OUTPUT JSON array from dev decomp agent, or [] if no dev ideas>'
|
|
953
|
+
# Parse the TASKS_OUTPUT block from the ops decomp agent's response and assign:
|
|
954
|
+
ops_tasks_json='<TASKS_OUTPUT JSON array from ops decomp agent, or [] if no ops ideas>'
|
|
955
|
+
# If TASKS_OUTPUT block is absent from an agent's response (error/timeout), set that variable to '[]'
|
|
956
|
+
|
|
957
|
+
merged_tasks_json=$(jq -s 'add // []' <(echo "$dev_tasks_json") <(echo "$ops_tasks_json"))
|
|
958
|
+
|
|
959
|
+
# Use a temp directory to accumulate per-parent subtask summaries (bash 3.2 compatible —
|
|
960
|
+
# avoids declare -A associative arrays which require bash 4.3+)
|
|
961
|
+
SUBTASK_TMPDIR=$(mktemp -d)
|
|
962
|
+
|
|
963
|
+
while IFS= read -r task; do
|
|
964
|
+
parent_card_id=$(echo "$task" | jq -r '.parent_card_id')
|
|
965
|
+
title=$(echo "$task" | jq -r '.title')
|
|
966
|
+
description=$(echo "$task" | jq -r '.description')
|
|
967
|
+
category=$(echo "$task" | jq -r '.category')
|
|
968
|
+
agent=$(echo "$task" | jq -r '.agent')
|
|
969
|
+
task_effort=$(echo "$task" | jq -r '.effort')
|
|
970
|
+
has_prerequisites=$(echo "$task" | jq -r '.has_prerequisites')
|
|
971
|
+
|
|
972
|
+
if [ "$category" = "business-operation" ]; then
|
|
973
|
+
TARGET_BOARD="$OPS_BOARD_ID"
|
|
974
|
+
COL_TARGET=$([ "$has_prerequisites" = "true" ] && echo "$OPS_COL_BACKLOG" || echo "$OPS_COL_TODO")
|
|
975
|
+
BOARD_LABEL="Operations Tasks"
|
|
976
|
+
else
|
|
977
|
+
TARGET_BOARD="$TASK_BOARD_ID"
|
|
978
|
+
COL_TARGET=$([ "$has_prerequisites" = "true" ] && echo "$TASK_COL_BACKLOG" || echo "$TASK_COL_TODO")
|
|
979
|
+
BOARD_LABEL="Implementation Tasks"
|
|
980
|
+
fi
|
|
981
|
+
|
|
982
|
+
# Inherit impact and effort from parent idea — look up from verdicts_output_json by parent_card_id
|
|
983
|
+
parent_impact=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .impact // 5')
|
|
984
|
+
parent_effort=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .effort // 5')
|
|
985
|
+
# Default to 5 if lookup returned empty (e.g. parent_card_id was "UNKNOWN")
|
|
986
|
+
[ -z "$parent_impact" ] && parent_impact=5
|
|
987
|
+
[ -z "$parent_effort" ] && parent_effort=5
|
|
988
|
+
|
|
989
|
+
# Create task card as a proper subtask of the parent idea card (cross-board link)
|
|
990
|
+
# Signature: subtask add <PARENT_BOARD_ID> <PARENT_CARD_ID> <CHILD_BOARD_ID> <COL_ID> <TITLE>
|
|
991
|
+
TASK_CARD_ID=$(monotask card subtask add "$BOARD_ID" "$parent_card_id" "$TARGET_BOARD" "$COL_TARGET" "$title" --json | jq -r '.id // empty')
|
|
992
|
+
[ -z "$TASK_CARD_ID" ] && { echo "WARN: subtask creation failed for '$title' (parent: $parent_card_id), skipping"; continue; }
|
|
993
|
+
# Set the task description as the primary content field
|
|
994
|
+
monotask card set-description "$TARGET_BOARD" "$TASK_CARD_ID" "$description"
|
|
995
|
+
monotask card set-impact "$TARGET_BOARD" "$TASK_CARD_ID" "$parent_impact"
|
|
996
|
+
monotask card set-effort "$TARGET_BOARD" "$TASK_CARD_ID" "$parent_effort"
|
|
997
|
+
# Derive parent idea title for the comment
|
|
998
|
+
parent_idea_title=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .title // "unknown"')
|
|
999
|
+
prompt_prefix=$(echo "$prompt" | cut -c1-100)
|
|
1000
|
+
monotask card comment add "$TARGET_BOARD" "$TASK_CARD_ID" \
|
|
1001
|
+
"SOURCE: mastermind:idea | $prompt_prefix
|
|
1002
|
+
AGENT: $agent
|
|
1003
|
+
TASK EFFORT: $task_effort/10
|
|
1004
|
+
PARENT IDEA IMPACT: $parent_impact/10 PARENT IDEA EFFORT: $parent_effort/10
|
|
1005
|
+
CATEGORY: $category
|
|
1006
|
+
PARENT IDEA: $parent_idea_title (card: $parent_card_id on ideation board)"
|
|
1007
|
+
monotask card label add "$TARGET_BOARD" "$TASK_CARD_ID" "mastermind:idea"
|
|
1008
|
+
monotask card label add "$TARGET_BOARD" "$TASK_CARD_ID" "category:$category"
|
|
1009
|
+
|
|
1010
|
+
# Append subtask summary line to per-parent file (replaces declare -A accumulation)
|
|
1011
|
+
printf ' - %s (agent: %s, effort: %s/10, board: %s)\n' \
|
|
1012
|
+
"$title" "$agent" "$task_effort" "$BOARD_LABEL" >> "$SUBTASK_TMPDIR/$parent_card_id"
|
|
1013
|
+
|
|
1014
|
+
done < <(echo "$merged_tasks_json" | jq -c '.[]')
|
|
1015
|
+
```
|
|
1016
|
+
|
|
1017
|
+
After the loop, annotate each parent idea card and move it to `Tasked`:
|
|
1018
|
+
```bash
|
|
1019
|
+
for summary_file in "$SUBTASK_TMPDIR"/*; do
|
|
1020
|
+
[ -f "$summary_file" ] || continue
|
|
1021
|
+
parent_card_id=$(basename "$summary_file")
|
|
1022
|
+
subtask_list=$(cat "$summary_file")
|
|
1023
|
+
monotask card comment add "$BOARD_ID" "$parent_card_id" \
|
|
1024
|
+
"Subtasks created:
|
|
1025
|
+
${subtask_list}"
|
|
1026
|
+
monotask card move "$BOARD_ID" "$parent_card_id" "$COL_TASKED" --json
|
|
1027
|
+
done
|
|
1028
|
+
rm -rf "$SUBTASK_TMPDIR"
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
For each entry in FLAGGED, parse the flagged JSON from both decomp agents' FLAGGED blocks and iterate:
|
|
1032
|
+
```bash
|
|
1033
|
+
# Collect flagged entries from both decomp agents
|
|
1034
|
+
dev_flagged_json='<FLAGGED array from dev decomp agent, or [] if none>'
|
|
1035
|
+
ops_flagged_json='<FLAGGED array from ops decomp agent, or [] if none>'
|
|
1036
|
+
# If FLAGGED block is absent from an agent's response, set that variable to '[]'
|
|
1037
|
+
merged_flagged_json=$(jq -s 'add // []' <(echo "$dev_flagged_json") <(echo "$ops_flagged_json"))
|
|
1038
|
+
|
|
1039
|
+
while IFS= read -r flagged; do
|
|
1040
|
+
flagged_card_id=$(echo "$flagged" | jq -r '.card_id')
|
|
1041
|
+
flagged_question=$(echo "$flagged" | jq -r '.question // "Needs clarification before decomposition"')
|
|
1042
|
+
monotask card comment add "$BOARD_ID" "$flagged_card_id" "Needs clarification: $flagged_question"
|
|
1043
|
+
monotask card move "$BOARD_ID" "$flagged_card_id" "$COL_ICED" --json
|
|
1044
|
+
done < <(echo "$merged_flagged_json" | jq -c '.[]')
|
|
1045
|
+
```
|
|
1046
|
+
|
|
1047
|
+
---
|
|
1048
|
+
|
|
1049
|
+
### Step 7 — Brain Write + Return
|
|
1050
|
+
|
|
1051
|
+
Follow _protocol.md Brain Write Procedure (namespace: `idea`).
|
|
1052
|
+
|
|
1053
|
+
**Write domain output to session file** so master Step 9 aggregation can include this domain. Skip silently if running standalone (no SESSION_ID in current.json):
|
|
1054
|
+
|
|
1055
|
+
```bash
|
|
1056
|
+
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
1057
|
+
SESSION_ID=$(jq -r '.sessionId // empty' "$REPO_ROOT/.monomind/sessions/current.json" 2>/dev/null)
|
|
1058
|
+
if [ -n "$SESSION_ID" ]; then
|
|
1059
|
+
mkdir -p "$REPO_ROOT/.monomind/sessions/${SESSION_ID}"
|
|
1060
|
+
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
1061
|
+
# LLM: substitute <status>: complete (all steps ran), partial (some skipped), blocked (critical error)
|
|
1062
|
+
# LLM: substitute next_actions with actual suggestions derived from this run's top ideas
|
|
1063
|
+
jq -n \
|
|
1064
|
+
--arg domain "idea" \
|
|
1065
|
+
--arg status "<status>" \
|
|
1066
|
+
--argjson artifacts '[]' \
|
|
1067
|
+
--argjson next_actions '["<next_action_1>","<next_action_2>"]' \
|
|
1068
|
+
'{domain:$domain,status:$status,artifacts:$artifacts,next_actions:$next_actions}' \
|
|
1069
|
+
> "$REPO_ROOT/.monomind/sessions/${SESSION_ID}/idea.json"
|
|
1070
|
+
curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" \
|
|
1071
|
+
-H "Content-Type: application/json" \
|
|
1072
|
+
-d "$(jq -cn --arg sid "$SESSION_ID" --arg status "<status>" \
|
|
1073
|
+
'{type:"domain:complete",session:$sid,domain:"idea",status:$status,ts:(now*1000|floor)}')" || true
|
|
1074
|
+
fi
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
Return unified output schema to caller:
|
|
1078
|
+
|
|
1079
|
+
```yaml
|
|
1080
|
+
domain: idea
|
|
1081
|
+
status: complete | partial | blocked
|
|
1082
|
+
artifacts: []
|
|
1083
|
+
decisions:
|
|
1084
|
+
- what: <top idea or direction>
|
|
1085
|
+
why: <reasoning from validation + elaboration>
|
|
1086
|
+
confidence: <0.0-1.0>
|
|
1087
|
+
outcome: pending
|
|
1088
|
+
lessons:
|
|
1089
|
+
- what_worked: <which angles produced the best insights>
|
|
1090
|
+
- what_didnt: <which angles were less useful>
|
|
1091
|
+
next_actions:
|
|
1092
|
+
- <e.g. "run mastermind:build to prototype chosen direction">
|
|
1093
|
+
- <e.g. "run mastermind:research to validate top idea">
|
|
1094
|
+
board_url: "monotask://<project_name>/${project_name}-idea"
|
|
1095
|
+
task_board_url: "monotask://<project_name>/${project_name}-tasks-dev"
|
|
1096
|
+
ops_task_board_url: "monotask://<project_name>/${project_name}-tasks-ops"
|
|
1097
|
+
run_id: <ISO8601-timestamp>
|
|
1098
|
+
summary:
|
|
1099
|
+
ideas_generated: N
|
|
1100
|
+
ideas_dev: N
|
|
1101
|
+
ideas_ops: N
|
|
1102
|
+
ideas_evaluated: N
|
|
1103
|
+
ideas_tasked: N
|
|
1104
|
+
total_dev_subtasks: N
|
|
1105
|
+
total_ops_subtasks: N
|
|
1106
|
+
ideas_iced: N
|
|
1107
|
+
ideas_rejected: N
|
|
1108
|
+
```
|
|
1109
|
+
|
|
1110
|
+
---
|
|
1111
|
+
|
|
1112
|
+
## Domain Swarm Defaults
|
|
1113
|
+
|
|
1114
|
+
| Task Type | Agent | Swarm |
|
|
1115
|
+
|---|---|---|
|
|
1116
|
+
| Full product ideation | coordinator + mesh specialists | mesh 6 gossip balanced |
|
|
1117
|
+
| Feature brainstorm | researcher + trend-analyst | mesh 4 gossip balanced |
|
|
1118
|
+
| Pivot exploration | coordinator + researcher + growth | mesh 4 gossip balanced |
|
|
1119
|
+
| Competitive scan | researcher | hierarchical 3 raft specialized |
|
|
1120
|
+
| Single idea request | researcher or content-creator | single agent |
|