compound-agent 1.2.5 → 1.2.7

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,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.2.7] - 2026-02-17
13
+
14
+ ### Changed
15
+
16
+ - **Explicit agent mechanism language in phase skills**: Each phase now clearly distinguishes subagents (Task tool, lightweight research) from AgentTeam teammates (TeamCreate + Task with `team_name`, dedicated role skills). Relative paths to agent definitions and role skill files included in every step.
17
+ - Brainstorm/Plan: "Spawn **subagents** via Task tool" referencing `.claude/agents/compound/*.md`
18
+ - Work/Review/Compound: "Deploy an **AgentTeam** (TeamCreate + Task with `team_name`)" referencing `.claude/skills/compound/agents/*/SKILL.md`
19
+
20
+ ### Fixed
21
+
22
+ - **`verify-gates` JSON array unwrap**: `bd show --json` returns an array, not an object. `parseDepsJson()` now unwraps the first element before reading `depends_on`. Previously caused false gate failures on valid epics.
23
+
24
+ ## [1.2.6] - 2026-02-16
25
+
26
+ ### Changed
27
+
28
+ - **CLI-first interface**: All templates, AGENTS.md, and prime output now reference CLI commands (`npx ca search`, `npx ca learn`) as the primary interface. MCP tool references (`memory_search`, `memory_capture`) removed from user-facing content.
29
+ - **Agent roles as skills**: Extracted agent role definitions (test-writer, implementer, security-reviewer, etc.) from inline agent templates into dedicated skill files under `agent-role-skills-*.ts`. Agent templates are now thin wrappers referencing skills.
30
+ - **Adaptive multi-teammate scaling**: Phase skills (work, review, compound) now encourage deploying MULTIPLE teammates of the same role (multiple test-writers, multiple implementers) scaled to workload complexity.
31
+ - **Parallelization emphasis**: Agent role skills for natural-fit roles (test-writer, implementer, reviewers, context-analyzer, lesson-extractor) now include guidance on spawning parallel opus subagents for independent subtasks.
32
+ - **Command templates simplified**: Slash command templates deduplicated by referencing shared agent role skills instead of inlining full role descriptions.
33
+
34
+ ### Fixed
35
+
36
+ - **[P0] Shell injection in `verify-gates`**: Replaced `execSync` with `execFileSync` to prevent shell interpretation of epic IDs. Added regex validation (`/^[a-zA-Z0-9_-]+$/`) to reject IDs with metacharacters.
37
+ - **[P1] Brittle parsing in `verify-gates`**: Primary path now uses `bd show --json` for structured JSON parsing. Text regex parsing retained as fallback only.
38
+ - **[P1] `compound` command resilience**: Added `isModelUsable()` preflight check before embedding loop. Gracefully exits with actionable error (`Run: npx ca download-model`) instead of crashing.
39
+
40
+ ## [1.2.5] - 2026-02-16
41
+
42
+ ### Changed
43
+
44
+ - **Skills synced with commands**: Enforcement content (phase gates, anti-MEMORY.md warnings, adaptive reviewer tiers, verification gates) copied from slash command templates into skill SKILL.md templates so both formats contain the same workflow enforcement.
45
+ - **ESLint config**: Excluded `examples/` directory so `pnpm lint` works without requiring `pnpm build` first.
46
+
12
47
  ## [1.2.4] - 2026-02-15
13
48
 
14
49
  ### Changed
@@ -102,7 +137,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
102
137
 
103
138
  - **Renamed** from learning-agent (CLI: `lna`) to compound-agent (CLI: `ca`)
104
139
  - **Architecture**: 3-layer design (Beads foundation, Semantic Memory, Workflows)
105
- - **MCP-first integration**: MCP tools are the primary interface; CLI serves as fallback
140
+ - **MCP integration**: MCP tools available alongside CLI commands
106
141
  - **Memory storage**: Items stored in `.claude/lessons/index.jsonl` (backward compatible with v0.x lessons)
107
142
  - **Hook system**: UserPromptSubmit and PostToolUse hooks for context-aware memory injection
108
143
  - **MCP `memory_capture`**: Supports all memory types (lesson, solution, pattern, preference), severity, confirmation, supersedes, and related fields
@@ -470,7 +505,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
470
505
  - Vitest test suite
471
506
  - tsup build configuration
472
507
 
473
- [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.4...HEAD
508
+ [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...HEAD
509
+ [1.2.7]: https://github.com/Nathandela/learning_agent/compare/v1.2.6...v1.2.7
510
+ [1.2.6]: https://github.com/Nathandela/learning_agent/compare/v1.2.5...v1.2.6
511
+ [1.2.5]: https://github.com/Nathandela/learning_agent/compare/v1.2.4...v1.2.5
474
512
  [1.2.4]: https://github.com/Nathandela/learning_agent/compare/v1.2.1...v1.2.4
475
513
  [1.2.1]: https://github.com/Nathandela/learning_agent/compare/v1.2.0...v1.2.1
476
514
  [1.2.0]: https://github.com/Nathandela/learning_agent/compare/v1.1.0...v1.2.0