8 lines
316 B
TypeScript
8 lines
316 B
TypeScript
import { createRegistry } from "./gen/qx.js";
|
|||
|
|
import { handlers } from "./portable.js";
|
||
|
|
// The workspace entry protocol owns stable birth identity and idempotency.
|
||
|
|
export const registry = createRegistry({
|
||
|
|
...handlers,
|
||
|
|
createRoot: ({ ports }) => ports.canvas.create({ name: "Workspace" }, { key: "canvas" }),
|
||
|
|
});
|