diff --git a/.changeset/flake-build-home.md b/.changeset/flake-build-home.md deleted file mode 100644 index 327a6c95..00000000 --- a/.changeset/flake-build-home.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@systemfsoftware/claude-code-comment-checker': patch ---- - -The Nix flake build no longer writes to `/homeless-shelter` on machines where Nix runs without a sandbox (the macOS default), so rebuilding the flake or re-entering its direnv shell after an update no longer fails with "home directory /homeless-shelter exists". diff --git a/.changeset/update-deps.md b/.changeset/update-deps.md deleted file mode 100644 index db7460e8..00000000 --- a/.changeset/update-deps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@systemfsoftware/claude-code-comment-checker': none ---- - -Refreshes internal dependencies (Rust tree-sitter parser bindings and the npm launcher's Effect runtime) with no change to the comment check's observable behaviour. diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 8fb6cce1..e51af55a 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "comment-checker", - "version": "0.3.5", + "version": "0.3.6", "description": "PostToolUse hook that flags unnecessary comments. Runs comment-checker, then direnv exec if it is missing. Names flake.nix when that is why it is missing.", "author": { "name": "systemfsoftware", diff --git a/Cargo.toml b/Cargo.toml index e9bbc08f..36afd280 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" default-members = ["crates/comment-checker"] [workspace.package] -version = "0.3.5" +version = "0.3.6" edition = "2024" rust-version = "1.90" license = "Apache-2.0" diff --git a/crates/comment-checker/Cargo.toml b/crates/comment-checker/Cargo.toml index 5498268a..aa1efd5d 100644 --- a/crates/comment-checker/Cargo.toml +++ b/crates/comment-checker/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "claude-code-comment-checker" -version = "0.3.5" +version = "0.3.6" edition = "2024" rust-version = "1.90" license = "Apache-2.0" diff --git a/flake.nix b/flake.nix index 6f942b12..0686ab4a 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ overlays = [ (import rust-overlay) ]; }; in f pkgs); - version = "0.3.5"; + version = "0.3.6"; # tree-sitter-language-pack's build.rs downloads a parser-sources # tarball at compile time; the nix sandbox has no network, so the # bundle rides in as a hash-pinned fetchurl (like Cargo.lock — diff --git a/npm/packages/comment-checker/CHANGELOG.md b/npm/packages/comment-checker/CHANGELOG.md index 1460cd34..22db73f4 100644 --- a/npm/packages/comment-checker/CHANGELOG.md +++ b/npm/packages/comment-checker/CHANGELOG.md @@ -61,3 +61,7 @@ - The documented Claude Code hook command no longer exits without reading the tool payload, so hosts that pipe large payloads no longer fail with a broken pipe. When `comment-checker` is not on `PATH` it now tries `direnv exec` next. When neither finds the checker, the hook reads the whole payload, prints `comment-checker did not run — nothing checked this write.` and exits 1. When the checker runs but exits with a code other than 0 or 2, for example after a crash, the hook reads the rest of the payload, prints `comment-checker failed (exit ) — nothing checked this write.` and exits 1. If you copied an earlier snippet, replace its `command` with the one in the README. - The Claude Code plugin hook no longer exits without reading the tool payload, so hosts that pipe large payloads no longer fail with a broken pipe. It passes through only the checker's own exit codes 0 and 2. When the checker cannot be found, or `deno` is missing or fails to start, the hook reads the whole payload, prints `comment-checker did not run — nothing checked this write.` and exits 1. When the checker runs but exits with any other code, the hook prints `comment-checker failed (exit ) — nothing checked this write.` and exits 1, where it used to pass that code through. + +## 0.3.6 + + - The Nix flake build no longer writes to `/homeless-shelter` on machines where Nix runs without a sandbox (the macOS default), so rebuilding the flake or re-entering its direnv shell after an update no longer fails with "home directory /homeless-shelter exists". diff --git a/npm/packages/comment-checker/package.json b/npm/packages/comment-checker/package.json index 76df56e3..4c24c36c 100644 --- a/npm/packages/comment-checker/package.json +++ b/npm/packages/comment-checker/package.json @@ -1,6 +1,6 @@ { "name": "@systemfsoftware/claude-code-comment-checker", - "version": "0.3.5", + "version": "0.3.6", "description": "Claude Code PostToolUse hook that blocks unnecessary comments (npm distribution launcher)", "license": "Apache-2.0", "repository": { diff --git a/package.json b/package.json index 9569d299..b17171f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-code-comment-checker", - "version": "0.3.5", + "version": "0.3.6", "private": true, "type": "module", "packageManager": "pnpm@11.21.0",