compound-agent 1.2.9 → 1.2.11

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/CHANGELOG.md CHANGED
@@ -9,6 +9,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.2.11] - 2026-02-19
13
+
14
+ ### Added
15
+
16
+ - **Git worktree integration** (`ca worktree`): Isolate epic work in separate git worktrees for parallel execution. Five subcommands:
17
+ - `ca worktree create <epic-id>` — Create worktree, install deps, copy lessons, create Merge beads task
18
+ - `ca worktree wire-deps <epic-id>` — Connect Review/Compound tasks as merge blockers (graceful no-op without worktree)
19
+ - `ca worktree merge <epic-id>` — Two-phase merge: resolve conflicts in worktree, then land clean on main
20
+ - `ca worktree list` — Show active worktrees with epic and merge task status
21
+ - `ca worktree cleanup <epic-id>` — Remove worktree, branch, and close Merge task (--force for dirty worktrees)
22
+ - **`/compound:set-worktree` slash command**: Set up a worktree before running `/compound:lfg` for isolated epic execution
23
+ - **Conditional Merge gate in `verify-gates`**: Worktree epics require the Merge task to be closed before epic closure. Non-worktree epics unaffected.
24
+ - **Plan skill wire-deps step**: Plan phase now calls `ca worktree wire-deps` to connect merge dependencies when a worktree is active.
25
+
26
+ ### Changed
27
+
28
+ - **Worktree merge safety hardening**: Added branch verification (asserts main repo is on `main`), worktree existence guard, structured error messages with worktree paths for conflict resolution and test failures
29
+ - **JSONL reconciliation**: Switched from ID-based to line-based deduplication to preserve last-write-wins semantics for same-ID updates and deletes
30
+ - **Worktree cleanup safety**: Branch deletion uses `-d` (safe) by default; `-D` (force) only with `--force` flag
31
+ - **Shared beads utilities**: Extracted `validateEpicId`, `parseBdShowDeps`, and `shortId` to `cli-utils.ts`, eliminating duplication between `worktree.ts` and `verify-gates.ts`
32
+ - **Sync API**: All worktree functions are now synchronous (removed misleading `async` wrapper around purely synchronous `execFileSync` calls)
33
+
34
+ ## [1.2.10] - 2026-02-19
35
+
36
+ ### Fixed
37
+
38
+ - **pnpm native build auto-configuration**: `ca setup` and `ca init` now detect pnpm projects (via `pnpm-lock.yaml`) and automatically add `better-sqlite3` and `node-llama-cpp` to `pnpm.onlyBuiltDependencies` in the consumer's `package.json`. Prevents the "better-sqlite3 failed to load" error that pnpm v9+ users encountered when native addon builds were silently blocked.
39
+ - **Improved error message**: `better-sqlite3` load failure now suggests running `npx ca setup` as the primary fix.
40
+
12
41
  ## [1.2.9] - 2026-02-19
13
42
 
14
43
  ### Added
@@ -527,7 +556,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
527
556
  - Vitest test suite
528
557
  - tsup build configuration
529
558
 
530
- [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.9...HEAD
559
+ [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.11...HEAD
560
+ [1.2.11]: https://github.com/Nathandela/learning_agent/compare/v1.2.10...v1.2.11
561
+ [1.2.10]: https://github.com/Nathandela/learning_agent/compare/v1.2.9...v1.2.10
531
562
  [1.2.9]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...v1.2.9
532
563
  [1.2.7]: https://github.com/Nathandela/learning_agent/compare/v1.2.6...v1.2.7
533
564
  [1.2.6]: https://github.com/Nathandela/learning_agent/compare/v1.2.5...v1.2.6
package/README.md CHANGED
@@ -81,7 +81,9 @@ npx ca setup --skip-model
81
81
 
82
82
  ### pnpm Users
83
83
 
84
- pnpm v9+ blocks native addon builds by default. Add to your `package.json`:
84
+ pnpm v9+ blocks native addon builds by default. Running `npx ca setup` automatically detects pnpm and adds the required config to your `package.json`.
85
+
86
+ If you prefer to configure manually, add to your `package.json`:
85
87
 
86
88
  ```json
87
89
  {
@@ -173,6 +175,16 @@ The CLI binary is `ca` (alias: `compound-agent`).
173
175
  | `ca rules check` | Run repository-defined rule checks |
174
176
  | `ca test-summary` | Run tests and output a compact summary |
175
177
 
178
+ ### Worktree
179
+
180
+ | Command | Description |
181
+ |---------|-------------|
182
+ | `ca worktree create <epic-id>` | Create isolated worktree for an epic |
183
+ | `ca worktree wire-deps <epic-id>` | Wire Review/Compound as merge blockers |
184
+ | `ca worktree merge <epic-id>` | Two-phase merge back to main |
185
+ | `ca worktree list` | List active worktrees with status |
186
+ | `ca worktree cleanup <epic-id>` | Remove worktree and clean up (--force for dirty) |
187
+
176
188
  ### Automation
177
189
 
178
190
  | Command | Description |
@@ -211,6 +223,7 @@ Installed to `.claude/commands/compound/` during setup. Invoked as slash command
211
223
  | `/compound:review` | Review | Multi-agent review (security, architecture, performance, tests, simplicity) |
212
224
  | `/compound:compound` | Compound | Capture lessons, solutions, patterns into memory |
213
225
  | `/compound:lfg` | All | Chain all phases sequentially |
226
+ | `/compound:set-worktree` | Setup | Create isolated git worktree for an epic |
214
227
 
215
228
  ## Memory Types
216
229