feat(sync): Phase 1 porter workflow + enriched icon/color maps#67
Open
IgorShevchik wants to merge 2 commits into
Open
feat(sync): Phase 1 porter workflow + enriched icon/color maps#67IgorShevchik wants to merge 2 commits into
IgorShevchik wants to merge 2 commits into
Conversation
- .github/workflows/sync-porter.yml: manual (workflow_dispatch) porter that ports ONE nuxt/ui commit via Claude, with SHA validation, untrusted-diff isolation, a src/-only scope guard, a v-html security gate, no-op detection, the full ci gate chain, and PR creation. Experimental; needs ANTHROPIC_API_KEY; does not advance the cursor. - icon-map.json: grounded literal lucide -> b24-icons map (verified against src/runtime/dictionary/icons.ts). - color-map.json: nuxt tokens -> air-* (verified against src/theme). - PORTING.md: document that the semantic icons.<key> interface is shared, so most icon references port 1:1 and the map is only for hardcoded literals.
Switch the porter's Claude auth from anthropic_api_key to claude_code_oauth_token (Pro/Max subscription, via `claude setup-token`), and add a max_turns workflow input so trial runs can be capped lower.
This was referenced Jun 9, 2026
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.
Summary
Phase 1 of the nuxt/ui → b24ui sync pipeline (see
.sync/PLAN.md). Adds the manual porter workflow plus the maps it relies on. Nothing runs automatically — the workflow isworkflow_dispatchonly and does not advance the ledger cursor.What's included
.github/workflows/sync-porter.yml— ports ONE upstream commit:^[0-9a-f]{40}$).sync/nuxt-<short>offmain(deletes any abandoned branch first).anthropics/claude-code-action@v1) — it reads.sync/PORTING.md(rules) and the untrusted diff file, and reproduces the change undersrc/only. Tools limited toRead,Edit,Write,Grep,Glob(no Bash → it can't run git/secrets).src//test//.sync/log/changed.v-html/innerHTML→security-review-requiredlabel..sync/log/<sha>.mdinstead.ci.ymlorder:dev:prepare → lint → typecheck → test run -u → test run → build.Upstream: nuxt/ui@<sha>trailer) and open a PR labellednuxt-syncwith an<!-- upstream-sha -->footer.Maps (now grounded, not stubs):
icon-map.json— 33 literali-lucide-*→b24-iconsentries, verified againstsrc/runtime/dictionary/icons.ts.color-map.json— nuxt tokens →air-*, verified againstsrc/theme/*.ts.PORTING.md— documents the key insight: b24ui shares nuxt/ui's semantic icon keys (icons.chevronDown, …), so most icon references port 1:1; the map is only the fallback for hardcoded literals.Before this can actually run (blockers)
ANTHROPIC_API_KEYsecret to the repo.PORTING.mdfrom the results. The workflow is intentionally experimental until then.permissions:).Out of scope
https://claude.ai/code/session_01Qz7EXMncvEGiCj4WbmYgJo
Generated by Claude Code