@miller-tech/uap 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -642
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +2 -2
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/deliver.d.ts +3 -2
- package/dist/cli/deliver.d.ts.map +1 -1
- package/dist/cli/deliver.js +10 -5
- package/dist/cli/deliver.js.map +1 -1
- package/docs/INDEX.md +48 -286
- package/docs/architecture/OVERVIEW.md +328 -0
- package/docs/architecture/PROTOCOL.md +204 -0
- package/docs/benchmarks/README.md +17 -192
- package/docs/getting-started/CONFIGURATION.md +237 -0
- package/docs/getting-started/INSTALLATION.md +125 -0
- package/docs/getting-started/QUICKSTART.md +115 -0
- package/docs/guides/COORDINATION.md +162 -0
- package/docs/guides/DELIVER.md +115 -0
- package/docs/guides/DEPLOY_BATCHING.md +212 -0
- package/docs/guides/DROIDS_AND_SKILLS.md +202 -0
- package/docs/guides/LOCAL_MODELS.md +148 -0
- package/docs/guides/MCP_ROUTER.md +195 -0
- package/docs/guides/MEMORY.md +235 -0
- package/docs/guides/MULTI_MODEL.md +223 -0
- package/docs/guides/POLICIES.md +190 -0
- package/docs/guides/WORKTREE_WORKFLOW.md +185 -0
- package/docs/integrations/MCP_ROUTER.md +147 -0
- package/docs/integrations/RTK.md +102 -0
- package/docs/reference/API.md +485 -0
- package/docs/reference/CLI.md +719 -0
- package/docs/reference/CONFIGURATION.md +90 -193
- package/docs/reference/DATABASE_SCHEMA.md +110 -344
- package/docs/reference/FEATURES.md +176 -472
- package/docs/reference/PATTERNS.md +102 -0
- package/docs/reference/PLATFORMS.md +83 -0
- package/package.json +1 -1
- package/docs/AGENTS.md +0 -423
- package/docs/DOCUMENTATION_AUDIT_REPORT.md +0 -131
- package/docs/GETTING_STARTED.md +0 -288
- package/docs/PROJECT_ANALYSIS_REPORT.md +0 -510
- package/docs/architecture/COMPLETE_ARCHITECTURE.md +0 -748
- package/docs/architecture/EXPERT_STACK.md +0 -137
- package/docs/architecture/MULTI_MODEL.md +0 -224
- package/docs/architecture/PLATFORM_GATING.md +0 -68
- package/docs/architecture/SYSTEM_ANALYSIS.md +0 -334
- package/docs/architecture/UAP_COMPLIANCE.md +0 -217
- package/docs/architecture/UAP_PROTOCOL.md +0 -339
- package/docs/architecture/UAP_STRICT_DROIDS.md +0 -172
- package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +0 -260
- package/docs/archive/BENCHMARK_GAPS_AND_PLAN.md +0 -146
- package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +0 -668
- package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +0 -209
- package/docs/archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md +0 -281
- package/docs/archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md +0 -320
- package/docs/archive/NPM-PUBLISH-V0.9.1.md +0 -240
- package/docs/archive/OPTIMIZATION_OPTIONS.md +0 -334
- package/docs/archive/PARALLELISM_GAPS_AND_OPTIONS.md +0 -422
- package/docs/archive/POLICY_GATE_IMPLEMENTATION.md +0 -245
- package/docs/archive/SETUP_IMPROVEMENTS.md +0 -213
- package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +0 -270
- package/docs/archive/UAP_OPTIMIZATION_PLAN.md +0 -701
- package/docs/archive/UAP_V103_PATTERN_DESIGN.md +0 -315
- package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +0 -223
- package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +0 -77
- package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +0 -109
- package/docs/archive/opencode-integration-guide.md +0 -740
- package/docs/archive/opencode-integration-quickref.md +0 -180
- package/docs/benchmarks/OVERNIGHT_RUNNER.md +0 -341
- package/docs/benchmarks/SPECULATIVE_DECODING_JOURNEY_2026-03.md +0 -221
- package/docs/benchmarks/VALIDATION_PLAN.md +0 -568
- package/docs/blog/SPECULATIVE_DECODING_PRODUCTION_PLAYBOOK.md +0 -139
- package/docs/blog/local-coding-agents.md +0 -266
- package/docs/blog/x-thread.md +0 -254
- package/docs/deployment/DEPLOYMENT.md +0 -895
- package/docs/deployment/DEPLOYMENT_STRATEGIES.md +0 -518
- package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +0 -224
- package/docs/deployment/DEPLOY_BATCHING.md +0 -273
- package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +0 -420
- package/docs/deployment/QWEN35_LLAMA_CPP.md +0 -426
- package/docs/deployment/UAP_LLAMA_ANTHROPIC_PROXY_BOOTSTRAP.md +0 -279
- package/docs/getting-started/INTEGRATION.md +0 -628
- package/docs/getting-started/OVERVIEW.md +0 -324
- package/docs/getting-started/SETUP.md +0 -377
- package/docs/integrations/MCP_ROUTER_SETUP.md +0 -445
- package/docs/integrations/RTK_INTEGRATION.md +0 -468
- package/docs/operations/TROUBLESHOOTING.md +0 -660
- package/docs/pr/PR_SPECULATIVE_DOCS_TEMPLATE.md +0 -146
- package/docs/pr/UPSTREAM_PRS.md +0 -424
- package/docs/reference/API_REFERENCE.md +0 -903
- package/docs/reference/EXPERT_DROIDS.md +0 -219
- package/docs/reference/HARNESS-MATRIX.md +0 -318
- package/docs/reference/PATTERN_LIBRARY.md +0 -636
- package/docs/reference/UAP_CLI_REFERENCE.md +0 -620
- package/docs/research/BEHAVIORAL_PATTERNS.md +0 -228
- package/docs/research/DOMAIN_STRATEGIES.md +0 -316
- package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +0 -812
- package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +0 -436
- package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +0 -209
- package/docs/research/PERFORMANCE_TEST_PLAN.md +0 -383
- package/docs/research/TERMINAL_BENCH_LEARNINGS.md +0 -217
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# UAP Documentation Audit Report
|
|
2
|
-
|
|
3
|
-
The Universal Agent Protocol (UAP) project has comprehensive foundational documentation but needs improvements in:
|
|
4
|
-
|
|
5
|
-
- Inline JSDoc comments (140+ exports missing docs)
|
|
6
|
-
- Module-level README files
|
|
7
|
-
- Database schema accuracy
|
|
8
|
-
- CLI command completeness
|
|
9
|
-
|
|
10
|
-
## Current State Assessment:
|
|
11
|
-
|
|
12
|
-
- Comprehensive README.md (542 lines) with feature overview
|
|
13
|
-
- Extensive CLI reference documentation (620 lines)
|
|
14
|
-
- Architecture documentation with Mermaid diagrams
|
|
15
|
-
- Benchmark results thoroughly documented
|
|
16
|
-
|
|
17
|
-
## Documentation Gaps by Priority:
|
|
18
|
-
|
|
19
|
-
### CRITICAL (Must-Have):
|
|
20
|
-
|
|
21
|
-
1. **Inline JSDoc for Public APIs** - Missing from src/index.ts exports
|
|
22
|
-
2. **CLI Command Completeness** - Dashboard (13 views), model commands (8 subcommands), policy commands (15 subcommands) under-documented
|
|
23
|
-
3. **Configuration Schema Documentation** - .uap.json schema incomplete, missing validation rules
|
|
24
|
-
4. **Database Schema Accuracy** - API_REFERENCE.md shows outdated table structures
|
|
25
|
-
5. **Hook System Implementation Details** - Pre-edit build gate enforcement mechanism not explained
|
|
26
|
-
|
|
27
|
-
### HIGH PRIORITY (Should-Have):
|
|
28
|
-
|
|
29
|
-
6. **Memory System Architecture Diagram** - Current diagram has placeholder text
|
|
30
|
-
7. **Pattern Library Reference** - All 23+ patterns need detailed descriptions
|
|
31
|
-
8. **Multi-Agent Coordination Flow** - Heartbeat mechanism details missing
|
|
32
|
-
9. **Policy Enforcement Workflow** - Policy evaluation order not documented
|
|
33
|
-
10. **Testing and Quality Gates** - Test coverage requirements (50% threshold) undocumented
|
|
34
|
-
|
|
35
|
-
### MEDIUM PRIORITY (Nice-to-Have):
|
|
36
|
-
|
|
37
|
-
11. **Benchmark Methodology** - Terminal-Bench adapter details
|
|
38
|
-
12. **Deployment Guides** - Production Qdrant setup
|
|
39
|
-
13. **Troubleshooting Matrix** - Error code reference
|
|
40
|
-
14. **Integration Patterns** - RTK token compression details
|
|
41
|
-
15. **Performance Optimization Guide** - Token budget management
|
|
42
|
-
|
|
43
|
-
## Recommended Documentation Strategy: Hybrid Approach
|
|
44
|
-
|
|
45
|
-
**Combine comprehensive README with inline JSDoc:**
|
|
46
|
-
|
|
47
|
-
**Pros:**
|
|
48
|
-
|
|
49
|
-
- Single source of truth in README for quick onboarding
|
|
50
|
-
- IDE autocomplete via JSDoc for developers
|
|
51
|
-
- Lower maintenance burden than separate docs site
|
|
52
|
-
|
|
53
|
-
**Cons:**
|
|
54
|
-
|
|
55
|
-
- README can become unwieldy (542+ lines)
|
|
56
|
-
- Inline docs can drift from code if not maintained
|
|
57
|
-
|
|
58
|
-
## Implementation Roadmap:
|
|
59
|
-
|
|
60
|
-
### Phase 1: Critical Fixes (Weeks 1-2)
|
|
61
|
-
|
|
62
|
-
| Task | Files | Effort | Priority |
|
|
63
|
-
| ---------------------------------- | ----------------------------------- | ------- | -------- |
|
|
64
|
-
| Add JSDoc to src/index.ts exports | src/index.ts | 8 hours | CRITICAL |
|
|
65
|
-
| Update database schemas | docs/reference/API_REFERENCE.md | 4 hours | CRITICAL |
|
|
66
|
-
| Update configuration schema | README.md, docs/INDEX.md | 3 hours | CRITICAL |
|
|
67
|
-
| Complete CLI command documentation | docs/reference/UAP_CLI_REFERENCE.md | 6 hours | HIGH |
|
|
68
|
-
|
|
69
|
-
### Phase 2: Module Documentation (Weeks 3-4)
|
|
70
|
-
|
|
71
|
-
| Task | Files | Effort | Priority |
|
|
72
|
-
| --------------------------------- | -------------------------- | ------- | -------- |
|
|
73
|
-
| Create memory module README | src/memory/README.md | 4 hours | HIGH |
|
|
74
|
-
| Create coordination module README | src/coordination/README.md | 3 hours | HIGH |
|
|
75
|
-
| Create policies module README | src/policies/README.md | 3 hours | HIGH |
|
|
76
|
-
| Create models module README | src/models/README.md | 3 hours | MEDIUM |
|
|
77
|
-
|
|
78
|
-
### Phase 3: Advanced Documentation (Months 2-3)
|
|
79
|
-
|
|
80
|
-
| Task | Files | Effort | Priority |
|
|
81
|
-
| -------------------------------------- | --------------------------------- | ------- | -------- |
|
|
82
|
-
| Generate API docs with TypeDoc | docs/api/ | 8 hours | MEDIUM |
|
|
83
|
-
| Create pattern library reference | docs/reference/PATTERN_LIBRARY.md | 6 hours | HIGH |
|
|
84
|
-
| Add memory architecture diagram | docs/INDEX.md | 2 hours | HIGH |
|
|
85
|
-
| Establish documentation review process | CONTRIBUTING.md | 3 hours | MEDIUM |
|
|
86
|
-
|
|
87
|
-
## Module-Level Documentation Analysis:
|
|
88
|
-
|
|
89
|
-
### Source Code Structure (143 files):
|
|
90
|
-
|
|
91
|
-
| Directory | Files | Documentation Status | Gaps |
|
|
92
|
-
| ----------------- | -------- | -------------------- | ----------------------------------------------------- |
|
|
93
|
-
| src/memory/ | 22 files | ⚠️ PARTIAL | Predictive memory, context pruner, ambiguity detector |
|
|
94
|
-
| src/models/ | 10 files | ⚠️ PARTIAL | Unified router logic, execution profile loading |
|
|
95
|
-
| src/coordination/ | 6 files | ⚠️ PARTIAL | Capability router (18 types), adaptive patterns |
|
|
96
|
-
| src/cli/ | 27 files | ✅ GOOD | Dashboard views, model commands need examples |
|
|
97
|
-
| src/utils/ | 10 files | ✅ GOOD | Well-documented utilities |
|
|
98
|
-
| src/policies/ | 8 files | ⚠️ PARTIAL | Policy gate middleware, Python enforcement tools |
|
|
99
|
-
| src/mcp-router/ | 10 files | ⚠️ PARTIAL | Client pool management, session stats tracking |
|
|
100
|
-
| src/tasks/ | 7 files | ⚠️ PARTIAL | Event bus implementation, decoder gate mechanism |
|
|
101
|
-
| src/browser/ | 2 files | ❌ MINIMAL | Stealth techniques, error handling |
|
|
102
|
-
| src/dashboard/ | 2 files | ❌ MINIMAL | Server and event-stream not tested |
|
|
103
|
-
| src/telemetry/ | 0 tests | ❌ MISSING | Session telemetry untested |
|
|
104
|
-
|
|
105
|
-
## Test Coverage Gaps:
|
|
106
|
-
|
|
107
|
-
| Module | Test Files | Tests | Coverage Status | Missing |
|
|
108
|
-
| ------------------- | ---------- | ----- | --------------- | ----------------------------------------------- |
|
|
109
|
-
| Browser | 1 file | 4 | ❌ MINIMAL | Stealth techniques, error handling, performance |
|
|
110
|
-
| MCP Router | 3 files | 40+ | ⚠️ PARTIAL | Client pool, session stats, tool execution |
|
|
111
|
-
| Dashboard | 2 files | ~10 | ❌ MINIMAL | Server, event-stream, real-time updates |
|
|
112
|
-
| Telemetry | 0 files | 0 | ❌ MISSING | Session tracking, model usage metrics |
|
|
113
|
-
| Benchmarks (agents) | 0 files | 0 | ❌ MISSING | Agent implementation tests |
|
|
114
|
-
|
|
115
|
-
## Conclusion:
|
|
116
|
-
|
|
117
|
-
The UAP project has **solid foundational documentation** with comprehensive CLI references and good architectural overviews. However, there are significant gaps that need addressing.
|
|
118
|
-
|
|
119
|
-
### Top 5 Priorities:
|
|
120
|
-
|
|
121
|
-
1. **Add JSDoc to src/index.ts** (2-3 hours) - Affects IDE autocomplete for all users
|
|
122
|
-
2. **Update database schemas in API_REFERENCE.md** (4 hours) - Critical for developers
|
|
123
|
-
3. **Create module-level READMEs** (12 hours total) - Improves code navigation
|
|
124
|
-
4. **Complete CLI command documentation** (6 hours) - Helps power users
|
|
125
|
-
5. **Document configuration schema** (3 hours) - Essential for setup
|
|
126
|
-
|
|
127
|
-
### Recommended Strategy: Hybrid Approach
|
|
128
|
-
|
|
129
|
-
Best balance of developer experience and maintenance burden.
|
|
130
|
-
|
|
131
|
-
**Total Effort:** ~52 hours over 3 months
|
package/docs/GETTING_STARTED.md
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
# UAP - Universal Agent Protocol
|
|
2
|
-
|
|
3
|
-
> **Version:** 1.20.32
|
|
4
|
-
> **Last Updated:** 2026-04-08
|
|
5
|
-
> **License:**
|
|
6
|
-
|
|
7
|
-
**Universal Agent Protocol (UAP)** is an open protocol that enables AI agents to maintain persistent context, learn from past interactions, and apply proven patterns across tasks.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Core Capabilities
|
|
12
|
-
|
|
13
|
-
1. **Persistent Memory**: Store and retrieve information across sessions with 4-layer architecture
|
|
14
|
-
2. **Pattern Application**: Leverage 58+ battle-tested workflows and decision frameworks
|
|
15
|
-
3. **Multi-Agent Coordination**: Coordinate work between agents to prevent conflicts
|
|
16
|
-
4. **CI/CD Optimization**: Reduce pipeline costs by 50-80% through intelligent batching
|
|
17
|
-
5. **MCP Integration**: Achieve 98% token reduction via meta-tool routing
|
|
18
|
-
|
|
19
|
-
### Quick Start
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# Install UAP CLI
|
|
23
|
-
npm install -g universal-agent-protocol
|
|
24
|
-
|
|
25
|
-
# Initialize in your project
|
|
26
|
-
uap init
|
|
27
|
-
|
|
28
|
-
# Create a tracked task
|
|
29
|
-
uap task create "Implement feature X"
|
|
30
|
-
|
|
31
|
-
# Use worktree for safe development
|
|
32
|
-
uap worktree create feature-name
|
|
33
|
-
cd .worktrees/NNN-feature-name/
|
|
34
|
-
# Make changes...
|
|
35
|
-
uap worktree pr <id>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Prerequisites
|
|
39
|
-
|
|
40
|
-
- Node.js >= 18.0.0
|
|
41
|
-
- npm or yarn
|
|
42
|
-
- Optional: Docker (for Qdrant semantic search)
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## Architecture
|
|
47
|
-
|
|
48
|
-
### System Overview
|
|
49
|
-
|
|
50
|
-
UAP implements a **4-layer memory architecture** combined with multi-agent coordination:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
54
|
-
│ AI Agent Layer │
|
|
55
|
-
│ (Claude, Factory.AI, OpenCode, etc.) │
|
|
56
|
-
└──────────────────────┬──────────────────────────────────────┘
|
|
57
|
-
│
|
|
58
|
-
┌──────────────────────▼──────────────────────────────────────┐
|
|
59
|
-
│ UAP Core Layer │
|
|
60
|
-
│ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
|
|
61
|
-
└──────────────────────┬──────────────────────────────────────┘
|
|
62
|
-
│
|
|
63
|
-
┌──────────────────────▼──────────────────────────────────────┐
|
|
64
|
-
│ │
|
|
65
|
-
│ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
|
|
66
|
-
└──────────────────────┬──────────────────────────────────────┘
|
|
67
|
-
│
|
|
68
|
-
┌──────────────────────▼──────────────────────────────────────┐
|
|
69
|
-
│ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
|
|
70
|
-
──────────────────────────────────────┘
|
|
71
|
-
│
|
|
72
|
-
┌──────────────────────▼──────────────────────────────────────┐
|
|
73
|
-
│ Storage Layer │
|
|
74
|
-
│ SQLite (Working) │ Qdrant (Semantic) │ Git (History) │ ─────────────────────────────────────────────────────────────┘
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Key Components
|
|
78
|
-
|
|
79
|
-
| Component | Purpose | Impact |
|
|
80
|
-
| ------------------- | ---------------------------- | ------------------------ |
|
|
81
|
-
| **Memory System** | 4-layer persistent context | 10x retention |
|
|
82
|
-
| ination\*\* | Multi-agent sync via SQLite | Zero conflicts |
|
|
83
|
-
| **Task Management** | Structured workflow tracking | Full lifecycle |
|
|
84
|
-
| **Deploy Batcher** | CI/CD optimization | 50-80% savings |
|
|
85
|
-
| **MCP Router** | Meta-tool routing | 98% token reduction |
|
|
86
|
-
| Worktrees\*\* | Safe isolated development | No main branch pollution |
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## Reference
|
|
91
|
-
|
|
92
|
-
### CLI Commands
|
|
93
|
-
|
|
94
|
-
#### Task Management
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
# Create and track tasks
|
|
98
|
-
uap task create "Fix bug" --priority high
|
|
99
|
-
uap task list --active
|
|
100
|
-
uap task complete --reason "Fixed"
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
#### Memory Operations
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
# Store and query memories
|
|
107
|
-
uap memory store "Best practice: validate inputs"
|
|
108
|
-
uap memory query "authentication" --top-k 5
|
|
109
|
-
uap memory status
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
#### Worktree Workflow
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
# Safe isolated development
|
|
116
|
-
uap worktree create feature-name
|
|
117
|
-
cd .worktrees/NNN-feature-name/
|
|
118
|
-
ges...
|
|
119
|
-
uap worktree pr <id>
|
|
120
|
-
uap worktree cleanup <id> # After merge
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### Compliance
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
# Verify protocol compliance
|
|
127
|
-
uap compliance check
|
|
128
|
-
uap hooks install all
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Database Schema
|
|
132
|
-
|
|
133
|
-
UAP uses SQLite for structured data and Qdrant for semantic search:
|
|
134
|
-
|
|
135
|
-
**SQLite Tables:**
|
|
136
|
-
|
|
137
|
-
- `memories` - Short-term working memory (50 entries)
|
|
138
|
-
- `session_memories` - Current session state
|
|
139
|
-
- `entities/relationships` - Knowledge graph
|
|
140
|
-
- `agent_registry` - Multi-agent coordination
|
|
141
|
-
- `deploy_queue` - CI/CD batching queue
|
|
142
|
-
|
|
143
|
-
**Qdrant Collections:**
|
|
144
|
-
|
|
145
|
-
- `agent_memory` - Semantic embeddings (384-dim vectors)
|
|
146
|
-
- `agent_patterns` - Pattern library indexing
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## Deployment
|
|
151
|
-
|
|
152
|
-
### Production Setup
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
# Start Qdrant for semantic search
|
|
156
|
-
cd agents && docker-compose up -d
|
|
157
|
-
|
|
158
|
-
# Install hooks
|
|
159
|
-
uap hooks install all
|
|
160
|
-
|
|
161
|
-
# Verify setup
|
|
162
|
-
uap task ready
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### CI/CD Integration
|
|
166
|
-
|
|
167
|
-
UAP integrates with GitHub Actions via the DeployBatcher:
|
|
168
|
-
|
|
169
|
-
```yaml
|
|
170
|
-
name: UAP CI
|
|
171
|
-
on: [push, pull_request]
|
|
172
|
-
jobs:
|
|
173
|
-
build:
|
|
174
|
-
runs-on: ubuntu-latest
|
|
175
|
-
steps:
|
|
176
|
-
- uses: actions/checkout@v4
|
|
177
|
-
- name: Run UAP benchmarks
|
|
178
|
-
run: npm run benchmark:full
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### Model Providers
|
|
182
|
-
|
|
183
|
-
| Provider | Use Case | Configuration |
|
|
184
|
-
| --------------------- | ----------------- | ----------------------- |
|
|
185
|
-
| **Qwen3.5** | General tasks | Default, cost-effective |
|
|
186
|
-
| **Claude Opus** | Complex reasoning | High-accuracy scenarios |
|
|
187
|
-
| **GPT-4** | Analysis tasks | Code generation |
|
|
188
|
-
| **Local (llama.cpp)** | Privacy-focused | Self-hosted deployments |
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
## Benchmarks
|
|
193
|
-
|
|
194
|
-
### Performance Summary
|
|
195
|
-
|
|
196
|
-
| Metric | Baseline | UAP v1.18 | Improvement |
|
|
197
|
-
| ---------------- | -------- | --------- | ----------- |
|
|
198
|
-
| **Success Rate** | 75% | **100%** | +25pp |
|
|
199
|
-
| **Tokens/Task** | 52K | **23.4K** | -55% |
|
|
200
|
-
| **Time/Task** | 45s | **32s** | -29% |
|
|
201
|
-
| **Error Rate** | 12% | **0%** | -100% |
|
|
202
|
-
|
|
203
|
-
### Full Benchmark Suite
|
|
204
|
-
|
|
205
|
-
Run the complete benchmark suite:
|
|
206
|
-
|
|
207
|
-
```bash
|
|
208
|
-
# Quick test (10 tasks)
|
|
209
|
-
npm run benchmark:short
|
|
210
|
-
|
|
211
|
-
# Full validation (14 tasks)
|
|
212
|
-
npm run benchmark:full
|
|
213
|
-
|
|
214
|
-
# Overnight extended run
|
|
215
|
-
npm run benchmark:overnight
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Results are documented in [COMPREHENSIVE_BENCHMARKS.md](benchmarks/COMPREHENSIVE_BENCHMARKS.md).
|
|
219
|
-
|
|
220
|
-
## Operations
|
|
221
|
-
|
|
222
|
-
### Troubleshooting
|
|
223
|
-
|
|
224
|
-
| Issue | Solution |
|
|
225
|
-
| -------------------------- | -------------------------------------- |
|
|
226
|
-
| `Qdrant connection failed` | `cd agents && docker-compose up -d` |
|
|
227
|
-
| `Worktree already exists` | `uap worktree cleanup <id>` |
|
|
228
|
-
| Memory DB locked` | Close other processes using the DB |
|
|
229
|
-
| `Compliance check failed` | Review specific gate failure in output |
|
|
230
|
-
|
|
231
|
-
### Debug Mode
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
# Enable verbose logging
|
|
235
|
-
export UAP_VERBOSE=true
|
|
236
|
-
|
|
237
|
-
# Check memory queries
|
|
238
|
-
uap task ready --verbose
|
|
239
|
-
|
|
240
|
-
# Inspect database directly
|
|
241
|
-
sqlite3 ./agents/data/memory/short_term.db ".tables"
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Contributing
|
|
247
|
-
|
|
248
|
-
### Development Setup
|
|
249
|
-
|
|
250
|
-
```bash
|
|
251
|
-
git clone https://github.com/DammianMiller/universal-agent-protocol.git
|
|
252
|
-
cd universal-agent-protocol
|
|
253
|
-
npm install
|
|
254
|
-
npm run build
|
|
255
|
-
npm test
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Worktree Workflow
|
|
259
|
-
|
|
260
|
-
All changes must be made in a worktree:
|
|
261
|
-
|
|
262
|
-
```bash
|
|
263
|
-
# Create worktree for your feature
|
|
264
|
-
uap worktree create feature-description
|
|
265
|
-
|
|
266
|
-
# Make changes, commit, create PR
|
|
267
|
-
cd .worktrees/NNN-feature-description/
|
|
268
|
-
git add -A && git commit -m "feat: description"
|
|
269
|
-
uap worktree pr <id>
|
|
270
|
-
|
|
271
|
-
# After merge, cleanup is mandatory
|
|
272
|
-
uap worktree cleanup <id>
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
## License
|
|
278
|
-
|
|
279
|
-
MIT License - See [LICENSE](../LICENSE) file
|
|
280
|
-
|
|
281
|
-
---
|
|
282
|
-
|
|
283
|
-
<div align="center">
|
|
284
|
-
|
|
285
|
-
**Maintained by:** UAP Team
|
|
286
|
-
**Repository:** https://github.com/DammianMiller/universal-agent-protocol
|
|
287
|
-
**Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
288
|
-
306 lines)
|