Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
fix(ok): show only agent folders that exist (PRD-7985) (#3515)
tim-inkeep3a90ef6b833a
diff --git a/.changeset/agent-lists-show-what-you-have.md b/.changeset/agent-lists-show-what-you-have.mdnew file mode 100644index 000000000..fd21e92ab--- /dev/null+++ b/.changeset/agent-lists-show-what-you-have.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++Agent lists in Settings now reflect what is actually on your machine. Skills folders and the Install menu offer only folders whose agent home already exists, so choosing one can no longer create an integration folder for a tool you do not have. Configure agents sorts the agents you can run to the top of each group, and puts groups that hold something above ones that hold nothing. AI tools & CLI puts the tools you use first, folds the rest, and no longer claims to have detected a tool it has not: an unconfigured row now links to its setup guide instead. Adding a folder before its tool arrives still works through Add custom path.diff --git a/packages/app/src/components/SkillInstallMenu.tsx b/packages/app/src/components/SkillInstallMenu.tsxindex ecdef3560..85a460d24 100644--- a/packages/app/src/components/SkillInstallMenu.tsx+++ b/packages/app/src/components/SkillInstallMenu.tsx@@ -724,6 +724,20 @@ export function SkillInstallMenuItems({</Hint>))}+ {/* Nothing to install into. Reachable only since destinations became+ existence-gated: a project (or home) with no agent folder yet has no+ host row, no custom root and no source row, and the menu would+ otherwise open on nothing but its own footer. "Manage skill folders"+ sits directly below and is the way to declare one. */}+ {rows.length === 0 && customRootRows.length === 0 && sourceRow === null ? (+ <div+ className="px-2 py-1.5 text-[11px] text-muted-foreground leading-snug"+ data-testid="skill-install-no-destinations"+ >+ <Trans>No agent folders yet</Trans>+ </div>+ ) : null}+{/* Skill-wide form change, deliberately last and quiet. The per-row tagfixes ONE divergent location; this is the "make them all the same"verb, and the only place the whole set changes at once. It explainsdiff --git a/packages/app/src/components/settings/AiToolsSection.dom.test.tsx b/packages/app/src/components/settings/AiToolsSection.dom.test.tsxindex 2496e2910..75e218d94 100644--- a/packages/app/src/components/settings/AiToolsSection.dom.test.tsx+++ b/packages/app/src/components/settings/AiToolsSection.dom.test.tsx@@ -114,6 +114,12 @@ function installBridge({ status = baseStatus, setResult }: HarnessOpts = {}) {return { setCalls };}+/** Open the MCP-connections fold. Rows that are neither configured nor detected+ * sit below it now, so a test asserting on one has to expand first. */+async function expandEditors(): Promise<void> {+ await userEvent.click(await screen.findByTestId('ai-tools-editors-show-more'));+}+afterEach(() => {cleanup();toastError.mockClear();@@ -136,6 +142,9 @@ describe('AiToolsSection', () => {expect(screen.getByTestId('ai-tools-editor-checkbox-claude').getAttribute('data-state')).toBe('checked',);+ // Cursor is neither configured nor detected, so it starts below the fold.+ expect(screen.queryByTestId('ai-tools-editor-checkbox-cursor')).toBeNull();+ await expandEditors();expect(screen.getByTestId('ai-tools-editor-checkbox-cursor').getAttribute('data-state')).toBe('unchecked',);@@ -167,6 +176,31 @@ describe('AiToolsSection', () => {).toBe('unchecked');});+ test('detection orders a row but never claims presence on it', async () => {+ // One rule across the agent lists: the probe may pick a row's position, and+ // on the external-apps group its default, but no row prints an assertion of+ // presence. The signal answers "is this tool on the machine", not "is it set+ // up with us", so ranking is all it earns — the row still reads+ // "How to set up", never "Detected on this machine".+ const detectedButUnwired: OkIntegrationsStatus = {+ ...baseStatus,+ editors: baseStatus.editors.map((e) =>+ e.id === 'cursor' ? { ...e, detected: true, state: 'not-installed' as const } : e,+ ),+ };+ installBridge({ status: detectedButUnwired });+ renderSection();++ // Ordered up: above the fold without expanding.+ await screen.findByTestId('ai-tools-editor-checkbox-cursor');+ expect(screen.queryByTestId('ai-tools-editors-show-more')).toBeNull();++ // But making no claim.+ const status = screen.getByTestId('ai-tools-editor-status-cursor');+ expect(status.textContent).not.toContain('Detected on this machine');+ expect(status.textContent).toContain('How to set up');+ });+test('clicking a checkbox sends the matching install/uninstall and re-renders from the result', async () => {const flipped: OkIntegrationsStatus = {...baseStatus,@@ -178,6 +212,9 @@ describe('AiToolsSection', () => {setResult: () => ({ ok: true as const, status: flipped }),});renderSection();+ // Cursor is neither configured nor detected in the fixture, so reaching its+ // checkbox means opening the fold first.+ await expandEditors();await waitFor(() => {expect(screen.getByTestId('ai-tools-editor-checkbox-cursor')).toBeTruthy();});diff --git a/packages/app/src/components/settings/AiToolsSection.tsx b/packages/app/src/components/settings/AiToolsSection.tsxindex 20515d6d8..5aa0c329e 100644--- a/packages/app/src/components/settings/AiToolsSection.tsx+++ b/packages/app/src/components/settings/AiToolsSection.tsx@@ -71,6 +71,7 @@ export function AiToolsSection() {const [status, setStatus] = useState<OkIntegrationsStatus | null>(null);const [loadFailed, setLoadFailed] = useState(false);const [pending, setPending] = useState<string | null>(null);+ const [showAllEditors, setShowAllEditors] = useState(false);useEffect(() => {if (!bridge) return;@@ -106,6 +107,35 @@ export function AiToolsSection() {setPending(null);}+ // Yours first, the rest folded. A row is primary when OK has WIRED it+ // (`installed`, `foreign`, or `unmanageable` — its config file exists, which is+ // what makes the tool real), or when the editor is detected.+ //+ // Detection ORDERS but never CLAIMS. That is one rule across every agent list:+ // the external-apps group lets its probe pick a row's default, this one lets+ // the probe pick a row's position, and neither prints an assertion of presence+ // on the row. No surface prints `Detected on this machine`, precisely so the+ // signal can stay useful for ranking without being read as a fact.+ //+ // The signal is a probe of the machine — a CLI on the login-shell PATH, or the+ // app the OS says owns the URL scheme — and it answers "is this tool here",+ // not "did the user set it up with us". Those are different questions, so+ // ranking is the most it earns. A row it lifts still shows `How to set up`,+ // never a presence claim.+ const editors = status?.editors ?? [];+ const isPrimaryEditor = (e: (typeof editors)[number]): boolean =>+ e.state !== 'not-installed' || e.detected;+ const primaryEditors = editors.filter(isPrimaryEditor);+ // Nothing configured and nothing detected would otherwise fold the entire list+ // away and leave an empty box under the heading. A fold that hides everything+ // is not a fold.+ const foldable = primaryEditors.length > 0 && primaryEditors.length < editors.length;+ const shownEditors =+ !foldable || showAllEditors+ ? [...editors].sort((a, b) => Number(isPrimaryEditor(b)) - Number(isPrimaryEditor(a)))+ : primaryEditors;+ const hiddenCount = foldable ? editors.length - primaryEditors.length : 0;+const header = (<div className="space-y-1"><h3 id="settings-ai-tools-title" className="text-base font-semibold">@@ -219,13 +249,15 @@ export function AiToolsSection() {</Trans></span><ul className="rounded-md border border-border bg-card/50 divide-y divide-border overflow-hidden">- {status.editors.map((editor) => {+ {shownEditors.map((editor) => {const checked = editor.state === 'installed' || editor.state === 'foreign';const disabled = busy || editor.state === 'unmanageable';- // Undetected, never-configured tools get a setup-guide link instead- // of a dead-end "Not detected" — same contract as the first-launch- // consent dialog.- const showSetupLink = editor.state === 'not-installed' && !editor.detected;+ // Every never-configured tool gets the setup-guide link, detected or+ // not. A row offering to configure a tool must not also assert the+ // user has it: those two claims on one row contradict each other, and+ // the row is the weakest place to stake presence. `detected` orders+ // the list below; it never speaks here.+ const showSetupLink = editor.state === 'not-installed';const setupUrl = `https://openknowledge.ai/docs/integrations/${EDITOR_SETUP_DOC_SLUG[editor.id]}`;const statusLabel =editor.state === 'installed'@@ -234,9 +266,7 @@ export function AiToolsSection() {? t`Custom open-knowledge entry — not managed by OpenKnowledge`: editor.state === 'unmanageable'? t`Can't safely edit this tool's config`- : editor.detected- ? t`Detected on this machine`- : null;+ : null;const statusClass =editor.state === 'foreign' || editor.state === 'unmanageable'? 'text-xs text-amber-600 dark:text-amber-400'@@ -314,6 +344,26 @@ export function AiToolsSection() {</li>);})}+ {hiddenCount > 0 ? (+ <li>+ <Button+ type="button"+ variant="ghost"+ onClick={() => setShowAllEditors((v) => !v)}+ className="w-full justify-center rounded-none font-normal text-muted-foreground text-xs"+ data-testid="ai-tools-editors-show-more"+ >+ {/* Never names what the probe thinks of the hidden rows: an+ "N not found" label would reassert the same unbacked detection+ claim this surface removed, one line lower. The noun is left off+ to reuse the+ Configure agents msgid verbatim — a counted noun would need+ plural forms in every locale to buy a word the "MCP+ connections" heading above already supplies. */}+ {showAllEditors ? t`Show less` : t`Show ${hiddenCount} more`}+ </Button>+ </li>+ ) : null}</ul></div>diff --git a/packages/app/src/components/settings/ConfigureAgentsSection.dom.test.tsx b/packages/app/src/components/settings/ConfigureAgentsSection.dom.test.tsxindex d435b995b..7d26339b0 100644--- a/packages/app/src/components/settings/ConfigureAgentsSection.dom.test.tsx+++ b/packages/app/src/components/settings/ConfigureAgentsSection.dom.test.tsx@@ -7,7 +7,7 @@import type { InstallState } from '@inkeep/open-knowledge-core';import { QueryClient, QueryClientProvider } from '@tanstack/react-query';-import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';+import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';import type { ReactNode } from 'react';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import type { AgentCatalog } from '@/lib/acp/catalog';@@ -90,8 +90,15 @@ const catalog: AgentCatalog = {stale: false,maxThreads: 8,};-vi.doMock('@/lib/acp/catalog', () => ({- fetchAgentCatalog: () => Promise.resolve(catalog),+// Only the network call is stubbed. `harnessPresenceRank` is a pure ordering+// helper the component's sort depends on, so it must stay REAL — re-declaring it+// in the mock would test a copy of the rule instead of the rule.+// Swappable per test, like `states` and `terminalLaunchValue` above: the error+// path is a distinct ordering input, not just a different payload.+let fetchCatalog: () => Promise<typeof catalog> = () => Promise.resolve(catalog);+vi.doMock('@/lib/acp/catalog', async (importOriginal) => ({+ ...(await importOriginal<typeof import('@/lib/acp/catalog')>()),+ fetchAgentCatalog: () => fetchCatalog(),}));let states: Record<string, InstallState> = {};@@ -113,6 +120,7 @@ vi.doMock('@/components/acp/RegisteredAgentIcon', () => ({RegisteredAgentIcon: () => <svg data-testid="registered-agent-icon" aria-hidden />,}));+import { reloadEnabledAgentsFromStorage } from '@/lib/acp/enabled-agents';import {getDefaultRegisteredAgent,registerAgent,@@ -142,6 +150,10 @@ function renderSection() {beforeEach(() => {localStorage.clear();reloadRegisteredAgentsFromStorage();+ // Both agent stores cache at module scope. Clearing storage without re-reading+ // them leaves a prior test's overrides live — every toggle test writes one.+ reloadEnabledAgentsFromStorage();+ fetchCatalog = () => Promise.resolve(catalog);states = { 'claude-code': { installed: true }, codex: { installed: false } } as Record<string,InstallState@@ -150,6 +162,20 @@ beforeEach(() => {afterEach(() => cleanup());+/** Open the In-app fold. Agents the harness probe reported `not-found` sit below+ * it, so a test that asserts on one has to expand first. */+async function expandInApp(): Promise<void> {+ fireEvent.click(await screen.findByTestId('configure-agents-in-app-show-more'));+}++/** Group headings in DOM order — what the group-ordering rule acts on. */+function groupOrder(): string[] {+ return screen+ .getAllByRole('heading', { level: 4 })+ .map((h) => h.textContent?.trim() ?? '')+ .map((label) => (label.startsWith('In app') ? 'In app' : label));+}+describe('ConfigureAgentsSection', () => {test('renders In app + External apps groups (no Terminal on the web host)', async () => {renderSection();@@ -161,6 +187,8 @@ describe('ConfigureAgentsSection', () => {test('a platform-unsupported in-app agent renders disabled', async () => {renderSection();+ // OpenCode's harness probe says not-found, so it sits below the fold.+ await expandInApp();const toggle = await screen.findByTestId('configure-agents-in-app-registry:opencode-acp');expect(toggle.getAttribute('data-disabled')).toBe('');});@@ -169,6 +197,7 @@ describe('ConfigureAgentsSection', () => {renderSection();// The human blurb, not the SPDX license. (A global "Not installed" check// would hit the external-apps group's own install hint, so scope to the license.)+ await expandInApp();expect(await screen.findByText('ACP wrapper for Cursor')).toBeTruthy();expect(screen.getByText('ACP wrapper for Gemini')).toBeTruthy();expect(screen.queryByText('Apache-2.0')).toBeNull();@@ -177,6 +206,8 @@ describe('ConfigureAgentsSection', () => {test('a present harness defaults on and a not-found one defaults off (toggle still operable)', async () => {renderSection();const present = await screen.findByTestId('configure-agents-in-app-registry:gemini');+ // Below the fold now; being folded is not being gated.+ await expandInApp();const notFound = await screen.findByTestId('configure-agents-in-app-registry:cursor');expect(present.getAttribute('aria-checked')).toBe('true');expect(notFound.getAttribute('aria-checked')).toBe('false');@@ -184,23 +215,153 @@ describe('ConfigureAgentsSection', () => {expect(notFound.getAttribute('data-disabled')).toBeNull();});- test('collapses to the harness-mapped agents, with a Show more toggle for the rest', async () => {+ test('collapses to agents the probe has not ruled out, with a Show more toggle for the rest', async () => {renderSection();- // Default view: harness-mapped agents (Claude/OpenCode/Cursor/Gemini) show;- // the non-mapped agent (Cline) is hidden behind the toggle.+ // Default view = harness-mapped agents the probe did NOT rule out: Gemini+ // (present) and Claude Agent (unknown — pending is not a negative result).+ // Cursor and OpenCode (both not-found) join the un-mapped Cline below the+ // fold. An agent this machine cannot run has no claim on a default row just+ // because it is in the harness set.await screen.findByText('Claude Agent');- expect(screen.getByText('ACP wrapper for Cursor')).toBeTruthy();+ expect(screen.getByText('ACP wrapper for Gemini')).toBeTruthy();+ expect(screen.queryByText('ACP wrapper for Cursor')).toBeNull();expect(screen.queryByText('Cline')).toBeNull();const toggle = screen.getByTestId('configure-agents-in-app-show-more');- expect(toggle.textContent).toContain('Show 1 more');+ expect(toggle.textContent).toContain('Show 3 more');fireEvent.click(toggle);- // Expanded: the collapsed agent appears; the toggle flips to Show less.expect(screen.getByText('Cline')).toBeTruthy();+ expect(screen.getByText('ACP wrapper for Cursor')).toBeTruthy();expect(toggle.textContent).toContain('Show less');});+ test('an agent the probe ruled out stays above the fold once the user enables it', async () => {+ // `isPrimaryAgent` is a disjunction: harness-present OR checked. The fold+ // test above covers the harness arm; this covers the other one. A user who+ // deliberately enables an agent this machine reports `not-found` must not+ // have that agent hidden below a fold — the fold exists to cut catalogue+ // noise, and an explicit choice is not noise.+ localStorage.setItem(STORAGE_KEY, JSON.stringify({ 'in-app:registry:cursor': true }));+ // The override store caches at module scope, so a direct localStorage write+ // needs the same re-read the cross-tab `storage` listener performs.+ reloadEnabledAgentsFromStorage();+ renderSection();++ // Cursor is `availability: 'not-found'`, so without the override it sits+ // below the fold (asserted by the preceding test).+ expect(await screen.findByText('ACP wrapper for Cursor')).toBeTruthy();+ expect(screen.getByTestId('configure-agents-in-app-show-more').textContent).toContain(+ 'Show 2 more',+ );+ });++ test('expanding pins present agents on top and sorts the rest alphabetically', async () => {+ renderSection();+ await screen.findByText('Claude Agent');+ await expandInApp();+ // Scoped to the In-app section: the external-apps group also has a row whose+ // text matches, and an unscoped query interleaves the two groups.+ const inApp = within(+ document.querySelector<HTMLElement>(+ 'section[aria-labelledby="settings-configure-agents-in-app"]',+ ) as HTMLElement,+ );+ const names = inApp+ .getAllByText(/^(Claude Agent|Gemini|Cursor|OpenCode|Cline)$/)+ .map((n) => n.textContent ?? '');++ const primary = names.slice(0, 2);+ expect(primary).toContain('Claude Agent');+ expect(primary).toContain('Gemini');++ const tail = names.slice(2);+ expect(tail).toEqual([...tail].sort((a, b) => a.localeCompare(b)));+ // Regression guard: an agent with NO harness used to tie with the present+ // ones (`undefined === 'not-found'` is false), so the whole catalogue kept+ // its original order and only explicitly not-found agents sank.+ expect(tail).toContain('Cline');+ });++ test('a group with something installed sorts above one with nothing', async () => {+ const gemini = catalog.agents.find((a) => a.id === 'gemini');+ const claude = catalog.agents.find((a) => a.id === 'claude-acp');+ const restore = { g: gemini?.harness?.availability, c: claude?.harness?.availability };+ if (gemini?.harness) gemini.harness.availability = 'not-found';+ if (claude?.harness) claude.harness.availability = 'not-found';+ try {+ renderSection();+ // Until the catalog lands the In-app group is held in place (pending, not+ // empty), so the reorder is only observable after it loads.+ await screen.findByTestId('configure-agents-in-app-show-more');+ expect(groupOrder()).toEqual(['External apps', 'In app']);+ } finally {+ if (gemini?.harness && restore.g) gemini.harness.availability = restore.g;+ if (claude?.harness && restore.c) claude.harness.availability = restore.c;+ }+ });++ test('groups keep their declared order when both have something present', async () => {+ renderSection();+ await screen.findByText('Claude Agent');+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ });++ test('an external-apps group whose probe has not answered does NOT claim presence', async () => {+ // External apps are strict on purpose: these rows deep-link into another+ // application, so an unresolved probe waits rather than asserting presence.+ // That is the same bar `isDesktopTargetEnabled` applies to the rows, and it+ // is deliberately unlike the fail-open rule the Terminal CLIs use.+ states = {};+ const gemini = catalog.agents.find((a) => a.id === 'gemini');+ const claude = catalog.agents.find((a) => a.id === 'claude-acp');+ const restore = { g: gemini?.harness?.availability, c: claude?.harness?.availability };+ if (gemini?.harness) gemini.harness.availability = 'not-found';+ if (claude?.harness) claude.harness.availability = 'not-found';+ try {+ renderSection();+ await screen.findByTestId('configure-agents-in-app-show-more');+ // Neither group can claim anything, so the declared order stands.+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ } finally {+ if (gemini?.harness && restore.g) gemini.harness.availability = restore.g;+ if (claude?.harness && restore.c) claude.harness.availability = restore.c;+ }+ });++ test('a failed catalog holds the In app group in place rather than sinking it', async () => {+ // `catalogReady` is `!isLoading && !isError`, so a failed fetch scores the+ // group the same way a pending one does: it holds its declared position.+ // The group renders its own error state, so the user is told what happened+ // there — demoting it as well would move the section under a machine answer+ // that never arrived, which is the flicker the ordering rule exists to stop.+ fetchCatalog = () => Promise.reject(new Error('catalog unreachable'));+ renderSection();+ await screen.findByText(/Couldn't reach the agent registry/i);+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ });++ test('a group whose every member is positively absent still sorts down', async () => {+ // The other half of the rule: `!== false` must not collapse into always-true.+ // A probe that has answered NO for every member is a real negative.+ states = { 'claude-code': { installed: false }, codex: { installed: false } } as Record<+ string,+ InstallState+ >;+ renderSection();+ await screen.findByText('Claude Agent');+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ });++ test('the In app group does not sort down and jump back while its catalog loads', async () => {+ renderSection();+ // Asserted BEFORE the catalog resolves: the group has no rows yet, and+ // scoring it on that empty list would drop it below external apps for a frame.+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ await screen.findByText('Claude Agent');+ expect(groupOrder()).toEqual(['In app', 'External apps']);+ });+test('enabling an in-app agent is visibility-only and does not change the launch default', async () => {// An explicit pick established a default before Settings is opened.registerAgent({ source: 'registry', id: 'codex-acp', name: 'Codex' });@@ -300,15 +461,36 @@ describe('ConfigureAgentsSection — Terminal group (docked terminal present)',terminalLaunchValue = null;});+ /** Open the Terminal fold — CLIs the probe reported absent sit below it. */+ async function expandTerminal(): Promise<void> {+ fireEvent.click(await screen.findByTestId('configure-agents-terminal-show-more'));+ }+test('renders the Terminal group with per-CLI rows', async () => {renderSection();await screen.findByTestId('configure-agents-terminal-claude');expect(screen.getByText('Terminal')).toBeTruthy();+ // codex probes absent, so it now sits below the fold.+ await expandTerminal();+ expect(screen.getByTestId('configure-agents-terminal-codex')).toBeTruthy();+ });++ test('Terminal sorts installed CLIs first and folds the not-installed ones', async () => {+ // This group used to render every CLI in catalogue order, so the absent ones+ // sat interleaved among the real ones.+ renderSection();+ const fold = await screen.findByTestId('configure-agents-terminal-show-more');+ expect(screen.queryByTestId('configure-agents-terminal-codex')).toBeNull();+ expect(screen.getByTestId('configure-agents-terminal-claude')).toBeTruthy();++ fireEvent.click(fold);expect(screen.getByTestId('configure-agents-terminal-codex')).toBeTruthy();+ expect(fold.textContent).toContain('Show less');});test('an absent CLI shows the Not installed hint; a present one does not', async () => {renderSection();+ await expandTerminal();await screen.findByTestId('configure-agents-terminal-codex');// codex CLI probed absent -> hint; claude probed present -> no hint. The// desktop rows also render "Not installed" hints in other states, sodiff --git a/packages/app/src/components/settings/ConfigureAgentsSection.tsx b/packages/app/src/components/settings/ConfigureAgentsSection.tsxindex fa698761b..8fc40b6df 100644--- a/packages/app/src/components/settings/ConfigureAgentsSection.tsx+++ b/packages/app/src/components/settings/ConfigureAgentsSection.tsx@@ -37,7 +37,7 @@ import {isInAppAgentEnabled,isTerminalCliEnabled,} from '@/lib/acp/agent-visibility';-import { type CatalogAgent, fetchAgentCatalog } from '@/lib/acp/catalog';+import { type CatalogAgent, fetchAgentCatalog, harnessPresenceRank } from '@/lib/acp/catalog';import {desktopEnabledKey,inAppEnabledKey,@@ -125,6 +125,11 @@ function AgentGroup({export function ConfigureAgentsSection(): ReactNode {const { t } = useLingui();+ // Both group folds render through here so they extract as ONE message. Lingui+ // puts the placeholder's variable name in the msgid, so labelling them inline+ // would fork `Show {inAppHiddenCount} more` and `Show {terminalHiddenCount} more`+ // into two catalog entries with two sets of translations to keep in step.+ const showMoreLabel = (hiddenCount: number): string => t`Show ${hiddenCount} more`;const overrides = useEnabledOverrides();const registered = useRegisteredAgents();const { states, refresh } = useInstalledAgents();@@ -135,6 +140,7 @@ export function ConfigureAgentsSection(): ReactNode {// In app list is collapsed to the harness-mapped agents by default; this// reveals the long tail.const [showInAppOverflow, setShowInAppOverflow] = useState(false);+ const [showTerminalOverflow, setShowTerminalOverflow] = useState(false);const catalog = useQuery({queryKey: ['acp-catalog'],@@ -165,19 +171,36 @@ export function ConfigureAgentsSection(): ReactNode {const matches = (text: string): boolean => q === '' || text.toLowerCase().includes(q);const inAppAgents = (catalogAgents ?? []).filter((agent) => matches(agent.name));+ // Presence-first inside Terminal and Desktop too, on the same three-valued rule+ // the In-app list uses: a probe that has positively answered `false` sinks, and+ // pending sorts with present so a slow probe never buries a tool you have.+ // Without this the Terminal group interleaved the not-installed CLIs among the+ // installed ones in catalogue order.+ // Fail-open: `installedClis` starts `{}` and fills from an async probe, so a+ // missing key is pending, not absent. Only a positive `false` counts against a+ // CLI. One definition drives the sort, the fold and the group ordering below.+ const cliPresent = (cli: TerminalCli): boolean => installedClis[cli] !== false;const terminalClis =terminalLaunch !== null- ? TERMINAL_CLI_IDS.filter((cli) => matches(TERMINAL_CLIS[cli].displayName))+ ? TERMINAL_CLI_IDS.filter((cli) => matches(TERMINAL_CLIS[cli].displayName)).sort(+ (a, b) =>+ Number(cliPresent(b)) - Number(cliPresent(a)) ||+ TERMINAL_CLIS[a].displayName.localeCompare(TERMINAL_CLIS[b].displayName),+ ): [];// Filter on the RENDERED label ("Claude Desktop"), not the bare brand, so a// search for "desktop" finds this group the way the eye does — plus the// target id, mirroring the command palette's keywords: the id preserves the// Codex lineage after the ChatGPT rebrand, so searching "codex" still finds- // that row.+ // that row. Sorted present-first on the same rule as the other two groups.+ // `.filter` already returns a fresh array, so the in-place `.sort` below cannot+ // reach `VISIBLE_TARGETS` — no defensive copy needed.const desktopTargets = VISIBLE_TARGETS.filter((target) => {const { displayName } = target;return matches(t`${displayName} Desktop`) || matches(target.id);- });+ }).sort(+ (a, b) => Number(states[a.id]?.installed === false) - Number(states[b.id]?.installed === false),+ );// With a query active, hide a group that has no matches; when every group is// empty, show a single no-results line instead of three empty boxes.@@ -206,15 +229,247 @@ export function ConfigureAgentsSection(): ReactNode {agent.supported,);};- // Default view = the harness-mapped agents (the server attaches `harness`- // exactly for the `ACP_AGENT_HARNESS_CLIS` set, i.e. the ones that also appear- // in the Terminal section), plus any agent the user has turned on so an- // enabled agent never hides behind "Show more". Searching or expanding shows- // the full list.- const inAppPrimary = inAppAgents.filter((a) => a.harness !== undefined || inAppChecked(a));- const inAppShown = searching || showInAppOverflow ? inAppAgents : inAppPrimary;+ // Default view = harness-mapped agents the probe has NOT ruled out (present or+ // still pending), plus any agent the user has turned on so an enabled agent+ // never hides behind "Show more". Searching or expanding shows the full list.+ //+ // The `harness !== undefined` test alone used to admit every agent in the+ // `ACP_AGENT_HARNESS_CLIS` set regardless of what its probe found, so agents+ // this machine cannot run occupied the default rows while the ones it can run+ // sat below the fold. The probe result was already on the row; nothing read it.+ // One predicate for both the fold and the sort, so "what stays visible" and+ // "what floats to the top" can never disagree.+ //+ // Note `harnessPresenceRank` alone is NOT enough here: it returns 0 for an+ // agent with no harness at all, so scoring on it left every harness-free+ // catalogue agent tied with the real ones and only sank the explicitly+ // not-found few.+ const isPrimaryAgent = (a: CatalogAgent): boolean =>+ (a.harness !== undefined && harnessPresenceRank(a) === 0) || inAppChecked(a);+ const inAppPrimary = inAppAgents.filter(isPrimaryAgent);+ // Expanding must not scatter the agents that run here back into catalogue+ // order — they stay pinned at the top and everything else falls in+ // alphabetically, which is the only order that means anything for a list of+ // tools the machine has no opinion about. `sort` mutates, hence the copy.+ const inAppShown = [...(searching || showInAppOverflow ? inAppAgents : inAppPrimary)].sort(+ (a, b) => Number(isPrimaryAgent(b)) - Number(isPrimaryAgent(a)) || a.name.localeCompare(b.name),+ );const inAppHiddenCount = searching ? 0 : inAppAgents.length - inAppPrimary.length;+ // Terminal folds on the same rule. Most CLIs are not installed on any given+ // machine, so the full list is the same wall of noise the In-app fold exists+ // to cut, one group down.+ const terminalPrimary = terminalClis.filter(cliPresent);+ const terminalFoldable =+ terminalPrimary.length > 0 && terminalPrimary.length < terminalClis.length;+ const terminalShown =+ !terminalFoldable || searching || showTerminalOverflow ? terminalClis : terminalPrimary;+ const terminalHiddenCount =+ terminalFoldable && !searching ? terminalClis.length - terminalPrimary.length : 0;++ // Group ordering: a group holding something present sorts above one that does+ // not. Two tiers, matching the rule this file already applies per row rather+ // than inventing a third for ordering.+ //+ // Terminal is FAIL-OPEN (`cliPresent`, `!== false`): a terminal row only opens+ // a shell we own, so a probe that has not answered holds its place rather than+ // sinking and jumping back when it lands.+ //+ // External apps are STRICT (`=== true`), the same bar `isDesktopTargetEnabled`+ // applies to the rows: those deep-link into another application, so an+ // unresolved probe waits rather than asserting presence it cannot back.+ //+ // In app is held up entirely while its catalog is in flight — the rows arrive+ // asynchronously, and scoring the group on a not-yet-populated list would sort+ // it to the bottom and visibly jump it back on every open of this tab.+ const inAppHasPresent =+ !catalogReady || inAppAgents.some((a) => a.harness?.availability === 'present');+ const terminalHasPresent = terminalClis.some(cliPresent);+ const desktopHasPresent = desktopTargets.some((tg) => states[tg.id]?.installed === true);++ // In app — server-hosted agents from the registry catalog.+ const inAppGroup = showInApp ? (+ <AgentGroup+ key="in-app"+ label={+ <span className="inline-flex items-center gap-1.5">+ {t`In app`}+ <AgentBetaBadge />+ </span>+ }+ labelId="settings-configure-agents-in-app"+ >+ {catalog.isLoading ? (+ <div className="flex items-center justify-center gap-2 px-3 py-6 text-muted-foreground text-sm">+ <Spinner className="size-4" aria-hidden="true" />+ {t`Loading agents…`}+ </div>+ ) : catalog.isError ? (+ <div className="flex flex-col items-center gap-2 px-3 py-6 text-center text-muted-foreground text-sm">+ <WifiOff className="size-5" aria-hidden="true" />+ <span>{t`Couldn't reach the agent registry.`}</span>+ <Button type="button" variant="outline" size="sm" onClick={() => void catalog.refetch()}>+ {t`Retry`}+ </Button>+ </div>+ ) : (catalogAgents?.length ?? 0) === 0 ? (+ <p className="px-3 py-6 text-center text-muted-foreground text-sm">+ {t`No agents available.`}+ </p>+ ) : (+ <>+ {inAppShown.map((agent: CatalogAgent) => {+ // `inAppChecked` folds in registration + present-harness detection,+ // matching the launcher menus so this toggle and the menus agree.+ const checked = inAppChecked(agent);+ // Muted subtitle: the platform gate wins (disabled rows say why),+ // otherwise the catalog's own blurb (e.g. "ACP wrapper for Cursor").+ // Deliberately NOT `license` (an SPDX string like "Apache-2.0") and+ // NOT the harness probe (a flaky server-side PATH check) — only the+ // human description belongs here.+ const hint = !agent.supported ? t`Not available on this platform` : agent.description;+ return (+ <AgentRow+ key={`${agent.source}:${agent.id}`}+ icon={+ <RegisteredAgentIcon+ agentId={agent.id}+ iconUrl={agent.iconUrl}+ className="size-4"+ />+ }+ name={agent.name}+ hint={hint}+ checked={checked}+ disabled={!agent.supported}+ ariaLabel={t`Enable ${agent.name}`}+ testId={`configure-agents-in-app-${agent.source}:${agent.id}`}+ onToggle={(next) => {+ if (next) {+ // Enabling registers the agent for visibility only (caches+ // name/icon so the menus can render it) and records an+ // explicit override. `makeDefault: false` keeps the launch+ // default put — enabling here is a visibility action, not a+ // pick; only choosing an agent in a launcher sets the default.+ registerAgent(+ {+ source: agent.source,+ id: agent.id,+ name: agent.name,+ supported: agent.supported,+ featured: agent.featured,+ ...(agent.iconUrl !== undefined ? { iconUrl: agent.iconUrl } : {}),+ },+ { makeDefault: false },+ );+ setAgentEnabled(inAppEnabledKey(agent.source, agent.id), true);+ } else {+ setAgentEnabled(inAppEnabledKey(agent.source, agent.id), false);+ // If this agent was the launch default, move the default to+ // the next still-enabled agent (or clear it) so the composer+ // stops showing a just-disabled agent as selected. The+ // disabled agent is excluded by key, so the pre-toggle+ // `overrides` snapshot is accurate for the remaining agents.+ reassignDefaultIfDisabled(`${agent.source}:${agent.id}`, (a) =>+ isInAppAgentEnabled(overrides, a.source, a.id, true, a.supported),+ );+ }+ }}+ />+ );+ })}+ {inAppHiddenCount > 0 ? (+ <Button+ type="button"+ variant="ghost"+ onClick={() => setShowInAppOverflow((v) => !v)}+ className="w-full justify-center rounded-none font-normal text-1sm text-muted-foreground"+ data-testid="configure-agents-in-app-show-more"+ >+ {showInAppOverflow ? t`Show less` : showMoreLabel(inAppHiddenCount)}+ </Button>+ ) : null}+ </>+ )}+ </AgentGroup>+ ) : null;++ // Terminal — docked-terminal CLI launchers. Desktop-only (no web shell).+ const terminalGroup = showTerminal ? (+ <AgentGroup key="terminal" label={t`Terminal`} labelId="settings-configure-agents-terminal">+ {terminalShown.map((cli: TerminalCli) => {+ const { displayName } = TERMINAL_CLIS[cli];+ const notInstalled = installedClis[cli] === false;+ return (+ <AgentRow+ key={cli}+ icon={<TargetIcon id={cliIconTargetId(cli)} className="size-4" aria-hidden="true" />}+ name={t`${displayName} CLI`}+ hint={notInstalled ? t`Not installed` : undefined}+ checked={isTerminalCliEnabled(overrides, cli, installedClis)}+ ariaLabel={t`Enable ${displayName} CLI`}+ testId={`configure-agents-terminal-${cli}`}+ onToggle={(next) => setAgentEnabled(terminalEnabledKey(cli), next)}+ />+ );+ })}+ {terminalHiddenCount > 0 ? (+ <Button+ type="button"+ variant="ghost"+ onClick={() => setShowTerminalOverflow((v) => !v)}+ className="w-full justify-center rounded-none font-normal text-1sm text-muted-foreground"+ data-testid="configure-agents-terminal-show-more"+ >+ {showTerminalOverflow ? t`Show less` : showMoreLabel(terminalHiddenCount)}+ </Button>+ ) : null}+ </AgentGroup>+ ) : null;++ // External apps — detected desktop apps reached by deep-link handoff. Every+ // installed one is on by default; the toggle is how a user hides one, or shows+ // one they haven't installed yet (it routes to the installer).+ const desktopGroup = showDesktop ? (+ <AgentGroup+ key="desktop"+ label={t`External apps`}+ labelId="settings-configure-agents-desktop"+ labelIcon={<ArrowUpRight aria-hidden="true" className="size-3" />}+ >+ {desktopTargets.map((target) => {+ const installed = states[target.id]?.installed ?? null;+ const { displayName } = target;+ return (+ <AgentRow+ key={target.id}+ icon={<TargetIcon id={target.id} className="size-4" aria-hidden="true" />}+ name={t`${displayName} Desktop`}+ // Only show the hint once the probe positively reports absent;+ // `null` is detection-pending, not "not installed".+ hint={installed === false ? t`Not installed` : undefined}+ checked={isDesktopTargetEnabled(overrides, target.id, installed)}+ ariaLabel={t`Enable ${displayName} Desktop`}+ testId={`configure-agents-desktop-${target.id}`}+ onToggle={(next) => setAgentEnabled(desktopEnabledKey(target.id), next)}+ />+ );+ })}+ </AgentGroup>+ ) : null;++ // Present-bearing groups first; ties keep the declared order (In app,+ // Terminal, Desktop) so the layout only moves when the machine says it should.+ // Each group carries its own `key`, so React reconciles them across a reorder+ // instead of remounting whichever section happens to land in a given slot.+ const groups = [+ { node: inAppGroup, hasPresent: inAppHasPresent },+ { node: terminalGroup, hasPresent: terminalHasPresent },+ { node: desktopGroup, hasPresent: desktopHasPresent },+ ]+ .sort((a, b) => Number(b.hasPresent) - Number(a.hasPresent))+ .map((g) => g.node);+const titleId = 'settings-configure-agents-title';return (@@ -256,173 +511,7 @@ export function ConfigureAgentsSection(): ReactNode {</p>) : null}- {/* In app — server-hosted agents from the registry catalog. */}- {showInApp ? (- <AgentGroup- label={- <span className="inline-flex items-center gap-1.5">- {t`In app`}- <AgentBetaBadge />- </span>- }- labelId="settings-configure-agents-in-app"- >- {catalog.isLoading ? (- <div className="flex items-center justify-center gap-2 px-3 py-6 text-muted-foreground text-sm">- <Spinner className="size-4" aria-hidden="true" />- {t`Loading agents…`}- </div>- ) : catalog.isError ? (- <div className="flex flex-col items-center gap-2 px-3 py-6 text-center text-muted-foreground text-sm">- <WifiOff className="size-5" aria-hidden="true" />- <span>{t`Couldn't reach the agent registry.`}</span>- <Button- type="button"- variant="outline"- size="sm"- onClick={() => void catalog.refetch()}- >- {t`Retry`}- </Button>- </div>- ) : (catalogAgents?.length ?? 0) === 0 ? (- <p className="px-3 py-6 text-center text-muted-foreground text-sm">- {t`No agents available.`}- </p>- ) : (- <>- {inAppShown.map((agent: CatalogAgent) => {- // `inAppChecked` folds in registration + present-harness detection,- // matching the launcher menus so this toggle and the menus agree.- const checked = inAppChecked(agent);- // Muted subtitle: the platform gate wins (disabled rows say why),- // otherwise the catalog's own blurb (e.g. "ACP wrapper for Cursor").- // Deliberately NOT `license` (an SPDX string like "Apache-2.0") and- // NOT the harness probe (a flaky server-side PATH check) — only the- // human description belongs here.- const hint = !agent.supported- ? t`Not available on this platform`- : agent.description;- return (- <AgentRow- key={`${agent.source}:${agent.id}`}- icon={- <RegisteredAgentIcon- agentId={agent.id}- iconUrl={agent.iconUrl}- className="size-4"- />- }- name={agent.name}- hint={hint}- checked={checked}- disabled={!agent.supported}- ariaLabel={t`Enable ${agent.name}`}- testId={`configure-agents-in-app-${agent.source}:${agent.id}`}- onToggle={(next) => {- if (next) {- // Enabling registers the agent for visibility only (caches- // name/icon so the menus can render it) and records an- // explicit override. `makeDefault: false` keeps the launch- // default put — enabling here is a visibility action, not a- // pick; only choosing an agent in a launcher sets the default.- registerAgent(- {- source: agent.source,- id: agent.id,- name: agent.name,- supported: agent.supported,- featured: agent.featured,- ...(agent.iconUrl !== undefined ? { iconUrl: agent.iconUrl } : {}),- },- { makeDefault: false },- );- setAgentEnabled(inAppEnabledKey(agent.source, agent.id), true);- } else {- setAgentEnabled(inAppEnabledKey(agent.source, agent.id), false);- // If this agent was the launch default, move the default to- // the next still-enabled agent (or clear it) so the composer- // stops showing a just-disabled agent as selected. The- // disabled agent is excluded by key, so the pre-toggle- // `overrides` snapshot is accurate for the remaining agents.- reassignDefaultIfDisabled(`${agent.source}:${agent.id}`, (a) =>- isInAppAgentEnabled(overrides, a.source, a.id, true, a.supported),- );- }- }}- />- );- })}- {inAppHiddenCount > 0 ? (- <Button- type="button"- variant="ghost"- onClick={() => setShowInAppOverflow((v) => !v)}- className="w-full justify-center rounded-none font-normal text-1sm text-muted-foreground"- data-testid="configure-agents-in-app-show-more"- >- {showInAppOverflow ? t`Show less` : t`Show ${inAppHiddenCount} more`}- </Button>- ) : null}- </>- )}- </AgentGroup>- ) : null}-- {/* Terminal — docked-terminal CLI launchers. Desktop-only (no web shell). */}- {showTerminal ? (- <AgentGroup label={t`Terminal`} labelId="settings-configure-agents-terminal">- {terminalClis.map((cli: TerminalCli) => {- const { displayName } = TERMINAL_CLIS[cli];- const notInstalled = installedClis[cli] === false;- return (- <AgentRow- key={cli}- icon={- <TargetIcon id={cliIconTargetId(cli)} className="size-4" aria-hidden="true" />- }- name={t`${displayName} CLI`}- hint={notInstalled ? t`Not installed` : undefined}- checked={isTerminalCliEnabled(overrides, cli, installedClis)}- ariaLabel={t`Enable ${displayName} CLI`}- testId={`configure-agents-terminal-${cli}`}- onToggle={(next) => setAgentEnabled(terminalEnabledKey(cli), next)}- />- );- })}- </AgentGroup>- ) : null}-- {/* External apps — detected desktop apps reached by deep-link handoff.- Every installed one is on by default; the toggle is how a user hides- one, or shows one they haven't installed yet (it routes to the- installer). */}- {showDesktop ? (- <AgentGroup- label={t`External apps`}- labelId="settings-configure-agents-desktop"- labelIcon={<ArrowUpRight aria-hidden="true" className="size-3" />}- >- {desktopTargets.map((target) => {- const installed = states[target.id]?.installed ?? null;- const { displayName } = target;- return (- <AgentRow- key={target.id}- icon={<TargetIcon id={target.id} className="size-4" aria-hidden="true" />}- name={t`${displayName} Desktop`}- // Only show the hint once the probe positively reports absent;- // `null` is detection-pending, not "not installed".- hint={installed === false ? t`Not installed` : undefined}- checked={isDesktopTargetEnabled(overrides, target.id, installed)}- ariaLabel={t`Enable ${displayName} Desktop`}- testId={`configure-agents-desktop-${target.id}`}- onToggle={(next) => setAgentEnabled(desktopEnabledKey(target.id), next)}- />- );- })}- </AgentGroup>- ) : null}+ {groups}</section>);}diff --git a/packages/app/src/components/settings/SkillTargetsPicker.tsx b/packages/app/src/components/settings/SkillTargetsPicker.tsxindex 66d0156b6..693bd7644 100644--- a/packages/app/src/components/settings/SkillTargetsPicker.tsx+++ b/packages/app/src/components/settings/SkillTargetsPicker.tsx@@ -100,6 +100,15 @@ export function SkillTargetsPicker({ scope }: { scope: SkillScope }) {// or a parent's) has nothing left to merge and was the "why is that// still in the list" bug — picking it could only fail. Order is list// order: no name-based promotion of any root.+ //+ // `absent` stays offerable, and only because the server now filters+ // this list to roots whose agent home exists. So an absent row means+ // "`.claude` is here, `.claude/skills` is not yet" — linking it+ // creates a skills dir inside a dotdir the user already has, which is+ // squarely inside the consent boundary. Before that filter the same+ // disjunct offered `~/.copilot/skills` on a machine with no Copilot,+ // and accepting it created `~/.copilot` — after which OK's own+ // directory-based detection reported Copilot as installed.const targets = folders.filter((o) => o.root !== f.root && (o.state === 'own' || o.state === 'absent'),);@@ -124,11 +133,6 @@ export function SkillTargetsPicker({ scope }: { scope: SkillScope }) {title={t`OK last set this folder to ${f.expected ?? ''} — something outside OK changed it since. The state shown is what's on disk now; your next Symlink/Unlink wins.`}/>) : null}- {f.state === 'absent' ? (- <span className="shrink-0 text-[10px] text-muted-foreground uppercase tracking-wide">- <Trans>absent</Trans>- </span>- ) : null}{f.state === 'linked-parent' ? (<spanclassName="shrink-0 text-[10px] text-muted-foreground uppercase tracking-wide"diff --git a/packages/app/src/lib/acp/catalog.ts b/packages/app/src/lib/acp/catalog.tsindex 0c32b954b..acf33bd98 100644--- a/packages/app/src/lib/acp/catalog.ts+++ b/packages/app/src/lib/acp/catalog.ts@@ -40,6 +40,23 @@ export function detectedHarnessAgents(agents: readonly CatalogAgent[]): CatalogA.sort((a, b) => rank(a.id) - rank(b.id));}+/**+ * Sort rank by what the harness probe found: 0 for an agent whose CLI is on the+ * host or whose probe has not landed yet, 1 for one the probe positively+ * reported absent.+ *+ * `unknown` ranks WITH `present`, not with `not-found` — a probe that has not+ * answered is pending, not a negative result, and burying an agent the user+ * actually has behind a fold because a PATH check was slow is the worse failure.+ * Same three-valued discipline the Desktop rows already apply to their own probe.+ *+ * Distinct from `detectedHarnessAgents`, which filters strictly to `present`+ * because its callers need a positive answer; this one only orders.+ */+export function harnessPresenceRank(agent: CatalogAgent): number {+ return agent.harness?.availability === 'not-found' ? 1 : 0;+}+export interface AgentCatalog {agents: CatalogAgent[];/** True when the server served its offline fallback cache. */diff --git a/packages/app/src/lib/skill-install-rows.test.ts b/packages/app/src/lib/skill-install-rows.test.tsindex ccf07275e..a5d2edfc4 100644--- a/packages/app/src/lib/skill-install-rows.test.ts+++ b/packages/app/src/lib/skill-install-rows.test.ts@@ -49,7 +49,10 @@ describe('host rows', () => {const withHub = derive(base, {allSkills: [entry({ name: 'other', path: '.agents/skills/other/SKILL.md' })],});- expect(withHub.rows[0]).toBe('agents');+ expect(withHub.rows).toContain('agents');+ // The hub sorts LAST, under the concrete host rows: it is a vendor-neutral+ // fallback, not where most installs go.+ expect(withHub.rows.at(-1)).toBe('agents');});it('activates the hub row when the skill itself lists it as a host', () => {diff --git a/packages/app/src/lib/skill-install-rows.ts b/packages/app/src/lib/skill-install-rows.tsindex 1c62e6278..f7c826dcc 100644--- a/packages/app/src/lib/skill-install-rows.ts+++ b/packages/app/src/lib/skill-install-rows.ts@@ -141,8 +141,11 @@ export function deriveSkillInstallRows({? allSkills.find((s) => s.scope === skill.scope)?.installableEditors: undefined);const installable = installableList ? new Set<string>(installableList) : null;+ // The hub sorts LAST. It is a vendor-neutral fallback rather than a place most+ // people install, so it belongs under the concrete host rows and the SOURCE+ // row, not above them where it used to sit.const rows: SkillInstallTarget[] = (- hubActive ? (['agents', ...INSTALL_EDITORS] as SkillInstallTarget[]) : INSTALL_EDITORS+ hubActive ? ([...INSTALL_EDITORS, 'agents'] as SkillInstallTarget[]) : INSTALL_EDITORS).filter((e) => !(e in aliases)).filter((e) => e === 'agents' || installable === null || installable.has(e) || hostSet.has(e));diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex f603a6a62..a6895e2c6 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -1533,6 +1533,7 @@"IInnZo": ["تعارض"],"IKoTAC": ["إبقاؤه معطّلًا"],"IMLUBh": ["قيمة لون غير صالحة"],+ "INN7OX": ["إظهار ", ["hiddenCount"], " إضافية"],"INp_z6": ["علّق على ", ["0"], " هذا أو اسأل الذكاء الاصطناعي عنه"],"IO8REi": ["تعذّر فتح «", ["name"], "»: ", ["0"]],"IQPyrD": ["صفحة مفقودة — انقر لإنشائها"],@@ -1639,7 +1640,6 @@"KDrbNG": ["بحث OpenKnowledge عن روابط ", ["subject"]],"KDuPiY": ["يجري رفع ", ["fileName"]],"KDw4GX": ["أعد المحاولة"],- "KFd4xz": ["غائب"],"KGF42E": ["أُغلقت لوحة الوكيل لإبقاء Terminal سهل القراءة."],"KGJb9_": ["التعارضات"],"KH5bQi": ["يُستخدم متغير البيئة <0>OK_EMBEDDINGS_API_KEY</0> (مُدار خارج OpenKnowledge)."],@@ -1844,6 +1844,7 @@"MJuO1q": ["نافذة السياق:"],"MKEPCY": ["متابعة"],"MLVPcm": [["0"], " الإصدار ", ["1"]],+ "MOAoFO": ["لا توجد مجلدات وكلاء بعد"],"MPpSAg": ["إنشاء مشروع جديد من ", ["selectedPackName"]],"MQ5LOx": ["أعِد ",@@ -3073,7 +3074,6 @@"b4itZn": ["يعمل"],"b5aNbi": ["تعذّر فتح ", ["targetNoun"], " — حاول الانتقال إليه يدويًا."],"b6Fgpe": ["تبني كل حزمة هيكل مشروعك بمجلدات وقوالب جاهزة."],- "bBE5tC": ["مكتشف على هذا الجهاز"],"bBcFK_": ["فتح منتقي الرموز التعبيرية لـ ", ["keyName"]],"bD8I7O": ["مكتمل"],"bDiiSM": ["مشمول بالفعل ضمن مجلد أصل مختار"],@@ -4167,7 +4167,6 @@". جرّب <0>ok status</0> أو راجع <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["سجّل الدخول إلى ", ["agentName"], " للمتابعة."],- "np9pbC": ["إظهار ", ["inAppHiddenCount"], " إضافية"],"npcziF": ["التثبيت على"],"nqV0Kk": ["لم يُزامَن هذا المجلد مع GitHub بعد. سيعمل الرابط بعد المزامنة التالية."],"nrGWJ7": [diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex ce0e9bc71..c97e679e3 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -1188,10 +1188,6 @@ msgstr "حول {appName}"msgid "Above"msgstr "أعلى"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "غائب"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "قبول"@@ -4272,10 +4268,6 @@ msgstr "تفاصيل الخطأ الذي واجهته للتو مُدرجة. تmsgid "Detected in {0}"msgstr "مكتشف في {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "مكتشف على هذا الجهاز"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "مشاريع OpenKnowledge المكتشفة"@@ -7908,6 +7900,10 @@ msgstr "لا يوجد ملف <0>.markdownlint.*</0> بعد — تعمل كل قmsgid "No active or recent OpenKnowledge projects were found."msgstr "لم يُعثر على مشاريع OpenKnowledge نشطة أو حديثة."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "لا توجد مجلدات وكلاء بعد"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "لم يُعدّ أي وكيل بعد — يجري فتح «إعداد الوكلاء»."@@ -11221,9 +11217,10 @@ msgstr "إظهار {0} إضافية"msgid "Show {hidden} more"msgstr "إظهار {hidden} إضافية"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "إظهار {inAppHiddenCount} إضافية"+msgid "Show {hiddenCount} more"+msgstr "إظهار {hiddenCount} إضافية"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "الإظهار في المستعرض"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "إظهار أقل"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex f9481e742..7bdada227 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -1284,6 +1284,7 @@"IInnZo": ["দ্বন্দ্ব"],"IKoTAC": ["নিষ্ক্রিয়ই রাখুন"],"IMLUBh": ["অবৈধ রঙের মান"],+ "INN7OX": ["আরও ", ["hiddenCount"], "টি দেখান"],"INp_z6": ["এই ", ["0"], " নিয়ে মন্তব্য করুন বা AI-কে জিজ্ঞাসা করুন"],"IO8REi": ["\"", ["name"], "\" খোলা যায়নি: ", ["0"]],"IQPyrD": ["অনুপস্থিত পাতা — তৈরি করতে ক্লিক করুন"],@@ -1377,7 +1378,6 @@"KDrbNG": ["OpenKnowledge ", ["subject"], " এর লিংক খুঁজেছে"],"KDuPiY": [["fileName"], " আপলোড করা হচ্ছে"],"KDw4GX": ["আবার চেষ্টা করুন"],- "KFd4xz": ["অনুপস্থিত"],"KGF42E": ["Terminal পাঠযোগ্য রাখতে এজেন্ট প্যানেল বন্ধ করা হয়েছে।"],"KGJb9_": ["দ্বন্দ্ব"],"KH5bQi": [@@ -1546,6 +1546,7 @@"MJuO1q": ["প্রসঙ্গ জানালা:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " সংস্করণ ", ["1"]],+ "MOAoFO": ["এখনও কোনো এজেন্ট ফোল্ডার নেই"],"MPpSAg": [["selectedPackName"], " থেকে নতুন প্রকল্প তৈরি করুন"],"MQ5LOx": [["display"],@@ -2638,7 +2639,6 @@"b4itZn": ["কাজ চলছে"],"b5aNbi": [["targetNoun"], " খোলা যায়নি — সেখানে হাতে যাওয়ার চেষ্টা করুন।"],"b6Fgpe": ["প্রতিটি প্যাক আপনার প্রকল্পকে তৈরি ফোল্ডার ও টেমপ্লেট দিয়ে কাঠামো দেয়।"],- "bBE5tC": ["এই মেশিনে শনাক্ত হয়েছে"],"bBcFK_": [["keyName"], "-এর জন্য ইমোজি নির্বাচক খুলুন"],"bD8I7O": ["সম্পূর্ণ"],"bDiiSM": ["নির্বাচিত মূল ফোল্ডারে আগে থেকেই অন্তর্ভুক্ত"],@@ -3568,7 +3568,6 @@"। <0>ok status</0> চেষ্টা করুন বা <1>.ok/local/last-spawn-error.log</1> দেখুন।"],"np2zZM": ["চালিয়ে যেতে ", ["agentName"], "-এ সাইন ইন করুন।"],- "np9pbC": ["আরও ", ["inAppHiddenCount"], "টি দেখান"],"npcziF": ["এতে ইনস্টল করুন"],"nqV0Kk": ["এই ফোল্ডারটি এখনও GitHub-এ সিঙ্ক হয়নি। পরের সিঙ্কের পর লিংকটি কাজ করবে।"],"nrGWJ7": [diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex f1b81f2e4..52705f6e3 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -1184,10 +1184,6 @@ msgstr "{appName} সম্পর্কে"msgid "Above"msgstr "উপরে"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "অনুপস্থিত"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "গ্রহণ করুন"@@ -4268,10 +4264,6 @@ msgstr "আপনি এইমাত্র যে ত্রুটিতে পmsgid "Detected in {0}"msgstr "{0}-এ শনাক্ত হয়েছে"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "এই মেশিনে শনাক্ত হয়েছে"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "শনাক্ত হওয়া OpenKnowledge প্রকল্প"@@ -7904,6 +7896,10 @@ msgstr "এখনও কোনো <0>.markdownlint.*</0> ফাইল নেইmsgid "No active or recent OpenKnowledge projects were found."msgstr "সক্রিয় বা সাম্প্রতিক কোনো OpenKnowledge প্রকল্প পাওয়া যায়নি।"+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "এখনও কোনো এজেন্ট ফোল্ডার নেই"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "এখনও কোনো এজেন্ট সেট আপ করা নেই — Configure agents খোলা হচ্ছে।"@@ -11217,9 +11213,10 @@ msgstr "আরও {0}টি দেখান"msgid "Show {hidden} more"msgstr "আরও {hidden}টি দেখান"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "আরও {inAppHiddenCount}টি দেখান"+msgid "Show {hiddenCount} more"+msgstr "আরও {hiddenCount}টি দেখান"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11285,6 +11282,7 @@ msgid "Show in Explorer"msgstr "Explorer-এ দেখান"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "কম দেখান"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex c281403f0..8e0d92bb6 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -1325,6 +1325,7 @@"IInnZo": ["Conflict"],"IKoTAC": ["Keep disabled"],"IMLUBh": ["Invalid color value"],+ "INN7OX": ["Show ", ["hiddenCount"], " more"],"INp_z6": ["Comment or ask AI about this ", ["0"]],"IO8REi": ["Couldn't open \"", ["name"], "\": ", ["0"]],"IQPyrD": ["Missing page — click to create"],@@ -1420,7 +1421,6 @@"KDrbNG": ["OpenKnowledge looked up links for ", ["subject"]],"KDuPiY": ["Uploading ", ["fileName"]],"KDw4GX": ["Try again"],- "KFd4xz": ["absent"],"KGF42E": ["Agent panel closed to keep Terminal readable."],"KGJb9_": ["Conflicts"],"KH5bQi": [@@ -1594,6 +1594,7 @@"MJuO1q": ["Context window:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " version ", ["1"]],+ "MOAoFO": ["No agent folders yet"],"MPpSAg": ["Create new project from ", ["selectedPackName"]],"MQ5LOx": ["Turn ",@@ -2692,7 +2693,6 @@"b4itZn": ["Working"],"b5aNbi": ["The ", ["targetNoun"], " could not be opened — try navigating to it manually."],"b6Fgpe": ["Each pack scaffolds your project with ready-made folders and templates."],- "bBE5tC": ["Detected on this machine"],"bBcFK_": ["Open emoji picker for ", ["keyName"]],"bD8I7O": ["Complete"],"bDiiSM": ["Already covered by a picked parent folder"],@@ -3676,7 +3676,6 @@". Try <0>ok status</0> or check <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["Sign in to ", ["agentName"], " to continue."],- "np9pbC": ["Show ", ["inAppHiddenCount"], " more"],"npcziF": ["Install on"],"nqV0Kk": ["This folder hasn't synced to GitHub yet. The link will work after the next sync."],"nrGWJ7": [diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex d2e96c5e6..9c4f5ea02 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -1188,10 +1188,6 @@ msgstr "About {appName}"msgid "Above"msgstr "Above"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "absent"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "Accept"@@ -4272,10 +4268,6 @@ msgstr "Details about the error you just hit are included. Secrets like API keysmsgid "Detected in {0}"msgstr "Detected in {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "Detected on this machine"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "Detected OpenKnowledge projects"@@ -7908,6 +7900,10 @@ msgstr "No <0>.markdownlint.*</0> file yet — every rule runs on the same defaumsgid "No active or recent OpenKnowledge projects were found."msgstr "No active or recent OpenKnowledge projects were found."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "No agent folders yet"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "No agent is set up yet — opening Configure agents."@@ -11221,9 +11217,10 @@ msgstr "Show {0} more"msgid "Show {hidden} more"msgstr "Show {hidden} more"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "Show {inAppHiddenCount} more"+msgid "Show {hiddenCount} more"+msgstr "Show {hiddenCount} more"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "Show in Explorer"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "Show less"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 305dbafda..9619eac39 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -1552,6 +1552,7 @@"IInnZo": ["Conflicto"],"IKoTAC": ["Dejarlo desactivado"],"IMLUBh": ["Valor de color no válido"],+ "INN7OX": ["Mostrar ", ["hiddenCount"], " más"],"INp_z6": ["Comenta o pregunta a la IA sobre este ", ["0"]],"IO8REi": ["No se pudo abrir \"", ["name"], "\": ", ["0"]],"IQPyrD": ["Página inexistente: haz clic para crearla"],@@ -1663,7 +1664,6 @@"KDrbNG": ["OpenKnowledge consultó los enlaces de ", ["subject"]],"KDuPiY": ["Subiendo ", ["fileName"]],"KDw4GX": ["Inténtalo de nuevo"],- "KFd4xz": ["ausente"],"KGF42E": ["Se cerró el panel de agentes para mantener Terminal legible."],"KGJb9_": ["Conflictos"],"KH5bQi": [@@ -1864,6 +1864,7 @@"MJuO1q": ["Ventana de contexto:"],"MKEPCY": ["Seguir"],"MLVPcm": [["0"], " versión ", ["1"]],+ "MOAoFO": ["Aún no hay carpetas de agentes"],"MPpSAg": ["Crear proyecto a partir de ", ["selectedPackName"]],"MQ5LOx": ["Vuelve a convertir ",@@ -3125,7 +3126,6 @@"b4itZn": ["Trabajando"],"b5aNbi": ["No se pudo abrir ", ["targetNoun"], ": prueba a ir hasta ahí manualmente."],"b6Fgpe": ["Cada paquete prepara tu proyecto con carpetas y plantillas ya hechas."],- "bBE5tC": ["Detectado en este equipo"],"bBcFK_": ["Abrir el selector de emojis de ", ["keyName"]],"bD8I7O": ["Completo"],"bDiiSM": ["Ya cubierta por una carpeta principal seleccionada"],@@ -4258,7 +4258,6 @@". Prueba <0>ok status</0> o revisa <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["Inicia sesión en ", ["agentName"], " para continuar."],- "np9pbC": ["Mostrar ", ["inAppHiddenCount"], " más"],"npcziF": ["Instalar en"],"nqV0Kk": ["Esta carpeta todavía no se ha sincronizado con GitHub. El enlace funcionará tras la próxima sincronización."diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex a285738a8..6ebad19f4 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -1188,10 +1188,6 @@ msgstr "Acerca de {appName}"msgid "Above"msgstr "Arriba"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "ausente"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "Aceptar"@@ -4272,10 +4268,6 @@ msgstr "Se incluyen los detalles del error que acabas de encontrar. Los secretosmsgid "Detected in {0}"msgstr "Detectado en {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "Detectado en este equipo"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "Proyectos de OpenKnowledge detectados"@@ -7908,6 +7900,10 @@ msgstr "Todavía no hay ningún archivo <0>.markdownlint.*</0>: todas las reglasmsgid "No active or recent OpenKnowledge projects were found."msgstr "No se encontró ningún proyecto de OpenKnowledge activo ni reciente."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "Aún no hay carpetas de agentes"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "Todavía no hay ningún agente configurado: abriendo Configurar agentes."@@ -11221,9 +11217,10 @@ msgstr "Mostrar {0} más"msgid "Show {hidden} more"msgstr "Mostrar {hidden} más"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "Mostrar {inAppHiddenCount} más"+msgid "Show {hiddenCount} more"+msgstr "Mostrar {hiddenCount} más"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "Mostrar en el Explorador"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "Mostrar menos"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 0bc2ecb8a..00009545a 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -1575,6 +1575,7 @@"IInnZo": ["Conflit"],"IKoTAC": ["Laisser désactivé"],"IMLUBh": ["Valeur de couleur non valide"],+ "INN7OX": ["Afficher ", ["hiddenCount"], " de plus"],"INp_z6": ["Commenter ce ", ["0"], " ou interroger l’IA à son sujet"],"IO8REi": ["Impossible d'ouvrir « ", ["name"], " » : ", ["0"]],"IQPyrD": ["Page manquante — cliquez pour la créer"],@@ -1690,7 +1691,6 @@"KDrbNG": ["OpenKnowledge a consulté les liens de ", ["subject"]],"KDuPiY": ["Envoi de ", ["fileName"]],"KDw4GX": ["Réessayer"],- "KFd4xz": ["absent"],"KGF42E": ["Le panneau des agents a été fermé pour que Terminal reste lisible."],"KGJb9_": ["Conflits"],"KH5bQi": [@@ -1889,6 +1889,7 @@"MJuO1q": ["Fenêtre de contexte :"],"MKEPCY": ["Suivre"],"MLVPcm": [["0"], " version ", ["1"]],+ "MOAoFO": ["Aucun dossier d'agent pour l'instant"],"MPpSAg": ["Créer un projet à partir de ", ["selectedPackName"]],"MQ5LOx": ["Retransformez ",@@ -3155,7 +3156,6 @@"b4itZn": ["En cours"],"b5aNbi": [["targetNoun"], " n'a pas pu être ouvert — essayez d'y accéder manuellement."],"b6Fgpe": ["Chaque pack équipe votre projet de dossiers et de modèles prêts à l'emploi."],- "bBE5tC": ["Détecté sur cette machine"],"bBcFK_": ["Ouvrir le sélecteur d'émojis de ", ["keyName"]],"bD8I7O": ["Terminé"],"bDiiSM": ["Déjà couvert par un dossier parent sélectionné"],@@ -4291,7 +4291,6 @@". Essayez <0>ok status</0> ou consultez <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["Connectez-vous à ", ["agentName"], " pour continuer."],- "np9pbC": ["Afficher ", ["inAppHiddenCount"], " de plus"],"npcziF": ["Installer sur"],"nqV0Kk": ["Ce dossier n'est pas encore synchronisé avec GitHub. Le lien fonctionnera après la prochaine synchronisation."diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 404fa34cb..780c4d7f2 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -1188,10 +1188,6 @@ msgstr "À propos de {appName}"msgid "Above"msgstr "Au-dessus"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "absent"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "Accepter"@@ -4272,10 +4268,6 @@ msgstr "Les détails de l'erreur que vous venez de rencontrer sont inclus. Les smsgid "Detected in {0}"msgstr "Détecté dans {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "Détecté sur cette machine"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "Projets OpenKnowledge détectés"@@ -7908,6 +7900,10 @@ msgstr "Pas encore de fichier <0>.markdownlint.*</0> — chaque règle s'exécutmsgid "No active or recent OpenKnowledge projects were found."msgstr "Aucun projet OpenKnowledge actif ou récent n'a été trouvé."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "Aucun dossier d'agent pour l'instant"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "Aucun agent n'est encore configuré — ouverture de Configurer les agents."@@ -11221,9 +11217,10 @@ msgstr "Afficher {0} de plus"msgid "Show {hidden} more"msgstr "Afficher {hidden} de plus"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "Afficher {inAppHiddenCount} de plus"+msgid "Show {hiddenCount} more"+msgstr "Afficher {hiddenCount} de plus"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "Afficher dans l'Explorateur"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "Afficher moins"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex 6bf4d09d2..40d11cfc4 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -1278,6 +1278,7 @@"IInnZo": ["टकराव"],"IKoTAC": ["अक्षम ही रखें"],"IMLUBh": ["अमान्य रंग मान"],+ "INN7OX": [["hiddenCount"], " और दिखाएँ"],"INp_z6": ["इस ", ["0"], " पर टिप्पणी करें या AI से पूछें"],"IO8REi": ["\"", ["name"], "\" नहीं खोली जा सकी: ", ["0"]],"IQPyrD": ["अनुपस्थित पेज — बनाने के लिए क्लिक करें"],@@ -1375,7 +1376,6 @@"KDrbNG": ["OpenKnowledge ने ", ["subject"], " के लिंक खोजे"],"KDuPiY": [["fileName"], " अपलोड की जा रही है"],"KDw4GX": ["फिर कोशिश करें"],- "KFd4xz": ["अनुपस्थित"],"KGF42E": ["Terminal को पढ़ने योग्य बनाए रखने के लिए एजेंट पैनल बंद कर दिया गया।"],"KGJb9_": ["विरोध"],"KH5bQi": [@@ -1547,6 +1547,7 @@"MJuO1q": ["संदर्भ विंडो:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " संस्करण ", ["1"]],+ "MOAoFO": ["अभी तक कोई एजेंट फ़ोल्डर नहीं"],"MPpSAg": [["selectedPackName"], " से नया प्रोजेक्ट बनाएँ"],"MQ5LOx": [["display"],@@ -2626,7 +2627,6 @@"b4itZn": ["काम चल रहा है"],"b5aNbi": [["targetNoun"], " नहीं खोला जा सका — इस पर हाथ से जाने की कोशिश करें।"],"b6Fgpe": ["हर पैक आपके प्रोजेक्ट को तैयार फ़ोल्डर और टेम्पलेट के साथ ढाँचा देता है।"],- "bBE5tC": ["इस मशीन पर पाया गया"],"bBcFK_": [["keyName"], " के लिए इमोजी चयनकर्ता खोलें"],"bD8I7O": ["पूर्ण"],"bDiiSM": ["पहले से चुने गए मूल फ़ोल्डर में शामिल है"],@@ -3559,7 +3559,6 @@". <0>ok status</0> आज़माएँ या <1>.ok/local/last-spawn-error.log</1> देखें।"],"np2zZM": ["जारी रखने के लिए ", ["agentName"], " में साइन इन करें।"],- "np9pbC": [["inAppHiddenCount"], " और दिखाएँ"],"npcziF": ["इस पर इंस्टॉल करें"],"nqV0Kk": ["यह फ़ोल्डर अभी GitHub पर सिंक नहीं हुआ है। अगले सिंक के बाद लिंक काम करेगा।"],"nrGWJ7": [diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 6162a18b3..0e27c4157 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -1184,10 +1184,6 @@ msgstr "{appName} के बारे में"msgid "Above"msgstr "ऊपर"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "अनुपस्थित"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "स्वीकारें"@@ -4268,10 +4264,6 @@ msgstr "अभी आपको मिली त्रुटि का विवmsgid "Detected in {0}"msgstr "{0} में पाया गया"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "इस मशीन पर पाया गया"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "पाए गए OpenKnowledge प्रोजेक्ट"@@ -7904,6 +7896,10 @@ msgstr "अभी कोई <0>.markdownlint.*</0> फ़ाइल नहींmsgid "No active or recent OpenKnowledge projects were found."msgstr "कोई सक्रिय या हाल का OpenKnowledge प्रोजेक्ट नहीं मिला।"+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "अभी तक कोई एजेंट फ़ोल्डर नहीं"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "अभी कोई एजेंट सेट अप नहीं है — Configure agents खोला जा रहा है।"@@ -11217,9 +11213,10 @@ msgstr "{0} और दिखाएँ"msgid "Show {hidden} more"msgstr "{hidden} और दिखाएँ"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "{inAppHiddenCount} और दिखाएँ"+msgid "Show {hiddenCount} more"+msgstr "{hiddenCount} और दिखाएँ"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11285,6 +11282,7 @@ msgid "Show in Explorer"msgstr "Explorer में दिखाएँ"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "कम दिखाएँ"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex 2dd62add1..f5a1d7b4f 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -1328,6 +1328,7 @@"IInnZo": ["Konflik"],"IKoTAC": ["Biarkan nonaktif"],"IMLUBh": ["Nilai warna tidak valid"],+ "INN7OX": ["Tampilkan ", ["hiddenCount"], " lagi"],"INp_z6": ["Beri komentar atau tanya AI tentang ", ["0"], " ini"],"IO8REi": ["\"", ["name"], "\" tidak bisa dibuka: ", ["0"]],"IQPyrD": ["Halaman belum ada — klik untuk membuat"],@@ -1427,7 +1428,6 @@"KDrbNG": ["OpenKnowledge mencari tautan untuk ", ["subject"]],"KDuPiY": ["Mengunggah ", ["fileName"]],"KDw4GX": ["Coba lagi"],- "KFd4xz": ["tidak ada"],"KGF42E": ["Panel agen ditutup agar Terminal tetap mudah dibaca."],"KGJb9_": ["Konflik"],"KH5bQi": [@@ -1596,6 +1596,7 @@"MJuO1q": ["Jendela konteks:"],"MKEPCY": ["Ikuti"],"MLVPcm": [["0"], " versi ", ["1"]],+ "MOAoFO": ["Belum ada folder agen"],"MPpSAg": ["Buat proyek baru dari ", ["selectedPackName"]],"MQ5LOx": ["Mengubah ",@@ -2711,7 +2712,6 @@"b4itZn": ["Bekerja"],"b5aNbi": [["targetNoun"], " tidak dapat dibuka — coba menuju ke sana secara manual."],"b6Fgpe": ["Setiap paket menyusun proyek Anda dengan folder dan templat siap pakai."],- "bBE5tC": ["Terdeteksi di komputer ini"],"bBcFK_": ["Buka pemilih emoji untuk ", ["keyName"]],"bD8I7O": ["Lengkap"],"bDiiSM": ["Sudah tercakup oleh folder induk yang dipilih"],@@ -3707,7 +3707,6 @@". Coba <0>ok status</0> atau periksa <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["Masuk ke ", ["agentName"], " untuk melanjutkan."],- "np9pbC": ["Tampilkan ", ["inAppHiddenCount"], " lagi"],"npcziF": ["Pasang di"],"nqV0Kk": ["Folder ini belum tersinkron ke GitHub. Tautannya akan berfungsi setelah sinkronisasi berikutnya."diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex 0d5d4accb..e0b279fe8 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -1184,10 +1184,6 @@ msgstr "Tentang {appName}"msgid "Above"msgstr "Di atas"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "tidak ada"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "Terima"@@ -4268,10 +4264,6 @@ msgstr "Detail tentang galat yang baru Anda alami disertakan. Rahasia seperti kumsgid "Detected in {0}"msgstr "Terdeteksi di {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "Terdeteksi di komputer ini"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "Proyek OpenKnowledge yang terdeteksi"@@ -7904,6 +7896,10 @@ msgstr "Belum ada berkas <0>.markdownlint.*</0> — setiap aturan berjalan dengamsgid "No active or recent OpenKnowledge projects were found."msgstr "Tidak ditemukan proyek OpenKnowledge yang aktif maupun yang terbaru."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "Belum ada folder agen"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "Belum ada agen yang disiapkan — membuka Atur agen."@@ -11217,9 +11213,10 @@ msgstr "Tampilkan {0} lagi"msgid "Show {hidden} more"msgstr "Tampilkan {hidden} lagi"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "Tampilkan {inAppHiddenCount} lagi"+msgid "Show {hiddenCount} more"+msgstr "Tampilkan {hiddenCount} lagi"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11285,6 +11282,7 @@ msgid "Show in Explorer"msgstr "Tampilkan di Explorer"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "Tampilkan lebih sedikit"diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex da8cda285..d6adf5002 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -1274,6 +1274,7 @@"IInnZo": ["충돌"],"IKoTAC": ["사용 안 함 유지"],"IMLUBh": ["잘못된 색상 값"],+ "INN7OX": [["hiddenCount"], "개 더 보기"],"INp_z6": ["이 ", ["0"], "에 댓글을 남기거나 AI에 질문"],"IO8REi": ["\"", ["name"], "\" 열기 실패: ", ["0"]],"IQPyrD": ["누락된 페이지, 클릭하여 만들기"],@@ -1368,7 +1369,6 @@"KDrbNG": ["OpenKnowledge에서 ", ["subject"], " 링크 조회"],"KDuPiY": [["fileName"], " 업로드 중"],"KDw4GX": ["다시 시도"],- "KFd4xz": ["없음"],"KGF42E": ["Terminal을 읽기 쉽게 에이전트 패널을 닫았습니다."],"KGJb9_": ["충돌"],"KH5bQi": [@@ -1533,6 +1533,7 @@"MJuO1q": ["컨텍스트 창:"],"MKEPCY": ["팔로우"],"MLVPcm": [["0"], " 버전 ", ["1"]],+ "MOAoFO": ["아직 에이전트 폴더 없음"],"MPpSAg": [["selectedPackName"], "에서 새 프로젝트 만들기"],"MQ5LOx": [["display"],@@ -2599,7 +2600,6 @@"b4itZn": ["작업 중"],"b5aNbi": [["targetNoun"], " 열기에 실패했습니다. 직접 이동해 보세요."],"b6Fgpe": ["각 팩은 바로 사용할 수 있는 폴더와 템플릿으로 프로젝트의 뼈대를 만듭니다."],- "bBE5tC": ["이 컴퓨터에서 감지됨"],"bBcFK_": [["keyName"], " 이모지 선택기 열기"],"bD8I7O": ["완료"],"bDiiSM": ["선택한 상위 폴더에 이미 포함됨"],@@ -3542,7 +3542,6 @@". <0>ok status</0> 실행 또는 <1>.ok/local/last-spawn-error.log</1> 확인."],"np2zZM": ["계속하려면 ", ["agentName"], " 로그인."],- "np9pbC": [["inAppHiddenCount"], "개 더 보기"],"npcziF": ["설치 대상"],"nqV0Kk": ["이 폴더는 아직 GitHub와 동기화되지 않았습니다. 다음 동기화 후 링크가 작동합니다."],"nrGWJ7": [diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex aad22513b..190bced99 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -1188,10 +1188,6 @@ msgstr "{appName} 정보"msgid "Above"msgstr "위"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "없음"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "수락"@@ -4272,10 +4268,6 @@ msgstr "방금 발생한 오류에 대한 자세한 진단이 포함됩니다. Amsgid "Detected in {0}"msgstr "{0}에서 감지됨"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "이 컴퓨터에서 감지됨"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "감지된 OpenKnowledge 프로젝트"@@ -7908,6 +7900,10 @@ msgstr "아직 <0>.markdownlint.*</0> 파일이 없습니다. 모든 규칙은 Vmsgid "No active or recent OpenKnowledge projects were found."msgstr "활성 상태이거나 최근에 사용한 OpenKnowledge 프로젝트가 없습니다."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "아직 에이전트 폴더 없음"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "에이전트 미설정. 에이전트 설정을 엽니다."@@ -11221,9 +11217,10 @@ msgstr "{0}개 더 보기"msgid "Show {hidden} more"msgstr "{hidden}개 더 보기"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "{inAppHiddenCount}개 더 보기"+msgid "Show {hiddenCount} more"+msgstr "{hiddenCount}개 더 보기"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "탐색기에서 보기"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "적게 보기"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 65a8055c0..e8feb4d99 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -1325,6 +1325,7 @@"IInnZo": ["Ćōńƒĺĩćţ"],"IKoTAC": ["Ķēēƥ ďĩśàƀĺēď"],"IMLUBh": ["Ĩńvàĺĩď ćōĺōŕ vàĺũē"],+ "INN7OX": ["Śĥōŵ ", ["hiddenCount"], " ḿōŕē"],"INp_z6": ["Ćōḿḿēńţ ōŕ àśķ ÀĨ àƀōũţ ţĥĩś ", ["0"]],"IO8REi": ["Ćōũĺďń'ţ ōƥēń \"", ["name"], "\": ", ["0"]],"IQPyrD": ["Ḿĩśśĩńĝ ƥàĝē — ćĺĩćķ ţō ćŕēàţē"],@@ -1420,7 +1421,6 @@"KDrbNG": ["ŌƥēńĶńōŵĺēďĝē ĺōōķēď ũƥ ĺĩńķś ƒōŕ ", ["subject"]],"KDuPiY": ["Ũƥĺōàďĩńĝ ", ["fileName"]],"KDw4GX": ["Ţŕŷ àĝàĩń"],- "KFd4xz": ["àƀśēńţ"],"KGF42E": ["Àĝēńţ ƥàńēĺ ćĺōśēď ţō ķēēƥ Ţēŕḿĩńàĺ ŕēàďàƀĺē."],"KGJb9_": ["Ćōńƒĺĩćţś"],"KH5bQi": [@@ -1594,6 +1594,7 @@"MJuO1q": ["Ćōńţēxţ ŵĩńďōŵ:"],"MKEPCY": ["Ƒōĺĺōŵ"],"MLVPcm": [["0"], " vēŕśĩōń ", ["1"]],+ "MOAoFO": ["Ńō àĝēńţ ƒōĺďēŕś ŷēţ"],"MPpSAg": ["Ćŕēàţē ńēŵ ƥŕōĴēćţ ƒŕōḿ ", ["selectedPackName"]],"MQ5LOx": ["Ţũŕń ",@@ -2692,7 +2693,6 @@"b4itZn": ["Ŵōŕķĩńĝ"],"b5aNbi": ["Ţĥē ", ["targetNoun"], " ćōũĺď ńōţ ƀē ōƥēńēď — ţŕŷ ńàvĩĝàţĩńĝ ţō ĩţ ḿàńũàĺĺŷ."],"b6Fgpe": ["Ēàćĥ ƥàćķ śćàƒƒōĺďś ŷōũŕ ƥŕōĴēćţ ŵĩţĥ ŕēàďŷ-ḿàďē ƒōĺďēŕś àńď ţēḿƥĺàţēś."],- "bBE5tC": ["Ďēţēćţēď ōń ţĥĩś ḿàćĥĩńē"],"bBcFK_": ["Ōƥēń ēḿōĴĩ ƥĩćķēŕ ƒōŕ ", ["keyName"]],"bD8I7O": ["Ćōḿƥĺēţē"],"bDiiSM": ["Àĺŕēàďŷ ćōvēŕēď ƀŷ à ƥĩćķēď ƥàŕēńţ ƒōĺďēŕ"],@@ -3676,7 +3676,6 @@". Ţŕŷ <0>ōķ śţàţũś</0> ōŕ ćĥēćķ <1>.ōķ/ĺōćàĺ/ĺàśţ-śƥàŵń-ēŕŕōŕ.ĺōĝ</1>."],"np2zZM": ["Śĩĝń ĩń ţō ", ["agentName"], " ţō ćōńţĩńũē."],- "np9pbC": ["Śĥōŵ ", ["inAppHiddenCount"], " ḿōŕē"],"npcziF": ["Ĩńśţàĺĺ ōń"],"nqV0Kk": ["Ţĥĩś ƒōĺďēŕ ĥàśń'ţ śŷńćēď ţō ĜĩţĤũƀ ŷēţ. Ţĥē ĺĩńķ ŵĩĺĺ ŵōŕķ àƒţēŕ ţĥē ńēxţ śŷńć."],"nrGWJ7": [diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex c854f669b..fabcccbc2 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -1184,10 +1184,6 @@ msgstr ""msgid "Above"msgstr ""-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr ""-#: src/components/DiffView.tsxmsgid "Accept"msgstr ""@@ -4268,10 +4264,6 @@ msgstr ""msgid "Detected in {0}"msgstr ""-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr ""-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr ""@@ -7904,6 +7896,10 @@ msgstr ""msgid "No active or recent OpenKnowledge projects were found."msgstr ""+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr ""+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr ""@@ -11217,8 +11213,9 @@ msgstr ""msgid "Show {hidden} more"msgstr ""+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"+msgid "Show {hiddenCount} more"msgstr ""#: src/components/settings/LinkPreviewsSection.tsx@@ -11285,6 +11282,7 @@ msgid "Show in Explorer"msgstr ""#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr ""diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 808e38a0d..41e69a921 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -1530,6 +1530,7 @@"IInnZo": ["Conflito"],"IKoTAC": ["Deixar desativado"],"IMLUBh": ["Valor de cor inválido"],+ "INN7OX": ["Mostrar mais ", ["hiddenCount"]],"INp_z6": ["Comente ou pergunte à IA sobre este ", ["0"]],"IO8REi": ["Não deu para abrir \"", ["name"], "\": ", ["0"]],"IQPyrD": ["Página inexistente — clique para criar"],@@ -1641,7 +1642,6 @@"KDrbNG": ["OpenKnowledge consultou os links de ", ["subject"]],"KDuPiY": ["Enviando ", ["fileName"]],"KDw4GX": ["Tente de novo"],- "KFd4xz": ["ausente"],"KGF42E": ["O painel de agentes foi fechado para manter o Terminal legível."],"KGJb9_": ["Conflitos"],"KH5bQi": [@@ -1836,6 +1836,7 @@"MJuO1q": ["Janela de contexto:"],"MKEPCY": ["Acompanhar"],"MLVPcm": [["0"], " versão ", ["1"]],+ "MOAoFO": ["Ainda não há pastas de agentes"],"MPpSAg": ["Criar novo projeto a partir de ", ["selectedPackName"]],"MQ5LOx": ["Transforma ",@@ -3062,7 +3063,6 @@"b4itZn": ["Trabalhando"],"b5aNbi": ["Não foi possível abrir ", ["targetNoun"], " — tente chegar até lá manualmente."],"b6Fgpe": ["Cada pacote prepara seu projeto com pastas e modelos prontos."],- "bBE5tC": ["Detectado neste computador"],"bBcFK_": ["Abrir o seletor de emojis de ", ["keyName"]],"bD8I7O": ["Completo"],"bDiiSM": ["Já coberta por uma pasta principal selecionada"],@@ -4174,7 +4174,6 @@". Tente <0>ok status</0> ou verifique <1>.ok/local/last-spawn-error.log</1>."],"np2zZM": ["Faça login em ", ["agentName"], " para continuar."],- "np9pbC": ["Mostrar mais ", ["inAppHiddenCount"]],"npcziF": ["Instalar em"],"nqV0Kk": ["Esta pasta ainda não sincronizou com o GitHub. O link vai funcionar depois da próxima sincronização."diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex eb520787f..f38346e34 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -1184,10 +1184,6 @@ msgstr "Sobre o {appName}"msgid "Above"msgstr "Acima"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "ausente"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "Aceitar"@@ -4268,10 +4264,6 @@ msgstr "Os detalhes do erro que você acabou de encontrar estão incluídos. Segmsgid "Detected in {0}"msgstr "Detectado em {0}"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "Detectado neste computador"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "Projetos do OpenKnowledge detectados"@@ -7904,6 +7896,10 @@ msgstr "Ainda não há arquivo <0>.markdownlint.*</0> — todas as regras rodammsgid "No active or recent OpenKnowledge projects were found."msgstr "Nenhum projeto do OpenKnowledge ativo ou recente foi encontrado."+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "Ainda não há pastas de agentes"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "Nenhum agente foi configurado ainda — abrindo Configurar agentes."@@ -11217,9 +11213,10 @@ msgstr "Mostrar mais {0}"msgid "Show {hidden} more"msgstr "Mostrar mais {hidden}"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "Mostrar mais {inAppHiddenCount}"+msgid "Show {hiddenCount} more"+msgstr "Mostrar mais {hiddenCount}"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11285,6 +11282,7 @@ msgid "Show in Explorer"msgstr "Mostrar no Explorador"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "Mostrar menos"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex ebe96cb83..320ffe646 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -1345,6 +1345,7 @@"IInnZo": ["تصادم"],"IKoTAC": ["بند ہی رکھیں"],"IMLUBh": ["رنگ کی قدر درست نہیں"],+ "INN7OX": [["hiddenCount"], " مزید دکھائیں"],"INp_z6": ["اس ", ["0"], " پر تبصرہ کریں یا AI سے پوچھیں"],"IO8REi": ["«", ["name"], "» نہیں کھل سکی: ", ["0"]],"IQPyrD": ["غائب صفحہ — بنانے کے لیے کلک کریں"],@@ -1448,7 +1449,6 @@"KDrbNG": ["OpenKnowledge نے ", ["subject"], " کے لنکس تلاش کیے"],"KDuPiY": [["fileName"], " اپ لوڈ ہو رہی ہے"],"KDw4GX": ["دوبارہ کوشش کریں"],- "KFd4xz": ["غیر موجود"],"KGF42E": ["Terminal کو پڑھنے کے قابل رکھنے کے لیے ایجنٹ پینل بند کر دیا گیا۔"],"KGJb9_": ["تنازعات"],"KH5bQi": [@@ -1630,6 +1630,7 @@"MJuO1q": ["سیاق کی ونڈو:"],"MKEPCY": ["پیروی"],"MLVPcm": [["0"], " ورژن ", ["1"]],+ "MOAoFO": ["ابھی تک کوئی ایجنٹ فولڈر نہیں"],"MPpSAg": [["selectedPackName"], " سے نیا پروجیکٹ بنائیں"],"MQ5LOx": [["display"],@@ -2761,7 +2762,6 @@"b4itZn": ["کام جاری ہے"],"b5aNbi": [["targetNoun"], " نہیں کھل سکا — دستی طور پر وہاں جانے کی کوشش کریں۔"],"b6Fgpe": ["ہر پیک آپ کے پروجیکٹ کا ڈھانچہ تیار شدہ فولڈرز اور ٹیمپلیٹس سے بناتا ہے۔"],- "bBE5tC": ["اس مشین پر پایا گیا"],"bBcFK_": [["keyName"], " کے لیے ایموجی منتخب کنندہ کھولیں"],"bD8I7O": ["مکمل"],"bDiiSM": ["پہلے سے منتخب کردہ پیرنٹ فولڈر میں شامل ہے"],@@ -3765,7 +3765,6 @@"۔ <0>ok status</0> آزمائیں یا <1>.ok/local/last-spawn-error.log</1> دیکھیں۔"],"np2zZM": ["جاری رکھنے کے لیے ", ["agentName"], " میں سائن اِن کریں۔"],- "np9pbC": [["inAppHiddenCount"], " مزید دکھائیں"],"npcziF": ["اس پر نصب کریں"],"nqV0Kk": ["یہ فولڈر ابھی GitHub سے مطابق نہیں ہوا۔ لنک اگلی مطابقت پذیری کے بعد کام کرے گا۔"],"nrGWJ7": [diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 44b2378ac..2a3f1e4bf 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -1188,10 +1188,6 @@ msgstr "{appName} کے بارے میں"msgid "Above"msgstr "اوپر"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "غیر موجود"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "قبول کریں"@@ -4272,10 +4268,6 @@ msgstr "ابھی پیش آنے والی خرابی کی تفصیلات شاملmsgid "Detected in {0}"msgstr "{0} میں پایا گیا"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "اس مشین پر پایا گیا"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "پائے گئے OpenKnowledge پروجیکٹس"@@ -7908,6 +7900,10 @@ msgstr "ابھی کوئی <0>.markdownlint.*</0> فائل نہیں — ہر قاmsgid "No active or recent OpenKnowledge projects were found."msgstr "کوئی فعال یا حالیہ OpenKnowledge پروجیکٹ نہیں ملا۔"+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "ابھی تک کوئی ایجنٹ فولڈر نہیں"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "ابھی کوئی ایجنٹ ترتیب نہیں دیا گیا — «ایجنٹس ترتیب دیں» کھولا جا رہا ہے۔"@@ -11221,9 +11217,10 @@ msgstr "{0} مزید دکھائیں"msgid "Show {hidden} more"msgstr "{hidden} مزید دکھائیں"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "{inAppHiddenCount} مزید دکھائیں"+msgid "Show {hiddenCount} more"+msgstr "{hiddenCount} مزید دکھائیں"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "ایکسپلورر میں دکھائیں"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "کم دکھائیں"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex c46f11b97..b83cc5cda 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -1163,6 +1163,7 @@"IInnZo": ["冲突"],"IKoTAC": ["保持关闭"],"IMLUBh": ["无效的颜色值"],+ "INN7OX": ["再显示 ", ["hiddenCount"], " 个"],"INp_z6": ["对此", ["0"], "发表评论或询问 AI"],"IO8REi": ["无法打开“", ["name"], "”:", ["0"]],"IQPyrD": ["页面不存在——点击可创建"],@@ -1251,7 +1252,6 @@"KDrbNG": ["OpenKnowledge 查找了 ", ["subject"], " 的链接"],"KDuPiY": ["正在上传 ", ["fileName"]],"KDw4GX": ["重试"],- "KFd4xz": ["不存在"],"KGF42E": ["为保持 Terminal 清晰可读,已关闭智能体面板。"],"KGJb9_": ["冲突"],"KH5bQi": ["正在使用 <0>OK_EMBEDDINGS_API_KEY</0> 环境变量(在 OpenKnowledge 之外管理)。"],@@ -1392,6 +1392,7 @@"MJuO1q": ["上下文窗口:"],"MKEPCY": ["跟随"],"MLVPcm": [["0"], " 版本 ", ["1"]],+ "MOAoFO": ["尚无智能体文件夹"],"MPpSAg": ["从 ", ["selectedPackName"], " 新建项目"],"MQ5LOx": ["把 ",@@ -2394,7 +2395,6 @@"b4itZn": ["进行中"],"b5aNbi": ["无法打开", ["targetNoun"], "——请尝试手动前往。"],"b6Fgpe": ["每个包都会用现成的文件夹和模板为你的项目搭好骨架。"],- "bBE5tC": ["在这台电脑上检测到"],"bBcFK_": ["打开 ", ["keyName"], " 的表情符号选择器"],"bD8I7O": ["完成"],"bDiiSM": ["已被选中的上级文件夹覆盖"],@@ -3253,7 +3253,6 @@"。可尝试 <0>ok status</0>,或查看 <1>.ok/local/last-spawn-error.log</1>。"],"np2zZM": ["请登录 ", ["agentName"], " 以继续。"],- "np9pbC": ["再显示 ", ["inAppHiddenCount"], " 个"],"npcziF": ["安装到"],"nqV0Kk": ["这个文件夹还没有同步到 GitHub。下次同步后链接就会生效。"],"nrGWJ7": ["尚未设置 git 身份——提交会使用默认作者。设置你自己的身份,队友才能看到你的名字。"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 905410947..b6528fcb1 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -1188,10 +1188,6 @@ msgstr "关于 {appName}"msgid "Above"msgstr "上方"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "不存在"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "接受"@@ -4272,10 +4268,6 @@ msgstr "其中包含你刚遇到的错误的详细信息。API 密钥、令牌msgid "Detected in {0}"msgstr "在 {0} 中检测到"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "在这台电脑上检测到"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "检测到的 OpenKnowledge 项目"@@ -7908,6 +7900,10 @@ msgstr "还没有 <0>.markdownlint.*</0> 文件——所有规则都按与 VS Comsgid "No active or recent OpenKnowledge projects were found."msgstr "没有找到活跃或最近的 OpenKnowledge 项目。"+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "尚无智能体文件夹"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "还没有配置任何智能体——正在打开「配置智能体」。"@@ -11221,9 +11217,10 @@ msgstr "再显示 {0} 个"msgid "Show {hidden} more"msgstr "再显示 {hidden} 个"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "再显示 {inAppHiddenCount} 个"+msgid "Show {hiddenCount} more"+msgstr "再显示 {hiddenCount} 个"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "在资源管理器中显示"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "收起"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex 4f7ae0d69..44af67430 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -1171,6 +1171,7 @@"IInnZo": ["衝突"],"IKoTAC": ["維持關閉"],"IMLUBh": ["無效的色彩值"],+ "INN7OX": ["再顯示 ", ["hiddenCount"], " 個"],"INp_z6": ["對此", ["0"], "發表評論或詢問 AI"],"IO8REi": ["無法開啟「", ["name"], "」:", ["0"]],"IQPyrD": ["頁面不存在——點一下可建立"],@@ -1259,7 +1260,6 @@"KDrbNG": ["OpenKnowledge 查詢了 ", ["subject"], " 的連結"],"KDuPiY": ["正在上傳 ", ["fileName"]],"KDw4GX": ["再試一次"],- "KFd4xz": ["不存在"],"KGF42E": ["為保持 Terminal 清晰可讀,已關閉智慧代理面板。"],"KGJb9_": ["衝突"],"KH5bQi": ["正在使用 <0>OK_EMBEDDINGS_API_KEY</0> 環境變數(在 OpenKnowledge 之外管理)。"],@@ -1410,6 +1410,7 @@"MJuO1q": ["脈絡視窗:"],"MKEPCY": ["跟隨"],"MLVPcm": [["0"], " 版本 ", ["1"]],+ "MOAoFO": ["尚無智慧代理資料夾"],"MPpSAg": ["從 ", ["selectedPackName"], " 建立新專案"],"MQ5LOx": ["把 ",@@ -2414,7 +2415,6 @@"b4itZn": ["進行中"],"b5aNbi": ["無法開啟", ["targetNoun"], "——請試著手動前往。"],"b6Fgpe": ["每個套件都會用現成的資料夾和範本幫你的專案搭好骨架。"],- "bBE5tC": ["在這台電腦上偵測到"],"bBcFK_": ["開啟 ", ["keyName"], " 的表情符號選擇器"],"bD8I7O": ["完成"],"bDiiSM": ["已由選取的上層資料夾涵蓋"],@@ -3279,7 +3279,6 @@"。可以試試 <0>ok status</0>,或看看 <1>.ok/local/last-spawn-error.log</1>。"],"np2zZM": ["請登入 ", ["agentName"], " 以繼續。"],- "np9pbC": ["再顯示 ", ["inAppHiddenCount"], " 個"],"npcziF": ["安裝到"],"nqV0Kk": ["這個資料夾還沒有同步到 GitHub。下次同步之後連結就會生效。"],"nrGWJ7": ["還沒設定 git 身分——提交會用預設作者。設定你自己的身分,隊友才看得到你的名字。"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex e433aa4da..ce033dce0 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -1188,10 +1188,6 @@ msgstr "關於 {appName}"msgid "Above"msgstr "上方"-#: src/components/settings/SkillTargetsPicker.tsx-msgid "absent"-msgstr "不存在"-#: src/components/DiffView.tsxmsgid "Accept"msgstr "接受"@@ -4272,10 +4268,6 @@ msgstr "其中包含你剛遇到的錯誤的詳細資料。API 金鑰、權杖msgid "Detected in {0}"msgstr "在 {0} 中偵測到"-#: src/components/settings/AiToolsSection.tsx-msgid "Detected on this machine"-msgstr "在這台電腦上偵測到"-#: src/uninstall/UninstallPickerScreen.tsxmsgid "Detected OpenKnowledge projects"msgstr "偵測到的 OpenKnowledge 專案"@@ -7908,6 +7900,10 @@ msgstr "還沒有 <0>.markdownlint.*</0> 檔案——所有規則都按照和 VSmsgid "No active or recent OpenKnowledge projects were found."msgstr "找不到使用中或最近的 OpenKnowledge 專案。"+#: src/components/SkillInstallMenu.tsx+msgid "No agent folders yet"+msgstr "尚無智慧代理資料夾"+#: src/comments/use-comment-delivery.tsmsgid "No agent is set up yet — opening Configure agents."msgstr "還沒有設定任何代理——正在開啟「設定代理」。"@@ -11221,9 +11217,10 @@ msgstr "再顯示 {0} 個"msgid "Show {hidden} more"msgstr "再顯示 {hidden} 個"+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsx-msgid "Show {inAppHiddenCount} more"-msgstr "再顯示 {inAppHiddenCount} 個"+msgid "Show {hiddenCount} more"+msgstr "再顯示 {hiddenCount} 個"#: src/components/settings/LinkPreviewsSection.tsxmsgid "Show a preview card when you hover an external link in the editor. This setting applies only to this computer."@@ -11289,6 +11286,7 @@ msgid "Show in Explorer"msgstr "在檔案總管中顯示"#: src/components/PackCardGrid.tsx+#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ConfigureAgentsSection.tsxmsgid "Show less"msgstr "收合"diff --git a/packages/app/tests/integration/skill-installable-editors.test.ts b/packages/app/tests/integration/skill-installable-editors.test.tsindex 8723e943b..0d5848106 100644--- a/packages/app/tests/integration/skill-installable-editors.test.ts+++ b/packages/app/tests/integration/skill-installable-editors.test.ts@@ -6,16 +6,17 @@ import {SkillInstallSuccessSchema,SkillsListSuccessSchema,} from '@inkeep/open-knowledge-core';-import { afterAll, beforeAll, describe, expect, test } from 'vitest';+import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';import { HARNESS_BOOT_TIMEOUT_MS } from './harness-boot-timeout';import { createTestServer, type TestServer } from './test-harness';/**- * the install menu must OFFER only editors installable on this machine.- * Project scope = every editor with a project skill root (install creates the- * dir). Global scope = only editors whose user-home skill dir EXISTS — a global- * install never creates a host home, so offering an undetected editor (Copilot- * with no `~/.copilot`) just no-ops and the checkmark flashes then reverts.+ * the install menu must OFFER only editors installable on this machine, and+ * BOTH scopes now gate on the same rule: the editor's home already exists.+ * Global reads `~/.<host>`, project `<projectDir>/.<host>`. Offering an+ * undetected editor either no-ops and reverts the checkmark, or succeeds by+ * creating a dotdir for a tool the user does not have — which OK's own+ * directory-based detection then reports back as installed.* The server surfaces `installableEditors` per entry; the menu gates on it.**/@@ -41,6 +42,17 @@ afterAll(async () => {rmSync(tmpHome, { recursive: true, force: true });});+// The adoption cases below mkdir into the SHARED contentDir, and the baseline+// assertion above depends on those dirs being absent. Without this the file+// passes only because declaration order happens to match dependency order — a+// shuffle, `test.concurrent`, or a moved case would turn it red for a reason+// that has nothing to do with the behaviour under test.+afterEach(() => {+ for (const dir of ['.github', '.codex']) {+ rmSync(join(server.contentDir, dir), { recursive: true, force: true });+ }+});+const putSkill = (scope: 'project' | 'global', name: string) =>fetch(`${base()}/api/skill`, {method: 'PUT',@@ -67,10 +79,91 @@ describe('installableEditors gating (PRD-7600)', () => {expect(global?.installableEditors).toContain('claude');expect(global?.installableEditors).not.toContain('copilot');- // Project: install creates the dir, so every project-rooted editor is- // offered — including Copilot (`.github/skills`).+ // Project: `.claude/skills` is seeded in the fixture → offered. Copilot's+ // project root (`.github/skills`) is not there → NOT offered. It used to be,+ // on the reasoning that install would create the dir.expect(project?.installableEditors).toContain('claude');- expect(project?.installableEditors).toContain('copilot');+ expect(project?.installableEditors).not.toContain('copilot');+ });++ /**+ * The activation path, not the bare dotdir. Copilot's project root is+ * `.github/skills`, and `.github` exists in nearly every git repo for+ * workflows and CODEOWNERS — gating on the dotdir would offer Copilot+ * essentially everywhere.+ *+ */+ test('a bare .github does not adopt Copilot, but .github/skills does', async () => {+ const installable = async (): Promise<string[]> => {+ const parsed = SkillsListSuccessSchema.safeParse(+ await (await fetch(`${base()}/api/skills`)).json(),+ );+ if (!parsed.success) throw new Error('skills list failed schema validation');+ return parsed.data.skills.find((s) => s.name === 'p-skill')?.installableEditors ?? [];+ };++ mkdirSync(join(server.contentDir, '.github'), { recursive: true });+ expect(await installable()).not.toContain('copilot');++ mkdirSync(join(server.contentDir, '.github', 'skills'), { recursive: true });+ expect(await installable()).toContain('copilot');+ });++ /**+ * An agent home WITHOUT its `skills/` subdir is still adoption: the project+ * has the tool, it just has no skills installed yet. OK may create `skills/`+ * inside a dotdir that already exists — that is the whole distinction between+ * the activation path and the skills root.+ *+ */+ test('an agent home with no skills subdir is still an offered target', async () => {+ mkdirSync(join(server.contentDir, '.codex'), { recursive: true });+ expect(existsSync(join(server.contentDir, '.codex', 'skills'))).toBe(false);++ const parsed = SkillsListSuccessSchema.safeParse(+ await (await fetch(`${base()}/api/skills`)).json(),+ );+ expect(parsed.success).toBe(true);+ if (!parsed.success) return;+ expect(parsed.data.skills.find((s) => s.name === 'p-skill')?.installableEditors).toContain(+ 'codex',+ );+ });+});++describe('skill-targets folders are gated on activation (PRD-7985)', () => {+ const folderRoots = async (): Promise<string[]> => {+ const res = await fetch(`${base()}/api/skill-targets`);+ expect(res.status).toBe(200);+ const body = (await res.json()) as { folders?: { root: string; scope: string }[] };+ return (body.folders ?? []).filter((f) => f.scope === 'project').map((f) => f.root);+ };++ // A row in `folders[]` is a WRITE DESTINATION — the Folders surface links and+ // unlinks it. A standard root under a dotdir that is not there belongs to a+ // tool the user does not have, so listing it is an offer to create that+ // dotdir; OK's directory-based detection then reads what it created back as+ // "installed", and one accepted offer manufactures its own evidence.+ //+ test('a standard root whose dotdir is absent is not offered, and appears once it exists', async () => {+ expect(existsSync(join(server.contentDir, '.codex'))).toBe(false);+ expect(await folderRoots()).not.toContain('.codex/skills');++ // Adopting the host activates the root even with no `skills/` subdir yet:+ // the dotdir is the adoption signal, and OK may create `skills/` under it.+ mkdirSync(join(server.contentDir, '.codex'), { recursive: true });+ expect(await folderRoots()).toContain('.codex/skills');+ });++ // `.github` is shared with tools that have nothing to do with agents, so the+ // dotdir alone proves nothing — `skillRootActivationPath` requires the whole+ // root. This is the case a gate written as "does the dotdir exist" gets wrong.+ test('a non-agent dotdir does not activate its root; only the full root does', async () => {+ mkdirSync(join(server.contentDir, '.github'), { recursive: true });+ expect(await folderRoots()).not.toContain('.github/skills');++ mkdirSync(join(server.contentDir, '.github', 'skills'), { recursive: true });+ expect(await folderRoots()).toContain('.github/skills');});});diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.tsindex a19c26a5e..f3d3c2965 100644--- a/packages/desktop/src/main/index.ts+++ b/packages/desktop/src/main/index.ts@@ -6619,7 +6619,6 @@ function registerIntegrationsSettingsIpc(): void {// and startup repair sweep's scope filter in `mcp-wiring.ts`.allEditorIds: ALL_EDITOR_IDS.filter((id) => EDITOR_TARGETS[id].scope === 'global'),editorLabel: (editorId) => EDITOR_TARGETS[editorId].label,- detectInstalledEditors: (cwd, home) => detectInstalledEditors(cwd, home),classifyExistingMcpEntry: (editorId, home) =>classifyExistingMcpEntry(EDITOR_TARGETS[editorId], '', home),// The removal gate: `isEntryUpToDate` recognizes both the resolver-chain@@ -6634,6 +6633,35 @@ function registerIntegrationsSettingsIpc(): void {removeUserMcpEntry: (editorId) =>removeOwnMcpEntry(EDITOR_TARGETS[editorId], '', osHomedir()),},+ // Reuses the probes the launcher surfaces already run and cache (~60s), so+ // opening Settings costs no extra shell spawns and every surface answers the+ // same question the same way.+ probeEditorPresence: async () => {+ const [cliOnPath, ...schemes] = await Promise.all([+ resolveTerminalCliInstalledMap().catch(() => ({}) as Record<TerminalCli, boolean>),+ ...(['claude', 'codex', 'cursor'] as const).map((scheme) =>+ detectProtocolImpl(+ {+ platform: process.platform,+ getApplicationInfoForProtocol: (url) => app.getApplicationInfoForProtocol(url),+ },+ scheme,+ )+ .then((r) => r.installed)+ .catch(() => false),+ ),+ ]);+ return {+ cliOnPath,+ // `claude-code` is the handoff-target id for the Claude desktop app; the+ // other two share their scheme name with their target id.+ schemeHandler: {+ 'claude-code': schemes[0] ?? false,+ codex: schemes[1] ?? false,+ cursor: schemes[2] ?? false,+ },+ };+ },path: {computeStatus: () => {const descriptor = computePathInstallDescriptor({diff --git a/packages/desktop/src/main/integrations-settings.test.ts b/packages/desktop/src/main/integrations-settings.test.tsindex d15be8141..8ad722662 100644--- a/packages/desktop/src/main/integrations-settings.test.ts+++ b/packages/desktop/src/main/integrations-settings.test.ts@@ -8,6 +8,7 @@ import type {} from '../shared/ipc-channels.ts';import {classifyEditorState,+ detectedEditorsFromProbes,type IntegrationsCliSurface,type IntegrationsPathSurface,type IntegrationsSkillsSurface,@@ -89,7 +90,6 @@ function makeCli(overrides: CliOverrides = {}): IntegrationsCliSurface & {removals,allEditorIds: ['claude', 'cursor'] as McpWiringEditorId[],editorLabel: (id) => (id === 'claude' ? 'Claude' : 'Cursor'),- detectInstalledEditors: () => overrides.detected ?? (['claude'] as McpWiringEditorId[]),classifyExistingMcpEntry: (id) =>overrides.classifications?.[id] ?? { kind: 'no-entry' as const },isOwnEntry: (entry) => entry === OWN_ENTRY,@@ -177,6 +177,9 @@ function setup(overrides: Partial<RegisterIntegrationsSettingsOpts> = {}) {path,skills,fs,+ // Default: `claude` resolvable on PATH, nothing else. Individual tests pass+ // their own `probeEditorPresence` to vary it.+ probeEditorPresence: async () => ({ cliOnPath: { claude: true }, schemeHandler: {} }),now: () => new Date('2026-07-07T00:00:00.000Z'),logger: { warn: () => {}, error: () => {}, event: () => {} },...overrides,@@ -201,12 +204,59 @@ describe('classifyEditorState', () => {});});+describe('detectedEditorsFromProbes', () => {+ const none = { cliOnPath: {}, schemeHandler: {} };++ test('a CLI on PATH detects its editor', () => {+ const got = detectedEditorsFromProbes({ ...none, cliOnPath: { codex: true, pi: true } });+ expect([...got].sort()).toEqual(['codex', 'pi']);+ });++ test('the Claude desktop scheme detects both Claude rows', () => {+ // The CLI and the desktop app are separate installs, and either proves the+ // user has Claude — but only the scheme proves the desktop app.+ const got = detectedEditorsFromProbes({ ...none, schemeHandler: { 'claude-code': true } });+ expect([...got].sort()).toEqual(['claude', 'claude-desktop']);+ });++ test('a false probe is not presence, and neither is a missing key', () => {+ expect([...detectedEditorsFromProbes(none)]).toEqual([]);+ expect([+ ...detectedEditorsFromProbes({+ cliOnPath: { claude: false, codex: false },+ schemeHandler: { 'claude-code': false },+ }),+ ]).toEqual([]);+ });++ test('lm-studio is never detected — it has no honest probe', () => {+ // No CLI and no scheme OK can ask about. It reports undetected rather than+ // falling back to the config-directory check that made this whole surface+ // untrustworthy; under-claiming is the safe direction.+ const got = detectedEditorsFromProbes({+ cliOnPath: { 'lm-studio': true } as Record<string, boolean>,+ schemeHandler: { 'lm-studio': true },+ });+ expect([...got]).toEqual([]);+ });++ test('a config directory cannot manufacture detection', () => {+ // The regression this replaces: OK creates `~/.copilot` during consent, the+ // user removes the entry, and the row kept reporting Copilot as detected.+ // Nothing in the probe surface can express that state any more.+ const got = detectedEditorsFromProbes({+ cliOnPath: { copilot: false },+ schemeHandler: {},+ });+ expect(got.has('copilot' as McpWiringEditorId)).toBe(false);+ });+});+describe('ok:integrations:dispatch — status', () => {test('returns per-editor state, detection, PATH and skill rows', async () => {const { status } = setup({cli: makeCli({classifications: { claude: { kind: 'present', entry: OWN_ENTRY } },- detected: ['claude'] as McpWiringEditorId[],}),skills: makeSkills(['discovery']),});@@ -277,6 +327,45 @@ describe('ok:integrations:dispatch — status', () => {expect(snapshot.path).toEqual({ shellDetected: false, rcFilesToTouch: [], installed: false });expect(snapshot.skills).toEqual([]);});++ test('a throwing presence probe degrades to undetected, not to a dead section', async () => {+ // `probeEditorPresence` is injected and shells out (login-shell `command -v`,+ // the OS scheme-handler lookup), so a throw is a live possibility rather than+ // a hypothetical. Unknown must under-claim: no row may report detected, and+ // the rest of the snapshot has to survive — narrowing or dropping the catch+ // would take the whole AI-tools section down with it.+ const { status } = setup({+ probeEditorPresence: async () => {+ throw new Error('spawn failed');+ },+ });+ const snapshot = await status();+ expect(snapshot.detectedEditorIds).toEqual([]);+ expect(snapshot.editors.every((e) => e.detected === false)).toBe(true);+ // Still usable: rows are present and classified, and the sibling surfaces+ // are untouched by the probe failure.+ expect(snapshot.editors.length).toBeGreaterThan(0);+ expect(snapshot.editors.map((e) => e.state)).not.toContain(undefined);+ expect(snapshot.path.installed).toBe(false);+ expect(snapshot.available).toBe(true);+ });++ test('one status pass probes presence exactly once', async () => {+ // The editor rows and `detectedEditorIds` answer the same question, so they+ // must come from the same pass: the probe is uncached, and two passes can+ // straddle an install or a removal and disagree inside one snapshot.+ let probeCalls = 0;+ const { status } = setup({+ probeEditorPresence: async () => {+ probeCalls += 1;+ return { cliOnPath: { claude: true }, schemeHandler: {} };+ },+ });+ const snapshot = await status();+ expect(probeCalls).toBe(1);+ expect(snapshot.detectedEditorIds).toContain('claude');+ expect(snapshot.editors.find((e) => e.id === 'claude')?.detected).toBe(true);+ });});describe('ok:integrations:dispatch — set editor', () => {diff --git a/packages/desktop/src/main/integrations-settings.ts b/packages/desktop/src/main/integrations-settings.tsindex b62dcaecf..8ec72a2a8 100644--- a/packages/desktop/src/main/integrations-settings.ts+++ b/packages/desktop/src/main/integrations-settings.ts@@ -19,6 +19,7 @@* surfaces in.*/+import { TERMINAL_CLI_IDS } from '@inkeep/open-knowledge-core';import type { IpcMain } from 'electron';import type {IntegrationsComponentRef,@@ -50,7 +51,6 @@ interface IntegrationsRemoveOutcome {export interface IntegrationsCliSurface {allEditorIds: readonly McpWiringEditorId[];editorLabel(editorId: McpWiringEditorId): string;- detectInstalledEditors(cwd: string, home?: string): McpWiringEditorId[];/** Discriminated read of the editor's user config — never throws for the* expected absent/no-entry/decline cases. */classifyExistingMcpEntry(@@ -121,6 +121,13 @@ export interface RegisterIntegrationsSettingsOpts {available: boolean;ipcMain: IpcMainLike;cli: IntegrationsCliSurface;+ /**+ * Unfakeable presence signals for the MCP editor list, injected so main can+ * hand over the probes its launcher surfaces already run and cache rather than+ * spawning a second set. See `detectedEditorsFromProbes` for why a+ * config-directory check cannot stand in for these.+ */+ probeEditorPresence: () => Promise<EditorPresenceProbes>;path: IntegrationsPathSurface;skills: IntegrationsSkillsSurface;fs?: McpWiringFsOps;@@ -148,30 +155,113 @@ export function classifyEditorState(}}+/**+ * Raw, unfakeable presence signals, keyed by the id each probe already uses.+ * Every one of these is a fact about the machine that OpenKnowledge cannot+ * write — which is the whole point of taking them instead of reading a config+ * directory back.+ */+export interface EditorPresenceProbes {+ /** Login-shell `command -v <bin>` per terminal CLI. */+ readonly cliOnPath: Readonly<Partial<Record<string, boolean>>>;+ /** OS URL-scheme handler resolution per desktop target (who owns `claude://`). */+ readonly schemeHandler: Readonly<Partial<Record<string, boolean>>>;+}++/**+ * Which editors are actually on this machine.+ *+ * Both signals come from outside OpenKnowledge: a binary resolvable on the+ * user's login-shell PATH, and the application the OS says owns a URL scheme.+ * Neither can be manufactured by writing a directory.+ *+ * That last property is the requirement, not a bonus. Presence must never be+ * inferred from an editor's MCP config directory: OpenKnowledge writes those+ * directories itself (the consent dialog does it for five editors with the+ * availability check bypassed), so reading one back is circular — it reports+ * an editor the user has never installed, and keeps reporting it after the+ * user removes the entry.+ *+ * `lm-studio` is deliberately absent: it ships no CLI and registers no scheme OK+ * can ask about, so there is nothing honest to probe. It reports undetected+ * rather than falling back to the directory check — under-claiming is the safe+ * direction, and no surface prints a presence claim anyway.+ */+export function detectedEditorsFromProbes(probes: EditorPresenceProbes): Set<McpWiringEditorId> {+ const scheme = (id: string): boolean => probes.schemeHandler[id] === true;+ const detected = new Set<McpWiringEditorId>();+ // Gated on the terminal-CLI registry that PRODUCES `cliOnPath`, so adding a+ // CLI there detects it here with no second list to keep in step. The+ // terminal-CLI ids and the editor ids coincide for every host that ships a+ // CLI, which is what lets the key BE the lookup.+ //+ // The gate is load-bearing, not a type formality: `cliOnPath` is keyed by+ // `string`, and an id outside this registry is one OK has no honest CLI+ // signal for — `lm-studio` ships no CLI, so a caller handing us a `true` for+ // it must not turn into a presence claim.+ const cliIds = new Set<string>(TERMINAL_CLI_IDS);+ for (const [id, onPath] of Object.entries(probes.cliOnPath)) {+ if (onPath === true && cliIds.has(id)) detected.add(id as McpWiringEditorId);+ }+ // Desktop apps: the scheme handler is the only signal, and `claude-code` is+ // the handoff-target id for the Claude desktop app.+ if (scheme('claude-code')) {+ detected.add('claude-desktop' as McpWiringEditorId);+ // The CLI and the desktop app are separate installs; either proves Claude.+ detected.add('claude' as McpWiringEditorId);+ }+ if (scheme('codex')) detected.add('codex' as McpWiringEditorId);+ if (scheme('cursor')) detected.add('cursor' as McpWiringEditorId);+ return detected;+}+export function registerIntegrationsSettings(opts: RegisterIntegrationsSettingsOpts,): IntegrationsSettingsHandle {- const { home, available, ipcMain, cli, path, skills, fs, now, logger = DEFAULT_LOGGER } = opts;+ const {+ home,+ available,+ ipcMain,+ cli,+ probeEditorPresence,+ path,+ skills,+ fs,+ now,+ logger = DEFAULT_LOGGER,+ } = opts;const nowDate = (): Date => (now ? now() : new Date());/**- * Every editor with a host root on this machine. Home-scoped (cwd `''`)- * because a project-relative probe is meaningless for a user-global surface- * — and for the Create-new-project dialog, which reads this off the status- * snapshot, the project does not exist yet. NOT narrowed by- * `cli.allEditorIds`: that list is filtered to user-global targets, while- * this set must stay honest about project-scope-only ones (Pi) too.+ * Every editor with a host root on this machine. The injected probes answer+ * for the machine, not for a directory — there is no project to scope them+ * to, and the Create-new-project dialog reads this off the status snapshot+ * before its project exists. NOT narrowed by `cli.allEditorIds`: that list is+ * filtered to user-global targets, while this set must stay honest about+ * project-scope-only ones (Pi) too.*/- function computeDetectedEditors(): Set<McpWiringEditorId> {+ async function computeDetectedEditors(): Promise<Set<McpWiringEditorId>> {try {- return new Set(cli.detectInstalledEditors('', home));+ return detectedEditorsFromProbes(await probeEditorPresence());} catch {+ // A failed probe is unknown, not empty-and-not-installed — but unknown+ // must not claim, and an empty set under-claims, which is the safe+ // direction on every surface that reads this.return new Set();}}- function computeEditorStatuses(): IntegrationsEditorStatus[] {- const detected = computeDetectedEditors();+ /**+ * `detected` is optional so a caller that has already probed can pass its set+ * in rather than paying a second pass. `probeEditorPresence` is not cached —+ * each call re-runs the login-shell lookups and the OS scheme-handler+ * queries — and two passes can straddle an install or removal, which is+ * exactly the drift the status snapshot must not show.+ */+ async function computeEditorStatuses(+ detected?: Set<McpWiringEditorId>,+ ): Promise<IntegrationsEditorStatus[]> {+ const resolved = detected ?? (await computeDetectedEditors());return cli.allEditorIds.map((id) => {let state: IntegrationsEditorState;try {@@ -188,7 +278,7 @@ export function registerIntegrationsSettings(return {id,label: cli.editorLabel(id),- detected: detected.has(id),+ detected: resolved.has(id),state,configPath: cli.editorConfigPath(id),entryLocator: cli.editorEntryLocator(id),@@ -196,7 +286,7 @@ export function registerIntegrationsSettings(});}- function computeStatus(): IntegrationsStatus {+ async function computeStatus(): Promise<IntegrationsStatus> {let pathStatus: IntegrationsPathStatus;try {pathStatus = path.computeStatus();@@ -215,12 +305,16 @@ export function registerIntegrationsSettings(});skillStatuses = [];}+ // One probe pass feeds both fields — same question, and letting them drift+ // would put the settings list and the create-project dialog on different+ // answers about the same machine.+ const detected = await computeDetectedEditors();return {available,- editors: computeEditorStatuses(),+ editors: await computeEditorStatuses(detected),path: pathStatus,skills: skillStatuses,- detectedEditorIds: [...computeDetectedEditors()],+ detectedEditorIds: [...detected],};}@@ -231,10 +325,10 @@ export function registerIntegrationsSettings(* dialog; a settings toggle on a marker-less install (possible only when* the consent dialog never delivered) doesn't claim that decision.*/- function refreshMarkerEditors(): void {+ async function refreshMarkerEditors(): Promise<void> {const marker = readMcpStatusMarker(home, fs);if (marker === null) return;- const installed = computeEditorStatuses()+ const installed = (await computeEditorStatuses()).filter((e) => e.state === 'installed').map((e) => e.id);const next: McpStatusMarker = {@@ -270,7 +364,7 @@ export function registerIntegrationsSettings(switch (result.action) {case 'written':case 'overwritten':- refreshMarkerEditors();+ await refreshMarkerEditors();logger.event({ event: 'integrations-editor-installed', editor: id });return { ok: true };case 'declined':@@ -294,7 +388,7 @@ export function registerIntegrationsSettings(switch (outcome.kind) {case 'removed':case 'not-present':- refreshMarkerEditors();+ await refreshMarkerEditors();logger.event({ event: 'integrations-editor-removed', editor: id, outcome: outcome.kind });return { ok: true };case 'left-foreign':@@ -355,9 +449,9 @@ export function registerIntegrationsSettings(handler: 'integrationsDispatch',cause: { component: request?.component?.kind ?? 'unknown', error: result.error },});- return { ok: false, error: result.error, status: computeStatus() };+ return { ok: false, error: result.error, status: await computeStatus() };}- return { ok: true, status: computeStatus() };+ return { ok: true, status: await computeStatus() };});mutationChain = run.catch(() => {});return run;diff --git a/packages/server/src/api-extension.ts b/packages/server/src/api-extension.tsindex 9af18ddca..1a30f0c44 100644--- a/packages/server/src/api-extension.ts+++ b/packages/server/src/api-extension.ts@@ -480,7 +480,11 @@ import {isInternalBundleSkillName,USER_GLOBAL_BUNDLE_IDS,} from './skill-bundles.ts';-import { buildAndOpenSkill, detectUserSkillHosts } from './skill-install.ts';+import {+ buildAndOpenSkill,+ detectProjectSkillEditors,+ detectUserSkillHosts,+} from './skill-install.ts';import {projectSkill,readSkillBundledFiles,@@ -614,6 +618,7 @@ import { validateBody, withValidation } from './http/request-validation.ts';import { successResponse } from './http/success-response.ts';import {aliasedSourceRoots,+ isActivatedSkillRoot,knownSkillRootsFor,removableSkillOccurrenceDirs,resolveDefaultSkillHomeRel,@@ -14616,13 +14621,25 @@ export function createApiExtension(const projectSkillsRoot = resolveSkillsRoot('project');const project = resolveSkillsList(projectSkillsRoot, 'project');const globalSkills = resolveSkillsList(resolveSkillsRoot('global'), 'global');- // Editors the install menu may OFFER per scope on THIS machine.- // Project: every editor with a project skill root — install creates the- // dir, so all are installable. Global: only editors whose user-home skill- // dir EXISTS (`detectUserSkillHosts`) — a global install never creates a- // host home, so offering an undetected editor (e.g. Copilot with no- // `~/.copilot`) just no-ops and the checkmark reverts.- const projectInstallableEditors: string[] = [...PROJECT_SKILL_EDITOR_IDS];+ // Editors the install menu may OFFER per scope on THIS machine — both+ // scopes now gate on the SAME rule: the editor's home already exists.+ // Global uses `detectUserSkillHosts`, project `detectProjectSkillEditors`.+ // Offering an undetected editor either no-ops and reverts the checkmark,+ // or worse, succeeds by creating a dotdir for a tool the user does not+ // have — which OK's own detection then reports as installed.+ //+ // "Install creates the dir, so all are installable" describes the+ // behaviour; it does not justify it. Both scopes gate.+ //+ // Probed against `projectDir`, not `contentDir`, because that is what+ // `skillInstallBase('project')` resolves to — so this gate asks about the+ // same base the install it gates will actually write into. The sibling+ // gate on `folders[]` below uses `contentDir` instead, matching the scan+ // it filters. The two coincide unless `content.dir` names a subdirectory+ // of the project.+ const projectInstallableEditors: string[] = projectDir+ ? detectProjectSkillEditors(projectDir)+ : [];const globalInstallableEditors: string[] = detectUserSkillHosts(skillsHome).map((h) => h.editorId,);@@ -18718,23 +18735,28 @@ export function createApiExtension({targets,configured: false,+ // Only folders OK may actually write to on this machine. A row here+ // is a destination — the Folders surface links and unlinks it — so a+ // root under a dotdir that does not exist is an offer to create that+ // dotdir for a tool the user never installed. Custom roots are always+ // kept; see `isActivatedSkillRoot`.folders: [...(projectDir- ? scanSkillFolderStates(contentDir, knownSkillRootsFor(contentDir, 'project')).map(- (f) => ({+ ? scanSkillFolderStates(contentDir, knownSkillRootsFor(contentDir, 'project'))+ .filter((f) => isActivatedSkillRoot(contentDir, 'project', f.root))+ .map((f) => ({...f,scope: 'project' as const,...withDrift(contentDir, f),- }),- )+ })): []),- ...scanSkillFolderStates(skillsHome, knownSkillRootsFor(skillsHome, 'global')).map(- (f) => ({+ ...scanSkillFolderStates(skillsHome, knownSkillRootsFor(skillsHome, 'global'))+ .filter((f) => isActivatedSkillRoot(skillsHome, 'global', f.root))+ .map((f) => ({...f,scope: 'global' as const,...withDrift(skillsHome, f),- }),- ),+ })),],},{ handler: 'skill-targets-get' },diff --git a/packages/server/src/in-place-skills.ts b/packages/server/src/in-place-skills.tsindex 847a6d320..d39392f05 100644--- a/packages/server/src/in-place-skills.ts+++ b/packages/server/src/in-place-skills.ts@@ -190,6 +190,32 @@ export function standardSkillRoots(scope: SkillScope): ReadonlySet<string> {return new Set(roots.map((r) => r.root));}+/**+ * Is this root a place OK may offer to write, on THIS machine, right now?+ *+ * A standard host root qualifies once its activation path exists — the agent's+ * own dotdir for an agent-owned root, the whole root for a shared one like+ * `.github/skills` (see `skillRootActivationPath`). A root under a dotdir that+ * is not there belongs to a tool the user does not have, and offering it is+ * offering to CREATE that dotdir, which OK does not do.+ * Directory-based detection then reads what we created back as "installed", so+ * a single accepted offer manufactures its own evidence.+ *+ * Custom roots always qualify. A custom root exists only because a human typed+ * it into "Add custom path"; that declaration IS the consent, and gating it on+ * disk state would break the one escape hatch these surfaces have for wiring up+ * a folder before its tool arrives.+ *+ * Deliberately NOT folded into `knownSkillRootsFor`: cleanup paths+ * (`removableSkillOccurrenceDirs`, the reclaim sweeps) must keep seeing every+ * root, or a stray bundle under a since-removed dotdir becomes unreachable.+ * This gates what is OFFERED, never what is SEEN.+ */+export function isActivatedSkillRoot(base: string, scope: SkillScope, root: string): boolean {+ if (!standardSkillRoots(scope).has(root)) return true;+ return existsSync(join(base, skillRootActivationPath(root)));+}+/*** The `<root>/<name>` bundle dirs a cross-scope MOVE may remove from the source* scope — every occurrence that is THIS skill, and nothing else.diff --git a/packages/server/src/skill-install.ts b/packages/server/src/skill-install.tsindex 91a70e4eb..20e755682 100644--- a/packages/server/src/skill-install.ts+++ b/packages/server/src/skill-install.ts@@ -4,8 +4,11 @@ import { stat } from 'node:fs/promises';import { homedir, platform as osPlatform } from 'node:os';import { dirname, isAbsolute, join, resolve as resolvePath } from 'node:path';import {+ EDITOR_PROJECT_SKILL_ROOT,type EditorId,OPENKNOWLEDGE_SKILLS_REPO,+ PROJECT_SKILL_EDITOR_IDS,+ skillRootActivationPath,USER_SKILL_HOSTS,} from '@inkeep/open-knowledge-core';import {@@ -132,6 +135,28 @@ export function detectUserSkillHosts(home: string): DetectedSkillHost[] {return USER_SKILL_HOSTS.filter((host) => existsSync(join(home, host.hostDir)));}+/**+ * The project-scoped counterpart of `detectUserSkillHosts`: editors this PROJECT+ * has adopted, by the same activation-path rule.+ *+ * Offering every project-skill editor because "install creates the dir" gets the+ * reasoning backwards: creating the dir IS the problem. It is how+ * `<project>/.codex` appears in a repo whose owner does not use Codex, gets+ * committed, and reaches teammates who never chose it. Project-level detection+ * then reads it back as adopted.+ *+ * Copilot is the case that makes `skillRootActivationPath` load-bearing rather+ * than decorative: its project root is `.github/skills`, and `.github` exists in+ * nearly every git repo for workflows and CODEOWNERS. Gating on the dotdir alone+ * would offer Copilot in essentially every project on earth.+ */+export function detectProjectSkillEditors(projectDir: string): EditorId[] {+ return PROJECT_SKILL_EDITOR_IDS.filter((editorId) => {+ const root = EDITOR_PROJECT_SKILL_ROOT[editorId];+ return root !== null && existsSync(join(projectDir, skillRootActivationPath(root)));+ });+}+async function installedUserSkillExists(home: string, bundleName: string): Promise<boolean> {const candidates = detectUserSkillHosts(home).map((host) =>join(home, host.skillsRoot, bundleName),