@waffle-os/runtime 0.0.145 → 0.0.146
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 +32 -0
- package/browser/command-input.ts +86 -0
- package/browser/command-owner.ts +5 -0
- package/browser/display/guest.ts +2 -18
- package/browser/display/surface-info.ts +19 -0
- package/browser/operations/cells.ts +90 -0
- package/browser/operations/guest.ts +94 -0
- package/browser/operations/owner.ts +201 -0
- package/browser/operations/protocol.ts +16 -0
- package/browser/operations/types.ts +41 -0
- package/browser/operations/writer.ts +106 -0
- package/browser/preview1-worker.ts +8 -1
- package/browser/process-broker.ts +372 -22
- package/browser/process-start.ts +5 -2
- package/browser/run-command.ts +388 -0
- package/browser/shared-fs.ts +20 -3
- package/browser/worker-memory.ts +6 -0
- package/browser/worker.ts +121 -27
- package/dist/browser/command-input.js +82 -0
- package/dist/browser/command-owner.js +2 -0
- package/dist/browser/display/guest.js +2 -18
- package/dist/browser/display/surface-info.js +18 -0
- package/dist/browser/operations/cells.js +80 -0
- package/dist/browser/operations/guest.js +67 -0
- package/dist/browser/operations/owner.js +175 -0
- package/dist/browser/operations/protocol.js +0 -0
- package/dist/browser/operations/types.js +0 -0
- package/dist/browser/operations/writer.js +98 -0
- package/dist/browser/preview1-worker.js +4 -0
- package/dist/browser/process-broker.js +317 -18
- package/dist/browser/process-start.js +3 -0
- package/dist/browser/run-command.js +377 -0
- package/dist/browser/shared-fs.js +8 -3
- package/dist/browser/worker-memory.js +10 -1
- package/dist/browser/worker.js +83 -28
- package/dist/fs/client.js +81 -18
- package/dist/fs/resolve-observation.js +11 -0
- package/dist/fs/service.js +51 -4
- package/dist/proc/command-transfer.js +72 -0
- package/dist/proc/directory.js +9 -1
- package/dist/proc/intrinsics/host.js +4 -1
- package/dist/proc/intrinsics.js +1 -0
- package/dist/proc/pipes.js +37 -4
- package/dist/proc/registry.js +25 -14
- package/dist/proc/start-command.js +101 -0
- package/dist/proc/supervisor.js +34 -10
- package/dist/proc/worker-broker.js +86 -31
- package/dist/proc/worker-client.js +67 -31
- package/dist/programs/collection.js +2 -0
- package/dist/runtime.js +14 -1
- package/dist/tooling/program/program-transformer.json +1 -1
- package/fs/client.ts +113 -17
- package/fs/resolve-observation.ts +25 -0
- package/fs/service.ts +63 -4
- package/index.ts +5 -0
- package/package.json +9 -1
- package/proc/command-transfer.ts +96 -0
- package/proc/directory.ts +10 -1
- package/proc/intrinsics/host.ts +5 -1
- package/proc/intrinsics.ts +1 -0
- package/proc/pipes.ts +39 -6
- package/proc/registry.ts +52 -17
- package/proc/start-command.ts +157 -0
- package/proc/supervisor.ts +34 -9
- package/proc/worker-broker.ts +100 -38
- package/proc/worker-client.ts +84 -31
- package/programs/collection.ts +4 -0
- package/runtime.ts +44 -3
- package/scripts/test-browser.ts +49 -29
- package/tests/browser-controls-discovery.test.ts +2 -10
- package/tests/browser-matrix.test.ts +105 -59
- package/tests/browser-navigation.test.ts +1 -1
- package/tests/browser-runner-lifecycle.ts +23 -13
- package/tests/command-input.test.ts +40 -0
- package/tests/command-scope.test.ts +422 -0
- package/tests/filesystem-client-intrinsics.test.ts +2 -0
- package/tests/filesystem-refcount.test.ts +2 -0
- package/tests/filesystem-resolve-observation.test.ts +185 -0
- package/tests/fixtures/command-bounded-admission.ts +31 -0
- package/tests/fixtures/command-disposal.ts +47 -0
- package/tests/fixtures/command-guests.ts +123 -0
- package/tests/fixtures/operation-fs-worker.ts +114 -0
- package/tests/fixtures/operation-observer-worker.ts +41 -0
- package/tests/fixtures/operation-page.ts +522 -0
- package/tests/fixtures/process-start-worker.ts +32 -0
- package/tests/link-browser-runner.ts +95 -22
- package/tests/node-exports.test.ts +29 -0
- package/tests/operation-diagnostics-browser.ts +192 -0
- package/tests/operation-diagnostics.test.ts +291 -0
- package/tests/page-runner/browser-controls-process-fixture.ts +24 -0
- package/tests/page-runner/browser-controls-runner.test.ts +20 -0
- package/tests/page-runner/browser-controls-runner.ts +1 -0
- package/tests/page-runner/browser-controls-suite.ts +20 -3
- package/tests/page-runner/control-run.ts +9 -1
- package/tests/page-runner/driver.ts +2 -0
- package/tests/page-runner/playwright-driver.ts +1 -1
- package/tests/page-runner/suite-host.ts +26 -1
- package/tests/page-runner/suite-startup.test.ts +39 -0
- package/tests/page-runner/threads-runtime-browser.test.ts +4 -6
- package/tests/page-runner/threads-runtime-suite.test.ts +14 -5
- package/tests/page-runner/worker-capability-controls.ts +174 -15
- package/tests/pipe-reader-reuse-races.test.ts +44 -0
- package/tests/process-start-browser-runner.ts +12 -4
- package/tests/process-start-browser.ts +66 -5
- package/tests/program-build-tools.test.ts +1 -1
- package/tests/runtime-facade.test.ts +5 -0
- package/tests/start-command.test.ts +109 -0
- package/tests/threads-guest-fixture.ts +1 -1
- package/tests/threads-guest-module.ts +6 -3
- package/tests/threads-guest.test.ts +25 -0
- package/tests/threads-runtime-browser-runner.ts +36 -13
- package/tests/threads-runtime-browser.ts +231 -92
- package/tests/threads-runtime-cases.ts +18 -1
- package/tests/threads-runtime-cleanup.ts +5 -1
- package/tests/threads-runtime-fd-browser.ts +247 -0
- package/tests/threads-runtime-fd-control.ts +3 -385
- package/tests/threads-runtime-fd-descriptors.test.ts +15 -13
- package/tests/threads-runtime-fd-module.ts +13 -2
- package/tests/threads-runtime-fd-service.ts +23 -2
- package/tests/threads-runtime-growth-worker.ts +61 -0
- package/tests/threads-runtime-host.ts +17 -4
- package/tests/threads-runtime-modules.ts +23 -5
- package/tests/threads-runtime-regression-controls.ts +386 -0
- package/tests/threads-runtime-regression-modules.ts +242 -0
- package/tests/threads-runtime-service-barrier.ts +8 -1
- package/tests/webkit-diagnostics.ts +125 -0
- package/tests/webkit-error-output.test.ts +118 -0
- package/tests/worker-memory-bootstrap.test.ts +19 -1
- package/tests/worker-memory-broker.test.ts +16 -8
- package/tooling/ci-paths.test.ts +329 -61
- package/tooling/private-authority.ts +14 -0
- package/tooling/program/program-transformer.json +1 -1
- package/tooling/tarball-smoke.ts +3 -1
|
@@ -50,6 +50,11 @@ const trustedModules: Readonly<Record<string, string>> = {
|
|
|
50
50
|
"browser/gpu/handles.ts": "Dedicated native GPU object table.",
|
|
51
51
|
"browser/gpu/lowering.ts": "Dedicated native descriptor lowering.",
|
|
52
52
|
"browser/gpu/codec.ts": "Service-only schema decoder and encoder.",
|
|
53
|
+
"browser/command-owner.ts":
|
|
54
|
+
"Page-only mapping from borrowed process service to its command owner.",
|
|
55
|
+
"proc/start-command.ts": "Page-only lazy installed command entry.",
|
|
56
|
+
"browser/run-command.ts": "Page-only command root and I/O ownership.",
|
|
57
|
+
"browser/command-input.ts": "Page-only stream and stdin relay consumer.",
|
|
53
58
|
"proc/command.ts": "Trusted page-command data contract, not imported by the guest bootstrap.",
|
|
54
59
|
"proc/command-runner.ts": "Page-only trusted command execution and physical task ownership.",
|
|
55
60
|
"proc/command-stdio.ts": "Page-only asynchronous descriptor I/O for trusted host callbacks.",
|
|
@@ -151,8 +156,12 @@ export const payloadExceptions: readonly PayloadException[] = [
|
|
|
151
156
|
|
|
152
157
|
const payloadReturnScopes = new Set(["proc/abi.ts:ProcessABI.span", "proc/abi.ts:ProcessABI.view"]);
|
|
153
158
|
export const enforcedModules = [
|
|
159
|
+
"browser/operations/cells.ts",
|
|
160
|
+
"browser/operations/guest.ts",
|
|
161
|
+
"browser/operations/writer.ts",
|
|
154
162
|
"browser/display/protocol.ts",
|
|
155
163
|
"browser/display/guest.ts",
|
|
164
|
+
"browser/display/surface-info.ts",
|
|
156
165
|
"browser/gpu/guest.ts",
|
|
157
166
|
"browser/gpu/ring.ts",
|
|
158
167
|
"browser/gpu/payload.ts",
|
|
@@ -203,6 +212,7 @@ export const enforcedModules = [
|
|
|
203
212
|
"proc/wait-status.ts",
|
|
204
213
|
"proc/worker-access.ts",
|
|
205
214
|
"proc/worker-client.ts",
|
|
215
|
+
"proc/command-transfer.ts",
|
|
206
216
|
"proc/worker-pipes.ts",
|
|
207
217
|
];
|
|
208
218
|
|
|
@@ -282,6 +292,10 @@ const authority = new Set([
|
|
|
282
292
|
"FilesystemReservation",
|
|
283
293
|
"FilesystemCompletion",
|
|
284
294
|
"FilesystemClient",
|
|
295
|
+
"GuestOperationBinding",
|
|
296
|
+
"OperationBinding",
|
|
297
|
+
"OperationCells",
|
|
298
|
+
"OperationWriter",
|
|
285
299
|
"FilesystemSection",
|
|
286
300
|
"SharedFilesystemState",
|
|
287
301
|
"TerminalIdentity",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commit":"
|
|
1
|
+
{"commit":"3230c056cde1ff65b3392c39ba04ba8515fa7a10","buildToolsSha256":"ff483dc57811fa0752d84f76fcbea3e384c3a4cd2a63c6fcd9849fe51df0c9a2","optimizerSourceSha256":"34c4a040f3cf639f039823880822c6541c384c9b4eaa116d27dda8d9cb5c9f9e"}
|
package/tooling/tarball-smoke.ts
CHANGED
|
@@ -118,6 +118,8 @@ async function run(): Promise<void> {
|
|
|
118
118
|
}
|
|
119
119
|
const nodeScript = `
|
|
120
120
|
for (const specifier of ${JSON.stringify(nodeSpecifiers)}) await import(specifier);
|
|
121
|
+
const { startCommand } = await import("@waffle-os/runtime/command");
|
|
122
|
+
if (typeof startCommand !== "function") throw new Error("packed command entry failed");
|
|
121
123
|
const link = await import("@waffle-os/runtime/link");
|
|
122
124
|
if (link.adoptLinkPlan !== link.PreparedLinkPlan.adopt || link.prepareLinkPlan !== link.PreparedLinkPlan.prepare)
|
|
123
125
|
throw new Error("packed link exports changed");
|
|
@@ -152,7 +154,7 @@ async function run(): Promise<void> {
|
|
|
152
154
|
);
|
|
153
155
|
await writeFile(
|
|
154
156
|
join(consumerDirectory, "src/main.ts"),
|
|
155
|
-
'import { bootstrap } from "@waffle-os/runtime/browser/worker";\nimport { adoptLinkPlan, prepareLinkPlan } from "@waffle-os/runtime/link";\nimport searchUrl from "@waffle-os/runtime/search/search-worker?worker&url";\nimport shardUrl from "@waffle-os/runtime/search/shard-worker?worker&url";\nexport { bootstrap, adoptLinkPlan, prepareLinkPlan, searchUrl, shardUrl };\n',
|
|
157
|
+
'import { bootstrap } from "@waffle-os/runtime/browser/worker";\nimport { startCommand } from "@waffle-os/runtime/command";\nimport { adoptLinkPlan, prepareLinkPlan } from "@waffle-os/runtime/link";\nimport searchUrl from "@waffle-os/runtime/search/search-worker?worker&url";\nimport shardUrl from "@waffle-os/runtime/search/shard-worker?worker&url";\nexport { bootstrap, startCommand, adoptLinkPlan, prepareLinkPlan, searchUrl, shardUrl };\n',
|
|
156
158
|
);
|
|
157
159
|
execFileSync("bun", ["run", "vite", "build", "--outDir", join(scratch, "vite-dist")], {
|
|
158
160
|
cwd: consumerDirectory,
|