diff --git a/.changeset/claude-plugin.md b/.changeset/claude-plugin.md deleted file mode 100644 index 0c8702e..0000000 --- a/.changeset/claude-plugin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@systemfsoftware/claude-code-comment-checker': minor ---- - -This repository is also a Claude Code plugin. Enabling it runs a PostToolUse hook that tries `comment-checker --strip`, then `direnv exec`. If both miss and the project has `flake.nix`, the error tells you to run `direnv allow` or `nix develop`. diff --git a/.changeset/strip-flagged-comments.md b/.changeset/strip-flagged-comments.md deleted file mode 100644 index 35b64ec..0000000 --- a/.changeset/strip-flagged-comments.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@systemfsoftware/claude-code-comment-checker': minor ---- - -`--strip` deletes whole-line flagged comments from the file named in the hook payload. Without the flag, the hook still only reports. After a strip, the message names a code change to make — rename, extract, or tighten a type — instead of asking you to delete the comment. diff --git a/Cargo.toml b/Cargo.toml index 8e871ae..b513f36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" default-members = ["crates/comment-checker"] [workspace.package] -version = "0.2.0" +version = "0.3.0" edition = "2024" rust-version = "1.85" license = "Apache-2.0" diff --git a/crates/comment-checker/Cargo.toml b/crates/comment-checker/Cargo.toml index 3251342..f608cde 100644 --- a/crates/comment-checker/Cargo.toml +++ b/crates/comment-checker/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "claude-code-comment-checker" -version = "0.2.0" +version = "0.3.0" edition = "2024" rust-version = "1.85" license = "Apache-2.0" diff --git a/npm/packages/comment-checker/CHANGELOG.md b/npm/packages/comment-checker/CHANGELOG.md index 5c7bf03..dfcd006 100644 --- a/npm/packages/comment-checker/CHANGELOG.md +++ b/npm/packages/comment-checker/CHANGELOG.md @@ -35,3 +35,8 @@ ## 0.2.0 - Flagged-comment reports now go to stderr instead of stdout, so the agent that made the edit actually receives them. A blocked verdict previously exited 2 with its report on stdout, which the hook contract discards, so the block arrived carrying no explanation of what was flagged. If you capture reports yourself, read stderr. Exit codes are unchanged: 0 when nothing is flagged, 2 when something is. + +## 0.3.0 + + - This repository is also a Claude Code plugin. Enabling it runs a PostToolUse hook that tries `comment-checker --strip`, then `direnv exec`. If both miss and the project has `flake.nix`, the error tells you to run `direnv allow` or `nix develop`. + - `--strip` deletes whole-line flagged comments from the file named in the hook payload. Without the flag, the hook still only reports. After a strip, the message names a code change to make — rename, extract, or tighten a type — instead of asking you to delete the comment. diff --git a/npm/packages/comment-checker/package.json b/npm/packages/comment-checker/package.json index 5d074aa..46836c6 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.2.0", + "version": "0.3.0", "description": "Claude Code PostToolUse hook that blocks unnecessary comments (npm distribution launcher)", "license": "Apache-2.0", "repository": {