Files
pbakaus_impeccable/crates/live/assets
Paul Bakaus afc0596903 Merge main and preserve stripe-child coverage
AI-assisted conflict resolution performed by Codex at maintainer pbakaus request. Preserve both stripe-child and placeholder checks/tests; rebuild the browser bundle. Reviewed aggregate oracle deltas: only main placeholder cases added to the prior PR results, no findings removed. Rust workspace, source-first build, full Bun/Node/oracle/plugin suite, and real Chrome stripe fixture passed.
2026-09-14 18:22:10 -07:00
..

Live browser assets

Two generated files, both tracked, both rewritten by cargo xtask bundle. Do not hand-edit either one.

detect-antipatterns-browser.js is the in-page detector bundle: the rule core (crates/core) compiled to WebAssembly by crates/wasm, concatenated with the page JS in browser-bundle/ and the module embedded as base64. crates/live/src/browser_assets.rs embeds it with include_str! and the live server hands it to the browser as /detect.js, so the binary has to carry it.

antipatterns.json is the rule registry (crates/foundation/src/registry.rs) as [{ id, name, category, description }], the same slice cargo xtask bundle vendors into the extension's extension/detector/. It is tracked because extension/detector/ is not: a consumer working from a source checkout or a repo tarball (impeccable.style counts and renders the rules from it) has no other way to read the registry without a Rust toolchain.

cargo xtask bundle          # rewrites both (and extension/detector/)
cargo xtask bundle --check  # fails when either is stale

The other browser scripts the live server serves (live-browser*.js, modern-screenshot.umd.js) are not copied here: they are embedded straight from skill/scripts/, the one copy the build also ships to every provider.