Repository navigation
feat: add {content_hash} naming placeholder (AI生成) - #109
Merged
Merged
Conversation
{fname_hash} is MD5 of the stem, so same-name files overwrite each other.
Artifact now answers a content digest; KeyPolicy interpolates
{content_hash}, {content_hash4}, and {content_hash8} (MD5 hex lowercase).
Templates that need a digest fail when the artifact has no readable bytes.
{fname_hash} and {content_hash} are xxHash32 (seed 0). Artifact answers
bytes only; KeyPolicy hashes. Callers pass content_hash_fallback so
missing or empty content is never hashed.
resolve_content_hash is a KeyPolicy method. HMAC hex encoding lives on HmacSpec. No file-level helper functions remain.
pluveto
force-pushed
the
feat/issue-71-content-hash
branch
from
September 1, 2026 15:04
fcbd360 to
0aa18ef
Compare
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.
Closes #71.
Supersedes #106 (rebase onto main after #104/#105/#107/#108).
{fname_hash}and{content_hash}are xxHash32 (seed 0). Callers pass an explicit content_hash fallback; empty bytes are never hashed.