Repository navigation
fix(hook): resolve printed Claude hooks through the local CLI - #412
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hook print --claudeemitted a barecharter, which does not resolve from the recommended project-local install. Generate the command with the repository's package manager:pnpm exec charter,yarn run charter, ornpm exec --no --package=@stackbilt/cli -- charter. A valid packageManager declaration wins; lockfiles and Yarn PnP markers provide the fallback. Printing never changes Claude settings or installs the CLI.Closes #400. The existing UserPromptSubmit event, matcher, and
context-refresh --oncebehavior remain unchanged; changing the event is a separate decision.Validation in isolated issue-400 worktree, Windows Node24.19.0 / pnpm9.15.9:
pnpm install --frozen-lockfile: pass.pnpm run build,pnpm run typecheck: pass.pnpm exec vitest run packages/cli/src/__tests__/hook-claude-local.test.ts packages/cli/src/__tests__/hook.test.ts packages/cli/src/__tests__/hook-pm.test.ts: 129/129 pass, including 15 new regressions.pnpm run docs:check: pass (docs-sync skipped absent optional config; papers-lint passed).git diff --check, LF preservation, smart-commit dry-run, TypeScript and ADF pre-commit gates: pass.pnpm run test: 1,940 passed and four failed (1,944 total). The failures exactly match the known Windows baseline: bootstrap POSIX premise, context-refresh/serve path separators, and Ctrl-D fake TTY.Main CI currently fails the dependency audit before build/tests. Compatible repairs are tracked in PR #404 and the separately approved major Zod migration under #310; this PR does not weaken those gates. No merge, publication, deployment, production-data change, tag/main push, or remote deletion performed.