v4.13.0 — Phase 8: Claude-Code Inspired Enhancements
What's New
Phase Pipeline (Phase 8a)
Multi-phase workflow orchestration with approval gates. Define ordered phases with parallel or sequential agent execution, optional human-in-the-loop approval between phases, payloadFactory for dynamic payloads, autoApprove for testing, and lifecycle callbacks.
Confidence Filter (Phase 8b)
Multi-agent result scoring and filtering with configurable thresholds. Validate low-confidence findings with a secondary agent, re-evaluate rejected results with validateRejected(), and aggregate findings across agents using highest, average, unanimous, or majority strategies.
Matcher-Based Hook Filtering (Phase 8c)
Extended AdapterHookManager with HookMatcher — filter hooks by agentPattern, actionPattern, toolPattern (e.g. Bash(git *)), or custom condition function. All conditions use AND logic. New exports: matchGlob(), matchToolPattern().
Fan-Out / Fan-In (Phase 8d)
Parallel agent spawning with concurrency control and pluggable result aggregation. Fan-in strategies: merge, firstSuccess, vote, consensus, custom (with FanInReducer). Convenience run() method combines fan-out + fan-in.
Stats
- 146 new tests in
test-phase8.ts - 1,924 total tests across 23 suites — all passing
- Zero type errors (TypeScript strict mode)