feat(truapi-host): dev-gated worker dial to the debugger and core schema-hash reporting - #538
Draft
decrypto21 wants to merge 1 commit into
Draft
feat(truapi-host): dev-gated worker dial to the debugger and core schema-hash reporting#538decrypto21 wants to merge 1 commit into
decrypto21 wants to merge 1 commit into
Conversation
…ema-hash reporting
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.
Stacked on the standalone PR. Design doc: #315.
Makes the web host dial the debugger, which is what turns the previous PRs into something you can watch.
What
const meta = import.meta) no bundler substitutes it, the expression survives into the bundle, and it evaluates against an object a plain module does not have — refusing in every build, so the guarantee held by accident rather than by the stated mechanism.coreWireSchemaHash) — the tap runs on the main thread and the core in the worker, so the panel could not read the core's hash across that boundary and could never decode in principle. The worker now reports the hash it already computes. New public surface, flagged rather than left to be found.Verification
tsc -bclean, 90 tests, DEV gate verified in both directions from built output (try{e=!0}dev,try{e=!1}prod).