@monoes/monomindcli 2.9.22 → 2.9.24
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/consensus/quorum-manager.md +35 -54
- package/.claude/agents/core/coordinator.md +14 -18
- package/.claude/agents/core/researcher.md +1 -1
- package/.claude/agents/github/issue-tracker.md +3 -3
- package/.claude/agents/github/{code-review-swarm.md → monoswarm-code-review.md} +1 -1
- package/.claude/agents/github/{swarm-issue.md → monoswarm-issue.md} +1 -1
- package/.claude/agents/github/{multi-repo-swarm.md → monoswarm-multi-repo.md} +1 -1
- package/.claude/agents/github/{swarm-pr.md → monoswarm-pr.md} +1 -1
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/github/repo-architect.md +1 -1
- package/.claude/agents/github/sync-coordinator.md +4 -4
- package/.claude/agents/{hive-mind → monoswarm}/collective-intelligence-coordinator.md +9 -16
- package/.claude/agents/{swarm → monoswarm}/mesh-coordinator.md +19 -24
- package/.claude/agents/{hive-mind/swarm-memory-manager.md → monoswarm/monoswarm-memory-manager.md} +1 -1
- package/.claude/agents/templates/{coordinator-swarm-init.md → coordinator-monoswarm-init.md} +1 -1
- package/.claude/agents/testing/{tdd-london-swarm.md → tdd-london-monoswarm.md} +2 -2
- package/.claude/commands/agents/agent-coordination.md +3 -3
- package/.claude/commands/agents/agent-types.md +1 -1
- package/.claude/commands/automation/self-healing.md +1 -1
- package/.claude/commands/automation/smart-spawn.md +1 -1
- package/.claude/commands/coordination/README.md +1 -1
- package/.claude/commands/coordination/{swarm-init.md → monoswarm-init.md} +2 -2
- package/.claude/commands/coordination/task-orchestrate.md +4 -4
- package/.claude/commands/github/README.md +1 -1
- package/.claude/commands/github/issue-tracker.md +2 -2
- package/.claude/commands/github/pr-manager.md +1 -1
- package/.claude/commands/github/release-manager.md +1 -1
- package/.claude/commands/github/repo-architect.md +1 -1
- package/.claude/commands/github/sync-coordinator.md +2 -2
- package/.claude/commands/hooks/README.md +1 -2
- package/.claude/commands/hooks/overview.md +1 -2
- package/.claude/commands/hooks/setup.md +0 -3
- package/.claude/commands/mastermind/createtask.md +2 -2
- package/.claude/commands/mastermind/do.md +3 -3
- package/.claude/commands/mastermind/help.md +2 -2
- package/.claude/commands/mastermind/ideate.md +1 -1
- package/.claude/commands/mastermind/improve.md +1 -1
- package/.claude/commands/mastermind/memory.md +2 -2
- package/.claude/commands/mastermind/{swarm.md → monoswarm.md} +13 -26
- package/.claude/commands/mastermind/topology.md +1 -1
- package/.claude/commands/memory/README.md +2 -2
- package/.claude/commands/memory/memory-search.md +1 -1
- package/.claude/commands/monoswarm/README.md +59 -0
- package/.claude/commands/monoswarm/consensus.md +61 -0
- package/.claude/commands/monoswarm/init.md +68 -0
- package/.claude/commands/monoswarm/memory.md +55 -0
- package/.claude/commands/monoswarm/monoswarm.md +139 -0
- package/.claude/commands/{swarm → monoswarm}/research.md +2 -2
- package/.claude/commands/monoswarm/spawn.md +49 -0
- package/.claude/commands/monoswarm/status.md +48 -0
- package/.claude/commands/monoswarm/stop.md +46 -0
- package/.claude/commands/optimization/auto-topology.md +9 -9
- package/.claude/commands/stream-chain/run.md +1 -1
- package/.claude/commands/workflows/development.md +1 -1
- package/.claude/commands/workflows/research.md +2 -2
- package/.claude/helpers/audit-log-writer.cjs +72 -0
- package/.claude/helpers/control-start.cjs +84 -26
- package/.claude/helpers/handlers/agent-start-handler.cjs +5 -5
- package/.claude/helpers/handlers/gates-handler.cjs +31 -10
- package/.claude/helpers/handlers/session-restore-handler.cjs +1 -1
- package/.claude/helpers/handlers/task-handler.cjs +4 -4
- package/.claude/helpers/skill-registry.json +4718 -3669
- package/.claude/helpers/statusline.cjs +21 -21
- package/.claude/helpers/token-tracker.cjs +0 -6
- package/.claude/settings.json +2 -3
- package/.claude/skills/hooks-automation/SKILL.md +5 -5
- package/.claude/skills/mastermind-protocol/SKILL.md +3 -3
- package/.claude/skills/memory-toolkit/SKILL.md +2 -2
- package/.claude/skills/{swarm-orchestration → monoswarm}/SKILL.md +106 -42
- package/.claude/skills/specialagent/SKILL.md +1 -1
- package/README.md +31 -12
- package/dist/src/agents/registry-builder.d.ts.map +1 -1
- package/dist/src/agents/registry-builder.js +8 -9
- package/dist/src/agents/registry-builder.js.map +1 -1
- package/dist/src/autopilot-state.d.ts +0 -16
- package/dist/src/autopilot-state.d.ts.map +1 -1
- package/dist/src/autopilot-state.js +6 -21
- package/dist/src/autopilot-state.js.map +1 -1
- package/dist/src/browser/action-builder/analyzer.d.ts.map +1 -1
- package/dist/src/browser/action-builder/analyzer.js +6 -6
- package/dist/src/browser/action-builder/analyzer.js.map +1 -1
- package/dist/src/browser/action-builder/types.d.ts.map +1 -1
- package/dist/src/browser/adapters/gemini.d.ts.map +1 -1
- package/dist/src/browser/adapters/index.d.ts.map +1 -1
- package/dist/src/browser/adapters/index.js +2 -2
- package/dist/src/browser/adapters/index.js.map +1 -1
- package/dist/src/browser/adapters/instagram.d.ts.map +1 -1
- package/dist/src/browser/adapters/linkedin.d.ts.map +1 -1
- package/dist/src/browser/adapters/linkedin.js +9 -1
- package/dist/src/browser/adapters/linkedin.js.map +1 -1
- package/dist/src/browser/adapters/x.d.ts.map +1 -1
- package/dist/src/browser/adapters/x.js +14 -2
- package/dist/src/browser/adapters/x.js.map +1 -1
- package/dist/src/browser/dashboard/server.d.ts.map +1 -1
- package/dist/src/browser/dashboard/server.js +23 -13
- package/dist/src/browser/dashboard/server.js.map +1 -1
- package/dist/src/browser/dashboard/ui.html +5 -5
- package/dist/src/browser/workflow/engine.d.ts +1 -1
- package/dist/src/browser/workflow/engine.d.ts.map +1 -1
- package/dist/src/browser/workflow/engine.js +74 -25
- package/dist/src/browser/workflow/engine.js.map +1 -1
- package/dist/src/browser/workflow/store.d.ts +1 -1
- package/dist/src/browser/workflow/store.d.ts.map +1 -1
- package/dist/src/browser/workflow/store.js +54 -26
- package/dist/src/browser/workflow/store.js.map +1 -1
- package/dist/src/browser/workflow/types.d.ts.map +1 -1
- package/dist/src/capabilities/cap-code.d.ts.map +1 -1
- package/dist/src/capabilities/cap-code.js.map +1 -1
- package/dist/src/capabilities/cap-data.d.ts.map +1 -1
- package/dist/src/capabilities/cap-data.js +28 -8
- package/dist/src/capabilities/cap-data.js.map +1 -1
- package/dist/src/capabilities/cap-documents.d.ts.map +1 -1
- package/dist/src/capabilities/cap-documents.js +136 -54
- package/dist/src/capabilities/cap-documents.js.map +1 -1
- package/dist/src/capabilities/cap-graph.d.ts.map +1 -1
- package/dist/src/capabilities/cap-graph.js +3 -3
- package/dist/src/capabilities/cap-graph.js.map +1 -1
- package/dist/src/capabilities/cap-media.d.ts.map +1 -1
- package/dist/src/capabilities/cap-media.js +1 -1
- package/dist/src/capabilities/cap-media.js.map +1 -1
- package/dist/src/capabilities/cap-timeline.d.ts.map +1 -1
- package/dist/src/capabilities/cap-timeline.js +33 -7
- package/dist/src/capabilities/cap-timeline.js.map +1 -1
- package/dist/src/capabilities/index.d.ts +5 -5
- package/dist/src/capabilities/index.d.ts.map +1 -1
- package/dist/src/capabilities/index.js +5 -5
- package/dist/src/capabilities/index.js.map +1 -1
- package/dist/src/capabilities/manager.d.ts.map +1 -1
- package/dist/src/capabilities/manager.js +6 -6
- package/dist/src/capabilities/manager.js.map +1 -1
- package/dist/src/capabilities/scanner.d.ts.map +1 -1
- package/dist/src/capabilities/scanner.js +103 -14
- package/dist/src/capabilities/scanner.js.map +1 -1
- package/dist/src/commands/agent-lifecycle.d.ts.map +1 -1
- package/dist/src/commands/agent-lifecycle.js +120 -41
- package/dist/src/commands/agent-lifecycle.js.map +1 -1
- package/dist/src/commands/agent-ops.d.ts.map +1 -1
- package/dist/src/commands/agent-ops.js +107 -41
- package/dist/src/commands/agent-ops.js.map +1 -1
- package/dist/src/commands/agent.d.ts.map +1 -1
- package/dist/src/commands/agent.js +11 -3
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze-ast.d.ts +1 -1
- package/dist/src/commands/analyze-ast.d.ts.map +1 -1
- package/dist/src/commands/analyze-ast.js +47 -41
- package/dist/src/commands/analyze-ast.js.map +1 -1
- package/dist/src/commands/analyze-diff.d.ts.map +1 -1
- package/dist/src/commands/analyze-diff.js +147 -35
- package/dist/src/commands/analyze-diff.js.map +1 -1
- package/dist/src/commands/analyze-imports.d.ts.map +1 -1
- package/dist/src/commands/analyze-imports.js +74 -30
- package/dist/src/commands/analyze-imports.js.map +1 -1
- package/dist/src/commands/analyze-symbols.d.ts.map +1 -1
- package/dist/src/commands/analyze-symbols.js +55 -41
- package/dist/src/commands/analyze-symbols.js.map +1 -1
- package/dist/src/commands/analyze.d.ts +19 -6
- package/dist/src/commands/analyze.d.ts.map +1 -1
- package/dist/src/commands/analyze.js +90 -28
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/autopilot.d.ts.map +1 -1
- package/dist/src/commands/autopilot.js +5 -90
- package/dist/src/commands/autopilot.js.map +1 -1
- package/dist/src/commands/browse-action.d.ts.map +1 -1
- package/dist/src/commands/browse-action.js +65 -17
- package/dist/src/commands/browse-action.js.map +1 -1
- package/dist/src/commands/browse-platform.d.ts.map +1 -1
- package/dist/src/commands/browse-platform.js +13 -10
- package/dist/src/commands/browse-platform.js.map +1 -1
- package/dist/src/commands/browse-workflow.d.ts.map +1 -1
- package/dist/src/commands/browse-workflow.js +54 -20
- package/dist/src/commands/browse-workflow.js.map +1 -1
- package/dist/src/commands/browse.d.ts +1 -1
- package/dist/src/commands/browse.js +2 -2
- package/dist/src/commands/browse.js.map +1 -1
- package/dist/src/commands/cleanup.d.ts.map +1 -1
- package/dist/src/commands/cleanup.js +115 -49
- package/dist/src/commands/cleanup.js.map +1 -1
- package/dist/src/commands/completions.d.ts.map +1 -1
- package/dist/src/commands/completions.js +34 -21
- package/dist/src/commands/completions.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +95 -54
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/crash-reporting.d.ts.map +1 -1
- package/dist/src/commands/crash-reporting.js +10 -4
- package/dist/src/commands/crash-reporting.js.map +1 -1
- package/dist/src/commands/design-detect.d.ts.map +1 -1
- package/dist/src/commands/design-detect.js +33 -12
- package/dist/src/commands/design-detect.js.map +1 -1
- package/dist/src/commands/design-palette.d.ts.map +1 -1
- package/dist/src/commands/design-palette.js +770 -380
- package/dist/src/commands/design-palette.js.map +1 -1
- package/dist/src/commands/doc.d.ts.map +1 -1
- package/dist/src/commands/doc.js +272 -60
- package/dist/src/commands/doc.js.map +1 -1
- package/dist/src/commands/doctor-env-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-env-checks.js +130 -31
- package/dist/src/commands/doctor-env-checks.js.map +1 -1
- package/dist/src/commands/doctor-monoes-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-monoes-checks.js +20 -7
- package/dist/src/commands/doctor-monoes-checks.js.map +1 -1
- package/dist/src/commands/doctor-project-checks.d.ts +7 -0
- package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.js +476 -114
- package/dist/src/commands/doctor-project-checks.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +139 -60
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/download-embeddings.d.ts.map +1 -1
- package/dist/src/commands/download-embeddings.js +1 -1
- package/dist/src/commands/download-embeddings.js.map +1 -1
- package/dist/src/commands/events.d.ts.map +1 -1
- package/dist/src/commands/events.js +5 -2
- package/dist/src/commands/events.js.map +1 -1
- package/dist/src/commands/guidance.d.ts.map +1 -1
- package/dist/src/commands/guidance.js +38 -14
- package/dist/src/commands/guidance.js.map +1 -1
- package/dist/src/commands/hooks-core-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-core-commands.js +71 -44
- package/dist/src/commands/hooks-core-commands.js.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.d.ts +1 -2
- package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.js +140 -58
- package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
- package/dist/src/commands/hooks-coverage-gaps.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-gaps.js +74 -36
- package/dist/src/commands/hooks-coverage-gaps.js.map +1 -1
- package/dist/src/commands/hooks-coverage-routing.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-routing.js +139 -66
- package/dist/src/commands/hooks-coverage-routing.js.map +1 -1
- package/dist/src/commands/hooks-coverage-utils.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-utils.js +27 -8
- package/dist/src/commands/hooks-coverage-utils.js.map +1 -1
- package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-extended-commands.js +86 -21
- package/dist/src/commands/hooks-extended-commands.js.map +1 -1
- package/dist/src/commands/hooks-routing-commands.d.ts +1 -2
- package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-routing-commands.js +175 -183
- package/dist/src/commands/hooks-routing-commands.js.map +1 -1
- package/dist/src/commands/hooks-workers.d.ts.map +1 -1
- package/dist/src/commands/hooks-workers.js +111 -128
- package/dist/src/commands/hooks-workers.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +9 -12
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +2 -2
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init-subcommands.d.ts.map +1 -1
- package/dist/src/commands/init-subcommands.js +16 -5
- package/dist/src/commands/init-subcommands.js.map +1 -1
- package/dist/src/commands/init-upgrade.d.ts.map +1 -1
- package/dist/src/commands/init-upgrade.js +46 -23
- package/dist/src/commands/init-upgrade.js.map +1 -1
- package/dist/src/commands/init-wizard.d.ts.map +1 -1
- package/dist/src/commands/init-wizard.js +161 -44
- package/dist/src/commands/init-wizard.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +179 -64
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/mcp.d.ts +1 -0
- package/dist/src/commands/mcp.d.ts.map +1 -1
- package/dist/src/commands/mcp.js +229 -134
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory-admin.d.ts.map +1 -1
- package/dist/src/commands/memory-admin.js +67 -48
- package/dist/src/commands/memory-admin.js.map +1 -1
- package/dist/src/commands/memory-crud.d.ts.map +1 -1
- package/dist/src/commands/memory-crud.js +97 -60
- package/dist/src/commands/memory-crud.js.map +1 -1
- package/dist/src/commands/memory-list.d.ts.map +1 -1
- package/dist/src/commands/memory-list.js +6 -6
- package/dist/src/commands/memory-list.js.map +1 -1
- package/dist/src/commands/memory-transfer.d.ts.map +1 -1
- package/dist/src/commands/memory-transfer.js +46 -23
- package/dist/src/commands/memory-transfer.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +63 -35
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/monograph.d.ts.map +1 -1
- package/dist/src/commands/monograph.js +170 -57
- package/dist/src/commands/monograph.js.map +1 -1
- package/dist/src/commands/monoswarm.d.ts +8 -0
- package/dist/src/commands/monoswarm.d.ts.map +1 -0
- package/dist/src/commands/{swarm.js → monoswarm.js} +93 -315
- package/dist/src/commands/monoswarm.js.map +1 -0
- package/dist/src/commands/neural-core.d.ts.map +1 -1
- package/dist/src/commands/neural-core.js +123 -32
- package/dist/src/commands/neural-core.js.map +1 -1
- package/dist/src/commands/neural-optimize.d.ts.map +1 -1
- package/dist/src/commands/neural-optimize.js +95 -130
- package/dist/src/commands/neural-optimize.js.map +1 -1
- package/dist/src/commands/neural-registry.d.ts +1 -2
- package/dist/src/commands/neural-registry.d.ts.map +1 -1
- package/dist/src/commands/neural-registry.js +70 -181
- package/dist/src/commands/neural-registry.js.map +1 -1
- package/dist/src/commands/org-observe.d.ts +13 -3
- package/dist/src/commands/org-observe.d.ts.map +1 -1
- package/dist/src/commands/org-observe.js +308 -131
- package/dist/src/commands/org-observe.js.map +1 -1
- package/dist/src/commands/org-visualize.d.ts.map +1 -1
- package/dist/src/commands/org-visualize.js +10 -5
- package/dist/src/commands/org-visualize.js.map +1 -1
- package/dist/src/commands/org.d.ts +15 -1
- package/dist/src/commands/org.d.ts.map +1 -1
- package/dist/src/commands/org.js +663 -193
- package/dist/src/commands/org.js.map +1 -1
- package/dist/src/commands/performance.d.ts.map +1 -1
- package/dist/src/commands/performance.js +232 -79
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/platforms.d.ts +1 -1
- package/dist/src/commands/platforms.d.ts.map +1 -1
- package/dist/src/commands/platforms.js +89 -49
- package/dist/src/commands/platforms.js.map +1 -1
- package/dist/src/commands/providers.d.ts.map +1 -1
- package/dist/src/commands/providers.js +31 -18
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/report-crash.d.ts.map +1 -1
- package/dist/src/commands/report-crash.js +17 -5
- package/dist/src/commands/report-crash.js.map +1 -1
- package/dist/src/commands/route.d.ts.map +1 -1
- package/dist/src/commands/route.js +123 -41
- package/dist/src/commands/route.js.map +1 -1
- package/dist/src/commands/search-universal.d.ts +1 -1
- package/dist/src/commands/search-universal.d.ts.map +1 -1
- package/dist/src/commands/search-universal.js +29 -14
- package/dist/src/commands/search-universal.js.map +1 -1
- package/dist/src/commands/security-cve.d.ts.map +1 -1
- package/dist/src/commands/security-cve.js +75 -34
- package/dist/src/commands/security-cve.js.map +1 -1
- package/dist/src/commands/security-misc.d.ts.map +1 -1
- package/dist/src/commands/security-misc.js +362 -102
- package/dist/src/commands/security-misc.js.map +1 -1
- package/dist/src/commands/security-scan.d.ts +13 -0
- package/dist/src/commands/security-scan.d.ts.map +1 -1
- package/dist/src/commands/security-scan.js +222 -57
- package/dist/src/commands/security-scan.js.map +1 -1
- package/dist/src/commands/security.d.ts.map +1 -1
- package/dist/src/commands/security.js +10 -3
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/commands/session.d.ts.map +1 -1
- package/dist/src/commands/session.js +81 -75
- package/dist/src/commands/session.js.map +1 -1
- package/dist/src/commands/start.d.ts.map +1 -1
- package/dist/src/commands/start.js +59 -129
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/status.d.ts.map +1 -1
- package/dist/src/commands/status.js +151 -130
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/commands/task.d.ts.map +1 -1
- package/dist/src/commands/task.js +115 -84
- package/dist/src/commands/task.js.map +1 -1
- package/dist/src/commands/tokens.d.ts.map +1 -1
- package/dist/src/commands/tokens.js +67 -32
- package/dist/src/commands/tokens.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +3 -5
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/consensus/audit-writer.d.ts +7 -2
- package/dist/src/consensus/audit-writer.d.ts.map +1 -1
- package/dist/src/consensus/audit-writer.js +19 -11
- package/dist/src/consensus/audit-writer.js.map +1 -1
- package/dist/src/consensus/tally.d.ts.map +1 -1
- package/dist/src/consensus/tally.js +2 -2
- package/dist/src/consensus/tally.js.map +1 -1
- package/dist/src/index.d.ts +7 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +51 -43
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts +1 -1
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +52 -36
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/codex-generator.d.ts +16 -0
- package/dist/src/init/codex-generator.d.ts.map +1 -0
- package/dist/src/init/codex-generator.js +180 -0
- package/dist/src/init/codex-generator.js.map +1 -0
- package/dist/src/init/copy-assets.d.ts.map +1 -1
- package/dist/src/init/copy-assets.js +17 -20
- package/dist/src/init/copy-assets.js.map +1 -1
- package/dist/src/init/executor.d.ts +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +56 -29
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/geminimd-generator.d.ts +1 -1
- package/dist/src/init/geminimd-generator.d.ts.map +1 -1
- package/dist/src/init/geminimd-generator.js +2 -2
- package/dist/src/init/geminimd-generator.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +7 -7
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/index.d.ts +8 -7
- package/dist/src/init/index.d.ts.map +1 -1
- package/dist/src/init/index.js +9 -8
- package/dist/src/init/index.js.map +1 -1
- package/dist/src/init/kimi-generator.d.ts +1 -1
- package/dist/src/init/kimi-generator.d.ts.map +1 -1
- package/dist/src/init/kimi-generator.js +34 -28
- package/dist/src/init/kimi-generator.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +3 -11
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/opencode-generator.d.ts.map +1 -1
- package/dist/src/init/opencode-generator.js +35 -22
- package/dist/src/init/opencode-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +3 -7
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/shared-instructions-generator.d.ts.map +1 -1
- package/dist/src/init/shared-instructions-generator.js +124 -76
- package/dist/src/init/shared-instructions-generator.js.map +1 -1
- package/dist/src/init/shared.d.ts.map +1 -1
- package/dist/src/init/shared.js +26 -25
- package/dist/src/init/shared.js.map +1 -1
- package/dist/src/init/statusline-generator.js +19 -19
- package/dist/src/init/types.d.ts +9 -10
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +10 -8
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/init/upgrade.d.ts.map +1 -1
- package/dist/src/init/upgrade.js +24 -22
- package/dist/src/init/upgrade.js.map +1 -1
- package/dist/src/init/write-antigravity.d.ts.map +1 -1
- package/dist/src/init/write-antigravity.js +15 -7
- package/dist/src/init/write-antigravity.js.map +1 -1
- package/dist/src/init/write-capabilities.d.ts.map +1 -1
- package/dist/src/init/write-capabilities.js +39 -52
- package/dist/src/init/write-capabilities.js.map +1 -1
- package/dist/src/init/write-claude.d.ts.map +1 -1
- package/dist/src/init/write-claude.js +19 -15
- package/dist/src/init/write-claude.js.map +1 -1
- package/dist/src/init/write-codex.d.ts +4 -0
- package/dist/src/init/write-codex.d.ts.map +1 -0
- package/dist/src/init/write-codex.js +122 -0
- package/dist/src/init/write-codex.js.map +1 -0
- package/dist/src/init/write-kimicode.d.ts.map +1 -1
- package/dist/src/init/write-kimicode.js +10 -6
- package/dist/src/init/write-kimicode.js.map +1 -1
- package/dist/src/init/write-opencode.d.ts.map +1 -1
- package/dist/src/init/write-opencode.js +4 -4
- package/dist/src/init/write-opencode.js.map +1 -1
- package/dist/src/init/write-runtime-config.d.ts.map +1 -1
- package/dist/src/init/write-runtime-config.js +24 -24
- package/dist/src/init/write-runtime-config.js.map +1 -1
- package/dist/src/init/write-sample-org.js +1 -1
- package/dist/src/init/write-sample-org.js.map +1 -1
- package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
- package/dist/src/knowledge/document-pipeline.js +144 -48
- package/dist/src/knowledge/document-pipeline.js.map +1 -1
- package/dist/src/knowledge/eval/corpus.d.ts.map +1 -1
- package/dist/src/knowledge/eval/corpus.js +18 -9
- package/dist/src/knowledge/eval/corpus.js.map +1 -1
- package/dist/src/knowledge/eval/golden-set.d.ts.map +1 -1
- package/dist/src/knowledge/eval/golden-set.js +4286 -136
- package/dist/src/knowledge/eval/golden-set.js.map +1 -1
- package/dist/src/knowledge/eval/harness.d.ts +2 -2
- package/dist/src/knowledge/eval/harness.d.ts.map +1 -1
- package/dist/src/knowledge/eval/harness.js +163 -70
- package/dist/src/knowledge/eval/harness.js.map +1 -1
- package/dist/src/knowledge/eval/metrics.d.ts.map +1 -1
- package/dist/src/knowledge/eval/metrics.js +25 -18
- package/dist/src/knowledge/eval/metrics.js.map +1 -1
- package/dist/src/knowledge/eval/model-presence.d.ts.map +1 -1
- package/dist/src/knowledge/eval/model-presence.js +40 -14
- package/dist/src/knowledge/eval/model-presence.js.map +1 -1
- package/dist/src/knowledge/eval/network-guard.d.ts.map +1 -1
- package/dist/src/knowledge/eval/network-guard.js +22 -10
- package/dist/src/knowledge/eval/network-guard.js.map +1 -1
- package/dist/src/knowledge/eval/retrievers.d.ts.map +1 -1
- package/dist/src/knowledge/eval/retrievers.js +14 -10
- package/dist/src/knowledge/eval/retrievers.js.map +1 -1
- package/dist/src/knowledge/eval/signals.d.ts.map +1 -1
- package/dist/src/knowledge/eval/signals.js +54 -18
- package/dist/src/knowledge/eval/signals.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +70 -35
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts +1 -9
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +20 -43
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +87 -52
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.js +34 -17
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
- package/dist/src/mcp-tools/auto-install.d.ts.map +1 -1
- package/dist/src/mcp-tools/auto-install.js +3 -3
- package/dist/src/mcp-tools/auto-install.js.map +1 -1
- package/dist/src/mcp-tools/autopilot-tools.d.ts +1 -1
- package/dist/src/mcp-tools/autopilot-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/autopilot-tools.js +32 -70
- package/dist/src/mcp-tools/autopilot-tools.js.map +1 -1
- package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/browser-tools.js +119 -37
- package/dist/src/mcp-tools/browser-tools.js.map +1 -1
- package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/claims-tools.js +100 -44
- package/dist/src/mcp-tools/claims-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +36 -15
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +34 -23
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +200 -43
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/graphify-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/graphify-tools.js +2 -2
- package/dist/src/mcp-tools/graphify-tools.js.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.js +461 -115
- package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-embedding.d.ts +0 -6
- package/dist/src/mcp-tools/hooks-embedding.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-embedding.js +170 -59
- package/dist/src/mcp-tools/hooks-embedding.js.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.d.ts +0 -9
- package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.js +64 -119
- package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.d.ts +1 -2
- package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.js +92 -165
- package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +2 -4
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +18 -19
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +18 -19
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/knowledge-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/knowledge-tools.js +88 -28
- package/dist/src/mcp-tools/knowledge-tools.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +157 -40
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/monodesign-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monodesign-tools.js +63 -22
- package/dist/src/mcp-tools/monodesign-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/agent-history-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/agent-history-tools.js +22 -9
- package/dist/src/mcp-tools/monograph/agent-history-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/build-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/build-tools.js +37 -16
- package/dist/src/mcp-tools/monograph/build-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/group-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/group-tools.js +57 -20
- package/dist/src/mcp-tools/monograph/group-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/health-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/health-tools.js +13 -7
- package/dist/src/mcp-tools/monograph/health-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/impact-tools.js +6 -6
- package/dist/src/mcp-tools/monograph/impact-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/index.js +8 -8
- package/dist/src/mcp-tools/monograph/index.js.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.js +140 -65
- package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph/shared.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/shared.js +42 -22
- package/dist/src/mcp-tools/monograph/shared.js.map +1 -1
- package/dist/src/mcp-tools/monograph/visualize-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/visualize-tools.js +87 -36
- package/dist/src/mcp-tools/monograph/visualize-tools.js.map +1 -1
- package/dist/src/mcp-tools/monograph-compat.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-compat.js +25 -14
- package/dist/src/mcp-tools/monograph-compat.js.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.js +1 -1
- package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
- package/dist/src/mcp-tools/monomind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monomind-tools.js +1 -1
- package/dist/src/mcp-tools/monomind-tools.js.map +1 -1
- package/dist/src/mcp-tools/monoswarm-tools.d.ts +17 -0
- package/dist/src/mcp-tools/monoswarm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/monoswarm-tools.js +1289 -0
- package/dist/src/mcp-tools/monoswarm-tools.js.map +1 -0
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +305 -101
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.d.ts.map +1 -1
- package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js +9 -4
- package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js.map +1 -1
- package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts +1 -1
- package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts.map +1 -1
- package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.js +36 -14
- package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.js.map +1 -1
- package/dist/src/mcp-tools/quality-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/quality-tools.js.map +1 -1
- package/dist/src/mcp-tools/request-tracker.d.ts.map +1 -1
- package/dist/src/mcp-tools/request-tracker.js +2 -1
- package/dist/src/mcp-tools/request-tracker.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +117 -53
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +22 -13
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +37 -20
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +59 -22
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +43 -16
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.d.ts +8 -12
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +11 -14
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/mcp-tools/types.d.ts +1 -1
- package/dist/src/mcp-tools/types.d.ts.map +1 -1
- package/dist/src/mcp-tools/types.js +1 -1
- package/dist/src/mcp-tools/types.js.map +1 -1
- package/dist/src/memory/bm25-index.d.ts.map +1 -1
- package/dist/src/memory/bm25-index.js.map +1 -1
- package/dist/src/memory/embedding-operations.d.ts.map +1 -1
- package/dist/src/memory/embedding-operations.js +23 -56
- package/dist/src/memory/embedding-operations.js.map +1 -1
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -1
- package/dist/src/memory/ewc-consolidation.js +31 -27
- package/dist/src/memory/ewc-consolidation.js.map +1 -1
- package/dist/src/memory/hnsw-operations.d.ts +15 -75
- package/dist/src/memory/hnsw-operations.d.ts.map +1 -1
- package/dist/src/memory/hnsw-operations.js +27 -268
- package/dist/src/memory/hnsw-operations.js.map +1 -1
- package/dist/src/memory/intelligence.d.ts +2 -2
- package/dist/src/memory/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +130 -91
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +24 -24
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +40 -41
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-crud.d.ts +1 -1
- package/dist/src/memory/memory-crud.d.ts.map +1 -1
- package/dist/src/memory/memory-crud.js +82 -67
- package/dist/src/memory/memory-crud.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +7 -8
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +38 -35
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/memory/memory-kg.d.ts.map +1 -1
- package/dist/src/memory/memory-kg.js +173 -41
- package/dist/src/memory/memory-kg.js.map +1 -1
- package/dist/src/memory/memory-migrations.d.ts.map +1 -1
- package/dist/src/memory/memory-migrations.js +11 -7
- package/dist/src/memory/memory-migrations.js.map +1 -1
- package/dist/src/memory/memory-read.d.ts.map +1 -1
- package/dist/src/memory/memory-read.js +50 -35
- package/dist/src/memory/memory-read.js.map +1 -1
- package/dist/src/memory/query-router.d.ts.map +1 -1
- package/dist/src/memory/query-router.js +29 -12
- package/dist/src/memory/query-router.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts +1 -1
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
- package/dist/src/memory/sona-optimizer.js +164 -42
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/memory/text-tokens.d.ts.map +1 -1
- package/dist/src/memory/text-tokens.js +78 -8
- package/dist/src/memory/text-tokens.js.map +1 -1
- package/dist/src/monovector/command-outcomes.d.ts.map +1 -1
- package/dist/src/monovector/command-outcomes.js +23 -8
- package/dist/src/monovector/command-outcomes.js.map +1 -1
- package/dist/src/monovector/coverage-router.d.ts.map +1 -1
- package/dist/src/monovector/coverage-router.js +29 -14
- package/dist/src/monovector/coverage-router.js.map +1 -1
- package/dist/src/monovector/coverage-tools.d.ts.map +1 -1
- package/dist/src/monovector/coverage-tools.js +21 -6
- package/dist/src/monovector/coverage-tools.js.map +1 -1
- package/dist/src/monovector/diff-classifier.d.ts +1 -1
- package/dist/src/monovector/diff-classifier.d.ts.map +1 -1
- package/dist/src/monovector/diff-classifier.js +100 -45
- package/dist/src/monovector/diff-classifier.js.map +1 -1
- package/dist/src/monovector/index.d.ts +3 -4
- package/dist/src/monovector/index.d.ts.map +1 -1
- package/dist/src/monovector/index.js +18 -6
- package/dist/src/monovector/index.js.map +1 -1
- package/dist/src/monovector/init-state.d.ts.map +1 -1
- package/dist/src/monovector/init-state.js +15 -5
- package/dist/src/monovector/init-state.js.map +1 -1
- package/dist/src/monovector/model-outcomes.d.ts +25 -0
- package/dist/src/monovector/model-outcomes.d.ts.map +1 -0
- package/dist/src/monovector/model-outcomes.js +113 -0
- package/dist/src/monovector/model-outcomes.js.map +1 -0
- package/dist/src/monovector/route-outcomes.d.ts.map +1 -1
- package/dist/src/monovector/route-outcomes.js +40 -21
- package/dist/src/monovector/route-outcomes.js.map +1 -1
- package/dist/src/observability/replay-reader.d.ts.map +1 -1
- package/dist/src/observability/replay-reader.js +6 -8
- package/dist/src/observability/replay-reader.js.map +1 -1
- package/dist/src/orgrt/agent-runner.d.ts +9 -3
- package/dist/src/orgrt/agent-runner.d.ts.map +1 -1
- package/dist/src/orgrt/agent-runner.js +1 -1
- package/dist/src/orgrt/agent-runner.js.map +1 -1
- package/dist/src/orgrt/antigravity-runner.d.ts +26 -3
- package/dist/src/orgrt/antigravity-runner.d.ts.map +1 -1
- package/dist/src/orgrt/antigravity-runner.js +295 -125
- package/dist/src/orgrt/antigravity-runner.js.map +1 -1
- package/dist/src/orgrt/approvals.d.ts.map +1 -1
- package/dist/src/orgrt/approvals.js +32 -8
- package/dist/src/orgrt/approvals.js.map +1 -1
- package/dist/src/orgrt/broker.d.ts.map +1 -1
- package/dist/src/orgrt/broker.js +11 -4
- package/dist/src/orgrt/broker.js.map +1 -1
- package/dist/src/orgrt/bus.d.ts.map +1 -1
- package/dist/src/orgrt/bus.js +28 -15
- package/dist/src/orgrt/bus.js.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.d.ts +10 -16
- package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.js +47 -36
- package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
- package/dist/src/orgrt/checkpoint.d.ts +12 -1
- package/dist/src/orgrt/checkpoint.d.ts.map +1 -1
- package/dist/src/orgrt/checkpoint.js +22 -4
- package/dist/src/orgrt/checkpoint.js.map +1 -1
- package/dist/src/orgrt/codex-runner.d.ts +27 -3
- package/dist/src/orgrt/codex-runner.d.ts.map +1 -1
- package/dist/src/orgrt/codex-runner.js +387 -129
- package/dist/src/orgrt/codex-runner.js.map +1 -1
- package/dist/src/orgrt/copilot-runner.d.ts +1 -1
- package/dist/src/orgrt/copilot-runner.d.ts.map +1 -1
- package/dist/src/orgrt/copilot-runner.js +60 -18
- package/dist/src/orgrt/copilot-runner.js.map +1 -1
- package/dist/src/orgrt/cross-org.d.ts.map +1 -1
- package/dist/src/orgrt/cross-org.js +224 -41
- package/dist/src/orgrt/cross-org.js.map +1 -1
- package/dist/src/orgrt/crush-runner.d.ts +5 -2
- package/dist/src/orgrt/crush-runner.d.ts.map +1 -1
- package/dist/src/orgrt/crush-runner.js +93 -47
- package/dist/src/orgrt/crush-runner.js.map +1 -1
- package/dist/src/orgrt/daemon.d.ts +42 -30
- package/dist/src/orgrt/daemon.d.ts.map +1 -1
- package/dist/src/orgrt/daemon.js +199 -69
- package/dist/src/orgrt/daemon.js.map +1 -1
- package/dist/src/orgrt/decisions.d.ts +3 -2
- package/dist/src/orgrt/decisions.d.ts.map +1 -1
- package/dist/src/orgrt/decisions.js +101 -32
- package/dist/src/orgrt/decisions.js.map +1 -1
- package/dist/src/orgrt/fence.d.ts +2 -2
- package/dist/src/orgrt/fence.d.ts.map +1 -1
- package/dist/src/orgrt/fence.js +13 -5
- package/dist/src/orgrt/fence.js.map +1 -1
- package/dist/src/orgrt/forwarder.js +1 -1
- package/dist/src/orgrt/forwarder.js.map +1 -1
- package/dist/src/orgrt/grok-runner.d.ts +1 -1
- package/dist/src/orgrt/grok-runner.d.ts.map +1 -1
- package/dist/src/orgrt/grok-runner.js +75 -30
- package/dist/src/orgrt/grok-runner.js.map +1 -1
- package/dist/src/orgrt/inbox.d.ts.map +1 -1
- package/dist/src/orgrt/inbox.js +5 -3
- package/dist/src/orgrt/inbox.js.map +1 -1
- package/dist/src/orgrt/kimicode-runner.d.ts +54 -8
- package/dist/src/orgrt/kimicode-runner.d.ts.map +1 -1
- package/dist/src/orgrt/kimicode-runner.js +278 -151
- package/dist/src/orgrt/kimicode-runner.js.map +1 -1
- package/dist/src/orgrt/mailbox.d.ts +26 -1
- package/dist/src/orgrt/mailbox.d.ts.map +1 -1
- package/dist/src/orgrt/mailbox.js +88 -6
- package/dist/src/orgrt/mailbox.js.map +1 -1
- package/dist/src/orgrt/migrate.d.ts.map +1 -1
- package/dist/src/orgrt/migrate.js +38 -25
- package/dist/src/orgrt/migrate.js.map +1 -1
- package/dist/src/orgrt/opencode-runner.d.ts +1 -1
- package/dist/src/orgrt/opencode-runner.d.ts.map +1 -1
- package/dist/src/orgrt/opencode-runner.js +16 -5
- package/dist/src/orgrt/opencode-runner.js.map +1 -1
- package/dist/src/orgrt/org-memory.d.ts +2 -2
- package/dist/src/orgrt/org-memory.d.ts.map +1 -1
- package/dist/src/orgrt/org-memory.js +66 -26
- package/dist/src/orgrt/org-memory.js.map +1 -1
- package/dist/src/orgrt/pi-rpc-runner.d.ts +1 -1
- package/dist/src/orgrt/pi-rpc-runner.d.ts.map +1 -1
- package/dist/src/orgrt/pi-rpc-runner.js +134 -114
- package/dist/src/orgrt/pi-rpc-runner.js.map +1 -1
- package/dist/src/orgrt/pi-runner.d.ts +1 -1
- package/dist/src/orgrt/pi-runner.d.ts.map +1 -1
- package/dist/src/orgrt/pi-runner.js +35 -16
- package/dist/src/orgrt/pi-runner.js.map +1 -1
- package/dist/src/orgrt/policy.d.ts +11 -0
- package/dist/src/orgrt/policy.d.ts.map +1 -1
- package/dist/src/orgrt/policy.js +86 -18
- package/dist/src/orgrt/policy.js.map +1 -1
- package/dist/src/orgrt/prechecks.d.ts.map +1 -1
- package/dist/src/orgrt/prechecks.js +9 -4
- package/dist/src/orgrt/prechecks.js.map +1 -1
- package/dist/src/orgrt/provider.d.ts +29 -1
- package/dist/src/orgrt/provider.d.ts.map +1 -1
- package/dist/src/orgrt/provider.js +62 -2
- package/dist/src/orgrt/provider.js.map +1 -1
- package/dist/src/orgrt/questions.d.ts.map +1 -1
- package/dist/src/orgrt/questions.js +34 -10
- package/dist/src/orgrt/questions.js.map +1 -1
- package/dist/src/orgrt/qwen-rpc-runner.d.ts +56 -0
- package/dist/src/orgrt/qwen-rpc-runner.d.ts.map +1 -0
- package/dist/src/orgrt/qwen-rpc-runner.js +381 -0
- package/dist/src/orgrt/qwen-rpc-runner.js.map +1 -0
- package/dist/src/orgrt/qwen-runner.d.ts +1 -1
- package/dist/src/orgrt/qwen-runner.d.ts.map +1 -1
- package/dist/src/orgrt/qwen-runner.js +42 -23
- package/dist/src/orgrt/qwen-runner.js.map +1 -1
- package/dist/src/orgrt/remote.js +1 -1
- package/dist/src/orgrt/remote.js.map +1 -1
- package/dist/src/orgrt/reporting.d.ts.map +1 -1
- package/dist/src/orgrt/reporting.js +61 -27
- package/dist/src/orgrt/reporting.js.map +1 -1
- package/dist/src/orgrt/scheduler-integration.d.ts.map +1 -1
- package/dist/src/orgrt/scheduler-integration.js +63 -19
- package/dist/src/orgrt/scheduler-integration.js.map +1 -1
- package/dist/src/orgrt/scheduler.d.ts.map +1 -1
- package/dist/src/orgrt/scheduler.js +7 -3
- package/dist/src/orgrt/scheduler.js.map +1 -1
- package/dist/src/orgrt/server.js +1 -1
- package/dist/src/orgrt/server.js.map +1 -1
- package/dist/src/orgrt/session.d.ts +32 -4
- package/dist/src/orgrt/session.d.ts.map +1 -1
- package/dist/src/orgrt/session.js +242 -74
- package/dist/src/orgrt/session.js.map +1 -1
- package/dist/src/orgrt/state-detector.d.ts.map +1 -1
- package/dist/src/orgrt/state-detector.js +6 -2
- package/dist/src/orgrt/state-detector.js.map +1 -1
- package/dist/src/orgrt/task-dag.d.ts +29 -1
- package/dist/src/orgrt/task-dag.d.ts.map +1 -1
- package/dist/src/orgrt/task-dag.js +76 -12
- package/dist/src/orgrt/task-dag.js.map +1 -1
- package/dist/src/orgrt/templates.d.ts.map +1 -1
- package/dist/src/orgrt/templates.js +198 -36
- package/dist/src/orgrt/templates.js.map +1 -1
- package/dist/src/orgrt/test-loop.d.ts.map +1 -1
- package/dist/src/orgrt/test-loop.js +139 -35
- package/dist/src/orgrt/test-loop.js.map +1 -1
- package/dist/src/orgrt/tool-fence.d.ts.map +1 -1
- package/dist/src/orgrt/tool-fence.js +21 -3
- package/dist/src/orgrt/tool-fence.js.map +1 -1
- package/dist/src/orgrt/types.d.ts +32 -1
- package/dist/src/orgrt/types.d.ts.map +1 -1
- package/dist/src/orgrt/types.js +192 -39
- package/dist/src/orgrt/types.js.map +1 -1
- package/dist/src/orgrt/usage-proxy.d.ts +20 -0
- package/dist/src/orgrt/usage-proxy.d.ts.map +1 -1
- package/dist/src/orgrt/usage-proxy.js +25 -15
- package/dist/src/orgrt/usage-proxy.js.map +1 -1
- package/dist/src/orgrt/vercel-providers.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-providers.js +11 -1
- package/dist/src/orgrt/vercel-providers.js.map +1 -1
- package/dist/src/orgrt/vercel-runner.d.ts +1 -1
- package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-runner.js +3 -5
- package/dist/src/orgrt/vercel-runner.js.map +1 -1
- package/dist/src/orgrt/vercel-session-store.d.ts +14 -0
- package/dist/src/orgrt/vercel-session-store.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-session-store.js +3 -3
- package/dist/src/orgrt/vercel-session-store.js.map +1 -1
- package/dist/src/orgrt/visualization.js +3 -4
- package/dist/src/orgrt/visualization.js.map +1 -1
- package/dist/src/output.d.ts +1 -1
- package/dist/src/output.d.ts.map +1 -1
- package/dist/src/output.js +68 -39
- package/dist/src/output.js.map +1 -1
- package/dist/src/parser.d.ts.map +1 -1
- package/dist/src/parser.js +35 -24
- package/dist/src/parser.js.map +1 -1
- package/dist/src/pricing/model-pricing.d.ts.map +1 -1
- package/dist/src/pricing/model-pricing.js +3 -7
- package/dist/src/pricing/model-pricing.js.map +1 -1
- package/dist/src/prompt.d.ts +2 -2
- package/dist/src/prompt.d.ts.map +1 -1
- package/dist/src/prompt.js +49 -41
- package/dist/src/prompt.js.map +1 -1
- package/dist/src/routing/embedder.d.ts.map +1 -1
- package/dist/src/routing/embedder.js +0 -0
- package/dist/src/routing/embedder.js.map +1 -1
- package/dist/src/routing/llm-caller.d.ts.map +1 -1
- package/dist/src/routing/llm-caller.js +27 -8
- package/dist/src/routing/llm-caller.js.map +1 -1
- package/dist/src/routing/model-download.d.ts.map +1 -1
- package/dist/src/routing/model-download.js +3 -3
- package/dist/src/routing/model-download.js.map +1 -1
- package/dist/src/routing/route-layer-factory.d.ts.map +1 -1
- package/dist/src/routing/route-layer-factory.js +22 -14
- package/dist/src/routing/route-layer-factory.js.map +1 -1
- package/dist/src/security/audit-log.d.ts +47 -0
- package/dist/src/security/audit-log.d.ts.map +1 -0
- package/dist/src/security/audit-log.js +88 -0
- package/dist/src/security/audit-log.js.map +1 -0
- package/dist/src/services/config-file-manager.d.ts +2 -2
- package/dist/src/services/config-file-manager.d.ts.map +1 -1
- package/dist/src/services/config-file-manager.js +44 -20
- package/dist/src/services/config-file-manager.js.map +1 -1
- package/dist/src/services/crash-reporter.d.ts.map +1 -1
- package/dist/src/services/crash-reporter.js +44 -16
- package/dist/src/services/crash-reporter.js.map +1 -1
- package/dist/src/suggest.d.ts +1 -1
- package/dist/src/suggest.d.ts.map +1 -1
- package/dist/src/suggest.js +57 -57
- package/dist/src/suggest.js.map +1 -1
- package/dist/src/sync/checker.d.ts.map +1 -1
- package/dist/src/sync/checker.js +7 -8
- package/dist/src/sync/checker.js.map +1 -1
- package/dist/src/transfer/anonymization/index.d.ts +1 -1
- package/dist/src/transfer/anonymization/index.js +3 -3
- package/dist/src/transfer/anonymization/index.js.map +1 -1
- package/dist/src/types.d.ts +4 -4
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/ui/collector.mjs +275 -159
- package/dist/src/ui/dashboard.html +761 -742
- package/dist/src/ui/data/agent-avatars.html +3 -15
- package/dist/src/ui/data/agent-avatars.json +11 -27
- package/dist/src/ui/markdown.js +243 -62
- package/dist/src/ui/mastermind-diagram-fallback.html +29 -29
- package/dist/src/ui/orgs-files.js +99 -46
- package/dist/src/ui/orgs.html +54 -54
- package/dist/src/ui/routes-monograph.mjs +918 -246
- package/dist/src/ui/routes-org.mjs +4234 -2369
- package/dist/src/ui/server.mjs +142 -106
- package/dist/src/update/checker.d.ts.map +1 -1
- package/dist/src/update/checker.js +17 -12
- package/dist/src/update/checker.js.map +1 -1
- package/dist/src/update/executor.d.ts +2 -2
- package/dist/src/update/executor.d.ts.map +1 -1
- package/dist/src/update/executor.js +21 -11
- package/dist/src/update/executor.js.map +1 -1
- package/dist/src/update/index.d.ts +6 -6
- package/dist/src/update/index.d.ts.map +1 -1
- package/dist/src/update/index.js +9 -9
- package/dist/src/update/index.js.map +1 -1
- package/dist/src/update/rate-limiter.d.ts.map +1 -1
- package/dist/src/update/rate-limiter.js +11 -7
- package/dist/src/update/rate-limiter.js.map +1 -1
- package/dist/src/update/validator.d.ts.map +1 -1
- package/dist/src/update/validator.js +8 -12
- package/dist/src/update/validator.js.map +1 -1
- package/dist/src/utils/cosine-similarity.d.ts.map +1 -1
- package/dist/src/utils/cosine-similarity.js.map +1 -1
- package/dist/src/utils/input-guards.d.ts +1 -1
- package/dist/src/utils/input-guards.d.ts.map +1 -1
- package/dist/src/utils/input-guards.js +24 -9
- package/dist/src/utils/input-guards.js.map +1 -1
- package/dist/src/utils/json-file.d.ts +12 -0
- package/dist/src/utils/json-file.d.ts.map +1 -1
- package/dist/src/utils/json-file.js +14 -3
- package/dist/src/utils/json-file.js.map +1 -1
- package/dist/src/utils/parse-jsonl.d.ts.map +1 -1
- package/dist/src/utils/parse-jsonl.js +1 -3
- package/dist/src/utils/parse-jsonl.js.map +1 -1
- package/dist/src/utils/paths.d.ts.map +1 -1
- package/dist/src/utils/paths.js +2 -2
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/redaction.d.ts.map +1 -1
- package/dist/src/utils/redaction.js +1 -1
- package/dist/src/utils/redaction.js.map +1 -1
- package/dist/src/utils/resource-governor.d.ts.map +1 -1
- package/dist/src/utils/resource-governor.js +38 -14
- package/dist/src/utils/resource-governor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/.claude/agents/consensus/crdt-synchronizer.md +0 -977
- package/.claude/commands/hive-mind/README.md +0 -42
- package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -72
- package/.claude/commands/hive-mind/hive-mind-init.md +0 -68
- package/.claude/commands/hive-mind/hive-mind-memory.md +0 -73
- package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -82
- package/.claude/commands/hive-mind/hive-mind-status.md +0 -56
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -55
- package/.claude/commands/hive-mind/hive-mind.md +0 -87
- package/.claude/commands/swarm/README.md +0 -40
- package/.claude/commands/swarm/swarm.md +0 -79
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -347
- package/.claude/skills/swarm-advanced/SKILL.md +0 -936
- package/dist/src/commands/swarm.d.ts +0 -8
- package/dist/src/commands/swarm.d.ts.map +0 -1
- package/dist/src/commands/swarm.js.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -17
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +0 -1239
- package/dist/src/mcp-tools/hive-mind-tools.js.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +0 -9
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.js +0 -411
- package/dist/src/mcp-tools/swarm-tools.js.map +0 -1
- package/dist/src/ui/data/avatars/crdt-synchronizer.svg +0 -53
- package/dist/src/ui/data/avatars/gossip-coordinator.svg +0 -54
- package/scripts/deploy-ipfs-node.sh +0 -153
- package/scripts/setup-ipfs-registry.md +0 -365
- /package/.claude/agents/{hive-mind → monoswarm}/scout-explorer.md +0 -0
- /package/.claude/agents/{hive-mind → monoswarm}/worker-specialist.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/analysis.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/development.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/examples.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/maintenance.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/optimization.md +0 -0
- /package/.claude/commands/{swarm → monoswarm}/testing.md +0 -0
- /package/dist/src/ui/data/avatars/{code-review-swarm.svg → monoswarm-code-review.svg} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hooks Routing Commands
|
|
3
|
-
* Route/explain/pretrain/
|
|
3
|
+
* Route/explain/pretrain/metrics/transfer/list subcommands
|
|
4
4
|
* Extracted from hooks.ts (ARCH-1)
|
|
5
5
|
*/
|
|
6
|
-
import { output } from '../output.js';
|
|
7
6
|
import { callMCPTool, MCPClientError } from '../mcp-client.js';
|
|
7
|
+
import { output } from '../output.js';
|
|
8
8
|
// Route subcommand
|
|
9
9
|
export const routeCommand = {
|
|
10
10
|
name: 'route',
|
|
@@ -15,25 +15,31 @@ export const routeCommand = {
|
|
|
15
15
|
short: 't',
|
|
16
16
|
description: 'Task description',
|
|
17
17
|
type: 'string',
|
|
18
|
-
required: true
|
|
18
|
+
required: true,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
name: 'context',
|
|
22
22
|
short: 'c',
|
|
23
23
|
description: 'Additional context',
|
|
24
|
-
type: 'string'
|
|
24
|
+
type: 'string',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
name: 'top-k',
|
|
28
28
|
short: 'K',
|
|
29
29
|
description: 'Number of top agent suggestions',
|
|
30
30
|
type: 'number',
|
|
31
|
-
default: 3
|
|
32
|
-
}
|
|
31
|
+
default: 3,
|
|
32
|
+
},
|
|
33
33
|
],
|
|
34
34
|
examples: [
|
|
35
|
-
{
|
|
36
|
-
|
|
35
|
+
{
|
|
36
|
+
command: 'monomind hooks route -t "Fix authentication bug"',
|
|
37
|
+
description: 'Route task to optimal agent',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
command: 'monomind hooks route -t "Optimize database queries" -K 5',
|
|
41
|
+
description: 'Get top 5 suggestions',
|
|
42
|
+
},
|
|
37
43
|
],
|
|
38
44
|
action: async (ctx) => {
|
|
39
45
|
const task = ctx.args[0] || ctx.flags.task;
|
|
@@ -60,7 +66,7 @@ export const routeCommand = {
|
|
|
60
66
|
`Task: ${result.task}`,
|
|
61
67
|
`Top Agent: ${output.highlight(result.primaryAgent.type)}`,
|
|
62
68
|
`Confidence: ${(result.primaryAgent.confidence * 100).toFixed(1)}%`,
|
|
63
|
-
`Method: ${result.routing?.method ?? 'keyword'}
|
|
69
|
+
`Method: ${result.routing?.method ?? 'keyword'}`,
|
|
64
70
|
].join('\n'), 'Routing Decision');
|
|
65
71
|
const recommendations = [result.primaryAgent, ...(result.alternativeAgents || [])];
|
|
66
72
|
if (recommendations.length > 0) {
|
|
@@ -69,10 +75,16 @@ export const routeCommand = {
|
|
|
69
75
|
output.printTable({
|
|
70
76
|
columns: [
|
|
71
77
|
{ key: 'type', header: 'Agent', width: 20 },
|
|
72
|
-
{
|
|
73
|
-
|
|
78
|
+
{
|
|
79
|
+
key: 'confidence',
|
|
80
|
+
header: 'Confidence',
|
|
81
|
+
width: 12,
|
|
82
|
+
align: 'right',
|
|
83
|
+
format: (v) => `${(Number(v) * 100).toFixed(1)}%`,
|
|
84
|
+
},
|
|
85
|
+
{ key: 'reason', header: 'Reason', width: 35 },
|
|
74
86
|
],
|
|
75
|
-
data: recommendations.slice(0, topK)
|
|
87
|
+
data: recommendations.slice(0, topK),
|
|
76
88
|
});
|
|
77
89
|
}
|
|
78
90
|
return { success: true, data: result };
|
|
@@ -86,7 +98,7 @@ export const routeCommand = {
|
|
|
86
98
|
}
|
|
87
99
|
return { success: false, exitCode: 1 };
|
|
88
100
|
}
|
|
89
|
-
}
|
|
101
|
+
},
|
|
90
102
|
};
|
|
91
103
|
// Explain subcommand
|
|
92
104
|
export const explainCommand = {
|
|
@@ -98,25 +110,31 @@ export const explainCommand = {
|
|
|
98
110
|
short: 't',
|
|
99
111
|
description: 'Task description',
|
|
100
112
|
type: 'string',
|
|
101
|
-
required: true
|
|
113
|
+
required: true,
|
|
102
114
|
},
|
|
103
115
|
{
|
|
104
116
|
name: 'agent',
|
|
105
117
|
short: 'a',
|
|
106
118
|
description: 'Agent type to explain',
|
|
107
|
-
type: 'string'
|
|
119
|
+
type: 'string',
|
|
108
120
|
},
|
|
109
121
|
{
|
|
110
122
|
name: 'verbose',
|
|
111
123
|
short: 'v',
|
|
112
124
|
description: 'Verbose explanation',
|
|
113
125
|
type: 'boolean',
|
|
114
|
-
default: false
|
|
115
|
-
}
|
|
126
|
+
default: false,
|
|
127
|
+
},
|
|
116
128
|
],
|
|
117
129
|
examples: [
|
|
118
|
-
{
|
|
119
|
-
|
|
130
|
+
{
|
|
131
|
+
command: 'monomind hooks explain -t "Fix authentication bug"',
|
|
132
|
+
description: 'Explain routing decision',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
command: 'monomind hooks explain -t "Optimize queries" -a coder --verbose',
|
|
136
|
+
description: 'Verbose explanation for specific agent',
|
|
137
|
+
},
|
|
120
138
|
],
|
|
121
139
|
action: async (ctx) => {
|
|
122
140
|
const task = ctx.args[0] || ctx.flags.task;
|
|
@@ -143,7 +161,7 @@ export const explainCommand = {
|
|
|
143
161
|
output.writeln();
|
|
144
162
|
output.printBox([
|
|
145
163
|
`Agent: ${output.highlight(result.decision.agent)}`,
|
|
146
|
-
`Confidence: ${(result.decision.confidence * 100).toFixed(1)}
|
|
164
|
+
`Confidence: ${(result.decision.confidence * 100).toFixed(1)}%`,
|
|
147
165
|
].join('\n'), 'Final Decision');
|
|
148
166
|
if (result.decision.reasoning.length > 0) {
|
|
149
167
|
output.writeln();
|
|
@@ -156,11 +174,23 @@ export const explainCommand = {
|
|
|
156
174
|
output.printTable({
|
|
157
175
|
columns: [
|
|
158
176
|
{ key: 'factor', header: 'Factor', width: 20 },
|
|
159
|
-
{
|
|
160
|
-
|
|
161
|
-
|
|
177
|
+
{
|
|
178
|
+
key: 'weight',
|
|
179
|
+
header: 'Weight',
|
|
180
|
+
width: 10,
|
|
181
|
+
align: 'right',
|
|
182
|
+
format: (v) => `${(Number(v) * 100).toFixed(0)}%`,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
key: 'value',
|
|
186
|
+
header: 'Value',
|
|
187
|
+
width: 10,
|
|
188
|
+
align: 'right',
|
|
189
|
+
format: (v) => Number(v).toFixed(2),
|
|
190
|
+
},
|
|
191
|
+
{ key: 'impact', header: 'Impact', width: 25 },
|
|
162
192
|
],
|
|
163
|
-
data: result.factors
|
|
193
|
+
data: result.factors,
|
|
164
194
|
});
|
|
165
195
|
}
|
|
166
196
|
if (result.patterns.length > 0 && ctx.flags.verbose) {
|
|
@@ -170,7 +200,7 @@ export const explainCommand = {
|
|
|
170
200
|
output.writeln();
|
|
171
201
|
output.writeln(`${i + 1}. ${output.highlight(p.pattern)} (${(p.matchScore * 100).toFixed(1)}% match)`);
|
|
172
202
|
if (p.examples.length > 0) {
|
|
173
|
-
output.printList(p.examples.slice(0, 3).map(e => output.dim(` ${e}`)));
|
|
203
|
+
output.printList(p.examples.slice(0, 3).map((e) => output.dim(` ${e}`)));
|
|
174
204
|
}
|
|
175
205
|
});
|
|
176
206
|
}
|
|
@@ -185,7 +215,7 @@ export const explainCommand = {
|
|
|
185
215
|
}
|
|
186
216
|
return { success: false, exitCode: 1 };
|
|
187
217
|
}
|
|
188
|
-
}
|
|
218
|
+
},
|
|
189
219
|
};
|
|
190
220
|
// Pretrain subcommand
|
|
191
221
|
export const pretrainCommand = {
|
|
@@ -197,7 +227,7 @@ export const pretrainCommand = {
|
|
|
197
227
|
short: 'p',
|
|
198
228
|
description: 'Repository path',
|
|
199
229
|
type: 'string',
|
|
200
|
-
default: '.'
|
|
230
|
+
default: '.',
|
|
201
231
|
},
|
|
202
232
|
{
|
|
203
233
|
name: 'depth',
|
|
@@ -205,46 +235,59 @@ export const pretrainCommand = {
|
|
|
205
235
|
description: 'Analysis depth (shallow, medium, deep)',
|
|
206
236
|
type: 'string',
|
|
207
237
|
default: 'medium',
|
|
208
|
-
choices: ['shallow', 'medium', 'deep']
|
|
238
|
+
choices: ['shallow', 'medium', 'deep'],
|
|
209
239
|
},
|
|
210
240
|
{
|
|
211
241
|
name: 'skip-cache',
|
|
212
242
|
description: 'Skip cached analysis',
|
|
213
243
|
type: 'boolean',
|
|
214
|
-
default: false
|
|
244
|
+
default: false,
|
|
215
245
|
},
|
|
216
246
|
{
|
|
217
247
|
name: 'with-embeddings',
|
|
218
248
|
description: 'Index documents for semantic search during pretraining',
|
|
219
249
|
type: 'boolean',
|
|
220
|
-
default: true
|
|
250
|
+
default: true,
|
|
221
251
|
},
|
|
222
252
|
{
|
|
223
253
|
name: 'embedding-model',
|
|
224
254
|
description: 'ONNX embedding model',
|
|
225
255
|
type: 'string',
|
|
226
256
|
default: 'Xenova/all-MiniLM-L6-v2',
|
|
227
|
-
choices: ['Xenova/all-MiniLM-L6-v2', 'Xenova/all-mpnet-base-v2']
|
|
257
|
+
choices: ['Xenova/all-MiniLM-L6-v2', 'Xenova/all-mpnet-base-v2'],
|
|
228
258
|
},
|
|
229
259
|
{
|
|
230
260
|
name: 'file-types',
|
|
231
261
|
description: 'File extensions to index (comma-separated)',
|
|
232
262
|
type: 'string',
|
|
233
|
-
default: 'ts,js,py,md,json'
|
|
234
|
-
}
|
|
263
|
+
default: 'ts,js,py,md,json',
|
|
264
|
+
},
|
|
235
265
|
],
|
|
236
266
|
examples: [
|
|
237
267
|
{ command: 'monomind hooks pretrain', description: 'Pretrain with embeddings indexing' },
|
|
238
|
-
{
|
|
239
|
-
|
|
240
|
-
|
|
268
|
+
{
|
|
269
|
+
command: 'monomind hooks pretrain -p ../my-project --depth deep',
|
|
270
|
+
description: 'Deep analysis of specific project',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
command: 'monomind hooks pretrain --no-with-embeddings',
|
|
274
|
+
description: 'Skip embedding indexing',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
command: 'monomind hooks pretrain --file-types ts,tsx,js',
|
|
278
|
+
description: 'Index only TypeScript/JS files',
|
|
279
|
+
},
|
|
241
280
|
],
|
|
242
281
|
action: async (ctx) => {
|
|
243
282
|
const repoPath = ctx.flags.path || '.';
|
|
244
283
|
const depth = ctx.flags.depth || 'medium';
|
|
245
284
|
const withEmbeddings = ctx.flags['with-embeddings'] !== false && ctx.flags.withEmbeddings !== false;
|
|
246
|
-
const embeddingModel = (ctx.flags['embedding-model'] ||
|
|
247
|
-
|
|
285
|
+
const embeddingModel = (ctx.flags['embedding-model'] ||
|
|
286
|
+
ctx.flags.embeddingModel ||
|
|
287
|
+
'Xenova/all-MiniLM-L6-v2');
|
|
288
|
+
const fileTypes = (ctx.flags['file-types'] ||
|
|
289
|
+
ctx.flags.fileTypes ||
|
|
290
|
+
'ts,js,py,md,json');
|
|
248
291
|
output.writeln();
|
|
249
292
|
output.writeln(output.bold('Indexing hook activity into local JSON state'));
|
|
250
293
|
output.writeln();
|
|
@@ -279,20 +322,22 @@ export const pretrainCommand = {
|
|
|
279
322
|
if (withEmbeddings && result.stats.documentsIndexed !== undefined) {
|
|
280
323
|
tableData.push({ metric: 'Documents Indexed', value: result.stats.documentsIndexed }, { metric: 'Embeddings Generated', value: result.stats.embeddingsGenerated || 0 });
|
|
281
324
|
}
|
|
282
|
-
tableData.push({
|
|
325
|
+
tableData.push({
|
|
326
|
+
metric: 'Duration',
|
|
327
|
+
value: `${((result.durationMs ?? 0) / 1000).toFixed(1)}s`,
|
|
328
|
+
});
|
|
283
329
|
output.printTable({
|
|
284
330
|
columns: [
|
|
285
331
|
{ key: 'metric', header: 'Metric', width: 30 },
|
|
286
|
-
{ key: 'value', header: 'Value', width: 15, align: 'right' }
|
|
332
|
+
{ key: 'value', header: 'Value', width: 15, align: 'right' },
|
|
287
333
|
],
|
|
288
|
-
data: tableData
|
|
334
|
+
data: tableData,
|
|
289
335
|
});
|
|
290
336
|
output.writeln();
|
|
291
337
|
output.printSuccess('Repository intelligence bootstrapped successfully');
|
|
292
338
|
if (withEmbeddings) {
|
|
293
339
|
output.writeln(output.dim(' Semantic search enabled: Use "embeddings search -q <query>" to search'));
|
|
294
340
|
}
|
|
295
|
-
output.writeln(output.dim(' Next step: Run "monomind hooks build-agents" to generate optimized configs'));
|
|
296
341
|
return { success: true, data: result };
|
|
297
342
|
}
|
|
298
343
|
catch (error) {
|
|
@@ -305,96 +350,7 @@ export const pretrainCommand = {
|
|
|
305
350
|
}
|
|
306
351
|
return { success: false, exitCode: 1 };
|
|
307
352
|
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
// Build agents subcommand
|
|
311
|
-
export const buildAgentsCommand = {
|
|
312
|
-
name: 'build-agents',
|
|
313
|
-
description: 'Generate optimized agent configs from pretrain data',
|
|
314
|
-
options: [
|
|
315
|
-
{
|
|
316
|
-
name: 'output',
|
|
317
|
-
short: 'o',
|
|
318
|
-
description: 'Output directory for agent configs',
|
|
319
|
-
type: 'string',
|
|
320
|
-
default: './agents'
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
name: 'focus',
|
|
324
|
-
short: 'f',
|
|
325
|
-
description: 'Focus area (v1-implementation, security, performance, all)',
|
|
326
|
-
type: 'string',
|
|
327
|
-
default: 'all'
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
name: 'config-format',
|
|
331
|
-
description: 'Config format (yaml, json)',
|
|
332
|
-
type: 'string',
|
|
333
|
-
default: 'yaml',
|
|
334
|
-
choices: ['yaml', 'json']
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
examples: [
|
|
338
|
-
{ command: 'monomind hooks build-agents', description: 'Build all agent configs' },
|
|
339
|
-
{ command: 'monomind hooks build-agents --focus security -o ./config/agents', description: 'Build security-focused configs' }
|
|
340
|
-
],
|
|
341
|
-
action: async (ctx) => {
|
|
342
|
-
const output_dir = ctx.flags.output || './agents';
|
|
343
|
-
const focus = ctx.flags.focus || 'all';
|
|
344
|
-
const configFormat = ctx.flags.configFormat || 'yaml';
|
|
345
|
-
output.printInfo(`Building agent configs (focus: ${output.highlight(focus)})`);
|
|
346
|
-
const spinner = output.createSpinner({ text: 'Generating configs...', spinner: 'dots' });
|
|
347
|
-
try {
|
|
348
|
-
spinner.start();
|
|
349
|
-
// Call MCP tool for building agents
|
|
350
|
-
const result = await callMCPTool('hooks_build-agents', {
|
|
351
|
-
outputDir: output_dir,
|
|
352
|
-
focus,
|
|
353
|
-
format: configFormat,
|
|
354
|
-
includePretrained: true,
|
|
355
|
-
});
|
|
356
|
-
spinner.succeed(`Generated ${result.agents.length} agent configs`);
|
|
357
|
-
if (ctx.flags.format === 'json') {
|
|
358
|
-
output.printJson(result);
|
|
359
|
-
return { success: true, data: result };
|
|
360
|
-
}
|
|
361
|
-
output.writeln();
|
|
362
|
-
output.writeln(output.bold('Generated Agent Configs'));
|
|
363
|
-
output.printTable({
|
|
364
|
-
columns: [
|
|
365
|
-
{ key: 'type', header: 'Agent Type', width: 20 },
|
|
366
|
-
{ key: 'configFile', header: 'Config File', width: 30 },
|
|
367
|
-
{ key: 'capabilities', header: 'Capabilities', width: 10, align: 'right', format: (v) => String(Array.isArray(v) ? v.length : 0) }
|
|
368
|
-
],
|
|
369
|
-
data: result.agents
|
|
370
|
-
});
|
|
371
|
-
output.writeln();
|
|
372
|
-
output.printTable({
|
|
373
|
-
columns: [
|
|
374
|
-
{ key: 'metric', header: 'Metric', width: 30 },
|
|
375
|
-
{ key: 'value', header: 'Value', width: 15, align: 'right' }
|
|
376
|
-
],
|
|
377
|
-
data: [
|
|
378
|
-
{ metric: 'Configs Generated', value: result.stats.configsGenerated },
|
|
379
|
-
{ metric: 'Patterns Applied', value: result.stats.patternsApplied },
|
|
380
|
-
{ metric: 'Optimizations Included', value: result.stats.optimizationsIncluded }
|
|
381
|
-
]
|
|
382
|
-
});
|
|
383
|
-
output.writeln();
|
|
384
|
-
output.printSuccess(`Agent configs saved to ${output_dir}`);
|
|
385
|
-
return { success: true, data: result };
|
|
386
|
-
}
|
|
387
|
-
catch (error) {
|
|
388
|
-
spinner.fail('Agent config generation failed');
|
|
389
|
-
if (error instanceof MCPClientError) {
|
|
390
|
-
output.printError(`Build agents error: ${error.message}`);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
output.printError(`Unexpected error: ${String(error)}`);
|
|
394
|
-
}
|
|
395
|
-
return { success: false, exitCode: 1 };
|
|
396
|
-
}
|
|
397
|
-
}
|
|
353
|
+
},
|
|
398
354
|
};
|
|
399
355
|
// Metrics subcommand
|
|
400
356
|
export const metricsCommand = {
|
|
@@ -406,24 +362,27 @@ export const metricsCommand = {
|
|
|
406
362
|
short: 'p',
|
|
407
363
|
description: 'Time period (1h, 24h, 7d, 30d, all)',
|
|
408
364
|
type: 'string',
|
|
409
|
-
default: '24h'
|
|
365
|
+
default: '24h',
|
|
410
366
|
},
|
|
411
367
|
{
|
|
412
368
|
name: 'v1-dashboard',
|
|
413
369
|
description: 'Show v1 performance dashboard',
|
|
414
370
|
type: 'boolean',
|
|
415
|
-
default: false
|
|
371
|
+
default: false,
|
|
416
372
|
},
|
|
417
373
|
{
|
|
418
374
|
name: 'category',
|
|
419
375
|
short: 'c',
|
|
420
376
|
description: 'Metric category (patterns, agents, commands, performance)',
|
|
421
|
-
type: 'string'
|
|
422
|
-
}
|
|
377
|
+
type: 'string',
|
|
378
|
+
},
|
|
423
379
|
],
|
|
424
380
|
examples: [
|
|
425
381
|
{ command: 'monomind hooks metrics', description: 'View 24h metrics' },
|
|
426
|
-
{
|
|
382
|
+
{
|
|
383
|
+
command: 'monomind hooks metrics --period 7d --v1-dashboard',
|
|
384
|
+
description: 'v1 metrics for 7 days',
|
|
385
|
+
},
|
|
427
386
|
],
|
|
428
387
|
action: async (ctx) => {
|
|
429
388
|
const period = ctx.flags.period || '24h';
|
|
@@ -457,14 +416,24 @@ export const metricsCommand = {
|
|
|
457
416
|
output.printTable({
|
|
458
417
|
columns: [
|
|
459
418
|
{ key: 'metric', header: 'Metric', width: 25 },
|
|
460
|
-
{ key: 'value', header: 'Value', width: 20, align: 'right' }
|
|
419
|
+
{ key: 'value', header: 'Value', width: 20, align: 'right' },
|
|
461
420
|
],
|
|
462
421
|
data: [
|
|
463
422
|
{ metric: 'Total Patterns', value: result.patterns.total ?? 0 },
|
|
464
|
-
{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
423
|
+
{
|
|
424
|
+
metric: 'Successful',
|
|
425
|
+
value: typeof result.patterns.successful === 'number'
|
|
426
|
+
? output.success(String(result.patterns.successful))
|
|
427
|
+
: 'N/A',
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
metric: 'Failed',
|
|
431
|
+
value: typeof result.patterns.failed === 'number'
|
|
432
|
+
? output.error(String(result.patterns.failed))
|
|
433
|
+
: 'N/A',
|
|
434
|
+
},
|
|
435
|
+
{ metric: 'Avg Confidence', value: pct(result.patterns.avgConfidence) },
|
|
436
|
+
],
|
|
468
437
|
});
|
|
469
438
|
if (result.patterns._note)
|
|
470
439
|
output.writeln(output.dim(` ${result.patterns._note}`));
|
|
@@ -474,13 +443,16 @@ export const metricsCommand = {
|
|
|
474
443
|
output.printTable({
|
|
475
444
|
columns: [
|
|
476
445
|
{ key: 'metric', header: 'Metric', width: 25 },
|
|
477
|
-
{ key: 'value', header: 'Value', width: 20, align: 'right' }
|
|
446
|
+
{ key: 'value', header: 'Value', width: 20, align: 'right' },
|
|
478
447
|
],
|
|
479
448
|
data: [
|
|
480
449
|
{ metric: 'Routing Accuracy', value: pct(result.agents.routingAccuracy) },
|
|
481
450
|
{ metric: 'Total Routes', value: result.agents.totalRoutes ?? 0 },
|
|
482
|
-
{
|
|
483
|
-
|
|
451
|
+
{
|
|
452
|
+
metric: 'Top Agent',
|
|
453
|
+
value: result.agents.topAgent ? output.highlight(result.agents.topAgent) : 'N/A',
|
|
454
|
+
},
|
|
455
|
+
],
|
|
484
456
|
});
|
|
485
457
|
if (result.agents._note)
|
|
486
458
|
output.writeln(output.dim(` ${result.agents._note}`));
|
|
@@ -490,26 +462,21 @@ export const metricsCommand = {
|
|
|
490
462
|
output.printTable({
|
|
491
463
|
columns: [
|
|
492
464
|
{ key: 'metric', header: 'Metric', width: 25 },
|
|
493
|
-
{ key: 'value', header: 'Value', width: 20, align: 'right' }
|
|
465
|
+
{ key: 'value', header: 'Value', width: 20, align: 'right' },
|
|
494
466
|
],
|
|
495
467
|
data: [
|
|
496
468
|
{ metric: 'Total Executed', value: result.commands.totalExecuted ?? 0 },
|
|
497
469
|
{ metric: 'Success Rate', value: pct(result.commands.successRate) },
|
|
498
|
-
{
|
|
499
|
-
|
|
470
|
+
{
|
|
471
|
+
metric: 'Avg Risk Score',
|
|
472
|
+
value: typeof result.commands.avgRiskScore === 'number'
|
|
473
|
+
? result.commands.avgRiskScore.toFixed(2)
|
|
474
|
+
: 'N/A',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
500
477
|
});
|
|
501
478
|
if (result.commands._note)
|
|
502
479
|
output.writeln(output.dim(` ${result.commands._note}`));
|
|
503
|
-
if (v1Dashboard && result.performance) {
|
|
504
|
-
const p = result.performance;
|
|
505
|
-
output.writeln();
|
|
506
|
-
output.writeln(output.bold('🚀 v1 Performance Gains'));
|
|
507
|
-
output.printList([
|
|
508
|
-
`Memory Reduction: ${output.success(p.memoryReduction ?? 'N/A')}`,
|
|
509
|
-
`Search Improvement: ${output.success(p.searchImprovement ?? 'N/A')}`,
|
|
510
|
-
`Token Reduction: ${output.success(p.tokenReduction ?? 'N/A')}`
|
|
511
|
-
]);
|
|
512
|
-
}
|
|
513
480
|
return { success: true, data: result };
|
|
514
481
|
}
|
|
515
482
|
catch (error) {
|
|
@@ -521,7 +488,7 @@ export const metricsCommand = {
|
|
|
521
488
|
}
|
|
522
489
|
return { success: false, exitCode: 1 };
|
|
523
490
|
}
|
|
524
|
-
}
|
|
491
|
+
},
|
|
525
492
|
};
|
|
526
493
|
// Transfer from project subcommand
|
|
527
494
|
export const transferFromProjectCommand = {
|
|
@@ -534,25 +501,31 @@ export const transferFromProjectCommand = {
|
|
|
534
501
|
short: 's',
|
|
535
502
|
description: 'Source project path',
|
|
536
503
|
type: 'string',
|
|
537
|
-
required: true
|
|
504
|
+
required: true,
|
|
538
505
|
},
|
|
539
506
|
{
|
|
540
507
|
name: 'filter',
|
|
541
508
|
short: 'f',
|
|
542
509
|
description: 'Filter patterns by type',
|
|
543
|
-
type: 'string'
|
|
510
|
+
type: 'string',
|
|
544
511
|
},
|
|
545
512
|
{
|
|
546
513
|
name: 'min-confidence',
|
|
547
514
|
short: 'm',
|
|
548
515
|
description: 'Minimum confidence threshold (0-1)',
|
|
549
516
|
type: 'number',
|
|
550
|
-
default: 0.7
|
|
551
|
-
}
|
|
517
|
+
default: 0.7,
|
|
518
|
+
},
|
|
552
519
|
],
|
|
553
520
|
examples: [
|
|
554
|
-
{
|
|
555
|
-
|
|
521
|
+
{
|
|
522
|
+
command: 'monomind hooks transfer from-project -s ../old-project',
|
|
523
|
+
description: 'Transfer all patterns',
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
command: 'monomind hooks transfer from-project -s ../prod --filter security -m 0.9',
|
|
527
|
+
description: 'Transfer high-confidence security patterns',
|
|
528
|
+
},
|
|
556
529
|
],
|
|
557
530
|
action: async (ctx) => {
|
|
558
531
|
const sourcePath = ctx.args[0] || ctx.flags.source;
|
|
@@ -582,14 +555,17 @@ export const transferFromProjectCommand = {
|
|
|
582
555
|
output.printTable({
|
|
583
556
|
columns: [
|
|
584
557
|
{ key: 'category', header: 'Category', width: 25 },
|
|
585
|
-
{ key: 'count', header: 'Count', width: 15, align: 'right' }
|
|
558
|
+
{ key: 'count', header: 'Count', width: 15, align: 'right' },
|
|
586
559
|
],
|
|
587
560
|
data: [
|
|
588
|
-
{
|
|
561
|
+
{
|
|
562
|
+
category: 'Total Transferred',
|
|
563
|
+
count: output.success(String(result.transferred.total)),
|
|
564
|
+
},
|
|
589
565
|
{ category: 'Skipped (Low Confidence)', count: result.skipped.lowConfidence },
|
|
590
566
|
{ category: 'Skipped (Duplicates)', count: result.skipped.duplicates },
|
|
591
|
-
{ category: 'Skipped (Conflicts)', count: result.skipped.conflicts }
|
|
592
|
-
]
|
|
567
|
+
{ category: 'Skipped (Conflicts)', count: result.skipped.conflicts },
|
|
568
|
+
],
|
|
593
569
|
});
|
|
594
570
|
if (Object.keys(result.transferred.byType).length > 0) {
|
|
595
571
|
output.writeln();
|
|
@@ -597,15 +573,15 @@ export const transferFromProjectCommand = {
|
|
|
597
573
|
output.printTable({
|
|
598
574
|
columns: [
|
|
599
575
|
{ key: 'type', header: 'Type', width: 20 },
|
|
600
|
-
{ key: 'count', header: 'Count', width: 15, align: 'right' }
|
|
576
|
+
{ key: 'count', header: 'Count', width: 15, align: 'right' },
|
|
601
577
|
],
|
|
602
|
-
data: Object.entries(result.transferred.byType).map(([type, count]) => ({ type, count }))
|
|
578
|
+
data: Object.entries(result.transferred.byType).map(([type, count]) => ({ type, count })),
|
|
603
579
|
});
|
|
604
580
|
}
|
|
605
581
|
output.writeln();
|
|
606
582
|
output.printList([
|
|
607
583
|
`Avg Confidence: ${(result.stats.avgConfidence * 100).toFixed(1)}%`,
|
|
608
|
-
`Avg Age: ${result.stats.avgAge}
|
|
584
|
+
`Avg Age: ${result.stats.avgAge}`,
|
|
609
585
|
]);
|
|
610
586
|
return { success: true, data: result };
|
|
611
587
|
}
|
|
@@ -619,7 +595,7 @@ export const transferFromProjectCommand = {
|
|
|
619
595
|
}
|
|
620
596
|
return { success: false, exitCode: 1 };
|
|
621
597
|
}
|
|
622
|
-
}
|
|
598
|
+
},
|
|
623
599
|
};
|
|
624
600
|
// Parent transfer command combining all transfer methods
|
|
625
601
|
export const transferCommand = {
|
|
@@ -627,8 +603,14 @@ export const transferCommand = {
|
|
|
627
603
|
description: 'Transfer learned patterns from another local project',
|
|
628
604
|
subcommands: [transferFromProjectCommand],
|
|
629
605
|
examples: [
|
|
630
|
-
{
|
|
631
|
-
|
|
606
|
+
{
|
|
607
|
+
command: 'monomind hooks transfer from-project -s ../other-project',
|
|
608
|
+
description: 'Transfer all patterns from another checkout',
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
command: 'monomind hooks transfer from-project -s ../prod --filter security -m 0.9',
|
|
612
|
+
description: 'Transfer only high-confidence security patterns',
|
|
613
|
+
},
|
|
632
614
|
],
|
|
633
615
|
action: async () => {
|
|
634
616
|
output.writeln();
|
|
@@ -642,7 +624,7 @@ export const transferCommand = {
|
|
|
642
624
|
output.writeln();
|
|
643
625
|
output.writeln('Run "monomind hooks transfer from-project --help" for options');
|
|
644
626
|
return { success: true };
|
|
645
|
-
}
|
|
627
|
+
},
|
|
646
628
|
};
|
|
647
629
|
// List subcommand
|
|
648
630
|
export const listCommand = {
|
|
@@ -655,14 +637,14 @@ export const listCommand = {
|
|
|
655
637
|
short: 'e',
|
|
656
638
|
description: 'Show only enabled hooks',
|
|
657
639
|
type: 'boolean',
|
|
658
|
-
default: false
|
|
640
|
+
default: false,
|
|
659
641
|
},
|
|
660
642
|
{
|
|
661
643
|
name: 'type',
|
|
662
644
|
short: 't',
|
|
663
645
|
description: 'Filter by hook type',
|
|
664
|
-
type: 'string'
|
|
665
|
-
}
|
|
646
|
+
type: 'string',
|
|
647
|
+
},
|
|
666
648
|
],
|
|
667
649
|
action: async (ctx) => {
|
|
668
650
|
try {
|
|
@@ -686,12 +668,22 @@ export const listCommand = {
|
|
|
686
668
|
columns: [
|
|
687
669
|
{ key: 'name', header: 'Name', width: 20 },
|
|
688
670
|
{ key: 'type', header: 'Type', width: 15 },
|
|
689
|
-
{
|
|
671
|
+
{
|
|
672
|
+
key: 'enabled',
|
|
673
|
+
header: 'Enabled',
|
|
674
|
+
width: 10,
|
|
675
|
+
format: (v) => (v ? output.success('Yes') : output.dim('No')),
|
|
676
|
+
},
|
|
690
677
|
{ key: 'priority', header: 'Priority', width: 10, align: 'right' },
|
|
691
678
|
{ key: 'executionCount', header: 'Executions', width: 12, align: 'right' },
|
|
692
|
-
{
|
|
679
|
+
{
|
|
680
|
+
key: 'lastExecuted',
|
|
681
|
+
header: 'Last Executed',
|
|
682
|
+
width: 20,
|
|
683
|
+
format: (v) => (v ? new Date(String(v)).toLocaleString() : 'Never'),
|
|
684
|
+
},
|
|
693
685
|
],
|
|
694
|
-
data: result.hooks
|
|
686
|
+
data: result.hooks,
|
|
695
687
|
});
|
|
696
688
|
output.writeln();
|
|
697
689
|
output.printInfo(`Total: ${result.total} hooks`);
|
|
@@ -706,6 +698,6 @@ export const listCommand = {
|
|
|
706
698
|
}
|
|
707
699
|
return { success: false, exitCode: 1 };
|
|
708
700
|
}
|
|
709
|
-
}
|
|
701
|
+
},
|
|
710
702
|
};
|
|
711
703
|
//# sourceMappingURL=hooks-routing-commands.js.map
|