chore: add prim workspace devDep + expose xport.schema.json export#191
Merged
Conversation
ultrathink commit 1cabb284a swaps the wasm boundary to read JS objects via js_sys handles (no serde_json round-trip) and drops the full regex crate in favor of regex-lite for AQS under wasm. Pull the rebuilt artifact in. Functionality unchanged — 62/62 wasm parity tests pass on the new binary, including 8 new boundary edge cases (undefined/null options, sparse arrays, countNodes shape, null start/end on findNodeAt).
…rom template@aeac8c1)
…te literal detection Sync from template@000943d. Hook + gate now flag template-literal build paths; allowlist replaces ±2 line tolerance with exact-line OR snippet_hash match. New --show-hashes flag prints SHA-256 prefix for allowlist entries that survive reformatting.
…ents.mts Sync from socket-repo-template@bb21ab5. Mantra: 1 path, 1 reference. Hook and gate now both import STAGE_SEGMENTS, BUILD_ROOT_SEGMENTS, MODE_SEGMENTS, and KNOWN_SIBLING_PACKAGES from a single canonical .claude/hooks/path-guard/segments.mts so they can no longer drift on what counts as a build-output path.
Pre-existing format drift in 7 files — collapsed multi-line array/arg literals where oxfmt would have inlined them. No semantic changes. Surfaced by the pre-commit hook running `oxfmt --check .` against the whole repo.
Two related package.json bumps:
* `prim: workspace:*` in devDependencies — makes `pnpm exec prim`
work alongside the existing `pnpm prim` script. Without the
devDep, pnpm doesn't symlink tools/prim's bin into
node_modules/.bin so the `exec` form failed with "Command not
found". `pnpm prim` (npm-script form) was unaffected.
* `./xport.schema.json` added to the package's exports map so
consumers can `import schema from '@socketsecurity/lib/xport.schema.json'`.
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
Two related
package.jsonbumps:prim: workspace:*indevDependencies— makespnpm exec primwork alongside the existingpnpm primscript. Without the devDep, pnpm doesn't symlinktools/prim/'s bin intonode_modules/.binso theexecform failed withCommand not found. Thepnpm primnpm-script form was unaffected../xport.schema.jsonadded toexports— consumers can nowimport schema from '@socketsecurity/lib/xport.schema.json'from the published package.Test plan
pnpm install— lockfile updates cleanlypnpm exec prim --help— resolves the binary