v0.9.9
Released April 19, 2026 · All releases
Changes
- Expand
refrakt plan initto fully wire the host project for agent use: - AGENTS.md is now canonical — full workflow content lives in
AGENTS.mdat the project root; tool-specific files (CLAUDE.md,.cursorrules, etc.) get one-line pointers to it. - Host
package.jsonwiring — adds@refrakt-md/cli+@refrakt-md/plantodevDependencies(pinned to the running plan version) and"plan": "refrakt plan"toscripts. Walks up to find the install root (respects npm/pnpm/yarn/lerna workspaces). Never clobbers existing keys. - Claude SessionStart hook — writes
.claude/settings.jsonwith a hook that runs the detected package manager's install command ifnode_modules/.bin/refraktis missing. Gated on Claude detection (explicit--agent claudeor auto-detect seeingCLAUDE.md). PM detection happens at hook execution time by reading the lockfile, so switching package managers later just works. ./plan.shwrapper script — POSIX script that installs deps on first run and defers tonpx refrakt plan "$@". Works in any agent environment where hooks aren't available.- Opt-out flags —
--no-package-json,--no-hooks,--no-wrapper, and--minimal(all three) for users who want bare scaffolding. - Also fixes the
esbuilddependency leak in@refrakt-md/plan: thebundleBehaviorshelper now lazy-importsesbuild, so non-build plan commands (status,next,update, etc.) no longer fail to load when esbuild isn't installed.esbuildis declared as an optional peer dependency.