Skip to content

Add raw HTML runtime dependency parity report#115

Merged
chubes4 merged 1 commit into
trunkfrom
cook-runtime-dependency-parity
Jun 24, 2026
Merged

Add raw HTML runtime dependency parity report#115
chubes4 merged 1 commit into
trunkfrom
cook-runtime-dependency-parity

Conversation

@chubes4

@chubes4 chubes4 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an artifact-level source_reports.runtime_dependency_parity report for simple JavaScript DOM target dependencies.
  • Detect getElementById, simple querySelector/querySelectorAll id/class selectors, simple attached events, and canvas 2d API usage for canvas targets.
  • Compare those references against generated block markup and report missing DOM targets, with telemetry-like scripts downgraded to info.
  • Preserve safe source ids as core block anchors so converted core blocks can retain runtime DOM targets where possible.

Tests

  • composer test:canonical
  • composer test
  • Manual liquidbonsai fixture compile from /Users/chubes/Downloads/raw-html/saveweb2zip-com-liquidbonsai-com confirmed first-party #canvas warning and Netlify RUM info finding.

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Implementing the runtime dependency parity report, contract coverage, local verification, and PR drafting.

@chubes4 chubes4 merged commit c6be681 into trunk Jun 24, 2026
1 check passed
@chubes4 chubes4 deleted the cook-runtime-dependency-parity branch June 24, 2026 17:26
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