agentdb 1.0.12 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -838
- package/dist/benchmarks/comprehensive-benchmark.js +664 -0
- package/dist/benchmarks/frontier-benchmark.js +419 -0
- package/dist/benchmarks/reflexion-benchmark.js +370 -0
- package/dist/cli/agentdb-cli.d.ts +117 -0
- package/dist/cli/agentdb-cli.d.ts.map +1 -0
- package/dist/cli/agentdb-cli.js +718 -0
- package/dist/cli/agentdb-cli.js.map +1 -0
- package/dist/controllers/CausalMemoryGraph.d.ts +125 -0
- package/dist/controllers/CausalMemoryGraph.d.ts.map +1 -0
- package/dist/controllers/CausalMemoryGraph.js +323 -0
- package/dist/controllers/CausalMemoryGraph.js.map +1 -0
- package/dist/controllers/CausalRecall.d.ts +111 -0
- package/dist/controllers/CausalRecall.d.ts.map +1 -0
- package/dist/controllers/CausalRecall.js +282 -0
- package/dist/controllers/CausalRecall.js.map +1 -0
- package/dist/controllers/EmbeddingService.d.ts +37 -0
- package/dist/controllers/EmbeddingService.d.ts.map +1 -0
- package/dist/controllers/EmbeddingService.js +119 -0
- package/dist/controllers/EmbeddingService.js.map +1 -0
- package/dist/controllers/ExplainableRecall.d.ts +138 -0
- package/dist/controllers/ExplainableRecall.d.ts.map +1 -0
- package/dist/controllers/ExplainableRecall.js +388 -0
- package/dist/controllers/ExplainableRecall.js.map +1 -0
- package/dist/controllers/NightlyLearner.d.ts +113 -0
- package/dist/controllers/NightlyLearner.d.ts.map +1 -0
- package/dist/controllers/NightlyLearner.js +383 -0
- package/dist/controllers/NightlyLearner.js.map +1 -0
- package/dist/controllers/ReflexionMemory.d.ts +84 -0
- package/dist/controllers/ReflexionMemory.d.ts.map +1 -0
- package/dist/controllers/ReflexionMemory.js +240 -0
- package/dist/controllers/ReflexionMemory.js.map +1 -0
- package/dist/controllers/SkillLibrary.d.ts +96 -0
- package/dist/controllers/SkillLibrary.d.ts.map +1 -0
- package/dist/controllers/SkillLibrary.js +277 -0
- package/dist/controllers/SkillLibrary.js.map +1 -0
- package/dist/controllers/frontier-index.d.ts +14 -0
- package/dist/controllers/frontier-index.d.ts.map +1 -0
- package/dist/controllers/frontier-index.js +10 -0
- package/dist/controllers/frontier-index.js.map +1 -0
- package/dist/controllers/index.d.ts +12 -0
- package/dist/controllers/index.d.ts.map +1 -0
- package/dist/controllers/index.js +9 -0
- package/dist/controllers/index.js.map +1 -0
- package/dist/optimizations/BatchOperations.d.ts +61 -0
- package/dist/optimizations/BatchOperations.d.ts.map +1 -0
- package/dist/optimizations/BatchOperations.js +199 -0
- package/dist/optimizations/BatchOperations.js.map +1 -0
- package/dist/optimizations/QueryOptimizer.d.ts +82 -0
- package/dist/optimizations/QueryOptimizer.d.ts.map +1 -0
- package/dist/optimizations/QueryOptimizer.js +226 -0
- package/dist/optimizations/QueryOptimizer.js.map +1 -0
- package/dist/optimizations/index.d.ts +10 -0
- package/dist/optimizations/index.d.ts.map +1 -0
- package/dist/optimizations/index.js +8 -0
- package/dist/optimizations/index.js.map +1 -0
- package/dist/schemas/frontier-schema.sql +341 -0
- package/dist/schemas/schema.sql +382 -0
- package/dist/tests/frontier-features.test.js +665 -0
- package/package.json +54 -117
- package/src/cli/agentdb-cli.ts +861 -0
- package/src/cli/examples.sh +83 -0
- package/src/controllers/CausalMemoryGraph.ts +504 -0
- package/src/controllers/CausalRecall.ts +395 -0
- package/src/controllers/EmbeddingService.ts +141 -0
- package/src/controllers/ExplainableRecall.ts +577 -0
- package/src/controllers/NightlyLearner.ts +475 -0
- package/src/controllers/ReflexionMemory.ts +349 -0
- package/src/controllers/SkillLibrary.ts +391 -0
- package/src/controllers/frontier-index.ts +35 -0
- package/src/controllers/index.ts +13 -0
- package/src/optimizations/BatchOperations.ts +292 -0
- package/src/optimizations/QueryOptimizer.ts +294 -0
- package/src/optimizations/index.ts +11 -0
- package/src/schemas/frontier-schema.sql +341 -0
- package/src/schemas/schema.sql +382 -0
- package/CHANGELOG.md +0 -166
- package/LICENSE +0 -38
- package/LICENSE-APACHE +0 -190
- package/LICENSE-MIT +0 -21
- package/bin/agentdb.js +0 -733
- package/bin/benchmark.js +0 -165
- package/bin/plugin-cli-wrapper.mjs +0 -21
- package/dist/agentdb.js +0 -5352
- package/dist/agentdb.js.map +0 -7
- package/dist/agentdb.min.js +0 -143
- package/dist/agentdb.min.js.map +0 -7
- package/dist/cache/query-cache.d.ts +0 -105
- package/dist/cache/query-cache.d.ts.map +0 -1
- package/dist/cache/query-cache.js +0 -224
- package/dist/cache/query-cache.js.map +0 -1
- package/dist/cache/query-cache.mjs +0 -219
- package/dist/cli/cache/query-cache.d.ts +0 -104
- package/dist/cli/cache/query-cache.js +0 -244
- package/dist/cli/cli/db-commands.d.ts +0 -48
- package/dist/cli/cli/db-commands.js +0 -613
- package/dist/cli/commands.d.ts +0 -7
- package/dist/cli/commands.d.ts.map +0 -1
- package/dist/cli/commands.js +0 -113
- package/dist/cli/commands.js.map +0 -1
- package/dist/cli/commands.mjs +0 -104
- package/dist/cli/core/backend-interface.d.ts +0 -70
- package/dist/cli/core/backend-interface.js +0 -15
- package/dist/cli/core/native-backend.d.ts +0 -140
- package/dist/cli/core/native-backend.js +0 -432
- package/dist/cli/core/vector-db.d.ts +0 -126
- package/dist/cli/core/vector-db.js +0 -338
- package/dist/cli/core/wasm-backend.d.ts +0 -95
- package/dist/cli/core/wasm-backend.js +0 -418
- package/dist/cli/db-commands.d.ts +0 -49
- package/dist/cli/db-commands.d.ts.map +0 -1
- package/dist/cli/db-commands.js +0 -533
- package/dist/cli/db-commands.js.map +0 -1
- package/dist/cli/db-commands.mjs +0 -522
- package/dist/cli/generator.d.ts +0 -11
- package/dist/cli/generator.d.ts.map +0 -1
- package/dist/cli/generator.js +0 -567
- package/dist/cli/generator.js.map +0 -1
- package/dist/cli/generator.mjs +0 -527
- package/dist/cli/help.d.ts +0 -18
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -676
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/help.mjs +0 -667
- package/dist/cli/index/hnsw.d.ts +0 -164
- package/dist/cli/index/hnsw.js +0 -558
- package/dist/cli/plugin-cli.d.ts +0 -7
- package/dist/cli/plugin-cli.d.ts.map +0 -1
- package/dist/cli/plugin-cli.js +0 -295
- package/dist/cli/plugin-cli.js.map +0 -1
- package/dist/cli/plugin-cli.mjs +0 -289
- package/dist/cli/quantization/product-quantization.d.ts +0 -108
- package/dist/cli/quantization/product-quantization.js +0 -350
- package/dist/cli/query/query-builder.d.ts +0 -322
- package/dist/cli/query/query-builder.js +0 -600
- package/dist/cli/templates.d.ts +0 -14
- package/dist/cli/templates.d.ts.map +0 -1
- package/dist/cli/templates.js +0 -182
- package/dist/cli/templates.js.map +0 -1
- package/dist/cli/templates.mjs +0 -176
- package/dist/cli/types/index.d.ts +0 -116
- package/dist/cli/types/index.js +0 -5
- package/dist/cli/types.d.ts +0 -91
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/types.js +0 -6
- package/dist/cli/types.js.map +0 -1
- package/dist/cli/types.mjs +0 -4
- package/dist/cli/wizard/index.d.ts +0 -6
- package/dist/cli/wizard/index.d.ts.map +0 -1
- package/dist/cli/wizard/index.js +0 -138
- package/dist/cli/wizard/index.js.map +0 -1
- package/dist/cli/wizard/index.mjs +0 -131
- package/dist/cli/wizard/prompts.d.ts +0 -11
- package/dist/cli/wizard/prompts.d.ts.map +0 -1
- package/dist/cli/wizard/prompts.js +0 -482
- package/dist/cli/wizard/prompts.js.map +0 -1
- package/dist/cli/wizard/prompts.mjs +0 -470
- package/dist/cli/wizard/validator.d.ts +0 -13
- package/dist/cli/wizard/validator.d.ts.map +0 -1
- package/dist/cli/wizard/validator.js +0 -234
- package/dist/cli/wizard/validator.js.map +0 -1
- package/dist/cli/wizard/validator.mjs +0 -224
- package/dist/core/backend-interface.d.ts +0 -71
- package/dist/core/backend-interface.d.ts.map +0 -1
- package/dist/core/backend-interface.js +0 -16
- package/dist/core/backend-interface.js.map +0 -1
- package/dist/core/backend-interface.mjs +0 -12
- package/dist/core/native-backend.d.ts +0 -141
- package/dist/core/native-backend.d.ts.map +0 -1
- package/dist/core/native-backend.js +0 -457
- package/dist/core/native-backend.js.map +0 -1
- package/dist/core/native-backend.mjs +0 -449
- package/dist/core/vector-db.d.ts +0 -127
- package/dist/core/vector-db.d.ts.map +0 -1
- package/dist/core/vector-db.js +0 -270
- package/dist/core/vector-db.js.map +0 -1
- package/dist/core/vector-db.mjs +0 -265
- package/dist/core/wasm-backend.d.ts +0 -96
- package/dist/core/wasm-backend.d.ts.map +0 -1
- package/dist/core/wasm-backend.js +0 -393
- package/dist/core/wasm-backend.js.map +0 -1
- package/dist/core/wasm-backend.mjs +0 -385
- package/dist/index/hnsw-optimized.d.ts +0 -75
- package/dist/index/hnsw-optimized.d.ts.map +0 -1
- package/dist/index/hnsw-optimized.js +0 -412
- package/dist/index/hnsw-optimized.js.map +0 -1
- package/dist/index/hnsw-optimized.mjs +0 -407
- package/dist/index/hnsw.d.ts +0 -165
- package/dist/index/hnsw.d.ts.map +0 -1
- package/dist/index/hnsw.js +0 -521
- package/dist/index/hnsw.js.map +0 -1
- package/dist/index/hnsw.mjs +0 -516
- package/dist/index.browser.d.ts +0 -47
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.browser.js +0 -72
- package/dist/index.browser.js.map +0 -1
- package/dist/index.browser.mjs +0 -54
- package/dist/index.d.ts +0 -59
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -84
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -65
- package/dist/mcp/learning/core/experience-buffer.d.ts +0 -61
- package/dist/mcp/learning/core/experience-buffer.d.ts.map +0 -1
- package/dist/mcp/learning/core/experience-buffer.js +0 -175
- package/dist/mcp/learning/core/experience-buffer.js.map +0 -1
- package/dist/mcp/learning/core/experience-buffer.mjs +0 -170
- package/dist/mcp/learning/core/experience-recorder.d.ts +0 -40
- package/dist/mcp/learning/core/experience-recorder.d.ts.map +0 -1
- package/dist/mcp/learning/core/experience-recorder.js +0 -200
- package/dist/mcp/learning/core/experience-recorder.js.map +0 -1
- package/dist/mcp/learning/core/experience-recorder.mjs +0 -195
- package/dist/mcp/learning/core/learning-manager.d.ts +0 -66
- package/dist/mcp/learning/core/learning-manager.d.ts.map +0 -1
- package/dist/mcp/learning/core/learning-manager.js +0 -252
- package/dist/mcp/learning/core/learning-manager.js.map +0 -1
- package/dist/mcp/learning/core/learning-manager.mjs +0 -247
- package/dist/mcp/learning/core/policy-optimizer.d.ts +0 -53
- package/dist/mcp/learning/core/policy-optimizer.d.ts.map +0 -1
- package/dist/mcp/learning/core/policy-optimizer.js +0 -251
- package/dist/mcp/learning/core/policy-optimizer.js.map +0 -1
- package/dist/mcp/learning/core/policy-optimizer.mjs +0 -246
- package/dist/mcp/learning/core/reward-estimator.d.ts +0 -44
- package/dist/mcp/learning/core/reward-estimator.d.ts.map +0 -1
- package/dist/mcp/learning/core/reward-estimator.js +0 -158
- package/dist/mcp/learning/core/reward-estimator.js.map +0 -1
- package/dist/mcp/learning/core/reward-estimator.mjs +0 -153
- package/dist/mcp/learning/core/session-manager.d.ts +0 -63
- package/dist/mcp/learning/core/session-manager.d.ts.map +0 -1
- package/dist/mcp/learning/core/session-manager.js +0 -202
- package/dist/mcp/learning/core/session-manager.js.map +0 -1
- package/dist/mcp/learning/core/session-manager.mjs +0 -197
- package/dist/mcp/learning/index.d.ts +0 -19
- package/dist/mcp/learning/index.d.ts.map +0 -1
- package/dist/mcp/learning/index.js +0 -30
- package/dist/mcp/learning/index.js.map +0 -1
- package/dist/mcp/learning/index.mjs +0 -19
- package/dist/mcp/learning/tools/mcp-learning-tools.d.ts +0 -369
- package/dist/mcp/learning/tools/mcp-learning-tools.d.ts.map +0 -1
- package/dist/mcp/learning/tools/mcp-learning-tools.js +0 -361
- package/dist/mcp/learning/tools/mcp-learning-tools.js.map +0 -1
- package/dist/mcp/learning/tools/mcp-learning-tools.mjs +0 -356
- package/dist/mcp/learning/types/index.d.ts +0 -138
- package/dist/mcp/learning/types/index.d.ts.map +0 -1
- package/dist/mcp/learning/types/index.js +0 -6
- package/dist/mcp/learning/types/index.js.map +0 -1
- package/dist/mcp/learning/types/index.mjs +0 -4
- package/dist/mcp-server.d.ts +0 -29
- package/dist/mcp-server.d.ts.map +0 -1
- package/dist/mcp-server.js +0 -862
- package/dist/mcp-server.js.map +0 -1
- package/dist/mcp-server.mjs +0 -857
- package/dist/plugins/base-plugin.d.ts +0 -114
- package/dist/plugins/base-plugin.d.ts.map +0 -1
- package/dist/plugins/base-plugin.js +0 -313
- package/dist/plugins/base-plugin.js.map +0 -1
- package/dist/plugins/base-plugin.mjs +0 -275
- package/dist/plugins/implementations/active-learning.d.ts +0 -135
- package/dist/plugins/implementations/active-learning.d.ts.map +0 -1
- package/dist/plugins/implementations/active-learning.js +0 -372
- package/dist/plugins/implementations/active-learning.js.map +0 -1
- package/dist/plugins/implementations/active-learning.mjs +0 -367
- package/dist/plugins/implementations/actor-critic.d.ts +0 -64
- package/dist/plugins/implementations/actor-critic.d.ts.map +0 -1
- package/dist/plugins/implementations/actor-critic.js +0 -363
- package/dist/plugins/implementations/actor-critic.js.map +0 -1
- package/dist/plugins/implementations/actor-critic.mjs +0 -358
- package/dist/plugins/implementations/adversarial-training.d.ts +0 -133
- package/dist/plugins/implementations/adversarial-training.d.ts.map +0 -1
- package/dist/plugins/implementations/adversarial-training.js +0 -409
- package/dist/plugins/implementations/adversarial-training.js.map +0 -1
- package/dist/plugins/implementations/adversarial-training.mjs +0 -404
- package/dist/plugins/implementations/curriculum-learning.d.ts +0 -132
- package/dist/plugins/implementations/curriculum-learning.d.ts.map +0 -1
- package/dist/plugins/implementations/curriculum-learning.js +0 -354
- package/dist/plugins/implementations/curriculum-learning.js.map +0 -1
- package/dist/plugins/implementations/curriculum-learning.mjs +0 -349
- package/dist/plugins/implementations/decision-transformer.d.ts +0 -77
- package/dist/plugins/implementations/decision-transformer.d.ts.map +0 -1
- package/dist/plugins/implementations/decision-transformer.js +0 -422
- package/dist/plugins/implementations/decision-transformer.js.map +0 -1
- package/dist/plugins/implementations/decision-transformer.mjs +0 -417
- package/dist/plugins/implementations/federated-learning.d.ts +0 -126
- package/dist/plugins/implementations/federated-learning.d.ts.map +0 -1
- package/dist/plugins/implementations/federated-learning.js +0 -436
- package/dist/plugins/implementations/federated-learning.js.map +0 -1
- package/dist/plugins/implementations/federated-learning.mjs +0 -431
- package/dist/plugins/implementations/index.d.ts +0 -30
- package/dist/plugins/implementations/index.d.ts.map +0 -1
- package/dist/plugins/implementations/index.js +0 -45
- package/dist/plugins/implementations/index.js.map +0 -1
- package/dist/plugins/implementations/index.mjs +0 -31
- package/dist/plugins/implementations/multi-task-learning.d.ts +0 -115
- package/dist/plugins/implementations/multi-task-learning.d.ts.map +0 -1
- package/dist/plugins/implementations/multi-task-learning.js +0 -369
- package/dist/plugins/implementations/multi-task-learning.js.map +0 -1
- package/dist/plugins/implementations/multi-task-learning.mjs +0 -364
- package/dist/plugins/implementations/neural-architecture-search.d.ts +0 -148
- package/dist/plugins/implementations/neural-architecture-search.d.ts.map +0 -1
- package/dist/plugins/implementations/neural-architecture-search.js +0 -379
- package/dist/plugins/implementations/neural-architecture-search.js.map +0 -1
- package/dist/plugins/implementations/neural-architecture-search.mjs +0 -374
- package/dist/plugins/implementations/q-learning.d.ts +0 -98
- package/dist/plugins/implementations/q-learning.d.ts.map +0 -1
- package/dist/plugins/implementations/q-learning.js +0 -435
- package/dist/plugins/implementations/q-learning.js.map +0 -1
- package/dist/plugins/implementations/q-learning.mjs +0 -430
- package/dist/plugins/implementations/sarsa.d.ts +0 -103
- package/dist/plugins/implementations/sarsa.d.ts.map +0 -1
- package/dist/plugins/implementations/sarsa.js +0 -347
- package/dist/plugins/implementations/sarsa.js.map +0 -1
- package/dist/plugins/implementations/sarsa.mjs +0 -342
- package/dist/plugins/index.d.ts +0 -107
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -179
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/index.mjs +0 -168
- package/dist/plugins/interface.d.ts +0 -439
- package/dist/plugins/interface.d.ts.map +0 -1
- package/dist/plugins/interface.js +0 -12
- package/dist/plugins/interface.js.map +0 -1
- package/dist/plugins/interface.mjs +0 -10
- package/dist/plugins/learning-plugin.interface.d.ts +0 -257
- package/dist/plugins/learning-plugin.interface.d.ts.map +0 -1
- package/dist/plugins/learning-plugin.interface.js +0 -7
- package/dist/plugins/learning-plugin.interface.js.map +0 -1
- package/dist/plugins/learning-plugin.interface.mjs +0 -5
- package/dist/plugins/plugin-exports.d.ts +0 -71
- package/dist/plugins/plugin-exports.d.ts.map +0 -1
- package/dist/plugins/plugin-exports.js +0 -78
- package/dist/plugins/plugin-exports.js.map +0 -1
- package/dist/plugins/plugin-exports.mjs +0 -69
- package/dist/plugins/registry.d.ts +0 -206
- package/dist/plugins/registry.d.ts.map +0 -1
- package/dist/plugins/registry.js +0 -365
- package/dist/plugins/registry.js.map +0 -1
- package/dist/plugins/registry.mjs +0 -356
- package/dist/plugins/validator.d.ts +0 -63
- package/dist/plugins/validator.d.ts.map +0 -1
- package/dist/plugins/validator.js +0 -464
- package/dist/plugins/validator.js.map +0 -1
- package/dist/plugins/validator.mjs +0 -458
- package/dist/presets.d.ts +0 -65
- package/dist/presets.d.ts.map +0 -1
- package/dist/presets.js +0 -145
- package/dist/presets.js.map +0 -1
- package/dist/presets.mjs +0 -140
- package/dist/quantization/binary-quantization.d.ts +0 -104
- package/dist/quantization/binary-quantization.d.ts.map +0 -1
- package/dist/quantization/binary-quantization.js +0 -246
- package/dist/quantization/binary-quantization.js.map +0 -1
- package/dist/quantization/binary-quantization.mjs +0 -240
- package/dist/quantization/optimized-pq.d.ts +0 -138
- package/dist/quantization/optimized-pq.d.ts.map +0 -1
- package/dist/quantization/optimized-pq.js +0 -320
- package/dist/quantization/optimized-pq.js.map +0 -1
- package/dist/quantization/optimized-pq.mjs +0 -313
- package/dist/quantization/product-quantization.d.ts +0 -109
- package/dist/quantization/product-quantization.d.ts.map +0 -1
- package/dist/quantization/product-quantization.js +0 -287
- package/dist/quantization/product-quantization.js.map +0 -1
- package/dist/quantization/product-quantization.mjs +0 -282
- package/dist/quantization/scalar-quantization.d.ts +0 -100
- package/dist/quantization/scalar-quantization.d.ts.map +0 -1
- package/dist/quantization/scalar-quantization.js +0 -324
- package/dist/quantization/scalar-quantization.js.map +0 -1
- package/dist/quantization/scalar-quantization.mjs +0 -319
- package/dist/query/index.d.ts +0 -6
- package/dist/query/index.d.ts.map +0 -1
- package/dist/query/index.js +0 -9
- package/dist/query/index.js.map +0 -1
- package/dist/query/index.mjs +0 -4
- package/dist/query/query-builder.d.ts +0 -323
- package/dist/query/query-builder.d.ts.map +0 -1
- package/dist/query/query-builder.js +0 -524
- package/dist/query/query-builder.js.map +0 -1
- package/dist/query/query-builder.mjs +0 -519
- package/dist/reasoning/context-synthesizer.d.ts +0 -57
- package/dist/reasoning/context-synthesizer.d.ts.map +0 -1
- package/dist/reasoning/context-synthesizer.js +0 -224
- package/dist/reasoning/context-synthesizer.js.map +0 -1
- package/dist/reasoning/context-synthesizer.mjs +0 -219
- package/dist/reasoning/experience-curator.d.ts +0 -66
- package/dist/reasoning/experience-curator.d.ts.map +0 -1
- package/dist/reasoning/experience-curator.js +0 -288
- package/dist/reasoning/experience-curator.js.map +0 -1
- package/dist/reasoning/experience-curator.mjs +0 -283
- package/dist/reasoning/memory-optimizer.d.ts +0 -69
- package/dist/reasoning/memory-optimizer.d.ts.map +0 -1
- package/dist/reasoning/memory-optimizer.js +0 -331
- package/dist/reasoning/memory-optimizer.js.map +0 -1
- package/dist/reasoning/memory-optimizer.mjs +0 -326
- package/dist/reasoning/pattern-matcher.d.ts +0 -59
- package/dist/reasoning/pattern-matcher.d.ts.map +0 -1
- package/dist/reasoning/pattern-matcher.js +0 -229
- package/dist/reasoning/pattern-matcher.js.map +0 -1
- package/dist/reasoning/pattern-matcher.mjs +0 -224
- package/dist/reasoningbank/adapter/agentdb-adapter.d.ts +0 -118
- package/dist/reasoningbank/adapter/agentdb-adapter.d.ts.map +0 -1
- package/dist/reasoningbank/adapter/agentdb-adapter.js +0 -477
- package/dist/reasoningbank/adapter/agentdb-adapter.js.map +0 -1
- package/dist/reasoningbank/adapter/types.d.ts +0 -113
- package/dist/reasoningbank/adapter/types.d.ts.map +0 -1
- package/dist/reasoningbank/adapter/types.js +0 -9
- package/dist/reasoningbank/adapter/types.js.map +0 -1
- package/dist/reasoningbank/cli/commands.d.ts +0 -16
- package/dist/reasoningbank/cli/commands.d.ts.map +0 -1
- package/dist/reasoningbank/cli/commands.js +0 -272
- package/dist/reasoningbank/cli/commands.js.map +0 -1
- package/dist/reasoningbank/mcp/agentdb-tools.d.ts +0 -319
- package/dist/reasoningbank/mcp/agentdb-tools.d.ts.map +0 -1
- package/dist/reasoningbank/mcp/agentdb-tools.js +0 -301
- package/dist/reasoningbank/mcp/agentdb-tools.js.map +0 -1
- package/dist/reasoningbank/migration/migrate.d.ts +0 -25
- package/dist/reasoningbank/migration/migrate.d.ts.map +0 -1
- package/dist/reasoningbank/migration/migrate.js +0 -178
- package/dist/reasoningbank/migration/migrate.js.map +0 -1
- package/dist/reasoningbank/reasoning/context-synthesizer.d.ts +0 -37
- package/dist/reasoningbank/reasoning/context-synthesizer.d.ts.map +0 -1
- package/dist/reasoningbank/reasoning/context-synthesizer.js +0 -114
- package/dist/reasoningbank/reasoning/context-synthesizer.js.map +0 -1
- package/dist/reasoningbank/reasoning/experience-curator.d.ts +0 -39
- package/dist/reasoningbank/reasoning/experience-curator.d.ts.map +0 -1
- package/dist/reasoningbank/reasoning/experience-curator.js +0 -98
- package/dist/reasoningbank/reasoning/experience-curator.js.map +0 -1
- package/dist/reasoningbank/reasoning/memory-optimizer.d.ts +0 -44
- package/dist/reasoningbank/reasoning/memory-optimizer.d.ts.map +0 -1
- package/dist/reasoningbank/reasoning/memory-optimizer.js +0 -184
- package/dist/reasoningbank/reasoning/memory-optimizer.js.map +0 -1
- package/dist/reasoningbank/reasoning/pattern-matcher.d.ts +0 -40
- package/dist/reasoningbank/reasoning/pattern-matcher.d.ts.map +0 -1
- package/dist/reasoningbank/reasoning/pattern-matcher.js +0 -87
- package/dist/reasoningbank/reasoning/pattern-matcher.js.map +0 -1
- package/dist/reasoningbank/sync/quic-sync.d.ts +0 -77
- package/dist/reasoningbank/sync/quic-sync.d.ts.map +0 -1
- package/dist/reasoningbank/sync/quic-sync.js +0 -165
- package/dist/reasoningbank/sync/quic-sync.js.map +0 -1
- package/dist/sync/conflict.d.ts +0 -78
- package/dist/sync/conflict.d.ts.map +0 -1
- package/dist/sync/conflict.js +0 -202
- package/dist/sync/conflict.js.map +0 -1
- package/dist/sync/conflict.mjs +0 -196
- package/dist/sync/coordinator.d.ts +0 -111
- package/dist/sync/coordinator.d.ts.map +0 -1
- package/dist/sync/coordinator.js +0 -256
- package/dist/sync/coordinator.js.map +0 -1
- package/dist/sync/coordinator.mjs +0 -250
- package/dist/sync/delta.d.ts +0 -81
- package/dist/sync/delta.d.ts.map +0 -1
- package/dist/sync/delta.js +0 -245
- package/dist/sync/delta.js.map +0 -1
- package/dist/sync/delta.mjs +0 -238
- package/dist/sync/index.d.ts +0 -11
- package/dist/sync/index.d.ts.map +0 -1
- package/dist/sync/index.js +0 -22
- package/dist/sync/index.js.map +0 -1
- package/dist/sync/index.mjs +0 -9
- package/dist/sync/quic-sync.d.ts +0 -81
- package/dist/sync/quic-sync.d.ts.map +0 -1
- package/dist/sync/quic-sync.js +0 -329
- package/dist/sync/quic-sync.js.map +0 -1
- package/dist/sync/quic-sync.mjs +0 -323
- package/dist/sync/types.d.ts +0 -168
- package/dist/sync/types.d.ts.map +0 -1
- package/dist/sync/types.js +0 -8
- package/dist/sync/types.js.map +0 -1
- package/dist/sync/types.mjs +0 -6
- package/dist/types/index.d.ts +0 -117
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -6
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -4
- package/dist/wasm/sql-wasm-debug.js +0 -6989
- package/dist/wasm/sql-wasm-debug.wasm +0 -0
- package/dist/wasm/sql-wasm.js +0 -188
- package/dist/wasm/sql-wasm.wasm +0 -0
- package/dist/wasm-loader.d.ts +0 -32
- package/dist/wasm-loader.d.ts.map +0 -1
- package/dist/wasm-loader.js +0 -78
- package/dist/wasm-loader.js.map +0 -1
- package/dist/wasm-loader.mjs +0 -67
- package/examples/adaptive-learning.ts +0 -284
- package/examples/browser/README.md +0 -732
- package/examples/browser/adaptive-recommendations/index.html +0 -427
- package/examples/browser/collaborative-filtering/index.html +0 -310
- package/examples/browser/continual-learning/index.html +0 -736
- package/examples/browser/experience-replay/index.html +0 -616
- package/examples/browser/index.html +0 -369
- package/examples/browser/meta-learning/index.html +0 -789
- package/examples/browser/neuro-symbolic/index.html +0 -692
- package/examples/browser/pattern-learning/index.html +0 -620
- package/examples/browser/quantum-inspired/index.html +0 -728
- package/examples/browser/rag/index.html +0 -624
- package/examples/browser/swarm-intelligence/index.html +0 -811
- package/examples/browser-basic.html +0 -170
- package/examples/browser-wasm-real.html +0 -231
- package/examples/hnsw-example.ts +0 -148
- package/examples/mcp-learning-example.ts +0 -220
- package/examples/node-basic.js +0 -70
- package/examples/quic-sync-example.ts +0 -310
- package/examples/quick-start.js +0 -68
- package/examples/test-v1.0.7-cdn.html +0 -190
- package/examples/wasm-example.ts +0 -222
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SessionManager - Manages learning session lifecycle and state
|
|
3
|
-
*/
|
|
4
|
-
export class SessionManager {
|
|
5
|
-
constructor(db) {
|
|
6
|
-
this.activeSessions = new Map();
|
|
7
|
-
this.db = db;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a new learning session
|
|
11
|
-
*/
|
|
12
|
-
async createSession(userId, sessionType, plugin, config = {}) {
|
|
13
|
-
const sessionId = `session_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
14
|
-
const session = {
|
|
15
|
-
sessionId,
|
|
16
|
-
userId,
|
|
17
|
-
sessionType,
|
|
18
|
-
plugin,
|
|
19
|
-
status: 'active',
|
|
20
|
-
startTime: Date.now(),
|
|
21
|
-
experienceCount: 0,
|
|
22
|
-
config,
|
|
23
|
-
};
|
|
24
|
-
this.activeSessions.set(sessionId, session);
|
|
25
|
-
await this.persistSession(session);
|
|
26
|
-
return session;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get active session by ID
|
|
30
|
-
*/
|
|
31
|
-
getSession(sessionId) {
|
|
32
|
-
return this.activeSessions.get(sessionId);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get all active sessions for a user
|
|
36
|
-
*/
|
|
37
|
-
getUserSessions(userId) {
|
|
38
|
-
return Array.from(this.activeSessions.values()).filter((session) => session.userId === userId && session.status === 'active');
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Pause a learning session
|
|
42
|
-
*/
|
|
43
|
-
async pauseSession(sessionId) {
|
|
44
|
-
const session = this.activeSessions.get(sessionId);
|
|
45
|
-
if (!session) {
|
|
46
|
-
throw new Error(`Session ${sessionId} not found`);
|
|
47
|
-
}
|
|
48
|
-
session.status = 'paused';
|
|
49
|
-
await this.persistSession(session);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Resume a paused session
|
|
53
|
-
*/
|
|
54
|
-
async resumeSession(sessionId) {
|
|
55
|
-
const session = this.activeSessions.get(sessionId);
|
|
56
|
-
if (!session) {
|
|
57
|
-
throw new Error(`Session ${sessionId} not found`);
|
|
58
|
-
}
|
|
59
|
-
if (session.status !== 'paused') {
|
|
60
|
-
throw new Error(`Session ${sessionId} is not paused`);
|
|
61
|
-
}
|
|
62
|
-
session.status = 'active';
|
|
63
|
-
await this.persistSession(session);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* End a learning session
|
|
67
|
-
*/
|
|
68
|
-
async endSession(sessionId) {
|
|
69
|
-
const session = this.activeSessions.get(sessionId);
|
|
70
|
-
if (!session) {
|
|
71
|
-
throw new Error(`Session ${sessionId} not found`);
|
|
72
|
-
}
|
|
73
|
-
session.status = 'ended';
|
|
74
|
-
session.endTime = Date.now();
|
|
75
|
-
await this.persistSession(session);
|
|
76
|
-
this.activeSessions.delete(sessionId);
|
|
77
|
-
return session;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Update session experience count
|
|
81
|
-
*/
|
|
82
|
-
incrementExperienceCount(sessionId) {
|
|
83
|
-
const session = this.activeSessions.get(sessionId);
|
|
84
|
-
if (session) {
|
|
85
|
-
session.experienceCount++;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Update session policy
|
|
90
|
-
*/
|
|
91
|
-
async updateSessionPolicy(sessionId, policy) {
|
|
92
|
-
const session = this.activeSessions.get(sessionId);
|
|
93
|
-
if (!session) {
|
|
94
|
-
throw new Error(`Session ${sessionId} not found`);
|
|
95
|
-
}
|
|
96
|
-
session.currentPolicy = policy;
|
|
97
|
-
await this.persistSession(session);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Get session metrics
|
|
101
|
-
*/
|
|
102
|
-
getSessionMetrics(sessionId) {
|
|
103
|
-
const session = this.activeSessions.get(sessionId);
|
|
104
|
-
if (!session) {
|
|
105
|
-
throw new Error(`Session ${sessionId} not found`);
|
|
106
|
-
}
|
|
107
|
-
const endTime = session.endTime || Date.now();
|
|
108
|
-
const duration = endTime - session.startTime;
|
|
109
|
-
return {
|
|
110
|
-
duration,
|
|
111
|
-
experienceCount: session.experienceCount,
|
|
112
|
-
status: session.status,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Persist session to vector database
|
|
117
|
-
*/
|
|
118
|
-
async persistSession(session) {
|
|
119
|
-
// Create a simple embedding for session metadata
|
|
120
|
-
const sessionText = JSON.stringify({
|
|
121
|
-
userId: session.userId,
|
|
122
|
-
sessionType: session.sessionType,
|
|
123
|
-
plugin: session.plugin,
|
|
124
|
-
});
|
|
125
|
-
const embedding = new Float32Array(768);
|
|
126
|
-
for (let i = 0; i < sessionText.length; i++) {
|
|
127
|
-
const index = sessionText.charCodeAt(i) % 768;
|
|
128
|
-
embedding[index] += 1;
|
|
129
|
-
}
|
|
130
|
-
// Normalize
|
|
131
|
-
const magnitude = Math.sqrt(embedding.reduce((sum, val) => sum + val * val, 0));
|
|
132
|
-
if (magnitude > 0) {
|
|
133
|
-
for (let i = 0; i < embedding.length; i++) {
|
|
134
|
-
embedding[i] /= magnitude;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
await this.db.insert({
|
|
138
|
-
embedding: Array.from(embedding),
|
|
139
|
-
metadata: {
|
|
140
|
-
type: 'learning_session',
|
|
141
|
-
sessionId: session.sessionId,
|
|
142
|
-
userId: session.userId,
|
|
143
|
-
sessionType: session.sessionType,
|
|
144
|
-
plugin: session.plugin,
|
|
145
|
-
status: session.status,
|
|
146
|
-
startTime: session.startTime,
|
|
147
|
-
endTime: session.endTime,
|
|
148
|
-
experienceCount: session.experienceCount,
|
|
149
|
-
config: session.config,
|
|
150
|
-
currentPolicy: session.currentPolicy,
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Restore sessions from database
|
|
156
|
-
*/
|
|
157
|
-
async restoreSessions(userId) {
|
|
158
|
-
const filter = { type: 'learning_session', status: 'active' };
|
|
159
|
-
if (userId) {
|
|
160
|
-
filter.userId = userId;
|
|
161
|
-
}
|
|
162
|
-
const results = await this.db.search(Array(768).fill(0), 1000);
|
|
163
|
-
const sessions = [];
|
|
164
|
-
for (const result of results) {
|
|
165
|
-
const session = {
|
|
166
|
-
sessionId: result.metadata.sessionId,
|
|
167
|
-
userId: result.metadata.userId,
|
|
168
|
-
sessionType: result.metadata.sessionType,
|
|
169
|
-
plugin: result.metadata.plugin,
|
|
170
|
-
status: result.metadata.status,
|
|
171
|
-
startTime: result.metadata.startTime,
|
|
172
|
-
endTime: result.metadata.endTime,
|
|
173
|
-
experienceCount: result.metadata.experienceCount,
|
|
174
|
-
config: result.metadata.config,
|
|
175
|
-
currentPolicy: result.metadata.currentPolicy,
|
|
176
|
-
};
|
|
177
|
-
this.activeSessions.set(session.sessionId, session);
|
|
178
|
-
sessions.push(session);
|
|
179
|
-
}
|
|
180
|
-
return sessions;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Cleanup old sessions
|
|
184
|
-
*/
|
|
185
|
-
async cleanupOldSessions(maxAge = 7 * 24 * 60 * 60 * 1000) {
|
|
186
|
-
const cutoff = Date.now() - maxAge;
|
|
187
|
-
let cleaned = 0;
|
|
188
|
-
for (const [sessionId, session] of this.activeSessions.entries()) {
|
|
189
|
-
const endTime = session.endTime || Date.now();
|
|
190
|
-
if (endTime < cutoff && session.status === 'ended') {
|
|
191
|
-
this.activeSessions.delete(sessionId);
|
|
192
|
-
cleaned++;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return cleaned;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Learning Integration - Main Entry Point
|
|
3
|
-
*
|
|
4
|
-
* Provides reinforcement learning capabilities for MCP tools including:
|
|
5
|
-
* - Experience recording and replay
|
|
6
|
-
* - Multi-dimensional reward calculation
|
|
7
|
-
* - Policy optimization (Q-learning)
|
|
8
|
-
* - Session management
|
|
9
|
-
* - Transfer learning between tasks
|
|
10
|
-
*/
|
|
11
|
-
export { LearningManager } from './core/learning-manager.js';
|
|
12
|
-
export { ExperienceRecorder } from './core/experience-recorder.js';
|
|
13
|
-
export { RewardEstimator } from './core/reward-estimator.js';
|
|
14
|
-
export { SessionManager } from './core/session-manager.js';
|
|
15
|
-
export { PolicyOptimizer } from './core/policy-optimizer.js';
|
|
16
|
-
export { ExperienceBuffer } from './core/experience-buffer.js';
|
|
17
|
-
export { MCPLearningTools } from './tools/mcp-learning-tools.js';
|
|
18
|
-
export type { ExecutionContext, State, Action, Experience, Outcome, Reward, ActionPrediction, TrainingOptions, TrainingMetrics, LearningSession, FeedbackInput, LearningMetrics, TransferMetrics, } from './types/index.js';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mcp/learning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,YAAY,EACV,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,eAAe,EACf,eAAe,GAChB,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* MCP Learning Integration - Main Entry Point
|
|
4
|
-
*
|
|
5
|
-
* Provides reinforcement learning capabilities for MCP tools including:
|
|
6
|
-
* - Experience recording and replay
|
|
7
|
-
* - Multi-dimensional reward calculation
|
|
8
|
-
* - Policy optimization (Q-learning)
|
|
9
|
-
* - Session management
|
|
10
|
-
* - Transfer learning between tasks
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.MCPLearningTools = exports.ExperienceBuffer = exports.PolicyOptimizer = exports.SessionManager = exports.RewardEstimator = exports.ExperienceRecorder = exports.LearningManager = void 0;
|
|
14
|
-
// Core classes
|
|
15
|
-
var learning_manager_js_1 = require("./core/learning-manager.js");
|
|
16
|
-
Object.defineProperty(exports, "LearningManager", { enumerable: true, get: function () { return learning_manager_js_1.LearningManager; } });
|
|
17
|
-
var experience_recorder_js_1 = require("./core/experience-recorder.js");
|
|
18
|
-
Object.defineProperty(exports, "ExperienceRecorder", { enumerable: true, get: function () { return experience_recorder_js_1.ExperienceRecorder; } });
|
|
19
|
-
var reward_estimator_js_1 = require("./core/reward-estimator.js");
|
|
20
|
-
Object.defineProperty(exports, "RewardEstimator", { enumerable: true, get: function () { return reward_estimator_js_1.RewardEstimator; } });
|
|
21
|
-
var session_manager_js_1 = require("./core/session-manager.js");
|
|
22
|
-
Object.defineProperty(exports, "SessionManager", { enumerable: true, get: function () { return session_manager_js_1.SessionManager; } });
|
|
23
|
-
var policy_optimizer_js_1 = require("./core/policy-optimizer.js");
|
|
24
|
-
Object.defineProperty(exports, "PolicyOptimizer", { enumerable: true, get: function () { return policy_optimizer_js_1.PolicyOptimizer; } });
|
|
25
|
-
var experience_buffer_js_1 = require("./core/experience-buffer.js");
|
|
26
|
-
Object.defineProperty(exports, "ExperienceBuffer", { enumerable: true, get: function () { return experience_buffer_js_1.ExperienceBuffer; } });
|
|
27
|
-
// MCP tools
|
|
28
|
-
var mcp_learning_tools_js_1 = require("./tools/mcp-learning-tools.js");
|
|
29
|
-
Object.defineProperty(exports, "MCPLearningTools", { enumerable: true, get: function () { return mcp_learning_tools_js_1.MCPLearningTools; } });
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mcp/learning/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,eAAe;AACf,kEAA6D;AAApD,sHAAA,eAAe,OAAA;AACxB,wEAAmE;AAA1D,4HAAA,kBAAkB,OAAA;AAC3B,kEAA6D;AAApD,sHAAA,eAAe,OAAA;AACxB,gEAA2D;AAAlD,oHAAA,cAAc,OAAA;AACvB,kEAA6D;AAApD,sHAAA,eAAe,OAAA;AACxB,oEAA+D;AAAtD,wHAAA,gBAAgB,OAAA;AAEzB,YAAY;AACZ,uEAAiE;AAAxD,yHAAA,gBAAgB,OAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Learning Integration - Main Entry Point
|
|
3
|
-
*
|
|
4
|
-
* Provides reinforcement learning capabilities for MCP tools including:
|
|
5
|
-
* - Experience recording and replay
|
|
6
|
-
* - Multi-dimensional reward calculation
|
|
7
|
-
* - Policy optimization (Q-learning)
|
|
8
|
-
* - Session management
|
|
9
|
-
* - Transfer learning between tasks
|
|
10
|
-
*/
|
|
11
|
-
// Core classes
|
|
12
|
-
export { LearningManager } from './core/learning-manager.mjs';
|
|
13
|
-
export { ExperienceRecorder } from './core/experience-recorder.mjs';
|
|
14
|
-
export { RewardEstimator } from './core/reward-estimator.mjs';
|
|
15
|
-
export { SessionManager } from './core/session-manager.mjs';
|
|
16
|
-
export { PolicyOptimizer } from './core/policy-optimizer.mjs';
|
|
17
|
-
export { ExperienceBuffer } from './core/experience-buffer.mjs';
|
|
18
|
-
// MCP tools
|
|
19
|
-
export { MCPLearningTools } from './tools/mcp-learning-tools.mjs';
|
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Learning Tools - Tool definitions for MCP server integration
|
|
3
|
-
*/
|
|
4
|
-
import type { LearningManager } from '../core/learning-manager.js';
|
|
5
|
-
export declare class MCPLearningTools {
|
|
6
|
-
private learningManager;
|
|
7
|
-
constructor(learningManager: LearningManager);
|
|
8
|
-
/**
|
|
9
|
-
* Get all tool definitions for MCP server
|
|
10
|
-
*/
|
|
11
|
-
getToolDefinitions(): {
|
|
12
|
-
learning_start_session: {
|
|
13
|
-
description: string;
|
|
14
|
-
inputSchema: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties: {
|
|
17
|
-
userId: {
|
|
18
|
-
type: string;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
sessionType: {
|
|
22
|
-
type: string;
|
|
23
|
-
enum: string[];
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
plugin: {
|
|
27
|
-
type: string;
|
|
28
|
-
default: string;
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
31
|
-
config: {
|
|
32
|
-
type: string;
|
|
33
|
-
description: string;
|
|
34
|
-
properties: {
|
|
35
|
-
learningRate: {
|
|
36
|
-
type: string;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
|
-
discountFactor: {
|
|
40
|
-
type: string;
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
bufferSize: {
|
|
44
|
-
type: string;
|
|
45
|
-
default: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
required: string[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
learning_end_session: {
|
|
54
|
-
description: string;
|
|
55
|
-
inputSchema: {
|
|
56
|
-
type: string;
|
|
57
|
-
properties: {
|
|
58
|
-
sessionId: {
|
|
59
|
-
type: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
required: string[];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
learning_predict: {
|
|
67
|
-
description: string;
|
|
68
|
-
inputSchema: {
|
|
69
|
-
type: string;
|
|
70
|
-
properties: {
|
|
71
|
-
sessionId: {
|
|
72
|
-
type: string;
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
|
-
currentState: {
|
|
76
|
-
type: string;
|
|
77
|
-
description: string;
|
|
78
|
-
properties: {
|
|
79
|
-
taskDescription: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
availableTools: {
|
|
83
|
-
type: string;
|
|
84
|
-
items: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
previousActions: {
|
|
89
|
-
type: string;
|
|
90
|
-
items: {
|
|
91
|
-
type: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
required: string[];
|
|
96
|
-
};
|
|
97
|
-
availableTools: {
|
|
98
|
-
type: string;
|
|
99
|
-
items: {
|
|
100
|
-
type: string;
|
|
101
|
-
};
|
|
102
|
-
description: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
required: string[];
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
learning_feedback: {
|
|
109
|
-
description: string;
|
|
110
|
-
inputSchema: {
|
|
111
|
-
type: string;
|
|
112
|
-
properties: {
|
|
113
|
-
sessionId: {
|
|
114
|
-
type: string;
|
|
115
|
-
description: string;
|
|
116
|
-
};
|
|
117
|
-
actionId: {
|
|
118
|
-
type: string;
|
|
119
|
-
description: string;
|
|
120
|
-
};
|
|
121
|
-
feedback: {
|
|
122
|
-
type: string;
|
|
123
|
-
properties: {
|
|
124
|
-
success: {
|
|
125
|
-
type: string;
|
|
126
|
-
};
|
|
127
|
-
rating: {
|
|
128
|
-
type: string;
|
|
129
|
-
minimum: number;
|
|
130
|
-
maximum: number;
|
|
131
|
-
description: string;
|
|
132
|
-
};
|
|
133
|
-
comments: {
|
|
134
|
-
type: string;
|
|
135
|
-
};
|
|
136
|
-
dimensions: {
|
|
137
|
-
type: string;
|
|
138
|
-
properties: {
|
|
139
|
-
speed: {
|
|
140
|
-
type: string;
|
|
141
|
-
minimum: number;
|
|
142
|
-
maximum: number;
|
|
143
|
-
};
|
|
144
|
-
accuracy: {
|
|
145
|
-
type: string;
|
|
146
|
-
minimum: number;
|
|
147
|
-
maximum: number;
|
|
148
|
-
};
|
|
149
|
-
completeness: {
|
|
150
|
-
type: string;
|
|
151
|
-
minimum: number;
|
|
152
|
-
maximum: number;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
required: string[];
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
required: string[];
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
learning_train: {
|
|
164
|
-
description: string;
|
|
165
|
-
inputSchema: {
|
|
166
|
-
type: string;
|
|
167
|
-
properties: {
|
|
168
|
-
sessionId: {
|
|
169
|
-
type: string;
|
|
170
|
-
description: string;
|
|
171
|
-
};
|
|
172
|
-
options: {
|
|
173
|
-
type: string;
|
|
174
|
-
properties: {
|
|
175
|
-
batchSize: {
|
|
176
|
-
type: string;
|
|
177
|
-
default: number;
|
|
178
|
-
};
|
|
179
|
-
epochs: {
|
|
180
|
-
type: string;
|
|
181
|
-
default: number;
|
|
182
|
-
};
|
|
183
|
-
learningRate: {
|
|
184
|
-
type: string;
|
|
185
|
-
default: number;
|
|
186
|
-
};
|
|
187
|
-
minExperiences: {
|
|
188
|
-
type: string;
|
|
189
|
-
default: number;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
required: string[];
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
learning_metrics: {
|
|
198
|
-
description: string;
|
|
199
|
-
inputSchema: {
|
|
200
|
-
type: string;
|
|
201
|
-
properties: {
|
|
202
|
-
sessionId: {
|
|
203
|
-
type: string;
|
|
204
|
-
description: string;
|
|
205
|
-
};
|
|
206
|
-
period: {
|
|
207
|
-
type: string;
|
|
208
|
-
enum: string[];
|
|
209
|
-
default: string;
|
|
210
|
-
description: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
required: string[];
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
learning_transfer: {
|
|
217
|
-
description: string;
|
|
218
|
-
inputSchema: {
|
|
219
|
-
type: string;
|
|
220
|
-
properties: {
|
|
221
|
-
sourceSessionId: {
|
|
222
|
-
type: string;
|
|
223
|
-
description: string;
|
|
224
|
-
};
|
|
225
|
-
targetSessionId: {
|
|
226
|
-
type: string;
|
|
227
|
-
description: string;
|
|
228
|
-
};
|
|
229
|
-
similarity: {
|
|
230
|
-
type: string;
|
|
231
|
-
minimum: number;
|
|
232
|
-
maximum: number;
|
|
233
|
-
default: number;
|
|
234
|
-
description: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
required: string[];
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
learning_explain: {
|
|
241
|
-
description: string;
|
|
242
|
-
inputSchema: {
|
|
243
|
-
type: string;
|
|
244
|
-
properties: {
|
|
245
|
-
sessionId: {
|
|
246
|
-
type: string;
|
|
247
|
-
description: string;
|
|
248
|
-
};
|
|
249
|
-
state: {
|
|
250
|
-
type: string;
|
|
251
|
-
description: string;
|
|
252
|
-
properties: {
|
|
253
|
-
taskDescription: {
|
|
254
|
-
type: string;
|
|
255
|
-
};
|
|
256
|
-
availableTools: {
|
|
257
|
-
type: string;
|
|
258
|
-
items: {
|
|
259
|
-
type: string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
required: string[];
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
required: string[];
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
experience_record: {
|
|
270
|
-
description: string;
|
|
271
|
-
inputSchema: {
|
|
272
|
-
type: string;
|
|
273
|
-
properties: {
|
|
274
|
-
sessionId: {
|
|
275
|
-
type: string;
|
|
276
|
-
description: string;
|
|
277
|
-
};
|
|
278
|
-
toolName: {
|
|
279
|
-
type: string;
|
|
280
|
-
description: string;
|
|
281
|
-
};
|
|
282
|
-
args: {
|
|
283
|
-
type: string;
|
|
284
|
-
description: string;
|
|
285
|
-
};
|
|
286
|
-
result: {
|
|
287
|
-
description: string;
|
|
288
|
-
};
|
|
289
|
-
outcome: {
|
|
290
|
-
type: string;
|
|
291
|
-
properties: {
|
|
292
|
-
success: {
|
|
293
|
-
type: string;
|
|
294
|
-
};
|
|
295
|
-
executionTime: {
|
|
296
|
-
type: string;
|
|
297
|
-
};
|
|
298
|
-
tokensUsed: {
|
|
299
|
-
type: string;
|
|
300
|
-
};
|
|
301
|
-
error: {
|
|
302
|
-
type: string;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
required: string[];
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
required: string[];
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
reward_signal: {
|
|
312
|
-
description: string;
|
|
313
|
-
inputSchema: {
|
|
314
|
-
type: string;
|
|
315
|
-
properties: {
|
|
316
|
-
outcome: {
|
|
317
|
-
type: string;
|
|
318
|
-
properties: {
|
|
319
|
-
success: {
|
|
320
|
-
type: string;
|
|
321
|
-
};
|
|
322
|
-
executionTime: {
|
|
323
|
-
type: string;
|
|
324
|
-
};
|
|
325
|
-
tokensUsed: {
|
|
326
|
-
type: string;
|
|
327
|
-
};
|
|
328
|
-
result: {
|
|
329
|
-
description: string;
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
required: string[];
|
|
333
|
-
};
|
|
334
|
-
context: {
|
|
335
|
-
type: string;
|
|
336
|
-
properties: {
|
|
337
|
-
userId: {
|
|
338
|
-
type: string;
|
|
339
|
-
};
|
|
340
|
-
sessionId: {
|
|
341
|
-
type: string;
|
|
342
|
-
};
|
|
343
|
-
taskType: {
|
|
344
|
-
type: string;
|
|
345
|
-
enum: string[];
|
|
346
|
-
};
|
|
347
|
-
timestamp: {
|
|
348
|
-
type: string;
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
required: string[];
|
|
352
|
-
};
|
|
353
|
-
userRating: {
|
|
354
|
-
type: string;
|
|
355
|
-
minimum: number;
|
|
356
|
-
maximum: number;
|
|
357
|
-
description: string;
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
required: string[];
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* Handle tool calls
|
|
366
|
-
*/
|
|
367
|
-
handleToolCall(toolName: string, args: any): Promise<any>;
|
|
368
|
-
}
|
|
369
|
-
//# sourceMappingURL=mcp-learning-tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-learning-tools.d.ts","sourceRoot":"","sources":["../../../../src/mcp/learning/tools/mcp-learning-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQnE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,eAAe,CAAkB;gBAE7B,eAAe,EAAE,eAAe;IAI5C;;OAEG;IACH,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwSlB;;OAEG;IACG,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAiGhE"}
|