Optional ReadonlybridgeThe live seam a "bridged" request runs against: the host's handler and its durable store.
Required exactly when the request says "bridged"; see WorkerRunRequest.handler.
ReadonlyentryThe module the thread starts at: engine/worker-entry, in whatever build the caller is running.
A file: URL or an absolute path.
Optional ReadonlyonCalled for each log the run emits, as it emits it.
THE WORKER ENTRY IS AN INPUT, not something this module derives.
A thread's entry is a FILE ON DISK, and which file that is depends on how the caller was built and installed - not on anything this module can see about itself. From the compiled package it is
new URL("./worker-entry.js", import.meta.url)resolved in the compiled module; a suite that wants to grade the SHIPPED artifact names that artifact; a bundler that rewrote the layout names what it produced. So the composition root passes it, and this module makes no guess.It was derived here, and the derivation was measurably wrong. Running from TypeScript sources, node 22 does not apply the parent's ESM loader hooks to a worker thread: a
.jsentry is ERR_MODULE_NOT_FOUND, and the.tsentry gets exactly one step further before dying on its own../journal.js. Inherited execArgv already carries tsx's--importinto the thread and an explicitexecArgv: ["--import", "tsx"]adds it again; neither changes the answer. No spelling this module could pick makes a.tstree runnable in a thread on that node - the answer is to run the BUILD, which is a fact about the caller. Making the entry an argument is what lets the caller say so, and it is why nothing here is version-conditional.