mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:07:40 +01:00
The widget's chat was the fleet's own hand-rolled chat; with data-fc-chat="kit" it is now drawn by @bitbaum/chatkit, the thread and composer Loki's own chat renders, over the same conversation model. - widget/chat/: a separate lazy chunk (public/widget-chat.js, ~24 KB gzipped, Preact standing in for React), fetched on first open, carrying the tag's nonce. chatkit's CSS is rewritten for the shadow root (:root -> :host, rem -> px) and coloured from the boot theme. - widget/conversation-kit.ts maps the model's snapshot to what chatkit draws; Fix this, the changes, the confirmation card, the About chips and Continue in Loki go into chatkit's slots as the widget's own nodes. - A chunk that cannot load leaves the panel's own view: no dead end. - /widget-chat.js is public in the auth proxy, like /widget.js. - Tests: widget-kit-browser (34 checks: ask, card, screenshot, fallback, phone width, host hotkeys, weight budget), widget-chat-css, and widget-self-contained now guards the chunk/panel seam. Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck Co-authored-by: Claude <noreply@anthropic.com>
39 lines
806 B
JSON
39 lines
806 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"home/**/*.ts",
|
|
"widget/**/*.ts",
|
|
"widget/**/*.tsx",
|
|
"extension/src/**/*.ts",
|
|
"**/*.mts",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", ".next", "scripts/site-template"]
|
|
}
|