@miller-tech/uap 1.30.1 → 1.32.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/README.md +25 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +7 -0
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/deliver.d.ts +28 -0
- package/dist/cli/deliver.d.ts.map +1 -1
- package/dist/cli/deliver.js +203 -9
- package/dist/cli/deliver.js.map +1 -1
- package/dist/coordination/deploy-batcher.d.ts.map +1 -1
- package/dist/coordination/deploy-batcher.js +9 -3
- package/dist/coordination/deploy-batcher.js.map +1 -1
- package/dist/delivery/applier.d.ts.map +1 -1
- package/dist/delivery/applier.js +4 -0
- package/dist/delivery/applier.js.map +1 -1
- package/dist/delivery/auto-optimizer.d.ts +43 -0
- package/dist/delivery/auto-optimizer.d.ts.map +1 -0
- package/dist/delivery/auto-optimizer.js +70 -0
- package/dist/delivery/auto-optimizer.js.map +1 -0
- package/dist/delivery/convergence-loop.d.ts +7 -0
- package/dist/delivery/convergence-loop.d.ts.map +1 -1
- package/dist/delivery/convergence-loop.js +42 -0
- package/dist/delivery/convergence-loop.js.map +1 -1
- package/dist/delivery/halo-trace.d.ts +29 -0
- package/dist/delivery/halo-trace.d.ts.map +1 -0
- package/dist/delivery/halo-trace.js +88 -0
- package/dist/delivery/halo-trace.js.map +1 -0
- package/dist/delivery/ideation.d.ts +36 -0
- package/dist/delivery/ideation.d.ts.map +1 -0
- package/dist/delivery/ideation.js +109 -0
- package/dist/delivery/ideation.js.map +1 -0
- package/dist/delivery/index.d.ts +5 -1
- package/dist/delivery/index.d.ts.map +1 -1
- package/dist/delivery/index.js +5 -1
- package/dist/delivery/index.js.map +1 -1
- package/dist/delivery/run-coordinator.d.ts +48 -0
- package/dist/delivery/run-coordinator.d.ts.map +1 -0
- package/dist/delivery/run-coordinator.js +132 -0
- package/dist/delivery/run-coordinator.js.map +1 -0
- package/dist/memory/dynamic-retrieval.d.ts +8 -7
- package/dist/memory/dynamic-retrieval.d.ts.map +1 -1
- package/dist/memory/dynamic-retrieval.js +8 -52
- package/dist/memory/dynamic-retrieval.js.map +1 -1
- package/dist/utils/query-complexity.d.ts +25 -0
- package/dist/utils/query-complexity.d.ts.map +1 -0
- package/dist/utils/query-complexity.js +68 -0
- package/dist/utils/query-complexity.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ uap setup -p all
|
|
|
91
91
|
| Browser | 1 module | Stealth web automation via CloakBrowser (Playwright drop-in) |
|
|
92
92
|
| MCP Router | 11 modules | 2-tool meta-router + expert-consultation registry (98% token savings) |
|
|
93
93
|
| Models | 10 modules | Multi-model routing, planning, execution, validation, 13 model profiles |
|
|
94
|
-
| Delivery Harness |
|
|
94
|
+
| Delivery Harness | 12 modules | `uap deliver`: convergence loop, best-of-N explorer, critic, practice recall, escalation, ideation seeds, HALO tracing, coordination + deploy queueing |
|
|
95
95
|
| Patterns | 23 patterns | Battle-tested workflows from Terminal-Bench 2.0 |
|
|
96
96
|
| Droids | 30 experts | Full SDLC expert stack: strategy, design, build, review, release, ops ([reference](docs/reference/EXPERT_DROIDS.md)) |
|
|
97
97
|
| Expert Orchestrator | 1 module | Adaptive droid-chain selection across plan→design→implement→review→release |
|
|
@@ -368,8 +368,14 @@ the model's say-so.
|
|
|
368
368
|
3. **Structured critic** (`--critic`) — turns a failed turn's gate output into a numbered, file-scoped repair plan via a gate-specific analyst persona.
|
|
369
369
|
4. **Best-practice recall** (`--practices`) — injects provenance-safe practice cards learned from past successful deliveries, retrieved by semantic similarity (nomic-768 embeddings, keyword fallback).
|
|
370
370
|
5. **Escalation ladder** (`--escalate`) — on stagnation, climbs cheap→expensive: widen exploration → enable the critic → switch to a stronger model.
|
|
371
|
+
6. **Divergent ideation** (`--ideate`, `--ideate-project <name>`) — replaces the static strategy seeds with task-specific, deliberately diverse seeds: generated by a bisociation-style model call, or taken from an open-collider project's curated ideas (`uap ideate`). Implies best-of-N exploration.
|
|
372
|
+
7. **HALO tracing** (`--halo`) — emits one AGENT span per run and one CHAIN span per turn (scores, strategies, failed gates) so `uap harness analyze` can mine systemic failure modes across runs.
|
|
373
|
+
8. **Coordination** (`--coordinate`) — registers the run with the multi-agent coordination layer (`uap agent`): announces work on the project, warns about overlapping agents, heartbeats every turn, completes/deregisters on exit.
|
|
374
|
+
9. **Deploy batching** (`--deploy`) — on success, queues a commit of the applied files into the deploy batcher; execute with `uap deploy flush`.
|
|
375
|
+
10. **`--optimize`** — one switch for every convergence aid: 4 candidates/turn + critic + practices + escalation + ideation + HALO + coordination (deploy stays explicit).
|
|
376
|
+
11. **Dynamic optimization (default)** — every instruction is classified for complexity (simple / moderate / complex); non-trivial requests automatically get the aids that improve outcomes (moderate → exploration ×3 + critic + practices + HALO + coordination; complex → the full `--optimize` stack). Any explicit aid flag, `--no-auto`, or `UAP_DELIVER_AUTO=0` disables auto mode. Deploy queueing is never auto-enabled.
|
|
371
377
|
|
|
372
|
-
### Components (
|
|
378
|
+
### Components (12 modules)
|
|
373
379
|
|
|
374
380
|
| Component | File | Purpose |
|
|
375
381
|
| ----------------- | ------------------------------------- | ----------------------------------------------------------------- |
|
|
@@ -381,6 +387,10 @@ the model's say-so.
|
|
|
381
387
|
| Critic | `src/delivery/critic.ts` | Gate-persona repair plans from failed turns |
|
|
382
388
|
| Practice Store | `src/delivery/practice.ts` | Provenance-safe best-practice cards with semantic recall |
|
|
383
389
|
| Escalation | `src/delivery/escalation.ts` | Stagnation-driven ladder returning loop directives |
|
|
390
|
+
| Ideation Seeder | `src/delivery/ideation.ts` | Divergent strategy seeds (generated or from curated ideas) |
|
|
391
|
+
| HALO Tracer | `src/delivery/halo-trace.ts` | Run/turn spans for `uap harness analyze` |
|
|
392
|
+
| Run Coordinator | `src/delivery/run-coordinator.ts` | `uap agent` registration/heartbeat + `uap deploy` commit queueing |
|
|
393
|
+
| Auto-Optimizer | `src/delivery/auto-optimizer.ts` | Complexity-classified dynamic activation of convergence aids |
|
|
384
394
|
|
|
385
395
|
The model is reached through an OpenAI-compatible client
|
|
386
396
|
(`src/models/openai-compat-client.ts`) — the local inference gateway,
|
|
@@ -401,6 +411,12 @@ uap deliver "..." --dry-run
|
|
|
401
411
|
|
|
402
412
|
# Scope to a subset of gates, cap turns, target another project
|
|
403
413
|
uap deliver "..." --gates build,test --max-turns 8 --project-root ../service
|
|
414
|
+
|
|
415
|
+
# Everything on: exploration, critic, practices, escalation, ideation, HALO, coordination
|
|
416
|
+
uap deliver "refactor the cache layer to LRU with TTL" --optimize
|
|
417
|
+
|
|
418
|
+
# Divergent ideation seeds + queue a commit into the deploy batcher on success
|
|
419
|
+
uap deliver "..." --ideate --candidates 4 --deploy
|
|
404
420
|
```
|
|
405
421
|
|
|
406
422
|
### Key flags
|
|
@@ -416,6 +432,13 @@ uap deliver "..." --gates build,test --max-turns 8 --project-root ../service
|
|
|
416
432
|
| `--no-semantic` | Use keyword (not embedding) practice recall |
|
|
417
433
|
| `--escalate` | Escalation ladder on stagnation |
|
|
418
434
|
| `--escalate-model <preset>`| Stronger model for the final escalation tier |
|
|
435
|
+
| `--ideate` | Divergent ideation: task-specific strategy seeds (implies exploration) |
|
|
436
|
+
| `--ideate-project <name>` | Seed exploration from `projects/<name>` curated ideas (`uap ideate`) |
|
|
437
|
+
| `--halo` | Emit HALO spans; analyze with `uap harness analyze` |
|
|
438
|
+
| `--coordinate` | Register with `uap agent`: announce, heartbeat, overlap detection |
|
|
439
|
+
| `--deploy` | On success, queue a commit into the deploy batcher (`uap deploy`) |
|
|
440
|
+
| `--optimize` | Enable every convergence aid (deploy excluded) |
|
|
441
|
+
| `--no-auto` | Disable dynamic optimization (auto-classified aids are the default) |
|
|
419
442
|
| `--endpoint <url>` | Override the model endpoint (OpenAI-compatible `/v1`) |
|
|
420
443
|
| `--dry-run` / `--json` | Show the plan only / emit machine-readable result |
|
|
421
444
|
|