char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: ESLint config updates (#27700)f1357e499

char/aliceai-t5-moe
942 B37 linesraw
1<script lang="ts">
2	import McpServerForm from '$lib/components/app/mcp/McpServerForm.svelte';
3	import { untrack } from 'svelte';
4
5	interface Props {
6		headers?: string;
7	}
8
9	let { headers = '' }: Props = $props();
10
11	let headersState = $state(untrack(() => headers));
12	let lastCapturedHeaders = $state(untrack(() => headers));
13
14	$effect(() => {
15		if (headers !== lastCapturedHeaders) {
16			headersState = headers;
17			lastCapturedHeaders = headers;
18		}
19	});
20</script>
21
22<!--
23	Drives McpServerForm with a controlled `headers` string and exposes the
24	latest captured value through `data-captured-headers` so the client test
25	can read it back without a custom binding API.
26-->
27<McpServerForm
28	headers={headersState}
29	id="mcp-server-form-test"
30	onHeadersChange={(value) => {
31		headersState = value;
32	}}
33	onUrlChange={() => {}}
34	url="https://example.test/mcp"
35/>
36
37<div data-captured-headers={headersState} data-testid="captured-headers" hidden></div>