refactor: extract canvas a2ui handler

This commit is contained in:
Peter Steinberger
2025-12-20 16:45:16 +01:00
parent f03d2d1b33
commit a1b34ef0ef
3 changed files with 208 additions and 125 deletions

View File

@@ -4,7 +4,8 @@ import path from "node:path";
import { describe, expect, it } from "vitest";
import { WebSocket } from "ws";
import { defaultRuntime } from "../runtime.js";
import { injectCanvasLiveReload, startCanvasHost } from "./server.js";
import { startCanvasHost } from "./server.js";
import { injectCanvasLiveReload } from "./a2ui.js";
describe("canvas host", () => {
it("injects live reload script", () => {