WIP: Rewrite export-html with tree sidebar, client-side rendering

- Add tree sidebar with search and filter (Default/All/Labels)
- Client-side markdown/syntax highlighting via vendored marked.js + highlight.js
- Base64 encode session data to avoid escaping issues
- Reuse theme.ts color tokens via getResolvedThemeColors()
- Sticky sidebar, responsive mobile layout with overlay
- Click tree node to scroll to message
- Keyboard shortcuts: Esc to reset, Ctrl/Cmd+F to search
This commit is contained in:
Mario Zechner 2026-01-01 03:36:47 +01:00
parent a073477555
commit 256fa575fb
11 changed files with 3195 additions and 1446 deletions

View file

@ -3263,7 +3263,7 @@ export const MODELS = {
cacheWrite: 0,
},
contextWindow: 163840,
maxTokens: 163840,
maxTokens: 65536,
} satisfies Model<"openai-completions">,
"deepseek/deepseek-r1-distill-llama-70b": {
id: "deepseek/deepseek-r1-distill-llama-70b",
@ -3563,13 +3563,13 @@ export const MODELS = {
reasoning: false,
input: ["text", "image"],
cost: {
input: 0.04,
output: 0.15,
input: 0.036,
output: 0.064,
cacheRead: 0,
cacheWrite: 0,
},
contextWindow: 96000,
maxTokens: 96000,
contextWindow: 131072,
maxTokens: 4096,
} satisfies Model<"openai-completions">,
"google/gemma-3-27b-it:free": {
id: "google/gemma-3-27b-it:free",
@ -5297,8 +5297,8 @@ export const MODELS = {
reasoning: true,
input: ["text"],
cost: {
input: 0.039,
output: 0.19,
input: 0.02,
output: 0.09999999999999999,
cacheRead: 0,
cacheWrite: 0,
},
@ -5348,8 +5348,8 @@ export const MODELS = {
reasoning: true,
input: ["text"],
cost: {
input: 0.03,
output: 0.14,
input: 0.016,
output: 0.06,
cacheRead: 0,
cacheWrite: 0,
},
@ -5994,8 +5994,8 @@ export const MODELS = {
reasoning: false,
input: ["text"],
cost: {
input: 0.09,
output: 1.1,
input: 0.06,
output: 0.6,
cacheRead: 0,
cacheWrite: 0,
},