chore(config): add project Claude Code settings - #445
Merged
Conversation
Adds permissions allowlist, Dart auto-format hook, and worktree symlink config for the Flutter SDK cache. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX
- Add dart:format:fast task to mise.toml: runs dart format without triggering code generation, making it suitable for editor hooks - Fix hook to use dart:format:fast (was incorrectly using --no-deps which skips tool installation, not task deps, so generate still ran) - Narrow mise permissions from Bash(./bin/mise *) to specific subcommands: run, tasks, exec, dr, cfg - Narrow git permissions: allow read-only + add/commit; push, reset, checkout, rebase, merge still prompt for confirmation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX
Replace Bash(./bin/mise run *) with an explicit allowlist of tasks that are safe to run without prompting (test, analyze, format, lint). Tasks that require confirmation: build:web, dev, serve:release, setup:*, proto:generate/clients/dep-update, test:e2e*, screenshots:batch. New tasks added in future will not be auto-allowed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX
- Add prettier:format:fast task (no npm ci) for use in editor hooks - Add PostToolUse hooks for .js/.ts/.mjs, .sh, mise*.toml, and .proto - TOML hook matches only mise config files, not cliff.toml/wrangler.toml - Proto hook uses MISE_ENV=dev (buf only available in dev environment) - Add prettier:format:fast to permissions allowlist Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX
…mmands test* prefix-matched test:e2e, test:e2e:headed, test:e2e:ui, and test:check-page — all browser-automation tasks intended to require confirmation. Replace with exact + space-separated-arg forms so only the bare task name (plus an optional file argument after a space) is allowed. Same fix for analyze* and goldens:update*. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
🚀 Cloudflare Pages PreviewYour preview deployment is ready! Preview URL: https://claude-read-3n06my.staging-cambeerfestival.pages.dev This preview will be automatically updated when you push new commits to this PR. |
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.
Adds permissions allowlist, Dart auto-format hook, and worktree
symlink config for the Flutter SDK cache.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01HUH7Gt2mzg4vx2o1uTRfWX