Skip to content

feat(core): add browser-safe contracts entry - #133

Merged
k2kirov merged 1 commit into
mainfrom
feat/core-contracts-entry
Oct 12, 2026
Merged

k2kirov merged 1 commit into
mainfrom
feat/core-contracts-entry

Conversation

@k2kirov

@k2kirov k2kirov commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Browser consumers currently load the Node scanner when they import report values from core. Add @forkpoint/agent-lighthouse-core/contracts for report types, enums, category labels, and score-tier helpers without runtime dependencies. Preserve existing root exports and share runtime objects between both entry points.

Use the entry in the badge generator and report viewer. Keep uploaded values untrusted, check current report field names against keyof ScanReport, and preserve legacy viewer aliases. Correct the SDK page-type list for v7.

Validation: full build, tests, typecheck, lint, dossier linkage, evidence requirements, audit map, enum constants, retired names, and published package types. Consumer tests cover ESM and CommonJS without workspace sources; a browser bundle test excludes scanner dependencies. Includes a minor changeset.

Separate existing-code follow-ups remain in #132.

@k2kirov
k2kirov merged commit 676a9c3 into main Oct 12, 2026
1 check passed
@k2kirov
k2kirov deleted the feat/core-contracts-entry branch October 12, 2026 08:21
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