@monoes/monomindcli 2.7.3 → 2.7.5
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/architecture/system-design/arch-system-design.md +0 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +0 -0
- package/.claude/agents/consensus/quorum-manager.md +0 -0
- package/.claude/agents/consensus/security-manager.md +0 -0
- package/.claude/agents/core/coder.md +0 -0
- package/.claude/agents/core/coordinator.md +0 -0
- package/.claude/agents/core/planner.md +0 -0
- package/.claude/agents/core/researcher.md +0 -0
- package/.claude/agents/core/reviewer.md +0 -0
- package/.claude/agents/core/tester.md +0 -0
- package/.claude/agents/design/design-monodesign.md +0 -0
- package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-ai-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -0
- package/.claude/agents/engineering/engineering-backend-architect.md +0 -0
- package/.claude/agents/engineering/engineering-code-reviewer.md +0 -0
- package/.claude/agents/engineering/engineering-data-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-database-optimizer.md +0 -0
- package/.claude/agents/engineering/engineering-devops-automator.md +0 -0
- package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-feishu-integration-developer.md +0 -0
- package/.claude/agents/engineering/engineering-frontend-developer.md +0 -0
- package/.claude/agents/engineering/engineering-git-workflow-master.md +0 -0
- package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -0
- package/.claude/agents/engineering/engineering-mobile-app-builder.md +0 -0
- package/.claude/agents/engineering/engineering-rapid-prototyper.md +0 -0
- package/.claude/agents/engineering/engineering-security-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-senior-developer.md +0 -0
- package/.claude/agents/engineering/engineering-software-architect.md +0 -0
- package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-sre.md +0 -0
- package/.claude/agents/engineering/engineering-technical-writer.md +0 -0
- package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -0
- package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +0 -0
- package/.claude/agents/github/code-review-swarm.md +0 -0
- package/.claude/agents/github/github-modes.md +0 -0
- package/.claude/agents/github/issue-tracker.md +0 -0
- package/.claude/agents/github/multi-repo-swarm.md +0 -0
- package/.claude/agents/github/pr-manager.md +0 -0
- package/.claude/agents/github/project-board-sync.md +0 -0
- package/.claude/agents/github/release-manager.md +0 -0
- package/.claude/agents/github/repo-architect.md +0 -0
- package/.claude/agents/github/swarm-issue.md +0 -0
- package/.claude/agents/github/swarm-pr.md +0 -0
- package/.claude/agents/github/sync-coordinator.md +0 -0
- package/.claude/agents/github/workflow-automation.md +0 -0
- package/.claude/agents/goal/goal-planner.md +0 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -0
- package/.claude/agents/hive-mind/scout-explorer.md +0 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -0
- package/.claude/agents/hive-mind/worker-specialist.md +0 -0
- package/.claude/agents/marketing/marketing-competitive-content.md +0 -0
- package/.claude/agents/marketing/marketing-cro-specialist.md +0 -0
- package/.claude/agents/marketing/marketing-email-specialist.md +0 -0
- package/.claude/agents/marketing/marketing-launch-strategist.md +0 -0
- package/.claude/agents/marketing/marketing-pricing-strategist.md +0 -0
- package/.claude/agents/optimization/benchmark-suite.md +0 -0
- package/.claude/agents/optimization/load-balancer.md +0 -0
- package/.claude/agents/optimization/performance-monitor.md +0 -0
- package/.claude/agents/optimization/resource-allocator.md +0 -0
- package/.claude/agents/optimization/topology-optimizer.md +0 -0
- package/.claude/agents/schemas/architecture-output.json +0 -0
- package/.claude/agents/schemas/code-review-output.json +0 -0
- package/.claude/agents/schemas/generic-task-input.json +0 -0
- package/.claude/agents/schemas/implementation-output.json +0 -0
- package/.claude/agents/schemas/research-output.json +0 -0
- package/.claude/agents/schemas/security-audit-output.json +0 -0
- package/.claude/agents/schemas/test-report-output.json +0 -0
- package/.claude/agents/specialists/integration-architect.md +0 -0
- package/.claude/agents/specialized/agentic-identity-trust.md +0 -0
- package/.claude/agents/specialized/agents-orchestrator.md +0 -0
- package/.claude/agents/specialized/automation-governance-architect.md +0 -0
- package/.claude/agents/specialized/blockchain-security-auditor.md +0 -0
- package/.claude/agents/specialized/compliance-auditor.md +0 -0
- package/.claude/agents/specialized/identity-graph-operator.md +0 -0
- package/.claude/agents/specialized/lsp-index-engineer.md +0 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -0
- package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -0
- package/.claude/agents/specialized/specialized-developer-advocate.md +0 -0
- package/.claude/agents/specialized/specialized-document-generator.md +0 -0
- package/.claude/agents/specialized/specialized-mcp-builder.md +0 -0
- package/.claude/agents/specialized/specialized-model-qa.md +0 -0
- package/.claude/agents/specialized/specialized-workflow-architect.md +0 -0
- package/.claude/agents/specialized/zk-steward.md +0 -0
- package/.claude/agents/swarm/mesh-coordinator.md +0 -0
- package/.claude/agents/templates/automation-smart-agent.md +0 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +0 -0
- package/.claude/agents/testing/production-validator.md +0 -0
- package/.claude/agents/testing/tdd-london-swarm.md +0 -0
- package/.claude/agents/testing/testing-accessibility-auditor.md +0 -0
- package/.claude/agents/testing/testing-api-tester.md +0 -0
- package/.claude/agents/testing/testing-evidence-collector.md +0 -0
- package/.claude/agents/testing/testing-performance-benchmarker.md +0 -0
- package/.claude/agents/testing/testing-test-results-analyzer.md +0 -0
- package/.claude/agents/testing/testing-tool-evaluator.md +0 -0
- package/.claude/agents/testing/testing-workflow-optimizer.md +0 -0
- package/.claude/commands/agents/README.md +0 -0
- package/.claude/commands/agents/agent-capabilities.md +0 -0
- package/.claude/commands/agents/agent-coordination.md +0 -0
- package/.claude/commands/agents/agent-spawning.md +0 -0
- package/.claude/commands/agents/agent-types.md +0 -0
- package/.claude/commands/analysis/README.md +0 -0
- package/.claude/commands/analysis/bottleneck-detect.md +0 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +0 -0
- package/.claude/commands/analysis/performance-report.md +0 -0
- package/.claude/commands/analysis/token-usage.md +0 -0
- package/.claude/commands/automation/README.md +0 -0
- package/.claude/commands/automation/auto-agent.md +0 -0
- package/.claude/commands/automation/self-healing.md +0 -0
- package/.claude/commands/automation/session-memory.md +0 -0
- package/.claude/commands/automation/smart-agents.md +0 -0
- package/.claude/commands/automation/smart-spawn.md +0 -0
- package/.claude/commands/automation/workflow-select.md +0 -0
- package/.claude/commands/coordination/README.md +0 -0
- package/.claude/commands/coordination/agent-spawn.md +0 -0
- package/.claude/commands/coordination/swarm-init.md +0 -0
- package/.claude/commands/coordination/task-orchestrate.md +0 -0
- package/.claude/commands/github/README.md +0 -0
- package/.claude/commands/github/github-modes.md +0 -0
- package/.claude/commands/github/issue-tracker.md +0 -0
- package/.claude/commands/github/pr-manager.md +0 -0
- package/.claude/commands/github/release-manager.md +0 -0
- package/.claude/commands/github/repo-architect.md +0 -0
- package/.claude/commands/github/sync-coordinator.md +0 -0
- package/.claude/commands/hive-mind/README.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +0 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -0
- package/.claude/commands/hive-mind/hive-mind.md +0 -0
- package/.claude/commands/hooks/README.md +0 -0
- package/.claude/commands/hooks/overview.md +0 -0
- package/.claude/commands/hooks/post-edit.md +0 -0
- package/.claude/commands/hooks/post-task.md +0 -0
- package/.claude/commands/hooks/pre-edit.md +0 -0
- package/.claude/commands/hooks/pre-task.md +0 -0
- package/.claude/commands/hooks/session-end.md +0 -0
- package/.claude/commands/hooks/setup.md +0 -0
- package/.claude/commands/mastermind/_repeat.md +0 -0
- package/.claude/commands/mastermind/_taskfile.md +0 -0
- package/.claude/commands/mastermind/adr.md +0 -0
- package/.claude/commands/mastermind/approvev1.md +0 -0
- package/.claude/commands/mastermind/architect.md +0 -0
- package/.claude/commands/mastermind/autodev.md +0 -0
- package/.claude/commands/mastermind/brain.md +0 -0
- package/.claude/commands/mastermind/budget.md +0 -0
- package/.claude/commands/mastermind/build.md +0 -0
- package/.claude/commands/mastermind/code-review.md +0 -0
- package/.claude/commands/mastermind/content.md +0 -0
- package/.claude/commands/mastermind/createorg.md +0 -0
- package/.claude/commands/mastermind/createtask.md +0 -0
- package/.claude/commands/mastermind/debug.md +0 -0
- package/.claude/commands/mastermind/design.md +0 -0
- package/.claude/commands/mastermind/do.md +0 -0
- package/.claude/commands/mastermind/execute.md +0 -0
- package/.claude/commands/mastermind/finance.md +0 -0
- package/.claude/commands/mastermind/finish.md +0 -0
- package/.claude/commands/mastermind/graph-status.md +0 -0
- package/.claude/commands/mastermind/help.md +0 -0
- package/.claude/commands/mastermind/idea.md +0 -0
- package/.claude/commands/mastermind/ideate.md +0 -0
- package/.claude/commands/mastermind/improve.md +0 -0
- package/.claude/commands/mastermind/loops.md +0 -0
- package/.claude/commands/mastermind/marketing.md +0 -0
- package/.claude/commands/mastermind/master.md +0 -0
- package/.claude/commands/mastermind/memory.md +0 -0
- package/.claude/commands/mastermind/okf-export.md +0 -0
- package/.claude/commands/mastermind/okf-import.md +0 -0
- package/.claude/commands/mastermind/ops.md +0 -0
- package/.claude/commands/mastermind/orgs.md +0 -0
- package/.claude/commands/mastermind/orgstatus.md +0 -0
- package/.claude/commands/mastermind/plan.md +0 -0
- package/.claude/commands/mastermind/receive-review.md +0 -0
- package/.claude/commands/mastermind/references/antigravity-tools.md +0 -0
- package/.claude/commands/mastermind/references/claude-code-tools.md +0 -0
- package/.claude/commands/mastermind/references/codex-tools.md +0 -0
- package/.claude/commands/mastermind/references/copilot-tools.md +0 -0
- package/.claude/commands/mastermind/references/gemini-tools.md +0 -0
- package/.claude/commands/mastermind/references/pi-tools.md +0 -0
- package/.claude/commands/mastermind/release.md +0 -0
- package/.claude/commands/mastermind/repeat.md +0 -0
- package/.claude/commands/mastermind/research.md +0 -0
- package/.claude/commands/mastermind/review.md +0 -0
- package/.claude/commands/mastermind/runorg.md +0 -0
- package/.claude/commands/mastermind/runorgv1.md +0 -0
- package/.claude/commands/mastermind/sales.md +0 -0
- package/.claude/commands/mastermind/skill-builder.md +0 -0
- package/.claude/commands/mastermind/specialagents.md +0 -0
- package/.claude/commands/mastermind/stoporg.md +0 -0
- package/.claude/commands/mastermind/swarm.md +0 -0
- package/.claude/commands/mastermind/taskdev.md +0 -0
- package/.claude/commands/mastermind/tdd.md +0 -0
- package/.claude/commands/mastermind/techport.md +0 -0
- package/.claude/commands/mastermind/topology.md +0 -0
- package/.claude/commands/mastermind/understand.md +0 -0
- package/.claude/commands/mastermind/verify.md +0 -0
- package/.claude/commands/mastermind/worktree.md +0 -0
- package/.claude/commands/mastermind.md +0 -0
- package/.claude/commands/memory/README.md +0 -0
- package/.claude/commands/memory/memory-search.md +0 -0
- package/.claude/commands/monitoring/README.md +0 -0
- package/.claude/commands/monitoring/agent-metrics.md +0 -0
- package/.claude/commands/monitoring/agents.md +0 -0
- package/.claude/commands/monitoring/status.md +0 -0
- package/.claude/commands/monobrowse.md +0 -0
- package/.claude/commands/monoes/README.md +0 -0
- package/.claude/commands/monoes/install.md +0 -0
- package/.claude/commands/monoes/monoagent.md +0 -0
- package/.claude/commands/monoes/monoclip.md +0 -0
- package/.claude/commands/monoes/monotask.md +0 -0
- package/.claude/commands/monograph/README.md +0 -0
- package/.claude/commands/monograph/monograph-build.md +0 -0
- package/.claude/commands/monograph/monograph-search.md +0 -0
- package/.claude/commands/monograph/monograph-stats.md +0 -0
- package/.claude/commands/monograph/monograph-watch.md +0 -0
- package/.claude/commands/monograph/monograph-wiki.md +0 -0
- package/.claude/commands/optimization/auto-topology.md +0 -0
- package/.claude/commands/optimization/performance-optimize.md +0 -0
- package/.claude/commands/pair/README.md +0 -0
- package/.claude/commands/pair/examples.md +0 -0
- package/.claude/commands/pair/modes.md +0 -0
- package/.claude/commands/pair/session.md +0 -0
- package/.claude/commands/stream-chain/pipeline.md +0 -0
- package/.claude/commands/stream-chain/run.md +0 -0
- package/.claude/commands/swarm/README.md +0 -0
- package/.claude/commands/swarm/analysis.md +0 -0
- package/.claude/commands/swarm/development.md +0 -0
- package/.claude/commands/swarm/examples.md +0 -0
- package/.claude/commands/swarm/maintenance.md +0 -0
- package/.claude/commands/swarm/optimization.md +0 -0
- package/.claude/commands/swarm/research.md +0 -0
- package/.claude/commands/swarm/swarm.md +0 -0
- package/.claude/commands/swarm/testing.md +0 -0
- package/.claude/commands/tokens.md +0 -0
- package/.claude/commands/truth/start.md +0 -0
- package/.claude/commands/ts.md +0 -0
- package/.claude/commands/workflows/README.md +0 -0
- package/.claude/commands/workflows/development.md +0 -0
- package/.claude/commands/workflows/research.md +0 -0
- package/.claude/commands/workflows/workflow-create.md +0 -0
- package/.claude/commands/workflows/workflow-execute.md +0 -0
- package/.claude/commands/workflows/workflow-export.md +0 -0
- package/.claude/helpers/control-start.cjs +0 -0
- package/.claude/helpers/control-stop.cjs +0 -0
- package/.claude/helpers/event-logger.cjs +0 -0
- package/.claude/helpers/extras-registry.json +0 -0
- package/.claude/helpers/graphify-freshen.cjs +0 -0
- package/.claude/helpers/handlers/adr-draft-handler.cjs +0 -0
- package/.claude/helpers/handlers/agent-start-handler.cjs +0 -0
- package/.claude/helpers/handlers/budget-status-handler.cjs +0 -0
- package/.claude/helpers/handlers/capture-handler.cjs +0 -0
- package/.claude/helpers/handlers/compact-handler.cjs +0 -0
- package/.claude/helpers/handlers/edit-handler.cjs +0 -0
- package/.claude/helpers/handlers/gates-handler.cjs +0 -0
- package/.claude/helpers/handlers/graph-status-handler.cjs +0 -0
- package/.claude/helpers/handlers/loops-status-handler.cjs +0 -0
- package/.claude/helpers/handlers/route-handler.cjs +0 -0
- package/.claude/helpers/handlers/session-handler.cjs +0 -0
- package/.claude/helpers/handlers/session-restore-handler.cjs +0 -0
- package/.claude/helpers/handlers/stats-handler.cjs +0 -0
- package/.claude/helpers/handlers/task-handler.cjs +0 -0
- package/.claude/helpers/intelligence.cjs +0 -0
- package/.claude/helpers/learning-service.mjs +0 -0
- package/.claude/helpers/loop-tracker.cjs +0 -0
- package/.claude/helpers/mastermind-activate.cjs +0 -0
- package/.claude/helpers/memory-palace.cjs +0 -0
- package/.claude/helpers/memory.cjs +0 -0
- package/.claude/helpers/metrics-db.mjs +0 -0
- package/.claude/helpers/monolean-activate.cjs +0 -0
- package/.claude/helpers/monolean-config.cjs +0 -0
- package/.claude/helpers/monolean-instructions.cjs +0 -0
- package/.claude/helpers/monolean-propagate.cjs +0 -0
- package/.claude/helpers/monolean-tracker.cjs +0 -0
- package/.claude/helpers/router.cjs +0 -0
- package/.claude/helpers/session.cjs +0 -0
- package/.claude/helpers/skill-registry.json +0 -0
- package/.claude/helpers/statusline.cjs +0 -0
- package/.claude/helpers/toggle-statusline.cjs +0 -0
- package/.claude/helpers/token-tracker.cjs +0 -0
- package/.claude/helpers/utils/agent-registrations.cjs +0 -0
- package/.claude/helpers/utils/fs-helpers.cjs +0 -0
- package/.claude/helpers/utils/micro-agents.cjs +0 -0
- package/.claude/helpers/utils/monograph.cjs +0 -0
- package/.claude/helpers/utils/system-pressure.cjs +0 -0
- package/.claude/helpers/utils/telemetry.cjs +0 -0
- package/.claude/settings.json +0 -0
- package/.claude/skills/agent-browser-testing/SKILL.md +0 -0
- package/.claude/skills/agentic-jujutsu/SKILL.md +0 -0
- package/.claude/skills/github-issue-triage/SKILL.md +0 -0
- package/.claude/skills/github-repo-recap/SKILL.md +0 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -0
- package/.claude/skills/hooks-automation/SKILL.md +0 -0
- package/.claude/skills/mastermind-access/SKILL.md +0 -0
- package/.claude/skills/mastermind-activity/SKILL.md +0 -0
- package/.claude/skills/mastermind-adapter-manager/SKILL.md +0 -0
- package/.claude/skills/mastermind-adapters/SKILL.md +0 -0
- package/.claude/skills/mastermind-agent-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-agent-select/SKILL.md +0 -0
- package/.claude/skills/mastermind-agents/SKILL.md +0 -0
- package/.claude/skills/mastermind-approval-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-approvev1/SKILL.md +0 -0
- package/.claude/skills/mastermind-architect/SKILL.md +0 -0
- package/.claude/skills/mastermind-autodev/SKILL.md +0 -0
- package/.claude/skills/mastermind-backup/SKILL.md +0 -0
- package/.claude/skills/mastermind-bootstrap/SKILL.md +0 -0
- package/.claude/skills/mastermind-budgets/SKILL.md +0 -0
- package/.claude/skills/mastermind-build/SKILL.md +0 -0
- package/.claude/skills/mastermind-companies/SKILL.md +0 -0
- package/.claude/skills/mastermind-content/SKILL.md +0 -0
- package/.claude/skills/mastermind-costs/SKILL.md +0 -0
- package/.claude/skills/mastermind-createorg/SKILL.md +0 -0
- package/.claude/skills/mastermind-debug/SKILL.md +0 -0
- package/.claude/skills/mastermind-delegation/SKILL.md +0 -0
- package/.claude/skills/mastermind-design/SKILL.md +0 -0
- package/.claude/skills/mastermind-diagnose/SKILL.md +0 -0
- package/.claude/skills/mastermind-env/SKILL.md +0 -0
- package/.claude/skills/mastermind-environments/SKILL.md +0 -0
- package/.claude/skills/mastermind-execute/SKILL.md +0 -0
- package/.claude/skills/mastermind-export/SKILL.md +0 -0
- package/.claude/skills/mastermind-finance/SKILL.md +0 -0
- package/.claude/skills/mastermind-finish/SKILL.md +0 -0
- package/.claude/skills/mastermind-goal-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-goals/SKILL.md +0 -0
- package/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -0
- package/.claude/skills/mastermind-idea/SKILL.md +0 -0
- package/.claude/skills/mastermind-import/SKILL.md +0 -0
- package/.claude/skills/mastermind-inbox/SKILL.md +0 -0
- package/.claude/skills/mastermind-instance/SKILL.md +0 -0
- package/.claude/skills/mastermind-instance-settings/SKILL.md +0 -0
- package/.claude/skills/mastermind-intake/SKILL.md +0 -0
- package/.claude/skills/mastermind-invite-landing/SKILL.md +0 -0
- package/.claude/skills/mastermind-invites/SKILL.md +0 -0
- package/.claude/skills/mastermind-issue-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-issues/SKILL.md +0 -0
- package/.claude/skills/mastermind-join-queue/SKILL.md +0 -0
- package/.claude/skills/mastermind-liveness/SKILL.md +0 -0
- package/.claude/skills/mastermind-marketing/SKILL.md +0 -0
- package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -0
- package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -0
- package/.claude/skills/mastermind-memory/SKILL.md +0 -0
- package/.claude/skills/mastermind-monitor/SKILL.md +0 -0
- package/.claude/skills/mastermind-monotask/SKILL.md +0 -0
- package/.claude/skills/mastermind-my-issues/SKILL.md +0 -0
- package/.claude/skills/mastermind-new-agent/SKILL.md +0 -0
- package/.claude/skills/mastermind-ops/SKILL.md +0 -0
- package/.claude/skills/mastermind-org-chart/SKILL.md +0 -0
- package/.claude/skills/mastermind-org-settings/SKILL.md +0 -0
- package/.claude/skills/mastermind-orgs/SKILL.md +0 -0
- package/.claude/skills/mastermind-orgstatus/SKILL.md +0 -0
- package/.claude/skills/mastermind-plan/SKILL.md +0 -0
- package/.claude/skills/mastermind-plan-to-tasks/SKILL.md +0 -0
- package/.claude/skills/mastermind-plugin-manager/SKILL.md +0 -0
- package/.claude/skills/mastermind-plugin-settings/SKILL.md +0 -0
- package/.claude/skills/mastermind-plugins/SKILL.md +0 -0
- package/.claude/skills/mastermind-profile/SKILL.md +0 -0
- package/.claude/skills/mastermind-project-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-project-workspace/SKILL.md +0 -0
- package/.claude/skills/mastermind-projects/SKILL.md +0 -0
- package/.claude/skills/mastermind-protocol/SKILL.md +0 -0
- package/.claude/skills/mastermind-receive-review/SKILL.md +0 -0
- package/.claude/skills/mastermind-release/SKILL.md +0 -0
- package/.claude/skills/mastermind-repeat/SKILL.md +0 -0
- package/.claude/skills/mastermind-research/SKILL.md +0 -0
- package/.claude/skills/mastermind-review/SKILL.md +0 -0
- package/.claude/skills/mastermind-routine-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-routines/SKILL.md +0 -0
- package/.claude/skills/mastermind-runorg/SKILL.md +0 -0
- package/.claude/skills/mastermind-runorgv1/SKILL.md +0 -0
- package/.claude/skills/mastermind-sales/SKILL.md +0 -0
- package/.claude/skills/mastermind-search/SKILL.md +0 -0
- package/.claude/skills/mastermind-secrets/SKILL.md +0 -0
- package/.claude/skills/mastermind-skill-builder/SKILL.md +0 -0
- package/.claude/skills/mastermind-skills/SKILL.md +0 -0
- package/.claude/skills/mastermind-stoporg/SKILL.md +0 -0
- package/.claude/skills/mastermind-taskdev/SKILL.md +0 -0
- package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -0
- package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -0
- package/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -0
- package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -0
- package/.claude/skills/mastermind-tasks/SKILL.md +0 -0
- package/.claude/skills/mastermind-tdd/SKILL.md +0 -0
- package/.claude/skills/mastermind-techport/SKILL.md +0 -0
- package/.claude/skills/mastermind-threads/SKILL.md +0 -0
- package/.claude/skills/mastermind-tree-control/SKILL.md +0 -0
- package/.claude/skills/mastermind-verify/SKILL.md +0 -0
- package/.claude/skills/mastermind-wiki/SKILL.md +0 -0
- package/.claude/skills/mastermind-workspace-detail/SKILL.md +0 -0
- package/.claude/skills/mastermind-workspaces/SKILL.md +0 -0
- package/.claude/skills/mastermind-worktree/SKILL.md +0 -0
- package/.claude/skills/monodesign/SKILL.md +0 -0
- package/.claude/skills/monodesign/adapt.md +0 -0
- package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +0 -0
- package/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +0 -0
- package/.claude/skills/monodesign/animate.md +0 -0
- package/.claude/skills/monodesign/audit.md +0 -0
- package/.claude/skills/monodesign/bolder.md +0 -0
- package/.claude/skills/monodesign/clarify.md +0 -0
- package/.claude/skills/monodesign/colorize.md +0 -0
- package/.claude/skills/monodesign/craft.md +0 -0
- package/.claude/skills/monodesign/critique.md +0 -0
- package/.claude/skills/monodesign/delight.md +0 -0
- package/.claude/skills/monodesign/distill.md +0 -0
- package/.claude/skills/monodesign/document.md +0 -0
- package/.claude/skills/monodesign/extract.md +0 -0
- package/.claude/skills/monodesign/harden.md +0 -0
- package/.claude/skills/monodesign/init.md +0 -0
- package/.claude/skills/monodesign/layout.md +0 -0
- package/.claude/skills/monodesign/live.md +0 -0
- package/.claude/skills/monodesign/onboard.md +0 -0
- package/.claude/skills/monodesign/optimize.md +0 -0
- package/.claude/skills/monodesign/overdrive.md +0 -0
- package/.claude/skills/monodesign/polish.md +0 -0
- package/.claude/skills/monodesign/quieter.md +0 -0
- package/.claude/skills/monodesign/reference/adapt.md +0 -0
- package/.claude/skills/monodesign/reference/adapt.native.md +0 -0
- package/.claude/skills/monodesign/reference/android.md +0 -0
- package/.claude/skills/monodesign/reference/animate.md +0 -0
- package/.claude/skills/monodesign/reference/antipatterns-catalog.md +0 -0
- package/.claude/skills/monodesign/reference/audit.md +0 -0
- package/.claude/skills/monodesign/reference/audit.native.md +0 -0
- package/.claude/skills/monodesign/reference/bolder.md +0 -0
- package/.claude/skills/monodesign/reference/brand-workflow.md +0 -0
- package/.claude/skills/monodesign/reference/brand.md +0 -0
- package/.claude/skills/monodesign/reference/clarify.md +0 -0
- package/.claude/skills/monodesign/reference/codex.md +0 -0
- package/.claude/skills/monodesign/reference/cognitive-load.md +0 -0
- package/.claude/skills/monodesign/reference/color-and-contrast.md +0 -0
- package/.claude/skills/monodesign/reference/colorize.md +0 -0
- package/.claude/skills/monodesign/reference/component-specs.md +0 -0
- package/.claude/skills/monodesign/reference/component-states.md +0 -0
- package/.claude/skills/monodesign/reference/component-system.md +0 -0
- package/.claude/skills/monodesign/reference/copy-formulas.md +0 -0
- package/.claude/skills/monodesign/reference/craft.md +0 -0
- package/.claude/skills/monodesign/reference/critique.md +0 -0
- package/.claude/skills/monodesign/reference/delight.md +0 -0
- package/.claude/skills/monodesign/reference/design-principles.md +0 -0
- package/.claude/skills/monodesign/reference/distill.md +0 -0
- package/.claude/skills/monodesign/reference/document.md +0 -0
- package/.claude/skills/monodesign/reference/extract.md +0 -0
- package/.claude/skills/monodesign/reference/harden.md +0 -0
- package/.claude/skills/monodesign/reference/heuristics-scoring.md +0 -0
- package/.claude/skills/monodesign/reference/hooks.md +0 -0
- package/.claude/skills/monodesign/reference/image-prompts.md +0 -0
- package/.claude/skills/monodesign/reference/init.md +0 -0
- package/.claude/skills/monodesign/reference/interaction-design.md +0 -0
- package/.claude/skills/monodesign/reference/ios.md +0 -0
- package/.claude/skills/monodesign/reference/layout.md +0 -0
- package/.claude/skills/monodesign/reference/live.md +0 -0
- package/.claude/skills/monodesign/reference/motion-design.md +0 -0
- package/.claude/skills/monodesign/reference/onboard.md +0 -0
- package/.claude/skills/monodesign/reference/optimize.md +0 -0
- package/.claude/skills/monodesign/reference/overdrive.md +0 -0
- package/.claude/skills/monodesign/reference/personas.md +0 -0
- package/.claude/skills/monodesign/reference/polish.md +0 -0
- package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +0 -0
- package/.claude/skills/monodesign/reference/product.md +0 -0
- package/.claude/skills/monodesign/reference/quieter.md +0 -0
- package/.claude/skills/monodesign/reference/responsive-design.md +0 -0
- package/.claude/skills/monodesign/reference/shape.md +0 -0
- package/.claude/skills/monodesign/reference/spatial-design.md +0 -0
- package/.claude/skills/monodesign/reference/teach.md +0 -0
- package/.claude/skills/monodesign/reference/token-architecture.md +0 -0
- package/.claude/skills/monodesign/reference/typeset.md +0 -0
- package/.claude/skills/monodesign/reference/typography.md +0 -0
- package/.claude/skills/monodesign/reference/ux-research.md +0 -0
- package/.claude/skills/monodesign/reference/ux-rules.md +0 -0
- package/.claude/skills/monodesign/reference/ux-writing.md +0 -0
- package/.claude/skills/monodesign/scripts/command-metadata.json +0 -0
- package/.claude/skills/monodesign/scripts/context-signals.mjs +0 -0
- package/.claude/skills/monodesign/scripts/context.mjs +0 -0
- package/.claude/skills/monodesign/scripts/critique-storage.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detect-csp.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detect.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/cli/main.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/design-system.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +0 -0
- package/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/findings.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/fix/css-regions.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/fix/fixers.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/fix/index.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/shared/color.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +0 -0
- package/.claude/skills/monodesign/scripts/detector/shared/page.mjs +0 -0
- package/.claude/skills/monodesign/scripts/hook-admin.mjs +0 -0
- package/.claude/skills/monodesign/scripts/hook-before-edit.mjs +0 -0
- package/.claude/skills/monodesign/scripts/hook-lib.mjs +0 -0
- package/.claude/skills/monodesign/scripts/hook.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/design-parser.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/is-generated.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/provider.mjs +0 -0
- package/.claude/skills/monodesign/scripts/lib/target-args.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/completion.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/event-validation.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/insert-ui.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/manual-apply.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/session-store.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/svelte-component.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/ui-core.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live/vocabulary.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-accept.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-browser-dom.js +0 -0
- package/.claude/skills/monodesign/scripts/live-browser-session.js +0 -0
- package/.claude/skills/monodesign/scripts/live-browser.js +0 -0
- package/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-complete.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-inject.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-insert.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-poll.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-resume.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-server.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-status.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-target.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live-wrap.mjs +0 -0
- package/.claude/skills/monodesign/scripts/live.mjs +0 -0
- package/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +0 -0
- package/.claude/skills/monodesign/scripts/palette.mjs +0 -0
- package/.claude/skills/monodesign/scripts/pin.mjs +0 -0
- package/.claude/skills/monodesign/shape.md +0 -0
- package/.claude/skills/monodesign/teach.md +0 -0
- package/.claude/skills/monodesign/typeset.md +0 -0
- package/.claude/skills/monolean/SKILL.md +0 -0
- package/.claude/skills/monolean-audit/SKILL.md +0 -0
- package/.claude/skills/monolean-debt/SKILL.md +0 -0
- package/.claude/skills/monolean-help/SKILL.md +0 -0
- package/.claude/skills/monolean-review/SKILL.md +0 -0
- package/.claude/skills/monomind/browse-agentcore.md +0 -0
- package/.claude/skills/monomind/browse-electron.md +0 -0
- package/.claude/skills/monomind/browse-qa.md +0 -0
- package/.claude/skills/monomind/browse-references/authentication.md +0 -0
- package/.claude/skills/monomind/browse-references/trust-boundaries.md +0 -0
- package/.claude/skills/monomind/browse-references/video-recording.md +0 -0
- package/.claude/skills/monomind/browse-slack.md +0 -0
- package/.claude/skills/monomind/browse-vercel.md +0 -0
- package/.claude/skills/monomind/browse.md +0 -0
- package/.claude/skills/monomotion/SKILL.md +0 -0
- package/.claude/skills/monomotion/rules/api-control.md +0 -0
- package/.claude/skills/monomotion/rules/effects.md +0 -0
- package/.claude/skills/monomotion/rules/integration.md +0 -0
- package/.claude/skills/monomotion/rules/scroll.md +0 -0
- package/.claude/skills/monomotion/rules/sequencing.md +0 -0
- package/.claude/skills/monomotion/rules/svg.md +0 -0
- package/.claude/skills/monomotion/rules/text.md +0 -0
- package/.claude/skills/pair-programming/SKILL.md +0 -0
- package/.claude/skills/performance-analysis/SKILL.md +0 -0
- package/.claude/skills/skill-builder/SKILL.md +0 -0
- package/.claude/skills/specialagent/SKILL.md +0 -0
- package/.claude/skills/stop-slop/SKILL.md +0 -0
- package/.claude/skills/stop-slop/references/examples.md +0 -0
- package/.claude/skills/stop-slop/references/phrases.md +0 -0
- package/.claude/skills/stop-slop/references/structures.md +0 -0
- package/.claude/skills/swarm-advanced/SKILL.md +0 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -0
- package/.claude/skills/verification-quality/SKILL.md +0 -0
- package/README.md +0 -0
- package/bin/cli.js +17 -1
- package/bin/preinstall.cjs +0 -0
- package/dist/src/commands/doctor-project-checks.d.ts +3 -0
- package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.js +81 -8
- 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 +16 -2
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/memory-crud.d.ts.map +1 -1
- package/dist/src/commands/memory-crud.js +15 -5
- package/dist/src/commands/memory-crud.js.map +1 -1
- package/dist/src/commands/security-misc.d.ts.map +1 -1
- package/dist/src/commands/security-misc.js +7 -2
- package/dist/src/commands/security-misc.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +5 -0
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +0 -2
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +1 -1
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.d.ts +2 -0
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +11 -1
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.js +17 -17
- package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +2 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +14 -2
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +0 -1
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +0 -1
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.js +1 -2
- package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +1 -1
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +2 -2
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.d.ts +2 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +11 -1
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/ui/dashboard.html +48 -133
- package/dist/src/utils/cosine-similarity.d.ts +2 -2
- package/dist/src/utils/cosine-similarity.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/scripts/deploy-ipfs-node.sh +0 -0
- package/scripts/setup-ipfs-registry.md +0 -0
- package/scripts/understand-analyze.mjs +0 -0
- package/.claude/skills/github-toolkit/SKILL.md +0 -60
- package/.claude/skills/memory-toolkit/SKILL.md +0 -75
- package/dist/src/mcp-tools/coherence/causal-infer.d.ts +0 -15
- package/dist/src/mcp-tools/coherence/causal-infer.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/causal-infer.js +0 -333
- package/dist/src/mcp-tools/coherence/causal-infer.js.map +0 -1
- package/dist/src/mcp-tools/coherence/coherence-check.d.ts +0 -15
- package/dist/src/mcp-tools/coherence/coherence-check.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/coherence-check.js +0 -188
- package/dist/src/mcp-tools/coherence/coherence-check.js.map +0 -1
- package/dist/src/mcp-tools/coherence/consensus-verify.d.ts +0 -14
- package/dist/src/mcp-tools/coherence/consensus-verify.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/consensus-verify.js +0 -305
- package/dist/src/mcp-tools/coherence/consensus-verify.js.map +0 -1
- package/dist/src/mcp-tools/coherence/memory-gate.d.ts +0 -16
- package/dist/src/mcp-tools/coherence/memory-gate.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/memory-gate.js +0 -279
- package/dist/src/mcp-tools/coherence/memory-gate.js.map +0 -1
- package/dist/src/mcp-tools/coherence/quantum-topology.d.ts +0 -15
- package/dist/src/mcp-tools/coherence/quantum-topology.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/quantum-topology.js +0 -400
- package/dist/src/mcp-tools/coherence/quantum-topology.js.map +0 -1
- package/dist/src/mcp-tools/coherence/spectral-analyze.d.ts +0 -14
- package/dist/src/mcp-tools/coherence/spectral-analyze.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/spectral-analyze.js +0 -312
- package/dist/src/mcp-tools/coherence/spectral-analyze.js.map +0 -1
- package/dist/src/mcp-tools/coherence/types.d.ts +0 -430
- package/dist/src/mcp-tools/coherence/types.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence/types.js +0 -144
- package/dist/src/mcp-tools/coherence/types.js.map +0 -1
- package/dist/src/mcp-tools/coherence-tools.d.ts +0 -9
- package/dist/src/mcp-tools/coherence-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/coherence-tools.js +0 -25
- package/dist/src/mcp-tools/coherence-tools.js.map +0 -1
- package/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/dist/src/mcp-tools/daa-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/daa-tools.js +0 -553
- package/dist/src/mcp-tools/daa-tools.js.map +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Gate Tool - pr_memory_gate
|
|
3
|
-
*
|
|
4
|
-
* Pre-storage coherence gate for memory entries.
|
|
5
|
-
* Validates that new entries are coherent with existing context before storage.
|
|
6
|
-
* Uses cosine similarity on vectors to compute coherence energy.
|
|
7
|
-
* When no pre-computed embeddings are supplied, falls back to a deterministic
|
|
8
|
-
* hash-based vector (structural proxy, not semantic similarity).
|
|
9
|
-
*/
|
|
10
|
-
import { MemoryGateInputSchema, successResult, errorResult, cosineSimilarity, } from './types.js';
|
|
11
|
-
// Default logger
|
|
12
|
-
const defaultLogger = {
|
|
13
|
-
debug: (msg, meta) => console.debug(`[pr_memory_gate] ${msg}`, meta),
|
|
14
|
-
info: (msg, meta) => console.info(`[pr_memory_gate] ${msg}`, meta),
|
|
15
|
-
warn: (msg, meta) => console.warn(`[pr_memory_gate] ${msg}`, meta),
|
|
16
|
-
error: (msg, meta) => console.error(`[pr_memory_gate] ${msg}`, meta),
|
|
17
|
-
};
|
|
18
|
-
// ============================================================================
|
|
19
|
-
// Memory Gate Functions
|
|
20
|
-
// ============================================================================
|
|
21
|
-
/**
|
|
22
|
-
* Deterministic hash-based vector from value content.
|
|
23
|
-
* This is NOT a semantic embedding -- it produces a normalized vector
|
|
24
|
-
* derived from character codes via an LCG, so only identical (or
|
|
25
|
-
* near-identical) strings will be "similar". It serves as a
|
|
26
|
-
* structural-consistency proxy when no real embedding model is available.
|
|
27
|
-
*
|
|
28
|
-
* For real semantic similarity, use the generateEmbedding() from
|
|
29
|
-
* neural-tools.ts which tries ONNX first and falls back to a
|
|
30
|
-
* deterministic hash.
|
|
31
|
-
*/
|
|
32
|
-
function hashVector(value) {
|
|
33
|
-
const str = typeof value === 'string' ? value : JSON.stringify(value);
|
|
34
|
-
// Seed from string content
|
|
35
|
-
let seed = 0;
|
|
36
|
-
for (let i = 0; i < str.length; i++) {
|
|
37
|
-
seed = ((seed * 1103515245 + 12345) & 0x7fffffff) ^ (str.charCodeAt(i) * (i + 1));
|
|
38
|
-
}
|
|
39
|
-
// Generate deterministic vector via LCG
|
|
40
|
-
const dims = 64;
|
|
41
|
-
const vec = new Array(dims);
|
|
42
|
-
for (let i = 0; i < dims; i++) {
|
|
43
|
-
seed = (seed * 1103515245 + 12345) & 0x7fffffff;
|
|
44
|
-
vec[i] = (seed / 0x7fffffff) * 2 - 1;
|
|
45
|
-
}
|
|
46
|
-
// Normalize
|
|
47
|
-
let norm = 0;
|
|
48
|
-
for (let i = 0; i < dims; i++) {
|
|
49
|
-
norm += vec[i] * vec[i];
|
|
50
|
-
}
|
|
51
|
-
norm = Math.sqrt(norm);
|
|
52
|
-
if (norm > 0) {
|
|
53
|
-
for (let i = 0; i < dims; i++) {
|
|
54
|
-
vec[i] /= norm;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return vec;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Compute coherence energy using Sheaf Laplacian
|
|
61
|
-
*/
|
|
62
|
-
function computeCoherenceEnergy(newEmbedding, existingEmbeddings) {
|
|
63
|
-
if (existingEmbeddings.length === 0)
|
|
64
|
-
return 0;
|
|
65
|
-
let totalDisagreement = 0;
|
|
66
|
-
for (const existing of existingEmbeddings) {
|
|
67
|
-
const similarity = cosineSimilarity(newEmbedding, existing);
|
|
68
|
-
const disagreement = 1 - Math.max(0, similarity);
|
|
69
|
-
totalDisagreement += disagreement;
|
|
70
|
-
}
|
|
71
|
-
return totalDisagreement / existingEmbeddings.length;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Detect specific violations
|
|
75
|
-
*/
|
|
76
|
-
function detectViolations(newEmbedding, existingEmbeddings, warnThreshold) {
|
|
77
|
-
const violations = [];
|
|
78
|
-
for (let i = 0; i < existingEmbeddings.length; i++) {
|
|
79
|
-
const similarity = cosineSimilarity(newEmbedding, existingEmbeddings[i]);
|
|
80
|
-
if (similarity < -0.3) {
|
|
81
|
-
violations.push(`Strong contradiction with context entry ${i} (similarity: ${similarity.toFixed(3)})`);
|
|
82
|
-
}
|
|
83
|
-
else if (similarity < warnThreshold) {
|
|
84
|
-
violations.push(`Weak coherence with context entry ${i} (similarity: ${similarity.toFixed(3)})`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return violations;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Determine action based on coherence energy
|
|
91
|
-
*/
|
|
92
|
-
function determineAction(energy, thresholds) {
|
|
93
|
-
if (energy >= thresholds.reject) {
|
|
94
|
-
return 'reject';
|
|
95
|
-
}
|
|
96
|
-
if (energy >= thresholds.warn) {
|
|
97
|
-
return 'warn';
|
|
98
|
-
}
|
|
99
|
-
return 'allow';
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Get interpretation of memory gate result
|
|
103
|
-
*/
|
|
104
|
-
function getInterpretation(action, energy, violations) {
|
|
105
|
-
switch (action) {
|
|
106
|
-
case 'allow':
|
|
107
|
-
return 'Entry is coherent with existing context - storage allowed';
|
|
108
|
-
case 'warn':
|
|
109
|
-
return `Entry has minor inconsistencies (energy: ${energy.toFixed(3)}) - storage allowed with warning`;
|
|
110
|
-
case 'reject':
|
|
111
|
-
return `Entry contradicts existing context (energy: ${energy.toFixed(3)}) - storage blocked. ${violations.length} violation(s) detected.`;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Handler for pr_memory_gate tool
|
|
116
|
-
*/
|
|
117
|
-
async function handler(input, context) {
|
|
118
|
-
const logger = context?.logger ?? defaultLogger;
|
|
119
|
-
const startTime = performance.now();
|
|
120
|
-
try {
|
|
121
|
-
// Validate input
|
|
122
|
-
const validationResult = MemoryGateInputSchema.safeParse(input);
|
|
123
|
-
if (!validationResult.success) {
|
|
124
|
-
logger.error('Input validation failed', { error: validationResult.error.message });
|
|
125
|
-
return errorResult(`Invalid input: ${validationResult.error.message}`);
|
|
126
|
-
}
|
|
127
|
-
const { key, value, existingVectors, thresholds } = validationResult.data;
|
|
128
|
-
// Get thresholds from config or input
|
|
129
|
-
const warnThreshold = thresholds?.warn ?? context?.config?.coherence?.warnThreshold ?? 0.3;
|
|
130
|
-
const rejectThreshold = thresholds?.reject ?? context?.config?.coherence?.rejectThreshold ?? 0.7;
|
|
131
|
-
logger.debug('Processing memory gate check', {
|
|
132
|
-
key,
|
|
133
|
-
hasExistingContext: !!existingVectors?.length,
|
|
134
|
-
contextSize: existingVectors?.length ?? 0,
|
|
135
|
-
warnThreshold,
|
|
136
|
-
rejectThreshold,
|
|
137
|
-
});
|
|
138
|
-
// Generate hash-based vector for the new value (not a semantic embedding --
|
|
139
|
-
// only detects near-identical content, not semantic similarity)
|
|
140
|
-
const newEmbedding = hashVector(value);
|
|
141
|
-
// If no existing context, always allow
|
|
142
|
-
if (!existingVectors || existingVectors.length === 0) {
|
|
143
|
-
const output = {
|
|
144
|
-
allowed: true,
|
|
145
|
-
coherenceEnergy: 0,
|
|
146
|
-
details: {
|
|
147
|
-
action: 'allow',
|
|
148
|
-
violations: [],
|
|
149
|
-
confidence: 1,
|
|
150
|
-
interpretation: 'No existing context - entry allowed',
|
|
151
|
-
contextSize: 0,
|
|
152
|
-
},
|
|
153
|
-
};
|
|
154
|
-
const duration = performance.now() - startTime;
|
|
155
|
-
logger.info('Memory gate check completed (no context)', {
|
|
156
|
-
key,
|
|
157
|
-
allowed: true,
|
|
158
|
-
durationMs: duration.toFixed(2),
|
|
159
|
-
});
|
|
160
|
-
return successResult(output);
|
|
161
|
-
}
|
|
162
|
-
// Validate embedding dimensions match
|
|
163
|
-
const firstDim = existingVectors[0].length;
|
|
164
|
-
for (let i = 1; i < existingVectors.length; i++) {
|
|
165
|
-
if (existingVectors[i].length !== firstDim) {
|
|
166
|
-
return errorResult(`Context embedding dimension mismatch: entry ${i} has ${existingVectors[i].length} dimensions, expected ${firstDim}`);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
let coherenceEnergy;
|
|
170
|
-
let violations;
|
|
171
|
-
// Try to use WASM bridge if available
|
|
172
|
-
if (context?.bridge?.initialized) {
|
|
173
|
-
try {
|
|
174
|
-
logger.debug('Using WASM bridge for coherence check');
|
|
175
|
-
const allEmbeddings = [
|
|
176
|
-
new Float32Array(newEmbedding),
|
|
177
|
-
...existingVectors.map(v => new Float32Array(v)),
|
|
178
|
-
];
|
|
179
|
-
const result = await context.bridge.checkCoherence(allEmbeddings);
|
|
180
|
-
coherenceEnergy = result.energy;
|
|
181
|
-
violations = result.violations;
|
|
182
|
-
}
|
|
183
|
-
catch (wasmError) {
|
|
184
|
-
logger.warn('WASM bridge failed, falling back to JS implementation', {
|
|
185
|
-
error: wasmError instanceof Error ? wasmError.message : String(wasmError),
|
|
186
|
-
});
|
|
187
|
-
coherenceEnergy = computeCoherenceEnergy(newEmbedding, existingVectors);
|
|
188
|
-
violations = detectViolations(newEmbedding, existingVectors, warnThreshold);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
// Pure JavaScript fallback
|
|
193
|
-
logger.debug('Using JavaScript fallback for memory gate');
|
|
194
|
-
coherenceEnergy = computeCoherenceEnergy(newEmbedding, existingVectors);
|
|
195
|
-
violations = detectViolations(newEmbedding, existingVectors, warnThreshold);
|
|
196
|
-
}
|
|
197
|
-
const action = determineAction(coherenceEnergy, { warn: warnThreshold, reject: rejectThreshold });
|
|
198
|
-
const allowed = action !== 'reject';
|
|
199
|
-
const confidence = 1 - coherenceEnergy;
|
|
200
|
-
const output = {
|
|
201
|
-
allowed,
|
|
202
|
-
coherenceEnergy,
|
|
203
|
-
reason: !allowed ? `Coherence energy ${coherenceEnergy.toFixed(3)} exceeds reject threshold ${rejectThreshold}` : undefined,
|
|
204
|
-
details: {
|
|
205
|
-
action,
|
|
206
|
-
violations,
|
|
207
|
-
confidence,
|
|
208
|
-
interpretation: getInterpretation(action, coherenceEnergy, violations),
|
|
209
|
-
contextSize: existingVectors.length,
|
|
210
|
-
},
|
|
211
|
-
};
|
|
212
|
-
const duration = performance.now() - startTime;
|
|
213
|
-
logger.info('Memory gate check completed', {
|
|
214
|
-
key,
|
|
215
|
-
allowed,
|
|
216
|
-
action,
|
|
217
|
-
coherenceEnergy: coherenceEnergy.toFixed(4),
|
|
218
|
-
violations: violations.length,
|
|
219
|
-
durationMs: duration.toFixed(2),
|
|
220
|
-
});
|
|
221
|
-
return successResult(output);
|
|
222
|
-
}
|
|
223
|
-
catch (error) {
|
|
224
|
-
const duration = performance.now() - startTime;
|
|
225
|
-
logger.error('Memory gate check failed', {
|
|
226
|
-
error: error instanceof Error ? error.message : String(error),
|
|
227
|
-
durationMs: duration.toFixed(2),
|
|
228
|
-
});
|
|
229
|
-
return errorResult(error instanceof Error ? error : new Error(String(error)));
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* pr_memory_gate MCP Tool Definition
|
|
234
|
-
*/
|
|
235
|
-
export const memoryGateTool = {
|
|
236
|
-
name: 'pr_memory_gate',
|
|
237
|
-
description: 'Pre-storage coherence gate for memory entries. Validates new entries against existing context vectors using cosine-similarity energy. When no pre-computed embeddings are supplied, uses a deterministic hash-based vector (structural proxy, not semantic). Blocks contradictory entries to maintain memory coherence.',
|
|
238
|
-
category: 'memory',
|
|
239
|
-
version: '0.1.3',
|
|
240
|
-
tags: ['memory', 'coherence', 'gate', 'validation', 'ai-interpretability'],
|
|
241
|
-
cacheable: false, // Context changes frequently
|
|
242
|
-
inputSchema: {
|
|
243
|
-
type: 'object',
|
|
244
|
-
properties: {
|
|
245
|
-
key: {
|
|
246
|
-
type: 'string',
|
|
247
|
-
description: 'Memory entry key',
|
|
248
|
-
},
|
|
249
|
-
value: {
|
|
250
|
-
description: 'Value to be stored (any JSON-serializable type)',
|
|
251
|
-
},
|
|
252
|
-
existingVectors: {
|
|
253
|
-
type: 'array',
|
|
254
|
-
items: { type: 'array', items: { type: 'number' } },
|
|
255
|
-
description: 'Existing context embeddings to check against',
|
|
256
|
-
},
|
|
257
|
-
thresholds: {
|
|
258
|
-
type: 'object',
|
|
259
|
-
properties: {
|
|
260
|
-
warn: {
|
|
261
|
-
type: 'number',
|
|
262
|
-
default: 0.3,
|
|
263
|
-
description: 'Energy threshold for warnings (0-1)',
|
|
264
|
-
},
|
|
265
|
-
reject: {
|
|
266
|
-
type: 'number',
|
|
267
|
-
default: 0.7,
|
|
268
|
-
description: 'Energy threshold for rejection (0-1)',
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
description: 'Custom coherence thresholds',
|
|
272
|
-
},
|
|
273
|
-
},
|
|
274
|
-
required: ['key', 'value'],
|
|
275
|
-
},
|
|
276
|
-
handler,
|
|
277
|
-
};
|
|
278
|
-
export default memoryGateTool;
|
|
279
|
-
//# sourceMappingURL=memory-gate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-gate.js","sourceRoot":"","sources":["../../../../src/mcp-tools/coherence/memory-gate.ts"],"names":[],"mappings":"AAAA;;;;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features including Betti numbers (b0, b1) and
|
|
5
|
-
* persistence diagrams via Vietoris-Rips filtration.
|
|
6
|
-
* Analyzes topological features of point clouds and simplicial complexes.
|
|
7
|
-
* b2 (voids) is not computed -- requires boundary-operator linear algebra.
|
|
8
|
-
*/
|
|
9
|
-
import type { MCPTool } from './types.js';
|
|
10
|
-
/**
|
|
11
|
-
* pr_quantum_topology MCP Tool Definition
|
|
12
|
-
*/
|
|
13
|
-
export declare const quantumTopologyTool: MCPTool;
|
|
14
|
-
export default quantumTopologyTool;
|
|
15
|
-
//# sourceMappingURL=quantum-topology.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quantum-topology.d.ts","sourceRoot":"","sources":["../../../../src/mcp-tools/coherence/quantum-topology.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,OAAO,EAKR,MAAM,YAAY,CAAC;AAgapB;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OA2CjC,CAAC;eAEa,mBAAmB"}
|