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