@miller-tech/uap 1.20.32 → 1.20.34
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/config/model-profiles/qwen35.json +6 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +6 -1
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/hooks.js +30 -7
- package/dist/cli/hooks.js.map +1 -1
- package/dist/cli/policy.d.ts.map +1 -1
- package/dist/cli/policy.js +26 -0
- package/dist/cli/policy.js.map +1 -1
- package/dist/dashboard/data-seeder.d.ts.map +1 -1
- package/dist/dashboard/data-seeder.js +72 -3
- package/dist/dashboard/data-seeder.js.map +1 -1
- package/dist/dashboard/data-service.js +1 -1
- package/dist/dashboard/data-service.js.map +1 -1
- package/dist/dashboard/server.js +1 -1
- package/dist/dashboard/server.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -1
- package/docs/AGENTS.md +423 -0
- package/docs/AGENTS.md</path>CLAUDE.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/INDEX.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/reference/API_REFERENCE.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/reference/UAP_CLI_REFERENCE.md</path>src/index.ts</path>/src/cli/worktree.ts</path>/src/coordination/deploy-batcher.ts</path>/src/policies/policy-gate.ts</path>/src/memory/model-router.ts</path>/src/memory/embeddings.ts</path>/src/models/types.ts</path>/src/types/coordination.ts</path>/src/utils/logger.ts</path>/src/utils/config-loader.ts</path>/src/utils/performance-monitor.ts</path>/src/utils/concurrency.ts</path>/src/utils/concurrency-pool.ts</path>/src/utils/string-similarity.ts</path>/src/utils/rate-limiter.ts</path>/src/utils/system-resources.ts</path>/src/utils/adaptive-cache.ts</path>/src/utils/lazy-imports.ts</path>/src/utils/merge-claude-md.ts</path>/src/utils/stopwords.ts</path>/src/utils/config-loader.ts</path>/src/utils/performance-monitor.ts</path>/src/utils/concurrency.ts</path>/src/utils/concurrency-pool.ts</path>/src/utils/string-similarity.ts</path>/src/utils/rate-limiter.ts</path>/src/utils/system-resources.ts</path>/src/utils/adaptive-cache.ts</path>/src/utils/lazy-imports.ts</path>/src/utils/merge-claude-md.ts</path>/src/utils/stopwords.ts</path> +433 -0
- package/docs/DOCUMENTATION_AUDIT_REPORT.md +131 -0
- package/docs/GETTING_STARTED.md +288 -0
- package/docs/INDEX.md +272 -42
- package/docs/PROJECT_ANALYSIS_REPORT.md +510 -0
- package/docs/architecture/SYSTEM_ANALYSIS.md +220 -1003
- package/docs/blog/local-coding-agents.md +266 -0
- package/docs/blog/x-thread.md +254 -0
- package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +15 -647
- package/docs/getting-started/OVERVIEW.md +10 -30
- package/docs/getting-started/SETUP.md +183 -9
- package/docs/pr/UPSTREAM_PRS.md +424 -0
- package/docs/reference/CONFIGURATION.md +208 -0
- package/docs/reference/DATABASE_SCHEMA.md +344 -0
- package/docs/reference/PATTERN_LIBRARY.md +636 -0
- package/package.json +1 -1
- package/templates/hooks/uap-policy-gate.sh +36 -0
- package/tools/agents/claude_local_agent.py +92 -0
- package/tools/agents/opencode_uap_agent.py +3 -0
- package/tools/agents/scripts/anthropic_proxy.py +654 -20
- package/tools/agents/uap_agent.py +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# UAP - Universal Agent Protocol
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
> **Version:** 1.18.0
|
|
4
|
+
> **Last Updated:** 2026-03-28
|
|
5
|
+
> **License: A persistent memory system for autonomous AI agents
|
|
4
6
|
|
|
5
7
|
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
8
|
|
|
7
|
-
---
|
|
8
|
-
|
|
9
9
|
## What is UAP?
|
|
10
10
|
|
|
11
11
|
UAP is an open protocol that enables AI agents to:
|
|
@@ -13,9 +13,6 @@ UAP is an open protocol that enables AI agents to:
|
|
|
13
13
|
1. **Remember Context**: Store and retrieve relevant information across sessions
|
|
14
14
|
2. **Apply Patterns**: Leverage battle-tested workflows and decision frameworks
|
|
15
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
16
|
|
|
20
17
|
---
|
|
21
18
|
|
|
@@ -24,7 +21,7 @@ Unlike temporary context windows, UAP provides **persistent memory** that surviv
|
|
|
24
21
|
### 1. Memory System (4-Layer Architecture)
|
|
25
22
|
|
|
26
23
|
| Layer | Type | Purpose | Speed |
|
|
27
|
-
| ----- | --------------------------- | ----------------------------------- | -----
|
|
24
|
+
| ----- | --------------------------- | ----------------------------------- | -----
|
|
28
25
|
| L1 | SQLite (`memories`) | Working context, recent decisions | <1ms |
|
|
29
26
|
| L2 | SQLite (`session_memories`) | Current task session state | <5ms |
|
|
30
27
|
| L3 | Qdrant (vector DB) | Semantic search across all memories | ~50ms |
|
|
@@ -33,7 +30,6 @@ Unlike temporary context windows, UAP provides **persistent memory** that surviv
|
|
|
33
30
|
### 2. CLAUDE.md Protocol
|
|
34
31
|
|
|
35
32
|
Every UAP-enabled project includes a `CLAUDE.md` file that defines:
|
|
36
|
-
|
|
37
33
|
- **Directive Hierarchy**: Which rules take precedence
|
|
38
34
|
- **Decision Loop**: Standard workflow for any task
|
|
39
35
|
- **Patterns**: 58+ battle-tested patterns for common scenarios
|
|
@@ -59,14 +55,11 @@ uap worktree create fix-auth-issue
|
|
|
59
55
|
### 4. Worktree Workflow
|
|
60
56
|
|
|
61
57
|
UAP enforces a **worktree-only** workflow to prevent accidental changes to main branches:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
58
|
# Create worktree for any change (even single file)
|
|
65
59
|
uap worktree create bugfix-description
|
|
66
60
|
|
|
67
61
|
# Make changes, commit, create PR
|
|
68
|
-
cd .worktrees/NNN-
|
|
69
|
-
git add -A && git commit -m "type: description"
|
|
62
|
+
cd .worktrees/NNN-bash: git add -A && git commit -m "type: description"
|
|
70
63
|
uap worktree pr 123
|
|
71
64
|
|
|
72
65
|
# After merge, cleanup is mandatory
|
|
@@ -113,10 +106,6 @@ UAP includes 58+ patterns for common scenarios:
|
|
|
113
106
|
| P32 | CLI tool | Test `./script` not `python script` |
|
|
114
107
|
| P37 | Output format specified | Diff output schema vs expectations |
|
|
115
108
|
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Installation
|
|
119
|
-
|
|
120
109
|
### Prerequisites
|
|
121
110
|
|
|
122
111
|
- Node.js >= 18.0.0
|
|
@@ -279,15 +268,8 @@ const task = await uap.task.create({
|
|
|
279
268
|
});
|
|
280
269
|
|
|
281
270
|
// 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
|
|
271
|
+
await uap.task.update(task.id, { status: 'in_progress' }); enrichedTask = await uap.task.get(task.id, { includeMemory: true });
|
|
272
|
+
gleshooting
|
|
291
273
|
|
|
292
274
|
### Common Issues
|
|
293
275
|
|
|
@@ -298,10 +280,6 @@ const enrichedTask = await uap.task.get(task.id, { includeMemory: true });
|
|
|
298
280
|
| `Worktree already exists` | Use `uap worktree cleanup <id>` first |
|
|
299
281
|
| `Memory DB locked` | Close other processes using the DB |
|
|
300
282
|
| `Compliance check failed` | Review specific gate failure in output |
|
|
301
|
-
|
|
302
|
-
### Debug Mode
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
283
|
# Enable verbose logging
|
|
306
284
|
export UAP_VERBOSE=true
|
|
307
285
|
|
|
@@ -341,4 +319,6 @@ MIT License - See [LICENSE](../LICENSE) file
|
|
|
341
319
|
|
|
342
320
|
**Maintained By**: UAP Team
|
|
343
321
|
**Repository**: https://github.com/DammianMiller/universal-agent-protocol
|
|
344
|
-
**Issues**:
|
|
322
|
+
**Issues**: DammianMiller/universal-agent-protocol/issues
|
|
323
|
+
|
|
324
|
+
</div>
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# UAP Setup Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Version:** 1.18.0
|
|
4
|
+
> **Last Updated:** 2026-03-28
|
|
5
|
+
> **Status:** ✅ Production Ready
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
12
|
# Install UAP CLI
|
|
@@ -20,7 +24,6 @@ uap init
|
|
|
20
24
|
### Required
|
|
21
25
|
|
|
22
26
|
- **Node.js >= 18.0.0** - Runtime environment
|
|
23
|
-
- **npm** - Package manager
|
|
24
27
|
- **git** - Version control (required for git hooks)
|
|
25
28
|
- **npx** - Runs CLI tools (included with npm)
|
|
26
29
|
|
|
@@ -50,10 +53,7 @@ npm run setup
|
|
|
50
53
|
```bash
|
|
51
54
|
# Install Node.js 20.x
|
|
52
55
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# Install other dependencies
|
|
56
|
-
sudo apt-get install -y git python3 docker.io
|
|
56
|
+
git python3 docker.io
|
|
57
57
|
|
|
58
58
|
# Install UAP
|
|
59
59
|
npm install -g universal-agent-protocol
|
|
@@ -171,8 +171,170 @@ npm install
|
|
|
171
171
|
### Docker not available
|
|
172
172
|
|
|
173
173
|
No problem! UAP will use cloud backends. You can add Docker later:
|
|
174
|
+
# Install Docker
|
|
175
|
+
curl -fsSL https://get.docker.com | sh
|
|
176
|
+
|
|
177
|
+
# Start Qdrant
|
|
178
|
+
uap memory start
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Next Steps
|
|
182
|
+
|
|
183
|
+
1. **Review the generated CLAUDE.md** - Customize as needed
|
|
184
|
+
2. **Set up cloud backends** - Add your API keys
|
|
185
|
+
3. **Start working** - Your AI assistant will follow the workflows automatically
|
|
186
|
+
|
|
187
|
+
## Uninstallation
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Remove global package
|
|
191
|
+
npm uninstall -g universal-agent-protocol
|
|
192
|
+
|
|
193
|
+
# Remove from your project
|
|
194
|
+
rm -rf .uap.json CLAUDE.md agents/ .worktrees/
|
|
195
|
+
|
|
196
|
+
**Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
197
|
+
|
|
198
|
+
**Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
199
|
+
|
|
200
|
+
**Last Updated:** 2026-03-28
|
|
201
|
+
> **Status:** ✅ Production Ready
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Quick Setup
|
|
174
206
|
|
|
175
207
|
```bash
|
|
208
|
+
# Install UAP CLI
|
|
209
|
+
npm install -g universal-agent-protocol
|
|
210
|
+
|
|
211
|
+
# Run comprehensive setup
|
|
212
|
+
npm run setup
|
|
213
|
+
|
|
214
|
+
# Initialize in your project
|
|
215
|
+
uap init
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Dependencies
|
|
219
|
+
|
|
220
|
+
### Required
|
|
221
|
+
|
|
222
|
+
- **Node.js >= 18.0.0** - Runtime environment
|
|
223
|
+
- **npm, yarn)
|
|
224
|
+
- **npm** - Package manager
|
|
225
|
+
- **git** - Version control (required for git hooks)
|
|
226
|
+
- **npx** - Runs CLI tools (included with npm)
|
|
227
|
+
|
|
228
|
+
### Optional but Recommended
|
|
229
|
+
|
|
230
|
+
- **Docker** - Enables local Qdrant for semantic search
|
|
231
|
+
- **Python 3** - Enables Pattern RAG indexing
|
|
232
|
+
- **pre-commit** - Provides advanced git hooks
|
|
233
|
+
|
|
234
|
+
## Installation by Platform
|
|
235
|
+
|
|
236
|
+
### macOS
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
# Install all dependencies
|
|
240
|
+
brew install node@18 git python docker
|
|
241
|
+
|
|
242
|
+
# Install UAP
|
|
243
|
+
npm install -g universal-agent-protocol
|
|
244
|
+
|
|
245
|
+
# Run setup
|
|
246
|
+
npm run setup
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Pre-commit Hook
|
|
250
|
+
# Check for secrets in committed files
|
|
251
|
+
# Runs linter with zero warnings allowed
|
|
252
|
+
# Prevents accidental commits of sensitive data
|
|
253
|
+
|
|
254
|
+
### Commit-msg Hook
|
|
255
|
+
|
|
256
|
+
- Validates conventional commits format
|
|
257
|
+
- Suggests proper format if invalid
|
|
258
|
+
- Allows override with confirmation
|
|
259
|
+
|
|
260
|
+
### Pre-push Hook
|
|
261
|
+
|
|
262
|
+
- Runs all tests before pushing
|
|
263
|
+
- Prevents pushing broken code
|
|
264
|
+
|
|
265
|
+
## Environment Setup
|
|
266
|
+
|
|
267
|
+
### Required Environment Variables
|
|
268
|
+
|
|
269
|
+
None required for basic functionality.
|
|
270
|
+
|
|
271
|
+
### Optional Environment Variables
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
# GitHub token for GitHub memory backend
|
|
275
|
+
export GITHUB_TOKEN=your_token_here
|
|
276
|
+
|
|
277
|
+
# Qdrant Cloud credentials for semantic search
|
|
278
|
+
export QDRANT_API_KEY=your_key_here
|
|
279
|
+
export QDRANT_URL=your_url_here
|
|
280
|
+
|
|
281
|
+
# Local Qdrant (if running Docker)
|
|
282
|
+
export QDRANT_URL=http://localhost:6333
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Verification
|
|
286
|
+
|
|
287
|
+
After setup, verify everything is working:
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
# Check UAP CLI
|
|
291
|
+
uap --version
|
|
292
|
+
|
|
293
|
+
# Check memory status
|
|
294
|
+
uap memory status
|
|
295
|
+
|
|
296
|
+
# Run tests
|
|
297
|
+
npm test
|
|
298
|
+
|
|
299
|
+
# Check git hooks
|
|
300
|
+
ls -la .git/hooks/
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## Troubleshooting
|
|
304
|
+
|
|
305
|
+
### Git hooks not running
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
# Make hooks executable
|
|
309
|
+
chmod +x .git/hooks/*
|
|
310
|
+
|
|
311
|
+
# Verify hooks are active
|
|
312
|
+
ls -la .git/hooks/ | grep -v sample
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### TypeScript build fails
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
# Clear cache and rebuild
|
|
319
|
+
rm -rf dist node_modules/.cache
|
|
320
|
+
npm run build
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### npm install fails
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
# Clear npm cache
|
|
327
|
+
npm cache clean --force
|
|
328
|
+
|
|
329
|
+
# Reinstall
|
|
330
|
+
rm -rf node_modules package-lock.json
|
|
331
|
+
npm install
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Docker not available
|
|
335
|
+
|
|
336
|
+
No problem! UAP will use cloud backends. You can add Docker later:
|
|
337
|
+
|
|
176
338
|
# Install Docker
|
|
177
339
|
curl -fsSL https://get.docker.com | sh
|
|
178
340
|
|
|
@@ -196,8 +358,20 @@ npm uninstall -g universal-agent-protocol
|
|
|
196
358
|
rm -rf .uap.json CLAUDE.md agents/ .worktrees/
|
|
197
359
|
```
|
|
198
360
|
|
|
361
|
+
**Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
362
|
+
|
|
363
|
+
**Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
364
|
+
|
|
365
|
+
## Support
|
|
366
|
+
|
|
367
|
+
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
368
|
+
- **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
369
|
+
|
|
370
|
+
**Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
371
|
+
|
|
372
|
+
- **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|
|
373
|
+
|
|
199
374
|
## Support
|
|
200
375
|
|
|
201
376
|
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
|
|
202
|
-
- **Issues
|
|
203
|
-
- **Discussions**: [GitHub Discussions](https://github.com/DammianMiller/universal-agent-protocol/discussions)
|
|
377
|
+
- **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
|