fix(cli): sync cli/assets with src/ui-ux-pro-max source of truth#322
Open
alfredo-petri wants to merge 1 commit into
Open
fix(cli): sync cli/assets with src/ui-ux-pro-max source of truth#322alfredo-petri wants to merge 1 commit into
alfredo-petri wants to merge 1 commit into
Conversation
33 files were divergent between src/ui-ux-pro-max/ and cli/assets/, causing users who install via npm to receive outdated data: scripts with 3 stacks instead of 16, stale CSVs, and outdated platform templates. - Add cli/scripts/sync-assets.js to automate the sync - Add sync-assets npm script for manual runs - Replace prepublishOnly + add prepack to run sync before every pack/publish - Run sync to fix current divergences in data/, scripts/, templates/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Problem
cli/assets/was divergent fromsrc/ui-ux-pro-max/(the documented source of truth per CLAUDE.md). Users installing via npm received outdated data:scripts/core.py: only 3 stacks instead of 16scripts/search.py: stale domain/stack documentationRoot cause: The sync step (
cp -r src/ui-ux-pro-max/...) is documented in CLAUDE.md but was never automated, so it drifts with every commit tosrc/.Solution
cli/scripts/sync-assets.js— a zero-dependency Node.js script that copiessrc/ui-ux-pro-max/{data,scripts,templates}→cli/assets/sync-assetsnpm script for manual runsprepackandprepublishOnlyto run sync automatically before everynpm pack/npm publishVerification
🤖 Generated with Claude Code