compound-agent 2.0.3 → 2.1.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 (2) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,26 @@ All notable changes to this project will be documented in this file.
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [2.1.0] - 2026-03-23
11
+
12
+ ### Added
13
+
14
+ - **Structured logging via `log/slog`**: Replaced all ad-hoc `fmt.Fprintf(os.Stderr, ...)` calls in production code with structured `slog` calls (Error/Warn/Debug levels). No external dependencies — uses Go stdlib only.
15
+ - **`--verbose` / `-v` global flag**: New persistent flag on the root command enables debug-level JSON logging to stderr. Default level is Warn (silent in normal operation).
16
+ - **Dependabot configuration**: Added `.github/dependabot.yml` for automated weekly dependency update PRs targeting Go modules (`/go`) and Cargo (`/rust/embed-daemon`).
17
+
18
+ ### Changed
19
+
20
+ - **AGENTS.md rewritten for Go**: Complete rewrite of AGENTS.md to reflect the Go-based architecture. Removed all stale TypeScript/pnpm/vitest/Commander.js references. Now accurately documents Cobra CLI commands, `go/internal/` package layout, Go conventions, and build/test commands.
21
+
22
+ ### Fixed
23
+
24
+ - **CI lint pipeline**: Upgraded golangci-lint to v2.11.4 (Go 1.26 support), migrated `.golangci.yml` from v1 to v2 format, resolved all 313 pre-existing lint violations across 72 files. All refactoring is purely structural — no behavior changes.
25
+ - **Stale `npx ca` references in runtime strings**: Replaced `npx ca` with `ca` in user-facing hook messages (pre-commit reminder, correction/planning reminders, failure tips) and AI context strings (`ca prime` trust language, loop prompt builder).
26
+ - **Setup upgrade reconciliation**: `ca setup` now reconciles existing managed files during upgrades, prunes retired templates and nested phase reference files from managed `compound/` directories.
27
+ - **GoReleaser config**: Fixed deprecated `.goreleaser.yml` fields (`format` → `formats`, `builds` → `ids`).
28
+ - **Duplicate function**: Removed duplicate `countOldLessons` definition in `commands_scripts.go`.
29
+
10
30
  ## [2.0.3] - 2026-03-22
11
31
 
12
32
  ### Fixed
@@ -59,6 +79,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
59
79
 
60
80
  ### Fixed
61
81
 
82
+ - **Managed repo artifact upgrades**: `ca setup` now reconciles existing managed compound-agent files during upgrades instead of only creating missing files, so already-initialized repos receive updated templates and metadata.
83
+ - **Retired managed template cleanup**: Setup upgrades now remove stale files and directories that are no longer shipped from managed `compound/` directories under `.claude/commands/`, `.claude/skills/`, `.claude/agents/`, and `docs/`.
84
+ - **Nested phase reference cleanup**: Setup upgrades now prune retired nested files and directories inside phase skill `references/` trees, preventing removed or renamed reference docs from lingering after reruns.
62
85
  - **Embedding memory pressure remediation**: Lazy-load native modules (@huggingface/transformers (onnxruntime-node), better-sqlite3) behind dynamic `import()`, reducing CLI cold-start RSS. Singleton embedding model uses explicit `dispose()`. Added RSS measurement script and integration tests for memory lifecycle.
63
86
  - **Review phase resilience**: Fixed jq stdin pipe handling, added auth health checks, and improved error isolation in loop review templates.
64
87
  - **Quality-filter-before-storage test ordering**: Resolved flaky test ordering in compound skill tests.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-agent",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "description": "Learning system for Claude Code — avoids repeating mistakes across sessions",
6
6
  "bin": {