feat(web): continue source-backed implementation waves
This commit is contained in:
8
web/protocol/resource-commands.ts
Normal file
8
web/protocol/resource-commands.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { WebEngineRequest } from "./web-engine";
|
||||
|
||||
/** Resource-facing command constructors; asset bytes remain owned by the worker/storage path. */
|
||||
export const resourceCommands = Object.freeze({
|
||||
requestAsset(assetId: string): Extract<WebEngineRequest["command"], { type: "requestAsset" }> {
|
||||
return { type: "requestAsset", assetId };
|
||||
},
|
||||
} as const);
|
||||
Reference in New Issue
Block a user