summaryrefslogtreecommitdiffhomepage
path: root/src/app/index.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-07 00:39:31 +0900
committerAdam Malczewski <[email protected]>2026-06-07 00:39:31 +0900
commit5511897aefc7f27f3911c0baaeb418de52a4b117 (patch)
tree60555c305ae8d614062dba26469bc6b938aca338 /src/app/index.ts
parent2faccf3482922385c2de47f210e48a8d2968762f (diff)
downloaddispatch-web-5511897aefc7f27f3911c0baaeb418de52a4b117.tar.gz
dispatch-web-5511897aefc7f27f3911c0baaeb418de52a4b117.zip
Slice 2 wave 3: wire chat end-to-end at the composition root
- app/store.svelte.ts: one WebSocket carries surfaces AND chat (onChat -> chatStore.handleDelta); build the conversation cache over the IndexedDB adapter; createChatStore wired to transport (socket.send), injected HTTP historySync, and the cache; load() on construct - app/resolve-http-url.ts: host-relative HTTP base (port 24203), mirrors resolve-ws-url; injected fetch - App.svelte: render ChatView + Composer alongside the surface picker - createAppStore gains optional injection points (httpUrl/fetchImpl/indexedDB/ conversationId) for tests - vitest-setup.ts: fake-indexeddb/auto for jsdom IndexedDB (orchestrator-owned config; agent change adopted) Verified green (x2, stable): svelte-check 0/0, vitest 218, biome clean, build ok. Slice 2 (conversation transcript: cache + delta streaming) feature-complete.
Diffstat (limited to 'src/app/index.ts')
-rw-r--r--src/app/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/index.ts b/src/app/index.ts
index f94b554..f4f47e9 100644
--- a/src/app/index.ts
+++ b/src/app/index.ts
@@ -1,3 +1,3 @@
export { default as App } from "./App.svelte";
-export type { AppStore } from "./store.svelte";
+export type { AppStore, CreateAppStoreOptions } from "./store.svelte";
export { createAppStore } from "./store.svelte";