@miller-tech/uap 1.20.51 → 1.26.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.
Files changed (82) hide show
  1. package/README.md +65 -21
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/bin/cli.js +88 -5
  4. package/dist/bin/cli.js.map +1 -1
  5. package/dist/cli/agent.js +1 -1
  6. package/dist/cli/agent.js.map +1 -1
  7. package/dist/cli/droids.d.ts +21 -1
  8. package/dist/cli/droids.d.ts.map +1 -1
  9. package/dist/cli/droids.js +142 -0
  10. package/dist/cli/droids.js.map +1 -1
  11. package/dist/cli/expert-route.d.ts +11 -0
  12. package/dist/cli/expert-route.d.ts.map +1 -0
  13. package/dist/cli/expert-route.js +67 -0
  14. package/dist/cli/expert-route.js.map +1 -0
  15. package/dist/cli/harness.d.ts +24 -0
  16. package/dist/cli/harness.d.ts.map +1 -0
  17. package/dist/cli/harness.js +84 -0
  18. package/dist/cli/harness.js.map +1 -0
  19. package/dist/cli/hooks.d.ts +13 -2
  20. package/dist/cli/hooks.d.ts.map +1 -1
  21. package/dist/cli/hooks.js +333 -3
  22. package/dist/cli/hooks.js.map +1 -1
  23. package/dist/cli/ideate.d.ts +18 -0
  24. package/dist/cli/ideate.d.ts.map +1 -0
  25. package/dist/cli/ideate.js +148 -0
  26. package/dist/cli/ideate.js.map +1 -0
  27. package/dist/cli/patterns.js +55 -0
  28. package/dist/cli/patterns.js.map +1 -1
  29. package/dist/cli/setup.d.ts.map +1 -1
  30. package/dist/cli/setup.js +14 -1
  31. package/dist/cli/setup.js.map +1 -1
  32. package/dist/coordination/capability-router.d.ts +1 -1
  33. package/dist/coordination/capability-router.d.ts.map +1 -1
  34. package/dist/coordination/capability-router.js +132 -0
  35. package/dist/coordination/capability-router.js.map +1 -1
  36. package/dist/coordination/expert-orchestrator.d.ts +66 -0
  37. package/dist/coordination/expert-orchestrator.d.ts.map +1 -0
  38. package/dist/coordination/expert-orchestrator.js +150 -0
  39. package/dist/coordination/expert-orchestrator.js.map +1 -0
  40. package/dist/coordination/service.d.ts +8 -1
  41. package/dist/coordination/service.d.ts.map +1 -1
  42. package/dist/coordination/service.js +18 -4
  43. package/dist/coordination/service.js.map +1 -1
  44. package/dist/mcp-router/experts/registry.d.ts +54 -0
  45. package/dist/mcp-router/experts/registry.d.ts.map +1 -0
  46. package/dist/mcp-router/experts/registry.js +143 -0
  47. package/dist/mcp-router/experts/registry.js.map +1 -0
  48. package/dist/mcp-router/index.d.ts +2 -0
  49. package/dist/mcp-router/index.d.ts.map +1 -1
  50. package/dist/mcp-router/index.js +1 -0
  51. package/dist/mcp-router/index.js.map +1 -1
  52. package/dist/mcp-router/server.d.ts.map +1 -1
  53. package/dist/mcp-router/server.js +16 -0
  54. package/dist/mcp-router/server.js.map +1 -1
  55. package/dist/mcp-router/tools/execute.d.ts.map +1 -1
  56. package/dist/mcp-router/tools/execute.js +40 -0
  57. package/dist/mcp-router/tools/execute.js.map +1 -1
  58. package/dist/models/planner.d.ts +7 -1
  59. package/dist/models/planner.d.ts.map +1 -1
  60. package/dist/models/planner.js +61 -0
  61. package/dist/models/planner.js.map +1 -1
  62. package/dist/models/types.d.ts +2 -0
  63. package/dist/models/types.d.ts.map +1 -1
  64. package/dist/models/types.js.map +1 -1
  65. package/dist/observability/halo-exporter.d.ts +86 -0
  66. package/dist/observability/halo-exporter.d.ts.map +1 -0
  67. package/dist/observability/halo-exporter.js +139 -0
  68. package/dist/observability/halo-exporter.js.map +1 -0
  69. package/dist/tasks/database.d.ts.map +1 -1
  70. package/dist/tasks/database.js +9 -2
  71. package/dist/tasks/database.js.map +1 -1
  72. package/dist/telemetry/session-telemetry.d.ts.map +1 -1
  73. package/dist/telemetry/session-telemetry.js +7 -0
  74. package/dist/telemetry/session-telemetry.js.map +1 -1
  75. package/docs/architecture/EXPERT_STACK.md +137 -0
  76. package/docs/architecture/PLATFORM_GATING.md +68 -0
  77. package/docs/reference/EXPERT_DROIDS.md +219 -0
  78. package/package.json +1 -1
  79. package/templates/hooks/pre-tool-use-edit-write.sh +29 -8
  80. package/templates/hooks/uap-policy-gate-hermes.sh +42 -0
  81. package/tools/agents/scripts/anthropic_proxy.py +166 -30
  82. package/tools/agents/tests/test_attractor_detection.py +213 -0
package/README.md CHANGED
@@ -15,7 +15,17 @@
15
15
 
16
16
  ## Recent Updates
17
17
 
18
- **New Feature:** `uap worktree prune` - Automatically clean up stale worktrees!
18
+ **New:** Expert-stack extensions forward-design droids (strategic/tactical
19
+ architect, implementation-planner), activated `experts.<name>` MCP tools, HALO
20
+ trace-based harness optimization, open-collider divergent ideation, and a real
21
+ expert-review hard gate. See [docs/architecture/EXPERT_STACK.md](docs/architecture/EXPERT_STACK.md).
22
+
23
+ ```bash
24
+ uap harness analyze -p "systemic failure modes?" # HALO trace analysis
25
+ uap ideate setup <name> # divergent ideation project
26
+ ```
27
+
28
+ **`uap worktree prune`** - Automatically clean up stale worktrees:
19
29
 
20
30
  ```bash
21
31
  uap worktree prune --dry-run # Preview
@@ -66,11 +76,12 @@ uap setup -p all
66
76
  | Deploy Batching | 1 module | Squash, merge, parallelize deploy actions across agents |
67
77
  | Policy Enforcement | 8 modules | Store, evaluate, and enforce operational policies with audit trail |
68
78
  | Browser | 1 module | Stealth web automation via CloakBrowser (Playwright drop-in) |
69
- | MCP Router | 10 modules | 2-tool meta-router replacing N tool definitions (98% token savings) |
79
+ | MCP Router | 11 modules | 2-tool meta-router + expert-consultation registry (98% token savings) |
70
80
  | Models | 10 modules | Multi-model routing, planning, execution, validation, 13 model profiles |
71
81
  | Patterns | 23 patterns | Battle-tested workflows from Terminal-Bench 2.0 |
72
- | Droids | 8 experts | Specialized agents for security, performance, docs, testing |
73
- | Skills | 33 skills | Reusable domain expertise (chess, polyglot, compression, etc.) |
82
+ | Droids | 30 experts | Full SDLC expert stack: strategy, design, build, review, release, ops ([reference](docs/reference/EXPERT_DROIDS.md)) |
83
+ | Expert Orchestrator | 1 module | Adaptive droid-chain selection across plan→design→implement→review→release |
84
+ | Skills | 34 skills | Reusable domain expertise (now includes `parallel-expert-review`) |
74
85
  | Tasks | 7 modules | Full task lifecycle with dependencies, claims, JSONL sync |
75
86
  | Worktrees | 1 module | Isolated git branches per agent, auto-numbered |
76
87
  | Hooks | 2 hooks | Session start (memory injection) and pre-compact (preservation) |
@@ -79,7 +90,7 @@ uap setup -p all
79
90
  | LLM Optimization | 5 tools | Qwen3.5 tool call fixes, llama.cpp optimizer, LoRA training |
80
91
  | Local LLM Proxy | 1 service | Anthropic Messages API default; OpenAI Chat Completions retained as option |
81
92
  | RTK | 1 module | 60-90% token savings on command outputs |
82
- | Platforms | 9 integrations | Claude, Factory, OpenCode, ForgeCode, VSCode, Beads, Codex, Pipeline, OMP |
93
+ | Platforms | 10 integrations | Claude, Factory, OpenCode, ForgeCode, VSCode, Cursor, Codex, OMP, Hermes (+ MCP) |
83
94
 
84
95
  ---
85
96
 
@@ -352,24 +363,45 @@ Battle-tested patterns from Terminal-Bench 2.0, stored in `.factory/patterns/`.
352
363
 
353
364
  ## Droids & Skills
354
365
 
355
- ### Expert Droids (8)
366
+ ### Expert Droids (30) — full SDLC coverage
367
+
368
+ See [docs/reference/EXPERT_DROIDS.md](docs/reference/EXPERT_DROIDS.md) for the complete roster, and [docs/architecture/EXPERT_STACK.md](docs/architecture/EXPERT_STACK.md) for the forward-design / HALO / ideation extensions.
369
+
370
+ | Phase | Droids |
371
+ |---|---|
372
+ | **Ideation** | ideation-expert *(open-collider divergent ideation)* |
373
+ | **Strategy & Design** | product-strategist, strategic-architect, tactical-architect, implementation-planner, architect-reviewer, api-designer |
374
+ | **Build** | typescript-node-expert, javascript-pro, python-pro, rust-pro, go-pro, cli-design-expert, debug-expert, refactoring-specialist |
375
+ | **Quality** | code-quality-guardian, code-quality-reviewer, security-auditor, security-code-reviewer |
376
+ | **Performance & Cost** | performance-optimizer, performance-reviewer, cost-engineer |
377
+ | **Testing & QA** | test-strategist, test-plan-writer, test-coverage-reviewer, qa-expert |
378
+ | **Documentation** | documentation-expert, documentation-accuracy-reviewer |
379
+ | **Operations** | release-manager, compliance-officer, incident-responder, observability-engineer, dependency-auditor, harness-optimizer *(HALO loop)* |
380
+ | **Specialty** | ml-training-expert, sysadmin-expert, terminal-bench-optimizer, accessibility-tester |
381
+
382
+ ```bash
383
+ uap droids list # see what's installed
384
+ uap droids validate # CI-grade integrity check
385
+ uap expert-route "<task>" # recommended droid chain for a task
386
+ uap expert-route "<task>" --json # machine-readable
387
+ ```
356
388
 
357
- | Droid | Specialization |
358
- | ------------------------ | -------------------------------- |
359
- | Code Quality Guardian | Code review, quality enforcement |
360
- | Debug Expert | Debugging specialist |
361
- | Documentation Expert | Documentation |
362
- | ML Training Expert | ML/training |
363
- | Performance Optimizer | Performance |
364
- | Security Auditor | Security review |
365
- | Sysadmin Expert | System administration |
366
- | Terminal-Bench Optimizer | Benchmark optimization |
389
+ The capability router (`src/coordination/capability-router.ts`) maps tasks to droids by file pattern, task type, and keywords. The `ExpertOrchestrator` (`src/coordination/expert-orchestrator.ts`) composes the full plan→design→implement→review→release chain and persists per-droid success rates. Droids are also reachable as virtual `experts.<name>` tools through the MCP router (`discover_tools` / `execute_tool`).
367
390
 
368
- ### Skills (33)
391
+ **HALO harness optimization** and **open-collider ideation** ship as droids + CLIs:
392
+
393
+ ```bash
394
+ uap harness status # HALO trace collection state
395
+ uap harness analyze -p "failures?" # analyze traces (needs: pip install halo-engine)
396
+ uap ideate setup <name> # scaffold a divergent-ideation project
397
+ uap ideate ideas <name> # read curated, non-trivial ideas
398
+ ```
399
+
400
+ ### Skills (34)
369
401
 
370
402
  **Project Skills** (5): codebase-navigator, memory-management, near-miss-iteration, terminal-bench, worktree-workflow
371
403
 
372
- **Claude Skills** (5): hooks-session-start, hooks-pre-compact, scripts-tool-router, scripts-preload-memory, session-context-preservation-droid
404
+ **Claude Skills** (6): hooks-session-start, hooks-pre-compact, scripts-tool-router, scripts-preload-memory, session-context-preservation-droid, **parallel-expert-review**
373
405
 
374
406
  **Factory Skills** (23): adversarial, balls-mode, batch-review, chess-engine, cli-design-expert, codebase-navigator, compression, git-forensics, near-miss, polyglot, service-config, terminal-bench-strategies, typescript-node-expert, unreal-engine-developer, tuistory, agent-browser, figma-mcp-promotion, infra-worker, uap-coordination, uap-patterns, uap-tasks, uap-worktree
375
407
 
@@ -423,6 +455,7 @@ uap worktree ensure --strict # Verify inside worktree (CI gate)
423
455
  ### Supported Platforms
424
456
 
425
457
  ```bash
458
+ uap hooks install # all project platforms at once
426
459
  uap hooks install claude # Claude Code
427
460
  uap hooks install factory # Factory.AI
428
461
  uap hooks install cursor # Cursor
@@ -431,13 +464,21 @@ uap hooks install opencode # OpenCode
431
464
  uap hooks install forgecode # ForgeCode
432
465
  uap hooks install codex # Codex CLI
433
466
  uap hooks install omp # Oh-My-Pi
467
+ uap hooks install -t hermes # Hermes Agent (NousResearch; global ~/.hermes)
468
+ uap hooks doctor # audit policy-gate coverage across platforms
434
469
  ```
435
470
 
471
+ The DB-driven **policy gate** is installed and wired on every platform with a
472
+ pre-tool-use mechanism (claude, vscode, cursor, factory, opencode, omp, hermes).
473
+ **Codex** is MCP-gated (no native pre-tool hook); **ForgeCode** is advisory.
474
+ `uap hooks doctor` reports true coverage — see
475
+ [docs/architecture/PLATFORM_GATING.md](docs/architecture/PLATFORM_GATING.md).
476
+
436
477
  ---
437
478
 
438
479
  ## CLI Reference
439
480
 
440
- ### 25 Top-Level Commands
481
+ ### 28 Top-Level Commands
441
482
 
442
483
  | Command | Description |
443
484
  | ------------------------- | -------------------------------------------- |
@@ -456,10 +497,13 @@ uap hooks install omp # Oh-My-Pi
456
497
  | `uap deploy <action>` | Deploy batching (8 subcommands) |
457
498
  | `uap task <action>` | Task management (15 subcommands) |
458
499
  | `uap droids <action>` | Droid management (3 subcommands) |
500
+ | `uap expert-route <task>` | Recommend an expert droid chain for a task |
501
+ | `uap harness <action>` | HALO trace analysis (analyze, status) |
502
+ | `uap ideate <action>` | Open-collider ideation (setup, run, ideas) |
459
503
  | `uap model <action>` | Multi-model management (8 subcommands) |
460
504
  | `uap policy <action>` | Policy management (15 subcommands) |
461
505
  | `uap mcp-router <action>` | MCP Router management (4 subcommands) |
462
- | `uap hooks <action>` | Hook installation (2 subcommands) |
506
+ | `uap hooks <action>` | Hook install / status / doctor (3 subcommands) |
463
507
  | `uap tool-calls <action>` | Qwen3.5 tool call fixes (4 subcommands) |
464
508
  | `uap rtk <action>` | RTK token compression (3 subcommands) |
465
509
  | `uap schema-diff` | Detect breaking schema changes |
@@ -467,7 +511,7 @@ uap hooks install omp # Oh-My-Pi
467
511
  | `uap sync` | Sync configuration between platforms |
468
512
  | `uap uap-omp <action>` | Oh-My-Pi integration (7 subcommands) |
469
513
 
470
- **Total: 109 commands and subcommands.**
514
+ **Total: 117 commands and subcommands.**
471
515
 
472
516
  ### Additional Binaries
473
517