@miller-tech/uap 1.0.0 → 1.3.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/dist/benchmarks/benchmark.d.ts +8 -8
- package/dist/benchmarks/improved-benchmark.d.ts.map +1 -1
- package/dist/benchmarks/improved-benchmark.js +10 -23
- package/dist/benchmarks/improved-benchmark.js.map +1 -1
- package/dist/benchmarks/model-integration.d.ts.map +1 -1
- package/dist/benchmarks/model-integration.js +22 -23
- package/dist/benchmarks/model-integration.js.map +1 -1
- package/dist/bin/policy.js +67 -11
- package/dist/bin/policy.js.map +1 -1
- package/dist/cli/dashboard.d.ts +2 -1
- package/dist/cli/dashboard.d.ts.map +1 -1
- package/dist/cli/dashboard.js +399 -10
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/model.js +12 -12
- package/dist/cli/model.js.map +1 -1
- package/dist/cli/setup-wizard.d.ts.map +1 -1
- package/dist/cli/setup-wizard.js +24 -0
- package/dist/cli/setup-wizard.js.map +1 -1
- package/dist/coordination/deploy-batcher.d.ts +1 -0
- package/dist/coordination/deploy-batcher.d.ts.map +1 -1
- package/dist/coordination/deploy-batcher.js +24 -25
- package/dist/coordination/deploy-batcher.js.map +1 -1
- package/dist/dashboard/data-service.d.ts +94 -0
- package/dist/dashboard/data-service.d.ts.map +1 -0
- package/dist/dashboard/data-service.js +286 -0
- package/dist/dashboard/data-service.js.map +1 -0
- package/dist/dashboard/index.d.ts +5 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +3 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/dashboard/server.d.ts +15 -0
- package/dist/dashboard/server.d.ts.map +1 -0
- package/dist/dashboard/server.js +158 -0
- package/dist/dashboard/server.js.map +1 -0
- package/dist/mcp-router/session-stats.d.ts +9 -0
- package/dist/mcp-router/session-stats.d.ts.map +1 -1
- package/dist/mcp-router/session-stats.js +19 -3
- package/dist/mcp-router/session-stats.js.map +1 -1
- package/dist/memory/adaptive-context.d.ts +1 -0
- package/dist/memory/adaptive-context.d.ts.map +1 -1
- package/dist/memory/adaptive-context.js +4 -0
- package/dist/memory/adaptive-context.js.map +1 -1
- package/dist/memory/embeddings.d.ts.map +1 -1
- package/dist/memory/embeddings.js +4 -4
- package/dist/memory/embeddings.js.map +1 -1
- package/dist/memory/model-router.d.ts +1 -1
- package/dist/memory/model-router.d.ts.map +1 -1
- package/dist/memory/model-router.js +52 -1
- package/dist/memory/model-router.js.map +1 -1
- package/dist/memory/predictive-memory.d.ts.map +1 -1
- package/dist/memory/predictive-memory.js +4 -3
- package/dist/memory/predictive-memory.js.map +1 -1
- package/dist/models/analytics.d.ts +93 -0
- package/dist/models/analytics.d.ts.map +1 -0
- package/dist/models/analytics.js +205 -0
- package/dist/models/analytics.js.map +1 -0
- package/dist/models/execution-profiles.d.ts +6 -0
- package/dist/models/execution-profiles.d.ts.map +1 -1
- package/dist/models/execution-profiles.js +15 -0
- package/dist/models/execution-profiles.js.map +1 -1
- package/dist/models/executor.d.ts.map +1 -1
- package/dist/models/executor.js +51 -17
- package/dist/models/executor.js.map +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +2 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/router.d.ts +8 -0
- package/dist/models/router.d.ts.map +1 -1
- package/dist/models/router.js +46 -21
- package/dist/models/router.js.map +1 -1
- package/dist/models/types.d.ts +26 -0
- package/dist/models/types.d.ts.map +1 -1
- package/dist/models/types.js +43 -4
- package/dist/models/types.js.map +1 -1
- package/dist/models/unified-router.d.ts.map +1 -1
- package/dist/models/unified-router.js +4 -0
- package/dist/models/unified-router.js.map +1 -1
- package/dist/policies/database-manager.d.ts +1 -0
- package/dist/policies/database-manager.d.ts.map +1 -1
- package/dist/policies/database-manager.js +14 -2
- package/dist/policies/database-manager.js.map +1 -1
- package/dist/policies/enforced-tool-router.d.ts +2 -2
- package/dist/policies/enforced-tool-router.d.ts.map +1 -1
- package/dist/policies/enforced-tool-router.js +4 -4
- package/dist/policies/enforced-tool-router.js.map +1 -1
- package/dist/policies/policy-gate.d.ts +2 -2
- package/dist/policies/policy-gate.d.ts.map +1 -1
- package/dist/policies/policy-gate.js +6 -4
- package/dist/policies/policy-gate.js.map +1 -1
- package/dist/policies/policy-memory.d.ts +3 -0
- package/dist/policies/policy-memory.d.ts.map +1 -1
- package/dist/policies/policy-memory.js +11 -0
- package/dist/policies/policy-memory.js.map +1 -1
- package/dist/policies/schemas/policy.d.ts +3 -0
- package/dist/policies/schemas/policy.d.ts.map +1 -1
- package/dist/policies/schemas/policy.js +1 -0
- package/dist/policies/schemas/policy.js.map +1 -1
- package/dist/tasks/coordination.d.ts +18 -0
- package/dist/tasks/coordination.d.ts.map +1 -1
- package/dist/tasks/coordination.js +59 -1
- package/dist/tasks/coordination.js.map +1 -1
- package/dist/tasks/event-bus.d.ts +91 -0
- package/dist/tasks/event-bus.d.ts.map +1 -0
- package/dist/tasks/event-bus.js +123 -0
- package/dist/tasks/event-bus.js.map +1 -0
- package/dist/tasks/service.d.ts +5 -0
- package/dist/tasks/service.d.ts.map +1 -1
- package/dist/tasks/service.js +59 -0
- package/dist/tasks/service.js.map +1 -1
- package/dist/telemetry/session-telemetry.d.ts.map +1 -1
- package/dist/telemetry/session-telemetry.js +3 -0
- package/dist/telemetry/session-telemetry.js.map +1 -1
- package/dist/utils/concurrency-pool.d.ts +51 -0
- package/dist/utils/concurrency-pool.d.ts.map +1 -0
- package/dist/utils/concurrency-pool.js +80 -0
- package/dist/utils/concurrency-pool.js.map +1 -0
- package/dist/utils/system-resources.d.ts +47 -0
- package/dist/utils/system-resources.d.ts.map +1 -0
- package/dist/utils/system-resources.js +92 -0
- package/dist/utils/system-resources.js.map +1 -0
- package/docs/BENCHMARK_GAPS_AND_PLAN.md +146 -0
- package/docs/PARALLELISM_GAPS_AND_OPTIONS.md +422 -0
- package/docs/UAP_OPTIMIZATION_PLAN.md +638 -0
- package/docs/getting-started/INTEGRATION.md +193 -14
- package/docs/opencode-integration-guide.md +740 -0
- package/docs/opencode-integration-quickref.md +180 -0
- package/package.json +4 -1
- package/templates/hooks/session-start.sh +8 -1
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
# UAP Integration Guide
|
|
2
2
|
|
|
3
|
-
**Version:** 1.0.
|
|
4
|
-
**Last Updated:** 2026-03-
|
|
3
|
+
**Version:** 1.0.2
|
|
4
|
+
**Last Updated:** 2026-03-17
|
|
5
5
|
**Status:** ✅ Production Ready
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## Executive Summary
|
|
10
10
|
|
|
11
|
-
This guide provides integration instructions for all supported platforms, including opencode, ForgeCode, Claude Code, and VSCode.
|
|
11
|
+
This guide provides integration instructions for all supported platforms, including opencode (with oh-my-pi), ForgeCode, Claude Code, and VSCode.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
## 1. opencode
|
|
16
|
-
|
|
17
|
-
### 1.1 Overview
|
|
15
|
+
## 1.1 opencode with UAP
|
|
18
16
|
|
|
19
17
|
**opencode** is the recommended platform for UAP, providing:
|
|
20
18
|
|
|
@@ -23,7 +21,7 @@ This guide provides integration instructions for all supported platforms, includ
|
|
|
23
21
|
- Local LLM support (llama.cpp)
|
|
24
22
|
- Built-in tooling (file operations, bash, search)
|
|
25
23
|
|
|
26
|
-
### 1.
|
|
24
|
+
### 1.1.1 Setup
|
|
27
25
|
|
|
28
26
|
```bash
|
|
29
27
|
# Install opencode
|
|
@@ -59,7 +57,7 @@ cd your-project
|
|
|
59
57
|
uap init
|
|
60
58
|
```
|
|
61
59
|
|
|
62
|
-
### 1.
|
|
60
|
+
### 1.1.2 Plugin Configuration
|
|
63
61
|
|
|
64
62
|
UAP plugins automatically load in opencode for:
|
|
65
63
|
|
|
@@ -67,7 +65,7 @@ UAP plugins automatically load in opencode for:
|
|
|
67
65
|
- **Session hooks** - Pre-execution setup, memory preservation
|
|
68
66
|
- **Agent coordination** - Multi-agent workflows without conflicts
|
|
69
67
|
|
|
70
|
-
### 1.
|
|
68
|
+
### 1.1.3 Usage
|
|
71
69
|
|
|
72
70
|
```bash
|
|
73
71
|
# Start opencode with UAP
|
|
@@ -80,11 +78,192 @@ opencode
|
|
|
80
78
|
# - Compliance enforcement
|
|
81
79
|
```
|
|
82
80
|
|
|
81
|
+
### 1.1.2 Oh-My-Pi Integration with UAP
|
|
82
|
+
|
|
83
|
+
**oh-my-pi** is a powerful AI coding agent that now has **explicit UAP integration** with deep UI elements, session dashboards, and best-in-class UAP capabilities.
|
|
84
|
+
|
|
85
|
+
#### 🎯 UAP-Enhanced Oh-My-Pi Features
|
|
86
|
+
|
|
87
|
+
Unlike basic opencode integration, the UAP-enhanced oh-my-pi provides:
|
|
88
|
+
|
|
89
|
+
| UAP Feature | Integration |
|
|
90
|
+
| ---------------------- | ------------------------------------------------------------------------- |
|
|
91
|
+
| **Session Dashboard** | `/uap-dashboard` - Real-time overview of tasks, agents, memory, worktrees |
|
|
92
|
+
| **4-Layer Memory** | Auto-injection on session start, persistent across restarts |
|
|
93
|
+
| **Worktree Isolation** | Enforced via hooks, automatic stale detection |
|
|
94
|
+
| **Task DAG Tracking** | `uap task` commands with status, creation, updates |
|
|
95
|
+
| **Agent Coordination** | Multi-agent heartbeats, overlap detection, conflict prevention |
|
|
96
|
+
| **Pattern RAG** | Auto-indexed patterns from your work (~12K token savings) |
|
|
97
|
+
| **Memory Compaction** | Smart cleanup preserving high-importance lessons |
|
|
98
|
+
| **Policy Enforcement** | Pre-commit validation, worktree isolation checks |
|
|
99
|
+
| **Telemetry** | Tool execution logging for analytics and optimization |
|
|
100
|
+
|
|
101
|
+
#### Installation
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Install oh-my-pi via Bun (recommended)
|
|
105
|
+
bun install -g @oh-my-pi/pi-coding-agent
|
|
106
|
+
|
|
107
|
+
# Install UAP integration for oh-my-pi
|
|
108
|
+
cd your-project
|
|
109
|
+
uap-omp install
|
|
110
|
+
|
|
111
|
+
# Verify installation
|
|
112
|
+
omp --version
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Quick Start
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Start oh-my-pi with UAP context (hooks auto-inject)
|
|
119
|
+
omp
|
|
120
|
+
|
|
121
|
+
# View UAP dashboard
|
|
122
|
+
uap-omp dashboard
|
|
123
|
+
|
|
124
|
+
# Or use /uap-dashboard inside oh-my-pi
|
|
125
|
+
/uap-dashboard
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### UAP Dashboard UI
|
|
129
|
+
|
|
130
|
+
The UAP dashboard provides a comprehensive view of your agent session:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
╔══════════════════════════════════════════════════════════╗
|
|
134
|
+
║ UAP Dashboard for Oh-My-Pi ║
|
|
135
|
+
╠══════════════════════════════════════════════════════════╣
|
|
136
|
+
║ 🧠 Memory Status ║
|
|
137
|
+
║ Recent: 47 lessons stored ║
|
|
138
|
+
╠══════════════════════════════════════════════════════════╣
|
|
139
|
+
║ 📋 Task Status ║
|
|
140
|
+
║ Active tasks: 3 ║
|
|
141
|
+
║ Pending: ║
|
|
142
|
+
║ • Fix authentication bug ║
|
|
143
|
+
║ • Add unit tests for API ║
|
|
144
|
+
║ In Progress: ║
|
|
145
|
+
║ • Refactor payment module ║
|
|
146
|
+
╠══════════════════════════════════════════════════════════╣
|
|
147
|
+
║ 🌿 Worktrees ║
|
|
148
|
+
║ Active: 2 | Stale: 1 | Total: 3 ║
|
|
149
|
+
╠══════════════════════════════════════════════════════════╣
|
|
150
|
+
║ 🤖 Agents ║
|
|
151
|
+
║ Total: 4 | Running: 2 ║
|
|
152
|
+
╠══════════════════════════════════════════════════════════╣
|
|
153
|
+
║ 📚 Pattern Library ║
|
|
154
|
+
║ Patterns indexed: 156 ║
|
|
155
|
+
╠══════════════════════════════════════════════════════════╣
|
|
156
|
+
║ 📁 Current Context ║
|
|
157
|
+
║ Branch: feature/auth-fix ║
|
|
158
|
+
║ Uncommitted changes: 12 ║
|
|
159
|
+
╚══════════════════════════════════════════════════════════╝
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### UAP CLI Commands for oh-my-pi
|
|
163
|
+
|
|
164
|
+
| Command | Description |
|
|
165
|
+
| --------------------------------- | ---------------------------------- |
|
|
166
|
+
| `uap-omp dashboard` | Open UAP dashboard UI |
|
|
167
|
+
| `uap memory status` | Check memory health and statistics |
|
|
168
|
+
| `uap memory query <term>` | Search memory for relevant lessons |
|
|
169
|
+
| `uap memory store <content>` | Manually store a lesson |
|
|
170
|
+
| `uap task list` | List all tasks and their status |
|
|
171
|
+
| `uap task create --title <title>` | Create a new task |
|
|
172
|
+
| `uap worktree list` | Show active worktrees |
|
|
173
|
+
| `uap worktree create <slug>` | Create isolated worktree |
|
|
174
|
+
| `uap patterns query <term>` | Search pattern library |
|
|
175
|
+
| `uap compact` | Compact and optimize memory |
|
|
176
|
+
|
|
177
|
+
#### Memory Injection
|
|
178
|
+
|
|
179
|
+
UAP automatically injects relevant memory context at session start:
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
[UAP Memory Context]
|
|
183
|
+
[Importance 9]
|
|
184
|
+
Category: authentication
|
|
185
|
+
Content: Always validate JWT tokens on every request, use bcrypt for password hashing
|
|
186
|
+
---
|
|
187
|
+
[Importance 7]
|
|
188
|
+
Category: testing
|
|
189
|
+
Content: Write unit tests before implementing new features
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
Use this context to inform your decisions.
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### Worktree Enforcement
|
|
196
|
+
|
|
197
|
+
UAP enforces worktree isolation automatically:
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
[UAP-Enforce] You're about to modify files in the main branch (main).
|
|
201
|
+
|
|
202
|
+
Per UAP compliance protocol, all changes should be made in isolated worktrees.
|
|
203
|
+
|
|
204
|
+
Consider creating a worktree first:
|
|
205
|
+
uap worktree create <slug>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
#### Hooks System
|
|
209
|
+
|
|
210
|
+
UAP installs hooks that automatically:
|
|
211
|
+
|
|
212
|
+
- **Pre-session**: Inject memory, check task readiness, detect stale worktrees
|
|
213
|
+
- **Post-session**: Save lessons, update worktree status, cleanup
|
|
214
|
+
|
|
215
|
+
Hooks are located at `~/.uap/omp/hooks/` and integrate with oh-my-pi's hook system.
|
|
216
|
+
|
|
217
|
+
#### Feature Parity Comparison
|
|
218
|
+
|
|
219
|
+
| Capability | Basic opencode + oh-my-pi | UAP-Enhanced oh-my-pi |
|
|
220
|
+
| ------------------------ | ------------------------- | ------------------------------------ |
|
|
221
|
+
| Core Tools | ✅ Full parity | ✅ Full parity |
|
|
222
|
+
| Memory Persistence | ❌ None | ✅ 4-layer system |
|
|
223
|
+
| Worktree Isolation | ⚠️ Manual | ✅ Auto-enforced |
|
|
224
|
+
| Task Tracking | ⚠️ Manual | ✅ DAG with status |
|
|
225
|
+
| Multi-agent Coordination | ❌ None | ✅ Heartbeats & overlap detection |
|
|
226
|
+
| Pattern RAG | ⚠️ Manual | ✅ Auto-indexed (~12K token savings) |
|
|
227
|
+
| Session Dashboard | ❌ None | ✅ Real-time UI |
|
|
228
|
+
| Policy Enforcement | ❌ None | ✅ Pre-commit validation |
|
|
229
|
+
| Telemetry | ❌ None | ✅ Tool execution logging |
|
|
230
|
+
|
|
231
|
+
#### Advanced Configuration
|
|
232
|
+
|
|
233
|
+
**Enable UAP features in oh-my-pi:**
|
|
234
|
+
|
|
235
|
+
Add to `~/.omp/agent/config.yml`:
|
|
236
|
+
|
|
237
|
+
```yaml
|
|
238
|
+
# Enable UAP memory injection
|
|
239
|
+
uap:
|
|
240
|
+
enabled: true
|
|
241
|
+
memoryInjection: true
|
|
242
|
+
patternRAG: true
|
|
243
|
+
worktreeIsolation: true
|
|
244
|
+
|
|
245
|
+
# Dashboard settings
|
|
246
|
+
uapDashboard:
|
|
247
|
+
autoOpen: false
|
|
248
|
+
views: ['overview', 'tasks', 'agents', 'memory']
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Custom hook behavior:**
|
|
252
|
+
|
|
253
|
+
Edit `~/.uap/omp/hooks/pre/session-start.sh` to customize memory injection:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
#!/usr/bin/env bash
|
|
257
|
+
# Custom pre-session hook
|
|
258
|
+
export UAP_INJECT_LESSONS=5 # Only inject top 5 lessons
|
|
259
|
+
export UAP_MIN_IMPORTANCE=6 # Only inject importance >= 6
|
|
260
|
+
```
|
|
261
|
+
|
|
83
262
|
---
|
|
84
263
|
|
|
85
|
-
## 2
|
|
264
|
+
## 1.2 ForgeCode Integration
|
|
86
265
|
|
|
87
|
-
### 2.1 Overview
|
|
266
|
+
### 1.2.1 Overview
|
|
88
267
|
|
|
89
268
|
**ForgeCode** is the world's #1 coding agent (TermBench 2.0, 78.4% accuracy), providing:
|
|
90
269
|
|
|
@@ -93,7 +272,7 @@ opencode
|
|
|
93
272
|
- Model flexibility (mix models mid-session)
|
|
94
273
|
- Context engine with RAG-powered memory
|
|
95
274
|
|
|
96
|
-
### 2.2 Setup
|
|
275
|
+
### 1.2.2 Setup
|
|
97
276
|
|
|
98
277
|
```bash
|
|
99
278
|
# Install UAP in your project
|
|
@@ -444,6 +623,6 @@ claude-code
|
|
|
444
623
|
|
|
445
624
|
---
|
|
446
625
|
|
|
447
|
-
**Last Updated:** 2026-03-
|
|
448
|
-
**Version:** 1.0.
|
|
626
|
+
**Last Updated:** 2026-03-17
|
|
627
|
+
**Version:** 1.0.2
|
|
449
628
|
**Status:** ✅ Production Ready
|