moflo 4.8.31 → 4.8.32
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/bin/generate-code-map.mjs +1 -1
- package/bin/index-guidance.mjs +1 -1
- package/bin/index-tests.mjs +1 -1
- package/bin/setup-project.mjs +1 -1
- package/package.json +6 -7
- package/src/@claude-flow/cli/package.json +106 -106
- package/.claude/agents/browser/browser-agent.yaml +0 -182
- package/.claude/agents/database-specialist.yaml +0 -21
- package/.claude/agents/index.yaml +0 -17
- package/.claude/agents/project-coordinator.yaml +0 -15
- package/.claude/agents/python-specialist.yaml +0 -21
- package/.claude/agents/security-auditor.yaml +0 -20
- package/.claude/agents/typescript-specialist.yaml +0 -21
- package/.claude/checkpoints/1767754460.json +0 -8
- package/.claude/config/v3-dependency-optimization.json +0 -266
- package/.claude/config/v3-performance-targets.json +0 -251
- package/.claude/guidance/moflo-bootstrap.md +0 -129
- package/.claude/mcp.json +0 -13
- package/.claude/settings.json +0 -351
- package/.claude/settings.local.json +0 -18
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/browser/SKILL.md +0 -204
- package/.claude/skills/fl/SKILL.md +0 -583
- package/.claude/skills/flo/SKILL.md +0 -583
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/skills/worker-benchmarks/skill.md +0 -135
- package/.claude/skills/worker-integration/skill.md +0 -154
- package/.claude/workflow-state.json +0 -9
- package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
- package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
- package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
- package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
- package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
- package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
- package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
- package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
- package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
- package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
- package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
- package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
- package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
- package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
- package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
- package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
- package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
- package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
- package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
- package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
- package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
- package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
- package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
- package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
- package/src/@claude-flow/cli/dist/src/services/daemon-lock.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
- package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
- package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
- package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
- package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
- package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
- package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
- package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
- package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
- package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
- package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
- package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
- package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
- package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
- package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
- package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
- package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
- package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
- package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
- package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
- package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
- package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
- package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
- package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
- package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
- package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
- package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
- package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
- package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
- package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
- package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
- package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
- package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
- package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
- package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
- package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
- package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
- package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
- package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
- package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
- package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
- package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
- package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
- package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
- package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
- package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
- package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
- package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
- package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
- package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
- package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
- package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
- package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
- package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
- package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
- package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
- package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
- package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
- package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
- package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
- package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
- package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/index.d.ts +0 -204
- package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
- package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
- package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
- package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
- package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
- package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
- package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
- package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
- package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
- package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
- package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
- package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
- package/src/@claude-flow/memory/dist/types.d.ts +0 -484
- package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
- package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
- package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
- package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
- package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
- package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
- package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
- package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
- package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
- package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
- package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
- package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
- package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
- package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/src/@claude-flow/shared/dist/events.d.ts +0 -80
- package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
- package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
- package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
- package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
- package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
- package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
- package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/index.d.ts +0 -20
- package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
- package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
- package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
- package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
- package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
- package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
- package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
- package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
- package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
- package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
- package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
- package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
- package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
- package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
- package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
- package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
- package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
- package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
- package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
- package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
- package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
- package/src/@claude-flow/shared/dist/types.d.ts +0 -197
- package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 AgentDB Adapter
|
|
3
|
-
*
|
|
4
|
-
* Unified memory backend implementation using AgentDB with HNSW indexing
|
|
5
|
-
* for 150x-12,500x faster vector search. Implements IMemoryBackend interface.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/memory/agentdb-adapter
|
|
8
|
-
*/
|
|
9
|
-
import { EventEmitter } from 'node:events';
|
|
10
|
-
import { IMemoryBackend, MemoryEntry, MemoryEntryInput, MemoryEntryUpdate, MemoryQuery, SearchOptions, SearchResult, BackendStats, HealthCheckResult, EmbeddingGenerator } from './types.js';
|
|
11
|
-
/**
|
|
12
|
-
* Configuration for AgentDB Adapter
|
|
13
|
-
*/
|
|
14
|
-
export interface AgentDBAdapterConfig {
|
|
15
|
-
/** Vector dimensions for embeddings (default: 1536 for OpenAI) */
|
|
16
|
-
dimensions: number;
|
|
17
|
-
/** Maximum number of entries */
|
|
18
|
-
maxEntries: number;
|
|
19
|
-
/** Enable caching */
|
|
20
|
-
cacheEnabled: boolean;
|
|
21
|
-
/** Maximum cache size */
|
|
22
|
-
cacheSize: number;
|
|
23
|
-
/** Cache TTL in milliseconds */
|
|
24
|
-
cacheTtl: number;
|
|
25
|
-
/** HNSW M parameter (max connections per layer) */
|
|
26
|
-
hnswM: number;
|
|
27
|
-
/** HNSW efConstruction parameter */
|
|
28
|
-
hnswEfConstruction: number;
|
|
29
|
-
/** Default namespace */
|
|
30
|
-
defaultNamespace: string;
|
|
31
|
-
/** Embedding generator function */
|
|
32
|
-
embeddingGenerator?: EmbeddingGenerator;
|
|
33
|
-
/** Enable persistence to disk */
|
|
34
|
-
persistenceEnabled: boolean;
|
|
35
|
-
/** Persistence path */
|
|
36
|
-
persistencePath?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* AgentDB Memory Backend Adapter
|
|
40
|
-
*
|
|
41
|
-
* Provides unified memory storage with:
|
|
42
|
-
* - HNSW-based vector search (150x-12,500x faster than brute force)
|
|
43
|
-
* - LRU caching with TTL support
|
|
44
|
-
* - Namespace-based organization
|
|
45
|
-
* - Full-text and metadata filtering
|
|
46
|
-
* - Event-driven architecture
|
|
47
|
-
*/
|
|
48
|
-
export declare class AgentDBAdapter extends EventEmitter implements IMemoryBackend {
|
|
49
|
-
private config;
|
|
50
|
-
private entries;
|
|
51
|
-
private index;
|
|
52
|
-
private cache;
|
|
53
|
-
private namespaceIndex;
|
|
54
|
-
private keyIndex;
|
|
55
|
-
private tagIndex;
|
|
56
|
-
private initialized;
|
|
57
|
-
private stats;
|
|
58
|
-
constructor(config?: Partial<AgentDBAdapterConfig>);
|
|
59
|
-
/**
|
|
60
|
-
* Initialize the adapter
|
|
61
|
-
*/
|
|
62
|
-
initialize(): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Shutdown the adapter
|
|
65
|
-
*/
|
|
66
|
-
shutdown(): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Store a memory entry
|
|
69
|
-
*/
|
|
70
|
-
store(entry: MemoryEntry): Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Get a memory entry by ID
|
|
73
|
-
*/
|
|
74
|
-
get(id: string): Promise<MemoryEntry | null>;
|
|
75
|
-
/**
|
|
76
|
-
* Get a memory entry by key within a namespace
|
|
77
|
-
*/
|
|
78
|
-
getByKey(namespace: string, key: string): Promise<MemoryEntry | null>;
|
|
79
|
-
/**
|
|
80
|
-
* Update a memory entry
|
|
81
|
-
*/
|
|
82
|
-
update(id: string, update: MemoryEntryUpdate): Promise<MemoryEntry | null>;
|
|
83
|
-
/**
|
|
84
|
-
* Delete a memory entry
|
|
85
|
-
*/
|
|
86
|
-
delete(id: string): Promise<boolean>;
|
|
87
|
-
/**
|
|
88
|
-
* Query memory entries with filters
|
|
89
|
-
*/
|
|
90
|
-
query(query: MemoryQuery): Promise<MemoryEntry[]>;
|
|
91
|
-
/**
|
|
92
|
-
* Semantic vector search
|
|
93
|
-
*/
|
|
94
|
-
search(embedding: Float32Array, options: SearchOptions): Promise<SearchResult[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Bulk insert entries (OPTIMIZED: 2-3x faster with batched operations)
|
|
97
|
-
*
|
|
98
|
-
* Performance improvements:
|
|
99
|
-
* - Parallel embedding generation
|
|
100
|
-
* - Batched index updates
|
|
101
|
-
* - Deferred cache population
|
|
102
|
-
* - Single event emission
|
|
103
|
-
*/
|
|
104
|
-
bulkInsert(entries: MemoryEntry[], options?: {
|
|
105
|
-
batchSize?: number;
|
|
106
|
-
}): Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
* Bulk delete entries (OPTIMIZED: parallel deletion)
|
|
109
|
-
*/
|
|
110
|
-
bulkDelete(ids: string[]): Promise<number>;
|
|
111
|
-
/**
|
|
112
|
-
* Bulk get entries by IDs (OPTIMIZED: parallel fetch with cache)
|
|
113
|
-
*/
|
|
114
|
-
bulkGet(ids: string[]): Promise<Map<string, MemoryEntry | null>>;
|
|
115
|
-
/**
|
|
116
|
-
* Bulk update entries (OPTIMIZED: batched updates)
|
|
117
|
-
*/
|
|
118
|
-
bulkUpdate(updates: Array<{
|
|
119
|
-
id: string;
|
|
120
|
-
update: MemoryEntryUpdate;
|
|
121
|
-
}>): Promise<Map<string, MemoryEntry | null>>;
|
|
122
|
-
/**
|
|
123
|
-
* Get entry count
|
|
124
|
-
*/
|
|
125
|
-
count(namespace?: string): Promise<number>;
|
|
126
|
-
/**
|
|
127
|
-
* List all namespaces
|
|
128
|
-
*/
|
|
129
|
-
listNamespaces(): Promise<string[]>;
|
|
130
|
-
/**
|
|
131
|
-
* Clear all entries in a namespace
|
|
132
|
-
*/
|
|
133
|
-
clearNamespace(namespace: string): Promise<number>;
|
|
134
|
-
/**
|
|
135
|
-
* Get backend statistics
|
|
136
|
-
*/
|
|
137
|
-
getStats(): Promise<BackendStats>;
|
|
138
|
-
/**
|
|
139
|
-
* Perform health check
|
|
140
|
-
*/
|
|
141
|
-
healthCheck(): Promise<HealthCheckResult>;
|
|
142
|
-
/**
|
|
143
|
-
* Store a new entry from input
|
|
144
|
-
*/
|
|
145
|
-
storeEntry(input: MemoryEntryInput): Promise<MemoryEntry>;
|
|
146
|
-
/**
|
|
147
|
-
* Semantic search by content string
|
|
148
|
-
*/
|
|
149
|
-
semanticSearch(content: string, k?: number, threshold?: number): Promise<SearchResult[]>;
|
|
150
|
-
private queryByPrefix;
|
|
151
|
-
private queryByTags;
|
|
152
|
-
private querySemanticWithFilters;
|
|
153
|
-
private queryWithFilters;
|
|
154
|
-
private applyFilters;
|
|
155
|
-
private updateAccessStats;
|
|
156
|
-
private estimateMemoryUsage;
|
|
157
|
-
private estimateEntrySize;
|
|
158
|
-
private checkStorageHealth;
|
|
159
|
-
private checkIndexHealth;
|
|
160
|
-
private checkCacheHealth;
|
|
161
|
-
private loadFromDisk;
|
|
162
|
-
private saveToDisk;
|
|
163
|
-
}
|
|
164
|
-
export default AgentDBAdapter;
|
|
165
|
-
//# sourceMappingURL=agentdb-adapter.d.ts.map
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgentDB Backend - Integration with agentdb@2.0.0-alpha.3.4
|
|
3
|
-
*
|
|
4
|
-
* Provides IMemoryBackend implementation using AgentDB with:
|
|
5
|
-
* - HNSW vector search (150x-12,500x faster than brute-force)
|
|
6
|
-
* - Native or WASM backend support with graceful fallback
|
|
7
|
-
* - Optional dependency handling (works without hnswlib-node)
|
|
8
|
-
*
|
|
9
|
-
* @module v3/memory/agentdb-backend
|
|
10
|
-
*/
|
|
11
|
-
import { EventEmitter } from 'node:events';
|
|
12
|
-
import { IMemoryBackend, MemoryEntry, MemoryEntryUpdate, MemoryQuery, SearchOptions, SearchResult, BackendStats, HealthCheckResult, EmbeddingGenerator } from './types.js';
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for AgentDB Backend
|
|
15
|
-
*/
|
|
16
|
-
export interface AgentDBBackendConfig {
|
|
17
|
-
/** Database path for persistence */
|
|
18
|
-
dbPath?: string;
|
|
19
|
-
/** Namespace for memory organization */
|
|
20
|
-
namespace?: string;
|
|
21
|
-
/** Force WASM backend (skip native hnswlib) */
|
|
22
|
-
forceWasm?: boolean;
|
|
23
|
-
/** Vector backend: 'auto', 'ruvector', 'hnswlib' */
|
|
24
|
-
vectorBackend?: 'auto' | 'ruvector' | 'hnswlib';
|
|
25
|
-
/** Vector dimensions (default: 1536) */
|
|
26
|
-
vectorDimension?: number;
|
|
27
|
-
/** HNSW M parameter */
|
|
28
|
-
hnswM?: number;
|
|
29
|
-
/** HNSW efConstruction parameter */
|
|
30
|
-
hnswEfConstruction?: number;
|
|
31
|
-
/** HNSW efSearch parameter */
|
|
32
|
-
hnswEfSearch?: number;
|
|
33
|
-
/** Enable caching */
|
|
34
|
-
cacheEnabled?: boolean;
|
|
35
|
-
/** Embedding generator function */
|
|
36
|
-
embeddingGenerator?: EmbeddingGenerator;
|
|
37
|
-
/** Maximum entries */
|
|
38
|
-
maxEntries?: number;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* AgentDB Backend
|
|
42
|
-
*
|
|
43
|
-
* Integrates AgentDB for vector search with the V3 memory system.
|
|
44
|
-
* Provides 150x-12,500x faster search compared to brute-force approaches.
|
|
45
|
-
*
|
|
46
|
-
* Features:
|
|
47
|
-
* - HNSW indexing for fast approximate nearest neighbor search
|
|
48
|
-
* - Automatic fallback: native hnswlib → ruvector → WASM
|
|
49
|
-
* - Graceful handling of optional native dependencies
|
|
50
|
-
* - Semantic search with filtering
|
|
51
|
-
*/
|
|
52
|
-
export declare class AgentDBBackend extends EventEmitter implements IMemoryBackend {
|
|
53
|
-
private config;
|
|
54
|
-
private agentdb;
|
|
55
|
-
private initialized;
|
|
56
|
-
private available;
|
|
57
|
-
private entries;
|
|
58
|
-
private namespaceIndex;
|
|
59
|
-
private keyIndex;
|
|
60
|
-
private numericToStringIdMap;
|
|
61
|
-
private stats;
|
|
62
|
-
constructor(config?: AgentDBBackendConfig);
|
|
63
|
-
/**
|
|
64
|
-
* Initialize AgentDB
|
|
65
|
-
*/
|
|
66
|
-
initialize(): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Shutdown AgentDB
|
|
69
|
-
*/
|
|
70
|
-
shutdown(): Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Store a memory entry
|
|
73
|
-
*/
|
|
74
|
-
store(entry: MemoryEntry): Promise<void>;
|
|
75
|
-
/**
|
|
76
|
-
* Get entry by ID
|
|
77
|
-
*/
|
|
78
|
-
get(id: string): Promise<MemoryEntry | null>;
|
|
79
|
-
/**
|
|
80
|
-
* Get entry by key
|
|
81
|
-
*/
|
|
82
|
-
getByKey(namespace: string, key: string): Promise<MemoryEntry | null>;
|
|
83
|
-
/**
|
|
84
|
-
* Update entry
|
|
85
|
-
*/
|
|
86
|
-
update(id: string, update: MemoryEntryUpdate): Promise<MemoryEntry | null>;
|
|
87
|
-
/**
|
|
88
|
-
* Delete entry
|
|
89
|
-
*/
|
|
90
|
-
delete(id: string): Promise<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* Query entries
|
|
93
|
-
*/
|
|
94
|
-
query(query: MemoryQuery): Promise<MemoryEntry[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Semantic vector search
|
|
97
|
-
*/
|
|
98
|
-
search(embedding: Float32Array, options: SearchOptions): Promise<SearchResult[]>;
|
|
99
|
-
/**
|
|
100
|
-
* Bulk insert
|
|
101
|
-
*/
|
|
102
|
-
bulkInsert(entries: MemoryEntry[]): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Bulk delete
|
|
105
|
-
*/
|
|
106
|
-
bulkDelete(ids: string[]): Promise<number>;
|
|
107
|
-
/**
|
|
108
|
-
* Count entries
|
|
109
|
-
*/
|
|
110
|
-
count(namespace?: string): Promise<number>;
|
|
111
|
-
/**
|
|
112
|
-
* List namespaces
|
|
113
|
-
*/
|
|
114
|
-
listNamespaces(): Promise<string[]>;
|
|
115
|
-
/**
|
|
116
|
-
* Clear namespace
|
|
117
|
-
*/
|
|
118
|
-
clearNamespace(namespace: string): Promise<number>;
|
|
119
|
-
/**
|
|
120
|
-
* Get statistics
|
|
121
|
-
*/
|
|
122
|
-
getStats(): Promise<BackendStats>;
|
|
123
|
-
/**
|
|
124
|
-
* Health check
|
|
125
|
-
*/
|
|
126
|
-
healthCheck(): Promise<HealthCheckResult>;
|
|
127
|
-
/**
|
|
128
|
-
* Create database schema
|
|
129
|
-
*/
|
|
130
|
-
private createSchema;
|
|
131
|
-
/**
|
|
132
|
-
* Store entry in AgentDB
|
|
133
|
-
*/
|
|
134
|
-
private storeInAgentDB;
|
|
135
|
-
/**
|
|
136
|
-
* Get entry from AgentDB
|
|
137
|
-
*/
|
|
138
|
-
private getFromAgentDB;
|
|
139
|
-
/**
|
|
140
|
-
* Convert agentdb data to MemoryEntry
|
|
141
|
-
*/
|
|
142
|
-
private dataToEntry;
|
|
143
|
-
/**
|
|
144
|
-
* Update entry in AgentDB
|
|
145
|
-
*/
|
|
146
|
-
private updateInAgentDB;
|
|
147
|
-
/**
|
|
148
|
-
* Delete entry from AgentDB
|
|
149
|
-
*/
|
|
150
|
-
private deleteFromAgentDB;
|
|
151
|
-
/**
|
|
152
|
-
* Search with AgentDB HNSW
|
|
153
|
-
*/
|
|
154
|
-
private searchWithAgentDB;
|
|
155
|
-
/**
|
|
156
|
-
* Brute-force vector search fallback
|
|
157
|
-
*/
|
|
158
|
-
private bruteForceSearch;
|
|
159
|
-
/**
|
|
160
|
-
* Semantic search helper
|
|
161
|
-
*/
|
|
162
|
-
private semanticSearch;
|
|
163
|
-
/**
|
|
164
|
-
* In-memory query fallback
|
|
165
|
-
*/
|
|
166
|
-
private queryInMemory;
|
|
167
|
-
/**
|
|
168
|
-
* Update in-memory indexes
|
|
169
|
-
*/
|
|
170
|
-
private updateIndexes;
|
|
171
|
-
/**
|
|
172
|
-
* Convert DB row to MemoryEntry
|
|
173
|
-
*/
|
|
174
|
-
private rowToEntry;
|
|
175
|
-
/**
|
|
176
|
-
* Convert string ID to numeric for HNSW
|
|
177
|
-
*/
|
|
178
|
-
private stringIdToNumeric;
|
|
179
|
-
/**
|
|
180
|
-
* Convert numeric ID back to string using O(1) reverse lookup
|
|
181
|
-
* PERFORMANCE FIX: Uses pre-built reverse map instead of O(n) linear scan
|
|
182
|
-
*/
|
|
183
|
-
private numericIdToString;
|
|
184
|
-
/**
|
|
185
|
-
* Register string ID in reverse lookup map
|
|
186
|
-
* Called when storing entries to maintain bidirectional mapping
|
|
187
|
-
*/
|
|
188
|
-
private registerIdMapping;
|
|
189
|
-
/**
|
|
190
|
-
* Unregister string ID from reverse lookup map
|
|
191
|
-
* Called when deleting entries
|
|
192
|
-
*/
|
|
193
|
-
private unregisterIdMapping;
|
|
194
|
-
/**
|
|
195
|
-
* Cosine similarity (returns value in range [0, 1] where 1 = identical)
|
|
196
|
-
*/
|
|
197
|
-
private cosineSimilarity;
|
|
198
|
-
/**
|
|
199
|
-
* Estimate memory usage
|
|
200
|
-
*/
|
|
201
|
-
private estimateMemoryUsage;
|
|
202
|
-
/**
|
|
203
|
-
* Check if AgentDB is available
|
|
204
|
-
*/
|
|
205
|
-
isAvailable(): boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Get underlying AgentDB instance
|
|
208
|
-
*/
|
|
209
|
-
getAgentDB(): any;
|
|
210
|
-
}
|
|
211
|
-
export default AgentDBBackend;
|
|
212
|
-
//# sourceMappingURL=agentdb-backend.d.ts.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete Memory Command - Application Layer (CQRS)
|
|
3
|
-
*
|
|
4
|
-
* Command for deleting memory entries.
|
|
5
|
-
* Supports soft delete and hard delete.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/memory/application/commands
|
|
8
|
-
*/
|
|
9
|
-
import { IMemoryRepository } from '../../domain/repositories/memory-repository.interface.js';
|
|
10
|
-
/**
|
|
11
|
-
* Delete Memory Command Input
|
|
12
|
-
*/
|
|
13
|
-
export interface DeleteMemoryInput {
|
|
14
|
-
id?: string;
|
|
15
|
-
namespace?: string;
|
|
16
|
-
key?: string;
|
|
17
|
-
hardDelete?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Delete Memory Command Result
|
|
21
|
-
*/
|
|
22
|
-
export interface DeleteMemoryResult {
|
|
23
|
-
success: boolean;
|
|
24
|
-
deleted: boolean;
|
|
25
|
-
entryId?: string;
|
|
26
|
-
wasHardDelete: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Delete Memory Command Handler
|
|
30
|
-
*/
|
|
31
|
-
export declare class DeleteMemoryCommandHandler {
|
|
32
|
-
private readonly repository;
|
|
33
|
-
constructor(repository: IMemoryRepository);
|
|
34
|
-
execute(input: DeleteMemoryInput): Promise<DeleteMemoryResult>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Bulk Delete Command Input
|
|
38
|
-
*/
|
|
39
|
-
export interface BulkDeleteMemoryInput {
|
|
40
|
-
ids?: string[];
|
|
41
|
-
namespace?: string;
|
|
42
|
-
olderThan?: Date;
|
|
43
|
-
hardDelete?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Bulk Delete Command Result
|
|
47
|
-
*/
|
|
48
|
-
export interface BulkDeleteMemoryResult {
|
|
49
|
-
success: boolean;
|
|
50
|
-
deletedCount: number;
|
|
51
|
-
failedCount: number;
|
|
52
|
-
errors: Array<{
|
|
53
|
-
id: string;
|
|
54
|
-
error: string;
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Bulk Delete Memory Command Handler
|
|
59
|
-
*/
|
|
60
|
-
export declare class BulkDeleteMemoryCommandHandler {
|
|
61
|
-
private readonly repository;
|
|
62
|
-
constructor(repository: IMemoryRepository);
|
|
63
|
-
execute(input: BulkDeleteMemoryInput): Promise<BulkDeleteMemoryResult>;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=delete-memory.command.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Store Memory Command - Application Layer (CQRS)
|
|
3
|
-
*
|
|
4
|
-
* Command for storing a new memory entry.
|
|
5
|
-
* Implements CQRS pattern per ADR-002.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/memory/application/commands
|
|
8
|
-
*/
|
|
9
|
-
import { MemoryEntry, MemoryType } from '../../domain/entities/memory-entry.js';
|
|
10
|
-
import { IMemoryRepository } from '../../domain/repositories/memory-repository.interface.js';
|
|
11
|
-
import { MemoryDomainService } from '../../domain/services/memory-domain-service.js';
|
|
12
|
-
/**
|
|
13
|
-
* Store Memory Command Input
|
|
14
|
-
*/
|
|
15
|
-
export interface StoreMemoryInput {
|
|
16
|
-
namespace: string;
|
|
17
|
-
key: string;
|
|
18
|
-
value: unknown;
|
|
19
|
-
type?: MemoryType;
|
|
20
|
-
vector?: Float32Array;
|
|
21
|
-
metadata?: Record<string, unknown>;
|
|
22
|
-
ttl?: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Store Memory Command Result
|
|
26
|
-
*/
|
|
27
|
-
export interface StoreMemoryResult {
|
|
28
|
-
success: boolean;
|
|
29
|
-
entryId: string;
|
|
30
|
-
entry: MemoryEntry;
|
|
31
|
-
isUpdate: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Store Memory Command Handler
|
|
35
|
-
*
|
|
36
|
-
* Handles the command to store a memory entry.
|
|
37
|
-
* Coordinates between domain services and repository.
|
|
38
|
-
*/
|
|
39
|
-
export declare class StoreMemoryCommandHandler {
|
|
40
|
-
private readonly repository;
|
|
41
|
-
private readonly domainService;
|
|
42
|
-
constructor(repository: IMemoryRepository, domainService: MemoryDomainService);
|
|
43
|
-
/**
|
|
44
|
-
* Execute the store memory command
|
|
45
|
-
*/
|
|
46
|
-
execute(input: StoreMemoryInput): Promise<StoreMemoryResult>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=store-memory.command.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Application Layer - Public Exports
|
|
3
|
-
*
|
|
4
|
-
* Exports all application services, commands, and queries.
|
|
5
|
-
*
|
|
6
|
-
* @module v3/memory/application
|
|
7
|
-
*/
|
|
8
|
-
export { StoreMemoryCommandHandler, type StoreMemoryInput, type StoreMemoryResult, } from './commands/store-memory.command.js';
|
|
9
|
-
export { DeleteMemoryCommandHandler, BulkDeleteMemoryCommandHandler, type DeleteMemoryInput, type DeleteMemoryResult, type BulkDeleteMemoryInput, type BulkDeleteMemoryResult, } from './commands/delete-memory.command.js';
|
|
10
|
-
export { SearchMemoryQueryHandler, GetMemoryByKeyQueryHandler, type SearchMemoryInput, type SearchMemoryResult, type GetMemoryByKeyInput, type GetMemoryByKeyResult, } from './queries/search-memory.query.js';
|
|
11
|
-
export { MemoryApplicationService } from './services/memory-application-service.js';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Search Memory Query - Application Layer (CQRS)
|
|
3
|
-
*
|
|
4
|
-
* Query for searching memory entries.
|
|
5
|
-
* Supports text search, vector search, and filtering.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/memory/application/queries
|
|
8
|
-
*/
|
|
9
|
-
import { MemoryEntry, MemoryType, MemoryStatus } from '../../domain/entities/memory-entry.js';
|
|
10
|
-
import { IMemoryRepository } from '../../domain/repositories/memory-repository.interface.js';
|
|
11
|
-
/**
|
|
12
|
-
* Search Memory Query Input
|
|
13
|
-
*/
|
|
14
|
-
export interface SearchMemoryInput {
|
|
15
|
-
vector?: Float32Array;
|
|
16
|
-
similarityThreshold?: number;
|
|
17
|
-
namespace?: string;
|
|
18
|
-
type?: MemoryType;
|
|
19
|
-
status?: MemoryStatus;
|
|
20
|
-
limit?: number;
|
|
21
|
-
offset?: number;
|
|
22
|
-
orderBy?: 'createdAt' | 'updatedAt' | 'accessCount' | 'lastAccessedAt';
|
|
23
|
-
orderDirection?: 'asc' | 'desc';
|
|
24
|
-
textQuery?: string;
|
|
25
|
-
trackAccess?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Search Memory Query Result
|
|
29
|
-
*/
|
|
30
|
-
export interface SearchMemoryResult {
|
|
31
|
-
entries: MemoryEntry[];
|
|
32
|
-
total: number;
|
|
33
|
-
hasMore: boolean;
|
|
34
|
-
searchType: 'vector' | 'filter' | 'text';
|
|
35
|
-
similarities?: number[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Search Memory Query Handler
|
|
39
|
-
*/
|
|
40
|
-
export declare class SearchMemoryQueryHandler {
|
|
41
|
-
private readonly repository;
|
|
42
|
-
constructor(repository: IMemoryRepository);
|
|
43
|
-
execute(input: SearchMemoryInput): Promise<SearchMemoryResult>;
|
|
44
|
-
private executeVectorSearch;
|
|
45
|
-
private executeTextSearch;
|
|
46
|
-
private executeFilterSearch;
|
|
47
|
-
private trackEntryAccess;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get Memory By Key Query Input
|
|
51
|
-
*/
|
|
52
|
-
export interface GetMemoryByKeyInput {
|
|
53
|
-
namespace: string;
|
|
54
|
-
key: string;
|
|
55
|
-
trackAccess?: boolean;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get Memory By Key Query Result
|
|
59
|
-
*/
|
|
60
|
-
export interface GetMemoryByKeyResult {
|
|
61
|
-
found: boolean;
|
|
62
|
-
entry?: MemoryEntry;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Get Memory By Key Query Handler
|
|
66
|
-
*/
|
|
67
|
-
export declare class GetMemoryByKeyQueryHandler {
|
|
68
|
-
private readonly repository;
|
|
69
|
-
constructor(repository: IMemoryRepository);
|
|
70
|
-
execute(input: GetMemoryByKeyInput): Promise<GetMemoryByKeyResult>;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=search-memory.query.d.ts.map
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Application Service - Application Layer
|
|
3
|
-
*
|
|
4
|
-
* Orchestrates use cases and coordinates between domain and infrastructure.
|
|
5
|
-
* Provides a simplified interface for external consumers.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/memory/application/services
|
|
8
|
-
*/
|
|
9
|
-
import { MemoryEntry, MemoryType } from '../../domain/entities/memory-entry.js';
|
|
10
|
-
import { IMemoryRepository, VectorSearchResult, MemoryStatistics } from '../../domain/repositories/memory-repository.interface.js';
|
|
11
|
-
import { ConsolidationOptions, ConsolidationResult } from '../../domain/services/memory-domain-service.js';
|
|
12
|
-
import { StoreMemoryInput } from '../commands/store-memory.command.js';
|
|
13
|
-
import { SearchMemoryInput } from '../queries/search-memory.query.js';
|
|
14
|
-
/**
|
|
15
|
-
* Memory Application Service
|
|
16
|
-
*
|
|
17
|
-
* Main entry point for memory operations.
|
|
18
|
-
* Coordinates commands and queries with domain services.
|
|
19
|
-
*/
|
|
20
|
-
export declare class MemoryApplicationService {
|
|
21
|
-
private readonly repository;
|
|
22
|
-
private readonly domainService;
|
|
23
|
-
private readonly storeHandler;
|
|
24
|
-
private readonly deleteHandler;
|
|
25
|
-
private readonly bulkDeleteHandler;
|
|
26
|
-
private readonly searchHandler;
|
|
27
|
-
private readonly getByKeyHandler;
|
|
28
|
-
constructor(repository: IMemoryRepository);
|
|
29
|
-
/**
|
|
30
|
-
* Store a memory entry
|
|
31
|
-
*/
|
|
32
|
-
store(input: StoreMemoryInput): Promise<MemoryEntry>;
|
|
33
|
-
/**
|
|
34
|
-
* Store multiple memory entries
|
|
35
|
-
*/
|
|
36
|
-
storeMany(inputs: StoreMemoryInput[]): Promise<MemoryEntry[]>;
|
|
37
|
-
/**
|
|
38
|
-
* Get a memory entry by namespace and key
|
|
39
|
-
*/
|
|
40
|
-
get(namespace: string, key: string): Promise<MemoryEntry | null>;
|
|
41
|
-
/**
|
|
42
|
-
* Get a memory entry by ID
|
|
43
|
-
*/
|
|
44
|
-
getById(id: string): Promise<MemoryEntry | null>;
|
|
45
|
-
/**
|
|
46
|
-
* Search memory entries
|
|
47
|
-
*/
|
|
48
|
-
search(input: SearchMemoryInput): Promise<{
|
|
49
|
-
entries: MemoryEntry[];
|
|
50
|
-
total: number;
|
|
51
|
-
hasMore: boolean;
|
|
52
|
-
}>;
|
|
53
|
-
/**
|
|
54
|
-
* Search by vector similarity
|
|
55
|
-
*/
|
|
56
|
-
searchByVector(vector: Float32Array, options?: {
|
|
57
|
-
namespace?: string;
|
|
58
|
-
limit?: number;
|
|
59
|
-
threshold?: number;
|
|
60
|
-
}): Promise<VectorSearchResult[]>;
|
|
61
|
-
/**
|
|
62
|
-
* Get all entries in a namespace
|
|
63
|
-
*/
|
|
64
|
-
getNamespace(namespace: string): Promise<MemoryEntry[]>;
|
|
65
|
-
/**
|
|
66
|
-
* List all namespaces
|
|
67
|
-
*/
|
|
68
|
-
listNamespaces(): Promise<string[]>;
|
|
69
|
-
/**
|
|
70
|
-
* Delete a memory entry by namespace and key
|
|
71
|
-
*/
|
|
72
|
-
delete(namespace: string, key: string, hardDelete?: boolean): Promise<boolean>;
|
|
73
|
-
/**
|
|
74
|
-
* Delete a memory entry by ID
|
|
75
|
-
*/
|
|
76
|
-
deleteById(id: string, hardDelete?: boolean): Promise<boolean>;
|
|
77
|
-
/**
|
|
78
|
-
* Delete all entries in a namespace
|
|
79
|
-
*/
|
|
80
|
-
deleteNamespace(namespace: string, hardDelete?: boolean): Promise<number>;
|
|
81
|
-
/**
|
|
82
|
-
* Clear all memory entries
|
|
83
|
-
*/
|
|
84
|
-
clear(): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Consolidate memories using specified strategy
|
|
87
|
-
*/
|
|
88
|
-
consolidate(options: ConsolidationOptions): Promise<ConsolidationResult>;
|
|
89
|
-
/**
|
|
90
|
-
* Clean up expired memories
|
|
91
|
-
*/
|
|
92
|
-
cleanupExpired(): Promise<number>;
|
|
93
|
-
/**
|
|
94
|
-
* Archive cold (rarely accessed) memories
|
|
95
|
-
*/
|
|
96
|
-
archiveCold(milliseconds?: number): Promise<number>;
|
|
97
|
-
/**
|
|
98
|
-
* Get memory statistics
|
|
99
|
-
*/
|
|
100
|
-
getStatistics(): Promise<MemoryStatistics>;
|
|
101
|
-
/**
|
|
102
|
-
* Count entries matching criteria
|
|
103
|
-
*/
|
|
104
|
-
count(options?: {
|
|
105
|
-
namespace?: string;
|
|
106
|
-
type?: MemoryType;
|
|
107
|
-
}): Promise<number>;
|
|
108
|
-
/**
|
|
109
|
-
* Analyze a namespace
|
|
110
|
-
*/
|
|
111
|
-
analyzeNamespace(namespace: string): Promise<import("../../domain/index.js").NamespaceAnalysis>;
|
|
112
|
-
/**
|
|
113
|
-
* Initialize the memory service
|
|
114
|
-
*/
|
|
115
|
-
initialize(): Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* Shutdown the memory service
|
|
118
|
-
*/
|
|
119
|
-
shutdown(): Promise<void>;
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=memory-application-service.d.ts.map
|