feat(claude): web/public media exemption in git-staging-guard - #14
Merged
Conversation
The ambix web repo serves images and video straight from the repo (no CDN). Allow png/jpg/webp/avif/svg/gif/mp4/webm under public/ in the web repo (and its web.* worktrees) through the binary-extension check, with a 3MB cap instead of the global 1MB. Everything else unchanged; mp4 stays blocked outside web/public.
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.
The ambix web repo serves images and video straight from the repo (no CDN — see ambix-ai/web#158 and the upcoming video PR). The git-staging-guard hook blocked that workflow twice:
public/in thewebrepo (and itsweb.*worktrees)..mp4is in the binary blocklist →mp4/webm(plus the image formats) pass the extension check under the same scoped path.Shared
is_web_public_media()helper gates both. Verified: 1MB+ png and mp4 pass underweb*/public/; mp4 still blocked in any other repo; shellcheck clean.Both changes were applied live via chezmoi during the landing-page screenshot/video work (Peter authorized each interactively); this PR lands them in source control.