@miller-tech/uap 1.0.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/LICENSE +21 -0
- package/README.md +888 -0
- package/dist/analyzers/index.d.ts +3 -0
- package/dist/analyzers/index.d.ts.map +1 -0
- package/dist/analyzers/index.js +684 -0
- package/dist/analyzers/index.js.map +1 -0
- package/dist/benchmarks/agents/naive-agent.d.ts +60 -0
- package/dist/benchmarks/agents/naive-agent.d.ts.map +1 -0
- package/dist/benchmarks/agents/naive-agent.js +144 -0
- package/dist/benchmarks/agents/naive-agent.js.map +1 -0
- package/dist/benchmarks/agents/uap-agent.d.ts +167 -0
- package/dist/benchmarks/agents/uap-agent.d.ts.map +1 -0
- package/dist/benchmarks/agents/uap-agent.js +437 -0
- package/dist/benchmarks/agents/uap-agent.js.map +1 -0
- package/dist/benchmarks/benchmark.d.ts +328 -0
- package/dist/benchmarks/benchmark.d.ts.map +1 -0
- package/dist/benchmarks/benchmark.js +112 -0
- package/dist/benchmarks/benchmark.js.map +1 -0
- package/dist/benchmarks/execution-verifier.d.ts +41 -0
- package/dist/benchmarks/execution-verifier.d.ts.map +1 -0
- package/dist/benchmarks/execution-verifier.js +340 -0
- package/dist/benchmarks/execution-verifier.js.map +1 -0
- package/dist/benchmarks/hierarchical-prompting.d.ts +37 -0
- package/dist/benchmarks/hierarchical-prompting.d.ts.map +1 -0
- package/dist/benchmarks/hierarchical-prompting.js +246 -0
- package/dist/benchmarks/hierarchical-prompting.js.map +1 -0
- package/dist/benchmarks/improved-benchmark.d.ts +89 -0
- package/dist/benchmarks/improved-benchmark.d.ts.map +1 -0
- package/dist/benchmarks/improved-benchmark.js +585 -0
- package/dist/benchmarks/improved-benchmark.js.map +1 -0
- package/dist/benchmarks/index.d.ts +11 -0
- package/dist/benchmarks/index.d.ts.map +1 -0
- package/dist/benchmarks/index.js +11 -0
- package/dist/benchmarks/index.js.map +1 -0
- package/dist/benchmarks/model-integration.d.ts +111 -0
- package/dist/benchmarks/model-integration.d.ts.map +1 -0
- package/dist/benchmarks/model-integration.js +904 -0
- package/dist/benchmarks/model-integration.js.map +1 -0
- package/dist/benchmarks/multi-turn-agent.d.ts +44 -0
- package/dist/benchmarks/multi-turn-agent.d.ts.map +1 -0
- package/dist/benchmarks/multi-turn-agent.js +254 -0
- package/dist/benchmarks/multi-turn-agent.js.map +1 -0
- package/dist/benchmarks/multi-turn-loop.d.ts +57 -0
- package/dist/benchmarks/multi-turn-loop.d.ts.map +1 -0
- package/dist/benchmarks/multi-turn-loop.js +167 -0
- package/dist/benchmarks/multi-turn-loop.js.map +1 -0
- package/dist/benchmarks/tasks.d.ts +19 -0
- package/dist/benchmarks/tasks.d.ts.map +1 -0
- package/dist/benchmarks/tasks.js +435 -0
- package/dist/benchmarks/tasks.js.map +1 -0
- package/dist/bin/cli.d.ts +3 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +546 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/bin/llama-server-optimize.d.ts +18 -0
- package/dist/bin/llama-server-optimize.d.ts.map +1 -0
- package/dist/bin/llama-server-optimize.js +708 -0
- package/dist/bin/llama-server-optimize.js.map +1 -0
- package/dist/bin/policy.d.ts +3 -0
- package/dist/bin/policy.d.ts.map +1 -0
- package/dist/bin/policy.js +143 -0
- package/dist/bin/policy.js.map +1 -0
- package/dist/bin/tool-calls.d.ts +3 -0
- package/dist/bin/tool-calls.d.ts.map +1 -0
- package/dist/bin/tool-calls.js +4 -0
- package/dist/bin/tool-calls.js.map +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/web-browser.d.ts +30 -0
- package/dist/browser/web-browser.d.ts.map +1 -0
- package/dist/browser/web-browser.js +93 -0
- package/dist/browser/web-browser.js.map +1 -0
- package/dist/cli/agent.d.ts +20 -0
- package/dist/cli/agent.d.ts.map +1 -0
- package/dist/cli/agent.js +474 -0
- package/dist/cli/agent.js.map +1 -0
- package/dist/cli/analyze.d.ts +7 -0
- package/dist/cli/analyze.d.ts.map +1 -0
- package/dist/cli/analyze.js +103 -0
- package/dist/cli/analyze.js.map +1 -0
- package/dist/cli/completion-gates.d.ts +51 -0
- package/dist/cli/completion-gates.d.ts.map +1 -0
- package/dist/cli/completion-gates.js +201 -0
- package/dist/cli/completion-gates.js.map +1 -0
- package/dist/cli/compliance.d.ts +8 -0
- package/dist/cli/compliance.d.ts.map +1 -0
- package/dist/cli/compliance.js +509 -0
- package/dist/cli/compliance.js.map +1 -0
- package/dist/cli/coord.d.ts +7 -0
- package/dist/cli/coord.d.ts.map +1 -0
- package/dist/cli/coord.js +138 -0
- package/dist/cli/coord.js.map +1 -0
- package/dist/cli/dashboard.d.ts +21 -0
- package/dist/cli/dashboard.d.ts.map +1 -0
- package/dist/cli/dashboard.js +1508 -0
- package/dist/cli/dashboard.js.map +1 -0
- package/dist/cli/deploy.d.ts +19 -0
- package/dist/cli/deploy.d.ts.map +1 -0
- package/dist/cli/deploy.js +387 -0
- package/dist/cli/deploy.js.map +1 -0
- package/dist/cli/droids.d.ts +9 -0
- package/dist/cli/droids.d.ts.map +1 -0
- package/dist/cli/droids.js +227 -0
- package/dist/cli/droids.js.map +1 -0
- package/dist/cli/generate.d.ts +17 -0
- package/dist/cli/generate.d.ts.map +1 -0
- package/dist/cli/generate.js +432 -0
- package/dist/cli/generate.js.map +1 -0
- package/dist/cli/hooks.d.ts +9 -0
- package/dist/cli/hooks.d.ts.map +1 -0
- package/dist/cli/hooks.js +464 -0
- package/dist/cli/hooks.js.map +1 -0
- package/dist/cli/init.d.ts +12 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +364 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/mcp-router.d.ts +16 -0
- package/dist/cli/mcp-router.d.ts.map +1 -0
- package/dist/cli/mcp-router.js +143 -0
- package/dist/cli/mcp-router.js.map +1 -0
- package/dist/cli/memory.d.ts +24 -0
- package/dist/cli/memory.d.ts.map +1 -0
- package/dist/cli/memory.js +885 -0
- package/dist/cli/memory.js.map +1 -0
- package/dist/cli/model.d.ts +15 -0
- package/dist/cli/model.d.ts.map +1 -0
- package/dist/cli/model.js +290 -0
- package/dist/cli/model.js.map +1 -0
- package/dist/cli/patterns.d.ts +26 -0
- package/dist/cli/patterns.d.ts.map +1 -0
- package/dist/cli/patterns.js +862 -0
- package/dist/cli/patterns.js.map +1 -0
- package/dist/cli/rtk-validation.d.ts +9 -0
- package/dist/cli/rtk-validation.d.ts.map +1 -0
- package/dist/cli/rtk-validation.js +9 -0
- package/dist/cli/rtk-validation.js.map +1 -0
- package/dist/cli/rtk.d.ts +34 -0
- package/dist/cli/rtk.d.ts.map +1 -0
- package/dist/cli/rtk.js +401 -0
- package/dist/cli/rtk.js.map +1 -0
- package/dist/cli/schema-diff.d.ts +7 -0
- package/dist/cli/schema-diff.d.ts.map +1 -0
- package/dist/cli/schema-diff.js +11 -0
- package/dist/cli/schema-diff.js.map +1 -0
- package/dist/cli/setup-mcp-router.d.ts +8 -0
- package/dist/cli/setup-mcp-router.d.ts.map +1 -0
- package/dist/cli/setup-mcp-router.js +163 -0
- package/dist/cli/setup-mcp-router.js.map +1 -0
- package/dist/cli/setup-wizard.d.ts +2 -0
- package/dist/cli/setup-wizard.d.ts.map +1 -0
- package/dist/cli/setup-wizard.js +806 -0
- package/dist/cli/setup-wizard.js.map +1 -0
- package/dist/cli/setup.d.ts +15 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +154 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/sync.d.ts +8 -0
- package/dist/cli/sync.d.ts.map +1 -0
- package/dist/cli/sync.js +395 -0
- package/dist/cli/sync.js.map +1 -0
- package/dist/cli/task.d.ts +33 -0
- package/dist/cli/task.d.ts.map +1 -0
- package/dist/cli/task.js +672 -0
- package/dist/cli/task.js.map +1 -0
- package/dist/cli/tool-calls.d.ts +20 -0
- package/dist/cli/tool-calls.d.ts.map +1 -0
- package/dist/cli/tool-calls.js +605 -0
- package/dist/cli/tool-calls.js.map +1 -0
- package/dist/cli/uap.d.ts +10 -0
- package/dist/cli/uap.d.ts.map +1 -0
- package/dist/cli/uap.js +398 -0
- package/dist/cli/uap.js.map +1 -0
- package/dist/cli/update.d.ts +10 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +300 -0
- package/dist/cli/update.js.map +1 -0
- package/dist/cli/visualize.d.ts +77 -0
- package/dist/cli/visualize.d.ts.map +1 -0
- package/dist/cli/visualize.js +287 -0
- package/dist/cli/visualize.js.map +1 -0
- package/dist/cli/worktree.d.ts +9 -0
- package/dist/cli/worktree.d.ts.map +1 -0
- package/dist/cli/worktree.js +213 -0
- package/dist/cli/worktree.js.map +1 -0
- package/dist/coordination/adaptive-patterns.d.ts +65 -0
- package/dist/coordination/adaptive-patterns.d.ts.map +1 -0
- package/dist/coordination/adaptive-patterns.js +108 -0
- package/dist/coordination/adaptive-patterns.js.map +1 -0
- package/dist/coordination/auto-agent.d.ts +82 -0
- package/dist/coordination/auto-agent.d.ts.map +1 -0
- package/dist/coordination/auto-agent.js +145 -0
- package/dist/coordination/auto-agent.js.map +1 -0
- package/dist/coordination/capability-router.d.ts +79 -0
- package/dist/coordination/capability-router.d.ts.map +1 -0
- package/dist/coordination/capability-router.js +334 -0
- package/dist/coordination/capability-router.js.map +1 -0
- package/dist/coordination/database.d.ts +13 -0
- package/dist/coordination/database.d.ts.map +1 -0
- package/dist/coordination/database.js +136 -0
- package/dist/coordination/database.js.map +1 -0
- package/dist/coordination/deploy-batcher.d.ts +122 -0
- package/dist/coordination/deploy-batcher.d.ts.map +1 -0
- package/dist/coordination/deploy-batcher.js +718 -0
- package/dist/coordination/deploy-batcher.js.map +1 -0
- package/dist/coordination/droid-validator.d.ts +59 -0
- package/dist/coordination/droid-validator.d.ts.map +1 -0
- package/dist/coordination/droid-validator.js +142 -0
- package/dist/coordination/droid-validator.js.map +1 -0
- package/dist/coordination/index.d.ts +10 -0
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +10 -0
- package/dist/coordination/index.js.map +1 -0
- package/dist/coordination/pattern-router.d.ts +50 -0
- package/dist/coordination/pattern-router.d.ts.map +1 -0
- package/dist/coordination/pattern-router.js +118 -0
- package/dist/coordination/pattern-router.js.map +1 -0
- package/dist/coordination/service.d.ts +81 -0
- package/dist/coordination/service.d.ts.map +1 -0
- package/dist/coordination/service.js +619 -0
- package/dist/coordination/service.js.map +1 -0
- package/dist/coordination/worktree-enforcer.d.ts +22 -0
- package/dist/coordination/worktree-enforcer.d.ts.map +1 -0
- package/dist/coordination/worktree-enforcer.js +71 -0
- package/dist/coordination/worktree-enforcer.js.map +1 -0
- package/dist/generators/claude-md.d.ts +3 -0
- package/dist/generators/claude-md.d.ts.map +1 -0
- package/dist/generators/claude-md.js +1020 -0
- package/dist/generators/claude-md.js.map +1 -0
- package/dist/generators/template-loader.d.ts +105 -0
- package/dist/generators/template-loader.d.ts.map +1 -0
- package/dist/generators/template-loader.js +291 -0
- package/dist/generators/template-loader.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-router/config/parser.d.ts +9 -0
- package/dist/mcp-router/config/parser.d.ts.map +1 -0
- package/dist/mcp-router/config/parser.js +174 -0
- package/dist/mcp-router/config/parser.js.map +1 -0
- package/dist/mcp-router/executor/client.d.ts +31 -0
- package/dist/mcp-router/executor/client.d.ts.map +1 -0
- package/dist/mcp-router/executor/client.js +189 -0
- package/dist/mcp-router/executor/client.js.map +1 -0
- package/dist/mcp-router/index.d.ts +22 -0
- package/dist/mcp-router/index.d.ts.map +1 -0
- package/dist/mcp-router/index.js +18 -0
- package/dist/mcp-router/index.js.map +1 -0
- package/dist/mcp-router/output-compressor.d.ts +26 -0
- package/dist/mcp-router/output-compressor.d.ts.map +1 -0
- package/dist/mcp-router/output-compressor.js +236 -0
- package/dist/mcp-router/output-compressor.js.map +1 -0
- package/dist/mcp-router/search/fuzzy.d.ts +26 -0
- package/dist/mcp-router/search/fuzzy.d.ts.map +1 -0
- package/dist/mcp-router/search/fuzzy.js +94 -0
- package/dist/mcp-router/search/fuzzy.js.map +1 -0
- package/dist/mcp-router/server.d.ts +50 -0
- package/dist/mcp-router/server.d.ts.map +1 -0
- package/dist/mcp-router/server.js +229 -0
- package/dist/mcp-router/server.js.map +1 -0
- package/dist/mcp-router/session-stats.d.ts +37 -0
- package/dist/mcp-router/session-stats.d.ts.map +1 -0
- package/dist/mcp-router/session-stats.js +56 -0
- package/dist/mcp-router/session-stats.js.map +1 -0
- package/dist/mcp-router/tools/discover.d.ts +37 -0
- package/dist/mcp-router/tools/discover.d.ts.map +1 -0
- package/dist/mcp-router/tools/discover.js +65 -0
- package/dist/mcp-router/tools/discover.js.map +1 -0
- package/dist/mcp-router/tools/execute.d.ts +43 -0
- package/dist/mcp-router/tools/execute.d.ts.map +1 -0
- package/dist/mcp-router/tools/execute.js +144 -0
- package/dist/mcp-router/tools/execute.js.map +1 -0
- package/dist/mcp-router/types.d.ts +62 -0
- package/dist/mcp-router/types.d.ts.map +1 -0
- package/dist/mcp-router/types.js +6 -0
- package/dist/mcp-router/types.js.map +1 -0
- package/dist/memory/adaptive-context.d.ts +149 -0
- package/dist/memory/adaptive-context.d.ts.map +1 -0
- package/dist/memory/adaptive-context.js +1095 -0
- package/dist/memory/adaptive-context.js.map +1 -0
- package/dist/memory/agent-scoped-memory.d.ts +67 -0
- package/dist/memory/agent-scoped-memory.d.ts.map +1 -0
- package/dist/memory/agent-scoped-memory.js +126 -0
- package/dist/memory/agent-scoped-memory.js.map +1 -0
- package/dist/memory/ambiguity-detector.d.ts +54 -0
- package/dist/memory/ambiguity-detector.d.ts.map +1 -0
- package/dist/memory/ambiguity-detector.js +401 -0
- package/dist/memory/ambiguity-detector.js.map +1 -0
- package/dist/memory/backends/base.d.ts +18 -0
- package/dist/memory/backends/base.d.ts.map +1 -0
- package/dist/memory/backends/base.js +2 -0
- package/dist/memory/backends/base.js.map +1 -0
- package/dist/memory/backends/factory.d.ts +4 -0
- package/dist/memory/backends/factory.d.ts.map +1 -0
- package/dist/memory/backends/factory.js +53 -0
- package/dist/memory/backends/factory.js.map +1 -0
- package/dist/memory/backends/github.d.ts +27 -0
- package/dist/memory/backends/github.d.ts.map +1 -0
- package/dist/memory/backends/github.js +134 -0
- package/dist/memory/backends/github.js.map +1 -0
- package/dist/memory/backends/qdrant-cloud.d.ts +32 -0
- package/dist/memory/backends/qdrant-cloud.d.ts.map +1 -0
- package/dist/memory/backends/qdrant-cloud.js +167 -0
- package/dist/memory/backends/qdrant-cloud.js.map +1 -0
- package/dist/memory/context-compressor.d.ts +116 -0
- package/dist/memory/context-compressor.d.ts.map +1 -0
- package/dist/memory/context-compressor.js +430 -0
- package/dist/memory/context-compressor.js.map +1 -0
- package/dist/memory/context-pruner.d.ts +55 -0
- package/dist/memory/context-pruner.d.ts.map +1 -0
- package/dist/memory/context-pruner.js +85 -0
- package/dist/memory/context-pruner.js.map +1 -0
- package/dist/memory/correction-propagator.d.ts +44 -0
- package/dist/memory/correction-propagator.d.ts.map +1 -0
- package/dist/memory/correction-propagator.js +156 -0
- package/dist/memory/correction-propagator.js.map +1 -0
- package/dist/memory/daily-log.d.ts +67 -0
- package/dist/memory/daily-log.d.ts.map +1 -0
- package/dist/memory/daily-log.js +143 -0
- package/dist/memory/daily-log.js.map +1 -0
- package/dist/memory/dynamic-retrieval.d.ts +112 -0
- package/dist/memory/dynamic-retrieval.d.ts.map +1 -0
- package/dist/memory/dynamic-retrieval.js +908 -0
- package/dist/memory/dynamic-retrieval.js.map +1 -0
- package/dist/memory/embeddings.d.ts +172 -0
- package/dist/memory/embeddings.d.ts.map +1 -0
- package/dist/memory/embeddings.js +780 -0
- package/dist/memory/embeddings.js.map +1 -0
- package/dist/memory/generic-uap-patterns.d.ts +7 -0
- package/dist/memory/generic-uap-patterns.d.ts.map +1 -0
- package/dist/memory/generic-uap-patterns.js +43 -0
- package/dist/memory/generic-uap-patterns.js.map +1 -0
- package/dist/memory/hierarchical-memory.d.ts +141 -0
- package/dist/memory/hierarchical-memory.d.ts.map +1 -0
- package/dist/memory/hierarchical-memory.js +485 -0
- package/dist/memory/hierarchical-memory.js.map +1 -0
- package/dist/memory/knowledge-graph.d.ts +98 -0
- package/dist/memory/knowledge-graph.d.ts.map +1 -0
- package/dist/memory/knowledge-graph.js +275 -0
- package/dist/memory/knowledge-graph.js.map +1 -0
- package/dist/memory/memory-consolidator.d.ts +124 -0
- package/dist/memory/memory-consolidator.d.ts.map +1 -0
- package/dist/memory/memory-consolidator.js +514 -0
- package/dist/memory/memory-consolidator.js.map +1 -0
- package/dist/memory/memory-maintenance.d.ts +39 -0
- package/dist/memory/memory-maintenance.d.ts.map +1 -0
- package/dist/memory/memory-maintenance.js +336 -0
- package/dist/memory/memory-maintenance.js.map +1 -0
- package/dist/memory/model-router.d.ts +105 -0
- package/dist/memory/model-router.d.ts.map +1 -0
- package/dist/memory/model-router.js +474 -0
- package/dist/memory/model-router.js.map +1 -0
- package/dist/memory/multi-view-memory.d.ts +134 -0
- package/dist/memory/multi-view-memory.d.ts.map +1 -0
- package/dist/memory/multi-view-memory.js +430 -0
- package/dist/memory/multi-view-memory.js.map +1 -0
- package/dist/memory/predictive-memory.d.ts +79 -0
- package/dist/memory/predictive-memory.d.ts.map +1 -0
- package/dist/memory/predictive-memory.js +294 -0
- package/dist/memory/predictive-memory.js.map +1 -0
- package/dist/memory/prepopulate.d.ts +76 -0
- package/dist/memory/prepopulate.d.ts.map +1 -0
- package/dist/memory/prepopulate.js +832 -0
- package/dist/memory/prepopulate.js.map +1 -0
- package/dist/memory/semantic-compression.d.ts +77 -0
- package/dist/memory/semantic-compression.d.ts.map +1 -0
- package/dist/memory/semantic-compression.js +359 -0
- package/dist/memory/semantic-compression.js.map +1 -0
- package/dist/memory/serverless-qdrant.d.ts +102 -0
- package/dist/memory/serverless-qdrant.d.ts.map +1 -0
- package/dist/memory/serverless-qdrant.js +369 -0
- package/dist/memory/serverless-qdrant.js.map +1 -0
- package/dist/memory/short-term/factory.d.ts +26 -0
- package/dist/memory/short-term/factory.d.ts.map +1 -0
- package/dist/memory/short-term/factory.js +28 -0
- package/dist/memory/short-term/factory.js.map +1 -0
- package/dist/memory/short-term/indexeddb.d.ts +25 -0
- package/dist/memory/short-term/indexeddb.d.ts.map +1 -0
- package/dist/memory/short-term/indexeddb.js +64 -0
- package/dist/memory/short-term/indexeddb.js.map +1 -0
- package/dist/memory/short-term/schema.d.ts +6 -0
- package/dist/memory/short-term/schema.d.ts.map +1 -0
- package/dist/memory/short-term/schema.js +141 -0
- package/dist/memory/short-term/schema.js.map +1 -0
- package/dist/memory/short-term/sqlite.d.ts +64 -0
- package/dist/memory/short-term/sqlite.d.ts.map +1 -0
- package/dist/memory/short-term/sqlite.js +274 -0
- package/dist/memory/short-term/sqlite.js.map +1 -0
- package/dist/memory/speculative-cache.d.ts +111 -0
- package/dist/memory/speculative-cache.d.ts.map +1 -0
- package/dist/memory/speculative-cache.js +457 -0
- package/dist/memory/speculative-cache.js.map +1 -0
- package/dist/memory/task-classifier.d.ts +40 -0
- package/dist/memory/task-classifier.d.ts.map +1 -0
- package/dist/memory/task-classifier.js +342 -0
- package/dist/memory/task-classifier.js.map +1 -0
- package/dist/memory/terminal-bench-knowledge.d.ts +48 -0
- package/dist/memory/terminal-bench-knowledge.d.ts.map +1 -0
- package/dist/memory/terminal-bench-knowledge.js +622 -0
- package/dist/memory/terminal-bench-knowledge.js.map +1 -0
- package/dist/memory/write-gate.d.ts +39 -0
- package/dist/memory/write-gate.d.ts.map +1 -0
- package/dist/memory/write-gate.js +190 -0
- package/dist/memory/write-gate.js.map +1 -0
- package/dist/models/api-client.d.ts +46 -0
- package/dist/models/api-client.d.ts.map +1 -0
- package/dist/models/api-client.js +182 -0
- package/dist/models/api-client.js.map +1 -0
- package/dist/models/execution-profiles.d.ts +64 -0
- package/dist/models/execution-profiles.d.ts.map +1 -0
- package/dist/models/execution-profiles.js +403 -0
- package/dist/models/execution-profiles.js.map +1 -0
- package/dist/models/executor.d.ts +130 -0
- package/dist/models/executor.d.ts.map +1 -0
- package/dist/models/executor.js +382 -0
- package/dist/models/executor.js.map +1 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +23 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/plan-validator.d.ts +37 -0
- package/dist/models/plan-validator.d.ts.map +1 -0
- package/dist/models/plan-validator.js +179 -0
- package/dist/models/plan-validator.js.map +1 -0
- package/dist/models/planner.d.ts +73 -0
- package/dist/models/planner.d.ts.map +1 -0
- package/dist/models/planner.js +375 -0
- package/dist/models/planner.js.map +1 -0
- package/dist/models/router.d.ts +96 -0
- package/dist/models/router.d.ts.map +1 -0
- package/dist/models/router.js +523 -0
- package/dist/models/router.js.map +1 -0
- package/dist/models/types.d.ts +370 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +232 -0
- package/dist/models/types.js.map +1 -0
- package/dist/models/unified-router.d.ts +152 -0
- package/dist/models/unified-router.d.ts.map +1 -0
- package/dist/models/unified-router.js +313 -0
- package/dist/models/unified-router.js.map +1 -0
- package/dist/policies/convert-policy-to-claude.d.ts +3 -0
- package/dist/policies/convert-policy-to-claude.d.ts.map +1 -0
- package/dist/policies/convert-policy-to-claude.js +87 -0
- package/dist/policies/convert-policy-to-claude.js.map +1 -0
- package/dist/policies/database-manager.d.ts +27 -0
- package/dist/policies/database-manager.d.ts.map +1 -0
- package/dist/policies/database-manager.js +198 -0
- package/dist/policies/database-manager.js.map +1 -0
- package/dist/policies/enforced-tool-router.d.ts +53 -0
- package/dist/policies/enforced-tool-router.d.ts.map +1 -0
- package/dist/policies/enforced-tool-router.js +80 -0
- package/dist/policies/enforced-tool-router.js.map +1 -0
- package/dist/policies/index.d.ts +10 -0
- package/dist/policies/index.d.ts.map +1 -0
- package/dist/policies/index.js +8 -0
- package/dist/policies/index.js.map +1 -0
- package/dist/policies/policy-gate.d.ts +59 -0
- package/dist/policies/policy-gate.d.ts.map +1 -0
- package/dist/policies/policy-gate.js +171 -0
- package/dist/policies/policy-gate.js.map +1 -0
- package/dist/policies/policy-memory.d.ts +18 -0
- package/dist/policies/policy-memory.d.ts.map +1 -0
- package/dist/policies/policy-memory.js +126 -0
- package/dist/policies/policy-memory.js.map +1 -0
- package/dist/policies/policy-tools.d.ts +11 -0
- package/dist/policies/policy-tools.d.ts.map +1 -0
- package/dist/policies/policy-tools.js +66 -0
- package/dist/policies/policy-tools.js.map +1 -0
- package/dist/policies/schemas/policy.d.ts +69 -0
- package/dist/policies/schemas/policy.d.ts.map +1 -0
- package/dist/policies/schemas/policy.js +31 -0
- package/dist/policies/schemas/policy.js.map +1 -0
- package/dist/tasks/coordination.d.ts +83 -0
- package/dist/tasks/coordination.d.ts.map +1 -0
- package/dist/tasks/coordination.js +291 -0
- package/dist/tasks/coordination.js.map +1 -0
- package/dist/tasks/database.d.ts +19 -0
- package/dist/tasks/database.d.ts.map +1 -0
- package/dist/tasks/database.js +149 -0
- package/dist/tasks/database.js.map +1 -0
- package/dist/tasks/decoder-gate.d.ts +64 -0
- package/dist/tasks/decoder-gate.d.ts.map +1 -0
- package/dist/tasks/decoder-gate.js +268 -0
- package/dist/tasks/decoder-gate.js.map +1 -0
- package/dist/tasks/index.d.ts +6 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +6 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/service.d.ts +40 -0
- package/dist/tasks/service.d.ts.map +1 -0
- package/dist/tasks/service.js +671 -0
- package/dist/tasks/service.js.map +1 -0
- package/dist/tasks/types.d.ts +238 -0
- package/dist/tasks/types.d.ts.map +1 -0
- package/dist/tasks/types.js +74 -0
- package/dist/tasks/types.js.map +1 -0
- package/dist/telemetry/index.d.ts +2 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +2 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/session-telemetry.d.ts +56 -0
- package/dist/telemetry/session-telemetry.d.ts.map +1 -0
- package/dist/telemetry/session-telemetry.js +807 -0
- package/dist/telemetry/session-telemetry.js.map +1 -0
- package/dist/types/analysis.d.ts +82 -0
- package/dist/types/analysis.d.ts.map +1 -0
- package/dist/types/analysis.js +2 -0
- package/dist/types/analysis.js.map +1 -0
- package/dist/types/config.d.ts +3324 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +418 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/coordination.d.ts +240 -0
- package/dist/types/coordination.d.ts.map +1 -0
- package/dist/types/coordination.js +43 -0
- package/dist/types/coordination.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/uap-droids-strict.d.ts +59 -0
- package/dist/uap-droids-strict.d.ts.map +1 -0
- package/dist/uap-droids-strict.js +200 -0
- package/dist/uap-droids-strict.js.map +1 -0
- package/dist/utils/config-manager.d.ts +30 -0
- package/dist/utils/config-manager.d.ts.map +1 -0
- package/dist/utils/config-manager.js +41 -0
- package/dist/utils/config-manager.js.map +1 -0
- package/dist/utils/fetch-with-retry.d.ts +5 -0
- package/dist/utils/fetch-with-retry.d.ts.map +1 -0
- package/dist/utils/fetch-with-retry.js +61 -0
- package/dist/utils/fetch-with-retry.js.map +1 -0
- package/dist/utils/merge-claude-md.d.ts +28 -0
- package/dist/utils/merge-claude-md.d.ts.map +1 -0
- package/dist/utils/merge-claude-md.js +342 -0
- package/dist/utils/merge-claude-md.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +58 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +100 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/string-similarity.d.ts +37 -0
- package/dist/utils/string-similarity.d.ts.map +1 -0
- package/dist/utils/string-similarity.js +114 -0
- package/dist/utils/string-similarity.js.map +1 -0
- package/dist/utils/validate-json.d.ts +51 -0
- package/dist/utils/validate-json.d.ts.map +1 -0
- package/dist/utils/validate-json.js +94 -0
- package/dist/utils/validate-json.js.map +1 -0
- package/docs/INDEX.md +66 -0
- package/docs/architecture/MULTI_MODEL.md +224 -0
- package/docs/architecture/SYSTEM_ANALYSIS.md +1117 -0
- package/docs/architecture/UAP_COMPLIANCE.md +217 -0
- package/docs/architecture/UAP_PROTOCOL.md +339 -0
- package/docs/architecture/UAP_STRICT_DROIDS.md +172 -0
- package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +260 -0
- package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +668 -0
- package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +209 -0
- package/docs/archive/NPM-PUBLISH-V0.9.1.md +240 -0
- package/docs/archive/OPTIMIZATION_OPTIONS.md +334 -0
- package/docs/archive/SETUP_IMPROVEMENTS.md +213 -0
- package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +270 -0
- package/docs/archive/UAP_V103_PATTERN_DESIGN.md +315 -0
- package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +223 -0
- package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +77 -0
- package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +109 -0
- package/docs/benchmarks/ACCURACY_ANALYSIS.md +471 -0
- package/docs/benchmarks/TOKEN_OPTIMIZATION.md +572 -0
- package/docs/benchmarks/VALIDATION_PLAN.md +568 -0
- package/docs/benchmarks/VALIDATION_RESULTS.md +161 -0
- package/docs/deployment/DEPLOYMENT.md +895 -0
- package/docs/deployment/DEPLOYMENT_STRATEGIES.md +518 -0
- package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +856 -0
- package/docs/deployment/DEPLOY_BATCHING.md +273 -0
- package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +420 -0
- package/docs/deployment/QWEN35_LLAMA_CPP.md +265 -0
- package/docs/getting-started/INTEGRATION.md +449 -0
- package/docs/getting-started/OVERVIEW.md +344 -0
- package/docs/getting-started/SETUP.md +203 -0
- package/docs/integrations/MCP_ROUTER_SETUP.md +445 -0
- package/docs/integrations/RTK_INTEGRATION.md +468 -0
- package/docs/operations/TROUBLESHOOTING.md +660 -0
- package/docs/reference/API_REFERENCE.md +903 -0
- package/docs/reference/FEATURES.md +472 -0
- package/docs/reference/HARNESS-MATRIX.md +318 -0
- package/docs/reference/UAP_CLI_REFERENCE.md +600 -0
- package/docs/research/BEHAVIORAL_PATTERNS.md +228 -0
- package/docs/research/DOMAIN_STRATEGIES.md +316 -0
- package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +812 -0
- package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +436 -0
- package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +209 -0
- package/docs/research/PERFORMANCE_TEST_PLAN.md +383 -0
- package/docs/research/TERMINAL_BENCH_LEARNINGS.md +217 -0
- package/package.json +113 -0
- package/scripts/README.md +161 -0
- package/templates/CLAUDE.template.md +10 -0
- package/templates/CLAUDE_ARCHITECTURE.template.md +103 -0
- package/templates/CLAUDE_CODING.template.md +127 -0
- package/templates/CLAUDE_DROIDS.template.md +109 -0
- package/templates/CLAUDE_MEMORY.template.md +131 -0
- package/templates/CLAUDE_WORKFLOWS.template.md +139 -0
- package/templates/PROJECT.template.md +209 -0
- package/templates/SCHEMA.md +57 -0
- package/templates/archive/CLAUDE.template.root-v6.md +534 -0
- package/templates/archive/CLAUDE.template.v6.md +534 -0
- package/templates/hooks/forgecode/pre-compact.sh +68 -0
- package/templates/hooks/forgecode/session-start.sh +169 -0
- package/templates/hooks/forgecode.plugin.sh +128 -0
- package/templates/hooks/pre-compact.sh +74 -0
- package/templates/hooks/session-start.sh +366 -0
- package/tools/agents/README.md +224 -0
- package/tools/agents/UAP/README.md +386 -0
- package/tools/agents/UAP/__init__.py +9 -0
- package/tools/agents/UAP/cli.py +901 -0
- package/tools/agents/UAP/compliance_verify.sh +108 -0
- package/tools/agents/UAP/full_verification.sh +126 -0
- package/tools/agents/UAP/version.py +32 -0
- package/tools/agents/benchmarks/benchmark_memory_systems.py +730 -0
- package/tools/agents/benchmarks/results/benchmark_20260106_064817.json +170 -0
- package/tools/agents/benchmarks/results/benchmark_20260106_064817.md +51 -0
- package/tools/agents/config/chat_template.jinja +77 -0
- package/tools/agents/config/tool-call-schema.json +19 -0
- package/tools/agents/config/tool-call.gbnf +58 -0
- package/tools/agents/docker/Dockerfile.python +52 -0
- package/tools/agents/docker/Dockerfile.ubuntu +55 -0
- package/tools/agents/docker-compose.qdrant.yml +24 -0
- package/tools/agents/install-opencode-local.sh.j2 +135 -0
- package/tools/agents/migrations/apply.py +256 -0
- package/tools/agents/opencode_uap_agent.py +1505 -0
- package/tools/agents/plugin/README.md +91 -0
- package/tools/agents/plugin/index.ts +46 -0
- package/tools/agents/plugin/pre-compact.sh +68 -0
- package/tools/agents/plugin/session-start.sh +175 -0
- package/tools/agents/plugin/uap-commands.ts +45 -0
- package/tools/agents/plugin/uap-droids.ts +54 -0
- package/tools/agents/plugin/uap-patterns.ts +54 -0
- package/tools/agents/plugin/uap-skills.ts +52 -0
- package/tools/agents/plugins/uap-enforce.ts +314 -0
- package/tools/agents/scripts/__pycache__/tool_call_wrapper.cpython-313.pyc +0 -0
- package/tools/agents/scripts/chat_template_verifier.py +343 -0
- package/tools/agents/scripts/fix-qwen-template.js +38 -0
- package/tools/agents/scripts/fix_qwen_chat_template.py +316 -0
- package/tools/agents/scripts/generate_lora_training_data.py +412 -0
- package/tools/agents/scripts/init_qdrant.py +151 -0
- package/tools/agents/scripts/memory_migration.py +560 -0
- package/tools/agents/scripts/migrate_memory_to_qdrant.py +110 -0
- package/tools/agents/scripts/prepare_lora.sh +512 -0
- package/tools/agents/scripts/query_memory.py +200 -0
- package/tools/agents/scripts/qwen-tool-call-test.js +38 -0
- package/tools/agents/scripts/qwen-tool-call-wrapper.js +38 -0
- package/tools/agents/scripts/qwen_tool_call_test.py +464 -0
- package/tools/agents/scripts/qwen_tool_call_wrapper.py +686 -0
- package/tools/agents/scripts/start-services.sh +96 -0
- package/tools/agents/scripts/tool-choice-proxy.cjs +296 -0
- package/tools/agents/scripts/tool_call_test.py +656 -0
- package/tools/agents/scripts/tool_call_wrapper.py +799 -0
- package/tools/agents/tests/test_uap_compliance.py +257 -0
- package/tools/agents/uap_agent.py +122 -0
- package/tools/agents/uap_agent_install.sh +12 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
# Universal Agent Protocol (UAP) - Feature Inventory & Status
|
|
2
|
+
|
|
3
|
+
**npm Version:** 7.0.2
|
|
4
|
+
**Last Updated:** 2026-03-14
|
|
5
|
+
**Tests:** 267 passing (23 files)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Feature Status Legend
|
|
10
|
+
|
|
11
|
+
| Status | Meaning |
|
|
12
|
+
| ------- | ------------------------------------ |
|
|
13
|
+
| ENABLED | Fully implemented, tested, optimized |
|
|
14
|
+
| PARTIAL | Implemented but with known gaps |
|
|
15
|
+
| STUB | Interface exists but no real logic |
|
|
16
|
+
| PLANNED | Not yet implemented |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. Memory System
|
|
21
|
+
|
|
22
|
+
### 1.1 Working Memory (L1) — ENABLED
|
|
23
|
+
|
|
24
|
+
**Source:** `src/memory/` (SQLite via better-sqlite3)
|
|
25
|
+
**Storage:** `agents/data/memory/short_term.db`
|
|
26
|
+
**Tables:** `memories` with FTS5 index (`memories_fts`)
|
|
27
|
+
|
|
28
|
+
| Setting | Value |
|
|
29
|
+
| -------------- | ---------------------------- |
|
|
30
|
+
| Max entries | 50 |
|
|
31
|
+
| Access latency | <1ms (in-memory) |
|
|
32
|
+
| Write gate | 5-criteria scoring (min 0.3) |
|
|
33
|
+
|
|
34
|
+
**Write Gate** (`src/memory/write-gate.ts:94`): Evaluates 5 criteria before storing:
|
|
35
|
+
|
|
36
|
+
- `behavioral_change`, `commitment`, `decision_rationale`, `stable_fact`, `explicit_request`
|
|
37
|
+
- Noise pattern rejection (greetings, acknowledgments, status updates)
|
|
38
|
+
- Score: 0.4 first match + 0.15 per additional + length bonus
|
|
39
|
+
|
|
40
|
+
**CLI:** `uap memory store`, `uap memory query`, `uap memory status`
|
|
41
|
+
|
|
42
|
+
### 1.2 Session Memories (L2) — ENABLED
|
|
43
|
+
|
|
44
|
+
**Source:** Same SQLite DB, `session_memories` table
|
|
45
|
+
**Threshold:** importance >= 7
|
|
46
|
+
**Promotion:** Via `uap memory promote` or automatic from daily log
|
|
47
|
+
|
|
48
|
+
### 1.3 Semantic Memory (L3) — ENABLED
|
|
49
|
+
|
|
50
|
+
**Source:** Qdrant vector database (`src/memory/backends/`)
|
|
51
|
+
**Backends:** Qdrant Cloud (`qdrant-cloud.test.ts`), GitHub (`github.ts`)
|
|
52
|
+
**Embedding:** Deterministic SHA-256 hash vectors (CLI) or sentence-transformers (Python)
|
|
53
|
+
**Cache:** LRU eviction policy (`src/memory/embeddings.ts:598`)
|
|
54
|
+
|
|
55
|
+
| Setting | Value |
|
|
56
|
+
| --------------- | ----------------------- |
|
|
57
|
+
| Vector size | 384 |
|
|
58
|
+
| Score threshold | 0.35 |
|
|
59
|
+
| Embedding cache | LRU, max 10,000 entries |
|
|
60
|
+
|
|
61
|
+
**Note:** CLI uses deterministic hash-based pseudo-random vectors. For real semantic search, use the Python sentence-transformers pipeline (`uap patterns index`).
|
|
62
|
+
|
|
63
|
+
### 1.4 Knowledge Graph (L4) — ENABLED
|
|
64
|
+
|
|
65
|
+
**Source:** SQLite `entities` and `relationships` tables
|
|
66
|
+
**Algorithm:** Dijkstra shortest path (`src/utils/dijkstra.ts:17`)
|
|
67
|
+
|
|
68
|
+
### 1.5 Memory Tiering — ENABLED
|
|
69
|
+
|
|
70
|
+
**Tiers:** HOT (10) / WARM (50) / COLD (500)
|
|
71
|
+
**Adaptive Context:** `src/memory/adaptive-context.ts`
|
|
72
|
+
**DB Pool:** 5 SQLite connections, round-robin selection, WAL mode
|
|
73
|
+
|
|
74
|
+
| Setting | Value |
|
|
75
|
+
| ------------ | ------------- |
|
|
76
|
+
| Pool size | 5 connections |
|
|
77
|
+
| Journal mode | WAL |
|
|
78
|
+
| Synchronous | NORMAL |
|
|
79
|
+
| Busy timeout | 10,000ms |
|
|
80
|
+
|
|
81
|
+
### 1.6 Daily Log — ENABLED
|
|
82
|
+
|
|
83
|
+
**Source:** `src/memory/daily-log.ts:47`
|
|
84
|
+
**Purpose:** Staging area for memories before promotion
|
|
85
|
+
**Promotion threshold:** score >= 0.6
|
|
86
|
+
|
|
87
|
+
### 1.7 Correction Propagator — ENABLED
|
|
88
|
+
|
|
89
|
+
**Source:** `src/memory/correction-propagator.ts:59`
|
|
90
|
+
**Purpose:** Cross-tier correction propagation with superseded history tracking
|
|
91
|
+
**Corrected entry importance:** 8
|
|
92
|
+
|
|
93
|
+
### 1.8 Agent-Scoped Memory — ENABLED
|
|
94
|
+
|
|
95
|
+
**Source:** `src/memory/agent-scoped-memory.ts:52`
|
|
96
|
+
**Purpose:** Per-agent memory isolation with sharing capability
|
|
97
|
+
**Indexed on:** agent_id, shared, importance
|
|
98
|
+
|
|
99
|
+
### 1.9 Memory Consolidator — ENABLED
|
|
100
|
+
|
|
101
|
+
**Source:** `src/memory/memory-consolidator.ts`
|
|
102
|
+
**Security:** Parameterized SQL queries (SQL injection fixed in v4.8.1)
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 2. Multi-Model Architecture
|
|
107
|
+
|
|
108
|
+
### 2.1 Model Router — ENABLED
|
|
109
|
+
|
|
110
|
+
**Source:** `src/models/router.ts:89`
|
|
111
|
+
**Purpose:** Classifies tasks by complexity/type, selects optimal model via priority-sorted routing rules
|
|
112
|
+
|
|
113
|
+
| Setting | Default |
|
|
114
|
+
| ---------------- | ----------------------------------------------------------------------- |
|
|
115
|
+
| Strategy | `balanced` (3 of 4 strategies differentiated; `adaptive` == `balanced`) |
|
|
116
|
+
| Default planner | `opus-4.5` |
|
|
117
|
+
| Default executor | `glm-4.7` |
|
|
118
|
+
| Default fallback | `opus-4.5` |
|
|
119
|
+
| Routing rules | 11 default rules, priority 30-100 |
|
|
120
|
+
|
|
121
|
+
**Model Presets** (6): `opus-4.5`, `deepseek-v3.2`, `deepseek-v3.2-exp`, `glm-4.7`, `gpt-5.2`, `qwen35-a3b`
|
|
122
|
+
|
|
123
|
+
**Known Gap:** `routingStrategy` `adaptive` is accepted but behaves identically to `balanced`. The other 3 strategies (`cost-optimized`, `performance-first`, `balanced`) are differentiated.
|
|
124
|
+
|
|
125
|
+
### 2.2 Task Planner — ENABLED
|
|
126
|
+
|
|
127
|
+
**Source:** `src/models/planner.ts:42`
|
|
128
|
+
**Purpose:** Decomposes tasks into dependency-aware subtasks with model assignment
|
|
129
|
+
|
|
130
|
+
| Setting | Default |
|
|
131
|
+
| --------------- | ------------------------------- |
|
|
132
|
+
| Max subtasks | 10 |
|
|
133
|
+
| Max depth | 3 |
|
|
134
|
+
| Parallelization | enabled |
|
|
135
|
+
| Auto-validation | always (mandatory since v4.8.0) |
|
|
136
|
+
|
|
137
|
+
**Decomposition:** Keyword-based heuristic (not LLM-driven). Phases: Analysis, Design, Implementation, Testing, Security Review, Documentation.
|
|
138
|
+
|
|
139
|
+
### 2.3 Task Executor — ENABLED
|
|
140
|
+
|
|
141
|
+
**Source:** `src/models/executor.ts:69`
|
|
142
|
+
**Purpose:** Executes plans with retry logic, fallback, and parallel batching
|
|
143
|
+
|
|
144
|
+
| Setting | Default |
|
|
145
|
+
| ------------ | ---------------------------------------- |
|
|
146
|
+
| Max retries | 2 |
|
|
147
|
+
| Retry delay | Exponential backoff (1s, 2s, 4s) |
|
|
148
|
+
| Step timeout | 120,000ms (2 min) |
|
|
149
|
+
| Fallback | enabled |
|
|
150
|
+
| Max parallel | 3 |
|
|
151
|
+
| Token limits | low=2K, medium=4K, high=8K, critical=12K |
|
|
152
|
+
|
|
153
|
+
**Improvements in v4.8.1:**
|
|
154
|
+
|
|
155
|
+
- `previousAttempts` now populated between retries (enables retry-context prompts)
|
|
156
|
+
- Exponential backoff replaces fixed 1s delay
|
|
157
|
+
|
|
158
|
+
**Known Gap:** No real `ModelClient` implementation — only `MockModelClient` for testing. CLI execution prints "not implemented yet."
|
|
159
|
+
|
|
160
|
+
### 2.4 Plan Validator — ENABLED
|
|
161
|
+
|
|
162
|
+
**Source:** `src/models/plan-validator.ts:24`
|
|
163
|
+
**Purpose:** Validates every plan for structural integrity
|
|
164
|
+
|
|
165
|
+
| Check | What it validates |
|
|
166
|
+
| ----------------- | --------------------------------------------------------- |
|
|
167
|
+
| Subtasks | Titles, descriptions, complexity, types, duplicates |
|
|
168
|
+
| Dependencies | Cycle detection (DFS), non-existent references |
|
|
169
|
+
| Model assignments | Every subtask has a model |
|
|
170
|
+
| Constraints | Security/performance-sensitive tasks flagged |
|
|
171
|
+
| Cost estimates | Negative values (error), >$1000 (warning), >24h (warning) |
|
|
172
|
+
|
|
173
|
+
| Setting | Default |
|
|
174
|
+
| ------------ | ---------------------------------------------- |
|
|
175
|
+
| Timeout | 300,000ms (5 min), enforced via Promise.race() |
|
|
176
|
+
| Strict mode | false |
|
|
177
|
+
| Skip trivial | false (mandatory validation since v4.8.0) |
|
|
178
|
+
|
|
179
|
+
### 2.5 Benchmark-Data Model Router — ENABLED
|
|
180
|
+
|
|
181
|
+
**Source:** `src/memory/model-router.ts:68`
|
|
182
|
+
**Purpose:** Separate routing system using real Terminal-Bench benchmark data with SQLite-persisted fingerprints and adaptive learning (EMA)
|
|
183
|
+
|
|
184
|
+
| Setting | Value |
|
|
185
|
+
| ------------------- | --------------------------- |
|
|
186
|
+
| DB pool | 5 connections, WAL mode |
|
|
187
|
+
| EMA alpha (success) | 0.1 |
|
|
188
|
+
| EMA alpha (latency) | 0.2 |
|
|
189
|
+
| Fingerprint blend | 70% persisted / 30% default |
|
|
190
|
+
| Max cost/task | $0.05 |
|
|
191
|
+
| Max latency | 120s |
|
|
192
|
+
|
|
193
|
+
**Note:** This is independent from `src/models/router.ts`. The two routing systems are not yet integrated.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 3. Multi-Agent Coordination
|
|
198
|
+
|
|
199
|
+
### 3.1 Coordination Database — ENABLED
|
|
200
|
+
|
|
201
|
+
**Source:** `src/coordination/database.ts:5`
|
|
202
|
+
**Storage:** `./agents/data/coordination/coordination.db`
|
|
203
|
+
**Tables:** 6 (agent_registry, agent_messages, work_announcements, work_claims, deploy_queue, deploy_batches)
|
|
204
|
+
|
|
205
|
+
| Setting | Value |
|
|
206
|
+
| ------------ | ----------------------- |
|
|
207
|
+
| Journal mode | WAL (added v4.8.1) |
|
|
208
|
+
| Synchronous | NORMAL (added v4.8.1) |
|
|
209
|
+
| Busy timeout | 10,000ms (added v4.8.1) |
|
|
210
|
+
|
|
211
|
+
### 3.2 Coordination Service — ENABLED
|
|
212
|
+
|
|
213
|
+
**Source:** `src/coordination/service.ts:31`
|
|
214
|
+
**Purpose:** Agent lifecycle, resource claiming, work announcements, messaging, deploy queue, overlap detection, conflict risk assessment
|
|
215
|
+
|
|
216
|
+
| Setting | Default |
|
|
217
|
+
| -------------------- | --------------------------- |
|
|
218
|
+
| Heartbeat interval | 30,000ms (30s) |
|
|
219
|
+
| Claim expiry | 300,000ms (5 min) |
|
|
220
|
+
| Stale agent cutoff | 3x heartbeat interval (90s) |
|
|
221
|
+
| Message retention | 24 hours |
|
|
222
|
+
| Deploy default delay | 30,000ms (30s) |
|
|
223
|
+
|
|
224
|
+
**Overlap Detection:** Same-file, same-directory, overlapping-files conflicts
|
|
225
|
+
**Conflict Risk:** `none` / `low` / `medium` / `high` / `critical`
|
|
226
|
+
|
|
227
|
+
### 3.3 Auto Agent Coordinator — ENABLED
|
|
228
|
+
|
|
229
|
+
**Source:** `src/coordination/auto-agent.ts:22`
|
|
230
|
+
**Purpose:** Automatic agent registration, heartbeat, graceful exit cleanup
|
|
231
|
+
|
|
232
|
+
| Setting | Default |
|
|
233
|
+
| ------------------ | ---------------------------------------------------- |
|
|
234
|
+
| Heartbeat interval | 30,000ms |
|
|
235
|
+
| Exit handlers | SIGINT, SIGTERM, exit (tracked + removed on cleanup) |
|
|
236
|
+
|
|
237
|
+
**Improvements in v4.8.1:**
|
|
238
|
+
|
|
239
|
+
- Idempotent cleanup (safe to call multiple times)
|
|
240
|
+
- Exit handlers tracked and removed to prevent listener leaks
|
|
241
|
+
|
|
242
|
+
### 3.4 Capability Router — ENABLED
|
|
243
|
+
|
|
244
|
+
**Source:** `src/coordination/capability-router.ts:159`
|
|
245
|
+
**Purpose:** Routes tasks to droids/skills by file patterns, task types, keywords
|
|
246
|
+
|
|
247
|
+
| Setting | Value |
|
|
248
|
+
| ------------------------- | -------------------------------------------------------------------------------- |
|
|
249
|
+
| Default mappings | 12 (TS, JS, CLI, security, perf, docs, review, testing, infra, Python, Rust, Go) |
|
|
250
|
+
| Max recommended droids | 3 |
|
|
251
|
+
| Max recommended skills | 2 |
|
|
252
|
+
| Always-included reviewers | code-quality-guardian, security-auditor |
|
|
253
|
+
|
|
254
|
+
### 3.5 Pattern Router — ENABLED (restored in v4.8.1)
|
|
255
|
+
|
|
256
|
+
**Source:** `src/coordination/pattern-router.ts`
|
|
257
|
+
**Purpose:** Loads Terminal-Bench patterns from `.factory/patterns/index.json`, keyword matching, enforcement checklists
|
|
258
|
+
|
|
259
|
+
**Was a no-op stub prior to v4.8.1.** Now fully implemented with:
|
|
260
|
+
|
|
261
|
+
- Pattern loading from project directory
|
|
262
|
+
- Keyword-based matching
|
|
263
|
+
- Always-included critical patterns (P12 Output Existence, P35 Decoder-First)
|
|
264
|
+
- Singleton with lazy initialization
|
|
265
|
+
|
|
266
|
+
### 3.6 Deploy Batcher — ENABLED
|
|
267
|
+
|
|
268
|
+
**Source:** `src/coordination/deploy-batcher.ts:47`
|
|
269
|
+
**Purpose:** Intelligent deployment batching with squashing, deduplication, parallel execution
|
|
270
|
+
|
|
271
|
+
| Action | Normal Window | Urgent Window |
|
|
272
|
+
| -------- | ------------- | ------------- |
|
|
273
|
+
| commit | 30s | 2s |
|
|
274
|
+
| push | 5s | 1s |
|
|
275
|
+
| merge | 10s | 2s |
|
|
276
|
+
| workflow | 5s | 1s |
|
|
277
|
+
| deploy | 60s | 5s |
|
|
278
|
+
|
|
279
|
+
| Setting | Default |
|
|
280
|
+
| -------------------- | ------- |
|
|
281
|
+
| Max batch size | 20 |
|
|
282
|
+
| Parallel execution | enabled |
|
|
283
|
+
| Max parallel actions | 5 |
|
|
284
|
+
|
|
285
|
+
**Fixed in v5.0.0:** Replaced `execSync` with async `execFile` using argument arrays. Eliminates shell injection risk and event loop blocking.
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## 4. Task Management
|
|
290
|
+
|
|
291
|
+
### 4.1 Task Database — ENABLED
|
|
292
|
+
|
|
293
|
+
**Source:** `src/tasks/database.ts:5`
|
|
294
|
+
**Storage:** `./.uap/tasks/tasks.db`
|
|
295
|
+
**Tables:** 5 (tasks, task_dependencies, task_history, task_activity, task_summaries)
|
|
296
|
+
|
|
297
|
+
| Setting | Value |
|
|
298
|
+
| ------------ | ----------------------- |
|
|
299
|
+
| Journal mode | WAL (added v4.8.1) |
|
|
300
|
+
| Synchronous | NORMAL (added v4.8.1) |
|
|
301
|
+
| Busy timeout | 10,000ms (added v4.8.1) |
|
|
302
|
+
|
|
303
|
+
### 4.2 Task Service — ENABLED
|
|
304
|
+
|
|
305
|
+
**Source:** `src/tasks/service.ts:31`
|
|
306
|
+
**Purpose:** Full CRUD, dependency DAG with cycle detection (BFS), history/audit trail, JSONL sync, compaction
|
|
307
|
+
|
|
308
|
+
| Setting | Default |
|
|
309
|
+
| -------------- | -------------------------- |
|
|
310
|
+
| JSONL path | `./.uap/tasks/tasks.jsonl` |
|
|
311
|
+
| Compact cutoff | 90 days |
|
|
312
|
+
|
|
313
|
+
**Fixed in v5.0.0:** Added `due_date` column with migration for existing DBs. `overdue` stats now query tasks past due date that aren't closed.
|
|
314
|
+
|
|
315
|
+
### 4.3 Task Coordinator — ENABLED
|
|
316
|
+
|
|
317
|
+
**Source:** `src/tasks/coordination.ts:31`
|
|
318
|
+
**Purpose:** Bridge between task system and coordination system
|
|
319
|
+
|
|
320
|
+
**Scoring for `suggestNextTask()`:**
|
|
321
|
+
|
|
322
|
+
- Priority weight: `(4 - priority) * 10` (P0=40, P4=0)
|
|
323
|
+
- No-overlap bonus: +20
|
|
324
|
+
- No-dependencies bonus: +5
|
|
325
|
+
- Unblocks-others bonus: +3 per blocked task
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## 5. CLI Commands
|
|
330
|
+
|
|
331
|
+
### Fully Implemented (20+)
|
|
332
|
+
|
|
333
|
+
| Command | Source | Purpose |
|
|
334
|
+
| ---------------- | ---------------------------------- | -------------------------------------- |
|
|
335
|
+
| `uap init` | `src/cli/init.ts` | Project initialization |
|
|
336
|
+
| `uap setup` | `src/cli/setup.ts` | Full setup chain |
|
|
337
|
+
| `uap memory` | `src/cli/memory.ts` | Memory management (10 subcommands) |
|
|
338
|
+
| `uap task` | `src/cli/task.ts` | Task CRUD + workflow (14 subcommands) |
|
|
339
|
+
| `uap agent` | `src/cli/agent.ts` | Agent lifecycle (11 subcommands) |
|
|
340
|
+
| `uap deploy` | `src/cli/deploy.ts` | Deploy batching (8 subcommands) |
|
|
341
|
+
| `uap worktree` | `src/cli/worktree.ts` | Git worktree management |
|
|
342
|
+
| `uap droids` | `src/cli/droids.ts` | Droid management |
|
|
343
|
+
| `uap coord` | `src/cli/coord.ts` | Coordination status/flush/cleanup |
|
|
344
|
+
| `uap model` | `src/cli/model.ts` | Model routing/planning (4 subcommands) |
|
|
345
|
+
| `uap dashboard` | `src/cli/dashboard.ts` | Rich visualization (6 sub-dashboards) |
|
|
346
|
+
| `uap patterns` | `src/cli/patterns.ts` | Pattern RAG management |
|
|
347
|
+
| `uap hooks` | `src/cli/hooks.ts` | Hook installer (6 platforms) |
|
|
348
|
+
| `uap compliance` | `src/cli/compliance.ts` | Protocol compliance (12 gates) |
|
|
349
|
+
| `uap generate` | `src/cli/generate.ts` | CLAUDE.md generation |
|
|
350
|
+
| `uap analyze` | `src/cli/analyze.ts` | Project structure analysis |
|
|
351
|
+
| `uap mcp-router` | `src/cli/mcp-router.ts` | MCP Router management |
|
|
352
|
+
| `uap update` | `src/cli/update.ts` | System update |
|
|
353
|
+
| `uap rtk` | `src/cli/rtk.ts` | RTK integration |
|
|
354
|
+
| `llama-optimize` | `src/bin/llama-server-optimize.ts` | llama.cpp parameter optimization |
|
|
355
|
+
|
|
356
|
+
### Stubs
|
|
357
|
+
|
|
358
|
+
| Command | Source | Status |
|
|
359
|
+
| ----------------- | ------------------------ | --------------------------------- |
|
|
360
|
+
| `uap schema-diff` | `src/cli/schema-diff.ts` | Prints "disabled in this version" |
|
|
361
|
+
|
|
362
|
+
### Implemented in v5.0.0
|
|
363
|
+
|
|
364
|
+
| Command | Source | Status |
|
|
365
|
+
| --------------------- | ------------------ | --------------------------------------------------------------------- |
|
|
366
|
+
| `uap sync` | `src/cli/sync.ts` | Syncs droids, skills, commands between claude/factory/opencode/vscode |
|
|
367
|
+
| `uap model --execute` | `src/cli/model.ts` | Executes plans via MockModelClient (dry-run mode) |
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## 6. Hooks System
|
|
372
|
+
|
|
373
|
+
| Hook | Source | Status |
|
|
374
|
+
| ------------ | ---------------------------------- | ------------------------------------------- |
|
|
375
|
+
| SessionStart | `templates/hooks/session-start.sh` | ENABLED — Injects compliance checklist |
|
|
376
|
+
| PreCompact | `templates/hooks/pre-compact.sh` | ENABLED — DB optimization before compaction |
|
|
377
|
+
| PreToolUse | Pattern injection | ENABLED — Via hook system |
|
|
378
|
+
| PostToolUse | Memory persistence | ENABLED — Via hook system |
|
|
379
|
+
|
|
380
|
+
**Platforms:** Claude Code, Factory.AI, VSCode, Cursor, OpenCode, ForgeCode
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## 7. Droid System
|
|
385
|
+
|
|
386
|
+
**Source:** `src/uap-droids-strict.ts:35` (schema), `:183` (plugin entry)
|
|
387
|
+
**Storage:** `.factory/droids/*.md` (JSON frontmatter + markdown body)
|
|
388
|
+
**Validation:** Zod schema (`DROID_SCHEMA`), decoder-first gate
|
|
389
|
+
|
|
390
|
+
**Built-in Templates:** code-reviewer, security-reviewer, performance-reviewer, test-writer
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
## 8. Utilities
|
|
395
|
+
|
|
396
|
+
| Utility | Source | Status |
|
|
397
|
+
| ----------------- | ---------------------------------- | ---------------------------------------- |
|
|
398
|
+
| CLAUDE.md Merger | `src/utils/merge-claude-md.ts:325` | ENABLED |
|
|
399
|
+
| JSON Validator | `src/utils/validate-json.ts:73` | ENABLED |
|
|
400
|
+
| String Similarity | `src/utils/string-similarity.ts` | ENABLED |
|
|
401
|
+
| Config Manager | `src/utils/config-manager.ts:4` | ENABLED |
|
|
402
|
+
| Fetch with Retry | `src/utils/fetch-with-retry.ts:1` | ENABLED (3 retries, exponential backoff) |
|
|
403
|
+
| Rate Limiter | `src/utils/rate-limiter.ts:16` | ENABLED (sliding window, Zod validated) |
|
|
404
|
+
| Dijkstra | `src/utils/dijkstra.ts:17` | ENABLED |
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
## 9. Test Coverage
|
|
409
|
+
|
|
410
|
+
| Test File | Tests | What's Covered |
|
|
411
|
+
| --------------------------------------------------- | ------- | ------------------------------------- |
|
|
412
|
+
| `test/tasks.test.ts` | 30 | Task CRUD, dependencies, sync, stats |
|
|
413
|
+
| `test/models.test.ts` | 26 | Router, planner, executor, presets |
|
|
414
|
+
| `src/memory/optimization.test.ts` | 21 | Memory optimization |
|
|
415
|
+
| `test/coordination.test.ts` | 20 | Agent lifecycle, claims, messaging |
|
|
416
|
+
| `test/deploy-batcher.test.ts` | 16 | Deploy batching, squashing, execution |
|
|
417
|
+
| `test/write-gate.test.ts` | 14 | Write gate criteria and scoring |
|
|
418
|
+
| `benchmark-env/src/utils/__tests__/helpers.test.ts` | 13 | Benchmark helpers |
|
|
419
|
+
| `src/tests/uap-strict-droids.test.ts` | 12 | Droid schema validation, decoder gate |
|
|
420
|
+
| `test/agent-scoped-memory.test.ts` | 8 | Agent memory isolation |
|
|
421
|
+
| `test/session-stats.test.ts` | 8 | Session statistics |
|
|
422
|
+
| `src/memory/short-term/indexeddb.test.ts` | 8 | IndexedDB short-term memory |
|
|
423
|
+
| `test/hooks.test.ts` | 7 | Hook system |
|
|
424
|
+
| `test/mcp-router-output-compressor.test.ts` | 7 | Output compression |
|
|
425
|
+
| `test/daily-log.test.ts` | 6 | Daily log staging |
|
|
426
|
+
| `src/memory/backends/github.test.ts` | 6 | GitHub backend |
|
|
427
|
+
| `test/memory-maintenance.test.ts` | 6 | Memory maintenance |
|
|
428
|
+
| `test/correction-propagator.test.ts` | 5 | Correction propagation |
|
|
429
|
+
| `test/mcp-router-filter.test.ts` | 5 | MCP router filtering |
|
|
430
|
+
| `src/memory/backends/qdrant-cloud.test.ts` | 5 | Qdrant backend |
|
|
431
|
+
| `src/utils/merge-claude-md.test.ts` | 4 | CLAUDE.md merging |
|
|
432
|
+
| `src/tests/droids-parallel.test.ts` | 1 | Parallel droid execution |
|
|
433
|
+
| **Total** | **228** | **21 files, 100% pass rate** |
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
## 10. Known Gaps & Future Work
|
|
438
|
+
|
|
439
|
+
| Gap | Impact | Effort | Status |
|
|
440
|
+
| ------------------------------------------ | -------------------------------------------------------------------------------- | ------ | ---------------- |
|
|
441
|
+
| No real `ModelClient` implementation | High — executor only works with mock | High | Fixed in v1.0.0 |
|
|
442
|
+
| Two routing systems not integrated | Medium — `src/models/router.ts` and `src/memory/model-router.ts` are independent | Medium | Fixed in v1.0.0 |
|
|
443
|
+
| `task_sync_meta` table unused | Low — created but never populated | Low | Fixed in v1.0.0 |
|
|
444
|
+
| `routingStrategy` `adaptive` == `balanced` | Low — 3 of 4 strategies differentiated | Low | Fixed in v1.0.0 |
|
|
445
|
+
| `routingStrategy` 3/4 differentiated | Medium — `cost-optimized`, `performance-first`, `balanced` work | N/A | Fixed in v8.0.0 |
|
|
446
|
+
| `execSync` in DeployBatcher | Medium — blocks event loop, shell injection risk | Medium | Fixed in v5.0.0 |
|
|
447
|
+
| Shell injection in embeddings/prepopulate | High — user text in shell commands | Medium | Fixed in v8.0.0 |
|
|
448
|
+
| Race condition in exclusive claims | High — concurrent agents could both acquire exclusive lock | Low | Fixed in v8.0.0 |
|
|
449
|
+
| L4 schema missing columns | Medium — `description` and `strength` columns missing from base schema | Low | Fixed in v8.0.0 |
|
|
450
|
+
| Embedding cache key collisions | Low — `text.slice(0,500)` caused collisions for long texts | Low | Fixed in v8.0.0 |
|
|
451
|
+
| No tests for coordination/task subsystems | High — ~2,600 lines untested | High | Fixed in v5.0.0 |
|
|
452
|
+
| `uap sync` not implemented | Low — planned for v0.9.0 | Medium | Fixed in v5.0.0 |
|
|
453
|
+
| `uap model --execute` not implemented | Medium — plan execution only via API | Medium | Fixed in v5.0.0 |
|
|
454
|
+
| Task `overdue` stats unimplemented | Low — no due_date column | Low | Fixed in v5.0.0 |
|
|
455
|
+
| MCP Router CLI setup placeholder | Medium — CLI setup not functional | Low | Fixed in v1.0.0 |
|
|
456
|
+
| `uap uninstall` not implemented | Low — no cleanup command | Low | Fixed in v1.0.0 |
|
|
457
|
+
| Plugin install only for 2 harnesses | Medium — 13+ harnesses unsupported | Medium | Fixed in v1.0.0 |
|
|
458
|
+
| Deploy batch config not persistent | Medium — settings lost on restart | Low | Fixed in v1.0.0 |
|
|
459
|
+
| No droid schema validation | Medium — invalid droids not caught | Medium | Fixed in v1.0.0 |
|
|
460
|
+
| No decoder gate | Medium — no input/output validation | Medium | Fixed in v1.0.0 |
|
|
461
|
+
| No dynamic compression | Low — static compression only | Medium | Fixed in v1.0.0 |
|
|
462
|
+
| No context pruning | Low — no intelligent context removal | Medium | Fixed in v1.0.0 |
|
|
463
|
+
| No adaptive patterns | Low — patterns don't self-tune | Medium | Fixed in v1.0.0 |
|
|
464
|
+
| No predictive memory | Low — no context prefetching | High | Fixed in v1.0.0 |
|
|
465
|
+
| No multi-turn agent loop | Medium — no error recovery loop | High | Fixed in v1.0.0 |
|
|
466
|
+
| PATH_MIGRATIONS TODO in code | Low — dead TODO comment | Low | Fixed in v1.0.0 |
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
**Last Updated:** 2026-03-17
|
|
471
|
+
**npm Package:** @miller-tech/uap v1.0.0
|
|
472
|
+
**Build:** 0 errors | **Tests:** 258 passing (23 files) | **Lint:** 0 errors
|