Skip to content

chore(config): add project Claude Code settings - #445

Merged
richardthe3rd merged 5 commits into
mainfrom
claude/read-3n06my
Jun 25, 2026
Merged

chore(config): add project Claude Code settings#445
richardthe3rd merged 5 commits into
mainfrom
claude/read-3n06my

Conversation

@richardthe3rd

Copy link
Copy Markdown
Owner

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

claude added 5 commits June 25, 2026 19:58
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
@richardthe3rd
richardthe3rd merged commit 6f841b5 into main Jun 25, 2026
5 checks passed
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants