From 07e56ddeb5dbfecf7c92db8604af8fa118779061 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 6 Dec 2025 05:03:51 +0100 Subject: [PATCH] docs: note bundled web chat assets --- docs/webchat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/webchat.md b/docs/webchat.md index 21582fc61..ae3ee2754 100644 --- a/docs/webchat.md +++ b/docs/webchat.md @@ -7,7 +7,7 @@ The macOS Clawdis app ships a built-in web chat window that reuses your primary - UI: `pi-mono/packages/web-ui` bundle loaded in a `WKWebView`. - Bridge: `WKScriptMessageHandler` named `clawdis` (see `apps/macos/Sources/Clawdis/WebChatWindow.swift`). The page posts `sessionKey` + message; Swift shells `pnpm clawdis agent --to --message --json` and returns the first payload text to the page. No sockets are opened. - Session selection: picks the most recently updated entry in `~/.clawdis/sessions/sessions.json`; falls back to `+1003` if none exist. This keeps the web chat on the same primary conversation as the relay/CLI. -- Assets: currently loads `pi-web-ui` directly from `../pi-mono/packages/web-ui/dist` on disk. (We should copy it into the app bundle in a future step.) +- Assets: the entire `pi-web-ui` dist plus dependencies (pi-ai, mini-lit, lit, lucide, pdfjs-dist, docx-preview, jszip) is bundled into `apps/macos/Sources/Clawdis/Resources/WebChat/` and shipped with the app. No external checkout is required at runtime. ## Requirements