Skip to content

Build against scanner-core 0.7.0 - #11

Merged
tiltom merged 1 commit into
mainfrom
chore/scanner-core-0.7
Nov 18, 2026
Merged

tiltom merged 1 commit into
mainfrom
chore/scanner-core-0.7

Conversation

@tiltom

@tiltom tiltom commented Nov 18, 2026

Copy link
Copy Markdown
Member

Moves the bundled core from ^0.6.0 to ^0.7.0 and refreshes the lock.

0.7 is the floor for the file types the 2026.11.18.001 rules target — container builds, devcontainers, compose files, nested READMEs and agent command/skill markdown — and for the .dockerfile.sh / .compose.yml rule scopes. The core is bundled at build time, so a CLI built against 0.6.x would ship without any of it: the rules would load and then never match.

It also carries the per-scan file-cap change. Sources are now read in priority order — build and install scripts, then ordinary source, then tests and samples, then generated or vendored artifacts — so a capped scan spends its 200 requests on the code that runs on a clone rather than on test files every rule skips.

Verification

Against the published @flagrix/scanner-core@0.7.0 tarball, the full CI sequence locally:

  • npm ci — resolves cleanly with the refreshed lock
  • npm run typecheck — clean
  • npm test — 59 tests pass
  • npm run build + node dist/cli.js --version && --help — the smoke test CI runs

Bundle grows by about 1 KB (279.79 → 280.62 KB).

Note on shipping

Merging this does not reach npm users. The core is bundled, so flagrix@0.5.1 keeps shipping 0.6.0 scanning until a release goes out: version bump, then a v* tag to trigger release.yml (npm publish with provenance, plus the MCP registry publish).

0.7 is the floor for the file types the 2026.11.18.001 rules target —
container builds, devcontainers, compose files, nested READMEs and agent
command/skill markdown — and for the `.dockerfile.sh` / `.compose.yml` rule
scopes. The core is bundled at build time, so a CLI built against 0.6.x would
ship without them.

Verified against the published tarball: npm ci, typecheck, 59 tests, build
and the built-CLI smoke test all pass. The bundle grows by about 1 KB.
@tiltom tiltom self-assigned this Nov 18, 2026
@tiltom
tiltom merged commit 80d4c1f into main Nov 18, 2026
3 checks passed
@tiltom
tiltom deleted the chore/scanner-core-0.7 branch November 18, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant