loadout-ai 0.8.0 → 0.9.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/CHANGELOG.md +76 -1
  2. package/README.md +149 -304
  3. package/SECURITY.md +21 -1
  4. package/catalog/discovered.json +27897 -25327
  5. package/catalog/packages.json +4 -4
  6. package/dist/src/cli.js +12 -4
  7. package/dist/src/commands/agents.js +3 -1
  8. package/dist/src/commands/catalog-candidate.js +150 -0
  9. package/dist/src/commands/catalog-workflows.js +147 -0
  10. package/dist/src/commands/catalog.js +9 -354
  11. package/dist/src/commands/coordinate.js +586 -0
  12. package/dist/src/commands/coordination-discussions.js +194 -0
  13. package/dist/src/commands/coordination-sessions.js +197 -0
  14. package/dist/src/commands/inventory.js +4 -2
  15. package/dist/src/core/{routing → agents}/model-config.js +7 -2
  16. package/dist/src/core/catalog/catalog.js +1 -0
  17. package/dist/src/core/catalog/registry.js +5 -19
  18. package/dist/src/core/coordination/adapters/claude-code.js +154 -0
  19. package/dist/src/core/coordination/adapters/codex.js +137 -0
  20. package/dist/src/core/coordination/adapters/types.js +64 -0
  21. package/dist/src/core/coordination/auth.js +59 -0
  22. package/dist/src/core/coordination/bridge-lease.js +79 -0
  23. package/dist/src/core/coordination/conflict-preview.js +167 -0
  24. package/dist/src/core/coordination/contract-diff.js +106 -0
  25. package/dist/src/core/coordination/coordinator.js +552 -0
  26. package/dist/src/core/coordination/crash-recovery.js +169 -0
  27. package/dist/src/core/coordination/daemon.js +667 -0
  28. package/dist/src/core/coordination/discussion.js +340 -0
  29. package/dist/src/core/coordination/events.js +161 -0
  30. package/dist/src/core/coordination/http-api.js +118 -0
  31. package/dist/src/core/coordination/interrupt-policy.js +89 -0
  32. package/dist/src/core/coordination/lock.js +110 -0
  33. package/dist/src/core/coordination/mcp-server.js +424 -0
  34. package/dist/src/core/coordination/redaction.js +85 -0
  35. package/dist/src/core/coordination/replay.js +188 -0
  36. package/dist/src/core/coordination/retention.js +128 -0
  37. package/dist/src/core/coordination/runtime.js +21 -0
  38. package/dist/src/core/coordination/session-manager.js +366 -0
  39. package/dist/src/core/coordination/watcher.js +128 -0
  40. package/dist/src/core/{routing → delegation}/first-party-skills.js +25 -13
  41. package/dist/src/core/{routing → delegation}/handoff.js +40 -9
  42. package/dist/src/core/discovery/candidate-intelligence-evidence.js +108 -0
  43. package/dist/src/core/discovery/candidate-intelligence-types.js +1 -0
  44. package/dist/src/core/discovery/candidate-intelligence-validation.js +108 -0
  45. package/dist/src/core/discovery/candidate-intelligence.js +3 -214
  46. package/dist/src/core/discovery/community.js +12 -4
  47. package/dist/src/core/discovery/github-discovery.js +6 -2
  48. package/dist/src/core/discovery/private-discovery.js +6 -2
  49. package/dist/src/core/install/reconcile.js +1 -1
  50. package/dist/src/core/install/uninstall.js +39 -3
  51. package/dist/src/core/reporting/cli-guide.js +9 -5
  52. package/dist/src/core/reporting/completion.js +43 -38
  53. package/dist/src/core/reporting/doctor.js +1 -1
  54. package/dist/src/core/runtime/bounded-json.js +65 -0
  55. package/dist/src/core/runtime/github.js +30 -16
  56. package/dist/src/core/runtime/mcp-recipes.js +1 -1
  57. package/dist/src/core/workspace/active-policy.js +1 -1
  58. package/docs/DEMO_SCRIPT.md +19 -23
  59. package/docs/DISCOVERED.md +251 -251
  60. package/docs/FEATURE_TEST_MATRIX.md +3 -3
  61. package/docs/LIVE_COLLABORATION.md +234 -0
  62. package/docs/REFERENCE.md +163 -0
  63. package/docs/RELEASE_REVIEW.md +1 -1
  64. package/docs/TESTING.md +17 -1
  65. package/docs/USER_TEST_GUIDE.md +138 -3
  66. package/docs/assets/loadout-discover-activate.webp +0 -0
  67. package/docs/assets/loadout-handoff-coordinate.webp +0 -0
  68. package/docs/assets/loadout-social-preview.png +0 -0
  69. package/docs/decisions/001-coordination-jsonl-locking.md +35 -0
  70. package/docs/decisions/002-local-daemon-authentication.md +32 -0
  71. package/docs/decisions/003-bounded-agent-discussions.md +91 -0
  72. package/docs/specs/BOUNDED_AGENT_DISCUSSIONS.md +169 -0
  73. package/docs/superpowers/plans/2026-09-03-coordination-hardening.md +231 -0
  74. package/docs/superpowers/plans/2026-09-03-release-readiness.md +232 -0
  75. package/docs/superpowers/plans/2026-09-04-bounded-agent-discussions.md +121 -0
  76. package/package.json +13 -4
  77. package/skills/loadout-handoff/SKILL.md +238 -0
  78. package/dist/src/core/routing/policy.js +0 -147
  79. package/dist/src/core/routing/route.js +0 -411
  80. package/docs/assets/loadout-workflow.png +0 -0
  81. package/skills/loadout-router/SKILL.md +0 -85
  82. /package/dist/src/core/{routing → agents}/credentials.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,81 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.9.0 - 2026-09-03
4
+
5
+ ### Removed
6
+
7
+ - Model routing (`loadout route`, policy files, model-config routing). The
8
+ feature was too subjective and prices rotted within weeks. Handoff and the
9
+ factual coordination protocol replace model-selection advice.
10
+
11
+ ### Changed
12
+
13
+ - Moved handoff code from `src/core/routing/` to `src/core/delegation/`, and
14
+ model/credential configuration to `src/core/agents/`. API-access parsing
15
+ remains in `src/core/routing/access.ts` because it still governs setup choices.
16
+ - Renamed the `loadout-router` first-party skill to `loadout-handoff`, stripped
17
+ model advice, and focused it on delegation and factual project coordination.
18
+ - All JSON HTTP responses are now streamed through a bounded reader with
19
+ per-endpoint byte caps and timeouts. Oversized or timed-out responses
20
+ are rejected before parsing.
21
+ - Release workflow runs `verify:full` (includes coverage) instead of `verify`.
22
+ - npm description and keywords aligned with the project's actual scope.
23
+
24
+ ### Fixed
25
+
26
+ - Validated every handoff log entry against a strict Zod schema at parse time.
27
+ Schema-invalid lines are reported as corrupt without hiding valid neighbors.
28
+ - Tracking an existing provider session no longer submits an implicit snapshot
29
+ turn when automatic delivery is disabled. Provider quota is now spent only by
30
+ an explicit start/send operation or the opt-in bridge.
31
+ - Coordination tests now exercise Windows with platform-appropriate permission
32
+ assertions and launch the MCP test process through Node rather than a POSIX
33
+ package shim.
34
+
35
+ ### Added
36
+
37
+ - Bounded Claude Code ↔ Codex design rooms via `loadout coord discuss`. The two
38
+ providers alternate proposal and critique turns on one technical question,
39
+ then record a linked public transcript, final decision, alternatives, and
40
+ unresolved disagreement. Fresh and explicit existing sessions are supported.
41
+ - Discussion safety controls: exact preflight turn accounting, 1-8 rounds, a
42
+ hard paid-turn budget, a bounded per-turn timeout, sequential reply IDs,
43
+ no-edit/no-tool prompts, singleton bridge ownership, kill-switch checks, and
44
+ visible failure without silent provider retries.
45
+
46
+ - Live coordination module (`loadout coordinate`) with typed events for
47
+ contracts, file ownership, decisions, progress updates, and acknowledgements.
48
+ Events use monotonic sequence numbers and cursor-based reads so reconnecting
49
+ agents never miss a message.
50
+ - `loadout serve` starts an MCP server exposing the same coordination tools
51
+ so both Claude Code and Codex can connect to a shared project coordinator.
52
+ The MCP runtime is packaged and smoke-tested as a normal dependency.
53
+ - Provider-session bridge commands backed by Claude Code's print-mode CLI and
54
+ the official Codex SDK. The bridge resumes explicit session IDs and delivers
55
+ relevant events as follow-up turns at safe boundaries; it does not claim
56
+ mid-turn injection or shared private context.
57
+ - Bridge safeguards: one process per project, concurrent cross-provider
58
+ delivery, passive updates, an automatic-turn cap, untrusted-data framing,
59
+ owner-only session state, and provider responses that are displayed but not
60
+ persisted.
61
+ - `loadout daemon start` runs a local HTTP coordination server with REST API,
62
+ SSE push subscriptions, and a live web dashboard showing contracts, file
63
+ ownership, agent activity, and real-time event feed.
64
+ - Automatic secret redaction — API keys, tokens, passwords, JWTs, and other
65
+ credentials are stripped from coordination events at the canonical storage
66
+ boundary before CLI, MCP, or HTTP writes are persisted.
67
+ - Log retention and compaction (`loadout coord compact`) — configurable max
68
+ events and max age, atomic log rewrite with archived backup.
69
+ - Live file watcher (`loadout coord watch`) detects new coordination events
70
+ via `fs.watch` with sub-second latency, no daemon required.
71
+ - `loadout coord status` shows a colored terminal overview of ownership,
72
+ contracts, and acknowledgement state.
73
+ - Conflict preview (`loadout coord conflicts`) — before an agent writes, shows
74
+ what the other agent changed in the same files with git diffs.
75
+ - Contract diffing (`loadout coord diff`) — auto-generates a structured delta
76
+ when a contract revision bumps, showing exactly what changed.
77
+ - Coordination replay (`loadout coord replay`) — plays back the full
78
+ coordination timeline as a formatted narrative story.
4
79
 
5
80
  ## 0.8.0 - 2026-09-02
6
81