Repository navigation
v0.14.0
Versions at a glance, and a lock that clears itself
0.14.0 is about knowing which releases are running and trusting what a sync left behind. hooknostic --version prints the CLI's release, and doctor opens with the CLI, the project's @hooknostic/sdk and Node.js. The HN110 and HN109 warnings now name paths without a machine's directories, doctor reports HN110 for every configuration, and HN110's advice spells out the install command to run: npm's, pnpm's with esbuild's install script allowed where pnpm needs that, or Yarn's. pnpm's own Plug'n'Play mode is no longer mistaken for Yarn's. recover clears a lock a dead process left, project writes are flushed before they are reported written, and a WSL mount that keeps no file modes no longer makes verify treat every generated file as modified. Under Yarn Plug'n'Play, sync and MCP components now work.
Several command-line behaviours change, and the upgrade steps below cover them.
Upgrading from 0.13.x
-
Upgrade the SDK and the CLI together. Keep
@hooknostic/sdk,@hooknostic/agent-pluginand thehooknosticCLI on the same release; the CLI warns HN110 when it and the project's SDK differ. To upgrade:npm install --save-dev @hooknostic/sdk@0.14.0 hooknostic@0.14.0
With pnpm, run
pnpm add -D @hooknostic/sdk@0.14.0 hooknostic@0.14.0, adding--allow-build=esbuildif the project has not allowed esbuild's install script yet. -
Commands refuse options and words they do not accept. Each command now takes only what its usage line shows, plus
-h/--help;inspectalone takes a word, its target. Input a command used to ignore is a usage error: exit 2, reported before it reads a config or writes a file. That coverscheck --dry-run,dispatch --local, an--eventsfile given toinitorsync, and a second word toinspect.sync,verifyandrecovernow reject--targetas a usage error rather than a partial-selection error; both exit 2, but under--jsonthe usage line replaces the full project result. A usage error keeps its single JSON line under--json. -
dispatch --jsonis a usage error.dispatchalways writes JSON Lines, so--jsonis reported as text on stderr, with the usage, and exits 2. It is checked before anything else, including an unreadable--eventsfile. -
-vmeans--version. In the command position,hooknostic --versionandhooknostic -vprint the CLI's release and exit 0. Afterinspect,--version <range>remains the harness version range. -
doctor --jsongains two fields.runtime.hooknosticandruntime.sdkjoinruntime.node;runtime.sdkappears only when there is a config. The addition is additive, soschemaVersionstays 2. -
Expect new output lines.
sync,verify,recoveranddoctornow print each diagnostic'sRemediation:line, ascheckandbuilddo.doctoralso starts its text output with a version line, and may now print HN110 where it previously said nothing. -
Rebuild packages and re-sync projects. Generated artifacts carry the release version, so their bytes change with the upgrade. A project whose configuration
entrysits in a package with its own@hooknostic/sdkalso gets a different bundle: the entry now uses that SDK and the runtime uses the CLI's, as an npm-run build already did.
What is new
hooknostic --version, and versions indoctor.doctor's text output starts with one line, such ashooknostic 0.14.0, project @hooknostic/sdk 0.14.0 (Node.js v24.20.0). It is printed before the config loads, so a bug report has it even when the load hangs or fails.doctor --jsoncarries the same facts underruntime.- HN110 tells you what to install. Its advice now names a command with the SDK's version, without build metadata:
npm install --save-dev --save-exact hooknostic@<version>,pnpm add -D hooknostic@<version>, oryarn add -D hooknostic@<version>under Yarn Plug'n'Play. npm gets--save-exactbecause it would otherwise save a^range and let the CLI move away from the SDK again. pnpm's command carries--allow-build=esbuildwhen the project's install record names pnpm 10.4.0 or later, which accepts the option; earlier pnpm refuses it, so the command leaves it out. - pnpm's Plug'n'Play mode is told apart from Yarn's. A Plug'n'Play manifest is pnpm's when pnpm's install record says
nodeLinker: pnp, or whenpnpm-lock.yamlsits beside it andyarn.lockdoes not. Such a project is now advised to runpnpm exec hooknosticrather thanyarn hooknostic. doctorreports HN110 for every configuration. A package-only or hooks-only configuration, a config that fails to load, and targets with no registered adapter all report the skew that a build would hit. HN110 stays a warning and never changes the exit code.- The moved-schema hint reaches every command. A config or hook source that imports a schema from
@hooknostic/sdkthat lives at@hooknostic/sdk/schemasgets an HN501 remediation naming the subpath, the import to write, and the upgrade guide.sync,verify,recoveranddoctornow print it too, and doctor's top-leveldiagnosticscarries them as well.
What is fixed
Releases and paths
- HN110 compares the SDK the build sees. It resolves the project's
@hooknostic/sdkby walkingnode_modulesfrom the configuration's directory and its ancestors, asdoctoralready did, rather than through Node's resolver. An SDK that onlyNODE_PATH(which pnpm's bin shims set) or a global folder reaches no longer triggers HN110, and no longer stands in for the project's SDK in the bundle, where a foreign or incomplete copy used to fail the build with HN301. - HN110 and HN109 name no machine directory. Under
yarn hooknostic, the SDK and the Zods are namedfrom Yarn's Plug'n'Play installrather than by their archive path. Inside the configuration's directory, a path is relative to it and uses forward slashes. - The SDK names
main. pnpm 12's Plug'n'Play runtime resolves a package by its directory, throughmain, and ignoresexports; the SDK now names both.exportsstill wins wherever it is read. An SDK of 0.13.0 or earlier remainsnot-foundunderpnpm exec.
Project state
recoverclears a dead process's lock. A hard kill duringsyncorrecoverused to leavesync.lockorrecovery.lockbehind until it was deleted by hand.recovernow clears either lock when its recorded process ID names a process that has exited, and refuses one held by a live process, a reused ID, or no valid ID, naming the ID and the lock's path. It claims the lock by renaming it into.hooknostic/stagingand rechecks its identity before removing it, so a peer's fresh lock is not taken.- A failed write no longer leaves a lock behind. Locks, staged files and the journal are written, flushed with
fs.fsync, then closed; a failure after creating one removes it again. A flush error such asEIOstill aborts the sync. - A leftover lock names
recover. A sync that findssync.lockreports that another sync or recover may be running and namesrecover, to run with the same configuration, instead of Node's rawEEXIST. - File modes are compared only where the filesystem keeps them. On a WSL checkout under
/mnt/c, with DrvFs mounted without metadata, every file read0777andchmodchanged nothing, soverifyand a secondsyncreported every generated file as modified, andrecoverreported a conflict. Modes are now unobserved there and content is still compared; Windows behaved this way already. A Windows path containing a space in a DrvFs mount'spath=option no longer hides a metadata mount's option.
Yarn Plug'n'Play
syncworks under Yarn's runtime. It used to fail withMethod not implemented.from Yarn's patched file handle and leave its lock behind, after which every later sync failed withEEXIST. The opt-in Yarn suite now runsinit --local,synctwice andverifyunderyarn hooknostic.- MCP components build under Yarn Plug'n'Play. Every MCP component failed with HN301 when Yarn used its global cache, because the launcher's dependencies could not be resolved from inside Yarn's archives. The launcher now resolves its imports through the PnP API that serves the CLI. Generated launcher bytes are unchanged.
- ADR-0041 records the supported surface.
yarn hooknosticand, for a CLI installed outside the project,node -r ./.pnp.cjs <cli>/bin/hooknostic.mjs, run from the project directory, are supported. Plainnode,npx, a global install run directly andpnpm dlxfail with HN504 when a build needs a package from Yarn's install.yarn dlxstays best effort.
Limits
- HN110 is a warning, and compares release numbers, not contents. It does not run for
dispatch, and it stays silent underyarn dlxand pnpm 11's PnP runtime, where looking up the project's SDK would break the build. recovercannot see another environment's process. A process in WSL, a container or another host that shares the checkout cannot be seen, and its lock looks abandoned. Runsyncandrecoverfrom one environment at a time.- An empty lock is not cleared. A process killed while creating a lock leaves an empty one, which a live process paused at that moment also has.
recoverrefuses it; delete the file only after confirming nosyncorrecoveris running. - pnpm's Plug'n'Play mode is best effort.
pnpm exec hooknosticbuilt a working artifact with pnpm 12.21.0 in one recorded check (.capture/pnpm-pnp), but no test suite runs it.symlink: falsebuilds nothing. With an SDK of 0.13.0 or earlier,pnpm exechides HN110 and reports the SDK asnot-found; runbuildanddoctorwith plainnode. Under pnpm 11's PnP runtime, HN110 is silent anddoctorreports the SDK asnot-looked-up. - File-mode detection covers Windows and Linux DrvFs without metadata. Another filesystem that ignores
chmodis still compared by mode. - macOS has no playback lane in CI. Its evidence is shell interpreter captures from GitHub macOS runners and live probes (
.capture/shell-dialects,.capture/opencode-v2). --versionprints this CLI's release. It does not check the registry for a newer one.
Start with the README.
Harness support
| Harness | Recommended target range | Validated ranges | Reference build |
|---|---|---|---|
| Claude Code | >=2.1 <3 |
>=2.0 <3 |
2.1.238 |
| Codex CLI | >=0.148 <1 |
>=0.140 <1 |
0.148.0 |
| GitHub Copilot CLI | >=1.0.101 <2 |
>=1.0.101 <2 |
1.0.101 |
| OpenCode | >=1.18 <2 |
>=1.10 <2 |
1.18.18 |
| OpenCode v2 | >=2.0.17 <3 |
>=2.0.17 <3 |
2.0.17 |
| pi | >=1 <2 |
>=0.84 <1, >=1 <2 |
1.3.0 |
What's Changed
Other changes
- fix(core): name pnpm exec beside npx in HN110's advice by @roryeckel in #249
- fix(core): name a Plug'n'Play SDK by its install in HN110 by @roryeckel in #252
- fix(cli): reject --json on dispatch as a usage error by @roryeckel in #250
- feat(core): point HN501 for a root schema import at @hooknostic/sdk/schemas by @roryeckel in #251
- fix(core): flush through fs.fsync and never leave a failed lock behind by @roryeckel in #265
- feat(cli): add hooknostic --version and report versions in doctor by @roryeckel in #253
- fix(core): compare file modes only where the filesystem keeps them by @roryeckel in #254
- fix(core): bundle the MCP launcher under Yarn Plug'n'Play by @roryeckel in #270
- docs(releases): point at sourceCarriers instead of counting version carriers by @roryeckel in #271
- fix(core): name hooknostic recover when a sync lock is left behind by @roryeckel in #273
- test(cli): print the Yarn suite's verbose output on a passing run by @roryeckel in #274
- fix(cli): report HN110 from doctor for any configuration by @roryeckel in #275
- fix(core): name HN109's Zods without a machine's path by @roryeckel in #278
- test(project): raise the limit for whole project-command suites by @roryeckel in #277
- docs(adr): record the supported Yarn Plug'n'Play surface in ADR-0041 by @roryeckel in #276
- fix(cli): accept each command's options and words from one table by @roryeckel in #280
- fix(cli): print remediations from sync, verify, recover and doctor by @roryeckel in #282
- fix(core): find the project SDK through node_modules for HN110 and the build by @roryeckel in #279
- test(opencode-v2): seed a pinned ripgrep for the tools playback by @roryeckel in #283
- docs(core): say why anotherInstallsPnpRuntime asks about any CLI directory by @roryeckel in #284
- fix(core): let recover clear a dead process's lock by @roryeckel in #281
- test(opencode-v2): don't fail the ripgrep seed check on a truncated harness log by @roryeckel in #285
- fix(core): print HN110's install command, and pnpm's advice under its Plug'n'Play by @roryeckel in #286
- docs(skills): stop counting adapters in agent instructions by @roryeckel in #287
- ci: run the Linux playback lanes without network by @roryeckel in #288
Full Changelog: v0.13.0...v0.14.0
Direct commits
Release v0.14.0 (#289) (785de6f)
- fix(core): say which lock recover clears
The sync.lock and recovery.lock EEXIST messages said recover removes a lock
"left by a process that has exited", but recover refuses a lock that holds no
process ID, which is what a process killed between creating the lock and
writing its ID leaves. They now say it removes a lock whose recorded process
ID has exited, matching what recover does and what project-integration.md
already said.
The unfinished-transaction error now names the same configuration too, as
that page does. No new test: the three suites that pin the hint's text expect
the new wording, and the unfinished-transaction message had no test.
- docs: prepare 0.14.0 highlights and correct release-facing docs
- Rewrite docs/release-highlights.md for 0.14.0: visible versions, HN110's
install advice and pnpm Plug'n'Play, recover's dead-lock clearance, file
modes, the Yarn Plug'n'Play fixes, and the release's limits. - AGENTS.md: adapters are one package per harness family, with OpenCode's
v1 and v2 families sharing one. - CONTRIBUTING.md: name the copilot playback lane.
- docs/testing.md: network isolation landed as one squashed commit, so it
cannot be reverted by job group. - .capture/network-egress: the Yarn Plug'n'Play suite is an opt-in gate,
not a CI job. - scripts/generate-harness-support.mjs, and the regenerated page: macOS has
shell interpreter and live-probe evidence, but no playback lane in CI. - docs/releases.md: the publish guard and launch-readiness sections are
history; publishConfig has been in place since 0.10.0. - docs/testing-your-hooks.md and .capture/pnpm-pnp: wording and citation
accuracy.
-
chore(release): 0.14.0
-
docs: correct design and dependency claims
- design.md: HN110 judges the SDK that a node_modules walk from the
configuration's directory finds, not necessarily the one a nested entry
bundles (#258); a committed report names no machine's path only when the
SDK is inside that directory; the walk requires a package.json. - dependencies.md: an SDK reaching no Zod is about the project's tree, not a
globally installed CLI, and Yarn's Plug'n'Play takes peers from the
project's declarations. - getting-started.md: the suite runs the node -r route with a CLI in an
ordinary directory; a global prefix is the same route, which it does not
run.
Co-authored-by: release-prepare <release-prepare@users.noreply.github.com>