@seanhogg/builderforce-webcontainers 2026.10.2 → 2026.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/assets.d.ts +2 -0
- package/dist/assets.js +4 -2
- package/dist/check/cachedFetch.d.ts +3 -0
- package/dist/check/cachedFetch.d.ts.map +1 -0
- package/dist/check/cachedFetch.js +39 -0
- package/dist/check/cachedFetch.js.map +1 -0
- package/dist/check/index.d.ts +41 -0
- package/dist/check/index.d.ts.map +1 -0
- package/dist/check/index.js +74 -0
- package/dist/check/index.js.map +1 -0
- package/dist/check/protocol.d.ts +29 -0
- package/dist/check/protocol.d.ts.map +1 -0
- package/dist/check/protocol.js +13 -0
- package/dist/check/protocol.js.map +1 -0
- package/dist/check/worker.js +20 -0
- package/dist/componentCompilers.d.ts +21 -0
- package/dist/componentCompilers.d.ts.map +1 -0
- package/dist/componentCompilers.js +35 -0
- package/dist/componentCompilers.js.map +1 -0
- package/dist/esbuildWasm.d.ts +10 -4
- package/dist/esbuildWasm.d.ts.map +1 -1
- package/dist/esbuildWasm.js +14 -6
- package/dist/esbuildWasm.js.map +1 -1
- package/dist/host.d.ts +39 -3
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +22 -7
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/node/index.d.ts +42 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +45 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/processHost.d.ts +65 -0
- package/dist/node/processHost.d.ts.map +1 -0
- package/dist/node/processHost.js +269 -0
- package/dist/node/processHost.js.map +1 -0
- package/dist/node/protocol.d.ts +139 -0
- package/dist/node/protocol.d.ts.map +1 -0
- package/dist/node/protocol.js +5 -0
- package/dist/node/protocol.js.map +1 -0
- package/dist/node/worker.js +197 -0
- package/dist/node/workerProcess.d.ts +22 -0
- package/dist/node/workerProcess.d.ts.map +1 -0
- package/dist/node/workerProcess.js +210 -0
- package/dist/node/workerProcess.js.map +1 -0
- package/dist/packageCache.d.ts +12 -0
- package/dist/packageCache.d.ts.map +1 -0
- package/dist/packageCache.js +28 -0
- package/dist/packageCache.js.map +1 -0
- package/dist/process-worker.js +197 -0
- package/dist/protocol.d.ts +9 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +7 -0
- package/dist/protocol.js.map +1 -1
- package/dist/relay.html +1 -1
- package/dist/relayWorker.d.ts +19 -0
- package/dist/relayWorker.d.ts.map +1 -0
- package/dist/relayWorker.js +39 -0
- package/dist/relayWorker.js.map +1 -0
- package/dist/sw.js +1 -1
- package/dist/swRouter.d.ts +9 -1
- package/dist/swRouter.d.ts.map +1 -1
- package/dist/swRouter.js +26 -4
- package/dist/swRouter.js.map +1 -1
- package/dist/transport.d.ts +7 -0
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +7 -1
- package/dist/transport.js.map +1 -1
- package/package.json +12 -3
- package/src/check/cachedFetch.ts +47 -0
- package/src/check/index.ts +98 -0
- package/src/check/protocol.ts +34 -0
- package/src/check/worker.ts +49 -0
- package/src/componentCompilers.ts +66 -0
- package/src/esbuildWasm.ts +19 -7
- package/src/host.ts +64 -9
- package/src/index.ts +17 -4
- package/src/node/index.ts +69 -0
- package/src/node/processHost.ts +307 -0
- package/src/node/protocol.ts +63 -0
- package/src/node/worker.ts +46 -0
- package/src/node/workerProcess.ts +219 -0
- package/src/packageCache.ts +28 -0
- package/src/protocol.ts +13 -0
- package/src/relay.ts +5 -1
- package/src/relayWorker.ts +53 -0
- package/src/sw.ts +25 -6
- package/src/swRouter.ts +33 -4
- package/src/transport.ts +14 -0
package/README.md
CHANGED
|
@@ -22,9 +22,14 @@ else showFallback(runtime.profile().reason);
|
|
|
22
22
|
|
|
23
23
|
To run untrusted code (AI-written, arbitrary packages), isolate the preview on its
|
|
24
24
|
own origin with `bootPreviewRuntime({ relayUrl })`. That origin serves
|
|
25
|
-
`relay.html` and `
|
|
25
|
+
`relay.html`, `sw.js` and `process-worker.js` (strings in `@seanhogg/builderforce-webcontainers/assets`)
|
|
26
26
|
with `Content-Security-Policy: frame-ancestors` limited to your app. See the
|
|
27
27
|
[root README](../../README.md#isolating-the-preview-relay-mode).
|
|
28
28
|
|
|
29
|
+
`runtime.build({ base })` returns a deployable static site (`{ files: [{ path, data }] }`),
|
|
30
|
+
and `createChecker()` from `@seanhogg/builderforce-webcontainers/check` type-checks
|
|
31
|
+
the project in a Web Worker. `.vue` and `.svelte` files need no setup. See the
|
|
32
|
+
[root README](../../README.md#building-for-deployment).
|
|
33
|
+
|
|
29
34
|
The package re-exports everything from
|
|
30
35
|
[`@seanhogg/builderforce-webcontainers-core`](../core).
|
package/dist/assets.d.ts
CHANGED
|
@@ -2,3 +2,5 @@
|
|
|
2
2
|
export declare const serviceWorkerSource: string;
|
|
3
3
|
/** The cross-origin relay page — serve as `<scope>/relay.html`, text/html, with frame-ancestors set. */
|
|
4
4
|
export declare const relayHtml: string;
|
|
5
|
+
/** The process worker — serve as `<scope>/process-worker.js`, text/javascript, beside relay.html. */
|
|
6
|
+
export declare const processWorkerSource: string;
|