@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,344 @@
|
|
|
1
|
+
# UAP - Universal Agent Protocol
|
|
2
|
+
|
|
3
|
+
**A persistent memory system for autonomous AI agents**
|
|
4
|
+
|
|
5
|
+
UAP (Universal Agent Protocol) provides a standardized framework for AI agents to maintain persistent context, learn from past interactions, and apply proven patterns across tasks.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## What is UAP?
|
|
10
|
+
|
|
11
|
+
UAP is an open protocol that enables AI agents to:
|
|
12
|
+
|
|
13
|
+
1. **Remember Context**: Store and retrieve relevant information across sessions
|
|
14
|
+
2. **Apply Patterns**: Leverage battle-tested workflows and decision frameworks
|
|
15
|
+
3. **Maintain State**: Track progress, failures, and successes over time
|
|
16
|
+
4. **Collaborate**: Coordinate with other agents using shared memory
|
|
17
|
+
|
|
18
|
+
Unlike temporary context windows, UAP provides **persistent memory** that survives session boundaries, enabling true long-term learning and improvement.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Core Components
|
|
23
|
+
|
|
24
|
+
### 1. Memory System (4-Layer Architecture)
|
|
25
|
+
|
|
26
|
+
| Layer | Type | Purpose | Speed |
|
|
27
|
+
| ----- | --------------------------- | ----------------------------------- | ----- |
|
|
28
|
+
| L1 | SQLite (`memories`) | Working context, recent decisions | <1ms |
|
|
29
|
+
| L2 | SQLite (`session_memories`) | Current task session state | <5ms |
|
|
30
|
+
| L3 | Qdrant (vector DB) | Semantic search across all memories | ~50ms |
|
|
31
|
+
| L4 | SQLite (entities/rels) | Knowledge graph of relationships | <20ms |
|
|
32
|
+
|
|
33
|
+
### 2. CLAUDE.md Protocol
|
|
34
|
+
|
|
35
|
+
Every UAP-enabled project includes a `CLAUDE.md` file that defines:
|
|
36
|
+
|
|
37
|
+
- **Directive Hierarchy**: Which rules take precedence
|
|
38
|
+
- **Decision Loop**: Standard workflow for any task
|
|
39
|
+
- **Patterns**: 58+ battle-tested patterns for common scenarios
|
|
40
|
+
- **Skills**: Domain-specific expertise (chess, compression, debugging)
|
|
41
|
+
- **Completion Gates**: Mandatory checks before declaring success
|
|
42
|
+
|
|
43
|
+
### 3. CLI Tools
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Initialize UAP in a project
|
|
47
|
+
uap init
|
|
48
|
+
|
|
49
|
+
# Create a tracked task with memory
|
|
50
|
+
uap task create --title "Fix login bug" --type bug
|
|
51
|
+
|
|
52
|
+
# Query semantic memory
|
|
53
|
+
uap memory query "authentication errors"
|
|
54
|
+
|
|
55
|
+
# Manage worktrees for parallel development
|
|
56
|
+
uap worktree create fix-auth-issue
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 4. Worktree Workflow
|
|
60
|
+
|
|
61
|
+
UAP enforces a **worktree-only** workflow to prevent accidental changes to main branches:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Create worktree for any change (even single file)
|
|
65
|
+
uap worktree create bugfix-description
|
|
66
|
+
|
|
67
|
+
# Make changes, commit, create PR
|
|
68
|
+
cd .worktrees/NNN-bugfix-description/
|
|
69
|
+
git add -A && git commit -m "type: description"
|
|
70
|
+
uap worktree pr 123
|
|
71
|
+
|
|
72
|
+
# After merge, cleanup is mandatory
|
|
73
|
+
uap worktree cleanup 123
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## How It Works
|
|
79
|
+
|
|
80
|
+
### Task Execution Flow
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
1. CLASSIFY → Is this complex? Does it need memory?
|
|
84
|
+
2. PROTECT → Backup critical files (configs, DBs)
|
|
85
|
+
3. MEMORY → Query relevant context + past failures
|
|
86
|
+
4. SKILLS → Load domain-specific patterns if needed
|
|
87
|
+
5. WORK → Implement using worktree
|
|
88
|
+
6. REVIEW → Self-review diff before testing
|
|
89
|
+
7. TEST → Run verifier/tests minimum 3 times
|
|
90
|
+
8. LEARN → Store outcome in memory for future tasks
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Memory Retrieval
|
|
94
|
+
|
|
95
|
+
When starting a task, UAP automatically:
|
|
96
|
+
|
|
97
|
+
1. **Classifies** the task type (coding, debugging, research, etc.)
|
|
98
|
+
2. **Queries** L1/L2 memory for recent relevant decisions
|
|
99
|
+
3. **Searches** L3 semantic memory for similar past tasks
|
|
100
|
+
4. **Loads** L4 knowledge graph for entity relationships
|
|
101
|
+
5. **Applies** patterns based on classification confidence
|
|
102
|
+
|
|
103
|
+
### Pattern Router
|
|
104
|
+
|
|
105
|
+
UAP includes 58+ patterns for common scenarios:
|
|
106
|
+
|
|
107
|
+
| Pattern ID | Trigger | Action |
|
|
108
|
+
| ---------- | ----------------------- | ----------------------------------- |
|
|
109
|
+
| P3 | Modifies config/DB | `cp file file.bak` first |
|
|
110
|
+
| P12 | Creates files | `ls -la` verify all outputs exist |
|
|
111
|
+
| P13 | Tests partial pass | Fix specific failure, re-run |
|
|
112
|
+
| P26 | Same error twice | Change approach completely |
|
|
113
|
+
| P32 | CLI tool | Test `./script` not `python script` |
|
|
114
|
+
| P37 | Output format specified | Diff output schema vs expectations |
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Installation
|
|
119
|
+
|
|
120
|
+
### Prerequisites
|
|
121
|
+
|
|
122
|
+
- Node.js >= 18.0.0
|
|
123
|
+
- npm or yarn
|
|
124
|
+
- Optional: Docker (for Qdrant semantic search)
|
|
125
|
+
|
|
126
|
+
### Quick Start
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Install globally
|
|
130
|
+
npm install -g universal-agent-protocol
|
|
131
|
+
|
|
132
|
+
# Initialize in your project
|
|
133
|
+
uap init
|
|
134
|
+
|
|
135
|
+
# Run the interactive setup
|
|
136
|
+
npx universal-agent-protocol init --interactive
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### With Qdrant (Recommended for Full Features)
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
cd agents && docker-compose up -d
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Configuration
|
|
148
|
+
|
|
149
|
+
### `.uap.json` - Project Settings
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"project": {
|
|
154
|
+
"name": "my-project",
|
|
155
|
+
"description": "Project with UAP memory"
|
|
156
|
+
},
|
|
157
|
+
"memory": {
|
|
158
|
+
"shortTerm": {
|
|
159
|
+
"enabled": true,
|
|
160
|
+
"path": "./agents/data/memory/short_term.db"
|
|
161
|
+
},
|
|
162
|
+
"longTerm": {
|
|
163
|
+
"enabled": true,
|
|
164
|
+
"provider": "qdrant",
|
|
165
|
+
"endpoint": "localhost:6333"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"worktrees": {
|
|
169
|
+
"enabled": true,
|
|
170
|
+
"directory": ".worktrees"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Best Practices
|
|
178
|
+
|
|
179
|
+
### DO ✅
|
|
180
|
+
|
|
181
|
+
- Use `uap task create` for all work items
|
|
182
|
+
- Always use worktrees (never commit to main directly)
|
|
183
|
+
- Run verifier/tests minimum 3 times before declaring done
|
|
184
|
+
- Store outcomes in memory after completing tasks
|
|
185
|
+
- Load relevant skills for domain-specific tasks
|
|
186
|
+
|
|
187
|
+
### DON'T ❌
|
|
188
|
+
|
|
189
|
+
- Commit directly to main/develop branches
|
|
190
|
+
- Skip backup steps when modifying critical files
|
|
191
|
+
- Declare success without running tests multiple times
|
|
192
|
+
- Ignore pattern recommendations (they prevent bugs)
|
|
193
|
+
- Leave merged worktrees uncleand
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Protocol Compliance
|
|
198
|
+
|
|
199
|
+
UAP enforces **completion gates** before any task is considered done:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
[x] If decoder provided: round-trip passes (BLOCKING)
|
|
203
|
+
[x] Outputs verified: ls -la shows all files exist
|
|
204
|
+
[x] Schema diffed against test expectations
|
|
205
|
+
[x] Tests: X/Y pass (must be 100%, run 3+ times)
|
|
206
|
+
[x] CLI tools tested as ./script not python script
|
|
207
|
+
[x] If recovery: artifacts copied before read operation
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Run compliance check:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
npm run verify-uap
|
|
214
|
+
# or
|
|
215
|
+
uap compliance check
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Integration Points
|
|
221
|
+
|
|
222
|
+
### Claude Code
|
|
223
|
+
|
|
224
|
+
UAP integrates with Anthropic's Claude Code via session hooks:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
uap hooks install
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
This adds automatic memory queries at task start and outcome storage on completion.
|
|
231
|
+
|
|
232
|
+
### Factory.AI
|
|
233
|
+
|
|
234
|
+
UAP provides skills for Factory.AI droids:
|
|
235
|
+
|
|
236
|
+
- `@Skill:chess-engine.md` - Chess pattern matching
|
|
237
|
+
- `@Skill:compression.md` - Information-theoretic limits
|
|
238
|
+
- `@Skill:adversarial.md` - Security vulnerability analysis
|
|
239
|
+
- `@Skill:git-forensics.md` - Repository recovery
|
|
240
|
+
|
|
241
|
+
### Multi-Agent Coordination
|
|
242
|
+
|
|
243
|
+
UAP detects overlapping work between agents via:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
uap coordination check --agents agent1,agent2,agent3
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
This prevents duplicate effort and identifies collaboration opportunities.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## API Reference
|
|
254
|
+
|
|
255
|
+
### Memory Operations
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
// Store a memory
|
|
259
|
+
await uap.memory.store('Always validate CSRF tokens in auth flows');
|
|
260
|
+
|
|
261
|
+
// Query memories
|
|
262
|
+
const results = await uap.memory.query('authentication security', {
|
|
263
|
+
topK: 5,
|
|
264
|
+
scoreThreshold: 0.35,
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
// Clear session memory
|
|
268
|
+
await uap.memory.clearSession();
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Task Management
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
// Create a task
|
|
275
|
+
const task = await uap.task.create({
|
|
276
|
+
title: 'Implement rate limiting',
|
|
277
|
+
type: 'feature',
|
|
278
|
+
priority: 'high',
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// Update task status
|
|
282
|
+
await uap.task.update(task.id, { status: 'in_progress' });
|
|
283
|
+
|
|
284
|
+
// Get task with memory context
|
|
285
|
+
const enrichedTask = await uap.task.get(task.id, { includeMemory: true });
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Troubleshooting
|
|
291
|
+
|
|
292
|
+
### Common Issues
|
|
293
|
+
|
|
294
|
+
| Error | Solution |
|
|
295
|
+
| -------------------------- | ------------------------------------------------- |
|
|
296
|
+
| `ModuleNotFoundError` | Run `npm install` after cloning |
|
|
297
|
+
| `Qdrant connection failed` | Start Docker: `cd agents && docker-compose up -d` |
|
|
298
|
+
| `Worktree already exists` | Use `uap worktree cleanup <id>` first |
|
|
299
|
+
| `Memory DB locked` | Close other processes using the DB |
|
|
300
|
+
| `Compliance check failed` | Review specific gate failure in output |
|
|
301
|
+
|
|
302
|
+
### Debug Mode
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
# Enable verbose logging
|
|
306
|
+
export UAP_VERBOSE=true
|
|
307
|
+
|
|
308
|
+
# Check memory queries
|
|
309
|
+
uap task ready --verbose
|
|
310
|
+
|
|
311
|
+
# Inspect database directly
|
|
312
|
+
sqlite3 ./agents/data/memory/short_term.db ".tables"
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Contributing
|
|
318
|
+
|
|
319
|
+
UAP is open source. Contributions welcome:
|
|
320
|
+
|
|
321
|
+
1. Fork the repository
|
|
322
|
+
2. Create a worktree: `uap worktree create feature-name`
|
|
323
|
+
3. Make changes and run tests: `npm test`
|
|
324
|
+
4. Submit PR via `uap worktree pr <id>`
|
|
325
|
+
|
|
326
|
+
### Development Setup
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
git clone https://github.com/DammianMiller/universal-agent-protocol.git
|
|
330
|
+
cd universal-agent-protocol
|
|
331
|
+
npm install
|
|
332
|
+
npm run build
|
|
333
|
+
npm test
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## License
|
|
339
|
+
|
|
340
|
+
MIT License - See [LICENSE](../LICENSE) file
|
|
341
|
+
|
|
342
|
+
**Maintained By**: UAP Team
|
|
343
|
+
**Repository**: https://github.com/DammianMiller/universal-agent-protocol
|
|
344
|
+
**Issues**: https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# UAP Setup Guide
|
|
2
|
+
|
|
3
|
+
Complete setup instructions for Universal Agent Memory.
|
|
4
|
+
|
|
5
|
+
## Quick Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Install UAP CLI
|
|
9
|
+
npm install -g universal-agent-protocol
|
|
10
|
+
|
|
11
|
+
# Run comprehensive setup
|
|
12
|
+
npm run setup
|
|
13
|
+
|
|
14
|
+
# Initialize in your project
|
|
15
|
+
uap init
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Dependencies
|
|
19
|
+
|
|
20
|
+
### Required
|
|
21
|
+
|
|
22
|
+
- **Node.js >= 18.0.0** - Runtime environment
|
|
23
|
+
- **npm** - Package manager
|
|
24
|
+
- **git** - Version control (required for git hooks)
|
|
25
|
+
- **npx** - Runs CLI tools (included with npm)
|
|
26
|
+
|
|
27
|
+
### Optional but Recommended
|
|
28
|
+
|
|
29
|
+
- **Docker** - Enables local Qdrant for semantic search
|
|
30
|
+
- **Python 3** - Enables Pattern RAG indexing
|
|
31
|
+
- **pre-commit** - Provides advanced git hooks
|
|
32
|
+
|
|
33
|
+
## Installation by Platform
|
|
34
|
+
|
|
35
|
+
### macOS
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Install all dependencies
|
|
39
|
+
brew install node@18 git python docker
|
|
40
|
+
|
|
41
|
+
# Install UAP
|
|
42
|
+
npm install -g universal-agent-protocol
|
|
43
|
+
|
|
44
|
+
# Run setup
|
|
45
|
+
npm run setup
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Ubuntu/Debian
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Install Node.js 20.x
|
|
52
|
+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
53
|
+
sudo apt-get install -y nodejs
|
|
54
|
+
|
|
55
|
+
# Install other dependencies
|
|
56
|
+
sudo apt-get install -y git python3 docker.io
|
|
57
|
+
|
|
58
|
+
# Install UAP
|
|
59
|
+
npm install -g universal-agent-protocol
|
|
60
|
+
|
|
61
|
+
# Run setup
|
|
62
|
+
npm run setup
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Windows
|
|
66
|
+
|
|
67
|
+
```powershell
|
|
68
|
+
# Install all dependencies using winget
|
|
69
|
+
winget install OpenJS.NodeJS.LTS
|
|
70
|
+
winget install Git.Git
|
|
71
|
+
winget install Python.Python.3.12
|
|
72
|
+
winget install Docker.DockerDesktop
|
|
73
|
+
|
|
74
|
+
# Install UAP
|
|
75
|
+
npm install -g universal-agent-protocol
|
|
76
|
+
|
|
77
|
+
# Run setup
|
|
78
|
+
npm run setup
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Git Hooks
|
|
82
|
+
|
|
83
|
+
The setup script automatically configures the following git hooks:
|
|
84
|
+
|
|
85
|
+
### Pre-commit Hook
|
|
86
|
+
|
|
87
|
+
- Checks for secrets in committed files
|
|
88
|
+
- Runs linter with zero warnings allowed
|
|
89
|
+
- Prevents accidental commits of sensitive data
|
|
90
|
+
|
|
91
|
+
### Commit-msg Hook
|
|
92
|
+
|
|
93
|
+
- Validates conventional commits format
|
|
94
|
+
- Suggests proper format if invalid
|
|
95
|
+
- Allows override with confirmation
|
|
96
|
+
|
|
97
|
+
### Pre-push Hook
|
|
98
|
+
|
|
99
|
+
- Runs all tests before pushing
|
|
100
|
+
- Prevents pushing broken code
|
|
101
|
+
|
|
102
|
+
## Environment Setup
|
|
103
|
+
|
|
104
|
+
### Required Environment Variables
|
|
105
|
+
|
|
106
|
+
None required for basic functionality.
|
|
107
|
+
|
|
108
|
+
### Optional Environment Variables
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# GitHub token for GitHub memory backend
|
|
112
|
+
export GITHUB_TOKEN=your_token_here
|
|
113
|
+
|
|
114
|
+
# Qdrant Cloud credentials for semantic search
|
|
115
|
+
export QDRANT_API_KEY=your_key_here
|
|
116
|
+
export QDRANT_URL=your_url_here
|
|
117
|
+
|
|
118
|
+
# Local Qdrant (if running Docker)
|
|
119
|
+
export QDRANT_URL=http://localhost:6333
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Verification
|
|
123
|
+
|
|
124
|
+
After setup, verify everything is working:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Check UAP CLI
|
|
128
|
+
uap --version
|
|
129
|
+
|
|
130
|
+
# Check memory status
|
|
131
|
+
uap memory status
|
|
132
|
+
|
|
133
|
+
# Run tests
|
|
134
|
+
npm test
|
|
135
|
+
|
|
136
|
+
# Check git hooks
|
|
137
|
+
ls -la .git/hooks/
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Troubleshooting
|
|
141
|
+
|
|
142
|
+
### Git hooks not running
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Make hooks executable
|
|
146
|
+
chmod +x .git/hooks/*
|
|
147
|
+
|
|
148
|
+
# Verify hooks are active
|
|
149
|
+
ls -la .git/hooks/ | grep -v sample
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### TypeScript build fails
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# Clear cache and rebuild
|
|
156
|
+
rm -rf dist node_modules/.cache
|
|
157
|
+
npm run build
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### npm install fails
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Clear npm cache
|
|
164
|
+
npm cache clean --force
|
|
165
|
+
|
|
166
|
+
# Reinstall
|
|
167
|
+
rm -rf node_modules package-lock.json
|
|
168
|
+
npm install
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Docker not available
|
|
172
|
+
|
|
173
|
+
No problem! UAP will use cloud backends. You can add Docker later:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Install Docker
|
|
177
|
+
curl -fsSL https://get.docker.com | sh
|
|
178
|
+
|
|
179
|
+
# Start Qdrant
|
|
180
|
+
uap memory start
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Next Steps
|
|
184
|
+
|
|
185
|
+
1. **Review the generated CLAUDE.md** - Customize as needed
|
|
186
|
+
2. **Set up cloud backends** - Add your API keys
|
|
187
|
+
3. **Start working** - Your AI assistant will follow the workflows automatically
|
|
188
|
+
|
|
189
|
+
## Uninstallation
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Remove global package
|
|
193
|
+
npm uninstall -g universal-agent-protocol
|
|
194
|
+
|
|
195
|
+
# Remove from your project
|
|
196
|
+
rm -rf .uap.json CLAUDE.md agents/ .worktrees/
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Support
|
|
200
|
+
|
|
201
|
+
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
202
|
+
- **Issues**: [GitHub Issues](https://github.com/DammianMiller/universal-agent-protocol/issues)
|
|
203
|
+
- **Discussions**: [GitHub Discussions](https://github.com/DammianMiller/universal-agent-protocol/discussions)
|