Repository navigation
Stage shadcn registry items and Agent Skills as data; opt-in materialization (#844) - #878
Merged
Merged
Conversation
#844 operation 2. `urlcode artifacts stage <source> [--into DIR] [--json]` and the read-only MCP tool `stage_source_assets` share one core function that reads a local shadcn registry item or Agent Skill directory offline and reports every file it would write (target, sha256, size, media type, code/data/docs/other, review flag, create/exists against --into), its npm and registry dependencies (listed with the site's declared range, never installed, resolved or fetched), shadcn style/config deltas and skill frontmatter as data, and diagnostics for path escapes, absolute and hidden targets, symlinks, limits, remote URLs and unknown fields. All source content is labelled untrusted, and the report states that staging does not make code inert. `--materialize --into DIR` is the separate opt-in: refused on any error, an existing target, a symlinked or non-directory segment, overlap with the source, or the site's app/ without --allow-app; writes exactly the staged bytes exclusively without an execute bit, all or nothing with rollback, and installs nothing. Docs: EXTENSIONS "Staging source assets", RIM-SOURCE-STAGE-001, TOOLING (31 read tools), AI-AUTHORING and the authoring skill, llms-full.txt. Core package budget raised with a measured comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 00:18
This was referenced Sep 29, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…I and staging; re-measure core budget Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
Closed
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.
Delivers #844 operation 2: "Stage source assets from an existing component/skill format as data with a complete file/dependency diff … Materialization is a separate opt-in."
Staging
urlcode artifacts stage <source> [--into DIR] [--json]and the read-only MCP toolstage_source_assetsshare one core function (packages/core/src/source-stage.ts). The MCP tool is confined to the site and never writes.registry-item.json, with inlinecontentorpathfiles beside the item.target,~/and@components/style placeholders map to shadcn's default folders.SKILL.md, whose frontmatter is checked against the spec.SKILL.mdis labelled agent instructions.createorexistsfor each target when--intois given.npm install --ignore-scriptscommands the operator could run. Nothing is installed..., absolute targets, hidden target segments, symlinks, limits, URLs used as file paths, duplicate targets, invalid fields. Any error exits 1.extends, andallowed-tools, which is reported and never granted.Materialization (explicit opt-in)
--materialize --into DIR [--allow-app]:app/without--allow-app.Evidence (macOS, Node 26)
npm run verifyandnpm run test:packagepass: root 1140,test:addons6/6,test:proof12/12.test/source-stage.test.ts(10 tests):allowed-tools, and a malicious item;dist/source-stage.jsis about 40 KB.Limits
#!line, the execute bit orscripts/, not the file's content.components.jsonaliases are not applied, and registry dependencies are not resolved.🤖 Generated with Claude Code