{#each TLENS as f (f.id)} {/each}
(listWidth = clampLW(w))} onCommit={setListWidth} />
{#if sel}
{#if toolIcon(sel.tool)}{@html toolIcon(sel.tool)}{:else}{toolMark(sel.label)}{/if}

{sel.label}

{sel.scope === "user" ? i18n.t("tools.userGlobal") : i18n.t("tools.projectScoped")} {#if install.versionOf(sel.tool)}· {install.versionOf(sel.tool)}{/if} {#if !sel.detected}· {i18n.t("common.notDetected")}{/if} {#if sel.customPath}· {i18n.t("tools.customLocation")}{/if}
{#if sel.wired} {/if} {#if sel.userDest} {/if} {#if sel.wired} {/if}
{#if editingLocation && sel.wired}
{i18n.t("tools.installLocation")} {sel.customPath ? sel.customPath : i18n.t("tools.locationDefault")}

{i18n.t("tools.locationHint", { tool: sel.label, wsl: "\\\\wsl.localhost\\…" })}

{#if sel.customPath} {/if}
{/if} {#if sel.wired} {#if sel.userDest} {homePath(sel.userDest)} {/if} {#if selHealth && selHealth.total > 0}
{#each ORDER as s (s)} {#if selHealth[s] > 0} {selHealth[s]} {i18n.t(STATE_LABEL[s])} {/if} {/each}
{/if}
{#if selProjects.length > 0}

{i18n.t("tools.projects")}

{#each selProjects as p (p.path)}
{p.path.split("/").pop()} {p.count}
{/each}
{/if} {#if selRows.length === 0}

{i18n.t("tools.noAgentsDeployed", { tool: sel.label })}

{:else}

{i18n.count(selRows.length, "common.agent.one", "common.agent.many")}{#if selGroups.length > 1} · {i18n.count(selGroups.length, "common.division.one", "common.division.many")}{/if}

{#if selGroups.length > 1} {/if}
{#if selVisible.length === 0}

{i18n.t("tools.noAgentsMatch", { query: agentFilter.trim() })}

{:else}
{#each selGroups as g (g.slug)} {@const Icon = resolveCategoryIcon(g.icon)} {@const isOpen = agentFilter.trim() ? true : !collapsed.has(g.slug)}
{#if isOpen}
    {#each g.rows as r (r.dest)} {@const isBusy = install.busy === `${r.slug}:${r.tool}`}
  • {r.name} {#if r.projectPath}{r.projectPath.split("/").pop()}{/if} {#if DIFFABLE.includes(r.state)} {/if} {#if r.state === "foreign"} {/if} {#if r.state !== "current"} {/if}
  • {/each}
{/if}
{/each}
{/if} {/if} {:else}
{i18n.t("tools.recognized")}

{i18n.t("tools.recognizedBody")}

{/if}
{:else}

{i18n.t("tools.selectTool")}

{/if}
{#if diffTarget} (diffTarget = null)} /> {/if} {#if confirmRemove && sel}

{i18n.t("tools.removeAllTitle", { tool: sel.label })}

{i18n.t("tools.removeAllBody", { count: selRows.length })}

{/if}