Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/flake-build-home.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/update-deps.md

This file was deleted.

2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/comment-checker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 —
Expand Down
4 changes: 4 additions & 0 deletions npm/packages/comment-checker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>) — 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 <code>) — 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".
2 changes: 1 addition & 1 deletion npm/packages/comment-checker/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down