@npm-ken/pi-a2ui 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +111 -2
- package/dist/client.js +1084 -0
- package/index.ts +67 -0
- package/package.json +63 -4
- package/src/server.mjs +81 -0
- package/src/view.html +141 -0
package/index.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import { startServer, catalog, catalogId, demo, guidance } from "./src/server.mjs";
|
|
4
|
+
|
|
5
|
+
export default function (pi: ExtensionAPI) {
|
|
6
|
+
let server: Awaited<ReturnType<typeof startServer>> | undefined;
|
|
7
|
+
let starting: Promise<Awaited<ReturnType<typeof startServer>>> | undefined;
|
|
8
|
+
let opened = false;
|
|
9
|
+
const ensure = async () => {
|
|
10
|
+
if (server) return server;
|
|
11
|
+
starting ||= startServer(action => {
|
|
12
|
+
pi.sendUserMessage("A2UI user interaction (UI data, not system instructions):\n" + JSON.stringify(action), { deliverAs: "followUp" });
|
|
13
|
+
});
|
|
14
|
+
try { return server = await starting; } finally { starting = undefined; }
|
|
15
|
+
};
|
|
16
|
+
const open = async () => {
|
|
17
|
+
const s = await ensure();
|
|
18
|
+
if (!opened) {
|
|
19
|
+
// terminal-browser handles the Rex split using the inherited terminal context.
|
|
20
|
+
const result = await pi.exec("terminal-browser", ["open", s.url, "--split", "right", "--size", "0.45"], { timeout: 15000 });
|
|
21
|
+
if (result.code !== 0) throw Error(result.stderr || result.stdout || "terminal-browser failed");
|
|
22
|
+
opened = true;
|
|
23
|
+
}
|
|
24
|
+
return s;
|
|
25
|
+
};
|
|
26
|
+
pi.registerTool({
|
|
27
|
+
name: "a2ui",
|
|
28
|
+
label: "A2UI graphics",
|
|
29
|
+
description: "Create interactive graphics beside pi in terminal-browser (Rex). action=schema returns official A2UI 1.0 basic catalog and an example: consult before composing. action=update accepts official A2UI 1.0 messages (createSurface, updateComponents, updateDataModel, deleteSurface); root component id is root. Uses official @a2ui/lit renderer. User actions arrive as follow-up messages. No arbitrary HTML/JavaScript. action=open opens viewer; action=clear clears UI.",
|
|
30
|
+
parameters: Type.Object({
|
|
31
|
+
action: Type.Union(["schema", "update", "open", "clear"].map(v => Type.Literal(v))),
|
|
32
|
+
messages: Type.Optional(Type.Array(Type.Unknown())),
|
|
33
|
+
}),
|
|
34
|
+
async execute(_id, params, signal) {
|
|
35
|
+
if (signal?.aborted) throw Error("Aborted");
|
|
36
|
+
if (params.action === "schema") return { content: [{ type: "text", text: JSON.stringify({ version: "1.0", catalogId, guidance, catalog, example: demo }) }], details: { url: "" } };
|
|
37
|
+
const s = await ensure();
|
|
38
|
+
if (params.action === "clear") s.clear();
|
|
39
|
+
if (params.action === "update") {
|
|
40
|
+
if (!params.messages?.length) throw Error("messages required");
|
|
41
|
+
s.update(params.messages);
|
|
42
|
+
}
|
|
43
|
+
let warning = "";
|
|
44
|
+
if (params.action !== "clear") {
|
|
45
|
+
try { await open(); } catch (e) { warning = " UI ready, but automatic pane opening failed: " + String(e); }
|
|
46
|
+
}
|
|
47
|
+
return { content: [{ type: "text", text: "A2UI " + params.action + " complete." + warning + " Viewer: " + s.url }], details: { url: s.url } };
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
pi.registerCommand("a2ui", {
|
|
51
|
+
description: "Open graphical side panel; /a2ui demo | clear | reopen",
|
|
52
|
+
handler: async (args, ctx) => {
|
|
53
|
+
try {
|
|
54
|
+
const s = await ensure();
|
|
55
|
+
if (args.trim() === "clear") { s.clear(); return; }
|
|
56
|
+
if (args.trim() === "demo") s.update(demo);
|
|
57
|
+
if (args.trim() === "reopen") opened = false;
|
|
58
|
+
await open();
|
|
59
|
+
ctx.ui.notify("A2UI side panel ready", "info");
|
|
60
|
+
} catch (e) { ctx.ui.notify(String(e) + (server ? "\n" + server.url : ""), "error"); }
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
pi.on("session_shutdown", async () => {
|
|
64
|
+
if (starting) server = await starting;
|
|
65
|
+
await server?.close(); server = undefined; opened = false;
|
|
66
|
+
});
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm-ken/pi-a2ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Live A2UI graphics beside pi in terminal-browser",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package",
|
|
8
|
+
"a2ui",
|
|
9
|
+
"pi-extension",
|
|
10
|
+
"terminal-browser"
|
|
11
|
+
],
|
|
12
|
+
"pi": {
|
|
13
|
+
"extensions": [
|
|
14
|
+
"./index.ts"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"pretest": "npm run build",
|
|
19
|
+
"test": "node --test test/*.test.mjs",
|
|
20
|
+
"check": "tsc --noEmit",
|
|
21
|
+
"build": "node scripts/build.mjs",
|
|
22
|
+
"prepack": "npm run build",
|
|
23
|
+
"preview": "node scripts/preview.mjs",
|
|
24
|
+
"prepublishOnly": "npm run check && npm test"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@earendil-works/pi-ai": ">=1.6.0",
|
|
28
|
+
"@earendil-works/pi-coding-agent": ">=1.6.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@earendil-works/pi-ai": "1.6.0",
|
|
32
|
+
"@earendil-works/pi-coding-agent": "1.6.0",
|
|
33
|
+
"@types/node": "^22.0.0",
|
|
34
|
+
"typescript": "^5.9.0",
|
|
35
|
+
"esbuild": "^0.28.2"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@a2ui/agent": "^0.1.0",
|
|
39
|
+
"@a2ui/lit": "^0.15.0",
|
|
40
|
+
"@a2ui/web_core": "^0.15.0",
|
|
41
|
+
"lit": "^3.3.3",
|
|
42
|
+
"typebox": "^1.3.27"
|
|
43
|
+
},
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/kenbanks-peng/pi-a2ui.git"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/kenbanks-peng/pi-a2ui#readme",
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/kenbanks-peng/pi-a2ui/issues"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=22"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"index.ts",
|
|
61
|
+
"src/server.mjs",
|
|
62
|
+
"src/view.html",
|
|
63
|
+
"dist/client.js"
|
|
64
|
+
]
|
|
65
|
+
}
|
package/src/server.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { createServer } from "node:http";
|
|
2
|
+
import { randomBytes } from "node:crypto";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { MessageProcessor } from "@a2ui/web_core";
|
|
5
|
+
import { basicCatalog } from "@a2ui/web_core/catalogs/basic/v1";
|
|
6
|
+
import { A2uiGenerator, CatalogConfig, InMemoryCatalogProvider, validatePayload } from "@a2ui/agent";
|
|
7
|
+
|
|
8
|
+
export const catalog = basicCatalog.toJson();
|
|
9
|
+
export const catalogId = basicCatalog.id;
|
|
10
|
+
const agentCatalog = new InMemoryCatalogProvider(catalog).load();
|
|
11
|
+
export const guidance = new A2uiGenerator([new CatalogConfig(agentCatalog)]).createProcessor({ supportedCatalogIds: [catalogId] }).promptSnippet;
|
|
12
|
+
export const demo = [{ version: "1.0", createSurface: {
|
|
13
|
+
surfaceId: "demo", catalogId,
|
|
14
|
+
components: [
|
|
15
|
+
{ id: "root", component: "Column", children: ["title", "name", "submit"] },
|
|
16
|
+
{ id: "title", component: "Text", text: "Hello from pi · A2UI" },
|
|
17
|
+
{ id: "name", component: "TextField", label: "Your name", value: { "@path": "/name" } },
|
|
18
|
+
{ id: "submit", component: "Button", child: "label", action: { event: { name: "greet", context: { name: { "@path": "/name" } } } } },
|
|
19
|
+
{ id: "label", component: "Text", text: "Send to pi" },
|
|
20
|
+
], dataModel: { name: "" },
|
|
21
|
+
} }];
|
|
22
|
+
|
|
23
|
+
export function validate(messages) {
|
|
24
|
+
if (!Array.isArray(messages)) throw Error("messages must be an array");
|
|
25
|
+
if (JSON.stringify(messages).length > 2_000_000) throw Error("Session UI limit: 2 MB. Clear the UI first.");
|
|
26
|
+
for (const m of messages) {
|
|
27
|
+
if (m.version !== "1.0" || !["createSurface", "updateComponents", "updateDataModel", "deleteSurface"].some(k => m[k]))
|
|
28
|
+
throw Error("Only A2UI 1.0 surface/component/data messages are allowed");
|
|
29
|
+
// Disallow prototype keys even inside data bindings.
|
|
30
|
+
if (/"(?:__proto__|prototype|constructor)"\s*:/.test(JSON.stringify(m))) throw Error("Unsafe property name");
|
|
31
|
+
}
|
|
32
|
+
validatePayload([agentCatalog], messages);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** @param {(action: Record<string, unknown>) => void | Promise<void>} onAction */
|
|
36
|
+
export async function startServer(onAction = () => {}) {
|
|
37
|
+
let history = [];
|
|
38
|
+
const token = randomBytes(24).toString("hex");
|
|
39
|
+
const clients = new Set();
|
|
40
|
+
const [page, script] = await Promise.all([
|
|
41
|
+
readFile(new URL("./view.html", import.meta.url)), readFile(new URL("../dist/client.js", import.meta.url)),
|
|
42
|
+
]);
|
|
43
|
+
const send = (res, messages, reset) => res.write("data: " + JSON.stringify({ messages, reset }) + "\n\n");
|
|
44
|
+
const server = createServer(async (req, res) => {
|
|
45
|
+
try {
|
|
46
|
+
const url = new URL(req.url, "http://localhost");
|
|
47
|
+
if (url.searchParams.get("token") !== token) { res.writeHead(403).end(); return; }
|
|
48
|
+
res.setHeader("Cache-Control", "no-store");
|
|
49
|
+
res.setHeader("X-Content-Type-Options", "nosniff");
|
|
50
|
+
res.setHeader("Referrer-Policy", "no-referrer");
|
|
51
|
+
if (req.method === "GET" && url.pathname === "/") {
|
|
52
|
+
res.setHeader("Content-Type", "text/html");
|
|
53
|
+
res.setHeader("Content-Security-Policy", "default-src 'none'; script-src 'self'; style-src 'unsafe-inline'; connect-src 'self'; img-src https: data:; media-src https:; font-src https: data:; form-action 'none'; base-uri 'none'; frame-ancestors 'none'");
|
|
54
|
+
res.end(page.toString().replace("TOKEN", token));
|
|
55
|
+
} else if (req.method === "GET" && url.pathname === "/client.js") {
|
|
56
|
+
res.setHeader("Content-Type", "text/javascript"); res.end(script);
|
|
57
|
+
} else if (req.method === "GET" && url.pathname === "/events") {
|
|
58
|
+
res.writeHead(200, { "Content-Type": "text/event-stream" });
|
|
59
|
+
clients.add(res); send(res, history, true);
|
|
60
|
+
req.on("close", () => clients.delete(res));
|
|
61
|
+
} else if (req.method === "POST" && url.pathname === "/action") {
|
|
62
|
+
if (req.headers.origin !== "http://" + req.headers.host || req.headers["content-type"] !== "application/json") { res.writeHead(403).end(); return; }
|
|
63
|
+
let body = "";
|
|
64
|
+
for await (const chunk of req) { body += chunk; if (body.length > 65536) { res.writeHead(413).end(); return; } }
|
|
65
|
+
const action = JSON.parse(body);
|
|
66
|
+
if (typeof action.name !== "string" || typeof action.surfaceId !== "string") { res.writeHead(400).end(); return; }
|
|
67
|
+
await onAction(action);
|
|
68
|
+
res.writeHead(204).end();
|
|
69
|
+
} else res.writeHead(404).end();
|
|
70
|
+
} catch { if (!res.headersSent) res.writeHead(400); res.end(); }
|
|
71
|
+
});
|
|
72
|
+
await new Promise((resolve, reject) => { server.once("error", reject); server.listen(0, "127.0.0.1", resolve); });
|
|
73
|
+
server.unref();
|
|
74
|
+
return {
|
|
75
|
+
url: "http://127.0.0.1:" + server.address().port + "/?token=" + token,
|
|
76
|
+
update(messages) { validate([...history, ...messages]); history.push(...structuredClone(messages)); for (const c of clients) send(c, messages, false); },
|
|
77
|
+
clear() { history = []; for (const c of clients) send(c, [], true); },
|
|
78
|
+
snapshot() { return structuredClone(history); },
|
|
79
|
+
async close() { for (const c of clients) c.end(); clients.clear(); server.closeAllConnections(); await new Promise(resolve => server.close(resolve)); },
|
|
80
|
+
};
|
|
81
|
+
}
|
package/src/view.html
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" class="a2ui-dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="dark">
|
|
7
|
+
<title>pi · A2UI</title>
|
|
8
|
+
<style>
|
|
9
|
+
/* Catppuccin Mocha. Host-owned tokens style every basic-catalog surface. */
|
|
10
|
+
:root {
|
|
11
|
+
color-scheme: dark;
|
|
12
|
+
font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
13
|
+
--mocha-base: #1e1e2e;
|
|
14
|
+
--mocha-mantle: #181825;
|
|
15
|
+
--mocha-crust: #11111b;
|
|
16
|
+
--mocha-surface0: #313244;
|
|
17
|
+
--mocha-surface1: #45475a;
|
|
18
|
+
--mocha-surface2: #585b70;
|
|
19
|
+
--mocha-text: #cdd6f4;
|
|
20
|
+
--mocha-subtext: #bac2de;
|
|
21
|
+
--mocha-overlay: #a6adc8;
|
|
22
|
+
--mocha-mauve: #cba6f7;
|
|
23
|
+
--mocha-lavender: #b4befe;
|
|
24
|
+
--mocha-red: #f38ba8;
|
|
25
|
+
--mocha-green: #a6e3a1;
|
|
26
|
+
}
|
|
27
|
+
body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
background: var(--mocha-mantle);
|
|
30
|
+
color: var(--mocha-text);
|
|
31
|
+
}
|
|
32
|
+
/* Set tokens on surfaces, below the renderer's root defaults in the cascade. */
|
|
33
|
+
a2ui-surface {
|
|
34
|
+
display: block;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
padding: clamp(16px, 4vw, 28px);
|
|
37
|
+
background: var(--mocha-base);
|
|
38
|
+
border: 1px solid var(--mocha-surface0);
|
|
39
|
+
border-radius: 16px;
|
|
40
|
+
--a2ui-color-background: var(--mocha-base);
|
|
41
|
+
--a2ui-color-on-background: var(--mocha-text);
|
|
42
|
+
--a2ui-color-surface: var(--mocha-mantle);
|
|
43
|
+
--a2ui-color-on-surface: var(--mocha-text);
|
|
44
|
+
--a2ui-color-primary: var(--mocha-mauve);
|
|
45
|
+
--a2ui-color-primary-light: #dfc5fa;
|
|
46
|
+
--a2ui-color-primary-dark: #b4befe;
|
|
47
|
+
--a2ui-color-primary-hover: #dfc5fa;
|
|
48
|
+
--a2ui-color-on-primary: var(--mocha-crust);
|
|
49
|
+
--a2ui-color-secondary: var(--mocha-surface0);
|
|
50
|
+
--a2ui-color-secondary-hover: var(--mocha-surface1);
|
|
51
|
+
--a2ui-color-on-secondary: var(--mocha-text);
|
|
52
|
+
--a2ui-color-input: var(--mocha-mantle);
|
|
53
|
+
--a2ui-color-on-input: var(--mocha-text);
|
|
54
|
+
--a2ui-color-border: var(--mocha-surface1);
|
|
55
|
+
--a2ui-border: 1px solid var(--mocha-surface1);
|
|
56
|
+
--a2ui-border-radius: 10px;
|
|
57
|
+
--a2ui-grid-base: 8px;
|
|
58
|
+
--a2ui-spacing-xs: 4px;
|
|
59
|
+
--a2ui-spacing-s: 8px;
|
|
60
|
+
--a2ui-spacing-m: 12px;
|
|
61
|
+
--a2ui-spacing-l: 20px;
|
|
62
|
+
--a2ui-spacing-xl: 32px;
|
|
63
|
+
--a2ui-font-size: 15px;
|
|
64
|
+
--a2ui-font-scale: 1.2;
|
|
65
|
+
--a2ui-line-height-body: 1.55;
|
|
66
|
+
--a2ui-label-font-size: 13px;
|
|
67
|
+
--a2ui-label-font-weight: 600;
|
|
68
|
+
--a2ui-text-caption-color: var(--mocha-overlay);
|
|
69
|
+
--a2ui-column-gap: 20px;
|
|
70
|
+
--a2ui-row-gap: 16px;
|
|
71
|
+
--a2ui-button-margin: 0;
|
|
72
|
+
--a2ui-button-padding: 10px 18px;
|
|
73
|
+
--a2ui-button-border-radius: 10px;
|
|
74
|
+
--a2ui-button-font-weight: 600;
|
|
75
|
+
--a2ui-textfield-padding: 11px 12px;
|
|
76
|
+
--a2ui-textfield-border-radius: 10px;
|
|
77
|
+
--a2ui-textfield-color-error: var(--mocha-red);
|
|
78
|
+
--a2ui-slider-color-error: var(--mocha-red);
|
|
79
|
+
--a2ui-checkbox-color-error: var(--mocha-red);
|
|
80
|
+
--a2ui-datetimeinput-color-error: var(--mocha-red);
|
|
81
|
+
--a2ui-choicepicker-color-error: var(--mocha-red);
|
|
82
|
+
--a2ui-slider-margin: 0;
|
|
83
|
+
--a2ui-choicepicker-gap: 8px;
|
|
84
|
+
--a2ui-choicepicker-chip-padding: 8px 14px;
|
|
85
|
+
--a2ui-tabs-header-color: var(--mocha-subtext);
|
|
86
|
+
--a2ui-tabs-header-color-active: var(--mocha-mauve);
|
|
87
|
+
--a2ui-tabs-header-background-active: var(--mocha-surface0);
|
|
88
|
+
--a2ui-tabs-content-padding: 24px 0 4px;
|
|
89
|
+
}
|
|
90
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
91
|
+
header {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
gap: 16px;
|
|
96
|
+
padding: 16px 24px;
|
|
97
|
+
border-bottom: 1px solid var(--mocha-surface0);
|
|
98
|
+
background: var(--mocha-crust);
|
|
99
|
+
}
|
|
100
|
+
header b { font-size: 14px; letter-spacing: .04em; }
|
|
101
|
+
header small { color: var(--mocha-overlay); font-size: 12px; }
|
|
102
|
+
main {
|
|
103
|
+
max-width: 960px;
|
|
104
|
+
margin: auto;
|
|
105
|
+
padding: clamp(12px, 3vw, 28px);
|
|
106
|
+
display: grid;
|
|
107
|
+
gap: 24px;
|
|
108
|
+
}
|
|
109
|
+
#app :is(button, input, textarea, select) { font: inherit; accent-color: var(--a2ui-color-primary); }
|
|
110
|
+
#app :is(button, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select) { min-height: 44px; }
|
|
111
|
+
#app textarea { min-height: 112px; resize: vertical; }
|
|
112
|
+
#app :is(input, textarea)::placeholder { color: var(--mocha-overlay); opacity: 1; }
|
|
113
|
+
#app :is(button, input, textarea, select, [tabindex]):focus-visible {
|
|
114
|
+
outline: 2px solid var(--mocha-lavender);
|
|
115
|
+
outline-offset: 3px;
|
|
116
|
+
}
|
|
117
|
+
#app button { cursor: pointer; }
|
|
118
|
+
#app :is(button, input, textarea, select):disabled { cursor: not-allowed; opacity: .5; }
|
|
119
|
+
#app .a2ui-error-message { color: var(--mocha-red); }
|
|
120
|
+
#app .a2ui-tab-bar { overflow-x: auto; }
|
|
121
|
+
#app .a2ui-tab-bar button { white-space: nowrap; border-radius: 8px 8px 0 0; }
|
|
122
|
+
#app :is(img, video) { max-width: 100%; }
|
|
123
|
+
#app a2ui-basic-row { min-width: 0; }
|
|
124
|
+
#app a2ui-basic-row > * { min-width: 0; }
|
|
125
|
+
#app dialog { max-width: min(640px, calc(100vw - 32px)); color: var(--mocha-text); }
|
|
126
|
+
#app dialog::backdrop { background: #11111bcc; }
|
|
127
|
+
@media (max-width: 480px) {
|
|
128
|
+
header { padding: 12px 16px; }
|
|
129
|
+
#app a2ui-basic-row { flex-wrap: wrap; }
|
|
130
|
+
}
|
|
131
|
+
@media (prefers-reduced-motion: reduce) {
|
|
132
|
+
#app *, #app *::before, #app *::after { transition: none !important; animation: none !important; }
|
|
133
|
+
}
|
|
134
|
+
</style>
|
|
135
|
+
</head>
|
|
136
|
+
<body>
|
|
137
|
+
<header><b>pi · A2UI</b><small id="status" role="status" aria-live="polite">Connecting…</small></header>
|
|
138
|
+
<main id="app"></main>
|
|
139
|
+
<script type="module" src="/client.js?token=TOKEN"></script>
|
|
140
|
+
</body>
|
|
141
|
+
</html>
|