compound-agent 1.2.11 → 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/CHANGELOG.md CHANGED
@@ -9,6 +9,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.3.0] - 2026-02-21
13
+
14
+ ### Added
15
+
16
+ - **Setup hardening**: Four new pre-flight checks during `ca init` and `ca setup`:
17
+ - **Beads CLI check** (`beads-check.ts`): Detects if `bd` is available, shows install URL if missing (informational, non-blocking)
18
+ - **User-scope detection** (`scope-check.ts`): Warns when installing at home directory level where lessons are shared across projects
19
+ - **.gitignore injection** (`gitignore.ts`): Ensures `node_modules/` and `.claude/.cache/` patterns exist in `.gitignore`
20
+ - **Upgrade detection** (`upgrade.ts`): Detects existing installs and runs migration pipeline (deprecated command removal, header stripping, doc version update)
21
+ - **Upgrade engine**: Automated migration from v1.2.x to v1.3.0:
22
+ - Removes 5 deprecated CLI wrapper commands (`search.md`, `list.md`, `show.md`, `stats.md`, `wrong.md`)
23
+ - Strips legacy `<!-- generated by compound-agent -->` headers from installed files
24
+ - Updates `HOW_TO_COMPOUND.md` version during upgrade
25
+ - **`/compound:research` skill**: PhD-depth research producing structured survey documents following `TEMPLATE_FOR_RESEARCH.md` format
26
+ - **`/compound:test-clean` skill**: 5-phase test suite optimization with adversarial review (audit, design, implement, verify, report)
27
+ - **Documentation template**: `HOW_TO_COMPOUND.md` deployed to `docs/compound/` during setup with version and date placeholders
28
+ - **Test scripts**: `test:segment` (run tests for specific module), `test:random` (seeded random subset), `test:critical` (*.critical.test.ts convention)
29
+ - **3 new doctor checks**: Beads CLI availability, `.gitignore` health, usage documentation presence
30
+
31
+ ### Fixed
32
+
33
+ - **`setup --update --dry-run` no longer mutates files**: `runUpgrade()` now accepts a `dryRun` parameter propagated to all sub-functions (removeDeprecatedCommands, stripGeneratedHeaders, upgradeDocVersion)
34
+ - **`setup --uninstall` respects plugin.json ownership**: Checks `name === "compound-agent"` before deleting; user-owned plugin manifests are preserved
35
+ - **Upgrade ownership guard**: `removeDeprecatedCommands` checks file content for compound-agent markers before deleting, preventing silent removal of user-authored files with the same name
36
+ - **Malformed settings.json no longer silently clobbered**: On parse error, `configureClaudeSettings` warns and skips instead of overwriting with empty config
37
+
38
+ ### Changed
39
+
40
+ - **`setup --update` overhaul**: Now uses path-based file detection (compound/ = managed) instead of marker-based. Runs upgrade pipeline and `.gitignore` remediation during update
41
+ - **JSON-first `bd` parsing in loop**: `jq` primary with `python3` fallback via `parse_json()` helper
42
+ - **CLI test helpers hardened**: Replaced shell string interpolation with `execFileSync` for safety and reliability
43
+ - **Beads check portable**: Uses POSIX `command -v` instead of non-portable `which`
44
+ - **Template expansion**: Brainstorm and plan skills now cross-reference researcher skill; 9 total skills, 11 total commands
45
+ - **Code organization**: Extracted display utilities to `display-utils.ts`, uninstall logic to `uninstall.ts`
46
+
47
+ ### Removed
48
+
49
+ - **5 deprecated CLI wrapper commands**: `search.md`, `list.md`, `show.md`, `stats.md`, `wrong.md` (redundant wrappers around `npx ca <cmd>`)
50
+ - **`GENERATED_MARKER` on new installs**: New installs use path-based detection; marker retained only for backward-compatible `--update` detection
51
+
12
52
  ## [1.2.11] - 2026-02-19
13
53
 
14
54
  ### Added
@@ -556,7 +596,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
556
596
  - Vitest test suite
557
597
  - tsup build configuration
558
598
 
559
- [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.11...HEAD
599
+ [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.3.0...HEAD
600
+ [1.3.0]: https://github.com/Nathandela/learning_agent/compare/v1.2.11...v1.3.0
560
601
  [1.2.11]: https://github.com/Nathandela/learning_agent/compare/v1.2.10...v1.2.11
561
602
  [1.2.10]: https://github.com/Nathandela/learning_agent/compare/v1.2.9...v1.2.10
562
603
  [1.2.9]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...v1.2.9