Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
feat(open-knowledge): consent dialog location tooltip + progressive disclosure (#3083)
sarah9bdf398c0654
diff --git a/.changeset/config-sharing-only-me-label.md b/.changeset/config-sharing-only-me-label.mdnew file mode 100644index 000000000..da697e6e7--- /dev/null+++ b/.changeset/config-sharing-only-me-label.md@@ -0,0 +1,7 @@+---+'@inkeep/open-knowledge': patch+---++The config-sharing "Local only" choice is now labeled **Only me** across every desktop surface that names it — the create/open-folder dialog's radio card (`SharingModeField`), the Settings → Config sharing card (`SharingSection`), and the explanatory info tooltip (`ConfigSharingInfoTooltip`). Both radio cards now carry the same description spelling out the consequence: your project's OpenKnowledge setup stays on this computer and is not committed to git.++(The `ok init` CLI prompt keeps its own terminal-context wording and is unchanged.)diff --git a/.changeset/consent-dialog-location-and-disclosure.md b/.changeset/consent-dialog-location-and-disclosure.mdnew file mode 100644index 000000000..53f94803b--- /dev/null+++ b/.changeset/consent-dialog-location-and-disclosure.md@@ -0,0 +1,11 @@+---+'@inkeep/open-knowledge': patch+---++The first-launch "Connect your AI tools to OpenKnowledge" dialog is easier to scan and more transparent about what it changes.++- **Per-tool location tooltip.** Each AI tool now has an info affordance that discloses exactly which config file and entry OpenKnowledge would write — for example `~/.cursor/mcp.json` → `mcpServers.open-knowledge`, or `~/.codex/config.toml` → `[mcp_servers.open-knowledge]`. This matches the disclosure Settings → AI tools already provides, so both surfaces tell you the same thing before you commit to anything.+- **Detected tools first, the rest tucked away.** The MCP connections list now shows the tools detected on your machine up front and collapses the rest behind a "Show N more tools" toggle, so the list isn't a wall of tools you don't use. If nothing is detected, every tool still shows (with its setup link) so you're never left with an empty list.+- **A pointer after Skip.** Because the dialog only appears once, choosing "Skip" now leaves a short note telling you these same choices live in Settings → AI tools & CLI, so the surface isn't lost.++No change to what gets written or when — this is about legibility of the choice, not the behavior behind it.diff --git a/packages/app/src/components/ConfigSharingInfoTooltip.tsx b/packages/app/src/components/ConfigSharingInfoTooltip.tsxindex f49265d94..ddb13d511 100644--- a/packages/app/src/components/ConfigSharingInfoTooltip.tsx+++ b/packages/app/src/components/ConfigSharingInfoTooltip.tsx@@ -32,7 +32,7 @@ export function ConfigSharingInfoTooltip() {<br /><strong className="font-semibold">Shared</strong> commits them to git, so anyone whoclones the repo gets the same setup. <br />- <strong className="font-semibold">Local only</strong> keeps them out of git (via{' '}+ <strong className="font-semibold">Only me</strong> keeps them out of git (via{' '}<code>.git/info/exclude</code>).</Trans></p>diff --git a/packages/app/src/components/McpConsentDialog.dom.test.tsx b/packages/app/src/components/McpConsentDialog.dom.test.tsxindex 3dd9d923e..39aa110d7 100644--- a/packages/app/src/components/McpConsentDialog.dom.test.tsx+++ b/packages/app/src/components/McpConsentDialog.dom.test.tsx@@ -16,9 +16,30 @@ vi.doMock('@lingui/react/macro', () => ({const payload: OkMcpWiringShowPayload = {detectedEditors: [- { id: 'claude', label: 'Claude', detected: true, willReplace: true },- { id: 'cursor', label: 'Cursor', detected: true, willReplace: false },- { id: 'codex', label: 'Codex', detected: false, willReplace: false },+ {+ id: 'claude',+ label: 'Claude',+ detected: true,+ willReplace: true,+ configPath: '~/.claude.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ {+ id: 'cursor',+ label: 'Cursor',+ detected: true,+ willReplace: false,+ configPath: '~/.cursor/mcp.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ {+ id: 'codex',+ label: 'Codex',+ detected: false,+ willReplace: false,+ configPath: '~/.codex/config.toml',+ entryLocator: '[mcp_servers.open-knowledge]',+ },],pathInstall: {shellDetected: true,@@ -30,7 +51,16 @@ const payload: OkMcpWiringShowPayload = {/** Same editors, zero detected — exercises the Add-enable matrix. */const noneDetectedPayload: OkMcpWiringShowPayload = {- detectedEditors: [{ id: 'codex', label: 'Codex', detected: false, willReplace: false }],+ detectedEditors: [+ {+ id: 'codex',+ label: 'Codex',+ detected: false,+ willReplace: false,+ configPath: '~/.codex/config.toml',+ entryLocator: '[mcp_servers.open-knowledge]',+ },+ ],pathInstall: payload.pathInstall,globalSkills: [],};@@ -51,7 +81,16 @@ interface RecordedConfirm {/** Payload variant that offers both skill rows — exercises the skills section. */const skillsPayload: OkMcpWiringShowPayload = {- detectedEditors: [{ id: 'claude', label: 'Claude', detected: true, willReplace: false }],+ detectedEditors: [+ {+ id: 'claude',+ label: 'Claude',+ detected: true,+ willReplace: false,+ configPath: '~/.claude.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ ],pathInstall: { shellDetected: false, rcFilesToTouch: [], alreadyInstalled: false },globalSkills: [{@@ -79,6 +118,7 @@ function makeHarness({const confirmCalls: RecordedConfirm[] = [];const skipCalls: string[] = [];const toastErrors: string[] = [];+ const toastMessages: string[] = [];const store: McpConsentStore = {confirm: async (request) => {confirmCalls.push({@@ -99,14 +139,25 @@ function makeHarness({};const toast: ToastImpl = {error: (message) => toastErrors.push(message),+ message: (message) => toastMessages.push(message),};- return { confirmCalls, skipCalls, store, toast, toastErrors, snapshot };+ return { confirmCalls, skipCalls, store, toast, toastErrors, toastMessages, snapshot };}async function renderDialog(harness = makeHarness()) {const { McpConsentDialogBody } = await import('./McpConsentDialogBody');+ const { TooltipProvider } = await import('@/components/ui/tooltip');+ // Mirror production: the app mounts a single root TooltipProvider (main.tsx),+ // and the dialog's per-row info tooltips rely on it rather than each wrapping+ // their own — so the isolated render must supply it too.render(- <McpConsentDialogBody payload={harness.snapshot} store={harness.store} toast={harness.toast} />,+ <TooltipProvider>+ <McpConsentDialogBody+ payload={harness.snapshot}+ store={harness.store}+ toast={harness.toast}+ />+ </TooltipProvider>,);return harness;}@@ -125,22 +176,117 @@ describe('McpConsentDialog runtime behavior', () => {);// Detected tools carry no status line — the checked box conveys it.expect(screen.queryByTestId('mcp-consent-status-cursor')).toBeNull();- // Undetected tools link to their OpenKnowledge setup guide instead.+ // Progressive disclosure: undetected codex starts hidden behind the toggle.+ expect(screen.queryByTestId('mcp-consent-checkbox-codex')).toBeNull();+ expect(screen.getByTestId('mcp-consent-checkbox-claude').getAttribute('aria-checked')).toBe(+ 'true',+ );+ expect(screen.getByTestId('mcp-consent-checkbox-cursor').getAttribute('aria-checked')).toBe(+ 'true',+ );++ // Reveal the undetected tools — codex links to its setup guide, unchecked.+ await userEvent.click(screen.getByTestId('mcp-consent-editors-toggle'));const codexStatus = screen.getByTestId('mcp-consent-status-codex');expect(codexStatus.tagName).toBe('A');expect(codexStatus.textContent).toContain('How to set up');expect(codexStatus.getAttribute('href')).toBe('https://openknowledge.ai/docs/integrations/codex',);- expect(screen.getByTestId('mcp-consent-checkbox-claude').getAttribute('aria-checked')).toBe(- 'true',+ expect(screen.getByTestId('mcp-consent-checkbox-codex').getAttribute('aria-checked')).toBe(+ 'false',);- expect(screen.getByTestId('mcp-consent-checkbox-cursor').getAttribute('aria-checked')).toBe(+ });++ test('consent integrity: a checked undetected tool stays visible after collapse', async () => {+ // Two undetected tools so a toggle still exists after one is checked.+ await renderDialog(+ makeHarness({+ snapshot: {+ detectedEditors: [+ {+ id: 'claude',+ label: 'Claude',+ detected: true,+ willReplace: false,+ configPath: '~/.claude.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ {+ id: 'codex',+ label: 'Codex',+ detected: false,+ willReplace: false,+ configPath: '~/.codex/config.toml',+ entryLocator: '[mcp_servers.open-knowledge]',+ },+ {+ id: 'opencode',+ label: 'OpenCode',+ detected: false,+ willReplace: false,+ configPath: '~/.config/opencode/opencode.json',+ entryLocator: 'mcp.open-knowledge',+ },+ ],+ pathInstall: { shellDetected: false, rcFilesToTouch: [], alreadyInstalled: false },+ globalSkills: [],+ },+ }),+ );+ // Both undetected tools hidden until expanded.+ expect(screen.queryByTestId('mcp-consent-checkbox-codex')).toBeNull();++ await userEvent.click(screen.getByTestId('mcp-consent-editors-toggle'));+ await userEvent.click(screen.getByTestId('mcp-consent-checkbox-codex'));+ expect(screen.getByTestId('mcp-consent-checkbox-codex').getAttribute('aria-checked')).toBe('true',);++ // Collapse: checked codex stays visible (still in the write set); unchecked+ // opencode hides again, so the toggle persists.+ await userEvent.click(screen.getByTestId('mcp-consent-editors-toggle'));expect(screen.getByTestId('mcp-consent-checkbox-codex').getAttribute('aria-checked')).toBe(- 'false',+ 'true',);+ expect(screen.queryByTestId('mcp-consent-checkbox-opencode')).toBeNull();+ });++ test('location tooltip discloses the config file and entry locator on focus', async () => {+ await renderDialog();+ // Content is portaled — mounts only once the info trigger is focused. Radix+ // renders it twice when open (visible + a11y mirror), so assert getAllByText.+ screen.getByTestId('mcp-consent-editor-info-claude').focus();+ await waitFor(() => {+ expect(screen.getAllByText('~/.claude.json').length).toBeGreaterThan(0);+ expect(screen.getAllByText('mcpServers.open-knowledge').length).toBeGreaterThan(0);+ });+ });++ test('location tooltip shows the null-configPath fallback', async () => {+ // claude-desktop has no user-global config on this platform (configPath null).+ await renderDialog(+ makeHarness({+ snapshot: {+ detectedEditors: [+ {+ id: 'claude-desktop',+ label: 'Claude Desktop',+ detected: false,+ willReplace: false,+ configPath: null,+ entryLocator: 'mcpServers.open-knowledge',+ },+ ],+ pathInstall: { shellDetected: false, rcFilesToTouch: [], alreadyInstalled: false },+ globalSkills: [],+ },+ }),+ );+ screen.getByTestId('mcp-consent-editor-info-claude-desktop').focus();+ await waitFor(() => {+ expect(screen.getAllByText('unavailable on this platform').length).toBeGreaterThan(0);+ });});test('undetected claude-desktop links to the shared claude-code guide (aliased slug)', async () => {@@ -150,7 +296,14 @@ describe('McpConsentDialog runtime behavior', () => {makeHarness({snapshot: {detectedEditors: [- { id: 'claude-desktop', label: 'Claude Desktop', detected: false, willReplace: false },+ {+ id: 'claude-desktop',+ label: 'Claude Desktop',+ detected: false,+ willReplace: false,+ configPath: null,+ entryLocator: 'mcpServers.open-knowledge',+ },],pathInstall: { shellDetected: false, rcFilesToTouch: [], alreadyInstalled: false },globalSkills: [],@@ -233,6 +386,20 @@ describe('McpConsentDialog runtime behavior', () => {expect(harness.skipCalls).toEqual(['skip', 'skip']);});});++ test('successful Skip points the user at the Settings surface via a toast', async () => {+ const harness = makeHarness();+ await renderDialog(harness);++ await userEvent.click(screen.getByTestId('mcp-consent-skip'));++ await waitFor(() => {+ expect(harness.toastMessages).toEqual([+ 'This can be configured in Settings > AI tools & CLI',+ ]);+ });+ expect(harness.toastErrors).toEqual([]);+ });});describe('McpConsentDialog PATH consent row', () => {diff --git a/packages/app/src/components/McpConsentDialog.test.ts b/packages/app/src/components/McpConsentDialog.test.tsindex 7fcd9b425..f136a8086 100644--- a/packages/app/src/components/McpConsentDialog.test.ts+++ b/packages/app/src/components/McpConsentDialog.test.ts@@ -4,6 +4,7 @@ import { McpConsentDialog } from './McpConsentDialog';import {computeInitialSelection,isPathRowActionable,+ partitionEditorsForDisplay,selectedIdsOrdered,type ToastImpl,toggleSelectedId,@@ -11,11 +12,18 @@ import {type EditorDetection = OkMcpWiringShowPayload['detectedEditors'][number];+/** Detection-literal factory — fills the location-disclosure fields+ * (configPath/entryLocator) the pure selection/ordering helpers under test+ * don't read, so each case stays focused on id/detected/willReplace. */+function ed(o: Omit<EditorDetection, 'configPath' | 'entryLocator'>): EditorDetection {+ return { configPath: null, entryLocator: 'mcpServers.open-knowledge', ...o };+}+const sampleDetection: readonly EditorDetection[] = [- { id: 'claude', label: 'Claude', detected: true, willReplace: false },- { id: 'claude-desktop', label: 'Claude Desktop', detected: false, willReplace: false },- { id: 'cursor', label: 'Cursor', detected: true, willReplace: false },- { id: 'codex', label: 'Codex', detected: false, willReplace: false },+ ed({ id: 'claude', label: 'Claude', detected: true, willReplace: false }),+ ed({ id: 'claude-desktop', label: 'Claude Desktop', detected: false, willReplace: false }),+ ed({ id: 'cursor', label: 'Cursor', detected: true, willReplace: false }),+ ed({ id: 'codex', label: 'Codex', detected: false, willReplace: false }),];describe('computeInitialSelection', () => {@@ -35,16 +43,16 @@ describe('computeInitialSelection', () => {test('all-detected preselects all', () => {const sel = computeInitialSelection([- { id: 'claude', label: 'Claude', detected: true, willReplace: false },- { id: 'cursor', label: 'Cursor', detected: true, willReplace: false },+ ed({ id: 'claude', label: 'Claude', detected: true, willReplace: false }),+ ed({ id: 'cursor', label: 'Cursor', detected: true, willReplace: false }),]);expect(sel.size).toBe(2);});test('none-detected preselects none', () => {const sel = computeInitialSelection([- { id: 'claude', label: 'Claude', detected: false, willReplace: false },- { id: 'cursor', label: 'Cursor', detected: false, willReplace: false },+ ed({ id: 'claude', label: 'Claude', detected: false, willReplace: false }),+ ed({ id: 'cursor', label: 'Cursor', detected: false, willReplace: false }),]);expect(sel.size).toBe(0);});@@ -90,7 +98,7 @@ describe('selectedIdsOrdered', () => {test('selected ids NOT in detection payload are dropped (defensive)', () => {const sel = new Set<OkMcpWiringEditorId>(['claude']);const truncated: readonly EditorDetection[] = [- { id: 'codex', label: 'Codex', detected: false, willReplace: false },+ ed({ id: 'codex', label: 'Codex', detected: false, willReplace: false }),];const out = selectedIdsOrdered(sel, truncated);expect(out).toEqual([]);@@ -132,40 +140,108 @@ describe('isPathRowActionable', () => {});});+describe('partitionEditorsForDisplay', () => {+ const claude = ed({ id: 'claude', label: 'Claude', detected: true, willReplace: false });+ const cursor = ed({ id: 'cursor', label: 'Cursor', detected: true, willReplace: false });+ const codex = ed({ id: 'codex', label: 'Codex', detected: false, willReplace: false });+ const opencode = ed({ id: 'opencode', label: 'OpenCode', detected: false, willReplace: false });++ const none = new Set<OkMcpWiringEditorId>();++ test('collapsed: shows only detected, hides unchecked undetected behind the toggle', () => {+ const r = partitionEditorsForDisplay([claude, codex, cursor, opencode], none, false);+ expect(r.collapsible).toBe(true);+ expect(r.hiddenCount).toBe(2);+ expect(r.visible.map((e) => e.id)).toEqual(['claude', 'cursor']);+ });++ test('expanded: always-shown first, then hideable; hiddenCount labels the toggle', () => {+ const r = partitionEditorsForDisplay([claude, codex, cursor, opencode], none, true);+ expect(r.collapsible).toBe(true);+ expect(r.hiddenCount).toBe(2);+ expect(r.visible.map((e) => e.id)).toEqual(['claude', 'cursor', 'codex', 'opencode']);+ });++ test('consent integrity: a checked undetected tool survives collapse (never hidden)', () => {+ // User expanded, checked codex (undetected), then collapsed. codex must stay+ // visible because it is still in the write set; only unchecked opencode hides.+ const r = partitionEditorsForDisplay(+ [claude, codex, cursor, opencode],+ new Set<OkMcpWiringEditorId>(['codex']),+ false,+ );+ expect(r.collapsible).toBe(true);+ expect(r.hiddenCount).toBe(1);+ expect(r.visible.map((e) => e.id)).toEqual(['claude', 'codex', 'cursor']);+ });++ test('all detected: not collapsible, shows everything', () => {+ const r = partitionEditorsForDisplay([claude, cursor], none, false);+ expect(r.collapsible).toBe(false);+ expect(r.hiddenCount).toBe(0);+ expect(r.visible.map((e) => e.id)).toEqual(['claude', 'cursor']);+ });++ test('every undetected tool checked: nothing hideable, not collapsible', () => {+ const r = partitionEditorsForDisplay(+ [codex, opencode],+ new Set<OkMcpWiringEditorId>(['codex', 'opencode']),+ false,+ );+ expect(r.collapsible).toBe(false);+ expect(r.hiddenCount).toBe(0);+ expect(r.visible.map((e) => e.id)).toEqual(['codex', 'opencode']);+ });++ test('none detected + none checked: empty-state fallback shows all (never a blank list)', () => {+ const r = partitionEditorsForDisplay([codex, opencode], none, false);+ expect(r.collapsible).toBe(false);+ expect(r.hiddenCount).toBe(0);+ expect(r.visible.map((e) => e.id)).toEqual(['codex', 'opencode']);+ });+});+describe('McpConsentDialog module shape', () => {- test('exports the component + the three pure helpers + ToastImpl type', () => {+ test('exports the component + the pure selection/display helpers + ToastImpl type', () => {expect(typeof McpConsentDialog).toBe('function');expect(typeof computeInitialSelection).toBe('function');expect(typeof toggleSelectedId).toBe('function');expect(typeof selectedIdsOrdered).toBe('function');+ expect(typeof partitionEditorsForDisplay).toBe('function');// ToastImpl is a type; no runtime export — this assertion just ensures// the import resolves at type-check time. The shape is exercised by the// toast injection contract below.- const toastShape: ToastImpl = { error: () => {} };+ const toastShape: ToastImpl = { error: () => {}, message: () => {} };expect(typeof toastShape.error).toBe('function');- });-- test('Pass 0 Critical #1: ToastImpl interface accepts a sonner-shaped error fn', () => {- // The dialog's `toast` prop is typed `ToastImpl` so the production- // `defaultToast` (which wraps `sonnerToast.error`) can be substituted in- // tests by any object with `error(msg: string): void`. This contract test- // pins the surface so a future refactor that adds methods (warning,- // success) signals the change explicitly.- const recorded: string[] = [];+ expect(typeof toastShape.message).toBe('function');+ });++ test('ToastImpl exposes the full error + message surface the dialog injects', () => {+ // Records the surface the dialog injects: any object with `error` ++ // `message` substitutes for the production `defaultToast` (which wraps+ // `sonnerToast.error` / `sonnerToast.message`). NOTE: this only DOCUMENTS+ // the shape — it cannot fail on a shape change. `**/*.test.ts` is excluded+ // from `packages/app/tsconfig.json` and vitest runs without `--typecheck`,+ // so these literals are never type-checked; a real compile-time guard would+ // need a test-inclusive tsconfig or `test.typecheck`, a packages/app-wide+ // call out of scope here.+ const errors: string[] = [];+ const messages: string[] = [];const toast: ToastImpl = {- error: (msg) => {- recorded.push(msg);- },+ error: (msg) => errors.push(msg),+ message: (msg) => messages.push(msg),};- toast.error('test message');- expect(recorded).toEqual(['test message']);+ toast.error('boom');+ toast.message('fyi');+ expect(errors).toEqual(['boom']);+ expect(messages).toEqual(['fyi']);});- test('mock module-level usage check: toast.error is invocable from a Set-like context', () => {+ test('mock module-level usage check: toast methods are invocable from a Set-like context', () => {// Smoke that the ToastImpl shape composes through `mock()` for callers- // that want to inject a spy.+ // that want to inject spies.const spy = vi.fn((_msg: string) => {});- const toast: ToastImpl = { error: spy };+ const toast: ToastImpl = { error: spy, message: vi.fn() };toast.error('hello');expect(spy.mock.calls.length).toBe(1);expect(spy.mock.calls[0]).toEqual(['hello']);diff --git a/packages/app/src/components/McpConsentDialogBody.tsx b/packages/app/src/components/McpConsentDialogBody.tsxindex 7899ff2f8..d9e9f8d09 100644--- a/packages/app/src/components/McpConsentDialogBody.tsx+++ b/packages/app/src/components/McpConsentDialogBody.tsx@@ -19,8 +19,8 @@*/import { EDITOR_SETUP_DOC_SLUG } from '@inkeep/open-knowledge-core';-import { Trans, useLingui } from '@lingui/react/macro';-import { ArrowUpRight, Info } from 'lucide-react';+import { Plural, Trans, useLingui } from '@lingui/react/macro';+import { ArrowUpRight, ChevronDown, ChevronUp, Info } from 'lucide-react';import { useId, useState } from 'react';import { toast as sonnerToast } from 'sonner';import { Button } from '@/components/ui/button';@@ -35,11 +35,10 @@ import {DialogTitle,} from '@/components/ui/dialog';import { Label } from '@/components/ui/label';-import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';import type { OkMcpWiringEditorId, OkMcpWiringShowPayload } from '@/lib/desktop-bridge-types';import { dispatchExternalLinkClick } from '@/lib/external-link';import { type McpConsentStore, mcpConsentStore } from '@/lib/mcp-consent-store';-import { cn } from '@/lib/utils';type EditorDetection = OkMcpWiringShowPayload['detectedEditors'][number];type PathInstallDescriptor = OkMcpWiringShowPayload['pathInstall'];@@ -96,6 +95,35 @@ export function selectedIdsOrdered(return out;}+/**+ * Pure helper: progressive-disclosure split for the editor list. Rows that are+ * detected OR currently checked always show; the rest hide behind a "Show N+ * more" toggle until `showAll`. Keying visibility off `selection` (not just+ * `detected`) is load-bearing for consent integrity: a checked undetected tool+ * must never be collapsed out of view while it's still in the write set — this+ * dialog discloses exactly what Connect will touch, and it fires once. So+ * `hiddenCount` is the count of rows actually hidden (unchecked + undetected),+ * which keeps the toggle label truthful. `collapsible` is false when the split+ * is pointless — nothing hideable, or nothing always-shown (which would blank+ * the list) — in which case every row shows.+ */+export function partitionEditorsForDisplay(+ editors: readonly EditorDetection[],+ selection: ReadonlySet<OkMcpWiringEditorId>,+ showAll: boolean,+): { visible: readonly EditorDetection[]; hiddenCount: number; collapsible: boolean } {+ const alwaysShown = editors.filter((e) => e.detected || selection.has(e.id));+ const hideable = editors.filter((e) => !e.detected && !selection.has(e.id));+ if (alwaysShown.length === 0 || hideable.length === 0) {+ return { visible: editors, hiddenCount: 0, collapsible: false };+ }+ return {+ visible: showAll ? [...alwaysShown, ...hideable] : alwaysShown,+ hiddenCount: hideable.length,+ collapsible: true,+ };+}+/*** Pure helper: initial skill checkbox state — every offered bundle starts* checked (opt-out default: preserves today's install-everywhere behavior@@ -140,13 +168,15 @@ export interface McpConsentDialogBodyProps {payload?: OkMcpWiringShowPayload;}-/** Minimal `sonner` surface the dialog uses — only `error`. */+/** Minimal `sonner` surface the dialog uses. */export interface ToastImpl {error(message: string): void;+ message(message: string): void;}const defaultToast: ToastImpl = {error: (message) => sonnerToast.error(message),+ message: (message) => sonnerToast.message(message),};/**@@ -169,6 +199,53 @@ export function McpConsentDialogBody({return <McpConsentDialogForm payload={snapshot} store={store} toast={toast} />;}+/**+ * Per-editor location disclosure — the exact config file + entry an Add would+ * touch, shown behind an info affordance. Mirrors Settings → AI tools'+ * `RowInfoTooltip` (reuses the same "File" / "Entry" copy) so the first-launch+ * dialog and the persistent settings surface disclose identically — including+ * relying on the root `TooltipProvider` (main.tsx) rather than wrapping a+ * per-row one, so sibling info buttons share Radix's skip-delay window.+ */+function EditorLocationTooltip({ editor }: { editor: EditorDetection }) {+ const { t } = useLingui();+ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="icon"+ className="mt-1.5 mr-1.5 size-6 shrink-0 text-muted-foreground opacity-60 hover:opacity-100"+ aria-label={t`What this checkbox changes`}+ data-testid={`mcp-consent-editor-info-${editor.id}`}+ >+ <Info className="size-3.5" aria-hidden />+ </Button>+ </TooltipTrigger>+ {/* Base TooltipContent is an inline-flex row — the column wrapper keeps+ the File/Entry pairs stacked instead of side by side. */}+ <TooltipContent side="left" className="max-w-sm text-left">+ <div className="flex min-w-0 flex-col gap-1">+ <p className="opacity-70">+ <Trans>File</Trans>+ </p>+ <p>+ <code className="break-all">+ {editor.configPath ?? t`unavailable on this platform`}+ </code>+ </p>+ <p className="pt-1 opacity-70">+ <Trans>Entry</Trans>+ </p>+ <p>+ <code className="break-all">{editor.entryLocator}</code>+ </p>+ </div>+ </TooltipContent>+ </Tooltip>+ );+}+interface McpConsentDialogFormProps {payload: OkMcpWiringShowPayload;store: McpConsentStore;@@ -193,6 +270,11 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormProcomputeInitialSkillSelection(globalSkills),);const [busy, setBusy] = useState(false);+ // Progressive disclosure: detected tools show by default; undetected ones hide+ // behind a "Show N more" toggle (see partitionEditorsForDisplay for the+ // empty-state fallback that shows all when nothing is detected).+ const [showAllEditors, setShowAllEditors] = useState(false);+ const editorList = partitionEditorsForDisplay(detectedEditors, selection, showAllEditors);const idPrefix = useId();function onToggle(id: OkMcpWiringEditorId) {@@ -224,7 +306,12 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormProasync function onSkip() {setBusy(true);const result = await store.skip();- if (!result.ok) {+ if (result.ok) {+ // Point the user at where these same choices live for later — the+ // dialog is one-shot per boot, so without this the surface is easy+ // to lose track of.+ toast.message(t`This can be configured in Settings > AI tools & CLI`);+ } else {toast.error(result.error);// Matching rationale to onAdd — reset `busy` so Skip stays// clickable after a transient marker-write failure.@@ -249,7 +336,7 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro* label content via that attr causes screen readers to either* announce the label twice or drop the association.*/}- <DialogContent className="sm:max-w-md">+ <DialogContent className="sm:max-w-lg"><DialogHeader><DialogTitle><Trans>Connect your AI tools to OpenKnowledge</Trans>@@ -257,7 +344,7 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro<DialogDescription><Trans>Give the AI tools you use access to read and update your projects. Pick what to set up- below, and change it anytime.+ below, and change it anytime in Settings > AI tools & CLI.</Trans></DialogDescription></DialogHeader>@@ -306,33 +393,33 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormProAdd the <code className="inline-code">ok</code> command to your terminal</Trans>{pathActionable && (- <TooltipProvider>- <Tooltip>- {/* Nested inside the row <Label>, so stop the click from- bubbling to toggle the checkbox. Radix opens the- tooltip on hover/focus, not click, so preventing the- click default costs nothing. */}- <TooltipTrigger- onClick={(e) => {- e.preventDefault();- e.stopPropagation();- }}- className="text-muted-foreground hover:text-foreground"- aria-label={t`What this changes`}- data-testid="mcp-consent-path-info"+ <Tooltip>+ {/* Relies on the root TooltipProvider (main.tsx), same as+ EditorLocationTooltip — so every info button in this dialog+ shares one skip-delay window. Nested inside the row <Label>,+ so stop the click from bubbling to toggle the checkbox;+ Radix opens on hover/focus (not click), so preventing the+ click default costs nothing. */}+ <TooltipTrigger+ onClick={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ className="text-muted-foreground hover:text-foreground"+ aria-label={t`What this changes`}+ data-testid="mcp-consent-path-info"+ >+ <Info className="size-3.5" aria-hidden />+ </TooltipTrigger>+ <TooltipContent className="max-w-xs">+ <p+ className="leading-relaxed wrap-break-word"+ data-testid="mcp-consent-path-status">- <Info className="size-3.5" aria-hidden />- </TooltipTrigger>- <TooltipContent className="max-w-xs">- <p- className="leading-relaxed wrap-break-word"- data-testid="mcp-consent-path-status"- >- {t`Adds a managed block to ${pathInstall.rcFilesToTouch.join(', ')}`}- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider>+ {t`Adds a managed block to ${pathInstall.rcFilesToTouch.join(', ')}`}+ </p>+ </TooltipContent>+ </Tooltip>)}</span></span>@@ -371,50 +458,49 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro</div>)}<ul className="rounded-md border border-border bg-card/50 divide-y divide-border overflow-hidden">- {detectedEditors.map((editor) => {+ {editorList.visible.map((editor) => {const checked = selection.has(editor.id);const checkboxId = `${idPrefix}-${editor.id}`;const setupUrl = `https://openknowledge.ai/docs/integrations/${EDITOR_SETUP_DOC_SLUG[editor.id]}`;return (- // Padding lives on the interactive children, not the <li>, so the- // <Label> owns the full row width (flex-1) and height (py-2.5) —- // the whole name area toggles, and only the link is excluded. The- // link/status are siblings OUTSIDE the label (an anchor must never- // be a label descendant). flex-wrap: the link drops to its own line- // on narrow widths; willReplace uses basis-full to always sit below.- <li key={editor.id} className="flex flex-wrap items-stretch hover:bg-accent">+ // The <Label> owns the full row (flex-1) and height (py-2.5) so the+ // whole name area toggles the checkbox. The setup link and location+ // info button are siblings OUTSIDE the label (an anchor / a second+ // interactive control must not live in the checkbox's activation+ // path).+ <li key={editor.id} className="flex items-start hover:bg-accent"><LabelhtmlFor={checkboxId}- className={cn(- 'flex flex-1 cursor-pointer items-center gap-2.5 px-3 py-2.5 font-normal',- editor.willReplace ? 'pb-0.5' : '',- )}+ className="flex flex-1 cursor-pointer items-start gap-2.5 px-3 py-2.5 font-normal"><Checkboxid={checkboxId}checked={checked}disabled={busy}onCheckedChange={() => onToggle(editor.id)}+ className="mt-0.5"data-testid={`mcp-consent-checkbox-${editor.id}`}/>- <span className="text-sm font-medium text-foreground">{editor.label}</span>- </Label>- {/* Detected tools need no trailing line — the checked box says it.- willReplace warns Add will overwrite an existing OK-managed entry- (reclaimed by name); basis-full drops it to its own line below the- name (ms-6.5 + px-3 = the row inset + checkbox 1rem + gap 0.625rem- aligns it under the label). Undetected tools link to their setup- guide, right-aligned, instead of a dead-end "Not detected". */}- {editor.willReplace ? (- <span- className="ms-6.5 basis-full px-3 pb-2.5 text-xs text-amber-600 dark:text-amber-400"- data-testid={`mcp-consent-status-${editor.id}`}- >- <Trans comment="Disclosure that Add will overwrite the tool's existing OpenKnowledge MCP entry">- Will replace existing OpenKnowledge entry- </Trans>+ <span className="flex min-w-0 flex-1 flex-col gap-0.5">+ <span className="text-sm font-medium text-foreground">{editor.label}</span>+ {/* willReplace warns Add will overwrite an existing OK-managed+ entry (reclaimed by name). Sits under the name, inside the+ label column, so it aligns with the Settings status subtext. */}+ {editor.willReplace && (+ <span+ className="text-xs text-amber-600 dark:text-amber-400"+ data-testid={`mcp-consent-status-${editor.id}`}+ >+ <Trans comment="Disclosure that Add will overwrite the tool's existing OpenKnowledge MCP entry">+ Will replace existing OpenKnowledge entry+ </Trans>+ </span>+ )}</span>- ) : editor.detected ? null : (+ </Label>+ {/* Undetected tools link to their setup guide instead of a+ dead-end "Not detected"; detected tools need no trailing line. */}+ {!editor.willReplace && !editor.detected && (<ahref={setupUrl}target="_blank"@@ -425,7 +511,7 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro// (2.4.4); contains the visible text (2.5.3) and flags the// new-tab behavior the arrow icon shows sighted users.aria-label={t`How to set up ${editor.label} (opens in browser)`}- className="flex items-center gap-0.5 px-3 py-2.5 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"+ className="flex shrink-0 items-center gap-0.5 px-2 py-2.5 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"data-testid={`mcp-consent-status-${editor.id}`}><Trans comment="Link on an undetected tool row to its OpenKnowledge setup guide">@@ -434,10 +520,42 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro<ArrowUpRight className="size-3" aria-hidden /></a>)}+ <EditorLocationTooltip editor={editor} /></li>);})}</ul>+ {/* Progressive disclosure toggle — only when the list has both+ detected and undetected tools, so there is something to hide/reveal. */}+ {editorList.collapsible && (+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="h-auto justify-start gap-1 self-start px-1 py-1 text-xs font-normal text-muted-foreground hover:text-foreground"+ onClick={() => setShowAllEditors((v) => !v)}+ data-testid="mcp-consent-editors-toggle"+ aria-expanded={showAllEditors}+ >+ {showAllEditors ? (+ <>+ <ChevronUp className="size-3.5" aria-hidden />+ <Trans comment="Collapses the undetected AI tools back behind the toggle">+ Show fewer+ </Trans>+ </>+ ) : (+ <>+ <ChevronDown className="size-3.5" aria-hidden />+ <Plural+ value={editorList.hiddenCount}+ one="Show # more tool"+ other="Show # more tools"+ />+ </>+ )}+ </Button>+ )}</div>{/** User-global Agent Skills consent section — one pre-checked row per@@ -513,14 +631,13 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro</DialogBody><DialogFooter><Button- variant="outline"- className="font-mono uppercase"+ variant="outline-mono"onClick={() => void onSkip()}disabled={busy}data-testid="mcp-consent-skip"><Trans comment="Secondary button — dismisses the dialog without wiring any tools">- Skip+ Skip for now</Trans></Button><Buttondiff --git a/packages/app/src/components/SharingModeField.tsx b/packages/app/src/components/SharingModeField.tsxindex caa32acd4..d288bfccc 100644--- a/packages/app/src/components/SharingModeField.tsx+++ b/packages/app/src/components/SharingModeField.tsx@@ -93,10 +93,10 @@ export function SharingModeField({/><span><span className="block font-medium">- <Trans>Local only</Trans>+ <Trans>Only me</Trans></span><span className="block text-1sm text-muted-foreground">- <Trans>Stays on this computer.</Trans>+ <Trans>Stays on this computer. Not committed to git.</Trans></span></span></Label>diff --git a/packages/app/src/components/settings/SharingSection.tsx b/packages/app/src/components/settings/SharingSection.tsxindex d702c7aaa..822f3e281 100644--- a/packages/app/src/components/settings/SharingSection.tsx+++ b/packages/app/src/components/settings/SharingSection.tsx@@ -2,7 +2,7 @@* Config-sharing section — the per-project shared / local-only toggle for the* OK config artifact set.*- * Two-state segmented control: `Shared` vs `Local only`. Toggling routes+ * Two-state segmented control: `Shared` vs `Only me`. Toggling routes* through `bridge.sharing.setMode` which calls the same* `addOkPathsToGitExclude` / `removeOkPathsFromGitExclude` primitives the CLI* uses, so desktop and CLI cannot drift.@@ -130,7 +130,7 @@ function SharingSectionBody() {} else {toast.success(mode === 'local-only'- ? t`Config sharing is now local-only.`+ ? t`Config sharing is now Only me.`: t`Config sharing is now shared. Commit the OK files to share with your team.`,);}@@ -170,7 +170,7 @@ function SharingSectionBody() {toast.warning(t`Couldn't update skills sharing — ${detail}.`);return;}- toast.success(t`.ok/skills is back to local-only.`);+ toast.success(t`.ok/skills is back to Only me.`);await refresh();}@@ -249,10 +249,10 @@ function SharingSectionBody() {/><span><span className="font-medium">- <Trans>Local only</Trans>+ <Trans>Only me</Trans></span><span className="block text-1sm text-muted-foreground">- <Trans>Stays on this computer.</Trans>+ <Trans>Stays on this computer. Not committed to git.</Trans></span></span></label>@@ -293,7 +293,7 @@ function SharingSectionBody() {data-testid="settings-sharing-refusal"><p className="font-semibold">- <Trans>Switch to local-only refused</Trans>+ <Trans>Couldn't switch to Only me</Trans></p><pre className="whitespace-pre-wrap font-mono text-xs leading-relaxed">{refusal.remediation}diff --git a/packages/app/src/lib/desktop-bridge-types.ts b/packages/app/src/lib/desktop-bridge-types.tsindex f895fb662..1e805db02 100644--- a/packages/app/src/lib/desktop-bridge-types.ts+++ b/packages/app/src/lib/desktop-bridge-types.ts@@ -471,6 +471,12 @@ export interface OkMcpWiringShowPayload {readonly label: string;readonly detected: boolean;readonly willReplace: boolean;+ /** Display-form user-global config path (home collapsed to `~`), or null+ * when the editor has no user-global surface on this platform. Feeds the+ * per-row location tooltip — mirrors `OkIntegrationsStatus`. */+ readonly configPath: string | null;+ /** Locator for this editor's `open-knowledge` entry within its config file. */+ readonly entryLocator: string;}[];readonly pathInstall: {readonly shellDetected: boolean;diff --git a/packages/app/src/lib/mcp-consent-store.test.ts b/packages/app/src/lib/mcp-consent-store.test.tsindex c99542976..c4b07f012 100644--- a/packages/app/src/lib/mcp-consent-store.test.ts+++ b/packages/app/src/lib/mcp-consent-store.test.ts@@ -68,8 +68,22 @@ function makeBridge(const sampleShowPayload: OkMcpWiringShowPayload = {detectedEditors: [- { id: 'claude', label: 'Claude', detected: true, willReplace: false },- { id: 'cursor', label: 'Cursor', detected: false, willReplace: false },+ {+ id: 'claude',+ label: 'Claude',+ detected: true,+ willReplace: false,+ configPath: '~/.claude.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ {+ id: 'cursor',+ label: 'Cursor',+ detected: false,+ willReplace: false,+ configPath: '~/.cursor/mcp.json',+ entryLocator: 'mcpServers.open-knowledge',+ },],pathInstall: { shellDetected: true, rcFilesToTouch: ['~/.zshrc'], alreadyInstalled: false },globalSkills: [],diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex b0e921428..f3a40940e 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -251,6 +251,13 @@"3oEK1e": ["Resuming the conversation"],"3oh0nQ": ["Nested .okignore error in ", ["path"]],"3pU8e-": ["Pin tab"],+ "3s-k7L": [+ [+ "0",+ "plural",+ { "one": ["Show ", "#", " more tool"], "other": ["Show ", "#", " more tools"] }+ ]+ ],"3v62tp": ["Popular on skills.sh"],"3wiBAs": ["Where should it live?"],"3y6XTb": ["Semantic search"],@@ -496,6 +503,7 @@"7vQdBK": ["Loading the conversation"],"80c4-P": ["Code copied to clipboard"],"81H_23": ["Add properties"],+ "851WA-": ["This can be configured in Settings > AI tools & CLI"],"881Uwh": ["Delete selected table"],"89TtiD": ["New file from template \"",@@ -1012,9 +1020,6 @@"GA-UkN": [["keyName"], " type: ", ["typeLabel"], ". Click to change."],"GBQjiV": ["Add skill"],"GDvlUT": ["Role"],- "GF51cw": [- "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."- ],"GGsM4y": ["Selected in graph"],"GHsJb8": ["Show .ok folders"],"GJH-AT": [@@ -1229,7 +1234,6 @@"K_vT1F": ["Upstream sync"],"KaFCD3": ["Open this link in a new tab and collapse the graph."],"Kf7GG5": ["Restarting the server…"],- "Kgdbkt": ["Switch to local-only refused"],"Kh1n4a": ["<",["componentName"],@@ -1484,7 +1488,6 @@"OdmsFg": ["Failed to delete item"],"OeAl1e": ["e.g. assets/uploads"],"OfhWJH": ["Reset"],- "OgyJSr": ["Local only"],"Oi56Cu": ["Cleanup log"],"OiHJdA": ["Move through slash, wiki-link, tag, and path suggestions; accept or dismiss the active suggestion."@@ -1505,6 +1508,7 @@"P-ye9o": ["Could not open folder picker"],"P0HC30": ["This ", ["targetNoun"], " moved to <0>", ["0"], "</0>. Open it there?"],"P3NS4G": ["Pattern syntax error (line ", ["lineNumber"], "): ", ["message"]],+ "P3S14k": [".ok/skills is back to Only me."],"P3hnm0": ["File too large to open"],"P47EWZ": ["Could not update sidebar settings"],"P6gXB-": ["Replace ", ["keyName"]],@@ -1590,6 +1594,7 @@"QcpeeE": ["Navigate to ", ["docName"]],"QfFBdJ": ["The template's filename (without `.md`)."],"Qj4RL5": ["Completed:"],+ "QjzFZj": ["Only me"],"QlAG4m": ["Tell us more (optional)"],"QlkiD5": ["Re-place on selected text"],"QlxHAH": ["Showing results for \"", ["semanticResultsLabel"], "\""],@@ -1879,7 +1884,6 @@"VmXASo": ["(symlink)"],"VsaI0G": [["folderCount", "plural", { "one": ["folder"], "other": ["folders"] }]],"VuxVSP": ["Start source completion"],- "VvS_k_": ["Config sharing is now local-only."],"VxLvKE": ["Revert to installed version"],"VxO6wR": ["Delete selected files or folders"],"VzGJRl": ["Add link"],@@ -2111,6 +2115,7 @@"Zon_qG": ["Mirror source <0>", ["label"], "</0>"],"ZptNUh": ["Show ", ["hidden"], " more"],"ZsGpr_": ["Paste link"],+ "ZscwQ0": ["Couldn't switch to Only me"],"Zue_jx": ["Your GitHub token is missing required scopes. Try signing in again."],"Zul8Ry": ["never"],"ZvzbDF": ["Add it directly to this project."],@@ -2314,7 +2319,6 @@"cV7LOw": ["Team Wiki"],"cZGNlb": ["Add another pattern"],"cZI5AL": ["OK Desktop"],- "cZ_8zB": ["Stays on this computer."],"caw8gO": [["strandedCommitCount",@@ -2623,6 +2627,7 @@"hmYd9H": ["Keep track of the people and companies you work with and the meetings you have with them. Good for remembering who someone is, how you know them, and what you last talked about."],+ "hnlGzG": ["Skip for now"],"hnq8fP": ["Remove ", ["label"], " from context"],"hp8OtS": ["Added"],"hpDtUm": ["External wiki link"],@@ -2710,9 +2715,6 @@"irFGwu": ["Template list"],"irrm_E": ["Remove selection"],"isRobC": ["New"],- "itxlnr": [- "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."- ],"iuTKci": ["No edits yet."],"iv452l": ["Documentation for ", ["0"], " (opens in browser)"],"ivwdwq": ["Create a skill."],@@ -2853,6 +2855,9 @@"kq-Qj4": ["Couldn't work out where to send the comments — they stay queued."],"ktspdq": ["Tint and badge files that have lint or link problems, without opening them."],"ku0yLQ": ["Pages are embedded the first time a search needs them."],+ "kwLcuN": [+ "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime in Settings > AI tools & CLI."+ ],"ky9Tuc": ["Edit ", ["0"], " source"],"kzpkcn": ["Couldn't save that edit."],"l-4nnw": ["Search rules"],@@ -2949,6 +2954,9 @@"mPy9lS": ["Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."],+ "mR3Bly": [+ "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Only me</5> keeps them out of git (via <6>.git/info/exclude</6>)."+ ],"mShKiV": ["Upload a skill"],"mToVM9": ["Message ", ["agentName"]],"mU3j1b": ["Remove item ", ["0"]],@@ -3150,7 +3158,6 @@"pFRz_E": ["Leave these comments out of this message"],"pFagOn": ["Source editing"],"pHYP6v": ["Open <0>Customize</0> in the sidebar <1/> <2>Skills</2>."],- "pQf2Ux": [".ok/skills is back to local-only."],"pSimwP": ["New name for the ", ["editor"], " version"],"pTPqMK": ["Toggle a fenced code block."],"pTyA_t": ["tags"],@@ -3466,6 +3473,7 @@],"uksqrP": ["Repository not found. It may have been renamed, deleted, or moved."],"ul1Atu": ["Converting..."],+ "un-K1H": ["Stays on this computer. Not committed to git."],"un8kBM": ["Creating page: ", ["linkTitle"], "."],"uoJF_D": ["It was too hard to set up or get started"],"ur2XSb": ["Visual editor"],@@ -3568,6 +3576,7 @@"wbv9xO": ["Create new project"],"wcfO9r": ["No bug reports yet."],"wdxz7K": ["Source"],+ "wdzBgi": ["Config sharing is now Only me."],"weP6me": ["Couldn't load docs — type @ again to retry"],"wefL17": [["source"], " publishes ", ["count"], " skills. Install any of them together."],"wgNoIs": ["Select all"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 6f56b03b0..933f71cd1 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -42,8 +42,8 @@ msgid ".ok folders"msgstr ".ok folders"#: src/components/settings/SharingSection.tsx-msgid ".ok/skills is back to local-only."-msgstr ".ok/skills is back to local-only."+msgid ".ok/skills is back to Only me."+msgstr ".ok/skills is back to Only me."#: src/components/settings/SharingSection.tsxmsgid ".ok/skills is committable so your team gets your skills; the rest of .ok/ stays on this computer."@@ -221,6 +221,11 @@ msgstr "{0, plural, one {Folder} other {Folders}}"msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"msgstr "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"+#. placeholder {0}: editorList.hiddenCount+#: src/components/McpConsentDialogBody.tsx+msgid "{0, plural, one {Show # more tool} other {Show # more tools}}"+msgstr "{0, plural, one {Show # more tool} other {Show # more tools}}"+#. placeholder {0}: skillRows.length#: src/components/CreatedItemsList.tsxmsgid "{0, plural, one {Skill} other {Skills}}"@@ -2370,8 +2375,8 @@ msgid "Config sharing"msgstr "Config sharing"#: src/components/settings/SharingSection.tsx-msgid "Config sharing is now local-only."-msgstr "Config sharing is now local-only."+msgid "Config sharing is now Only me."+msgstr "Config sharing is now Only me."#: src/components/settings/SharingSection.tsxmsgid "Config sharing is now shared. Commit the OK files to share with your team."@@ -3204,6 +3209,10 @@ msgstr "Couldn't start the agent thread — please try again."msgid "Couldn't start the sync. Check your connection, then retry."msgstr "Couldn't start the sync. Check your connection, then retry."+#: src/components/settings/SharingSection.tsx+msgid "Couldn't switch to Only me"+msgstr "Couldn't switch to Only me"+#. placeholder {0}: r.error#: src/components/SkillInstallMenu.tsxmsgid "Couldn't update {subRoot}: {0}"@@ -4254,6 +4263,7 @@ msgstr "Enter a valid branch name (no spaces, no leading dot, no \"..\")."msgid "Enter a valid URL (for example https://api.openai.com/v1)."msgstr "Enter a valid URL (for example https://api.openai.com/v1)."+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsxmsgid "Entry"@@ -4705,6 +4715,7 @@ msgstr "Fields"#: src/components/AppMenubar.tsx#: src/components/CommandPalette.tsx+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsx#: src/components/share-metadata-rows.tsx@@ -5098,8 +5109,8 @@ msgid "Give the AI tools you use access to read and update your projects. Checkimsgstr "Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."#: src/components/McpConsentDialogBody.tsx-msgid "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."-msgstr "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."+msgid "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime in Settings > AI tools & CLI."+msgstr "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime in Settings > AI tools & CLI."#: src/components/settings/LintingSection.tsxmsgid "Glob patterns this schema applies to"@@ -6191,11 +6202,6 @@ msgstr "Local collaboration data for \"{docName}\" could not be cleared. Reloadmsgid "Local commits are keeping this copy from updating"msgstr "Local commits are keeping this copy from updating"-#: src/components/settings/SharingSection.tsx-#: src/components/SharingModeField.tsx-msgid "Local only"-msgstr "Local only"-#: src/components/CloneDialog.tsxmsgid "Local path"msgstr "Local path"@@ -7260,6 +7266,11 @@ msgstr "Only external links trigger a request. Links to other documents in thismsgid "Only markdown files"msgstr "Only markdown files"+#: src/components/settings/SharingSection.tsx+#: src/components/SharingModeField.tsx+msgid "Only me"+msgstr "Only me"+#: src/components/settings/markdownlint-rule-browser.tsxmsgid "Only modified"msgstr "Only modified"@@ -9473,8 +9484,8 @@ msgid "Setup"msgstr "Setup"#: src/components/ConfigSharingInfoTooltip.tsx-msgid "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."-msgstr "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."+msgid "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Only me</5> keeps them out of git (via <6>.git/info/exclude</6>)."+msgstr "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Only me</5> keeps them out of git (via <6>.git/info/exclude</6>)."#: src/components/ConsentDialogBody.tsxmsgid "Setup OpenKnowledge in this folder?"@@ -9585,7 +9596,9 @@ msgstr "Show document panel"msgid "Show external URL nodes"msgstr "Show external URL nodes"+#. Collapses the undetected AI tools back behind the toggle#: src/components/LinksPanel.tsx+#: src/components/McpConsentDialogBody.tsxmsgid "Show fewer"msgstr "Show fewer"@@ -9783,13 +9796,16 @@ msgstr "skills.sh"msgid "skills.sh is unavailable; showing GitHub results (no install ranking)."msgstr "skills.sh is unavailable; showing GitHub results (no install ranking)."-#. Secondary button — dismisses the dialog without wiring any tools#: src/components/AuthModal.tsx-#: src/components/McpConsentDialogBody.tsx#: src/uninstall/UninstallSurveyScreen.tsxmsgid "Skip"msgstr "Skip"+#. Secondary button — dismisses the dialog without wiring any tools+#: src/components/McpConsentDialogBody.tsx+msgid "Skip for now"+msgstr "Skip for now"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Skipped downloading {0}."@@ -9995,8 +10011,8 @@ msgstr "Stay in the loop"#: src/components/settings/SharingSection.tsx#: src/components/SharingModeField.tsx-msgid "Stays on this computer."-msgstr "Stays on this computer."+msgid "Stays on this computer. Not committed to git."+msgstr "Stays on this computer. Not committed to git."#: src/components/MountStalledAffordance.tsxmsgid "Still loading"@@ -10109,10 +10125,6 @@ msgstr "Switch project…"msgid "Switch to Follow"msgstr "Switch to Follow"-#: src/components/settings/SharingSection.tsx-msgid "Switch to local-only refused"-msgstr "Switch to local-only refused"-#: src/components/command-palette-commands.tsmsgid "Switch worktree"msgstr "Switch worktree"@@ -10745,6 +10757,10 @@ msgstr "This agent runs through {0}, which isn't installed. Open Knowledge can dmsgid "This branch is checked out in:"msgstr "This branch is checked out in:"+#: src/components/McpConsentDialogBody.tsx+msgid "This can be configured in Settings > AI tools & CLI"+msgstr "This can be configured in Settings > AI tools & CLI"+#: src/comments/CommentsPanel.tsxmsgid "This comment is on the whole property"msgstr "This comment is on the whole property"@@ -11189,6 +11205,7 @@ msgstr "Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."msgid "Type to find a doc"msgstr "Type to find a doc"+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsxmsgid "unavailable on this platform"msgstr "unavailable on this platform"@@ -11678,6 +11695,7 @@ msgstr "What the agent may read, write, and surface."msgid "What this changes"msgstr "What this changes"+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsxmsgid "What this checkbox changes"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 2be87cd70..d7a458f65 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -251,6 +251,13 @@"3oEK1e": ["Ŕēśũḿĩńĝ ţĥē ćōńvēŕśàţĩōń"],"3oh0nQ": ["Ńēśţēď .ōķĩĝńōŕē ēŕŕōŕ ĩń ", ["path"]],"3pU8e-": ["Ƥĩń ţàƀ"],+ "3s-k7L": [+ [+ "0",+ "plural",+ { "one": ["Śĥōŵ ", "#", " ḿōŕē ţōōĺ"], "other": ["Śĥōŵ ", "#", " ḿōŕē ţōōĺś"] }+ ]+ ],"3v62tp": ["Ƥōƥũĺàŕ ōń śķĩĺĺś.śĥ"],"3wiBAs": ["Ŵĥēŕē śĥōũĺď ĩţ ĺĩvē?"],"3y6XTb": ["Śēḿàńţĩć śēàŕćĥ"],@@ -496,6 +503,7 @@"7vQdBK": ["Ĺōàďĩńĝ ţĥē ćōńvēŕśàţĩōń"],"80c4-P": ["Ćōďē ćōƥĩēď ţō ćĺĩƥƀōàŕď"],"81H_23": ["Àďď ƥŕōƥēŕţĩēś"],+ "851WA-": ["Ţĥĩś ćàń ƀē ćōńƒĩĝũŕēď ĩń Śēţţĩńĝś > ÀĨ ţōōĺś & ĆĹĨ"],"881Uwh": ["Ďēĺēţē śēĺēćţēď ţàƀĺē"],"89TtiD": ["Ńēŵ ƒĩĺē ƒŕōḿ ţēḿƥĺàţē \"",@@ -1012,9 +1020,6 @@"GA-UkN": [["keyName"], " ţŷƥē: ", ["typeLabel"], ". Ćĺĩćķ ţō ćĥàńĝē."],"GBQjiV": ["Àďď śķĩĺĺ"],"GDvlUT": ["Ŕōĺē"],- "GF51cw": [- "Ĝĩvē ţĥē ÀĨ ţōōĺś ŷōũ ũśē àććēśś ţō ŕēàď àńď ũƥďàţē ŷōũŕ ƥŕōĴēćţś. Ƥĩćķ ŵĥàţ ţō śēţ ũƥ ƀēĺōŵ, àńď ćĥàńĝē ĩţ àńŷţĩḿē."- ],"GGsM4y": ["Śēĺēćţēď ĩń ĝŕàƥĥ"],"GHsJb8": ["Śĥōŵ .ōķ ƒōĺďēŕś"],"GJH-AT": [@@ -1229,7 +1234,6 @@"K_vT1F": ["Ũƥśţŕēàḿ śŷńć"],"KaFCD3": ["Ōƥēń ţĥĩś ĺĩńķ ĩń à ńēŵ ţàƀ àńď ćōĺĺàƥśē ţĥē ĝŕàƥĥ."],"Kf7GG5": ["Ŕēśţàŕţĩńĝ ţĥē śēŕvēŕ…"],- "Kgdbkt": ["Śŵĩţćĥ ţō ĺōćàĺ-ōńĺŷ ŕēƒũśēď"],"Kh1n4a": ["<",["componentName"],@@ -1484,7 +1488,6 @@"OdmsFg": ["Ƒàĩĺēď ţō ďēĺēţē ĩţēḿ"],"OeAl1e": ["ē.ĝ. àśśēţś/ũƥĺōàďś"],"OfhWJH": ["Ŕēśēţ"],- "OgyJSr": ["Ĺōćàĺ ōńĺŷ"],"Oi56Cu": ["Ćĺēàńũƥ ĺōĝ"],"OiHJdA": ["Ḿōvē ţĥŕōũĝĥ śĺàśĥ, ŵĩķĩ-ĺĩńķ, ţàĝ, àńď ƥàţĥ śũĝĝēśţĩōńś; àććēƥţ ōŕ ďĩśḿĩśś ţĥē àćţĩvē śũĝĝēśţĩōń."@@ -1505,6 +1508,7 @@"P-ye9o": ["Ćōũĺď ńōţ ōƥēń ƒōĺďēŕ ƥĩćķēŕ"],"P0HC30": ["Ţĥĩś ", ["targetNoun"], " ḿōvēď ţō <0>", ["0"], "</0>. Ōƥēń ĩţ ţĥēŕē?"],"P3NS4G": ["Ƥàţţēŕń śŷńţàx ēŕŕōŕ (ĺĩńē ", ["lineNumber"], "): ", ["message"]],+ "P3S14k": [".ōķ/śķĩĺĺś ĩś ƀàćķ ţō Ōńĺŷ ḿē."],"P3hnm0": ["Ƒĩĺē ţōō ĺàŕĝē ţō ōƥēń"],"P47EWZ": ["Ćōũĺď ńōţ ũƥďàţē śĩďēƀàŕ śēţţĩńĝś"],"P6gXB-": ["Ŕēƥĺàćē ", ["keyName"]],@@ -1590,6 +1594,7 @@"QcpeeE": ["Ńàvĩĝàţē ţō ", ["docName"]],"QfFBdJ": ["Ţĥē ţēḿƥĺàţē'ś ƒĩĺēńàḿē (ŵĩţĥōũţ `.ḿď`)."],"Qj4RL5": ["Ćōḿƥĺēţēď:"],+ "QjzFZj": ["Ōńĺŷ ḿē"],"QlAG4m": ["Ţēĺĺ ũś ḿōŕē (ōƥţĩōńàĺ)"],"QlkiD5": ["Ŕē-ƥĺàćē ōń śēĺēćţēď ţēxţ"],"QlxHAH": ["Śĥōŵĩńĝ ŕēśũĺţś ƒōŕ \"", ["semanticResultsLabel"], "\""],@@ -1879,7 +1884,6 @@"VmXASo": ["(śŷḿĺĩńķ)"],"VsaI0G": [["folderCount", "plural", { "one": ["ƒōĺďēŕ"], "other": ["ƒōĺďēŕś"] }]],"VuxVSP": ["Śţàŕţ śōũŕćē ćōḿƥĺēţĩōń"],- "VvS_k_": ["Ćōńƒĩĝ śĥàŕĩńĝ ĩś ńōŵ ĺōćàĺ-ōńĺŷ."],"VxLvKE": ["Ŕēvēŕţ ţō ĩńśţàĺĺēď vēŕśĩōń"],"VxO6wR": ["Ďēĺēţē śēĺēćţēď ƒĩĺēś ōŕ ƒōĺďēŕś"],"VzGJRl": ["Àďď ĺĩńķ"],@@ -2111,6 +2115,7 @@"Zon_qG": ["Ḿĩŕŕōŕ śōũŕćē <0>", ["label"], "</0>"],"ZptNUh": ["Śĥōŵ ", ["hidden"], " ḿōŕē"],"ZsGpr_": ["Ƥàśţē ĺĩńķ"],+ "ZscwQ0": ["Ćōũĺďń'ţ śŵĩţćĥ ţō Ōńĺŷ ḿē"],"Zue_jx": ["Ŷōũŕ ĜĩţĤũƀ ţōķēń ĩś ḿĩśśĩńĝ ŕēǫũĩŕēď śćōƥēś. Ţŕŷ śĩĝńĩńĝ ĩń àĝàĩń."],"Zul8Ry": ["ńēvēŕ"],"ZvzbDF": ["Àďď ĩţ ďĩŕēćţĺŷ ţō ţĥĩś ƥŕōĴēćţ."],@@ -2314,7 +2319,6 @@"cV7LOw": ["Ţēàḿ Ŵĩķĩ"],"cZGNlb": ["Àďď àńōţĥēŕ ƥàţţēŕń"],"cZI5AL": ["ŌĶ Ďēśķţōƥ"],- "cZ_8zB": ["Śţàŷś ōń ţĥĩś ćōḿƥũţēŕ."],"caw8gO": [["strandedCommitCount",@@ -2623,6 +2627,7 @@"hmYd9H": ["Ķēēƥ ţŕàćķ ōƒ ţĥē ƥēōƥĺē àńď ćōḿƥàńĩēś ŷōũ ŵōŕķ ŵĩţĥ àńď ţĥē ḿēēţĩńĝś ŷōũ ĥàvē ŵĩţĥ ţĥēḿ. Ĝōōď ƒōŕ ŕēḿēḿƀēŕĩńĝ ŵĥō śōḿēōńē ĩś, ĥōŵ ŷōũ ķńōŵ ţĥēḿ, àńď ŵĥàţ ŷōũ ĺàśţ ţàĺķēď àƀōũţ."],+ "hnlGzG": ["Śķĩƥ ƒōŕ ńōŵ"],"hnq8fP": ["Ŕēḿōvē ", ["label"], " ƒŕōḿ ćōńţēxţ"],"hp8OtS": ["Àďďēď"],"hpDtUm": ["Ēxţēŕńàĺ ŵĩķĩ ĺĩńķ"],@@ -2710,9 +2715,6 @@"irFGwu": ["Ţēḿƥĺàţē ĺĩśţ"],"irrm_E": ["Ŕēḿōvē śēĺēćţĩōń"],"isRobC": ["Ńēŵ"],- "itxlnr": [- "Śēţũƥ ƒĩĺēś ĩńćĺũďē: <0>.ōķ/</0>, ÀĨ-ţōōĺ ḾĆƤ ćōńƒĩĝś (<1>.ḿćƥ.Ĵśōń</1> àńď ƥēŕ-ţōōĺ ƒĩĺēś), ƥŕōĴēćţ śķĩĺĺś.<2/><3>Śĥàŕēď</3> ćōḿḿĩţś ţĥēḿ ţō ĝĩţ, śō àńŷōńē ŵĥō ćĺōńēś ţĥē ŕēƥō ĝēţś ţĥē śàḿē śēţũƥ. <4/><5>Ĺōćàĺ ōńĺŷ</5> ķēēƥś ţĥēḿ ōũţ ōƒ ĝĩţ (vĩà <6>.ĝĩţ/ĩńƒō/ēxćĺũďē</6>)."- ],"iuTKci": ["Ńō ēďĩţś ŷēţ."],"iv452l": ["Ďōćũḿēńţàţĩōń ƒōŕ ", ["0"], " (ōƥēńś ĩń ƀŕōŵśēŕ)"],"ivwdwq": ["Ćŕēàţē à śķĩĺĺ."],@@ -2853,6 +2855,9 @@"kq-Qj4": ["Ćōũĺďń'ţ ŵōŕķ ōũţ ŵĥēŕē ţō śēńď ţĥē ćōḿḿēńţś — ţĥēŷ śţàŷ ǫũēũēď."],"ktspdq": ["Ţĩńţ àńď ƀàďĝē ƒĩĺēś ţĥàţ ĥàvē ĺĩńţ ōŕ ĺĩńķ ƥŕōƀĺēḿś, ŵĩţĥōũţ ōƥēńĩńĝ ţĥēḿ."],"ku0yLQ": ["Ƥàĝēś àŕē ēḿƀēďďēď ţĥē ƒĩŕśţ ţĩḿē à śēàŕćĥ ńēēďś ţĥēḿ."],+ "kwLcuN": [+ "Ĝĩvē ţĥē ÀĨ ţōōĺś ŷōũ ũśē àććēśś ţō ŕēàď àńď ũƥďàţē ŷōũŕ ƥŕōĴēćţś. Ƥĩćķ ŵĥàţ ţō śēţ ũƥ ƀēĺōŵ, àńď ćĥàńĝē ĩţ àńŷţĩḿē ĩń Śēţţĩńĝś > ÀĨ ţōōĺś & ĆĹĨ."+ ],"ky9Tuc": ["Ēďĩţ ", ["0"], " śōũŕćē"],"kzpkcn": ["Ćōũĺďń'ţ śàvē ţĥàţ ēďĩţ."],"l-4nnw": ["Śēàŕćĥ ŕũĺēś"],@@ -2949,6 +2954,9 @@"mPy9lS": ["Ōŕĝàńĩźē ḿŷ ēxĩśţĩńĝ śƥēćś ĩńţō à ĺĩńķēď ĩńďēx ĝŕōũƥēď ƀŷ àŕēà, àńď ƒĺàĝ àńŷ ţĥàţ ĥàvē ďŕĩƒţēď ōũţ ōƒ śŷńć ŵĩţĥ ţĥē ćũŕŕēńţ ćōďē."],+ "mR3Bly": [+ "Śēţũƥ ƒĩĺēś ĩńćĺũďē: <0>.ōķ/</0>, ÀĨ-ţōōĺ ḾĆƤ ćōńƒĩĝś (<1>.ḿćƥ.Ĵśōń</1> àńď ƥēŕ-ţōōĺ ƒĩĺēś), ƥŕōĴēćţ śķĩĺĺś.<2/><3>Śĥàŕēď</3> ćōḿḿĩţś ţĥēḿ ţō ĝĩţ, śō àńŷōńē ŵĥō ćĺōńēś ţĥē ŕēƥō ĝēţś ţĥē śàḿē śēţũƥ. <4/><5>Ōńĺŷ ḿē</5> ķēēƥś ţĥēḿ ōũţ ōƒ ĝĩţ (vĩà <6>.ĝĩţ/ĩńƒō/ēxćĺũďē</6>)."+ ],"mShKiV": ["Ũƥĺōàď à śķĩĺĺ"],"mToVM9": ["Ḿēśśàĝē ", ["agentName"]],"mU3j1b": ["Ŕēḿōvē ĩţēḿ ", ["0"]],@@ -3150,7 +3158,6 @@"pFRz_E": ["Ĺēàvē ţĥēśē ćōḿḿēńţś ōũţ ōƒ ţĥĩś ḿēśśàĝē"],"pFagOn": ["Śōũŕćē ēďĩţĩńĝ"],"pHYP6v": ["Ōƥēń <0>Ćũśţōḿĩźē</0> ĩń ţĥē śĩďēƀàŕ <1/> <2>Śķĩĺĺś</2>."],- "pQf2Ux": [".ōķ/śķĩĺĺś ĩś ƀàćķ ţō ĺōćàĺ-ōńĺŷ."],"pSimwP": ["Ńēŵ ńàḿē ƒōŕ ţĥē ", ["editor"], " vēŕśĩōń"],"pTPqMK": ["Ţōĝĝĺē à ƒēńćēď ćōďē ƀĺōćķ."],"pTyA_t": ["ţàĝś"],@@ -3466,6 +3473,7 @@],"uksqrP": ["Ŕēƥōśĩţōŕŷ ńōţ ƒōũńď. Ĩţ ḿàŷ ĥàvē ƀēēń ŕēńàḿēď, ďēĺēţēď, ōŕ ḿōvēď."],"ul1Atu": ["Ćōńvēŕţĩńĝ..."],+ "un-K1H": ["Śţàŷś ōń ţĥĩś ćōḿƥũţēŕ. Ńōţ ćōḿḿĩţţēď ţō ĝĩţ."],"un8kBM": ["Ćŕēàţĩńĝ ƥàĝē: ", ["linkTitle"], "."],"uoJF_D": ["Ĩţ ŵàś ţōō ĥàŕď ţō śēţ ũƥ ōŕ ĝēţ śţàŕţēď"],"ur2XSb": ["Vĩśũàĺ ēďĩţōŕ"],@@ -3568,6 +3576,7 @@"wbv9xO": ["Ćŕēàţē ńēŵ ƥŕōĴēćţ"],"wcfO9r": ["Ńō ƀũĝ ŕēƥōŕţś ŷēţ."],"wdxz7K": ["Śōũŕćē"],+ "wdzBgi": ["Ćōńƒĩĝ śĥàŕĩńĝ ĩś ńōŵ Ōńĺŷ ḿē."],"weP6me": ["Ćōũĺďń'ţ ĺōàď ďōćś — ţŷƥē @ àĝàĩń ţō ŕēţŕŷ"],"wefL17": [["source"], " ƥũƀĺĩśĥēś ", ["count"], " śķĩĺĺś. Ĩńśţàĺĺ àńŷ ōƒ ţĥēḿ ţōĝēţĥēŕ."],"wgNoIs": ["Śēĺēćţ àĺĺ"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex e8e5fe154..a3750e96d 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -42,7 +42,7 @@ msgid ".ok folders"msgstr ""#: src/components/settings/SharingSection.tsx-msgid ".ok/skills is back to local-only."+msgid ".ok/skills is back to Only me."msgstr ""#: src/components/settings/SharingSection.tsx@@ -221,6 +221,11 @@ msgstr ""msgid "{0, plural, one {No problems across # document.} other {No problems across # documents.}}"msgstr ""+#. placeholder {0}: editorList.hiddenCount+#: src/components/McpConsentDialogBody.tsx+msgid "{0, plural, one {Show # more tool} other {Show # more tools}}"+msgstr ""+#. placeholder {0}: skillRows.length#: src/components/CreatedItemsList.tsxmsgid "{0, plural, one {Skill} other {Skills}}"@@ -2366,7 +2371,7 @@ msgid "Config sharing"msgstr ""#: src/components/settings/SharingSection.tsx-msgid "Config sharing is now local-only."+msgid "Config sharing is now Only me."msgstr ""#: src/components/settings/SharingSection.tsx@@ -3200,6 +3205,10 @@ msgstr ""msgid "Couldn't start the sync. Check your connection, then retry."msgstr ""+#: src/components/settings/SharingSection.tsx+msgid "Couldn't switch to Only me"+msgstr ""+#. placeholder {0}: r.error#: src/components/SkillInstallMenu.tsxmsgid "Couldn't update {subRoot}: {0}"@@ -4250,6 +4259,7 @@ msgstr ""msgid "Enter a valid URL (for example https://api.openai.com/v1)."msgstr ""+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsxmsgid "Entry"@@ -4701,6 +4711,7 @@ msgstr ""#: src/components/AppMenubar.tsx#: src/components/CommandPalette.tsx+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsx#: src/components/share-metadata-rows.tsx@@ -5094,7 +5105,7 @@ msgid "Give the AI tools you use access to read and update your projects. Checkimsgstr ""#: src/components/McpConsentDialogBody.tsx-msgid "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."+msgid "Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime in Settings > AI tools & CLI."msgstr ""#: src/components/settings/LintingSection.tsx@@ -6187,11 +6198,6 @@ msgstr ""msgid "Local commits are keeping this copy from updating"msgstr ""-#: src/components/settings/SharingSection.tsx-#: src/components/SharingModeField.tsx-msgid "Local only"-msgstr ""-#: src/components/CloneDialog.tsxmsgid "Local path"msgstr ""@@ -7256,6 +7262,11 @@ msgstr ""msgid "Only markdown files"msgstr ""+#: src/components/settings/SharingSection.tsx+#: src/components/SharingModeField.tsx+msgid "Only me"+msgstr ""+#: src/components/settings/markdownlint-rule-browser.tsxmsgid "Only modified"msgstr ""@@ -9469,7 +9480,7 @@ msgid "Setup"msgstr ""#: src/components/ConfigSharingInfoTooltip.tsx-msgid "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."+msgid "Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Only me</5> keeps them out of git (via <6>.git/info/exclude</6>)."msgstr ""#: src/components/ConsentDialogBody.tsx@@ -9581,7 +9592,9 @@ msgstr ""msgid "Show external URL nodes"msgstr ""+#. Collapses the undetected AI tools back behind the toggle#: src/components/LinksPanel.tsx+#: src/components/McpConsentDialogBody.tsxmsgid "Show fewer"msgstr ""@@ -9779,13 +9792,16 @@ msgstr ""msgid "skills.sh is unavailable; showing GitHub results (no install ranking)."msgstr ""-#. Secondary button — dismisses the dialog without wiring any tools#: src/components/AuthModal.tsx-#: src/components/McpConsentDialogBody.tsx#: src/uninstall/UninstallSurveyScreen.tsxmsgid "Skip"msgstr ""+#. Secondary button — dismisses the dialog without wiring any tools+#: src/components/McpConsentDialogBody.tsx+msgid "Skip for now"+msgstr ""+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Skipped downloading {0}."@@ -9991,7 +10007,7 @@ msgstr ""#: src/components/settings/SharingSection.tsx#: src/components/SharingModeField.tsx-msgid "Stays on this computer."+msgid "Stays on this computer. Not committed to git."msgstr ""#: src/components/MountStalledAffordance.tsx@@ -10105,10 +10121,6 @@ msgstr ""msgid "Switch to Follow"msgstr ""-#: src/components/settings/SharingSection.tsx-msgid "Switch to local-only refused"-msgstr ""-#: src/components/command-palette-commands.tsmsgid "Switch worktree"msgstr ""@@ -10741,6 +10753,10 @@ msgstr ""msgid "This branch is checked out in:"msgstr ""+#: src/components/McpConsentDialogBody.tsx+msgid "This can be configured in Settings > AI tools & CLI"+msgstr ""+#: src/comments/CommentsPanel.tsxmsgid "This comment is on the whole property"msgstr ""@@ -11185,6 +11201,7 @@ msgstr ""msgid "Type to find a doc"msgstr ""+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsxmsgid "unavailable on this platform"msgstr ""@@ -11674,6 +11691,7 @@ msgstr ""msgid "What this changes"msgstr ""+#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AiToolsSection.tsx#: src/components/settings/ProjectAiToolsSection.tsxmsgid "What this checkbox changes"diff --git a/packages/cli/src/commands/editors.test.ts b/packages/cli/src/commands/editors.test.tsindex ed9c9075a..ab066088e 100644--- a/packages/cli/src/commands/editors.test.ts+++ b/packages/cli/src/commands/editors.test.ts@@ -10,6 +10,9 @@ import {CHAIN_WIN_VERSION_SENTINEL,EDITOR_TARGETS,type EditorId,+ type EditorMcpTarget,+ editorConfigPathDisplay,+ editorEntryLocator,isEntryUpToDate,isOwnManagedEntry,resolveAntigravityConfigPath,@@ -987,3 +990,63 @@ describe('JSON encoding round-trip (Windows entry)', () => {expect(isOwnManagedEntry(roundTripped)).toBe(true);});});++describe('editorEntryLocator', () => {+ it('JSON editor → flat dotted key path', () => {+ expect(editorEntryLocator(EDITOR_TARGETS.claude)).toBe('mcpServers.open-knowledge');+ });++ it('TOML editor → bracket table header', () => {+ expect(editorEntryLocator(EDITOR_TARGETS.codex)).toBe('[mcp_servers.open-knowledge]');+ });++ it('nested serverMapSubKey (OpenClaw) → three-segment dotted path', () => {+ expect(editorEntryLocator(EDITOR_TARGETS.openclaw)).toBe('mcp.servers.open-knowledge');+ });+});++describe('editorConfigPathDisplay', () => {+ // Minimal stand-in so the config-path projection is exercised independently of+ // any real editor's platform-specific resolver — only `configPath` is read.+ const fakeTarget = (configPath: EditorMcpTarget['configPath']): EditorMcpTarget => ({+ id: 'claude',+ label: 'Fake',+ format: 'json',+ topLevelKey: 'mcpServers',+ serverName: () => 'open-knowledge',+ configPath,+ buildEntry: () => ({}),+ scope: 'global',+ });++ it('collapses the home prefix to ~', () => {+ expect(+ editorConfigPathDisplay(+ fakeTarget((_c, h) => `${h}/.foo/config.json`),+ '/home/u',+ ),+ ).toBe('~/.foo/config.json');+ });++ it('leaves a path outside home untouched', () => {+ expect(+ editorConfigPathDisplay(+ fakeTarget(() => '/etc/other.json'),+ '/home/u',+ ),+ ).toBe('/etc/other.json');+ });++ it('returns null when the resolver throws (no user-global surface)', () => {+ expect(+ editorConfigPathDisplay(+ fakeTarget(() => {+ throw new Error('no user-global config');+ }),+ '/home/u',+ ),+ ).toBeNull();+ // Real contract: Pi has no user-global surface, so its configPath throws.+ expect(editorConfigPathDisplay(EDITOR_TARGETS.pi, '/home/u')).toBeNull();+ });+});diff --git a/packages/cli/src/commands/editors.ts b/packages/cli/src/commands/editors.tsindex 5d0d5b234..966b06e92 100644--- a/packages/cli/src/commands/editors.ts+++ b/packages/cli/src/commands/editors.ts@@ -872,6 +872,37 @@ export interface EditorMcpTarget {projectSkillPath?: (cwd: string) => string;}+/**+ * Human-readable locator for an editor's `open-knowledge` entry within its+ * config file — `[mcp_servers.open-knowledge]` for TOML, the dotted key path+ * (`mcpServers.open-knowledge`, or `mcp.servers.open-knowledge` when nested)+ * for JSON/YAML. Pure projection of the target's format + key shape; used as a+ * disclosure aid in Settings → AI tools and the first-launch consent dialog.+ */+export function editorEntryLocator(target: EditorMcpTarget): string {+ const server = target.serverName('');+ return target.format === 'toml'+ ? `[${target.topLevelKey}.${server}]`+ : [target.topLevelKey, target.serverMapSubKey, server].filter(Boolean).join('.');+}++/**+ * Display-form user-global MCP config path for an editor: the absolute path+ * with the home prefix collapsed to `~`, or `null` when the editor has no+ * user-global surface on this platform (its `configPath()` throws — Claude+ * Desktop off-macOS, Pi everywhere). Same disclosure aid as+ * {@link editorEntryLocator}.+ */+export function editorConfigPathDisplay(target: EditorMcpTarget, home: string): string | null {+ let abs: string;+ try {+ abs = target.configPath('', home);+ } catch {+ return null;+ }+ return abs.startsWith(`${home}/`) ? `~${abs.slice(home.length)}` : abs;+}+export const EDITOR_TARGETS: Record<EditorId, EditorMcpTarget> = {claude: {id: 'claude',diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex eba1820ca..0060cc548 100644--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -39,6 +39,8 @@ export {EDITOR_TARGETS,type EditorId,type EditorMcpTarget,+ editorConfigPathDisplay,+ editorEntryLocator,HOSTS_WITH_USER_SKILL_DIR,isEntryUpToDate,isOwnManagedEntry,diff --git a/packages/core/src/desktop-bridge.ts b/packages/core/src/desktop-bridge.tsindex 33fe1459e..e5d167876 100644--- a/packages/core/src/desktop-bridge.ts+++ b/packages/core/src/desktop-bridge.ts@@ -413,6 +413,8 @@ interface OkMcpWiringShowPayload {readonly label: string;readonly detected: boolean;readonly willReplace: boolean;+ readonly configPath: string | null;+ readonly entryLocator: string;}[];readonly pathInstall: {readonly shellDetected: boolean;diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.tsindex b266db93f..d82a8979a 100644--- a/packages/desktop/src/main/index.ts+++ b/packages/desktop/src/main/index.ts@@ -49,6 +49,8 @@ import {defaultBugReportZipPath,detectInstalledEditors,EDITOR_TARGETS,+ editorConfigPathDisplay,+ editorEntryLocator,getOkArtifactPaths,HOSTS_WITH_USER_SKILL_DIR,isEntryUpToDate,@@ -5558,10 +5560,6 @@ function registerIntegrationsSettingsIpc(): void {!['appimage', 'unsupported'].includes(classifyInstallShape(process.platform, app.getPath('exe'), process.env).kind,);- const tildifyHomePath = (path: string): string => {- const home = osHomedir();- return path.startsWith(`${home}/`) ? `~${path.slice(home.length)}` : path;- };registerIntegrationsSettings({home: osHomedir(),available,@@ -5581,21 +5579,9 @@ function registerIntegrationsSettingsIpc(): void {// the exact canonical match. Same predicate `removeOwnMcpEntry` applies// internally, so a row shown as 'installed' is always removable.isOwnEntry: (entry) => isEntryUpToDate(entry) || isOwnManagedEntry(entry),- editorConfigPath: (editorId) => {- try {- return tildifyHomePath(EDITOR_TARGETS[editorId].configPath('', osHomedir()));- } catch {- // Platform-mismatched resolver (e.g. Claude Desktop off-macOS).- return null;- }- },- editorEntryLocator: (editorId) => {- const target = EDITOR_TARGETS[editorId];- const server = target.serverName('');- return target.format === 'toml'- ? `[${target.topLevelKey}.${server}]`- : [target.topLevelKey, target.serverMapSubKey, server].filter(Boolean).join('.');- },+ editorConfigPath: (editorId) =>+ editorConfigPathDisplay(EDITOR_TARGETS[editorId], osHomedir()),+ editorEntryLocator: (editorId) => editorEntryLocator(EDITOR_TARGETS[editorId]),writeUserMcpConfigs: (writeOpts) => writeUserMcpConfigs(writeOpts),removeUserMcpEntry: (editorId) =>removeOwnMcpEntry(EDITOR_TARGETS[editorId], '', osHomedir()),diff --git a/packages/desktop/src/main/mcp-wiring.test.ts b/packages/desktop/src/main/mcp-wiring.test.tsindex 7bebdd275..25a7d3c20 100644--- a/packages/desktop/src/main/mcp-wiring.test.ts+++ b/packages/desktop/src/main/mcp-wiring.test.ts@@ -803,7 +803,16 @@ describe('runMcpWiringOnFirstLaunch — mid-session immediate dispatch', () => {{channel: 'ok:mcp-wiring:show',payload: {- detectedEditors: [{ id: 'claude', label: 'claude', detected: true, willReplace: false }],+ detectedEditors: [+ {+ id: 'claude',+ label: 'claude',+ detected: true,+ willReplace: false,+ configPath: '~/.config-for-claude.json',+ entryLocator: 'mcpServers.open-knowledge',+ },+ ],pathInstall: {shellDetected: true,rcFilesToTouch: ['~/.zshrc'],diff --git a/packages/desktop/src/main/mcp-wiring.ts b/packages/desktop/src/main/mcp-wiring.tsindex 87bfa4c9e..6f8ff172a 100644--- a/packages/desktop/src/main/mcp-wiring.ts+++ b/packages/desktop/src/main/mcp-wiring.ts@@ -40,6 +40,8 @@ import {buildMcpConfigDeclineEvent,buildMcpConfigMigrateEvent,type EditorMcpTarget,+ editorConfigPathDisplay,+ editorEntryLocator,isEntryUpToDate,type McpDeclineReason,type McpEntryClassification,@@ -752,7 +754,14 @@ export function runMcpWiringOnFirstLaunch(opts: RunMcpWiringFirstLaunchOpts): Ruerror: err instanceof Error ? err.message : String(err),});}- return { id, label: target.label, detected: detectedIds.has(id), willReplace };+ return {+ id,+ label: target.label,+ detected: detectedIds.has(id),+ willReplace,+ configPath: editorConfigPathDisplay(target, home),+ entryLocator: editorEntryLocator(target),+ };});} catch (err) {const message = err instanceof Error ? err.message : String(err);diff --git a/packages/desktop/src/shared/bridge-contract.ts b/packages/desktop/src/shared/bridge-contract.tsindex b296b8644..5ff4d2379 100644--- a/packages/desktop/src/shared/bridge-contract.ts+++ b/packages/desktop/src/shared/bridge-contract.ts@@ -412,6 +412,8 @@ export interface OkMcpWiringShowPayload {readonly label: string;readonly detected: boolean;readonly willReplace: boolean;+ readonly configPath: string | null;+ readonly entryLocator: string;}[];readonly pathInstall: {readonly shellDetected: boolean;diff --git a/packages/desktop/src/shared/ipc-channels.ts b/packages/desktop/src/shared/ipc-channels.tsindex 354434bde..c07ad4703 100644--- a/packages/desktop/src/shared/ipc-channels.ts+++ b/packages/desktop/src/shared/ipc-channels.ts@@ -417,6 +417,13 @@ export interface McpWiringEditorDetection {readonly label: string;readonly detected: boolean;readonly willReplace: boolean;+ /** Display-form user-global config path (home collapsed to `~`), or null when+ * the editor has no user-global surface on this platform. Disclosure aid for+ * the per-row location tooltip — mirrors `OkIntegrationsStatus`. */+ readonly configPath: string | null;+ /** Locator for this editor's `open-knowledge` entry within its config file+ * (`[mcp_servers.open-knowledge]` / dotted key path). Disclosure aid. */+ readonly entryLocator: string;}/** PATH-install leg of the first-launch consent dialog. Computed read-only