Skip to content

chore(scaffold): bump @civitai/* pins to published latest - #973

Merged
ZacxDev merged 1 commit into
mainfrom
automation/bump-scaffold-pins
Nov 23, 2026
Merged

ZacxDev merged 1 commit into
mainfrom
automation/bump-scaffold-pins

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Automated by the bump-scaffold-pins workflow (internal/scaffold/cmd/bump-pins).

One or more @civitai/* packages published a new minor, so a
scaffold's pre-1.0 caret pins fell behind npm and the
pins-vs-published guard would go red. This PR rewrites the stale
literal pins wherever they appear:

  • internal/scaffold/templates/page-money/package.json.tmpl
  • internal/scaffold/scaffold_test.go (page-money's mustContain canary)
  • internal/scaffold/templates/page-elements/package.json.tmpl
  • internal/scaffold/page_elements_test.go (page-elements' pin canary)

and regenerates internal/scaffold/testdata/design-tokens.txt (the
design-token ledger) when the @civitai/blocks-react pin or its
token set moved, or the ledger is missing.

The pins are rewritten as literals (not templated) on purpose:
the guard reads the raw ^X.Y.Z bytes out of the .tmpl, so
templating the value would blind it.

CI note: this PR is opened with a scoped fine-grained token
(secrets.BUMP_SCAFFOLD_PINS_TOKEN, Contents + Pull requests RW on
this repo only), not the default GITHUB_TOKEN — so the repo's
normal checks (pins-vs-published / scaffold-currency) DO run on
it. As defense-in-depth the bump job RUNS three checks before opening
the PR — the network guard (CIVITAI_CHECK_PUBLISHED_PINS=1 go test -run TestScaffoldPinsSatisfyPublished), the full offline scaffold
suite, and a fresh civitai app init scaffold that installs,
typechecks and builds against the bumped SDK (which is what would
catch a removed/renamed export).

The first two must pass or this PR is not opened at all. The third
does NOT block it — a failure there opens this PR as a draft
instead, because withholding the bump keeps main red and blocks every
PR that touches a pin input (#530 was the whole repo, before that was
narrowed).
Its result for this run is stated on the last line below; do not read
"the bump job validates" as "everything passed".

Scaffold build validation: success.

@ZacxDev

ZacxDev commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Audit at 0082c637c8: round 0 proceeds (the 5 hunks are version literals the pins-vs-published gate and the token-ledger guard require; nothing to delete). Round 1 found no 🔴, 🟡 or 🟢. The newly admitted @civitai/app-sdk@0.93.0 adds only a ./save-model3d subpath, and @civitai/blocks-react@0.86.0 has unchanged exports and peers. Its one behaviour change is that useBuzzWorkflow.submit() now reuses its idempotency key on a retry after an unknown-outcome failure, which lowers the double-charge risk for the page-money template. This unblocks main's red checks job.

1. no fixes this round — no findings

@ZacxDev
ZacxDev merged commit e7626d8 into main Nov 23, 2026
9 checks passed
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.

1 participant