webui: Agentic Loop + MCP Client with support for Tools, Resources and Prompts (#18655)

This commit is contained in:
Aleksander Grygier
2026-03-06 10:00:39 +01:00
committed by GitHub
parent 2850bc6a13
commit f6235a41ef
147 changed files with 15285 additions and 366 deletions
@@ -25,13 +25,9 @@
BOOL_TRUE_STRING,
SETTINGS_KEYS
} from '$lib/constants';
import { UrlPrefix } from '$lib/enums';
import { ColorMode, UrlProtocol } from '$lib/enums';
import { FileTypeText } from '$lib/enums/files';
import {
highlightCode,
detectIncompleteCodeBlock,
type IncompleteCodeBlock
} from '$lib/utils/code';
import { highlightCode, detectIncompleteCodeBlock, type IncompleteCodeBlock } from '$lib/utils';
import '$styles/katex-custom.scss';
import githubDarkCss from 'highlight.js/styles/github-dark.css?inline';
import githubLightCss from 'highlight.js/styles/github.css?inline';
@@ -505,7 +501,7 @@
// Don't handle data URLs or already-handled images
if (
img.src.startsWith(UrlPrefix.DATA) ||
img.src.startsWith(UrlProtocol.DATA) ||
img.dataset[DATA_ERROR_HANDLED_ATTR] === BOOL_TRUE_STRING
)
return;
@@ -560,7 +556,7 @@
$effect(() => {
const currentMode = mode.current;
const isDark = currentMode === 'dark';
const isDark = currentMode === ColorMode.DARK;
loadHighlightTheme(isDark);
});
@@ -622,7 +618,7 @@
<ActionIconsCodeBlock
code={incompleteCodeBlock.code}
language={incompleteCodeBlock.language || 'text'}
disabled={true}
disabled
onPreview={(code, lang) => {
previewCode = code;
previewLanguage = lang;