Skip to content

Fix cc-lint findings: hook bugs, permissions, docs#362

Merged
philoserf merged 3 commits intomainfrom
fix/cc-lint-findings
Mar 27, 2026
Merged

Fix cc-lint findings: hook bugs, permissions, docs#362
philoserf merged 3 commits intomainfrom
fix/cc-lint-findings

Conversation

@philoserf
Copy link
Copy Markdown
Owner

Summary

Test plan

  • Verify config-protection warns on tsconfig.json edits
  • Verify suggest-compact counter persists across tool calls in a session
  • Verify validate-bash-commands output appears as structured hook context
  • Verify auto-format still formats TS/JS/MD files via bunx
  • Verify shell scripts can be created/edited without permission prompt

🤖 Generated with Claude Code

philoserf and others added 3 commits March 26, 2026 21:30
…idate-bash

- Add tsconfig.json and tsconfig.*.json to config-protection.sh (closes #349)
- Use session_id from stdin JSON instead of PID for compact counter (closes #341)
- Switch validate-bash-commands.py to hookSpecificOutput JSON format (closes #342)
- Apply shfmt tab indentation to touched shell scripts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ensures prettier runs via bunx for portability in environments where
prettier isn't globally installed. Also applies shfmt tab indentation.

Closes #343

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…nt name

- Add Write(*.sh) to settings.json permissions (closes #344)
- Document all 9 hooks in CLAUDE.md (was missing 4: config-protection,
  prompt-injection-guard, suggest-compact, context-monitor)
- Remove redundant name: field from obsidian-cli/SKILL.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@philoserf philoserf merged commit 9d76050 into main Mar 27, 2026
1 check passed
@philoserf philoserf deleted the fix/cc-lint-findings branch March 27, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant