{#if loading}
{:else if error}
{error}
{:else}
{#if configReadonly}
Config is managed externally and is read-only.
{/if} {#if selectedView === 'proxies'}

Proxies

Route all tool traffic through one or more proxies. On network failure the next proxy is tried automatically (round-robin). External binaries are wrapped with proxychains4.

{#if proxies.length > 0 && !proxychainsAvailable}
proxychains4 not found in PATH, external binary tools (maigret, ghunt, etc.) will not be proxied. Only HTTP-based tools are affected by the proxy config.
{/if}
{#if proxies.length === 0}

No proxies, tools connect directly.

{:else} {#each proxies as proxy, i} {@const lbl = proxyLabel(proxy.url)}
{lbl.proto} {lbl.host} {#if !configReadonly} {/if}
{/each} {/if}
{#if !configReadonly}
e.key === 'Enter' && addProxy()} />
{#if newUrlError}

{newUrlError}

{:else}

Supported: socks5://, socks4://, http://

{/if}
{#if proxyMsg} {proxyMsg.text} {/if}
{/if}
{:else if !selectedView}

Select a profile.

{:else if profileLoading}
{:else if profileDetail}

{#if isReadonly}{/if} {selectedView}

{#if isReadonly}{/if} {#if profileDetail.active_tools?.length > 0} {profileDetail.active_tools.length} active tool{profileDetail.active_tools.length !== 1 ? "s" : ""} {/if}
{#if isReadonly} {#if profileDetail.notes}

{profileDetail.notes}

{/if} {:else}
Notes
{/if}

Rules

{#if !isReadonly && rulesMsg} {rulesMsg.text} {/if}
Enabled
{#if isReadonly} {#each (profileDetail.enabled ?? []) as tn} {tn} {/each} {#if (profileDetail.enabled ?? []).length === 0} All tools {/if} {:else} {#each enabledEdit as tn} {tn} {/each} !disabledEdit.includes(n))} placeholder="add tool" size="xs" onselect={(v) => (disabledEdit = [...disabledEdit, v])} /> {/if}
{#if !isReadonly} {/if}
{#if !isReadonly}

Tool overrides

{#if availableForOverride.length > 0} {overrideEdits[toolName][field.name] ? "enabled" : "disabled"} {:else if field.type === "int"} {:else if field.type === "float"} {:else if field.type === "enum"} {:else} {/if}
{/each}
{:else}

No configurable fields.

{/if}
{/each}
{/if}
{/if} {/if} {/if}