App: dark-aware HTML views, run cards, changed/missing file notes, one card width, dense diff rows

show_html documents that declare dark support follow the app theme; others
stay light. Tool description and skill docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 19:54:58 +00:00
parent d204ce3187
commit f02ff56dfe
27 changed files with 1086 additions and 61 deletions
+3 -3
View File
@@ -112,9 +112,9 @@ func definitions() []toolDefinition {
Description: "Render a self-contained HTML or SVG document inline in the Pipelines chat: diagrams, charts, tables, small visual views. " +
"It is shown in a sandbox with no scripts, no network and no access to the app: use inline CSS and inline SVG, " +
"<details> for expandable parts and CSS :hover for interaction; JavaScript does not run and external resources do not load. " +
"The view follows the operator's light or dark theme (color-scheme and prefers-color-scheme): style for both with " +
"@media (prefers-color-scheme: dark) or CSS system colors (Canvas, CanvasText), or set your own background and text colors; " +
"unstyled text uses the theme's default colors. " +
"A document that supports dark mode follows the operator's light or dark theme: style for both with " +
"@media (prefers-color-scheme: dark), a color-scheme declaration or light-dark() colors (with color-scheme, " +
"unstyled text and the page use the theme's Canvas/CanvasText). A document without any of these is always shown light, on white. " +
"The operator can open it full screen. At most 512 KiB. The result names the item's id: pass it as replace to update the view.",
InputSchema: objectSchema([]string{"html"}, map[string]any{
"html": stringProperty("The complete HTML (or a bare <svg>) document."),