Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Name each channel's own CLI command in hints (PRD-9400) (#6395)
Andrew Mikofalvya9f1956ee1b3
diff --git a/.changeset/beta-names-its-own-command.md b/.changeset/beta-names-its-own-command.mdnew file mode 100644index 000000000..3c16b95b2--- /dev/null+++ b/.changeset/beta-names-its-own-command.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++OpenKnowledge Beta now names `ok-beta`, not `ok`, in its server-not-running and stuck-server hints, PATH setup copy, CLI help and the built-in terminal's Claude approval, and names `~/.ok-beta/secrets.yml` for its search key.diff --git a/docs/content/features/editor.mdx b/docs/content/features/editor.mdxindex 1fbe6a229..26a65073e 100644--- a/docs/content/features/editor.mdx+++ b/docs/content/features/editor.mdx@@ -293,7 +293,7 @@ If a connection check fails because of a read error or an indeterminate result,The empty-state create composer on a fresh project carries the same three-way split: its In app rows pick the in-app agent the **Create** button uses, its Terminal rows (desktop only, disabled until the workspace resolves) launch any of those CLIs with the brief you typed, and its External apps rows hand that brief to an agent app installed here.-When Claude or Codex launches from the docked terminal, OpenKnowledge auto-approves its own MCP tools, so the agent searches, reads, and edits the knowledge base without a per-call approval prompt. Claude additionally auto-approves the `ok open` command. Every other CLI launches unchanged.+When Claude or Codex launches from the docked terminal, OpenKnowledge auto-approves its own MCP tools, so the agent searches, reads, and edits the knowledge base without a per-call approval prompt. Claude additionally auto-approves the `ok open` command (`ok-beta open` for Beta). Every other CLI launches unchanged.Five tools stay gated: `delete` and `move` (knowledge-base-wide blast radius), `share_link` (publishes content), `install` (writes executable skill scripts into the agent's own config directory), and `import` (acquires skill content from an external source). For Claude, everything outside OpenKnowledge still prompts too, including shell commands and non-OK file edits. The guarantee is best-effort per agent: Claude uses an explicit allow/ask list, while Codex uses its own **approve** mode (auto-approve except potentially-unsafe actions) and only gets it once its OpenKnowledge entry is already configured, so run `ok init` for Codex if it keeps asking.diff --git a/docs/content/reference/configuration.mdx b/docs/content/reference/configuration.mdxindex ad02cc48b..79d0b5cf1 100644--- a/docs/content/reference/configuration.mdx+++ b/docs/content/reference/configuration.mdx@@ -71,7 +71,7 @@ A key set in a file more specific than its scope (a user-scope key in `.ok/confi| `terminal.enabled` | `boolean \| null` | `null` | project-local | Opt-out for the in-app terminal (a real OS shell at full user privilege). On by default; set `false` to disable it for this project on this machine. || `terminal.shell` | string | (unset) | project-local | Absolute Windows shell executable override, for example `C:\Program Files\PowerShell\7\pwsh.exe`. PowerShell, `cmd.exe`, and Git Bash (`bash.exe`) support OpenKnowledge-managed launches (agent chat tabs and fixed commands such as **Resolve in terminal** or **Install Slidev**) and dropped-file path insertion. A different existing executable remains active for plain terminal tabs and shows a capability notice; requested agent and command launches open only the plain shell without running the agent or command, and dropped-file paths are refused. Use `wsl` inside a supported shell rather than setting `wsl.exe` here. Agent-launch prompts are pasted without being submitted on Windows, so review the prompt and press Enter to send it. Empty or unset values use automatic discovery (PowerShell 7, Windows PowerShell, then `ComSpec` / `cmd.exe`). Unreadable, invalid, relative, or missing paths show a notice and fall back to discovery. Human-managed and never shared through git, clone, or sync. || `slides.enabled` | boolean | `false` | user | Whether the [Slidev plugin](/docs/plugins/slidev) appears in **Settings → Plugins**. Off by default. When on, a document whose frontmatter contains `slides: true` gets an **Open in Slidev** action that opens the deck in its own window, rendered by a [Slidev](https://sli.dev/) you install yourself — OpenKnowledge does not download or bundle one. Install it globally (`npm install -g @slidev/cli @slidev/theme-default`) or add those packages to the project (a project-local install takes precedence). Slidev themes ship separately from the CLI and a deck cannot open without the theme it declares. Desktop only; the action stays hidden until a `slidev` binary resolves. |-| `agents.autoApproveOkTools` | boolean | `true` | user | Auto-approve OpenKnowledge's own MCP tools for agents launched from the built-in [docked terminal](/docs/features/editor#terminal) (plus the `ok open` command on Claude) and for in-app Agents-panel chats with any ACP agent, so reading and writing the knowledge base runs without a per-call approval prompt. Destructive tools (`delete`, `move`, `share_link`, `install`, `import`) still prompt; other shell commands and non-OpenKnowledge file edits are untouched. Per-machine preference; toggle from **Settings → Terminal**. Best-effort per agent — Claude uses an allow/ask list, Codex uses its per-server `approve` mode (and only when its OpenKnowledge entry is already configured). |+| `agents.autoApproveOkTools` | boolean | `true` | user | Auto-approve OpenKnowledge's own MCP tools for agents launched from the built-in [docked terminal](/docs/features/editor#terminal) (plus the `ok open` command on Claude; `ok-beta open` for Beta) and for in-app Agents-panel chats with any ACP agent, so reading and writing the knowledge base runs without a per-call approval prompt. Destructive tools (`delete`, `move`, `share_link`, `install`, `import`) still prompt; other shell commands and non-OpenKnowledge file edits are untouched. Per-machine preference; toggle from **Settings → Terminal**. Best-effort per agent — Claude uses an allow/ask list, Codex uses its per-server `approve` mode (and only when its OpenKnowledge entry is already configured). || `agents.browserTools` | boolean | `false` | user | Give in-app Claude Code and Codex chats a browser they can drive: each one started after you turn it on gets the [Playwright MCP](https://github.com/microsoft/playwright-mcp) server, so the agent can open pages, click, type, and take screenshots. It is launched with the `npx` on the agent's PATH from OpenKnowledge's own folder, so npm never uses the project's npm files; without a usable `npx`, or when the browser can't be set up, the chat starts without it and says so in the conversation. Needs Google Chrome and Node.js installed. The browser opens in its own window (headless on Linux with no display) with a fresh in-memory profile; everything the browser saves goes to a folder for the chat under `~/.ok/agent-browser/` (Beta: `~/.ok-beta/agent-browser/`) and is removed with the chat. Every browser action asks for approval, with no option to always allow it, unless the agent's own mode or permission settings skip approvals. Other agents' chats don't get it. Per-machine preference; toggle from **Settings → Preferences**. || `telemetry.localSink.enabled` | boolean | `true` | project | Write local diagnostic spans + logs under `.ok/local/` for `ok diagnose bundle` to collect. Local-only: nothing leaves the machine until you run `bundle`. Set `false` for sensitive workspaces. || `telemetry.localSink.spans.maxBytes` | number | `52428800` (~50 MB) | project | Max size of the local diagnostic spans file before it rotates. |diff --git a/packages/app/src/components/McpConsentDialog.dom.test.tsx b/packages/app/src/components/McpConsentDialog.dom.test.tsxindex 932841f77..e91856750 100644--- a/packages/app/src/components/McpConsentDialog.dom.test.tsx+++ b/packages/app/src/components/McpConsentDialog.dom.test.tsx@@ -572,6 +572,26 @@ describe('McpConsentDialog PATH consent row', () => {);});+ test('names the Beta command throughout the row in a Beta window', async () => {+ (window as unknown as { okDesktop?: unknown }).okDesktop = {+ config: { ptyAvailable: true },+ cliCommandName: 'ok-beta',+ };+ await renderDialog();++ const checkbox = screen.getByTestId('mcp-consent-path-checkbox');+ const row = checkbox.closest('label')?.textContent ?? '';+ expect(row).toContain('Add the ok-beta command to your terminal');+ expect(row).toContain('ok-beta opens a project, ok-beta init connects your agents.');+ expect(row).not.toMatch(/\bok\b(?!-beta)/);++ await userEvent.click(checkbox);+ await userEvent.click(checkbox);+ expect(screen.getByTestId('mcp-consent-path-warning').textContent).toMatch(+ /^ok-beta won't run in external terminals/,+ );+ });+test('mentions the built-in terminal only when the desktop bridge reports PTY support', async () => {(window as unknown as { okDesktop?: unknown }).okDesktop = {config: { ptyAvailable: true },@@ -598,6 +618,25 @@ describe('McpConsentDialog PATH consent row', () => {});});+ test('alreadyInstalled names the Beta command in a Beta window', async () => {+ (window as unknown as { okDesktop?: unknown }).okDesktop = {+ config: { ptyAvailable: false },+ cliCommandName: 'ok-beta',+ };+ await renderDialog(+ makeHarness({+ snapshot: {+ ...payload,+ pathInstall: { ...payload.pathInstall, alreadyInstalled: true },+ },+ }),+ );++ expect(screen.getByTestId('mcp-consent-path-status').textContent).toBe(+ 'Already set up — ok-beta is available in your terminal',+ );+ });+test('alreadyInstalled renders an informational row and solicits no decision', async () => {const harness = await renderDialog(makeHarness({diff --git a/packages/app/src/components/McpConsentDialogBody.tsx b/packages/app/src/components/McpConsentDialogBody.tsxindex 5cf2c5b35..9a0716794 100644--- a/packages/app/src/components/McpConsentDialogBody.tsx+++ b/packages/app/src/components/McpConsentDialogBody.tsx@@ -31,6 +31,7 @@ import {DialogTitle,} from '@/components/ui/dialog';import { Label } from '@/components/ui/label';+import { okCliCommandName } from '@/lib/channel-cli-copy';import { useConfigContextOptional, useSettingsLoadingReason } from '@/lib/config-context';import type { OkMcpWiringShowPayload } from '@/lib/desktop-bridge-types';import { type McpConsentStore, mcpConsentStore } from '@/lib/mcp-consent-store';@@ -142,6 +143,7 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormProconst skillsOffered = globalSkills.some((skill) => skill.paths.length > 0);const pathActionable = isPathRowActionable(pathInstall);const ptyAvailable = window.okDesktop?.config.ptyAvailable === true;+ const cliCommand = okCliCommandName();const editors = connectableEditors(payload.detectedEditors);const hasEditors = editors.length > 0;const replacing = editors.filter((e) => e.willReplace);@@ -308,8 +310,8 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro/><span className="flex min-w-0 flex-1 items-center gap-1.5 pe-28 text-sm font-medium text-foreground"><Trans comment="Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH">- Add the <code className="inline-code text-1sm!">ok</code> command to your- terminal+ Add the <code className="inline-code text-1sm!">{cliCommand}</code> command+ to your terminal</Trans></span></span>@@ -317,29 +319,30 @@ function McpConsentDialogForm({ payload, store, toast }: McpConsentDialogFormPro<span className={ROW_SUBTEXT}><Trans comment="Subtext under the terminal toggle explaining what the ok command gives you">Launch OpenKnowledge from any terminal —{' '}- <code className="inline-code text-xs!">ok</code> opens a project,{' '}- <code className="inline-code text-xs!">ok init</code> connects your agents.+ <code className="inline-code text-xs!">{cliCommand}</code> opens a project,{' '}+ <code className="inline-code text-xs!">{cliCommand} init</code> connects+ your agents.</Trans></span>)}{!pathActionable && (<span className={ROW_SUBTEXT} data-testid="mcp-consent-path-status">- {t`Already set up — ok is available in your terminal`}+ {t`Already set up — ${cliCommand} is available in your terminal`}</span>)}{pathActionable && pathTouched && !pathChecked && (<span className={ROW_WARNING} data-testid="mcp-consent-path-warning">{ptyAvailable ? (<Trans comment="Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal">- <code className="inline-code text-xs!">ok</code> won't run in external- terminals until you add it later from the File menu. OpenKnowledge's- built-in terminal and AI tools keep working.+ <code className="inline-code text-xs!">{cliCommand}</code> won't run in+ external terminals until you add it later from the File menu.+ OpenKnowledge's built-in terminal and AI tools keep working.</Trans>) : (<Trans comment="Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal">- <code className="inline-code text-xs!">ok</code> won't run in external- terminals until you add it later from the File menu. Your AI tools keep- working.+ <code className="inline-code text-xs!">{cliCommand}</code> won't run in+ external terminals until you add it later from the File menu. Your AI+ tools keep working.</Trans>)}</span>diff --git a/packages/app/src/components/TerminalPanel.launch.dom.test.tsx b/packages/app/src/components/TerminalPanel.launch.dom.test.tsxindex e7b107be3..1cb53a5db 100644--- a/packages/app/src/components/TerminalPanel.launch.dom.test.tsx+++ b/packages/app/src/components/TerminalPanel.launch.dom.test.tsx@@ -106,6 +106,7 @@ function makeBridge(preflight: ClaudeReadiness = WIRED,cliReadiness: CliReadiness = ON_PATH,platform: OkDesktopBridge['platform'] = 'darwin',+ cliCommandName: string | null = 'ok',) {const dataSubs: Array<(m: OkPtyData) => void> = [];const noticeSubs: Array<(m: OkPtyNotice) => void> = [];@@ -155,6 +156,7 @@ function makeBridge(shell: { openExternal: vi.fn(async () => {}) },config: { e2eSmoke: false },platform,+ cliCommandName,} as unknown as OkDesktopBridge,terminal,pushData: (m: OkPtyData) => {@@ -184,6 +186,11 @@ function bakedArgv(createMock: ReturnType<typeof vi.fn>): string | readonly strireturn typeof launch === 'object' ? [launch.executable, ...launch.args] : launch;}+function bakedLaunchArgs(createMock: ReturnType<typeof vi.fn>): readonly string[] {+ const launch = bakedLaunch(createMock);+ return typeof launch === 'object' ? launch.args : [];+}+function bakedArgvText(createMock: ReturnType<typeof vi.fn>): string {const argv = bakedArgv(createMock);return Array.isArray(argv) ? argv.join(' ') : String(argv);@@ -696,6 +703,34 @@ describe('TerminalPanel "Open in terminal" launch (baked into the PTY spawn)', (]);});+ test('claude pre-approves the open command of the channel main named', async () => {+ const beta = makeBridge(+ { ...WIRED, mcpServerName: 'open-knowledge-beta' },+ ON_PATH,+ 'darwin',+ 'ok-beta',+ );+ render(+ <TerminalPanel bridge={beta.bridge} launch={{ prompt: 'hi', cli: 'claude', nonce: 1 }} />,+ );+ await waitFor(() => expect(beta.terminal.create).toHaveBeenCalledTimes(1));+ const settings = JSON.parse(String(bakedLaunchArgs(beta.terminal.create)[1])) as {+ permissions: { allow: string[] };+ };+ expect(settings.permissions.allow).toEqual([+ 'mcp__open-knowledge-beta',+ 'Bash(ok-beta open:*)',+ ]);+ cleanup();++ const unnamed = makeBridge(WIRED, ON_PATH, 'darwin', null);+ render(+ <TerminalPanel bridge={unnamed.bridge} launch={{ prompt: 'hi', cli: 'claude', nonce: 1 }} />,+ );+ await waitFor(() => expect(unnamed.terminal.create).toHaveBeenCalledTimes(1));+ expect(bakedArgvText(unnamed.terminal.create)).not.toContain('Bash(');+ });+test('codex auto-approves only the server name main checked, and nothing without one', async () => {const beta = makeBridge(WIRED, {...CODEX_OK_CONFIGURED,diff --git a/packages/app/src/components/TerminalPanel.tsx b/packages/app/src/components/TerminalPanel.tsxindex c1ca4a3fb..4075371a9 100644--- a/packages/app/src/components/TerminalPanel.tsx+++ b/packages/app/src/components/TerminalPanel.tsx@@ -646,6 +646,7 @@ function TerminalSession({return buildLaunch({mcpPreApprove: fresh.mcpPreApprovable === true,mcpServerName: fresh.mcpServerName,+ ...(bridge.cliCommandName ? { cliCommandName: bridge.cliCommandName } : {}),autoApproveOkTools:autoApproveOkToolsRef.current && fresh.okToolsAutoApprovable === true,});diff --git a/packages/app/src/components/settings/OkCliPathRow.dom.test.tsx b/packages/app/src/components/settings/OkCliPathRow.dom.test.tsxindex 1af1811ad..5eead75ed 100644--- a/packages/app/src/components/settings/OkCliPathRow.dom.test.tsx+++ b/packages/app/src/components/settings/OkCliPathRow.dom.test.tsx@@ -31,9 +31,11 @@ function statusWith(path: OkIntegrationsStatus['path']): OkIntegrationsStatus {function installBridge(status: OkIntegrationsStatus,setResult?: (request: OkIntegrationsSetRequest) => OkIntegrationsSetResult,+ cliCommandName: string | null = null,) {const setCalls: OkIntegrationsSetRequest[] = [];const bridge = {+ cliCommandName,integrations: {status: async () => status,setComponent: async (request: OkIntegrationsSetRequest) => {@@ -77,6 +79,32 @@ describe('OkCliPathRow', () => {expect(screen.getByTestId('ok-cli-path-status').textContent).toContain('~/.zshrc');});+ test('names the ok command when main sent the Stable command or none', async () => {+ installBridge(+ statusWith({ shellDetected: true, rcFilesToTouch: ['~/.zshrc'], installed: false }),+ undefined,+ 'ok',+ );+ renderRow();++ expect((await screen.findByTestId('ok-cli-path-row')).textContent).toContain(+ 'Add the ok command to your terminal',+ );+ });++ test('names the Beta command in a Beta window', async () => {+ installBridge(+ statusWith({ shellDetected: true, rcFilesToTouch: ['~/.zshrc'], installed: false }),+ undefined,+ 'ok-beta',+ );+ renderRow();++ expect((await screen.findByTestId('ok-cli-path-row')).textContent).toContain(+ 'Add the ok-beta command to your terminal',+ );+ });+test('checking it asks the host to install the shim', async () => {const { setCalls } = installBridge(statusWith({ shellDetected: true, rcFilesToTouch: ['~/.zshrc'], installed: false }),diff --git a/packages/app/src/components/settings/OkCliPathRow.tsx b/packages/app/src/components/settings/OkCliPathRow.tsxindex 17a6ae360..d2d199cf6 100644--- a/packages/app/src/components/settings/OkCliPathRow.tsx+++ b/packages/app/src/components/settings/OkCliPathRow.tsx@@ -6,10 +6,12 @@ import { Button } from '@/components/ui/button';import { Checkbox } from '@/components/ui/checkbox';import { Label } from '@/components/ui/label';import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { okCliCommandName } from '@/lib/channel-cli-copy';import type { OkIntegrationsStatus } from '@/lib/desktop-bridge-types';export function OkCliPathRow() {const { t } = useLingui();+ const cliCommand = okCliCommandName();const bridge = typeof window !== 'undefined' ? (window.okDesktop ?? null) : null;const [status, setStatus] = useState<OkIntegrationsStatus | null>(null);const [busy, setBusy] = useState(false);@@ -70,7 +72,7 @@ export function OkCliPathRow() {<span className="flex min-w-0 flex-1 flex-col gap-0.5"><span className="font-medium text-foreground text-sm"><Trans>- Add the <code className="inline-code">ok</code> command to your terminal+ Add the <code className="inline-code">{cliCommand}</code> command to your terminal</Trans></span><span className="text-muted-foreground text-xs" data-testid="ok-cli-path-status">diff --git a/packages/app/src/components/settings/SearchSection.dom.test.tsx b/packages/app/src/components/settings/SearchSection.dom.test.tsxindex 392a8b846..4317df675 100644--- a/packages/app/src/components/settings/SearchSection.dom.test.tsx+++ b/packages/app/src/components/settings/SearchSection.dom.test.tsx@@ -273,6 +273,41 @@ describe('SearchSection', () => {expect(screen.queryByTestId('settings-search-pending')).toBeNull();});+ test.each([+ [null, '~/.ok/secrets.yml'],+ ['ok-beta', '~/.ok-beta/secrets.yml'],+ ])(+ 'names the key file in the home of the channel main named (%s)',+ async (cliCommandName, path) => {+ (window as unknown as { okDesktop?: unknown }).okDesktop =+ cliCommandName === null ? undefined : { cliCommandName };+ try {+ mockProjectLocalConfig = configWithSemantic({ enabled: true });+ mockStatus = {+ enabled: true,+ keyPresent: false,+ keyNotRequired: false,+ keySource: null,+ keyHint: null,+ ready: false,+ capable: false,+ embedded: 0,+ total: 5,+ };++ render(<SearchSection />);++ const stored = await screen.findByText(+ (_content, el) =>+ el?.tagName === 'P' && (el.textContent ?? '').includes('Stored on this machine only'),+ );+ expect(stored.textContent).toContain(`(in ${path})`);+ } finally {+ (window as unknown as { okDesktop?: unknown }).okDesktop = undefined;+ }+ },+ );+test('on + key present but provider rejected it: shows the provider-error hint', async () => {const { binding } = makeBinding();mockProjectLocalBinding = binding;diff --git a/packages/app/src/components/settings/SearchSection.tsx b/packages/app/src/components/settings/SearchSection.tsxindex 04167e6e6..eb0758926 100644--- a/packages/app/src/components/settings/SearchSection.tsx+++ b/packages/app/src/components/settings/SearchSection.tsx@@ -42,6 +42,7 @@ import { Field, FieldDescription, FieldLabel } from '@/components/ui/field';import { Input } from '@/components/ui/input';import { Switch } from '@/components/ui/switch';import { useSemanticSearchStatus } from '@/hooks/use-semantic-search-status';+import { okUserHomeLabel } from '@/lib/channel-cli-copy';import { useConfigContext } from '@/lib/config-provider';import {type EmbeddingsKeyTransport,@@ -711,6 +712,7 @@ function EmbeddingsKeyField({loaded,}: EmbeddingsKeyFieldProps) {const { t } = useLingui();+ const secretsPath = okUserHomeLabel('secrets.yml');const [keyInput, setKeyInput] = useState('');const [busy, setBusy] = useState(false);const [error, setError] = useState<string | null>(null);@@ -757,9 +759,7 @@ function EmbeddingsKeyField({<Trans>Sent to <span className="font-medium">{endpointHost}</span> to embed your content.Stored on this machine only (in{' '}- <code className="rounded bg-muted px-1 py-0.5 font-mono text-xs">- ~/.ok/secrets.yml- </code>+ <code className="rounded bg-muted px-1 py-0.5 font-mono text-xs">{secretsPath}</code>), never in the project.</Trans>)}diff --git a/packages/app/src/lib/channel-cli-copy.test.ts b/packages/app/src/lib/channel-cli-copy.test.tsnew file mode 100644index 000000000..d4fa00b57--- /dev/null+++ b/packages/app/src/lib/channel-cli-copy.test.ts@@ -0,0 +1,24 @@+import { afterEach, describe, expect, test, vi } from 'vitest';+import { okCliCommandName, okUserHomeLabel } from './channel-cli-copy';++afterEach(() => {+ vi.unstubAllGlobals();+});++describe('channel CLI copy', () => {+ test('names Stable without a desktop bridge', () => {+ expect(okCliCommandName()).toBe('ok');+ expect(okUserHomeLabel('secrets.yml')).toBe('~/.ok/secrets.yml');+ });++ test('names Beta when main hands the window the Beta command', () => {+ vi.stubGlobal('window', { okDesktop: { cliCommandName: 'ok-beta' } });+ expect(okCliCommandName()).toBe('ok-beta');+ expect(okUserHomeLabel('secrets.yml')).toBe('~/.ok-beta/secrets.yml');+ });++ test('falls back to Stable for a command no channel owns', () => {+ vi.stubGlobal('window', { okDesktop: { cliCommandName: 'rm -rf' } });+ expect(okCliCommandName()).toBe('ok');+ });+});diff --git a/packages/app/src/lib/channel-cli-copy.ts b/packages/app/src/lib/channel-cli-copy.tsnew file mode 100644index 000000000..3b0d2d94e--- /dev/null+++ b/packages/app/src/lib/channel-cli-copy.ts@@ -0,0 +1,19 @@+import {+ type DesktopProduct,+ desktopProductForCliCommand,+ userHomeDisplayPath,+} from '@inkeep/open-knowledge-core/constants/product';++function rendererDesktopProduct(): DesktopProduct {+ return desktopProductForCliCommand(+ typeof window === 'undefined' ? null : window.okDesktop?.cliCommandName,+ );+}++export function okCliCommandName(): string {+ return rendererDesktopProduct().cliCommandNames[0];+}++export function okUserHomeLabel(...segments: string[]): string {+ return userHomeDisplayPath(rendererDesktopProduct(), ...segments);+}diff --git a/packages/app/src/lib/install-server-drift-listener.test.ts b/packages/app/src/lib/install-server-drift-listener.test.tsindex cc52f1291..b172c53dd 100644--- a/packages/app/src/lib/install-server-drift-listener.test.ts+++ b/packages/app/src/lib/install-server-drift-listener.test.ts@@ -133,7 +133,20 @@ describe('drift copy', () => {});test('other failure suggests `ok stop all`', () => {- expect(restartFailureMessage({ ok: false, reason: 'other' })).toContain('ok stop all');+ expect(restartFailureMessage({ ok: false, reason: 'other' })).toBe(+ "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists.",+ );+ });++ test('other failure in a Beta window suggests `ok-beta stop all`', () => {+ vi.stubGlobal('window', { okDesktop: { cliCommandName: 'ok-beta' } });+ try {+ expect(restartFailureMessage({ ok: false, reason: 'other' })).toContain(+ 'Try running `ok-beta stop all` in a terminal',+ );+ } finally {+ vi.unstubAllGlobals();+ }});test("another channel's server is left running and never offered `ok stop all`", () => {diff --git a/packages/app/src/lib/install-server-drift-listener.ts b/packages/app/src/lib/install-server-drift-listener.tsindex dc4c9b721..97d603d34 100644--- a/packages/app/src/lib/install-server-drift-listener.ts+++ b/packages/app/src/lib/install-server-drift-listener.ts@@ -2,6 +2,7 @@ import { t } from '@lingui/core/macro';import { createElement } from 'react';import { toast } from 'sonner';import { ServerDriftToast } from '@/components/ServerDriftToast';+import { okCliCommandName } from '@/lib/channel-cli-copy';import type {OkDesktopBridge,OkServerRestartFailure,@@ -33,8 +34,10 @@ export function restartFailureMessage(failure: OkServerRestartFailure): string {return otherChannelRestartMessage(failure.holderChannel);case 'eperm':return t`Couldn't restart the server — it's running under a different account. Restart your computer to clear it, then reopen this project.`;- case 'other':- return t`Couldn't restart the server automatically. Try running \`ok stop all\` in a terminal, then reopen this project — or restart your computer if it persists.`;+ case 'other': {+ const cliCommand = okCliCommandName();+ return t`Couldn't restart the server automatically. Try running \`${cliCommand} stop all\` in a terminal, then reopen this project — or restart your computer if it persists.`;+ }}}diff --git a/packages/app/src/lib/restart-collab-server.test.ts b/packages/app/src/lib/restart-collab-server.test.tsindex 6e7466e73..7225d809b 100644--- a/packages/app/src/lib/restart-collab-server.test.ts+++ b/packages/app/src/lib/restart-collab-server.test.ts@@ -22,6 +22,17 @@ describe('restartServerFailureMessage', () => {"Couldn't restart the server. Try `ok start` in this folder.",);});++ test('other in a Beta window points at ok-beta start', () => {+ vi.stubGlobal('window', { okDesktop: { cliCommandName: 'ok-beta' } });+ try {+ expect(restartServerFailureMessage({ ok: false, reason: 'other' })).toBe(+ "Couldn't restart the server. Try `ok-beta start` in this folder.",+ );+ } finally {+ vi.unstubAllGlobals();+ }+ });});describe('restartCollabServer', () => {diff --git a/packages/app/src/lib/restart-collab-server.ts b/packages/app/src/lib/restart-collab-server.tsindex 5be04462d..5646f92b9 100644--- a/packages/app/src/lib/restart-collab-server.ts+++ b/packages/app/src/lib/restart-collab-server.ts@@ -1,5 +1,6 @@import { desktopChannelLabel } from '@inkeep/open-knowledge-core/constants/product';import { t } from '@lingui/core/macro';+import { okCliCommandName } from '@/lib/channel-cli-copy';import type { OkDesktopBridge, OkServerRestartFailure } from '@/lib/desktop-bridge-types';export function restartServerFailureMessage(failure: OkServerRestartFailure): string {@@ -8,8 +9,10 @@ export function restartServerFailureMessage(failure: OkServerRestartFailure): streturn otherChannelRestartMessage(failure.holderChannel);case 'eperm':return t`Couldn't restart the server — another process owns it. Quit other OpenKnowledge windows for this project, then try again.`;- case 'other':- return t`Couldn't restart the server. Try \`ok start\` in this folder.`;+ case 'other': {+ const cliCommand = okCliCommandName();+ return t`Couldn't restart the server. Try \`${cliCommand} start\` in this folder.`;+ }}}diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 323d320da..c709e85e4 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -885,9 +885,6 @@"7Ongq0": ["اختصر ملف AGENTS.md لديّ إلى أقل من 40 ألف حرف"],"7OwvEL": ["إظهار معاينة HTML"],"7PNNNs": ["هذا يرسل محتوى خارج جهازك"],- "7PXYaF": [- "لن يعمل <0>ok</0> في الطرفيات الخارجية حتى تضيفه لاحقًا من قائمة «ملف». تظل طرفية OpenKnowledge المدمجة وأدوات الذكاء الاصطناعي تعمل."- ],"7PzzBU": ["المستخدم"],"7S7FNA": ["تحقق OpenKnowledge من المشروع"],"7Voget": ["تحديد ", ["name"]],@@ -968,6 +965,11 @@"8L0EPw": ["أو الصق رمزًا"],"8OGgNM": ["افتح بحث المحرر المرئي أو أغلقه."],"8OxKZy": ["نجح النقل لكن الشريط الجانبي قد يكون قديمًا — حدّث لإعادة المزامنة"],+ "8PBuqT": [+ "لن يعمل <0>",+ ["cliCommand"],+ "</0> في الطرفيات الخارجية حتى تضيفه لاحقًا من قائمة «ملف». تظل طرفية OpenKnowledge المدمجة وأدوات الذكاء الاصطناعي تعمل."+ ],"8PifYj": ["مخطط Mermaid"],"8PmoQF": ["افتح قائمة الإدراج في موضع نصي فارغ أو نشط."],"8QLpZe": ["توقّف الخادم. أعد تشغيله لإعادة الاتصال."],@@ -1276,15 +1278,11 @@"BMoSQy": ["لا يتيح هذا الوكيل لـ OpenKnowledge طريقة لإعداد ذلك نيابةً عنك. يتضمّن دليل الإعداد الخاص به الخطوات اليدوية."],- "BOsvJ8": [- "<0>ok</0> لن يعمل في الوحدات الطرفية الخارجية حتى تضيفه لاحقًا من قائمة «ملف». ستستمر أدوات الذكاء الاصطناعي لديك في العمل."- ],"BQKHuL": ["إعادة تشغيل الطرفية"],"BQu9Pg": ["رابط رمزي"],"BRtKwG": ["لتوصيل أدوات الذكاء الاصطناعي بدون مشروع، استخدم ملف > إعداد تكاملات OpenKnowledge…"],- "BUyQnq": ["تعذّرت إعادة تشغيل الخادم. جرّب `ok start` في هذا المجلد."],"BVkqD9": ["تم إيقاف صيانة الفهرس مؤقتًا لأن سمة Git أخرى تتحكم في index.md. قم بتحديث .gitattributes بحيث تستخدم مسارات index.md المحددة النطاق merge=union، ثم حاول مرة أخرى."],@@ -1730,7 +1728,6 @@"Fqx38P": ["ما الذي وقف عائقًا؟"],"Fr8JGg": ["ملف Zip"],"FsEXax": ["لم تكتمل العملية. راجع سجلات الخادم ثم أعد المحاولة."],- "Fsx78O": ["أضف الأمر <0>ok</0> إلى طرفيتك"],"FumRbV": ["الفحوصات قيد التشغيل"],"FvMSms": ["تغيّر إعادة التسمية الملف على القرص والمعرّف الذي يستخدمه الوكلاء لاختيار هذا القالب."@@ -2226,9 +2223,6 @@"LHH461": ["إنهاء الإعداد"],"LJHTS5": ["اختيار وجهة إرسال هذه الرسالة"],"LJXDjm": ["تعذّر حفظ تفضيل السمة لديك."],- "LJeFU6": [- "شغّل OpenKnowledge من أي طرفية — <0>ok</0> يفتح مشروعًا، و<1>ok init</1> يربط وكلاءك."- ],"LK83k1": ["اكتب '@' للإشارة إلى صفحة"],"LKIPzv": [[@@ -2741,9 +2735,6 @@"Pkw7J9": ["هذا المجلد فارغ."],"Pp0Vgd": ["انقر للتثبيت في ", ["label"]],"PpJy-V": ["لم تستجب نقطة النهاية في الوقت المحدد."],- "PqYWiC": [- "تعذّرت إعادة تشغيل الخادم تلقائيًا. جرّب تشغيل `ok stop all` في طرفية، ثم أعد فتح هذا المشروع — أو أعد تشغيل جهازك إن استمرت المشكلة."- ],"PrJYSN": ["هذا المجلد ليس على GitHub بعد. لن يعمل الرابط حتى يُدفع."],"PrVaZo": ["هل تلغي تثبيت OpenKnowledge؟"],"PrWQiT": ["نقل Terminal إلى اليمين"],@@ -2974,16 +2965,17 @@"RfaEio": ["تبديل تعليق المصدر"],"RfilGt": ["لا توجد قواعد تطابق مرشحاتك."],"RgbKEe": ["ليس لديك صلاحية الوصول إلى هذا المستودع."],- "RhX_1U": [+ "Rh_duv": ["يُرسل إلى <0>",["endpointHost"],- "</0> لتضمين محتواك. يُخزَّن على هذا الجهاز فقط (في <1>~/.ok/secrets.yml</1>)، وليس في المشروع أبدًا."+ "</0> لتضمين محتواك. يُخزَّن على هذا الجهاز فقط (في <1>",+ ["secretsPath"],+ "</1>)، وليس في المشروع أبدًا."],"Rj01Fz": ["الروابط"],"RkXlPZ": ["GitHub"],"RlCInP": ["أوامر الشرطة المائلة"],"RmBY0A": ["لا يوجد مستودع git بعيد"],- "RnrnTe": ["مُعدّ بالفعل — الأمر ok متاح في طرفيتك"],"RoafuO": ["إرسال ملاحظات"],"RobAKV": ["حدّث الوجهة ومرساة القسم الاختيارية."],"RojU4W": ["مهارات من OpenKnowledge"],@@ -3272,6 +3264,11 @@}]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> لن يعمل في الوحدات الطرفية الخارجية حتى تضيفه لاحقًا من قائمة «ملف». ستستمر أدوات الذكاء الاصطناعي لديك في العمل."+ ],"V0Jk_K": ["لم يتم اكتشافه على هذا الجهاز · ملفات OpenKnowledge موجودة"],"V0mbgd": ["أغلق علامة تبويب هذه المحادثة لحذفها"],"V2Gmie": [@@ -4108,6 +4105,7 @@"cD3aew": ["تحدث إعادة التضمين أثناء تشغيل عمليات البحث، لذا تبدأ التغطية من الصفر وتمتلئ من جديد."],+ "cD5D4S": ["تعذّرت إعادة تشغيل الخادم. جرّب `", ["cliCommand"], " start` في هذا المجلد."],"cEoyWz": ["إضافة عنصر إلى ", ["keyName"]],"cF9DyA": ["يجري إعادة الاتصال بعد إعادة تشغيل الخادم"],"cFCKYZ": ["رفض"],@@ -4374,6 +4372,7 @@"dprWmL": ["مرساة في هذه الصفحة"],"dr1vFs": ["استبدال كل التطابقات"],"drzzZw": ["تبويبات المعاينة"],+ "ds0rjh": ["أضف الأمر <0>", ["cliCommand"], "</0> إلى طرفيتك"],"dw_3cv": ["إعادة تسمية المهارة"],"dw_dUJ": ["فشل تكرار المسار"],"dx-TwN": ["تجري مراجعة المشروع"],@@ -4824,6 +4823,11 @@"h69WC6": ["أُرسل"],"h7FzJC": ["لم تطابق استجابة رسم الروابط الشكل المتوقع."],"h9QFb9": ["حُذفت المهارة «", ["0"], "»"],+ "hARd2R": [+ "تعذّرت إعادة تشغيل الخادم تلقائيًا. جرّب تشغيل `",+ ["cliCommand"],+ " stop all` في طرفية، ثم أعد فتح هذا المشروع — أو أعد تشغيل جهازك إن استمرت المشكلة."+ ],"hAbGf0": ["تم فتح مشروع OpenKnowledge الموجود في ", ["ancestorPath"]],"hBMK4W": ["قوالب المشروع"],"hCOLSd": [@@ -5320,6 +5324,7 @@"loE6tM": ["تعذّر التبديل إلى ", ["language"], "."],"lond3p": ["يظهر فوق متن الكود. يُحفظ ويُستعاد كـ `title=\"...\"` في Markdown."],"lrhetp": ["+ ", ["overflow"], " إضافية"],+ "lvHgM-": ["مُعدّ بالفعل — الأمر ", ["cliCommand"], " متاح في طرفيتك"],"lwCV5v": ["تعذّر فتح ", ["0"], " للتحرير: ", ["1"]],"lwvkBP": ["كما يضيف أي أخطاء في الاتصال بالشاشة كتبها OpenKnowledge في سجل المستخدم الخاص بك خلال الأسبوع الماضي، مع اقتطاع كل رسالة إلى 200 حرف."@@ -6935,6 +6940,13 @@"zo3Dl7": ["تبديل الصور المصغّرة"],"zpfN9p": ["لا توجد تعليقات بعد. حدد نصًا في المستند لإضافة واحد."],"zq2eBA": ["العرض في المصدر"],+ "zqJgDd": [+ "شغّل OpenKnowledge من أي طرفية — <0>",+ ["cliCommand"],+ "</0> يفتح مشروعًا، و<1>",+ ["cliCommand"],+ " init</1> يربط وكلاءك."+ ],"zqQlBg": ["الحد الأقصى لقطع النص لكل طلب فهرسة"],"zrP8HX": ["الـ frontmatter الذي يبدأ به كل مستند يُنشأ من هذا القالب. القيم بصيغة YAML — القائمة تُكتب <0>[a, b]</0>؛ و<1>{",diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex 289affefa..616f7a46d 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> ليس مكوّنًا معروفًا. انسخ المmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "تعذّر عرض <{descriptorLabel}> (على الأرجح خاصية غير صالحة). انسخ المصدر لمعرفة الخطأ، أو احذف الكتلة."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "لن يعمل <0>{cliCommand}</0> في الطرفيات الخارجية حتى تضيفه لاحقًا من قائمة «ملف». تظل طرفية OpenKnowledge المدمجة وأدوات الذكاء الاصطناعي تعمل."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> لن يعمل في الوحدات الطرفية الخارجية حتى تضيفه لاحقًا من قائمة «ملف». ستستمر أدوات الذكاء الاصطناعي لديك في العمل."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "تعذّر دمج <0>{filePath}</0> هنا. اختر النسخة التي تريد الاحتفاظ بها."@@ -1323,16 +1333,6 @@ msgstr "<0>لم يُعثر على مرساة المرآة.</0> لا يوجد <1>msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>تمت إزالة مصدر المرآة.</0> لم يعد المستند <1>{src}</1> متاحًا."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "لن يعمل <0>ok</0> في الطرفيات الخارجية حتى تضيفه لاحقًا من قائمة «ملف». تظل طرفية OpenKnowledge المدمجة وأدوات الذكاء الاصطناعي تعمل."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> لن يعمل في الوحدات الطرفية الخارجية حتى تضيفه لاحقًا من قائمة «ملف». ستستمر أدوات الذكاء الاصطناعي لديك في العمل."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>مسافة</0> للقفز · <1>↓</1> للانحناء"@@ -1829,8 +1829,8 @@ msgstr "إضافة وسم"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "أضف الأمر <0>ok</0> إلى طرفيتك"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "أضف الأمر <0>{cliCommand}</0> إلى طرفيتك"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "يجري إرسال هذا التقرير بالفعل"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "مُعدّ بالفعل — الأمر ok متاح في طرفيتك"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "مُعدّ بالفعل — الأمر {cliCommand} متاح في طرفيتك"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "تعذّرت إعادة تشغيل الخادم — يعمل تحت حساب مختلف. أعد تشغيل جهازك لتحريره، ثم أعد فتح هذا المشروع."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "تعذّرت إعادة تشغيل الخادم تلقائيًا. جرّب تشغيل `ok stop all` في طرفية، ثم أعد فتح هذا المشروع — أو أعد تشغيل جهازك إن استمرت المشكلة."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "تعذّرت إعادة تشغيل الخادم تلقائيًا. جرّب تشغيل `{cliCommand} stop all` في طرفية، ثم أعد فتح هذا المشروع — أو أعد تشغيل جهازك إن استمرت المشكلة."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "تعذّر إعادة تشغيل الخادم. شغّل ok start في هذا المجلد لإعادة المحاولة."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "تعذّرت إعادة تشغيل الخادم. جرّب `ok start` في هذا المجلد."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "تعذّرت إعادة تشغيل الخادم. جرّب `{cliCommand} start` في هذا المجلد."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "آخر تعديل"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "شغّل OpenKnowledge من أي طرفية — <0>ok</0> يفتح مشروعًا، و<1>ok init</1> يربط وكلاءك."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "شغّل OpenKnowledge من أي طرفية — <0>{cliCommand}</0> يفتح مشروعًا، و<1>{cliCommand} init</1> يربط وكلاءك."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "يُرسل بشكل خاص إلى فريق OpenKnowledge، مع ملاحظتك ونسخة التطبيق. لا يُنشر علنًا أبدًا."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "يُرسل إلى <0>{endpointHost}</0> لتضمين محتواك. يُخزَّن على هذا الجهاز فقط (في <1>~/.ok/secrets.yml</1>)، وليس في المشروع أبدًا."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "يُرسل إلى <0>{endpointHost}</0> لتضمين محتواك. يُخزَّن على هذا الجهاز فقط (في <1>{secretsPath}</1>)، وليس في المشروع أبدًا."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 76af7cd04..e88ddcea4 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -723,9 +723,6 @@"7Ongq0": ["আমার AGENTS.md ফাইলটি ৪০k অক্ষরের কমে সংক্ষিপ্ত করুন"],"7OwvEL": ["HTML প্রাকদর্শন দেখান"],"7PNNNs": ["এটি বিষয়বস্তু আপনার মেশিনের বাইরে পাঠায়"],- "7PXYaF": [- "<0>ok</0> বাইরের টার্মিনালে চলবে না যতক্ষণ না আপনি পরে File মেনু থেকে সেটি যোগ করেন। OpenKnowledge-এর নিজস্ব টার্মিনাল ও AI টুল কাজ করতে থাকে।"- ],"7PzzBU": ["ব্যবহারকারী"],"7S7FNA": ["OpenKnowledge প্রকল্প পরীক্ষা করেছে"],"7Voget": [["name"], " নির্বাচন করুন"],@@ -793,6 +790,11 @@"8L0EPw": ["নয়তো একটি টোকেন পেস্ট করুন"],"8OGgNM": ["দৃশ্য-সম্পাদকের খোঁজা খুলুন বা বন্ধ করুন।"],"8OxKZy": ["সরানো সফল হয়েছে কিন্তু সাইডবার পুরোনো হতে পারে — আবার সিঙ্ক করতে সতেজ করুন"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> বাইরের টার্মিনালে চলবে না যতক্ষণ না আপনি পরে File মেনু থেকে সেটি যোগ করেন। OpenKnowledge-এর নিজস্ব টার্মিনাল ও AI টুল কাজ করতে থাকে।"+ ],"8PifYj": ["Mermaid চিত্র"],"8PmoQF": ["কোনো খালি বা সক্রিয় লেখার অবস্থানে সন্নিবেশ মেনু খুলুন।"],"8QLpZe": ["সার্ভার বন্ধ হয়ে গেছে। পুনরায় সংযোগের জন্য এটি পুনরায় চালু করুন।"],@@ -1068,13 +1070,9 @@"BMoSQy": ["এই এজেন্ট OpenKnowledge-কে আপনার হয়ে এটি সেট আপ করার কোনো উপায় দেয় না। এর সেটআপ গাইডে ম্যানুয়াল ধাপগুলি রয়েছে।"],- "BOsvJ8": [- "পরে File মেনু থেকে যোগ না করা পর্যন্ত <0>ok</0> বাহ্যিক টার্মিনালে চলবে না। আপনার AI টুলগুলো কাজ করতে থাকবে।"- ],"BQKHuL": ["টার্মিনাল পুনরায় চালু করুন"],"BQu9Pg": ["সিমলিংক"],"BRtKwG": ["কোনো প্রকল্প ছাড়া AI টুল সংযুক্ত করতে, ফাইল > OpenKnowledge সংযুক্তি সেট আপ করুন… ব্যবহার করুন।"],- "BUyQnq": ["সার্ভার পুনরায় চালু করা যায়নি। এই ফোল্ডারে `ok start` চেষ্টা করুন।"],"BVkqD9": ["সূচী রক্ষণাবেক্ষণ বিরাম দেওয়া হয়েছে কারণ অন্য Git বৈশিষ্ট্য নিয়ন্ত্রণ করে index.md। .gitattributes আপডেট করুন যাতে স্কোপযুক্ত index.md পাথগুলি merge=union ব্যবহার করে, তারপর আবার চেষ্টা করুন।"],@@ -1478,7 +1476,6 @@"Fqx38P": ["কী বাধা হয়ে দাঁড়িয়েছিল?"],"Fr8JGg": ["Zip ফাইল"],"FsEXax": ["এটি সম্পন্ন হয়নি। সার্ভার লগ দেখে আবার চেষ্টা করুন।"],- "Fsx78O": ["আপনার টার্মিনালে <0>ok</0> কমান্ড যোগ করুন"],"FumRbV": ["চেক চলছে"],"FvMSms": ["নাম বদলালে ডিস্কের ফাইল এবং এজেন্টরা এই টেমপ্লেটটি বাছতে যে id ব্যবহার করে দুটোই বদলে যায়।"],"Fx9aOF": ["OpenKnowledge একটি নথি সম্পাদনা করেছে"],@@ -1907,9 +1904,6 @@"LHH461": ["সেটআপ শেষ করুন"],"LJHTS5": ["এই বার্তাটি কোথায় পাঠাবেন তা বেছে নিন"],"LJXDjm": ["আপনার থিম পছন্দ সংরক্ষণ করা যায়নি।"],- "LJeFU6": [- "যেকোনো টার্মিনাল থেকে OpenKnowledge চালু করুন — <0>ok</0> প্রকল্প খোলে, <1>ok init</1> আপনার এজেন্ট যুক্ত করে।"- ],"LK83k1": ["একটি পাতা উল্লেখ করতে '@' টাইপ করুন"],"LKIPzv": [[@@ -2333,9 +2327,6 @@"Pkw7J9": ["এই ফোল্ডারটি খালি।"],"Pp0Vgd": [["label"], "-এ ইনস্টল করতে ক্লিক করুন"],"PpJy-V": ["এন্ডপয়েন্ট সময়মতো সাড়া দেয়নি।"],- "PqYWiC": [- "সার্ভার নিজে থেকে পুনরায় চালু করা যায়নি। টার্মিনালে `ok stop all` চালিয়ে দেখুন, তারপর এই প্রকল্পটি আবার খুলুন — সমস্যা থাকলে কম্পিউটার পুনরায় চালু করুন।"- ],"PrJYSN": ["এই ফোল্ডারটি এখনও GitHub-এ নেই। এটি না পাঠানো পর্যন্ত লিংকটি কাজ করবে না।"],"PrVaZo": ["OpenKnowledge সরাবেন?"],"PrWQiT": ["Terminal ডান দিকে সরান"],@@ -2526,16 +2517,17 @@"RfaEio": ["সোর্স মন্তব্য চালু বা বন্ধ করুন"],"RfilGt": ["আপনার ছাঁকনির সঙ্গে কোনো নিয়ম মেলে না।"],"RgbKEe": ["এই রিপোজিটরিতে আপনার প্রবেশাধিকার নেই।"],- "RhX_1U": [+ "Rh_duv": ["আপনার বিষয়বস্তু এমবেড করতে <0>",["endpointHost"],- "</0>-এ পাঠানো হয়। কেবল এই মেশিনেই সংরক্ষিত (<1>~/.ok/secrets.yml</1>-এ), প্রকল্পে কখনও নয়।"+ "</0>-এ পাঠানো হয়। কেবল এই মেশিনেই সংরক্ষিত (<1>",+ ["secretsPath"],+ "</1>-এ), প্রকল্পে কখনও নয়।"],"Rj01Fz": ["লিংক"],"RkXlPZ": ["GitHub"],"RlCInP": ["স্ল্যাশ কমান্ড"],"RmBY0A": ["কোনো git রিমোট নেই"],- "RnrnTe": ["আগে থেকেই সেট আপ করা — ok আপনার টার্মিনালে আছে"],"RoafuO": ["মতামত পাঠান"],"RobAKV": ["গন্তব্য ও ঐচ্ছিক বিভাগ অ্যাংকর বদলান।"],"RojU4W": ["OpenKnowledge-এর স্কিল"],@@ -2765,6 +2757,11 @@"Uuj_R4": ["টেমপ্লেট থেকে নতুন"],"Uw6ERJ": ["কপি করা যায়নি: ", ["detail"]],"UyROxs": [["mins", "plural", { "one": ["#", " মিনিট আগে"], "other": ["#", " মিনিট আগে"] }]],+ "V-pEOB": [+ "পরে File মেনু থেকে যোগ না করা পর্যন্ত <0>",+ ["cliCommand"],+ "</0> বাহ্যিক টার্মিনালে চলবে না। আপনার AI টুলগুলো কাজ করতে থাকবে।"+ ],"V0Jk_K": ["এই মেশিনে শনাক্ত হয়নি · OpenKnowledge ফাইল রয়েছে"],"V0mbgd": ["এটি মুছতে এই চ্যাটের ট্যাব বন্ধ করুন"],"V2Gmie": [@@ -3481,6 +3478,7 @@"c9C7DQ": ["এই সেটিংটি সংরক্ষণ করা যায়নি। আবার চেষ্টা করুন।"],"cCd8Bs": ["কাটুন"],"cD3aew": ["অনুসন্ধান চলার সঙ্গে সঙ্গেই পুনরায় এমবেড হয়, তাই আওতা শূন্য থেকে আবার শুরু হয়ে ভরে ওঠে।"],+ "cD5D4S": ["সার্ভার পুনরায় চালু করা যায়নি। এই ফোল্ডারে `", ["cliCommand"], " start` চেষ্টা করুন।"],"cEoyWz": [["keyName"], "-এ আইটেম যোগ করুন"],"cF9DyA": ["সার্ভার পুনরায় চালুর পর আবার যুক্ত হচ্ছে"],"cFCKYZ": ["প্রত্যাখ্যান করুন"],@@ -3667,6 +3665,7 @@"dprWmL": ["এই পাতায় অ্যাংকর"],"dr1vFs": ["সব মিল বদলান"],"drzzZw": ["প্রাকদর্শন ট্যাব"],+ "ds0rjh": ["আপনার টার্মিনালে <0>", ["cliCommand"], "</0> কমান্ড যোগ করুন"],"dw_3cv": ["স্কিলের নাম বদলান"],"dw_dUJ": ["পথের প্রতিলিপি করতে ব্যর্থ"],"dx-TwN": ["প্রকল্প নিরীক্ষা চালানো হচ্ছে"],@@ -4030,6 +4029,11 @@"h69WC6": ["পাঠানো হয়েছে"],"h7FzJC": ["লিংক-গ্রাফের সাড়া প্রত্যাশিত আকারের সঙ্গে মেলেনি।"],"h9QFb9": ["স্কিল \"", ["0"], "\" মুছে ফেলা হয়েছে"],+ "hARd2R": [+ "সার্ভার নিজে থেকে পুনরায় চালু করা যায়নি। টার্মিনালে `",+ ["cliCommand"],+ " stop all` চালিয়ে দেখুন, তারপর এই প্রকল্পটি আবার খুলুন — সমস্যা থাকলে কম্পিউটার পুনরায় চালু করুন।"+ ],"hAbGf0": [["ancestorPath"], "-এ থাকা OpenKnowledge প্রকল্পটি খোলা হয়েছে"],"hBMK4W": ["প্রকল্পের টেমপ্লেট"],"hCOLSd": [@@ -4501,6 +4505,7 @@"loE6tM": [["language"], "-তে পরিবর্তন করা যায়নি।"],"lond3p": ["কোডের মূল অংশের উপরে দেখা যায়। markdown-এ `title=\"...\"` হিসেবে ফিরে আসে।"],"lrhetp": ["+ আরও ", ["overflow"]],+ "lvHgM-": ["আগে থেকেই সেট আপ করা — ", ["cliCommand"], " আপনার টার্মিনালে আছে"],"lwCV5v": [["0"], " সম্পাদনার জন্য খোলা যায়নি: ", ["1"]],"lwvkBP": ["এটি গত সপ্তাহে OpenKnowledge আপনার ব্যবহারকারী জার্নালে ডিসপ্লের সঙ্গে সংযোগের যে ত্রুটিগুলো লিখেছে সেগুলোও যোগ করে, প্রতিটি বার্তা 200 অক্ষরে ছেঁটে।"@@ -5808,6 +5813,13 @@"zo3Dl7": ["থাম্বনেইল চালু বা বন্ধ করুন"],"zpfN9p": ["এখনও কোনো মন্তব্য নেই। একটি যোগ করতে নথিতে লেখা নির্বাচন করুন।"],"zq2eBA": ["সোর্সে দেখুন"],+ "zqJgDd": [+ "যেকোনো টার্মিনাল থেকে OpenKnowledge চালু করুন — <0>",+ ["cliCommand"],+ "</0> প্রকল্প খোলে, <1>",+ ["cliCommand"],+ " init</1> আপনার এজেন্ট যুক্ত করে।"+ ],"zqQlBg": ["প্রতি ইনডেক্সিং অনুরোধে সর্বাধিক টেক্সট খণ্ড"],"zrP8HX": ["এই টেমপ্লেট থেকে তৈরি প্রতিটি নথি যে frontmatter দিয়ে শুরু হয়। মানগুলো YAML — তালিকা হলো <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex c785cb2c3..c57b2b950 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -1303,6 +1303,16 @@ msgstr "<{componentName}> একটি পরিচিত কম্পোনেmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> রেন্ডার করা যায়নি (সম্ভবত একটি ভুল প্রপ)। কী ভুল হয়েছে দেখতে সোর্স কপি করুন, নয়তো ব্লকটি মুছে দিন।"+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> বাইরের টার্মিনালে চলবে না যতক্ষণ না আপনি পরে File মেনু থেকে সেটি যোগ করেন। OpenKnowledge-এর নিজস্ব টার্মিনাল ও AI টুল কাজ করতে থাকে।"++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "পরে File মেনু থেকে যোগ না করা পর্যন্ত <0>{cliCommand}</0> বাহ্যিক টার্মিনালে চলবে না। আপনার AI টুলগুলো কাজ করতে থাকবে।"+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> এখানে মার্জ করা যাবে না। কোন সংস্করণটি রাখবেন বেছে নিন।"@@ -1319,16 +1329,6 @@ msgstr "<0>মিরর অ্যাংকর পাওয়া যায়নmsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>মিরর উৎস সরানো হয়েছে।</0> <1>{src}</1> নথিটি আর নেই।"-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> বাইরের টার্মিনালে চলবে না যতক্ষণ না আপনি পরে File মেনু থেকে সেটি যোগ করেন। OpenKnowledge-এর নিজস্ব টার্মিনাল ও AI টুল কাজ করতে থাকে।"--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "পরে File মেনু থেকে যোগ না করা পর্যন্ত <0>ok</0> বাহ্যিক টার্মিনালে চলবে না। আপনার AI টুলগুলো কাজ করতে থাকবে।"-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "লাফাতে <0>স্পেস</0> · নিচু হতে <1>↓</1>"@@ -1825,8 +1825,8 @@ msgstr "ট্যাগ যোগ করুন"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "আপনার টার্মিনালে <0>ok</0> কমান্ড যোগ করুন"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "আপনার টার্মিনালে <0>{cliCommand}</0> কমান্ড যোগ করুন"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2089,8 +2089,8 @@ msgid "Already sending this report"msgstr "এই রিপোর্ট আগে থেকেই পাঠানো হচ্ছে"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "আগে থেকেই সেট আপ করা — ok আপনার টার্মিনালে আছে"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "আগে থেকেই সেট আপ করা — {cliCommand} আপনার টার্মিনালে আছে"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4596,16 +4596,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "সার্ভার পুনরায় চালু করা যায়নি — এটি অন্য অ্যাকাউন্টের অধীনে চলছে। এটি পরিষ্কার করতে কম্পিউটার পুনরায় চালু করুন, তারপর এই প্রকল্পটি আবার খুলুন।"#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "সার্ভার নিজে থেকে পুনরায় চালু করা যায়নি। টার্মিনালে `ok stop all` চালিয়ে দেখুন, তারপর এই প্রকল্পটি আবার খুলুন — সমস্যা থাকলে কম্পিউটার পুনরায় চালু করুন।"+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "সার্ভার নিজে থেকে পুনরায় চালু করা যায়নি। টার্মিনালে `{cliCommand} stop all` চালিয়ে দেখুন, তারপর এই প্রকল্পটি আবার খুলুন — সমস্যা থাকলে কম্পিউটার পুনরায় চালু করুন।"#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "সার্ভার পুনরায় চালু করা যায়নি। আবার চেষ্টা করতে এই ফোল্ডারে ok start চালান।"#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "সার্ভার পুনরায় চালু করা যায়নি। এই ফোল্ডারে `ok start` চেষ্টা করুন।"+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "সার্ভার পুনরায় চালু করা যায়নি। এই ফোল্ডারে `{cliCommand} start` চেষ্টা করুন।"#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8322,8 +8322,8 @@ msgstr "সর্বশেষ সম্পাদনা"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "যেকোনো টার্মিনাল থেকে OpenKnowledge চালু করুন — <0>ok</0> প্রকল্প খোলে, <1>ok init</1> আপনার এজেন্ট যুক্ত করে।"+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "যেকোনো টার্মিনাল থেকে OpenKnowledge চালু করুন — <0>{cliCommand}</0> প্রকল্প খোলে, <1>{cliCommand} init</1> আপনার এজেন্ট যুক্ত করে।"#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13253,8 +13253,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "আপনার নোট ও অ্যাপের সংস্করণসহ ব্যক্তিগতভাবে OpenKnowledge দলের কাছে পাঠানো হয়। কখনও প্রকাশ্যে প্রকাশ করা হয় না।"#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "আপনার বিষয়বস্তু এমবেড করতে <0>{endpointHost}</0>-এ পাঠানো হয়। কেবল এই মেশিনেই সংরক্ষিত (<1>~/.ok/secrets.yml</1>-এ), প্রকল্পে কখনও নয়।"+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "আপনার বিষয়বস্তু এমবেড করতে <0>{endpointHost}</0>-এ পাঠানো হয়। কেবল এই মেশিনেই সংরক্ষিত (<1>{secretsPath}</1>-এ), প্রকল্পে কখনও নয়।"#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex d6fac0a2e..f97f279f2 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -742,9 +742,6 @@"7Ongq0": ["Condense my AGENTS.md file to less than 40k characters"],"7OwvEL": ["Show HTML preview"],"7PNNNs": ["This sends content off your machine"],- "7PXYaF": [- "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."- ],"7PzzBU": ["User"],"7S7FNA": ["OpenKnowledge checked the project"],"7Voget": ["Select ", ["name"]],@@ -824,6 +821,11 @@"8L0EPw": ["or paste a token"],"8OGgNM": ["Open or close visual-editor find."],"8OxKZy": ["Move succeeded but the sidebar may be out of date — refresh to resync"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+ ],"8PifYj": ["Mermaid diagram"],"8PmoQF": ["Open the insert menu in an empty or active text position."],"8QLpZe": ["The server stopped. Restart it to reconnect."],@@ -1109,15 +1111,11 @@"BMoSQy": ["This agent gives OpenKnowledge no way to set this up for you. Its setup guide has the manual steps."],- "BOsvJ8": [- "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."- ],"BQKHuL": ["Restart terminal"],"BQu9Pg": ["Symlink"],"BRtKwG": ["To connect AI tools without a project, use File > Set up OpenKnowledge integrations…"],- "BUyQnq": ["Couldn't restart the server. Try `ok start` in this folder."],"BVkqD9": ["Index maintenance is paused because another Git attribute controls index.md. Update .gitattributes so the scoped index.md paths use merge=union, then try again."],@@ -1523,7 +1521,6 @@"Fqx38P": ["What got in the way?"],"Fr8JGg": ["Zip file"],"FsEXax": ["That did not go through. Check the server logs and try again."],- "Fsx78O": ["Add the <0>ok</0> command to your terminal"],"FumRbV": ["Checks are running"],"FvMSms": ["Renaming changes the file on disk and the id agents use to pick this template."],"Fx9aOF": ["OpenKnowledge edited a document"],@@ -1968,9 +1965,6 @@"LHH461": ["Finish setup"],"LJHTS5": ["Choose where to send this message"],"LJXDjm": ["Couldn't save your theme preference."],- "LJeFU6": [- "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."- ],"LK83k1": ["Type '@' to mention a page"],"LKIPzv": [[@@ -2408,9 +2402,6 @@"Pkw7J9": ["This folder is empty."],"Pp0Vgd": ["Click to install in ", ["label"]],"PpJy-V": ["The endpoint didn't respond in time."],- "PqYWiC": [- "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."- ],"PrJYSN": ["This folder isn't on GitHub yet. The link won't work until it's pushed."],"PrVaZo": ["Uninstall OpenKnowledge?"],"PrWQiT": ["Move Terminal to right"],@@ -2610,16 +2601,17 @@"RfaEio": ["Toggle source comment"],"RfilGt": ["No rules match your filters."],"RgbKEe": ["You don't have access to this repository."],- "RhX_1U": [+ "Rh_duv": ["Sent to <0>",["endpointHost"],- "</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."+ "</0> to embed your content. Stored on this machine only (in <1>",+ ["secretsPath"],+ "</1>), never in the project."],"Rj01Fz": ["Links"],"RkXlPZ": ["GitHub"],"RlCInP": ["Slash commands"],"RmBY0A": ["No git remote"],- "RnrnTe": ["Already set up — ok is available in your terminal"],"RoafuO": ["Send feedback"],"RobAKV": ["Update the destination and optional section anchor."],"RojU4W": ["Skills from OpenKnowledge"],@@ -2856,6 +2848,11 @@"Uuj_R4": ["New from template"],"Uw6ERJ": ["Couldn't copy: ", ["detail"]],"UyROxs": [["mins", "plural", { "one": ["#", " min ago"], "other": ["#", " min ago"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+ ],"V0Jk_K": ["Not detected on this machine · OpenKnowledge files present"],"V0mbgd": ["Close this chat's tab to delete it"],"V2Gmie": [@@ -3579,6 +3576,7 @@"c9C7DQ": ["Couldn't save this setting. Try again."],"cCd8Bs": ["Cut"],"cD3aew": ["Re-embedding happens as searches run, so coverage restarts at zero and refills."],+ "cD5D4S": ["Couldn't restart the server. Try `", ["cliCommand"], " start` in this folder."],"cEoyWz": ["Add item to ", ["keyName"]],"cF9DyA": ["Reconnecting after server restart"],"cFCKYZ": ["Deny"],@@ -3788,6 +3786,7 @@"dprWmL": ["Anchor in this page"],"dr1vFs": ["Replace all matches"],"drzzZw": ["Preview tabs"],+ "ds0rjh": ["Add the <0>", ["cliCommand"], "</0> command to your terminal"],"dw_3cv": ["Rename skill"],"dw_dUJ": ["Failed to duplicate path"],"dx-TwN": ["Running project audit"],@@ -4173,6 +4172,11 @@"h69WC6": ["Sent"],"h7FzJC": ["Link-graph response did not match expected shape."],"h9QFb9": ["Skill \"", ["0"], "\" deleted"],+ "hARd2R": [+ "Couldn't restart the server automatically. Try running `",+ ["cliCommand"],+ " stop all` in a terminal, then reopen this project — or restart your computer if it persists."+ ],"hAbGf0": ["Opened existing OpenKnowledge project at ", ["ancestorPath"]],"hBMK4W": ["Project templates"],"hCOLSd": [@@ -4655,6 +4659,7 @@"loE6tM": ["Couldn't switch to ", ["language"], "."],"lond3p": ["Shows above the code body. Round-trips as `title=\"...\"` in markdown."],"lrhetp": ["+ ", ["overflow"], " more"],+ "lvHgM-": ["Already set up — ", ["cliCommand"], " is available in your terminal"],"lwCV5v": ["Couldn't open ", ["0"], " for editing: ", ["1"]],"lwvkBP": ["It also adds any display-connection errors OpenKnowledge wrote to your user journal in the past week, each message cut to 200 characters."@@ -6025,6 +6030,13 @@"zo3Dl7": ["Toggle thumbnails"],"zpfN9p": ["No comments yet. Select text in the document to add one."],"zq2eBA": ["View in source"],+ "zqJgDd": [+ "Launch OpenKnowledge from any terminal — <0>",+ ["cliCommand"],+ "</0> opens a project, <1>",+ ["cliCommand"],+ " init</1> connects your agents."+ ],"zqQlBg": ["Maximum text chunks per indexing request"],"zrP8HX": ["Frontmatter every document created from this template starts with. Values are YAML — a list is <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 820966724..19170d221 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> isn't a known component. Copy the source to use it elsmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> can't be merged here. Pick the version to keep."@@ -1323,16 +1333,6 @@ msgstr "<0>Mirror anchor not found.</0> No <1>{mirrorSourceTag}</1> exists in <2msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Space</0> to jump · <1>↓</1> to duck"@@ -1829,8 +1829,8 @@ msgstr "Add tag"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Add the <0>ok</0> command to your terminal"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Add the <0>{cliCommand}</0> command to your terminal"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "Already sending this report"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Already set up — ok is available in your terminal"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Already set up — {cliCommand} is available in your terminal"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "Couldn't restart the server — it's running under a different account. Restart your computer to clear it, then reopen this project."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "Couldn't restart the server. Run ok start in this folder to retry."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "Couldn't restart the server. Try `ok start` in this folder."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "Couldn't restart the server. Try `{cliCommand} start` in this folder."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "Latest edit"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Sent privately to the OpenKnowledge team, along with your note and app version. Never posted publicly."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 0fa9d0663..9baee1057 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -872,9 +872,6 @@"7Ongq0": ["Reduce mi archivo AGENTS.md a menos de 40k caracteres"],"7OwvEL": ["Mostrar la vista previa del HTML"],"7PNNNs": ["Esto envía contenido fuera de tu equipo"],- "7PXYaF": [- "<0>ok</0> no funcionará en terminales externas hasta que lo añadas más adelante desde el menú Archivo. La terminal integrada y las herramientas de IA de OpenKnowledge siguen funcionando."- ],"7PzzBU": ["Usuario"],"7S7FNA": ["OpenKnowledge revisó el proyecto"],"7Voget": ["Seleccionar ", ["name"]],@@ -962,6 +959,11 @@"8OxKZy": ["Se movió correctamente, pero puede que la barra lateral esté desactualizada; actualízala para resincronizar"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> no funcionará en terminales externas hasta que lo añadas más adelante desde el menú Archivo. La terminal integrada y las herramientas de IA de OpenKnowledge siguen funcionando."+ ],"8PifYj": ["Diagrama de Mermaid"],"8PmoQF": ["Abre el menú de inserción en una posición de texto vacía o activa."],"8QLpZe": ["El servidor se detuvo. Reinícialo para volver a conectarte."],@@ -1290,15 +1292,11 @@"BMoSQy": ["Este agente no ofrece a OpenKnowledge ninguna forma de configurarlo por ti. Su guía de configuración incluye los pasos manuales."],- "BOsvJ8": [- "<0>ok</0> no funcionará en terminales externas hasta que lo añadas más tarde desde el menú Archivo. Tus herramientas de IA seguirán funcionando."- ],"BQKHuL": ["Reiniciar la terminal"],"BQu9Pg": ["Enlace simbólico"],"BRtKwG": ["Para conectar herramientas de IA sin un proyecto, usa Archivo > Configurar las integraciones de OpenKnowledge…"],- "BUyQnq": ["No se pudo reiniciar el servidor. Prueba `ok start` en esta carpeta."],"BVkqD9": ["El mantenimiento del índice está en pausa porque otro atributo de Git controla index.md. Actualiza .gitattributes para que las rutas index.md de ese ámbito usen merge=union y vuelve a intentarlo."],@@ -1755,7 +1753,6 @@"Fqx38P": ["¿Qué te lo impidió?"],"Fr8JGg": ["Archivo zip"],"FsEXax": ["Eso no se completó. Revisa los registros del servidor e inténtalo de nuevo."],- "Fsx78O": ["Añade el comando <0>ok</0> a tu terminal"],"FumRbV": ["Las comprobaciones se están ejecutando"],"FvMSms": ["Renombrarlo cambia el archivo en el disco y el id con el que los agentes eligen esta plantilla."@@ -2282,9 +2279,6 @@"LHH461": ["Finalizar configuración"],"LJHTS5": ["Elegir a dónde enviar este mensaje"],"LJXDjm": ["No se pudo guardar tu preferencia de tema."],- "LJeFU6": [- "Inicia OpenKnowledge desde cualquier terminal: <0>ok</0> abre un proyecto y <1>ok init</1> conecta tus agentes."- ],"LK83k1": ["Escribe '@' para mencionar una página"],"LKIPzv": [[@@ -2765,9 +2759,6 @@"Pkw7J9": ["Esta carpeta está vacía."],"Pp0Vgd": ["Haz clic para instalarlo en ", ["label"]],"PpJy-V": ["El endpoint no respondió a tiempo."],- "PqYWiC": [- "No se pudo reiniciar el servidor automáticamente. Prueba a ejecutar `ok stop all` en una terminal y vuelve a abrir este proyecto; si sigue igual, reinicia el equipo."- ],"PrJYSN": ["Esta carpeta todavía no está en GitHub. El enlace no funcionará hasta que se suba."],@@ -2992,16 +2983,17 @@"RfaEio": ["Comentar o descomentar en el código"],"RfilGt": ["Ninguna regla coincide con tus filtros."],"RgbKEe": ["No tienes acceso a este repositorio."],- "RhX_1U": [+ "Rh_duv": ["Se envía a <0>",["endpointHost"],- "</0> para generar los embeddings de tu contenido. Se guarda solo en este equipo (en <1>~/.ok/secrets.yml</1>), nunca en el proyecto."+ "</0> para generar los embeddings de tu contenido. Se guarda solo en este equipo (en <1>",+ ["secretsPath"],+ "</1>), nunca en el proyecto."],"Rj01Fz": ["Enlaces"],"RkXlPZ": ["GitHub"],"RlCInP": ["Comandos de barra"],"RmBY0A": ["No hay remoto de git"],- "RnrnTe": ["Ya está configurado: ok está disponible en tu terminal"],"RoafuO": ["Enviar comentarios"],"RobAKV": ["Actualiza el destino y el ancla de sección opcional."],"RojU4W": ["Habilidades de OpenKnowledge"],@@ -3284,6 +3276,11 @@}]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> no funcionará en terminales externas hasta que lo añadas más tarde desde el menú Archivo. Tus herramientas de IA seguirán funcionando."+ ],"V0Jk_K": ["No detectado en este equipo · Archivos de OpenKnowledge presentes"],"V0mbgd": ["Cierra la pestaña de este chat para eliminarlo"],"V2Gmie": [@@ -4131,6 +4128,11 @@"cD3aew": ["Los embeddings se recalculan a medida que se hacen búsquedas, así que la cobertura empieza de cero y se vuelve a llenar."],+ "cD5D4S": [+ "No se pudo reiniciar el servidor. Prueba `",+ ["cliCommand"],+ " start` en esta carpeta."+ ],"cEoyWz": ["Añadir elemento a ", ["keyName"]],"cF9DyA": ["Reconectando tras el reinicio del servidor"],"cFCKYZ": ["Denegar"],@@ -4375,6 +4377,7 @@"dprWmL": ["Ancla en esta página"],"dr1vFs": ["Reemplazar todas las coincidencias"],"drzzZw": ["Pestañas de vista previa"],+ "ds0rjh": ["Añade el comando <0>", ["cliCommand"], "</0> a tu terminal"],"dw_3cv": ["Renombrar la habilidad"],"dw_dUJ": ["No se pudo duplicar la ruta"],"dx-TwN": ["Ejecutando la auditoría del proyecto"],@@ -4841,6 +4844,11 @@"h69WC6": ["Enviado"],"h7FzJC": ["La respuesta del grafo de enlaces no tenía la forma esperada."],"h9QFb9": ["Se eliminó la habilidad \"", ["0"], "\""],+ "hARd2R": [+ "No se pudo reiniciar el servidor automáticamente. Prueba a ejecutar `",+ ["cliCommand"],+ " stop all` en una terminal y vuelve a abrir este proyecto; si sigue igual, reinicia el equipo."+ ],"hAbGf0": ["Se abrió el proyecto de OpenKnowledge existente en ", ["ancestorPath"]],"hBMK4W": ["Plantillas del proyecto"],"hCOLSd": [@@ -5368,6 +5376,7 @@"Se muestra encima del cuerpo del código. En markdown va y viene como `title=\"...\"`."],"lrhetp": ["+ ", ["overflow"], " más"],+ "lvHgM-": ["Ya está configurado: ", ["cliCommand"], " está disponible en tu terminal"],"lwCV5v": ["No se pudo abrir ", ["0"], " para editarlo: ", ["1"]],"lwvkBP": ["También añade los errores de conexión con la pantalla que OpenKnowledge escribió en tu registro de usuario durante la última semana, con cada mensaje recortado a 200 caracteres."@@ -6936,6 +6945,13 @@"zo3Dl7": ["Mostrar u ocultar las miniaturas"],"zpfN9p": ["Todavía no hay comentarios. Selecciona texto en el documento para añadir uno."],"zq2eBA": ["Ver en el código"],+ "zqJgDd": [+ "Inicia OpenKnowledge desde cualquier terminal: <0>",+ ["cliCommand"],+ "</0> abre un proyecto y <1>",+ ["cliCommand"],+ " init</1> conecta tus agentes."+ ],"zqQlBg": ["Máximo de fragmentos de texto por solicitud de indexación"],"zrP8HX": ["El frontmatter con el que empieza cada documento creado a partir de esta plantilla. Los valores son YAML: una lista es <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 9a74903f6..fc9aa69ee 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> no es un componente conocido. Copia el código para usmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "No se pudo renderizar <{descriptorLabel}> (probablemente por una propiedad incorrecta). Copia el código para ver qué falló o elimina el bloque."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> no funcionará en terminales externas hasta que lo añadas más adelante desde el menú Archivo. La terminal integrada y las herramientas de IA de OpenKnowledge siguen funcionando."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> no funcionará en terminales externas hasta que lo añadas más tarde desde el menú Archivo. Tus herramientas de IA seguirán funcionando."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> no se puede combinar aquí. Elige la versión que quieres conservar."@@ -1323,16 +1333,6 @@ msgstr "<0>No se encontró el ancla del espejo.</0> No existe ningún <1>{mirrormsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Se eliminó la fuente del espejo.</0> El documento <1>{src}</1> ya no está disponible."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> no funcionará en terminales externas hasta que lo añadas más adelante desde el menú Archivo. La terminal integrada y las herramientas de IA de OpenKnowledge siguen funcionando."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> no funcionará en terminales externas hasta que lo añadas más tarde desde el menú Archivo. Tus herramientas de IA seguirán funcionando."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Espacio</0> para saltar · <1>↓</1> para agacharse"@@ -1829,8 +1829,8 @@ msgstr "Añadir etiqueta"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Añade el comando <0>ok</0> a tu terminal"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Añade el comando <0>{cliCommand}</0> a tu terminal"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "Este informe ya se está enviando"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Ya está configurado: ok está disponible en tu terminal"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Ya está configurado: {cliCommand} está disponible en tu terminal"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "No se pudo reiniciar el servidor: se está ejecutando con otra cuenta. Reinicia el equipo para liberarlo y vuelve a abrir este proyecto."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "No se pudo reiniciar el servidor automáticamente. Prueba a ejecutar `ok stop all` en una terminal y vuelve a abrir este proyecto; si sigue igual, reinicia el equipo."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "No se pudo reiniciar el servidor automáticamente. Prueba a ejecutar `{cliCommand} stop all` en una terminal y vuelve a abrir este proyecto; si sigue igual, reinicia el equipo."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "No se pudo reiniciar el servidor. Ejecuta ok start en esta carpeta para reintentar."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "No se pudo reiniciar el servidor. Prueba `ok start` en esta carpeta."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "No se pudo reiniciar el servidor. Prueba `{cliCommand} start` en esta carpeta."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "Última edición"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Inicia OpenKnowledge desde cualquier terminal: <0>ok</0> abre un proyecto y <1>ok init</1> conecta tus agentes."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Inicia OpenKnowledge desde cualquier terminal: <0>{cliCommand}</0> abre un proyecto y <1>{cliCommand} init</1> conecta tus agentes."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Se envía en privado al equipo de OpenKnowledge, junto con tu nota y la versión de la aplicación. Nunca se publica."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Se envía a <0>{endpointHost}</0> para generar los embeddings de tu contenido. Se guarda solo en este equipo (en <1>~/.ok/secrets.yml</1>), nunca en el proyecto."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Se envía a <0>{endpointHost}</0> para generar los embeddings de tu contenido. Se guarda solo en este equipo (en <1>{secretsPath}</1>), nunca en el proyecto."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex bcdb2a364..d9946bcee 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -905,9 +905,6 @@"7Ongq0": ["Condense mon fichier AGENTS.md à moins de 40 000 caractères"],"7OwvEL": ["Afficher l'aperçu HTML"],"7PNNNs": ["Ceci envoie du contenu hors de votre machine"],- "7PXYaF": [- "<0>ok</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l'aurez pas ajouté depuis le menu Fichier. Le terminal intégré et les outils IA d'OpenKnowledge continuent de fonctionner."- ],"7PzzBU": ["Utilisateur"],"7S7FNA": ["OpenKnowledge a vérifié le projet"],"7Voget": ["Sélectionner ", ["name"]],@@ -995,6 +992,11 @@"8OxKZy": ["Déplacement réussi, mais la barre latérale n'est peut-être pas à jour — actualisez pour resynchroniser"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l'aurez pas ajouté depuis le menu Fichier. Le terminal intégré et les outils IA d'OpenKnowledge continuent de fonctionner."+ ],"8PifYj": ["Diagramme Mermaid"],"8PmoQF": ["Ouvre le menu d'insertion à une position de texte vide ou active."],"8QLpZe": ["Le serveur s'est arrêté. Redémarrez-le pour vous reconnecter."],@@ -1323,15 +1325,11 @@"BMoSQy": ["Cet agent ne permet pas à OpenKnowledge de le configurer à votre place. Son guide de configuration indique les étapes manuelles."],- "BOsvJ8": [- "<0>ok</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l’aurez pas ajouté depuis le menu Fichier. Vos outils d’IA continueront de fonctionner."- ],"BQKHuL": ["Redémarrer le terminal"],"BQu9Pg": ["Lien symbolique"],"BRtKwG": ["Pour connecter des outils IA sans projet, utilisez Fichier > Configurer les intégrations OpenKnowledge…"],- "BUyQnq": ["Impossible de redémarrer le serveur. Essayez `ok start` dans ce dossier."],"BVkqD9": ["La maintenance de l'index est suspendue car un autre attribut Git contrôle index.md. Mettez à jour .gitattributes pour que les chemins index.md définis utilisent merge=union, puis réessayez."],@@ -1797,7 +1795,6 @@"Fqx38P": ["Qu'est-ce qui vous a gêné ?"],"Fr8JGg": ["Fichier zip"],"FsEXax": ["Cela n'a pas abouti. Consultez les journaux du serveur et réessayez."],- "Fsx78O": ["Ajoutez la commande <0>ok</0> à votre terminal"],"FumRbV": ["Vérifications en cours"],"FvMSms": ["Renommer modifie le fichier sur le disque ainsi que l'id que les agents utilisent pour choisir ce modèle."@@ -2332,9 +2329,6 @@"LHH461": ["Terminer la configuration"],"LJHTS5": ["Choisir où envoyer ce message"],"LJXDjm": ["Impossible d'enregistrer votre préférence de thème."],- "LJeFU6": [- "Lancez OpenKnowledge depuis n'importe quel terminal : <0>ok</0> ouvre un projet, <1>ok init</1> connecte vos agents."- ],"LK83k1": ["Tapez '@' pour mentionner une page"],"LKIPzv": [[@@ -2813,9 +2807,6 @@"Pkw7J9": ["Ce dossier est vide."],"Pp0Vgd": ["Cliquez pour installer dans ", ["label"]],"PpJy-V": ["Le point de terminaison n'a pas répondu à temps."],- "PqYWiC": [- "Impossible de redémarrer automatiquement le serveur. Essayez d'exécuter `ok stop all` dans un terminal, puis rouvrez ce projet — ou redémarrez votre ordinateur si le problème persiste."- ],"PrJYSN": ["Ce dossier n'est pas encore sur GitHub. Le lien ne fonctionnera pas tant qu'il n'aura pas été poussé."],@@ -3042,16 +3033,17 @@"RfaEio": ["Basculer le commentaire de source"],"RfilGt": ["Aucune règle ne correspond à vos filtres."],"RgbKEe": ["Vous n'avez pas accès à ce dépôt."],- "RhX_1U": [+ "Rh_duv": ["Envoyée à <0>",["endpointHost"],- "</0> pour calculer les embeddings de votre contenu. Stockée uniquement sur cette machine (dans <1>~/.ok/secrets.yml</1>), jamais dans le projet."+ "</0> pour calculer les embeddings de votre contenu. Stockée uniquement sur cette machine (dans <1>",+ ["secretsPath"],+ "</1>), jamais dans le projet."],"Rj01Fz": ["Liens"],"RkXlPZ": ["GitHub"],"RlCInP": ["Commandes slash"],"RmBY0A": ["Aucun dépôt distant git"],- "RnrnTe": ["Déjà configuré — ok est disponible dans votre terminal"],"RoafuO": ["Envoyer un retour"],"RobAKV": ["Mettez à jour la destination et l'ancre de section facultative."],"RojU4W": ["Compétences d'OpenKnowledge"],@@ -3334,6 +3326,11 @@}]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l’aurez pas ajouté depuis le menu Fichier. Vos outils d’IA continueront de fonctionner."+ ],"V0Jk_K": ["Non détecté sur cette machine · Fichiers OpenKnowledge présents"],"V0mbgd": ["Fermez l'onglet de ce chat pour le supprimer"],"V2Gmie": [@@ -4192,6 +4189,11 @@"cD3aew": ["Le recalcul des embeddings se fait au fil des recherches, donc la couverture repart de zéro et se remplit peu à peu."],+ "cD5D4S": [+ "Impossible de redémarrer le serveur. Essayez `",+ ["cliCommand"],+ " start` dans ce dossier."+ ],"cEoyWz": ["Ajouter un élément à ", ["keyName"]],"cF9DyA": ["Reconnexion après le redémarrage du serveur"],"cFCKYZ": ["Refuser"],@@ -4432,6 +4434,7 @@"dprWmL": ["Ancre dans cette page"],"dr1vFs": ["Remplacer toutes les occurrences"],"drzzZw": ["Onglets d'aperçu"],+ "ds0rjh": ["Ajoutez la commande <0>", ["cliCommand"], "</0> à votre terminal"],"dw_3cv": ["Renommer la compétence"],"dw_dUJ": ["Échec de la duplication du chemin"],"dx-TwN": ["Audit du projet en cours"],@@ -4884,6 +4887,11 @@"h69WC6": ["Envoyé"],"h7FzJC": ["La réponse du graphe de liens ne correspond pas à la forme attendue."],"h9QFb9": ["Compétence « ", ["0"], " » supprimée"],+ "hARd2R": [+ "Impossible de redémarrer automatiquement le serveur. Essayez d'exécuter `",+ ["cliCommand"],+ " stop all` dans un terminal, puis rouvrez ce projet — ou redémarrez votre ordinateur si le problème persiste."+ ],"hAbGf0": ["Projet OpenKnowledge existant ouvert dans ", ["ancestorPath"]],"hBMK4W": ["Modèles du projet"],"hCOLSd": [@@ -5419,6 +5427,7 @@"S'affiche au-dessus du corps du code. Conservé sous la forme `title=\"...\"` en markdown."],"lrhetp": ["+ ", ["overflow"], " de plus"],+ "lvHgM-": ["Déjà configuré — ", ["cliCommand"], " est disponible dans votre terminal"],"lwCV5v": ["Impossible d'ouvrir ", ["0"], " pour modification : ", ["1"]],"lwvkBP": ["Il ajoute aussi les erreurs de connexion à l'affichage qu'OpenKnowledge a écrites dans votre journal utilisateur la semaine dernière, chaque message étant tronqué à 200 caractères."@@ -7028,6 +7037,13 @@"Pas encore de commentaires. Sélectionnez du texte dans le document pour en ajouter un."],"zq2eBA": ["Voir dans la source"],+ "zqJgDd": [+ "Lancez OpenKnowledge depuis n'importe quel terminal : <0>",+ ["cliCommand"],+ "</0> ouvre un projet, <1>",+ ["cliCommand"],+ " init</1> connecte vos agents."+ ],"zqQlBg": ["Nombre maximal de fragments de texte par requête d'indexation"],"zrP8HX": ["Le frontmatter par lequel commence chaque document créé à partir de ce modèle. Les valeurs sont en YAML — une liste s'écrit <0>[a, b]</0> ; <1>{",diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex b8dc31497..cd63c87e9 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> n'est pas un composant connu. Copiez la source pour l'msgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "Le rendu de <{descriptorLabel}> a échoué (probablement une propriété incorrecte). Copiez la source pour voir ce qui ne va pas, ou supprimez le bloc."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l'aurez pas ajouté depuis le menu Fichier. Le terminal intégré et les outils IA d'OpenKnowledge continuent de fonctionner."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l’aurez pas ajouté depuis le menu Fichier. Vos outils d’IA continueront de fonctionner."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> ne peut pas être fusionné ici. Choisissez la version à garder."@@ -1323,16 +1333,6 @@ msgstr "<0>Ancre de miroir introuvable.</0> Aucun <1>{mirrorSourceTag}</1> n'eximsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Source du miroir supprimée.</0> Le document <1>{src}</1> n'est plus disponible."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l'aurez pas ajouté depuis le menu Fichier. Le terminal intégré et les outils IA d'OpenKnowledge continuent de fonctionner."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> ne fonctionnera pas dans les terminaux externes tant que vous ne l’aurez pas ajouté depuis le menu Fichier. Vos outils d’IA continueront de fonctionner."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Espace</0> pour sauter · <1>↓</1> pour s’accroupir"@@ -1829,8 +1829,8 @@ msgstr "Ajouter une étiquette"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Ajoutez la commande <0>ok</0> à votre terminal"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Ajoutez la commande <0>{cliCommand}</0> à votre terminal"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "Ce rapport est déjà en cours d'envoi"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Déjà configuré — ok est disponible dans votre terminal"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Déjà configuré — {cliCommand} est disponible dans votre terminal"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "Impossible de redémarrer le serveur — il s'exécute sous un autre compte. Redémarrez votre ordinateur pour le libérer, puis rouvrez ce projet."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "Impossible de redémarrer automatiquement le serveur. Essayez d'exécuter `ok stop all` dans un terminal, puis rouvrez ce projet — ou redémarrez votre ordinateur si le problème persiste."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "Impossible de redémarrer automatiquement le serveur. Essayez d'exécuter `{cliCommand} stop all` dans un terminal, puis rouvrez ce projet — ou redémarrez votre ordinateur si le problème persiste."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "Impossible de redémarrer le serveur. Exécutez ok start dans ce dossier pour réessayer."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "Impossible de redémarrer le serveur. Essayez `ok start` dans ce dossier."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "Impossible de redémarrer le serveur. Essayez `{cliCommand} start` dans ce dossier."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "Dernière modification"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Lancez OpenKnowledge depuis n'importe quel terminal : <0>ok</0> ouvre un projet, <1>ok init</1> connecte vos agents."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Lancez OpenKnowledge depuis n'importe quel terminal : <0>{cliCommand}</0> ouvre un projet, <1>{cliCommand} init</1> connecte vos agents."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Envoyé en privé à l'équipe OpenKnowledge, avec votre note et la version de l'application. Jamais publié publiquement."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Envoyée à <0>{endpointHost}</0> pour calculer les embeddings de votre contenu. Stockée uniquement sur cette machine (dans <1>~/.ok/secrets.yml</1>), jamais dans le projet."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Envoyée à <0>{endpointHost}</0> pour calculer les embeddings de votre contenu. Stockée uniquement sur cette machine (dans <1>{secretsPath}</1>), jamais dans le projet."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex ceb38f00a..01d6c9ebd 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -728,9 +728,6 @@"7Ongq0": ["मेरी AGENTS.md फ़ाइल को 40k अक्षरों से कम में समेटें"],"7OwvEL": ["HTML पूर्वावलोकन दिखाएँ"],"7PNNNs": ["यह सामग्री आपकी मशीन से बाहर भेजता है"],- "7PXYaF": [- "<0>ok</0> बाहरी टर्मिनलों में तब तक नहीं चलेगा जब तक आप इसे बाद में File मेन्यू से न जोड़ें। OpenKnowledge का अंतर्निहित टर्मिनल और AI टूल काम करते रहेंगे।"- ],"7PzzBU": ["उपयोगकर्ता"],"7S7FNA": ["OpenKnowledge ने प्रोजेक्ट की जाँच की"],"7Voget": [["name"], " चुनें"],@@ -798,6 +795,11 @@"8L0EPw": ["या कोई टोकन चिपकाएँ"],"8OGgNM": ["दृश्य-संपादक की खोज खोलें या बंद करें।"],"8OxKZy": ["हिलाना सफल रहा पर साइडबार पुराना हो सकता है — फिर से सिंक करने के लिए ताज़ा करें"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> बाहरी टर्मिनलों में तब तक नहीं चलेगा जब तक आप इसे बाद में File मेन्यू से न जोड़ें। OpenKnowledge का अंतर्निहित टर्मिनल और AI टूल काम करते रहेंगे।"+ ],"8PifYj": ["Mermaid आरेख"],"8PmoQF": ["किसी खाली या सक्रिय पाठ स्थिति में इन्सर्ट मेन्यू खोलें।"],"8QLpZe": ["सर्वर बंद हो गया। फिर से कनेक्ट करने के लिए इसे पुनः आरंभ करें।"],@@ -1075,15 +1077,11 @@"BMoSQy": ["यह एजेंट OpenKnowledge को आपके लिए इसे सेट अप करने का कोई तरीका नहीं देता। इसकी सेटअप गाइड में मैन्युअल चरण दिए गए हैं।"],- "BOsvJ8": [- "<0>ok</0> तब तक बाहरी टर्मिनल में नहीं चलेगा, जब तक आप इसे बाद में फ़ाइल मेनू से नहीं जोड़ते। आपके AI टूल काम करते रहेंगे।"- ],"BQKHuL": ["टर्मिनल पुनः आरंभ करें"],"BQu9Pg": ["सिमलिंक"],"BRtKwG": ["किसी प्रोजेक्ट के बिना AI टूल कनेक्ट करने के लिए, फ़ाइल > OpenKnowledge एकीकरण सेट अप करें… का उपयोग करें।"],- "BUyQnq": ["सर्वर पुनः आरंभ नहीं किया जा सका। इस फ़ोल्डर में `ok start` आज़माएँ।"],"BVkqD9": ["सूचकांक रखरखाव रोक दिया गया है क्योंकि एक अन्य Git विशेषता index.md को नियंत्रित करती है। .gitattributes को अपडेट करें ताकि दायरे वाले index.md पथ merge=union का उपयोग करें, फिर पुनः प्रयास करें।"],@@ -1485,7 +1483,6 @@"Fqx38P": ["क्या रुकावट बनी?"],"Fr8JGg": ["Zip फ़ाइल"],"FsEXax": ["यह पूरा नहीं हुआ। सर्वर लॉग देखें और फिर से कोशिश करें।"],- "Fsx78O": ["अपने टर्मिनल में <0>ok</0> कमांड जोड़ें"],"FumRbV": ["जाँचें चल रही हैं"],"FvMSms": ["नाम बदलने पर डिस्क की फ़ाइल और वह id दोनों बदल जाते हैं जिससे एजेंट यह टेम्पलेट चुनते हैं।"],"Fx9aOF": ["OpenKnowledge ने एक दस्तावेज़ संपादित किया"],@@ -1908,9 +1905,6 @@"LHH461": ["सेटअप पूरा करें"],"LJHTS5": ["चुनें कि यह संदेश कहाँ भेजना है"],"LJXDjm": ["आपकी थीम प्राथमिकता सहेजी नहीं जा सकी।"],- "LJeFU6": [- "OpenKnowledge को किसी भी टर्मिनल से चलाएँ — <0>ok</0> प्रोजेक्ट खोलता है, <1>ok init</1> आपके एजेंट जोड़ता है।"- ],"LK83k1": ["किसी पेज का उल्लेख करने के लिए '@' लिखें"],"LKIPzv": [[@@ -2340,9 +2334,6 @@"Pkw7J9": ["यह फ़ोल्डर खाली है।"],"Pp0Vgd": [["label"], " में इंस्टॉल करने के लिए क्लिक करें"],"PpJy-V": ["एंडपॉइंट ने समय पर उत्तर नहीं दिया।"],- "PqYWiC": [- "सर्वर अपने आप पुनः आरंभ नहीं किया जा सका। टर्मिनल में `ok stop all` चलाकर देखें, फिर यह प्रोजेक्ट दोबारा खोलें — या समस्या बनी रहे तो अपना कंप्यूटर पुनः आरंभ करें।"- ],"PrJYSN": ["यह फ़ोल्डर अभी GitHub पर नहीं है। जब तक इसे भेजा नहीं जाता तब तक लिंक काम नहीं करेगा।"],"PrVaZo": ["OpenKnowledge हटाएँ?"],"PrWQiT": ["Terminal को दाईं ओर ले जाएँ"],@@ -2528,16 +2519,17 @@"RfaEio": ["स्रोत टिप्पणी चालू या बंद करें"],"RfilGt": ["आपके फ़िल्टर से कोई नियम मेल नहीं खाता।"],"RgbKEe": ["इस रिपॉज़िटरी तक आपकी पहुँच नहीं है।"],- "RhX_1U": [+ "Rh_duv": ["आपकी सामग्री एम्बेड करने के लिए <0>",["endpointHost"],- "</0> को भेजा गया। केवल इसी मशीन पर सहेजा गया (<1>~/.ok/secrets.yml</1> में), प्रोजेक्ट में कभी नहीं।"+ "</0> को भेजा गया। केवल इसी मशीन पर सहेजा गया (<1>",+ ["secretsPath"],+ "</1> में), प्रोजेक्ट में कभी नहीं।"],"Rj01Fz": ["लिंक"],"RkXlPZ": ["GitHub"],"RlCInP": ["स्लैश कमांड"],"RmBY0A": ["कोई git रिमोट नहीं"],- "RnrnTe": ["पहले से सेट अप है — ok आपके टर्मिनल में उपलब्ध है"],"RoafuO": ["प्रतिक्रिया भेजें"],"RobAKV": ["गंतव्य और वैकल्पिक अनुभाग एंकर बदलें।"],"RojU4W": ["OpenKnowledge की स्किल"],@@ -2765,6 +2757,11 @@"Uuj_R4": ["टेम्पलेट से नया"],"Uw6ERJ": ["कॉपी नहीं किया जा सका: ", ["detail"]],"UyROxs": [["mins", "plural", { "one": ["#", " मिनट पहले"], "other": ["#", " मिनट पहले"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> तब तक बाहरी टर्मिनल में नहीं चलेगा, जब तक आप इसे बाद में फ़ाइल मेनू से नहीं जोड़ते। आपके AI टूल काम करते रहेंगे।"+ ],"V0Jk_K": ["इस मशीन पर नहीं मिला · OpenKnowledge फ़ाइलें मौजूद हैं"],"V0mbgd": ["इसे हटाने के लिए इस चैट का टैब बंद करें"],"V2Gmie": [@@ -3482,6 +3479,7 @@"c9C7DQ": ["यह सेटिंग सहेजी नहीं जा सकी। फिर से कोशिश करें।"],"cCd8Bs": ["काटें"],"cD3aew": ["फिर से एम्बेड करना खोज चलने के साथ होता है, इसलिए कवरेज शून्य से फिर शुरू होकर भरता है।"],+ "cD5D4S": ["सर्वर पुनः आरंभ नहीं किया जा सका। इस फ़ोल्डर में `", ["cliCommand"], " start` आज़माएँ।"],"cEoyWz": [["keyName"], " में आइटम जोड़ें"],"cF9DyA": ["सर्वर पुनः आरंभ होने के बाद फिर से जोड़ा जा रहा है"],"cFCKYZ": ["अस्वीकारें"],@@ -3665,6 +3663,7 @@"dprWmL": ["इस पेज में एंकर"],"dr1vFs": ["सभी मेल बदलें"],"drzzZw": ["पूर्वावलोकन टैब"],+ "ds0rjh": ["अपने टर्मिनल में <0>", ["cliCommand"], "</0> कमांड जोड़ें"],"dw_3cv": ["स्किल का नाम बदलें"],"dw_dUJ": ["पथ की नकल बनाने में विफल"],"dx-TwN": ["प्रोजेक्ट ऑडिट चलाया जा रहा है"],@@ -4022,6 +4021,11 @@"h69WC6": ["भेजा गया"],"h7FzJC": ["लिंक-ग्राफ़ की प्रतिक्रिया अपेक्षित आकार से मेल नहीं खाई।"],"h9QFb9": ["स्किल \"", ["0"], "\" हटा दी गई"],+ "hARd2R": [+ "सर्वर अपने आप पुनः आरंभ नहीं किया जा सका। टर्मिनल में `",+ ["cliCommand"],+ " stop all` चलाकर देखें, फिर यह प्रोजेक्ट दोबारा खोलें — या समस्या बनी रहे तो अपना कंप्यूटर पुनः आरंभ करें।"+ ],"hAbGf0": [["ancestorPath"], " पर मौजूदा OpenKnowledge प्रोजेक्ट खोला गया"],"hBMK4W": ["प्रोजेक्ट टेम्पलेट"],"hCOLSd": [@@ -4497,6 +4501,7 @@"loE6tM": [["language"], " पर स्विच नहीं किया जा सका।"],"lond3p": ["कोड के मुख्य भाग के ऊपर दिखता है। markdown में `title=\"...\"` के रूप में वापस आता है।"],"lrhetp": ["+ ", ["overflow"], " और"],+ "lvHgM-": ["पहले से सेट अप है — ", ["cliCommand"], " आपके टर्मिनल में उपलब्ध है"],"lwCV5v": [["0"], " संपादन के लिए नहीं खोली जा सकी: ", ["1"]],"lwvkBP": ["यह पिछले सप्ताह OpenKnowledge द्वारा आपके उपयोगकर्ता जर्नल में लिखी गई डिस्प्ले कनेक्शन की त्रुटियाँ भी जोड़ता है, हर संदेश को 200 वर्णों तक छोटा करके।"@@ -5798,6 +5803,13 @@"zo3Dl7": ["थंबनेल चालू या बंद करें"],"zpfN9p": ["अभी कोई टिप्पणी नहीं। कोई जोड़ने के लिए दस्तावेज़ में पाठ चुनें।"],"zq2eBA": ["स्रोत में देखें"],+ "zqJgDd": [+ "OpenKnowledge को किसी भी टर्मिनल से चलाएँ — <0>",+ ["cliCommand"],+ "</0> प्रोजेक्ट खोलता है, <1>",+ ["cliCommand"],+ " init</1> आपके एजेंट जोड़ता है।"+ ],"zqQlBg": ["प्रति इंडेक्सिंग अनुरोध अधिकतम टेक्स्ट खंड"],"zrP8HX": ["वह frontmatter जिससे इस टेम्पलेट से बना हर दस्तावेज़ शुरू होता है। मान YAML होते हैं — सूची <0>[a, b]</0> होती है; <1>{",diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 621544511..fbaa0c890 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -1303,6 +1303,16 @@ msgstr "<{componentName}> एक ज्ञात कंपोनेंट नहmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> रेंडर नहीं हो सका (शायद कोई ग़लत प्रॉप)। क्या ग़लत हुआ यह देखने के लिए स्रोत कॉपी करें, या ब्लॉक हटा दें।"+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> बाहरी टर्मिनलों में तब तक नहीं चलेगा जब तक आप इसे बाद में File मेन्यू से न जोड़ें। OpenKnowledge का अंतर्निहित टर्मिनल और AI टूल काम करते रहेंगे।"++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> तब तक बाहरी टर्मिनल में नहीं चलेगा, जब तक आप इसे बाद में फ़ाइल मेनू से नहीं जोड़ते। आपके AI टूल काम करते रहेंगे।"+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> को यहाँ मर्ज नहीं किया जा सकता। रखने के लिए संस्करण चुनें।"@@ -1319,16 +1329,6 @@ msgstr "<0>मिरर एंकर नहीं मिला।</0> <2>{src}</msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>मिरर स्रोत हटा दिया गया।</0> दस्तावेज़ <1>{src}</1> अब उपलब्ध नहीं है।"-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> बाहरी टर्मिनलों में तब तक नहीं चलेगा जब तक आप इसे बाद में File मेन्यू से न जोड़ें। OpenKnowledge का अंतर्निहित टर्मिनल और AI टूल काम करते रहेंगे।"--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> तब तक बाहरी टर्मिनल में नहीं चलेगा, जब तक आप इसे बाद में फ़ाइल मेनू से नहीं जोड़ते। आपके AI टूल काम करते रहेंगे।"-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "कूदने के लिए <0>स्पेस</0> · झुकने के लिए <1>↓</1>"@@ -1825,8 +1825,8 @@ msgstr "टैग जोड़ें"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "अपने टर्मिनल में <0>ok</0> कमांड जोड़ें"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "अपने टर्मिनल में <0>{cliCommand}</0> कमांड जोड़ें"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2089,8 +2089,8 @@ msgid "Already sending this report"msgstr "यह रिपोर्ट पहले से भेजी जा रही है"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "पहले से सेट अप है — ok आपके टर्मिनल में उपलब्ध है"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "पहले से सेट अप है — {cliCommand} आपके टर्मिनल में उपलब्ध है"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4596,16 +4596,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "सर्वर पुनः आरंभ नहीं किया जा सका — यह किसी दूसरे खाते के अंतर्गत चल रहा है। इसे साफ़ करने के लिए अपना कंप्यूटर पुनः आरंभ करें, फिर यह प्रोजेक्ट दोबारा खोलें।"#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "सर्वर अपने आप पुनः आरंभ नहीं किया जा सका। टर्मिनल में `ok stop all` चलाकर देखें, फिर यह प्रोजेक्ट दोबारा खोलें — या समस्या बनी रहे तो अपना कंप्यूटर पुनः आरंभ करें।"+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "सर्वर अपने आप पुनः आरंभ नहीं किया जा सका। टर्मिनल में `{cliCommand} stop all` चलाकर देखें, फिर यह प्रोजेक्ट दोबारा खोलें — या समस्या बनी रहे तो अपना कंप्यूटर पुनः आरंभ करें।"#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "सर्वर पुनः आरंभ नहीं किया जा सका। पुनः प्रयास करने के लिए इस फ़ोल्डर में ok start चलाएँ।"#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "सर्वर पुनः आरंभ नहीं किया जा सका। इस फ़ोल्डर में `ok start` आज़माएँ।"+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "सर्वर पुनः आरंभ नहीं किया जा सका। इस फ़ोल्डर में `{cliCommand} start` आज़माएँ।"#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8322,8 +8322,8 @@ msgstr "नवीनतम संपादन"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "OpenKnowledge को किसी भी टर्मिनल से चलाएँ — <0>ok</0> प्रोजेक्ट खोलता है, <1>ok init</1> आपके एजेंट जोड़ता है।"+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "OpenKnowledge को किसी भी टर्मिनल से चलाएँ — <0>{cliCommand}</0> प्रोजेक्ट खोलता है, <1>{cliCommand} init</1> आपके एजेंट जोड़ता है।"#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13253,8 +13253,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "आपके नोट और ऐप संस्करण के साथ निजी तौर पर OpenKnowledge टीम को भेजा गया। कभी सार्वजनिक रूप से पोस्ट नहीं किया जाता।"#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "आपकी सामग्री एम्बेड करने के लिए <0>{endpointHost}</0> को भेजा गया। केवल इसी मशीन पर सहेजा गया (<1>~/.ok/secrets.yml</1> में), प्रोजेक्ट में कभी नहीं।"+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "आपकी सामग्री एम्बेड करने के लिए <0>{endpointHost}</0> को भेजा गया। केवल इसी मशीन पर सहेजा गया (<1>{secretsPath}</1> में), प्रोजेक्ट में कभी नहीं।"#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex cd9ea4037..2cfb336ab 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -753,9 +753,6 @@"7Ongq0": ["Ringkas berkas AGENTS.md saya menjadi kurang dari 40 ribu karakter"],"7OwvEL": ["Tampilkan pratinjau HTML"],"7PNNNs": ["Ini mengirim konten keluar dari komputer Anda"],- "7PXYaF": [- "<0>ok</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu Berkas. Terminal bawaan dan alat AI OpenKnowledge tetap berfungsi."- ],"7PzzBU": ["Pengguna"],"7S7FNA": ["OpenKnowledge memeriksa proyek"],"7Voget": ["Pilih ", ["name"]],@@ -835,6 +832,11 @@"8OxKZy": ["Pemindahan berhasil tetapi bilah sisi mungkin tidak mutakhir — segarkan untuk menyinkronkan ulang"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu Berkas. Terminal bawaan dan alat AI OpenKnowledge tetap berfungsi."+ ],"8PifYj": ["Diagram Mermaid"],"8PmoQF": ["Membuka menu sisip pada posisi teks yang kosong atau aktif."],"8QLpZe": ["Server berhenti. Mulai ulang untuk menyambung kembali."],@@ -1103,15 +1105,11 @@"BMoSQy": ["Agen ini tidak memberi OpenKnowledge cara untuk menyiapkannya untuk Anda. Panduan penyiapannya memuat langkah-langkah manual."],- "BOsvJ8": [- "<0>ok</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu File. Alat AI Anda tetap berfungsi."- ],"BQKHuL": ["Mulai ulang terminal"],"BQu9Pg": ["Symlink"],"BRtKwG": ["Untuk menghubungkan alat AI tanpa proyek, gunakan Berkas > Siapkan integrasi OpenKnowledge…"],- "BUyQnq": ["Server tidak bisa dimulai ulang. Coba `ok start` di folder ini."],"BVkqD9": ["Pemeliharaan indeks dihentikan sementara karena atribut Git lainnya mengontrol index.md. Perbarui .gitattributes sehingga jalur index.md yang dicakup menggunakan merge=union, lalu coba lagi."],@@ -1535,7 +1533,6 @@"Fqx38P": ["Apa yang menghambat?"],"Fr8JGg": ["Berkas zip"],"FsEXax": ["Itu tidak berhasil. Periksa log server lalu coba lagi."],- "Fsx78O": ["Tambahkan perintah <0>ok</0> ke terminal Anda"],"FumRbV": ["Pemeriksaan sedang berjalan"],"FvMSms": ["Mengganti nama mengubah berkas di disk dan id yang dipakai agen untuk memilih templat ini."@@ -2005,9 +2002,6 @@"LHH461": ["Selesaikan penyiapan"],"LJHTS5": ["Pilih ke mana pesan ini dikirim"],"LJXDjm": ["Tidak dapat menyimpan preferensi tema Anda."],- "LJeFU6": [- "Jalankan OpenKnowledge dari terminal mana pun — <0>ok</0> membuka proyek, <1>ok init</1> menghubungkan agen Anda."- ],"LK83k1": ["Ketik '@' untuk menyebut halaman"],"LKIPzv": [[@@ -2422,9 +2416,6 @@"Pkw7J9": ["Folder ini kosong."],"Pp0Vgd": ["Klik untuk memasang di ", ["label"]],"PpJy-V": ["Endpoint-nya tidak merespons tepat waktu."],- "PqYWiC": [- "Server tidak bisa dimulai ulang secara otomatis. Coba jalankan `ok stop all` di terminal, lalu buka lagi proyek ini — atau mulai ulang komputer Anda jika masih berlanjut."- ],"PrJYSN": ["Folder ini belum ada di GitHub. Tautannya tidak akan berfungsi sampai ia dikirim."],"PrVaZo": ["Copot OpenKnowledge?"],"PrWQiT": ["Pindahkan Terminal ke kanan"],@@ -2619,16 +2610,17 @@"RfaEio": ["Komentari atau batalkan komentar di sumber"],"RfilGt": ["Tidak ada aturan yang cocok dengan filter Anda."],"RgbKEe": ["Anda tidak punya akses ke repositori ini."],- "RhX_1U": [+ "Rh_duv": ["Dikirim ke <0>",["endpointHost"],- "</0> untuk meng-embed konten Anda. Disimpan hanya di komputer ini (di <1>~/.ok/secrets.yml</1>), tidak pernah di proyek."+ "</0> untuk meng-embed konten Anda. Disimpan hanya di komputer ini (di <1>",+ ["secretsPath"],+ "</1>), tidak pernah di proyek."],"Rj01Fz": ["Tautan"],"RkXlPZ": ["GitHub"],"RlCInP": ["Perintah garis miring"],"RmBY0A": ["Tidak ada remote git"],- "RnrnTe": ["Sudah disiapkan — ok tersedia di terminal Anda"],"RoafuO": ["Kirim masukan"],"RobAKV": ["Perbarui tujuan dan jangkar bagian opsionalnya."],"RojU4W": ["Keterampilan dari OpenKnowledge"],@@ -2859,6 +2851,11 @@"Uuj_R4": ["Baru dari templat"],"Uw6ERJ": ["Tidak bisa menyalin: ", ["detail"]],"UyROxs": [["mins", "plural", { "other": ["#", " mnt lalu"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu File. Alat AI Anda tetap berfungsi."+ ],"V0Jk_K": ["Tidak terdeteksi di mesin ini · File OpenKnowledge ada"],"V0mbgd": ["Tutup tab obrolan ini untuk menghapusnya"],"V2Gmie": [@@ -3610,6 +3607,7 @@"cD3aew": ["Embedding dihitung ulang seiring pencarian berjalan, jadi cakupannya dimulai lagi dari nol lalu terisi kembali."],+ "cD5D4S": ["Server tidak bisa dimulai ulang. Coba `", ["cliCommand"], " start` di folder ini."],"cEoyWz": ["Tambahkan item ke ", ["keyName"]],"cF9DyA": ["Menyambung ulang setelah server dimulai ulang"],"cFCKYZ": ["Tolak"],@@ -3794,6 +3792,7 @@"dprWmL": ["Jangkar di halaman ini"],"dr1vFs": ["Ganti semua kecocokan"],"drzzZw": ["Tab pratinjau"],+ "ds0rjh": ["Tambahkan perintah <0>", ["cliCommand"], "</0> ke terminal Anda"],"dw_3cv": ["Ganti nama keterampilan"],"dw_dUJ": ["Gagal menggandakan jalur"],"dx-TwN": ["Menjalankan audit proyek"],@@ -4166,6 +4165,11 @@"h69WC6": ["Terkirim"],"h7FzJC": ["Respons graf tautan tidak sesuai bentuk yang diharapkan."],"h9QFb9": ["Keterampilan \"", ["0"], "\" dihapus"],+ "hARd2R": [+ "Server tidak bisa dimulai ulang secara otomatis. Coba jalankan `",+ ["cliCommand"],+ " stop all` di terminal, lalu buka lagi proyek ini — atau mulai ulang komputer Anda jika masih berlanjut."+ ],"hAbGf0": ["Proyek OpenKnowledge yang sudah ada dibuka di ", ["ancestorPath"]],"hBMK4W": ["Templat proyek"],"hCOLSd": [@@ -4659,6 +4663,7 @@"loE6tM": ["Tidak dapat beralih ke ", ["language"], "."],"lond3p": ["Muncul di atas badan kode. Bolak-balik sebagai `title=\"...\"` di markdown."],"lrhetp": ["+ ", ["overflow"], " lagi"],+ "lvHgM-": ["Sudah disiapkan — ", ["cliCommand"], " tersedia di terminal Anda"],"lwCV5v": [["0"], " tidak bisa dibuka untuk disunting: ", ["1"]],"lwvkBP": ["Ini juga menambahkan galat koneksi layar yang ditulis OpenKnowledge ke jurnal pengguna Anda dalam seminggu terakhir, dengan setiap pesan dipotong menjadi 200 karakter."@@ -6014,6 +6019,13 @@"zo3Dl7": ["Tampilkan atau sembunyikan gambar mini"],"zpfN9p": ["Belum ada komentar. Pilih teks di dokumen untuk menambahkan satu."],"zq2eBA": ["Lihat di sumber"],+ "zqJgDd": [+ "Jalankan OpenKnowledge dari terminal mana pun — <0>",+ ["cliCommand"],+ "</0> membuka proyek, <1>",+ ["cliCommand"],+ " init</1> menghubungkan agen Anda."+ ],"zqQlBg": ["Maksimum potongan teks per permintaan pengindeksan"],"zrP8HX": ["Frontmatter yang mengawali setiap dokumen yang dibuat dari templat ini. Nilainya berupa YAML — daftar ditulis <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex fc3a2fe20..046fee67f 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -1303,6 +1303,16 @@ msgstr "<{componentName}> bukan komponen yang dikenal. Salin sumbernya untuk dipmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> gagal dirender (kemungkinan prop yang salah). Salin sumbernya untuk melihat apa yang salah, atau hapus bloknya."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu Berkas. Terminal bawaan dan alat AI OpenKnowledge tetap berfungsi."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu File. Alat AI Anda tetap berfungsi."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> tidak bisa digabungkan di sini. Pilih versi yang ingin disimpan."@@ -1319,16 +1329,6 @@ msgstr "<0>Jangkar cermin tidak ditemukan.</0> Tidak ada <1>{mirrorSourceTag}</1msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Sumber cermin dihapus.</0> Dokumen <1>{src}</1> sudah tidak tersedia."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu Berkas. Terminal bawaan dan alat AI OpenKnowledge tetap berfungsi."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> tidak akan berjalan di terminal eksternal sampai Anda menambahkannya nanti dari menu File. Alat AI Anda tetap berfungsi."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Spasi</0> untuk melompat · <1>↓</1> untuk menunduk"@@ -1825,8 +1825,8 @@ msgstr "Tambahkan tag"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Tambahkan perintah <0>ok</0> ke terminal Anda"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Tambahkan perintah <0>{cliCommand}</0> ke terminal Anda"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2089,8 +2089,8 @@ msgid "Already sending this report"msgstr "Laporan ini sudah dikirim"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Sudah disiapkan — ok tersedia di terminal Anda"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Sudah disiapkan — {cliCommand} tersedia di terminal Anda"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4596,16 +4596,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "Server tidak bisa dimulai ulang — ia berjalan di bawah akun lain. Mulai ulang komputer Anda untuk membersihkannya, lalu buka lagi proyek ini."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "Server tidak bisa dimulai ulang secara otomatis. Coba jalankan `ok stop all` di terminal, lalu buka lagi proyek ini — atau mulai ulang komputer Anda jika masih berlanjut."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "Server tidak bisa dimulai ulang secara otomatis. Coba jalankan `{cliCommand} stop all` di terminal, lalu buka lagi proyek ini — atau mulai ulang komputer Anda jika masih berlanjut."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "Tidak dapat memulai ulang server. Jalankan ok start di folder ini untuk mencoba lagi."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "Server tidak bisa dimulai ulang. Coba `ok start` di folder ini."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "Server tidak bisa dimulai ulang. Coba `{cliCommand} start` di folder ini."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8322,8 +8322,8 @@ msgstr "Suntingan terakhir"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Jalankan OpenKnowledge dari terminal mana pun — <0>ok</0> membuka proyek, <1>ok init</1> menghubungkan agen Anda."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Jalankan OpenKnowledge dari terminal mana pun — <0>{cliCommand}</0> membuka proyek, <1>{cliCommand} init</1> menghubungkan agen Anda."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13253,8 +13253,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Dikirim secara pribadi ke tim OpenKnowledge, beserta catatan Anda dan versi aplikasinya. Tidak pernah dipublikasikan."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Dikirim ke <0>{endpointHost}</0> untuk meng-embed konten Anda. Disimpan hanya di komputer ini (di <1>~/.ok/secrets.yml</1>), tidak pernah di proyek."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Dikirim ke <0>{endpointHost}</0> untuk meng-embed konten Anda. Disimpan hanya di komputer ini (di <1>{secretsPath}</1>), tidak pernah di proyek."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex 51f279bf7..dbb166288 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -724,9 +724,6 @@"7Ongq0": ["내 AGENTS.md 파일을 40k자 미만으로 압축"],"7OwvEL": ["HTML 미리보기 표시"],"7PNNNs": ["이 컴퓨터 밖으로 콘텐츠를 전송합니다"],- "7PXYaF": [- "<0>ok</0> 외부 터미널 실행 불가. File 메뉴에서 나중에 추가하면 실행할 수 있습니다. OpenKnowledge 내장 터미널과 AI 도구도 계속 작동합니다."- ],"7PzzBU": ["사용자"],"7S7FNA": ["OpenKnowledge에서 프로젝트 확인"],"7Voget": [["name"], " 선택"],@@ -806,6 +803,11 @@"8OxKZy": ["이동은 성공했지만 사이드바가 최신 상태가 아닐 수 있습니다. 다시 동기화하려면 새로 고침하세요."],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> 외부 터미널 실행 불가. File 메뉴에서 나중에 추가하면 실행할 수 있습니다. OpenKnowledge 내장 터미널과 AI 도구도 계속 작동합니다."+ ],"8PifYj": ["Mermaid 다이어그램"],"8PmoQF": ["비어 있거나 활성화된 텍스트 위치에서 삽입 메뉴를 엽니다."],"8QLpZe": ["서버가 중지되었습니다. 다시 연결하려면 재시작하세요."],@@ -1068,13 +1070,9 @@"BMoSQy": ["이 에이전트는 OpenKnowledge가 대신 설정할 수 있는 방법을 제공하지 않습니다. 설정 가이드에 수동 단계가 안내되어 있습니다."],- "BOsvJ8": [- "<0>ok</0>는 나중에 파일 메뉴에서 추가할 때까지 외부 터미널에서 실행되지 않습니다. AI 도구는 계속 작동합니다."- ],"BQKHuL": ["터미널 재시작"],"BQu9Pg": ["심볼릭 링크"],"BRtKwG": ["프로젝트 없이 AI 도구를 연결하려면 파일 > OpenKnowledge 통합 설정…을 사용하세요."],- "BUyQnq": ["서버를 다시 시작할 수 없습니다. 이 폴더에서 `ok start`를 실행해 보세요."],"BVkqD9": ["다른 Git 속성이 index.md를 제어하므로 인덱스 유지 관리가 일시 중지되었습니다. 범위가 지정된 index.md 경로가 merge=union을 사용하도록 .gitattributes를 업데이트한 후 다시 시도합니다."],@@ -1472,7 +1470,6 @@"Fqx38P": ["무엇이 방해했나요?"],"Fr8JGg": ["Zip 파일"],"FsEXax": ["처리되지 않았습니다. 서버 로그를 확인한 뒤 다시 시도하세요."],- "Fsx78O": ["터미널에 <0>ok</0> 명령 추가"],"FumRbV": ["검사 실행 중"],"FvMSms": ["이름을 바꾸면 디스크의 파일과 에이전트가 이 템플릿을 선택할 때 사용하는 ID가 변경됩니다."@@ -1918,9 +1915,6 @@"LHH461": ["설정 완료"],"LJHTS5": ["이 메시지를 보낼 곳 선택"],"LJXDjm": ["테마 설정을 저장하지 못했습니다."],- "LJeFU6": [- "어떤 터미널에서든 OpenKnowledge를 실행하세요 — <0>ok</0>는 프로젝트를 열고, <1>ok init</1>은 에이전트를 연결합니다."- ],"LK83k1": ["페이지를 언급하려면 '@' 입력"],"LKIPzv": [["laterEdits", "plural", { "other": ["이 파일의 최신 편집 ", "#", "개를 제거합니다."] }]@@ -2325,9 +2319,6 @@"Pkw7J9": ["이 폴더는 비어 있습니다."],"Pp0Vgd": [["label"], "에 설치하려면 클릭"],"PpJy-V": ["엔드포인트가 제때 응답하지 않았습니다."],- "PqYWiC": [- "서버를 자동으로 다시 시작하지 못했습니다. 터미널에서 `ok stop all`을 실행한 다음 이 프로젝트를 다시 여세요. 문제가 계속되면 컴퓨터를 다시 시작하세요."- ],"PrJYSN": ["이 폴더는 아직 GitHub에 없습니다. 푸시해야 링크가 작동합니다."],"PrVaZo": ["OpenKnowledge를 제거하시겠습니까?"],"PrWQiT": ["터미널을 오른쪽으로 이동"],@@ -2498,16 +2489,17 @@"RfaEio": ["소스 댓글 전환"],"RfilGt": ["필터와 일치하는 규칙 없음."],"RgbKEe": ["이 저장소에 접근 권한이 없습니다."],- "RhX_1U": [+ "Rh_duv": ["콘텐츠를 임베딩하기 위해 <0>",["endpointHost"],- "</0>로 전송합니다. 이 컴퓨터에만 저장하며(<1>~/.ok/secrets.yml</1>), 프로젝트에는 저장하지 않습니다."+ "</0>로 전송합니다. 이 컴퓨터에만 저장하며(<1>",+ ["secretsPath"],+ "</1>), 프로젝트에는 저장하지 않습니다."],"Rj01Fz": ["링크"],"RkXlPZ": ["GitHub"],"RlCInP": ["슬래시 명령"],"RmBY0A": ["git 원격 없음"],- "RnrnTe": ["이미 설정됨. 터미널에서 ok 사용 가능"],"RoafuO": ["피드백 보내기"],"RobAKV": ["대상과 선택적 섹션 앵커를 업데이트하세요."],"RojU4W": ["OpenKnowledge 스킬"],@@ -2741,6 +2733,11 @@"Uuj_R4": ["템플릿에서 새로 만들기"],"Uw6ERJ": ["복사 실패: ", ["detail"]],"UyROxs": [["mins", "plural", { "other": ["#", "분 전"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0>는 나중에 파일 메뉴에서 추가할 때까지 외부 터미널에서 실행되지 않습니다. AI 도구는 계속 작동합니다."+ ],"V0Jk_K": ["이 컴퓨터에서 감지되지 않음 · OpenKnowledge 파일 있음"],"V0mbgd": ["삭제할 채팅 탭 닫기"],"V2Gmie": [@@ -3444,6 +3441,11 @@"c9C7DQ": ["이 설정을 저장하지 못했습니다. 다시 시도하세요."],"cCd8Bs": ["잘라내기"],"cD3aew": ["검색을 실행하면 다시 임베딩되므로, 적용 범위가 0부터 다시 채워집니다."],+ "cD5D4S": [+ "서버를 다시 시작할 수 없습니다. 이 폴더에서 `",+ ["cliCommand"],+ " start`를 실행해 보세요."+ ],"cEoyWz": [["keyName"], "에 항목 추가"],"cF9DyA": ["서버를 다시 시작한 후 다시 연결하는 중"],"cFCKYZ": ["거부"],@@ -3628,6 +3630,7 @@"dprWmL": ["이 페이지의 앵커"],"dr1vFs": ["일치 항목 모두 바꾸기"],"drzzZw": ["탭 미리보기"],+ "ds0rjh": ["터미널에 <0>", ["cliCommand"], "</0> 명령 추가"],"dw_3cv": ["스킬 이름 변경"],"dw_dUJ": ["경로를 복제하지 못했습니다"],"dx-TwN": ["프로젝트 감사 실행 중"],@@ -3987,6 +3990,11 @@"h69WC6": ["전송됨"],"h7FzJC": ["링크 그래프 응답 형식이 예상과 일치하지 않습니다."],"h9QFb9": ["스킬 \"", ["0"], "\" 삭제됨"],+ "hARd2R": [+ "서버를 자동으로 다시 시작하지 못했습니다. 터미널에서 `",+ ["cliCommand"],+ " stop all`을 실행한 다음 이 프로젝트를 다시 여세요. 문제가 계속되면 컴퓨터를 다시 시작하세요."+ ],"hAbGf0": [["ancestorPath"], "에 있는 기존 OpenKnowledge 프로젝트를 열었습니다"],"hBMK4W": ["프로젝트 템플릿"],"hCOLSd": [@@ -4460,6 +4468,7 @@"loE6tM": ["언어를 ", ["language"], "로 전환하지 못했습니다."],"lond3p": ["코드 본문 위에 표시됩니다. Markdown에서 `title=\"...\"` 형식으로 왕복 변환됩니다."],"lrhetp": ["+ ", ["overflow"], "개 더"],+ "lvHgM-": ["이미 설정됨. 터미널에서 ", ["cliCommand"], " 사용 가능"],"lwCV5v": [["0"], " 편집용 열기 실패: ", ["1"]],"lwvkBP": ["또한 지난 한 주 동안 OpenKnowledge가 사용자 저널에 기록한 디스플레이 연결 오류를 각 메시지를 200자로 줄여 추가합니다."@@ -5735,6 +5744,13 @@"zo3Dl7": ["썸네일 전환"],"zpfN9p": ["아직 댓글 없음. 문서에서 텍스트 선택 후 댓글 추가"],"zq2eBA": ["소스에서 보기"],+ "zqJgDd": [+ "어떤 터미널에서든 OpenKnowledge를 실행하세요 — <0>",+ ["cliCommand"],+ "</0>는 프로젝트를 열고, <1>",+ ["cliCommand"],+ " init</1>은 에이전트를 연결합니다."+ ],"zqQlBg": ["인덱싱 요청당 최대 텍스트 청크 수"],"zrP8HX": ["이 템플릿으로 만든 모든 문서는 이 frontmatter로 시작합니다. 값은 YAML이며, 목록은 <0>[a, b]</0>이고 <1>{",diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex d2884873a..6947436ae 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}>는 알려진 컴포넌트가 아닙니다. 다른 곳msgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> 컴포넌트를 렌더링하지 못했습니다. 잘못된 속성 때문일 수 있습니다. 문제를 확인하려면 소스를 복사하거나 블록을 삭제하세요."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> 외부 터미널 실행 불가. File 메뉴에서 나중에 추가하면 실행할 수 있습니다. OpenKnowledge 내장 터미널과 AI 도구도 계속 작동합니다."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0>는 나중에 파일 메뉴에서 추가할 때까지 외부 터미널에서 실행되지 않습니다. AI 도구는 계속 작동합니다."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0>은 여기에서 병합할 수 없습니다. 유지할 버전을 고르세요."@@ -1323,16 +1333,6 @@ msgstr "<0>미러 앵커를 찾을 수 없습니다.</0> <1>{mirrorSourceTag}</1msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>미러 소스가 삭제되었습니다.</0> 문서 <1>{src}</1>는 더 이상 사용할 수 없습니다."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> 외부 터미널 실행 불가. File 메뉴에서 나중에 추가하면 실행할 수 있습니다. OpenKnowledge 내장 터미널과 AI 도구도 계속 작동합니다."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0>는 나중에 파일 메뉴에서 추가할 때까지 외부 터미널에서 실행되지 않습니다. AI 도구는 계속 작동합니다."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>스페이스</0>로 점프 · <1>↓</1>로 숙이기"@@ -1829,8 +1829,8 @@ msgstr "태그 추가"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "터미널에 <0>ok</0> 명령 추가"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "터미널에 <0>{cliCommand}</0> 명령 추가"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "이 보고서는 이미 보내는 중입니다"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "이미 설정됨. 터미널에서 ok 사용 가능"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "이미 설정됨. 터미널에서 {cliCommand} 사용 가능"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "서버를 다시 시작하지 못했습니다. 다른 계정으로 실행 중입니다. 컴퓨터를 다시 시작하여 해결한 다음 이 프로젝트를 다시 여세요."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "서버를 자동으로 다시 시작하지 못했습니다. 터미널에서 `ok stop all`을 실행한 다음 이 프로젝트를 다시 여세요. 문제가 계속되면 컴퓨터를 다시 시작하세요."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "서버를 자동으로 다시 시작하지 못했습니다. 터미널에서 `{cliCommand} stop all`을 실행한 다음 이 프로젝트를 다시 여세요. 문제가 계속되면 컴퓨터를 다시 시작하세요."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "서버를 다시 시작할 수 없습니다. 다시 시도하려면 이 폴더에서 ok start를 실행하세요."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "서버를 다시 시작할 수 없습니다. 이 폴더에서 `ok start`를 실행해 보세요."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "서버를 다시 시작할 수 없습니다. 이 폴더에서 `{cliCommand} start`를 실행해 보세요."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "최신 편집"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "어떤 터미널에서든 OpenKnowledge를 실행하세요 — <0>ok</0>는 프로젝트를 열고, <1>ok init</1>은 에이전트를 연결합니다."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "어떤 터미널에서든 OpenKnowledge를 실행하세요 — <0>{cliCommand}</0>는 프로젝트를 열고, <1>{cliCommand} init</1>은 에이전트를 연결합니다."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "사용자 메모 및 앱 버전과 함께 OpenKnowledge 팀에 비공개로 전송되었습니다. 공개적으로 게시되지 않습니다."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "콘텐츠를 임베딩하기 위해 <0>{endpointHost}</0>로 전송합니다. 이 컴퓨터에만 저장하며(<1>~/.ok/secrets.yml</1>), 프로젝트에는 저장하지 않습니다."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "콘텐츠를 임베딩하기 위해 <0>{endpointHost}</0>로 전송합니다. 이 컴퓨터에만 저장하며(<1>{secretsPath}</1>), 프로젝트에는 저장하지 않습니다."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/pl/messages.json b/packages/app/src/locales/pl/messages.jsonindex db630fc95..034d37318 100644--- a/packages/app/src/locales/pl/messages.json+++ b/packages/app/src/locales/pl/messages.json@@ -911,9 +911,6 @@"7Ongq0": ["Skondensuj mój plik AGENTS.md do mniej niż 40 tys. znaków"],"7OwvEL": ["Pokaż podgląd HTML"],"7PNNNs": ["Powoduje to wysyłanie zawartości poza Twój komputer"],- "7PXYaF": [- "<0>ok</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Wbudowany terminal i narzędzia AI OpenKnowledge działają bez zmian."- ],"7PzzBU": ["Użytkownik"],"7S7FNA": ["OpenKnowledge sprawdziło projekt"],"7Voget": ["Zaznacz ", ["name"]],@@ -1001,6 +998,11 @@"8OxKZy": ["Przeniesienie powiodło się, ale pasek boczny może być nieaktualny — odśwież, aby zsynchronizować"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Wbudowany terminal i narzędzia AI OpenKnowledge działają bez zmian."+ ],"8PifYj": ["Diagram Mermaid"],"8PmoQF": ["Otwórz menu wstawiania w pustym lub aktywnym miejscu tekstu."],"8QLpZe": ["Serwer został zatrzymany. Uruchom go ponownie, aby połączyć się jeszcze raz."],@@ -1325,15 +1327,11 @@"BMoSQy": ["Ten agent nie daje OpenKnowledge możliwości skonfigurowania tego za Ciebie. Jego przewodnik konfiguracji zawiera kroki ręczne."],- "BOsvJ8": [- "<0>ok</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Twoje narzędzia AI działają bez zmian."- ],"BQKHuL": ["Uruchom ponownie terminal"],"BQu9Pg": ["Symlink"],"BRtKwG": ["Aby połączyć narzędzia AI bez projektu, użyj Plik > Konfiguruj integracje OpenKnowledge…"],- "BUyQnq": ["Nie udało się zrestartować serwera. Spróbuj `ok start` w tym folderze."],"BVkqD9": ["Konserwacja indeksu jest wstrzymana, ponieważ inny atrybut Git kontroluje index.md. Zaktualizuj .gitattributes, aby ścieżki index.md objęte zakresem używały merge=union, a następnie spróbuj ponownie."],@@ -1795,7 +1793,6 @@"Fqx38P": ["Co stanęło na przeszkodzie?"],"Fr8JGg": ["Plik ZIP"],"FsEXax": ["Nie powiodło się. Sprawdź logi serwera i spróbuj ponownie."],- "Fsx78O": ["Dodaj polecenie <0>ok</0> do terminala"],"FumRbV": ["Sprawdzenia w toku"],"FvMSms": ["Zmiana nazwy zmienia plik na dysku oraz identyfikator, którego agenci używają do wyboru tego szablonu."@@ -2318,9 +2315,6 @@"LHH461": ["Zakończ konfigurację"],"LJHTS5": ["Wybierz, gdzie wysłać tę wiadomość"],"LJXDjm": ["Nie udało się zapisać preferencji motywu."],- "LJeFU6": [- "Uruchom OpenKnowledge z dowolnego terminala — <0>ok</0> otwiera projekt, <1>ok init</1> łączy Twoich agentów."- ],"LK83k1": ["Wpisz „@”, aby wspomnieć o stronie"],"LKIPzv": [[@@ -2817,9 +2811,6 @@"Pkw7J9": ["Ten folder jest pusty."],"Pp0Vgd": ["Kliknij, aby zainstalować w ", ["label"]],"PpJy-V": ["Punkt końcowy nie odpowiedział na czas."],- "PqYWiC": [- "Nie udało się automatycznie zrestartować serwera. Spróbuj uruchomić `ok stop all` w terminalu, potem otwórz ten projekt ponownie — albo zrestartuj komputer, jeśli problem się utrzymuje."- ],"PrJYSN": ["Tego folderu nie ma jeszcze na GitHub. Link nie będzie działał, dopóki go nie wypchniesz."],@@ -3050,16 +3041,17 @@"RfaEio": ["Przełącz komentarz źródłowy"],"RfilGt": ["Żadna reguła nie pasuje do filtrów."],"RgbKEe": ["Nie masz dostępu do tego repozytorium."],- "RhX_1U": [+ "Rh_duv": ["Wysłane do <0>",["endpointHost"],- "</0> w celu osadzenia Twojej treści. Przechowywane wyłącznie na tym komputerze (w <1>~/.ok/secrets.yml</1>), nigdy w projekcie."+ "</0> w celu osadzenia Twojej treści. Przechowywane wyłącznie na tym komputerze (w <1>",+ ["secretsPath"],+ "</1>), nigdy w projekcie."],"Rj01Fz": ["Linki"],"RkXlPZ": ["GitHub"],"RlCInP": ["Polecenia ukośnika"],"RmBY0A": ["Brak zdalnego repozytorium git"],- "RnrnTe": ["Już skonfigurowane — ok jest dostępne w terminalu"],"RoafuO": ["Wyślij opinię"],"RobAKV": ["Zaktualizuj cel i opcjonalną kotwicę sekcji."],"RojU4W": ["Umiejętności pochodzące od OpenKnowledge"],@@ -3356,6 +3348,11 @@}]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Twoje narzędzia AI działają bez zmian."+ ],"V0Jk_K": ["Nie wykryto na tym komputerze · pliki OpenKnowledge obecne"],"V0mbgd": ["Zamknij kartę tego czatu, aby go usunąć"],"V2Gmie": [@@ -4204,6 +4201,11 @@"cD3aew": ["Ponowne osadzanie odbywa się podczas wyszukiwania, więc pokrycie zaczyna się od zera i stopniowo się uzupełnia."],+ "cD5D4S": [+ "Nie udało się zrestartować serwera. Spróbuj `",+ ["cliCommand"],+ " start` w tym folderze."+ ],"cEoyWz": ["Dodaj element do ", ["keyName"]],"cF9DyA": ["Ponowne łączenie po restarcie serwera"],"cFCKYZ": ["Odmów"],@@ -4473,6 +4475,7 @@"dprWmL": ["Kotwica na tej stronie"],"dr1vFs": ["Zamień wszystkie wystąpienia"],"drzzZw": ["Karty podglądu"],+ "ds0rjh": ["Dodaj polecenie <0>", ["cliCommand"], "</0> do terminala"],"dw_3cv": ["Zmień nazwę umiejętności"],"dw_dUJ": ["Nie udało się zduplikować ścieżki"],"dx-TwN": ["Audyt projektu w toku"],@@ -4946,6 +4949,11 @@"h69WC6": ["Wysłano"],"h7FzJC": ["Odpowiedź grafu linków nie miała oczekiwanej struktury."],"h9QFb9": ["Umiejętność \"", ["0"], "\" usunięta"],+ "hARd2R": [+ "Nie udało się automatycznie zrestartować serwera. Spróbuj uruchomić `",+ ["cliCommand"],+ " stop all` w terminalu, potem otwórz ten projekt ponownie — albo zrestartuj komputer, jeśli problem się utrzymuje."+ ],"hAbGf0": ["Otwarto istniejący projekt OpenKnowledge w ", ["ancestorPath"]],"hBMK4W": ["Szablony projektu"],"hCOLSd": [@@ -5479,6 +5487,7 @@"loE6tM": ["Nie udało się przełączyć na ", ["language"], "."],"lond3p": ["Wyświetlane nad treścią kodu. Zapisywane jako `title=\"...\"` w markdownie."],"lrhetp": ["+ ", ["overflow"], " więcej"],+ "lvHgM-": ["Już skonfigurowane — ", ["cliCommand"], " jest dostępne w terminalu"],"lwCV5v": ["Nie udało się otworzyć ", ["0"], " do edycji: ", ["1"]],"lwvkBP": ["Dodaje też błędy połączenia z ekranem, które OpenKnowledge zapisało w ostatnim tygodniu w Twoim dzienniku użytkownika, przycinając każdy komunikat do 200 znaków."@@ -7144,6 +7153,13 @@"zo3Dl7": ["Przełącz miniatury"],"zpfN9p": ["Brak komentarzy. Zaznacz tekst w dokumencie, aby dodać komentarz."],"zq2eBA": ["Zobacz w źródle"],+ "zqJgDd": [+ "Uruchom OpenKnowledge z dowolnego terminala — <0>",+ ["cliCommand"],+ "</0> otwiera projekt, <1>",+ ["cliCommand"],+ " init</1> łączy Twoich agentów."+ ],"zqQlBg": ["Maksymalna liczba fragmentów tekstu na żądanie indeksowania"],"zrP8HX": ["Frontmatter, od którego zaczyna się każdy dokument utworzony z tego szablonu. Wartości to YAML — lista to <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/pl/messages.po b/packages/app/src/locales/pl/messages.poindex 295ec6613..2d7f85865 100644--- a/packages/app/src/locales/pl/messages.po+++ b/packages/app/src/locales/pl/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> nie jest znanym komponentem. Skopiuj źródło, aby umsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> nie wyrenderował się (prawdopodobnie zła właściwość). Skopiuj źródło, aby zobaczyć, co poszło nie tak, albo usuń blok."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Wbudowany terminal i narzędzia AI OpenKnowledge działają bez zmian."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Twoje narzędzia AI działają bez zmian."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> nie może zostać scalony tutaj. Wybierz wersję do zachowania."@@ -1323,16 +1333,6 @@ msgstr "<0>Nie znaleziono kotwicy odbicia.</0> Brak <1>{mirrorSourceTag}</1> w <msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Usunięto źródło odbicia.</0> Dokument <1>{src}</1> nie jest już dostępny."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Wbudowany terminal i narzędzia AI OpenKnowledge działają bez zmian."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> nie będzie działać w zewnętrznych terminalach, dopóki nie dodasz go później z menu Plik. Twoje narzędzia AI działają bez zmian."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Spacja</0>, aby przeskoczyć · <1>↓</1>, aby się schować"@@ -1829,8 +1829,8 @@ msgstr "Dodaj tag"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Dodaj polecenie <0>ok</0> do terminala"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Dodaj polecenie <0>{cliCommand}</0> do terminala"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "Ten raport jest już wysyłany"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Już skonfigurowane — ok jest dostępne w terminalu"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Już skonfigurowane — {cliCommand} jest dostępne w terminalu"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "Nie udało się zrestartować serwera — działa na innym koncie. Uruchom ponownie komputer, aby go zamknąć, potem otwórz ten projekt ponownie."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "Nie udało się automatycznie zrestartować serwera. Spróbuj uruchomić `ok stop all` w terminalu, potem otwórz ten projekt ponownie — albo zrestartuj komputer, jeśli problem się utrzymuje."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "Nie udało się automatycznie zrestartować serwera. Spróbuj uruchomić `{cliCommand} stop all` w terminalu, potem otwórz ten projekt ponownie — albo zrestartuj komputer, jeśli problem się utrzymuje."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "Nie udało się zrestartować serwera. Uruchom ok start w tym folderze, aby spróbować ponownie."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "Nie udało się zrestartować serwera. Spróbuj `ok start` w tym folderze."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "Nie udało się zrestartować serwera. Spróbuj `{cliCommand} start` w tym folderze."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "Ostatnia edycja"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Uruchom OpenKnowledge z dowolnego terminala — <0>ok</0> otwiera projekt, <1>ok init</1> łączy Twoich agentów."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Uruchom OpenKnowledge z dowolnego terminala — <0>{cliCommand}</0> otwiera projekt, <1>{cliCommand} init</1> łączy Twoich agentów."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Wysłane prywatnie do zespołu OpenKnowledge wraz z Twoją notatką i wersją aplikacji. Nigdy publikowane publicznie."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Wysłane do <0>{endpointHost}</0> w celu osadzenia Twojej treści. Przechowywane wyłącznie na tym komputerze (w <1>~/.ok/secrets.yml</1>), nigdy w projekcie."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Wysłane do <0>{endpointHost}</0> w celu osadzenia Twojej treści. Przechowywane wyłącznie na tym komputerze (w <1>{secretsPath}</1>), nigdy w projekcie."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 196b9f159..f40ece02f 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -742,9 +742,6 @@"7Ongq0": ["Ćōńďēńśē ḿŷ ÀĜĒŃŢŚ.ḿď ƒĩĺē ţō ĺēśś ţĥàń 40ķ ćĥàŕàćţēŕś"],"7OwvEL": ["Śĥōŵ ĤŢḾĹ ƥŕēvĩēŵ"],"7PNNNs": ["Ţĥĩś śēńďś ćōńţēńţ ōƒƒ ŷōũŕ ḿàćĥĩńē"],- "7PXYaF": [- "<0>ōķ</0> ŵōń'ţ ŕũń ĩń ēxţēŕńàĺ ţēŕḿĩńàĺś ũńţĩĺ ŷōũ àďď ĩţ ĺàţēŕ ƒŕōḿ ţĥē Ƒĩĺē ḿēńũ. ŌƥēńĶńōŵĺēďĝē'ś ƀũĩĺţ-ĩń ţēŕḿĩńàĺ àńď ÀĨ ţōōĺś ķēēƥ ŵōŕķĩńĝ."- ],"7PzzBU": ["Ũśēŕ"],"7S7FNA": ["ŌƥēńĶńōŵĺēďĝē ćĥēćķēď ţĥē ƥŕōĴēćţ"],"7Voget": ["Śēĺēćţ ", ["name"]],@@ -824,6 +821,11 @@"8L0EPw": ["ōŕ ƥàśţē à ţōķēń"],"8OGgNM": ["Ōƥēń ōŕ ćĺōśē vĩśũàĺ-ēďĩţōŕ ƒĩńď."],"8OxKZy": ["Ḿōvē śũććēēďēď ƀũţ ţĥē śĩďēƀàŕ ḿàŷ ƀē ōũţ ōƒ ďàţē — ŕēƒŕēśĥ ţō ŕēśŷńć"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> ŵōń'ţ ŕũń ĩń ēxţēŕńàĺ ţēŕḿĩńàĺś ũńţĩĺ ŷōũ àďď ĩţ ĺàţēŕ ƒŕōḿ ţĥē Ƒĩĺē ḿēńũ. ŌƥēńĶńōŵĺēďĝē'ś ƀũĩĺţ-ĩń ţēŕḿĩńàĺ àńď ÀĨ ţōōĺś ķēēƥ ŵōŕķĩńĝ."+ ],"8PifYj": ["Ḿēŕḿàĩď ďĩàĝŕàḿ"],"8PmoQF": ["Ōƥēń ţĥē ĩńśēŕţ ḿēńũ ĩń àń ēḿƥţŷ ōŕ àćţĩvē ţēxţ ƥōśĩţĩōń."],"8QLpZe": ["Ţĥē śēŕvēŕ śţōƥƥēď. Ŕēśţàŕţ ĩţ ţō ŕēćōńńēćţ."],@@ -1109,15 +1111,11 @@"BMoSQy": ["Ţĥĩś àĝēńţ ĝĩvēś ŌƥēńĶńōŵĺēďĝē ńō ŵàŷ ţō śēţ ţĥĩś ũƥ ƒōŕ ŷōũ. Ĩţś śēţũƥ ĝũĩďē ĥàś ţĥē ḿàńũàĺ śţēƥś."],- "BOsvJ8": [- "<0>ōķ</0> ŵōń'ţ ŕũń ĩń ēxţēŕńàĺ ţēŕḿĩńàĺś ũńţĩĺ ŷōũ àďď ĩţ ĺàţēŕ ƒŕōḿ ţĥē Ƒĩĺē ḿēńũ. Ŷōũŕ ÀĨ ţōōĺś ķēēƥ ŵōŕķĩńĝ."- ],"BQKHuL": ["Ŕēśţàŕţ ţēŕḿĩńàĺ"],"BQu9Pg": ["Śŷḿĺĩńķ"],"BRtKwG": ["Ţō ćōńńēćţ ÀĨ ţōōĺś ŵĩţĥōũţ à ƥŕōĴēćţ, ũśē Ƒĩĺē > Śēţ ũƥ ŌƥēńĶńōŵĺēďĝē ĩńţēĝŕàţĩōńś…"],- "BUyQnq": ["Ćōũĺďń'ţ ŕēśţàŕţ ţĥē śēŕvēŕ. Ţŕŷ `ōķ śţàŕţ` ĩń ţĥĩś ƒōĺďēŕ."],"BVkqD9": ["Ĩńďēx ḿàĩńţēńàńćē ĩś ƥàũśēď ƀēćàũśē àńōţĥēŕ Ĝĩţ àţţŕĩƀũţē ćōńţŕōĺś ĩńďēx.ḿď. Ũƥďàţē .ĝĩţàţţŕĩƀũţēś śō ţĥē śćōƥēď ĩńďēx.ḿď ƥàţĥś ũśē ḿēŕĝē=ũńĩōń, ţĥēń ţŕŷ àĝàĩń."],@@ -1523,7 +1521,6 @@"Fqx38P": ["Ŵĥàţ ĝōţ ĩń ţĥē ŵàŷ?"],"Fr8JGg": ["Źĩƥ ƒĩĺē"],"FsEXax": ["Ţĥàţ ďĩď ńōţ ĝō ţĥŕōũĝĥ. Ćĥēćķ ţĥē śēŕvēŕ ĺōĝś àńď ţŕŷ àĝàĩń."],- "Fsx78O": ["Àďď ţĥē <0>ōķ</0> ćōḿḿàńď ţō ŷōũŕ ţēŕḿĩńàĺ"],"FumRbV": ["Ćĥēćķś àŕē ŕũńńĩńĝ"],"FvMSms": ["Ŕēńàḿĩńĝ ćĥàńĝēś ţĥē ƒĩĺē ōń ďĩśķ àńď ţĥē ĩď àĝēńţś ũśē ţō ƥĩćķ ţĥĩś ţēḿƥĺàţē."],"Fx9aOF": ["ŌƥēńĶńōŵĺēďĝē ēďĩţēď à ďōćũḿēńţ"],@@ -1968,9 +1965,6 @@"LHH461": ["Ƒĩńĩśĥ śēţũƥ"],"LJHTS5": ["Ćĥōōśē ŵĥēŕē ţō śēńď ţĥĩś ḿēśśàĝē"],"LJXDjm": ["Ćōũĺďń'ţ śàvē ŷōũŕ ţĥēḿē ƥŕēƒēŕēńćē."],- "LJeFU6": [- "Ĺàũńćĥ ŌƥēńĶńōŵĺēďĝē ƒŕōḿ àńŷ ţēŕḿĩńàĺ — <0>ōķ</0> ōƥēńś à ƥŕōĴēćţ, <1>ōķ ĩńĩţ</1> ćōńńēćţś ŷōũŕ àĝēńţś."- ],"LK83k1": ["Ţŷƥē '@' ţō ḿēńţĩōń à ƥàĝē"],"LKIPzv": [[@@ -2408,9 +2402,6 @@"Pkw7J9": ["Ţĥĩś ƒōĺďēŕ ĩś ēḿƥţŷ."],"Pp0Vgd": ["Ćĺĩćķ ţō ĩńśţàĺĺ ĩń ", ["label"]],"PpJy-V": ["Ţĥē ēńďƥōĩńţ ďĩďń'ţ ŕēśƥōńď ĩń ţĩḿē."],- "PqYWiC": [- "Ćōũĺďń'ţ ŕēśţàŕţ ţĥē śēŕvēŕ àũţōḿàţĩćàĺĺŷ. Ţŕŷ ŕũńńĩńĝ `ōķ śţōƥ àĺĺ` ĩń à ţēŕḿĩńàĺ, ţĥēń ŕēōƥēń ţĥĩś ƥŕōĴēćţ — ōŕ ŕēśţàŕţ ŷōũŕ ćōḿƥũţēŕ ĩƒ ĩţ ƥēŕśĩśţś."- ],"PrJYSN": ["Ţĥĩś ƒōĺďēŕ ĩśń'ţ ōń ĜĩţĤũƀ ŷēţ. Ţĥē ĺĩńķ ŵōń'ţ ŵōŕķ ũńţĩĺ ĩţ'ś ƥũśĥēď."],"PrVaZo": ["Ũńĩńśţàĺĺ ŌƥēńĶńōŵĺēďĝē?"],"PrWQiT": ["Ḿōvē Ţēŕḿĩńàĺ ţō ŕĩĝĥţ"],@@ -2610,16 +2601,17 @@"RfaEio": ["Ţōĝĝĺē śōũŕćē ćōḿḿēńţ"],"RfilGt": ["Ńō ŕũĺēś ḿàţćĥ ŷōũŕ ƒĩĺţēŕś."],"RgbKEe": ["Ŷōũ ďōń'ţ ĥàvē àććēśś ţō ţĥĩś ŕēƥōśĩţōŕŷ."],- "RhX_1U": [+ "Rh_duv": ["Śēńţ ţō <0>",["endpointHost"],- "</0> ţō ēḿƀēď ŷōũŕ ćōńţēńţ. Śţōŕēď ōń ţĥĩś ḿàćĥĩńē ōńĺŷ (ĩń <1>~/.ōķ/śēćŕēţś.ŷḿĺ</1>), ńēvēŕ ĩń ţĥē ƥŕōĴēćţ."+ "</0> ţō ēḿƀēď ŷōũŕ ćōńţēńţ. Śţōŕēď ōń ţĥĩś ḿàćĥĩńē ōńĺŷ (ĩń <1>",+ ["secretsPath"],+ "</1>), ńēvēŕ ĩń ţĥē ƥŕōĴēćţ."],"Rj01Fz": ["Ĺĩńķś"],"RkXlPZ": ["ĜĩţĤũƀ"],"RlCInP": ["Śĺàśĥ ćōḿḿàńďś"],"RmBY0A": ["Ńō ĝĩţ ŕēḿōţē"],- "RnrnTe": ["Àĺŕēàďŷ śēţ ũƥ — ōķ ĩś àvàĩĺàƀĺē ĩń ŷōũŕ ţēŕḿĩńàĺ"],"RoafuO": ["Śēńď ƒēēďƀàćķ"],"RobAKV": ["Ũƥďàţē ţĥē ďēśţĩńàţĩōń àńď ōƥţĩōńàĺ śēćţĩōń àńćĥōŕ."],"RojU4W": ["Śķĩĺĺś ƒŕōḿ ŌƥēńĶńōŵĺēďĝē"],@@ -2856,6 +2848,11 @@"Uuj_R4": ["Ńēŵ ƒŕōḿ ţēḿƥĺàţē"],"Uw6ERJ": ["Ćōũĺďń'ţ ćōƥŷ: ", ["detail"]],"UyROxs": [["mins", "plural", { "one": ["#", " ḿĩń àĝō"], "other": ["#", " ḿĩń àĝō"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> ŵōń'ţ ŕũń ĩń ēxţēŕńàĺ ţēŕḿĩńàĺś ũńţĩĺ ŷōũ àďď ĩţ ĺàţēŕ ƒŕōḿ ţĥē Ƒĩĺē ḿēńũ. Ŷōũŕ ÀĨ ţōōĺś ķēēƥ ŵōŕķĩńĝ."+ ],"V0Jk_K": ["Ńōţ ďēţēćţēď ōń ţĥĩś ḿàćĥĩńē · ŌƥēńĶńōŵĺēďĝē ƒĩĺēś ƥŕēśēńţ"],"V0mbgd": ["Ćĺōśē ţĥĩś ćĥàţ'ś ţàƀ ţō ďēĺēţē ĩţ"],"V2Gmie": [@@ -3579,6 +3576,7 @@"c9C7DQ": ["Ćōũĺďń'ţ śàvē ţĥĩś śēţţĩńĝ. Ţŕŷ àĝàĩń."],"cCd8Bs": ["Ćũţ"],"cD3aew": ["Ŕē-ēḿƀēďďĩńĝ ĥàƥƥēńś àś śēàŕćĥēś ŕũń, śō ćōvēŕàĝē ŕēśţàŕţś àţ źēŕō àńď ŕēƒĩĺĺś."],+ "cD5D4S": ["Ćōũĺďń'ţ ŕēśţàŕţ ţĥē śēŕvēŕ. Ţŕŷ `", ["cliCommand"], " śţàŕţ` ĩń ţĥĩś ƒōĺďēŕ."],"cEoyWz": ["Àďď ĩţēḿ ţō ", ["keyName"]],"cF9DyA": ["Ŕēćōńńēćţĩńĝ àƒţēŕ śēŕvēŕ ŕēśţàŕţ"],"cFCKYZ": ["Ďēńŷ"],@@ -3788,6 +3786,7 @@"dprWmL": ["Àńćĥōŕ ĩń ţĥĩś ƥàĝē"],"dr1vFs": ["Ŕēƥĺàćē àĺĺ ḿàţćĥēś"],"drzzZw": ["Ƥŕēvĩēŵ ţàƀś"],+ "ds0rjh": ["Àďď ţĥē <0>", ["cliCommand"], "</0> ćōḿḿàńď ţō ŷōũŕ ţēŕḿĩńàĺ"],"dw_3cv": ["Ŕēńàḿē śķĩĺĺ"],"dw_dUJ": ["Ƒàĩĺēď ţō ďũƥĺĩćàţē ƥàţĥ"],"dx-TwN": ["Ŕũńńĩńĝ ƥŕōĴēćţ àũďĩţ"],@@ -4173,6 +4172,11 @@"h69WC6": ["Śēńţ"],"h7FzJC": ["Ĺĩńķ-ĝŕàƥĥ ŕēśƥōńśē ďĩď ńōţ ḿàţćĥ ēxƥēćţēď śĥàƥē."],"h9QFb9": ["Śķĩĺĺ \"", ["0"], "\" ďēĺēţēď"],+ "hARd2R": [+ "Ćōũĺďń'ţ ŕēśţàŕţ ţĥē śēŕvēŕ àũţōḿàţĩćàĺĺŷ. Ţŕŷ ŕũńńĩńĝ `",+ ["cliCommand"],+ " śţōƥ àĺĺ` ĩń à ţēŕḿĩńàĺ, ţĥēń ŕēōƥēń ţĥĩś ƥŕōĴēćţ — ōŕ ŕēśţàŕţ ŷōũŕ ćōḿƥũţēŕ ĩƒ ĩţ ƥēŕśĩśţś."+ ],"hAbGf0": ["Ōƥēńēď ēxĩśţĩńĝ ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ àţ ", ["ancestorPath"]],"hBMK4W": ["ƤŕōĴēćţ ţēḿƥĺàţēś"],"hCOLSd": [@@ -4655,6 +4659,7 @@"loE6tM": ["Ćōũĺďń'ţ śŵĩţćĥ ţō ", ["language"], "."],"lond3p": ["Śĥōŵś àƀōvē ţĥē ćōďē ƀōďŷ. Ŕōũńď-ţŕĩƥś àś `ţĩţĺē=\"...\"` ĩń ḿàŕķďōŵń."],"lrhetp": ["+ ", ["overflow"], " ḿōŕē"],+ "lvHgM-": ["Àĺŕēàďŷ śēţ ũƥ — ", ["cliCommand"], " ĩś àvàĩĺàƀĺē ĩń ŷōũŕ ţēŕḿĩńàĺ"],"lwCV5v": ["Ćōũĺďń'ţ ōƥēń ", ["0"], " ƒōŕ ēďĩţĩńĝ: ", ["1"]],"lwvkBP": ["Ĩţ àĺśō àďďś àńŷ ďĩśƥĺàŷ-ćōńńēćţĩōń ēŕŕōŕś ŌƥēńĶńōŵĺēďĝē ŵŕōţē ţō ŷōũŕ ũśēŕ Ĵōũŕńàĺ ĩń ţĥē ƥàśţ ŵēēķ, ēàćĥ ḿēśśàĝē ćũţ ţō 200 ćĥàŕàćţēŕś."@@ -6025,6 +6030,13 @@"zo3Dl7": ["Ţōĝĝĺē ţĥũḿƀńàĩĺś"],"zpfN9p": ["Ńō ćōḿḿēńţś ŷēţ. Śēĺēćţ ţēxţ ĩń ţĥē ďōćũḿēńţ ţō àďď ōńē."],"zq2eBA": ["Vĩēŵ ĩń śōũŕćē"],+ "zqJgDd": [+ "Ĺàũńćĥ ŌƥēńĶńōŵĺēďĝē ƒŕōḿ àńŷ ţēŕḿĩńàĺ — <0>",+ ["cliCommand"],+ "</0> ōƥēńś à ƥŕōĴēćţ, <1>",+ ["cliCommand"],+ " ĩńĩţ</1> ćōńńēćţś ŷōũŕ àĝēńţś."+ ],"zqQlBg": ["Ḿàxĩḿũḿ ţēxţ ćĥũńķś ƥēŕ ĩńďēxĩńĝ ŕēǫũēśţ"],"zrP8HX": ["Ƒŕōńţḿàţţēŕ ēvēŕŷ ďōćũḿēńţ ćŕēàţēď ƒŕōḿ ţĥĩś ţēḿƥĺàţē śţàŕţś ŵĩţĥ. Vàĺũēś àŕē ŶÀḾĹ — à ĺĩśţ ĩś <0>[à, ƀ]</0>; <1>{",diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 63f2f1ed7..9a7d05c8f 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -1303,6 +1303,16 @@ msgstr ""msgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr ""+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr ""++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr ""+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr ""@@ -1319,16 +1329,6 @@ msgstr ""msgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr ""-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr ""--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr ""-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr ""@@ -1825,7 +1825,7 @@ msgstr ""#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"+msgid "Add the <0>{cliCommand}</0> command to your terminal"msgstr ""#: src/lib/keyboard-shortcuts.ts@@ -2089,7 +2089,7 @@ msgid "Already sending this report"msgstr ""#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"+msgid "Already set up — {cliCommand} is available in your terminal"msgstr ""#: src/components/acp/ThreadView.tsx@@ -4596,7 +4596,7 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr ""#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."msgstr ""#: src/components/settings/NetworkAccessSection.tsx@@ -4604,7 +4604,7 @@ msgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr ""#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."msgstr ""#. placeholder {0}: theme.label@@ -8322,7 +8322,7 @@ msgstr ""#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."msgstr ""#: src/editor/components/Pdf.tsx@@ -13253,7 +13253,7 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr ""#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."msgstr ""#: src/comments/store.tsdiff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex e7105a034..20e8613f5 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -868,9 +868,6 @@"7Ongq0": ["Reduza meu arquivo AGENTS.md para menos de 40 mil caracteres"],"7OwvEL": ["Mostrar a pré-visualização do HTML"],"7PNNNs": ["Isto envia conteúdo para fora do seu computador"],- "7PXYaF": [- "<0>ok</0> não vai funcionar em terminais externos até você adicioná-lo depois pelo menu Arquivo. O terminal integrado e as ferramentas de IA do OpenKnowledge continuam funcionando."- ],"7PzzBU": ["Usuário"],"7S7FNA": ["OpenKnowledge verificou o projeto"],"7Voget": ["Selecionar ", ["name"]],@@ -952,6 +949,11 @@"8OxKZy": ["A movimentação deu certo, mas a barra lateral pode estar desatualizada — atualize para ressincronizar"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> não vai funcionar em terminais externos até você adicioná-lo depois pelo menu Arquivo. O terminal integrado e as ferramentas de IA do OpenKnowledge continuam funcionando."+ ],"8PifYj": ["Diagrama do Mermaid"],"8PmoQF": ["Abre o menu de inserção em uma posição de texto vazia ou ativa."],"8QLpZe": ["O servidor parou. Reinicie-o para reconectar."],@@ -1274,15 +1276,11 @@"BMoSQy": ["Este agente não oferece ao OpenKnowledge nenhuma forma de configurar isso para você. O guia de configuração dele traz as etapas manuais."],- "BOsvJ8": [- "<0>ok</0> não funcionará em terminais externos até que você o adicione depois pelo menu Arquivo. Suas ferramentas de IA continuarão funcionando."- ],"BQKHuL": ["Reiniciar o terminal"],"BQu9Pg": ["Link simbólico"],"BRtKwG": ["Para conectar ferramentas de IA sem um projeto, use Arquivo > Configurar as integrações do OpenKnowledge…"],- "BUyQnq": ["Não deu para reiniciar o servidor. Tente `ok start` nesta pasta."],"BVkqD9": ["A manutenção do índice está pausada porque outro atributo Git controla index.md. Atualize .gitattributes para que os caminhos index.md com escopo usem merge=union e tente novamente."],@@ -1735,7 +1733,6 @@"Fqx38P": ["O que atrapalhou?"],"Fr8JGg": ["Arquivo zip"],"FsEXax": ["Isso não foi concluído. Verifique os logs do servidor e tente de novo."],- "Fsx78O": ["Adicione o comando <0>ok</0> ao seu terminal"],"FumRbV": ["As verificações estão em execução"],"FvMSms": ["Renomear muda o arquivo no disco e o id que os agentes usam para escolher este modelo."@@ -2251,9 +2248,6 @@"LHH461": ["Concluir configuração"],"LJHTS5": ["Escolher para onde enviar esta mensagem"],"LJXDjm": ["Não foi possível salvar sua preferência de tema."],- "LJeFU6": [- "Inicie o OpenKnowledge de qualquer terminal: <0>ok</0> abre um projeto e <1>ok init</1> conecta seus agentes."- ],"LK83k1": ["Digite '@' para mencionar uma página"],"LKIPzv": [[@@ -2730,9 +2724,6 @@"Pkw7J9": ["Esta pasta está vazia."],"Pp0Vgd": ["Clique para instalar em ", ["label"]],"PpJy-V": ["O endpoint não respondeu a tempo."],- "PqYWiC": [- "Não deu para reiniciar o servidor automaticamente. Tente rodar `ok stop all` em um terminal e abra este projeto de novo — ou reinicie o computador se persistir."- ],"PrJYSN": ["Esta pasta ainda não está no GitHub. O link não vai funcionar até ela ser enviada."],@@ -2953,16 +2944,17 @@"RfaEio": ["Comentar ou descomentar no código"],"RfilGt": ["Nenhuma regra corresponde aos seus filtros."],"RgbKEe": ["Você não tem acesso a este repositório."],- "RhX_1U": [+ "Rh_duv": ["Enviada para <0>",["endpointHost"],- "</0> para gerar os embeddings do seu conteúdo. Guardada só neste computador (em <1>~/.ok/secrets.yml</1>), nunca no projeto."+ "</0> para gerar os embeddings do seu conteúdo. Guardada só neste computador (em <1>",+ ["secretsPath"],+ "</1>), nunca no projeto."],"Rj01Fz": ["Links"],"RkXlPZ": ["GitHub"],"RlCInP": ["Comandos de barra"],"RmBY0A": ["Sem remoto do git"],- "RnrnTe": ["Já configurado — ok está disponível no seu terminal"],"RoafuO": ["Enviar comentários"],"RobAKV": ["Atualize o destino e a âncora de seção opcional."],"RojU4W": ["Habilidades do OpenKnowledge"],@@ -3241,6 +3233,11 @@{ "one": ["há ", "#", " min"], "many": ["há ", "#", " min"], "other": ["há ", "#", " min"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> não funcionará em terminais externos até que você o adicione depois pelo menu Arquivo. Suas ferramentas de IA continuarão funcionando."+ ],"V0Jk_K": ["Não detectado nesta máquina · Arquivos do OpenKnowledge presentes"],"V0mbgd": ["Feche a aba deste chat para excluí-lo"],"V2Gmie": [@@ -4052,6 +4049,11 @@"cD3aew": ["Os embeddings são recalculados à medida que as buscas rodam, então a cobertura recomeça do zero e vai enchendo."],+ "cD5D4S": [+ "Não deu para reiniciar o servidor. Tente `",+ ["cliCommand"],+ " start` nesta pasta."+ ],"cEoyWz": ["Adicionar item a ", ["keyName"]],"cF9DyA": ["Reconectando após o reinício do servidor"],"cFCKYZ": ["Negar"],@@ -4290,6 +4292,7 @@"dprWmL": ["Âncora nesta página"],"dr1vFs": ["Substituir todas as ocorrências"],"drzzZw": ["Abas de pré-visualização"],+ "ds0rjh": ["Adicione o comando <0>", ["cliCommand"], "</0> ao seu terminal"],"dw_3cv": ["Renomear a habilidade"],"dw_dUJ": ["Falha ao duplicar o caminho"],"dx-TwN": ["Rodando a auditoria do projeto"],@@ -4744,6 +4747,11 @@"h69WC6": ["Enviado"],"h7FzJC": ["A resposta do grafo de links não tinha o formato esperado."],"h9QFb9": ["Habilidade \"", ["0"], "\" excluída"],+ "hARd2R": [+ "Não deu para reiniciar o servidor automaticamente. Tente rodar `",+ ["cliCommand"],+ " stop all` em um terminal e abra este projeto de novo — ou reinicie o computador se persistir."+ ],"hAbGf0": ["Projeto do OpenKnowledge existente aberto em ", ["ancestorPath"]],"hBMK4W": ["Modelos do projeto"],"hCOLSd": [@@ -5261,6 +5269,7 @@"loE6tM": ["Não foi possível mudar para ", ["language"], "."],"lond3p": ["Aparece acima do corpo do código. No markdown, vai e volta como `title=\"...\"`."],"lrhetp": ["+ mais ", ["overflow"]],+ "lvHgM-": ["Já configurado — ", ["cliCommand"], " está disponível no seu terminal"],"lwCV5v": ["Não deu para abrir ", ["0"], " para edição: ", ["1"]],"lwvkBP": ["Também adiciona os erros de conexão com a tela que o OpenKnowledge gravou no seu diário de usuário na última semana, com cada mensagem cortada em 200 caracteres."@@ -6797,6 +6806,13 @@"zo3Dl7": ["Mostrar ou ocultar as miniaturas"],"zpfN9p": ["Ainda não há comentários. Selecione um texto no documento para adicionar um."],"zq2eBA": ["Ver no código"],+ "zqJgDd": [+ "Inicie o OpenKnowledge de qualquer terminal: <0>",+ ["cliCommand"],+ "</0> abre um projeto e <1>",+ ["cliCommand"],+ " init</1> conecta seus agentes."+ ],"zqQlBg": ["Máximo de fragmentos de texto por requisição de indexação"],"zrP8HX": ["O frontmatter com que começa cada documento criado a partir deste modelo. Os valores são YAML — uma lista é <0>[a, b]</0>; <1>{",diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex 1ee9c7721..55a4fecf5 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -1303,6 +1303,16 @@ msgstr "<{componentName}> não é um componente conhecido. Copie o código paramsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "Não foi possível renderizar <{descriptorLabel}> (provavelmente uma prop inválida). Copie o código para ver o que deu errado ou exclua o bloco."+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> não vai funcionar em terminais externos até você adicioná-lo depois pelo menu Arquivo. O terminal integrado e as ferramentas de IA do OpenKnowledge continuam funcionando."++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> não funcionará em terminais externos até que você o adicione depois pelo menu Arquivo. Suas ferramentas de IA continuarão funcionando."+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> não pode ser mesclado aqui. Escolha a versão que quer manter."@@ -1319,16 +1329,6 @@ msgstr "<0>Âncora do espelho não encontrada.</0> Não existe nenhum <1>{mirrormsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>Fonte do espelho removida.</0> O documento <1>{src}</1> não está mais disponível."-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> não vai funcionar em terminais externos até você adicioná-lo depois pelo menu Arquivo. O terminal integrado e as ferramentas de IA do OpenKnowledge continuam funcionando."--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> não funcionará em terminais externos até que você o adicione depois pelo menu Arquivo. Suas ferramentas de IA continuarão funcionando."-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>Espaço</0> para pular · <1>↓</1> para agachar"@@ -1825,8 +1825,8 @@ msgstr "Adicionar tag"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "Adicione o comando <0>ok</0> ao seu terminal"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "Adicione o comando <0>{cliCommand}</0> ao seu terminal"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2089,8 +2089,8 @@ msgid "Already sending this report"msgstr "Este relatório já está sendo enviado"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "Já configurado — ok está disponível no seu terminal"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "Já configurado — {cliCommand} está disponível no seu terminal"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4596,16 +4596,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "Não deu para reiniciar o servidor — ele está rodando em outra conta. Reinicie o computador para liberá-lo e abra este projeto de novo."#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "Não deu para reiniciar o servidor automaticamente. Tente rodar `ok stop all` em um terminal e abra este projeto de novo — ou reinicie o computador se persistir."+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "Não deu para reiniciar o servidor automaticamente. Tente rodar `{cliCommand} stop all` em um terminal e abra este projeto de novo — ou reinicie o computador se persistir."#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "Não foi possível reiniciar o servidor. Execute ok start nesta pasta para tentar novamente."#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "Não deu para reiniciar o servidor. Tente `ok start` nesta pasta."+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "Não deu para reiniciar o servidor. Tente `{cliCommand} start` nesta pasta."#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8322,8 +8322,8 @@ msgstr "Última edição"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "Inicie o OpenKnowledge de qualquer terminal: <0>ok</0> abre um projeto e <1>ok init</1> conecta seus agentes."+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "Inicie o OpenKnowledge de qualquer terminal: <0>{cliCommand}</0> abre um projeto e <1>{cliCommand} init</1> conecta seus agentes."#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13253,8 +13253,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "Enviado em particular para a equipe do OpenKnowledge, junto com sua nota e a versão do app. Nunca é publicado."#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "Enviada para <0>{endpointHost}</0> para gerar os embeddings do seu conteúdo. Guardada só neste computador (em <1>~/.ok/secrets.yml</1>), nunca no projeto."+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "Enviada para <0>{endpointHost}</0> para gerar os embeddings do seu conteúdo. Guardada só neste computador (em <1>{secretsPath}</1>), nunca no projeto."#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex a820723b6..8306df2f6 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -755,9 +755,6 @@"7Ongq0": ["میری AGENTS.md فائل کو 40 ہزار حروف سے کم کر دیں"],"7OwvEL": ["HTML کا پیش منظر دکھائیں"],"7PNNNs": ["یہ مواد آپ کی مشین سے باہر بھیجتا ہے"],- "7PXYaF": [- "<0>ok</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ OpenKnowledge کا بلٹ اِن ٹرمینل اور AI ٹولز کام کرتے رہتے ہیں۔"- ],"7PzzBU": ["صارف"],"7S7FNA": ["OpenKnowledge نے پروجیکٹ کی جانچ کی"],"7Voget": [["name"], " منتخب کریں"],@@ -835,6 +832,11 @@"8L0EPw": ["یا کوئی ٹوکن چسپاں کریں"],"8OGgNM": ["بصری ایڈیٹر کی تلاش کھولیں یا بند کریں۔"],"8OxKZy": ["منتقلی ہو گئی مگر سائیڈ بار پرانا ہو سکتا ہے — دوبارہ مطابقت کے لیے تازہ کریں"],+ "8PBuqT": [+ "<0>",+ ["cliCommand"],+ "</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ OpenKnowledge کا بلٹ اِن ٹرمینل اور AI ٹولز کام کرتے رہتے ہیں۔"+ ],"8PifYj": ["Mermaid خاکہ"],"8PmoQF": ["خالی یا فعال متن کی جگہ پر داخل کرنے کا مینو کھولیں۔"],"8QLpZe": ["سرور رک گیا۔ دوبارہ منسلک ہونے کے لیے اسے دوبارہ چلائیں۔"],@@ -1118,15 +1120,11 @@"BMoSQy": ["یہ ایجنٹ OpenKnowledge کو آپ کی جانب سے یہ ترتیب دینے کا کوئی طریقہ نہیں دیتا۔ اس کی سیٹ اپ گائیڈ میں دستی مراحل موجود ہیں۔"],- "BOsvJ8": [- "<0>ok</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ آپ کے AI ٹولز کام کرتے رہیں گے۔"- ],"BQKHuL": ["ٹرمینل دوبارہ چلائیں"],"BQu9Pg": ["سِم لنک"],"BRtKwG": ["کسی پروجیکٹ کے بغیر AI ٹولز جوڑنے کے لیے، فائل > OpenKnowledge کے انضمامات ترتیب دیں… استعمال کریں۔"],- "BUyQnq": ["سرور دوبارہ نہیں چل سکا۔ اس فولڈر میں `ok start` آزمائیں۔"],"BVkqD9": ["انڈیکس کی دیکھ بھال موقوف ہے کیونکہ ایک اور Git وصف کنٹرول کرتا ہے index.md۔ .gitattributes کو اپ ڈیٹ کریں تاکہ دائرہ کار والے index.md راستے merge=union استعمال کریں، پھر دوبارہ کوشش کریں۔"],@@ -1545,7 +1543,6 @@"Fqx38P": ["کیا رکاوٹ بنا؟"],"Fr8JGg": ["Zip فائل"],"FsEXax": ["یہ مکمل نہیں ہوا۔ سرور لاگ دیکھیں اور دوبارہ کوشش کریں۔"],- "Fsx78O": ["اپنے ٹرمینل میں <0>ok</0> کمانڈ شامل کریں"],"FumRbV": ["جانچ جاری ہے"],"FvMSms": ["نام بدلنے سے ڈسک پر فائل اور وہ شناخت بدل جاتی ہے جو ایجنٹس یہ ٹیمپلیٹ منتخب کرنے کے لیے استعمال کرتے ہیں۔"@@ -2010,9 +2007,6 @@"LHH461": ["سیٹ اپ مکمل کریں"],"LJHTS5": ["منتخب کریں کہ یہ پیغام کہاں بھیجنا ہے"],"LJXDjm": ["آپ کی تھیم ترجیح محفوظ نہیں ہو سکی۔"],- "LJeFU6": [- "OpenKnowledge کو کسی بھی ٹرمینل سے چلائیں — <0>ok</0> پروجیکٹ کھولتا ہے، <1>ok init</1> آپ کے ایجنٹس کو جوڑتا ہے۔"- ],"LK83k1": ["کسی صفحہ کا حوالہ دینے کے لیے '@' ٹائپ کریں"],"LKIPzv": [[@@ -2452,9 +2446,6 @@"Pkw7J9": ["یہ فولڈر خالی ہے۔"],"Pp0Vgd": [["label"], " میں نصب کرنے کے لیے کلک کریں"],"PpJy-V": ["اینڈ پوائنٹ نے وقت پر جواب نہیں دیا۔"],- "PqYWiC": [- "سرور خودکار طور پر دوبارہ نہیں چل سکا۔ ٹرمینل میں `ok stop all` چلا کر دیکھیں، پھر یہ پروجیکٹ دوبارہ کھولیں — یا مسئلہ برقرار رہے تو اپنا کمپیوٹر دوبارہ چالو کریں۔"- ],"PrJYSN": ["یہ فولڈر ابھی GitHub پر نہیں ہے۔ پُش ہونے تک لنک کام نہیں کرے گا۔"],"PrVaZo": ["OpenKnowledge کی تنصیب ختم کریں؟"],"PrWQiT": ["Terminal کو دائیں منتقل کریں"],@@ -2651,16 +2642,17 @@"RfaEio": ["سورس کا تبصرہ بدلیں"],"RfilGt": ["آپ کے فلٹرز سے کوئی قاعدہ مماثل نہیں۔"],"RgbKEe": ["آپ کو اس ریپازٹری تک رسائی نہیں۔"],- "RhX_1U": [+ "Rh_duv": ["آپ کا مواد ایمبیڈ کرنے کے لیے <0>",["endpointHost"],- "</0> کو بھیجا جاتا ہے۔ صرف اسی مشین پر محفوظ ہوتا ہے (<1>~/.ok/secrets.yml</1> میں)، کبھی پروجیکٹ میں نہیں۔"+ "</0> کو بھیجا جاتا ہے۔ صرف اسی مشین پر محفوظ ہوتا ہے (<1>",+ ["secretsPath"],+ "</1> میں)، کبھی پروجیکٹ میں نہیں۔"],"Rj01Fz": ["لنکس"],"RkXlPZ": ["GitHub"],"RlCInP": ["سلیش کمانڈز"],"RmBY0A": ["کوئی git ریموٹ نہیں"],- "RnrnTe": ["پہلے سے ترتیب دیا جا چکا ہے — ok آپ کے ٹرمینل میں دستیاب ہے"],"RoafuO": ["رائے بھیجیں"],"RobAKV": ["منزل اور اختیاری سیکشن اینکر تازہ کریں۔"],"RojU4W": ["OpenKnowledge کی مہارتیں"],@@ -2905,6 +2897,11 @@"Uuj_R4": ["ٹیمپلیٹ سے نیا"],"Uw6ERJ": ["نقل نہیں ہو سکا: ", ["detail"]],"UyROxs": [["mins", "plural", { "one": ["#", " منٹ پہلے"], "other": ["#", " منٹ پہلے"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ آپ کے AI ٹولز کام کرتے رہیں گے۔"+ ],"V0Jk_K": ["اس مشین پر شناخت نہیں ہوا · OpenKnowledge فائلیں موجود ہیں"],"V0mbgd": ["اسے حذف کرنے کے لیے اس چیٹ کا ٹیب بند کریں"],"V2Gmie": [@@ -3662,6 +3659,7 @@"cD3aew": ["دوبارہ ایمبیڈنگ تلاش چلنے کے دوران ہوتی ہے، اس لیے احاطہ صفر سے شروع ہو کر دوبارہ بھرتا ہے۔"],+ "cD5D4S": ["سرور دوبارہ نہیں چل سکا۔ اس فولڈر میں `", ["cliCommand"], " start` آزمائیں۔"],"cEoyWz": [["keyName"], " میں آئٹم شامل کریں"],"cF9DyA": ["سرور دوبارہ چلنے کے بعد دوبارہ منسلک ہو رہا ہے"],"cFCKYZ": ["مسترد کریں"],@@ -3865,6 +3863,7 @@"dprWmL": ["اس صفحے میں اینکر"],"dr1vFs": ["تمام مماثلتیں تبدیل کریں"],"drzzZw": ["پیش منظر کے ٹیبز"],+ "ds0rjh": ["اپنے ٹرمینل میں <0>", ["cliCommand"], "</0> کمانڈ شامل کریں"],"dw_3cv": ["مہارت کا نام بدلیں"],"dw_dUJ": ["راستے کی نقل نہیں بن سکی"],"dx-TwN": ["پروجیکٹ کا آڈٹ چل رہا ہے"],@@ -4244,6 +4243,11 @@"h69WC6": ["بھیج دیا گیا"],"h7FzJC": ["لنک گراف کا جواب متوقع ساخت سے میل نہیں کھایا۔"],"h9QFb9": ["مہارت «", ["0"], "» حذف ہو گئی"],+ "hARd2R": [+ "سرور خودکار طور پر دوبارہ نہیں چل سکا۔ ٹرمینل میں `",+ ["cliCommand"],+ " stop all` چلا کر دیکھیں، پھر یہ پروجیکٹ دوبارہ کھولیں — یا مسئلہ برقرار رہے تو اپنا کمپیوٹر دوبارہ چالو کریں۔"+ ],"hAbGf0": [["ancestorPath"], " پر موجود OpenKnowledge پروجیکٹ کھول دیا گیا"],"hBMK4W": ["پروجیکٹ کے ٹیمپلیٹس"],"hCOLSd": [@@ -4739,6 +4743,7 @@"کوڈ کے متن کے اوپر ظاہر ہوتا ہے۔ Markdown میں `title=\"...\"` کے طور پر محفوظ اور بحال ہوتا ہے۔"],"lrhetp": ["+ ", ["overflow"], " مزید"],+ "lvHgM-": ["پہلے سے ترتیب دیا جا چکا ہے — ", ["cliCommand"], " آپ کے ٹرمینل میں دستیاب ہے"],"lwCV5v": [["0"], " ترمیم کے لیے نہیں کھل سکا: ", ["1"]],"lwvkBP": ["یہ پچھلے ہفتے OpenKnowledge کی طرف سے آپ کے صارف جرنل میں لکھی گئی ڈسپلے کنکشن کی خرابیاں بھی شامل کرتا ہے، ہر پیغام کو 200 حروف تک مختصر کر کے۔"@@ -6107,6 +6112,13 @@"zo3Dl7": ["تھمب نیلز بدلیں"],"zpfN9p": ["ابھی کوئی تبصرہ نہیں۔ ایک شامل کرنے کے لیے دستاویز میں متن منتخب کریں۔"],"zq2eBA": ["سورس میں دیکھیں"],+ "zqJgDd": [+ "OpenKnowledge کو کسی بھی ٹرمینل سے چلائیں — <0>",+ ["cliCommand"],+ "</0> پروجیکٹ کھولتا ہے، <1>",+ ["cliCommand"],+ " init</1> آپ کے ایجنٹس کو جوڑتا ہے۔"+ ],"zqQlBg": ["فی انڈیکسنگ درخواست زیادہ سے زیادہ متن کے ٹکڑے"],"zrP8HX": ["وہ frontmatter جس سے اس ٹیمپلیٹ سے بننے والی ہر دستاویز شروع ہوتی ہے۔ اقدار YAML میں ہیں — فہرست یوں لکھی جاتی ہے <0>[a, b]</0>؛ اور <1>{",diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 7fbf3e5ea..241c2ad94 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> کوئی معلوم جزو نہیں ہے۔ اسے کہmsgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> رینڈر نہیں ہو سکا (غالباً کوئی غلط پراپ)۔ خرابی دیکھنے کے لیے سورس کاپی کریں، یا بلاک حذف کر دیں۔"+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "<0>{cliCommand}</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ OpenKnowledge کا بلٹ اِن ٹرمینل اور AI ٹولز کام کرتے رہتے ہیں۔"++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ آپ کے AI ٹولز کام کرتے رہیں گے۔"+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> کو یہاں مرج نہیں کیا جا سکتا۔ رکھنے کے لیے ورژن چنیں۔"@@ -1323,16 +1333,6 @@ msgstr "<0>مرر اینکر نہیں ملا۔</0> <2>{src}</2> میں کوئیmsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>مرر کا ماخذ ہٹا دیا گیا۔</0> دستاویز <1>{src}</1> اب دستیاب نہیں۔"-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "<0>ok</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ OpenKnowledge کا بلٹ اِن ٹرمینل اور AI ٹولز کام کرتے رہتے ہیں۔"--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> بیرونی ٹرمینلز میں اس وقت تک نہیں چلے گا جب تک آپ اسے بعد میں فائل مینو سے شامل نہ کریں۔ آپ کے AI ٹولز کام کرتے رہیں گے۔"-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "چھلانگ کے لیے <0>اسپیس</0> · جھکنے کے لیے <1>↓</1>"@@ -1829,8 +1829,8 @@ msgstr "ٹیگ شامل کریں"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "اپنے ٹرمینل میں <0>ok</0> کمانڈ شامل کریں"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "اپنے ٹرمینل میں <0>{cliCommand}</0> کمانڈ شامل کریں"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "یہ رپورٹ پہلے ہی بھیجی جا رہی ہے"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "پہلے سے ترتیب دیا جا چکا ہے — ok آپ کے ٹرمینل میں دستیاب ہے"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "پہلے سے ترتیب دیا جا چکا ہے — {cliCommand} آپ کے ٹرمینل میں دستیاب ہے"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "سرور دوبارہ نہیں چل سکا — یہ کسی مختلف اکاؤنٹ کے تحت چل رہا ہے۔ اسے صاف کرنے کے لیے اپنا کمپیوٹر دوبارہ چالو کریں، پھر یہ پروجیکٹ دوبارہ کھولیں۔"#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "سرور خودکار طور پر دوبارہ نہیں چل سکا۔ ٹرمینل میں `ok stop all` چلا کر دیکھیں، پھر یہ پروجیکٹ دوبارہ کھولیں — یا مسئلہ برقرار رہے تو اپنا کمپیوٹر دوبارہ چالو کریں۔"+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "سرور خودکار طور پر دوبارہ نہیں چل سکا۔ ٹرمینل میں `{cliCommand} stop all` چلا کر دیکھیں، پھر یہ پروجیکٹ دوبارہ کھولیں — یا مسئلہ برقرار رہے تو اپنا کمپیوٹر دوبارہ چالو کریں۔"#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "سرور دوبارہ شروع نہیں ہو سکا۔ دوبارہ کوشش کرنے کے لیے اس فولڈر میں ok start چلائیں۔"#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "سرور دوبارہ نہیں چل سکا۔ اس فولڈر میں `ok start` آزمائیں۔"+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "سرور دوبارہ نہیں چل سکا۔ اس فولڈر میں `{cliCommand} start` آزمائیں۔"#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "تازہ ترین ترمیم"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "OpenKnowledge کو کسی بھی ٹرمینل سے چلائیں — <0>ok</0> پروجیکٹ کھولتا ہے، <1>ok init</1> آپ کے ایجنٹس کو جوڑتا ہے۔"+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "OpenKnowledge کو کسی بھی ٹرمینل سے چلائیں — <0>{cliCommand}</0> پروجیکٹ کھولتا ہے، <1>{cliCommand} init</1> آپ کے ایجنٹس کو جوڑتا ہے۔"#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "آپ کے نوٹ اور ایپ کے ورژن سمیت نجی طور پر OpenKnowledge ٹیم کو بھیجا جاتا ہے۔ کبھی عوامی طور پر شائع نہیں ہوتا۔"#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "آپ کا مواد ایمبیڈ کرنے کے لیے <0>{endpointHost}</0> کو بھیجا جاتا ہے۔ صرف اسی مشین پر محفوظ ہوتا ہے (<1>~/.ok/secrets.yml</1> میں)، کبھی پروجیکٹ میں نہیں۔"+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "آپ کا مواد ایمبیڈ کرنے کے لیے <0>{endpointHost}</0> کو بھیجا جاتا ہے۔ صرف اسی مشین پر محفوظ ہوتا ہے (<1>{secretsPath}</1> میں)، کبھی پروجیکٹ میں نہیں۔"#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex ee6ed25d5..54ad0491f 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -650,9 +650,6 @@"7Ongq0": ["把我的 AGENTS.md 文件精简到 4 万字符以内"],"7OwvEL": ["显示 HTML 预览"],"7PNNNs": ["这会把内容发送到你的电脑之外"],- "7PXYaF": [- "在你之后从「文件」菜单里添加之前,<0>ok</0> 不会在外部终端中运行。OpenKnowledge 的内置终端和 AI 工具照常可用。"- ],"7PzzBU": ["用户"],"7S7FNA": ["OpenKnowledge 检查了项目"],"7Voget": ["选择 ", ["name"]],@@ -719,6 +716,11 @@"8L0EPw": ["或者粘贴一个令牌"],"8OGgNM": ["打开或关闭可视化编辑器的查找。"],"8OxKZy": ["移动成功,但侧边栏可能不是最新的——请刷新以重新同步"],+ "8PBuqT": [+ "在你之后从「文件」菜单里添加之前,<0>",+ ["cliCommand"],+ "</0> 不会在外部终端中运行。OpenKnowledge 的内置终端和 AI 工具照常可用。"+ ],"8PifYj": ["Mermaid 图示"],"8PmoQF": ["在空白或活动的文本位置打开插入菜单。"],"8QLpZe": ["服务器已停止。重启服务器以重新连接。"],@@ -962,13 +964,9 @@"BH56dn": ["自定义显示文本"],"BKI4hX": ["在文件中查找"],"BMoSQy": ["此智能体不提供让 OpenKnowledge 代为设置的方式。请参考其设置指南中的手动步骤。"],- "BOsvJ8": [- "<0>ok</0> 在你稍后从“文件”菜单添加之前,无法在外部终端中运行。你的 AI 工具仍可正常使用。"- ],"BQKHuL": ["重启终端"],"BQu9Pg": ["符号链接"],"BRtKwG": ["若要在没有项目的情况下连接 AI 工具,请使用“文件 > 设置 OpenKnowledge 集成…”。"],- "BUyQnq": ["无法重启服务器。请在这个文件夹中尝试 `ok start`。"],"BVkqD9": ["索引维护已暂停,因为另一个 Git 属性控制 index.md。更新 .gitattributes 以便作用域 index.md 路径使用 merge=union,然后重试。"],@@ -1334,7 +1332,6 @@"Fqx38P": ["是什么妨碍了你?"],"Fr8JGg": ["zip 文件"],"FsEXax": ["操作没有成功。请查看服务器日志后重试。"],- "Fsx78O": ["把 <0>ok</0> 命令添加到你的终端"],"FumRbV": ["检查正在运行"],"FvMSms": ["重命名会改变磁盘上的文件,以及智能体选择这个模板时使用的 id。"],"Fx9aOF": ["OpenKnowledge 编辑了一个文档"],@@ -1719,9 +1716,6 @@"LHH461": ["完成设置"],"LJHTS5": ["选择把这条消息发送到哪里"],"LJXDjm": ["无法保存你的主题偏好。"],- "LJeFU6": [- "在任意终端中启动 OpenKnowledge——<0>ok</0> 打开项目,<1>ok init</1> 连接你的智能体。"- ],"LK83k1": ["输入“@”提及页面"],"LKIPzv": [["laterEdits", "plural", { "other": ["会移除这个文件上 ", "#", " 处较新的编辑。"] }]@@ -2098,9 +2092,6 @@"Pkw7J9": ["这个文件夹是空的。"],"Pp0Vgd": ["点击可安装到 ", ["label"]],"PpJy-V": ["端点未在规定时间内响应。"],- "PqYWiC": [- "无法自动重启服务器。请在终端中运行 `ok stop all`,然后重新打开这个项目——如果问题依旧,请重启电脑。"- ],"PrJYSN": ["这个文件夹还不在 GitHub 上。在推送之前链接不会生效。"],"PrVaZo": ["要卸载 OpenKnowledge 吗?"],"PrWQiT": ["将 Terminal 移到右侧"],@@ -2266,16 +2257,17 @@"RfaEio": ["切换源码注释"],"RfilGt": ["没有规则匹配你的筛选条件。"],"RgbKEe": ["你没有这个仓库的访问权限。"],- "RhX_1U": [+ "Rh_duv": ["会发送到 <0>",["endpointHost"],- "</0> 以生成你内容的嵌入向量。仅保存在这台电脑上(位于 <1>~/.ok/secrets.yml</1>),绝不保存在项目中。"+ "</0> 以生成你内容的嵌入向量。仅保存在这台电脑上(位于 <1>",+ ["secretsPath"],+ "</1>),绝不保存在项目中。"],"Rj01Fz": ["链接"],"RkXlPZ": ["GitHub"],"RlCInP": ["斜杠命令"],"RmBY0A": ["没有 git 远程"],- "RnrnTe": ["已配置完成——ok 现在可以在你的终端中使用"],"RoafuO": ["发送反馈"],"RobAKV": ["更新目标地址和可选的章节锚点。"],"RojU4W": ["来自 OpenKnowledge 的技能"],@@ -2488,6 +2480,11 @@"Uuj_R4": ["从模板新建"],"Uw6ERJ": ["无法复制:", ["detail"]],"UyROxs": [["mins", "plural", { "other": ["#", " 分钟前"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> 在你稍后从“文件”菜单添加之前,无法在外部终端中运行。你的 AI 工具仍可正常使用。"+ ],"V0Jk_K": ["未在此计算机上检测到 · 存在 OpenKnowledge 文件"],"V0mbgd": ["关闭此对话的标签页后才能删除"],"V2Gmie": [@@ -3140,6 +3137,7 @@"c9C7DQ": ["无法保存此设置。请重试。"],"cCd8Bs": ["剪切"],"cD3aew": ["重新生成嵌入向量会随着搜索进行,因此覆盖率会从零重新累积。"],+ "cD5D4S": ["无法重启服务器。请在这个文件夹中尝试 `", ["cliCommand"], " start`。"],"cEoyWz": ["向 ", ["keyName"], " 添加项目"],"cF9DyA": ["服务器重启后正在重新连接"],"cFCKYZ": ["拒绝"],@@ -3300,6 +3298,7 @@"dprWmL": ["本页中的锚点"],"dr1vFs": ["替换所有匹配项"],"drzzZw": ["预览标签页"],+ "ds0rjh": ["把 <0>", ["cliCommand"], "</0> 命令添加到你的终端"],"dw_3cv": ["重命名技能"],"dw_dUJ": ["复制路径失败"],"dx-TwN": ["正在运行项目审查"],@@ -3617,6 +3616,11 @@"h69WC6": ["已发送"],"h7FzJC": ["链接关系图响应的结构与预期不符。"],"h9QFb9": ["已删除技能“", ["0"], "”"],+ "hARd2R": [+ "无法自动重启服务器。请在终端中运行 `",+ ["cliCommand"],+ " stop all`,然后重新打开这个项目——如果问题依旧,请重启电脑。"+ ],"hAbGf0": ["已打开位于 ", ["ancestorPath"], " 的现有 OpenKnowledge 项目"],"hBMK4W": ["项目模板"],"hCOLSd": [@@ -4052,6 +4056,7 @@"loE6tM": ["无法切换到", ["language"], "。"],"lond3p": ["显示在代码正文上方。在 markdown 中以 `title=\"...\"` 的形式往返。"],"lrhetp": ["+ 还有 ", ["overflow"], " 个"],+ "lvHgM-": ["已配置完成——", ["cliCommand"], " 现在可以在你的终端中使用"],"lwCV5v": ["无法打开 ", ["0"], " 进行编辑:", ["1"]],"lwvkBP": ["它还会添加 OpenKnowledge 在过去一周内写入你的用户日志的显示连接错误,每条消息截断为 200 个字符。"@@ -5203,6 +5208,13 @@"zo3Dl7": ["切换缩略图"],"zpfN9p": ["还没有评论。在文档中选中文本即可添加。"],"zq2eBA": ["在源码中查看"],+ "zqJgDd": [+ "在任意终端中启动 OpenKnowledge——<0>",+ ["cliCommand"],+ "</0> 打开项目,<1>",+ ["cliCommand"],+ " init</1> 连接你的智能体。"+ ],"zqQlBg": ["每次索引请求的最大文本块数"],"zrP8HX": ["用这个模板创建的每个文档都以这段 frontmatter 开头。值使用 YAML——列表写作 <0>[a, b]</0>;<1>{",diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 8ce085e1c..127fb9f18 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> 不是已知的组件。复制源码以便在别处使msgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> 渲染失败(很可能是属性有误)。复制源码看看哪里出了问题,或删除这个块。"+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "在你之后从「文件」菜单里添加之前,<0>{cliCommand}</0> 不会在外部终端中运行。OpenKnowledge 的内置终端和 AI 工具照常可用。"++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> 在你稍后从“文件”菜单添加之前,无法在外部终端中运行。你的 AI 工具仍可正常使用。"+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> 无法在这里合并。请选择要保留的版本。"@@ -1323,16 +1333,6 @@ msgstr "<0>找不到镜像锚点。</0><2>{src}</2> 中不存在 <1>{mirrorSourcmsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>镜像来源已被移除。</0>文档 <1>{src}</1> 已不可用。"-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "在你之后从「文件」菜单里添加之前,<0>ok</0> 不会在外部终端中运行。OpenKnowledge 的内置终端和 AI 工具照常可用。"--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> 在你稍后从“文件”菜单添加之前,无法在外部终端中运行。你的 AI 工具仍可正常使用。"-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>空格</0>跳跃 · <1>↓</1>下蹲"@@ -1829,8 +1829,8 @@ msgstr "添加标签"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "把 <0>ok</0> 命令添加到你的终端"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "把 <0>{cliCommand}</0> 命令添加到你的终端"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "该报告已在发送中"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "已配置完成——ok 现在可以在你的终端中使用"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "已配置完成——{cliCommand} 现在可以在你的终端中使用"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "无法重启服务器——它正以另一个账户运行。请重启电脑清除后再打开这个项目。"#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "无法自动重启服务器。请在终端中运行 `ok stop all`,然后重新打开这个项目——如果问题依旧,请重启电脑。"+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "无法自动重启服务器。请在终端中运行 `{cliCommand} stop all`,然后重新打开这个项目——如果问题依旧,请重启电脑。"#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "无法重启服务器。请在此文件夹中运行 ok start 以重试。"#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "无法重启服务器。请在这个文件夹中尝试 `ok start`。"+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "无法重启服务器。请在这个文件夹中尝试 `{cliCommand} start`。"#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "最近一次编辑"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "在任意终端中启动 OpenKnowledge——<0>ok</0> 打开项目,<1>ok init</1> 连接你的智能体。"+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "在任意终端中启动 OpenKnowledge——<0>{cliCommand}</0> 打开项目,<1>{cliCommand} init</1> 连接你的智能体。"#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "会连同你的备注和应用版本一起私下发送给 OpenKnowledge 团队。绝不会公开发布。"#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "会发送到 <0>{endpointHost}</0> 以生成你内容的嵌入向量。仅保存在这台电脑上(位于 <1>~/.ok/secrets.yml</1>),绝不保存在项目中。"+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "会发送到 <0>{endpointHost}</0> 以生成你内容的嵌入向量。仅保存在这台电脑上(位于 <1>{secretsPath}</1>),绝不保存在项目中。"#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex d97c89aae..4825a4471 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -650,9 +650,6 @@"7Ongq0": ["把我的 AGENTS.md 檔案精簡到 4 萬字元以內"],"7OwvEL": ["顯示 HTML 預覽"],"7PNNNs": ["這會把內容送出你的電腦"],- "7PXYaF": [- "在你之後從「檔案」選單裡加上之前,<0>ok</0> 不會在外部終端機中執行。OpenKnowledge 的內建終端機和 AI 工具照常可用。"- ],"7PzzBU": ["使用者"],"7S7FNA": ["OpenKnowledge 檢查了專案"],"7Voget": ["選取 ", ["name"]],@@ -719,6 +716,11 @@"8L0EPw": ["或者貼上一個權杖"],"8OGgNM": ["開啟或關閉視覺化編輯器的尋找。"],"8OxKZy": ["移動成功,但側邊欄可能不是最新的——請重新整理以重新同步"],+ "8PBuqT": [+ "在你之後從「檔案」選單裡加上之前,<0>",+ ["cliCommand"],+ "</0> 不會在外部終端機中執行。OpenKnowledge 的內建終端機和 AI 工具照常可用。"+ ],"8PifYj": ["Mermaid 圖表"],"8PmoQF": ["在空白或作用中的文字位置開啟插入選單。"],"8QLpZe": ["伺服器已停止。重新啟動伺服器以重新連線。"],@@ -964,13 +966,9 @@"BH56dn": ["自訂顯示文字"],"BKI4hX": ["在檔案中尋找"],"BMoSQy": ["此代理程式未提供讓 OpenKnowledge 代為設定的方式。請參閱其設定指南中的手動步驟。"],- "BOsvJ8": [- "<0>ok</0> 在你稍後從「檔案」選單新增之前,無法在外部終端機中執行。你的 AI 工具仍可正常使用。"- ],"BQKHuL": ["重新啟動終端機"],"BQu9Pg": ["符號連結"],"BRtKwG": ["若要在沒有專案的情況下連接 AI 工具,請使用「檔案 > 設定 OpenKnowledge 整合…」。"],- "BUyQnq": ["無法重新啟動伺服器。請在這個資料夾中試試 `ok start`。"],"BVkqD9": ["索引維護已暫停,因為另一個 Git 屬性控制 index.md。更新 .gitattributes 以便作用域 index.md 路徑使用 merge=union,然後重試。"],@@ -1340,7 +1338,6 @@"Fqx38P": ["是什麼卡住了你?"],"Fr8JGg": ["zip 檔案"],"FsEXax": ["操作沒有成功。請查看伺服器記錄後再試一次。"],- "Fsx78O": ["把 <0>ok</0> 指令加到你的終端機"],"FumRbV": ["檢查正在執行"],"FvMSms": ["重新命名會改變磁碟上的檔案,以及代理挑選這個範本時使用的 id。"],"Fx9aOF": ["OpenKnowledge 編輯了一個文件"],@@ -1733,9 +1730,6 @@"LHH461": ["完成設定"],"LJHTS5": ["選擇要將這則訊息傳送到哪裡"],"LJXDjm": ["無法儲存你的主題偏好。"],- "LJeFU6": [- "在任何終端機中啟動 OpenKnowledge——<0>ok</0> 開啟專案,<1>ok init</1> 連接你的智慧代理。"- ],"LK83k1": ["輸入「@」提及頁面"],"LKIPzv": [["laterEdits", "plural", { "other": ["會移除這個檔案上 ", "#", " 處較新的編輯。"] }]@@ -2120,9 +2114,6 @@"Pkw7J9": ["這個資料夾是空的。"],"Pp0Vgd": ["點一下即可安裝到 ", ["label"]],"PpJy-V": ["端點沒有及時回應。"],- "PqYWiC": [- "無法自動重新啟動伺服器。請在終端機中執行 `ok stop all`,然後重新開啟這個專案——如果狀況持續,請重新啟動電腦。"- ],"PrJYSN": ["這個資料夾還不在 GitHub 上。在推送之前連結不會生效。"],"PrVaZo": ["要解除安裝 OpenKnowledge 嗎?"],"PrWQiT": ["將 Terminal 移到右側"],@@ -2288,16 +2279,17 @@"RfaEio": ["切換原始碼註解"],"RfilGt": ["沒有規則符合你的篩選條件。"],"RgbKEe": ["你沒有這個儲存庫的存取權。"],- "RhX_1U": [+ "Rh_duv": ["會送到 <0>",["endpointHost"],- "</0> 來產生你內容的嵌入向量。只存在這台電腦上(在 <1>~/.ok/secrets.yml</1>),絕不會存進專案。"+ "</0> 來產生你內容的嵌入向量。只存在這台電腦上(在 <1>",+ ["secretsPath"],+ "</1>),絕不會存進專案。"],"Rj01Fz": ["連結"],"RkXlPZ": ["GitHub"],"RlCInP": ["斜線指令"],"RmBY0A": ["沒有 git 遠端"],- "RnrnTe": ["已經設定好了——ok 現在可以在你的終端機中使用"],"RoafuO": ["傳送意見回饋"],"RobAKV": ["更新目標位置和選填的章節錨點。"],"RojU4W": ["來自 OpenKnowledge 的技能"],@@ -2510,6 +2502,11 @@"Uuj_R4": ["從範本新增"],"Uw6ERJ": ["無法複製:", ["detail"]],"UyROxs": [["mins", "plural", { "other": ["#", " 分鐘前"] }]],+ "V-pEOB": [+ "<0>",+ ["cliCommand"],+ "</0> 在你稍後從「檔案」選單新增之前,無法在外部終端機中執行。你的 AI 工具仍可正常使用。"+ ],"V0Jk_K": ["未在此電腦上偵測到 · 存在 OpenKnowledge 檔案"],"V0mbgd": ["關閉此對話的分頁後才能刪除"],"V2Gmie": [@@ -3160,6 +3157,7 @@"c9C7DQ": ["無法儲存此設定。請再試一次。"],"cCd8Bs": ["剪下"],"cD3aew": ["重新產生嵌入向量會隨著搜尋進行,所以涵蓋率會從零重新累積。"],+ "cD5D4S": ["無法重新啟動伺服器。請在這個資料夾中試試 `", ["cliCommand"], " start`。"],"cEoyWz": ["為 ", ["keyName"], " 新增項目"],"cF9DyA": ["伺服器重新啟動後正在重新連線"],"cFCKYZ": ["拒絕"],@@ -3320,6 +3318,7 @@"dprWmL": ["這個頁面中的錨點"],"dr1vFs": ["取代所有相符項"],"drzzZw": ["預覽分頁"],+ "ds0rjh": ["把 <0>", ["cliCommand"], "</0> 指令加到你的終端機"],"dw_3cv": ["重新命名技能"],"dw_dUJ": ["複製路徑失敗"],"dx-TwN": ["正在執行專案稽核"],@@ -3641,6 +3640,11 @@"h69WC6": ["已傳送"],"h7FzJC": ["連結關係圖回應的結構與預期不符。"],"h9QFb9": ["已刪除技能「", ["0"], "」"],+ "hARd2R": [+ "無法自動重新啟動伺服器。請在終端機中執行 `",+ ["cliCommand"],+ " stop all`,然後重新開啟這個專案——如果狀況持續,請重新啟動電腦。"+ ],"hAbGf0": ["已開啟位於 ", ["ancestorPath"], " 的現有 OpenKnowledge 專案"],"hBMK4W": ["專案範本"],"hCOLSd": [@@ -4072,6 +4076,7 @@"loE6tM": ["無法切換為", ["language"], "。"],"lond3p": ["顯示在程式碼內文上方。在 markdown 中以 `title=\"...\"` 的形式往返。"],"lrhetp": ["+ 還有 ", ["overflow"], " 個"],+ "lvHgM-": ["已經設定好了——", ["cliCommand"], " 現在可以在你的終端機中使用"],"lwCV5v": ["無法開啟 ", ["0"], " 進行編輯:", ["1"]],"lwvkBP": ["它還會加入 OpenKnowledge 在過去一週內寫入你的使用者日誌的顯示連線錯誤,每則訊息截斷為 200 個字元。"@@ -5231,6 +5236,13 @@"zo3Dl7": ["切換縮圖"],"zpfN9p": ["還沒有註解。在文件中選取文字就能加上一則。"],"zq2eBA": ["在原始碼中檢視"],+ "zqJgDd": [+ "在任何終端機中啟動 OpenKnowledge——<0>",+ ["cliCommand"],+ "</0> 開啟專案,<1>",+ ["cliCommand"],+ " init</1> 連接你的智慧代理。"+ ],"zqQlBg": ["每次索引請求的最大文字區塊數"],"zrP8HX": ["用這個範本建立的每份文件都會以這段 frontmatter 開頭。值使用 YAML——清單寫成 <0>[a, b]</0>;<1>{",diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 481df289f..dffcbc2bb 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -1307,6 +1307,16 @@ msgstr "<{componentName}> 不是已知的元件。複製原始碼以便在別處msgid "<{descriptorLabel}> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."msgstr "<{descriptorLabel}> 顯示失敗(很可能是屬性有誤)。複製原始碼看看哪裡出了問題,或刪除這個區塊。"+#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."+msgstr "在你之後從「檔案」選單裡加上之前,<0>{cliCommand}</0> 不會在外部終端機中執行。OpenKnowledge 的內建終端機和 AI 工具照常可用。"++#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal+#: src/components/McpConsentDialogBody.tsx+msgid "<0>{cliCommand}</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."+msgstr "<0>{cliCommand}</0> 在你稍後從「檔案」選單新增之前,無法在外部終端機中執行。你的 AI 工具仍可正常使用。"+#: src/components/DiffViewBoundary.tsxmsgid "<0>{filePath}</0> can't be merged here. Pick the version to keep."msgstr "<0>{filePath}</0> 無法在這裡合併。請選擇要保留的版本。"@@ -1323,16 +1333,6 @@ msgstr "<0>找不到鏡像錨點。</0><2>{src}</2> 中不存在 <1>{mirrorSourcmsgid "<0>Mirror source removed.</0> The doc <1>{src}</1> is no longer available."msgstr "<0>鏡像來源已移除。</0>文件 <1>{src}</1> 已無法使用。"-#. Warning shown when the user unchecks the PATH toggle on a desktop build with the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."-msgstr "在你之後從「檔案」選單裡加上之前,<0>ok</0> 不會在外部終端機中執行。OpenKnowledge 的內建終端機和 AI 工具照常可用。"--#. Warning shown when the user unchecks the PATH toggle on a desktop build without the built-in terminal-#: src/components/McpConsentDialogBody.tsx-msgid "<0>ok</0> won't run in external terminals until you add it later from the File menu. Your AI tools keep working."-msgstr "<0>ok</0> 在你稍後從「檔案」選單新增之前,無法在外部終端機中執行。你的 AI 工具仍可正常使用。"-#: src/components/OkBlobRunner.tsxmsgid "<0>Space</0> to jump · <1>↓</1> to duck"msgstr "<0>空白鍵</0>跳躍 · <1>↓</1>蹲下"@@ -1829,8 +1829,8 @@ msgstr "新增標籤"#. Toggle in the first-launch dialog that adds the ok CLI to the user's shell PATH#: src/components/McpConsentDialogBody.tsx#: src/components/settings/OkCliPathRow.tsx-msgid "Add the <0>ok</0> command to your terminal"-msgstr "把 <0>ok</0> 指令加到你的終端機"+msgid "Add the <0>{cliCommand}</0> command to your terminal"+msgstr "把 <0>{cliCommand}</0> 指令加到你的終端機"#: src/lib/keyboard-shortcuts.tsmsgid "Add the next matching source selection."@@ -2093,8 +2093,8 @@ msgid "Already sending this report"msgstr "這份回報已在傳送中"#: src/components/McpConsentDialogBody.tsx-msgid "Already set up — ok is available in your terminal"-msgstr "已經設定好了——ok 現在可以在你的終端機中使用"+msgid "Already set up — {cliCommand} is available in your terminal"+msgstr "已經設定好了——{cliCommand} 現在可以在你的終端機中使用"#: src/components/acp/ThreadView.tsxmsgid "Already signed in?"@@ -4600,16 +4600,16 @@ msgid "Couldn't restart the server — it's running under a different account. Rmsgstr "無法重新啟動伺服器——它正以另一個帳戶執行。請重新啟動電腦來清除,再重新開啟這個專案。"#: src/lib/install-server-drift-listener.ts-msgid "Couldn't restart the server automatically. Try running `ok stop all` in a terminal, then reopen this project — or restart your computer if it persists."-msgstr "無法自動重新啟動伺服器。請在終端機中執行 `ok stop all`,然後重新開啟這個專案——如果狀況持續,請重新啟動電腦。"+msgid "Couldn't restart the server automatically. Try running `{cliCommand} stop all` in a terminal, then reopen this project — or restart your computer if it persists."+msgstr "無法自動重新啟動伺服器。請在終端機中執行 `{cliCommand} stop all`,然後重新開啟這個專案——如果狀況持續,請重新啟動電腦。"#: src/components/settings/NetworkAccessSection.tsxmsgid "Couldn't restart the server. Run ok start in this folder to retry."msgstr "無法重新啟動伺服器。請在此資料夾中執行 ok start 以重試。"#: src/lib/restart-collab-server.ts-msgid "Couldn't restart the server. Try `ok start` in this folder."-msgstr "無法重新啟動伺服器。請在這個資料夾中試試 `ok start`。"+msgid "Couldn't restart the server. Try `{cliCommand} start` in this folder."+msgstr "無法重新啟動伺服器。請在這個資料夾中試試 `{cliCommand} start`。"#. placeholder {0}: theme.label#: src/components/settings/SavedThemesTiles.tsx@@ -8326,8 +8326,8 @@ msgstr "最近一次編輯"#. Subtext under the terminal toggle explaining what the ok command gives you#: src/components/McpConsentDialogBody.tsx-msgid "Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."-msgstr "在任何終端機中啟動 OpenKnowledge——<0>ok</0> 開啟專案,<1>ok init</1> 連接你的智慧代理。"+msgid "Launch OpenKnowledge from any terminal — <0>{cliCommand}</0> opens a project, <1>{cliCommand} init</1> connects your agents."+msgstr "在任何終端機中啟動 OpenKnowledge——<0>{cliCommand}</0> 開啟專案,<1>{cliCommand} init</1> 連接你的智慧代理。"#: src/editor/components/Pdf.tsxmsgid "Layout"@@ -13257,8 +13257,8 @@ msgid "Sent privately to the OpenKnowledge team, along with your note and app vemsgstr "會連同你的備註和應用程式版本一起私下寄給 OpenKnowledge 團隊。絕不會公開發布。"#: src/components/settings/SearchSection.tsx-msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>~/.ok/secrets.yml</1>), never in the project."-msgstr "會送到 <0>{endpointHost}</0> 來產生你內容的嵌入向量。只存在這台電腦上(在 <1>~/.ok/secrets.yml</1>),絕不會存進專案。"+msgid "Sent to <0>{endpointHost}</0> to embed your content. Stored on this machine only (in <1>{secretsPath}</1>), never in the project."+msgstr "會送到 <0>{endpointHost}</0> 來產生你內容的嵌入向量。只存在這台電腦上(在 <1>{secretsPath}</1>),絕不會存進專案。"#: src/comments/store.tsmsgid "Sent, but the comments could not be marked done — they're still waiting to send."diff --git a/packages/app/tests/stress/fixtures/handoff-mocks.ts b/packages/app/tests/stress/fixtures/handoff-mocks.tsindex 312abcf09..b898d119f 100644--- a/packages/app/tests/stress/fixtures/handoff-mocks.ts+++ b/packages/app/tests/stress/fixtures/handoff-mocks.ts@@ -565,6 +565,7 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): PappVersion: 'test-0.0.0',instanceLabel: null,mcpServerName: null,+ cliCommandName: null,getPathForFile: () => null,setDisplayLockCrashKey: () => undefined,} satisfies OkDesktopBridge;diff --git a/packages/cli/src/cli.test.ts b/packages/cli/src/cli.test.tsindex fe8d02d68..d803517a3 100644--- a/packages/cli/src/cli.test.ts+++ b/packages/cli/src/cli.test.ts@@ -56,7 +56,7 @@ describe('ok ui tombstone', () => {`,],cwd: CLI_PACKAGE_ROOT,- env: { ...process.env, NO_COLOR: '1' },+ env: { ...process.env, NO_COLOR: '1', OK_CHANNEL: 'stable' },});const stderr = result.stderr.toString();@@ -67,6 +67,58 @@ describe('ok ui tombstone', () => {}, 30_000);});+function runCliSource(args: readonly string[], channel: 'stable' | 'beta') {+ return Bun.spawnSync({+ cmd: [+ 'node',+ '--import',+ 'tsx',+ '--conditions=development',+ '-e',+ `+ process.argv = [process.execPath, process.cwd() + '/src/cli.ts', ...${JSON.stringify(args)}];+ await import('./src/cli.ts');+ `,+ ],+ cwd: CLI_PACKAGE_ROOT,+ env: { ...process.env, NO_COLOR: '1', OK_CHANNEL: channel },+ });+}++describe('CLI names the running channel command', () => {+ test('Stable --help keeps its program name and examples', () => {+ const result = runCliSource(['--help'], 'stable');+ const stdout = result.stdout.toString();+ expect(result.exitCode).toBe(0);+ expect(stdout).toContain('Usage: open-knowledge [options] [file | command]');+ expect(stdout).toContain(+ ' ok notes.md Open a single markdown file in the editor',+ );+ expect(stdout).toContain(+ ' ok open ./start.md Open a file whose name collides with a subcommand',+ );+ }, 30_000);++ test('Beta --help names open-knowledge-beta and ok-beta', () => {+ const result = runCliSource(['--help'], 'beta');+ const stdout = result.stdout.toString();+ expect(result.exitCode).toBe(0);+ expect(stdout).toContain('Usage: open-knowledge-beta [options] [file | command]');+ expect(stdout).toContain(+ ' ok-beta notes.md Open a single markdown file in the editor',+ );+ expect(stdout).not.toMatch(/^ {2}ok /m);+ }, 30_000);++ test('Beta `ui` tombstone points at ok-beta start', () => {+ const result = runCliSource(['ui'], 'beta');+ expect(result.exitCode).toBe(1);+ expect(result.stderr.toString()).toContain(+ '`ok-beta ui` was removed — the editor UI is served by the project server. Run `ok-beta start` instead.',+ );+ }, 30_000);+});+describe('CLI --version notice', () => {test('--version emits the version plus the GPL copyright / free-software / no-warranty trio', () => {const result = Bun.spawnSync({diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.tsindex 8784f8c1f..20ca70f97 100644--- a/packages/cli/src/cli.ts+++ b/packages/cli/src/cli.ts@@ -12,7 +12,12 @@ trustSystemCertificates();import { spawn } from 'node:child_process';import { resolve } from 'node:path';-import { formatIgnoredCommittedKey, humanFormat } from '@inkeep/open-knowledge-core';+import {+ currentCliCommandName,+ currentDesktopProduct,+ formatIgnoredCommittedKey,+ humanFormat,+} from '@inkeep/open-knowledge-core';import { type Config, ConfigSchema, trustSystemCertificates } from '@inkeep/open-knowledge-server';import { Command } from 'commander';import { getCliLogger, initCliLogger } from './cli-logger.ts';@@ -58,7 +63,7 @@ const program = new Command();let resolvedConfig: Config;program- .name('open-knowledge')+ .name(currentDesktopProduct().cliCommandNames[1]).description('Local-first knowledge base with CRDT collaboration').usage('[options] [file | command]').version(buildVersionNotice(PACKAGE_VERSION))@@ -161,13 +166,13 @@ program.addCommand(lintCommand(() => resolvedConfig));program.addCommand(auditCommand(() => resolvedConfig));const uiTombstone = new Command('ui')- .description('Removed: the editor UI is served by `ok start`')+ .description(`Removed: the editor UI is served by \`${currentCliCommandName()} start\``).allowUnknownOption().allowExcessArguments().argument('[args...]').action(() => {console.error(- '`ok ui` was removed — the editor UI is served by the project server. Run `ok start` instead.',+ `\`${currentCliCommandName()} ui\` was removed — the editor UI is served by the project server. Run \`${currentCliCommandName()} start\` instead.`,);process.exit(1);});@@ -204,14 +209,15 @@ program.addCommand(shareCommand());program.addCommand(sharingCommand());+const helpCommand = currentCliCommandName();program.addHelpText('after',`Examples:- ok Launch the desktop app (or start a local server if it isn't installed)- ok notes.md Open a single markdown file in the editor- ok ./specs/foo/SPEC.md Open a file inside a project, focused on that doc- ok open ./start.md Open a file whose name collides with a subcommand`,+ ${helpCommand} Launch the desktop app (or start a local server if it isn't installed)+ ${helpCommand} notes.md Open a single markdown file in the editor+ ${helpCommand} ./specs/foo/SPEC.md Open a file inside a project, focused on that doc+ ${helpCommand} open ./start.md Open a file whose name collides with a subcommand`,);{diff --git a/packages/cli/src/commands/audit.test.ts b/packages/cli/src/commands/audit.test.tsindex eabf846cc..1dcd3adb3 100644--- a/packages/cli/src/commands/audit.test.ts+++ b/packages/cli/src/commands/audit.test.ts@@ -4,9 +4,17 @@ import { join } from 'node:path';import type { ValidationAuditResponse } from '@inkeep/open-knowledge-core';import type { Config } from '@inkeep/open-knowledge-server';import { RUNTIME_VERSION } from '@inkeep/open-knowledge-server';-import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { runAudit, toContentRelativeTarget } from './audit.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+const minimalConfig = { content: { dir: '.' } } as Config;function payload(over: Partial<ValidationAuditResponse> = {}): ValidationAuditResponse {@@ -301,6 +309,20 @@ describe('runAudit', () => {expect(err.join('\n')).toContain('ok lint');});+ test.each([+ ['stable', 'ok'],+ ['beta', 'ok-beta'],+ ])('no-server guidance names the %s command', async (channel, command) => {+ vi.stubEnv('OK_CHANNEL', channel);+ rmSync(join(dir, '.ok', 'local', 'server.lock'));+ const { io, err } = collectIo();++ expect(await runAudit(undefined, {}, minimalConfig, dir, dir, io)).toBe(1);+ expect(err.join('\n')).toContain(+ `Start it with \`${command} start\` (or open OK Desktop) and re-run. For headless lint-only checks, use \`${command} lint\`.`,+ );+ });+test('rejects a target outside the content dir before dialing the server', async () => {const { urls } = stubFetch(payload());const { io, err } = collectIo();diff --git a/packages/cli/src/commands/audit.ts b/packages/cli/src/commands/audit.tsindex d8e80aab3..bdeaa6456 100644--- a/packages/cli/src/commands/audit.ts+++ b/packages/cli/src/commands/audit.ts@@ -1,6 +1,7 @@import { isAbsolute, relative, resolve, sep } from 'node:path';import {clientVersionHeaders,+ currentCliCommandName,ProblemDetailsSchema,type ValidationAuditResponse,ValidationAuditResponseSchema,@@ -40,9 +41,13 @@ const LegacyAuditErrorSchema = z.object({message: z.string().optional(),});-const SERVER_NOT_RUNNING_MESSAGE =- 'OpenKnowledge server is not running — the links validator needs the live backlink index. ' +- 'Start it with `ok start` (or open OK Desktop) and re-run. For headless lint-only checks, use `ok lint`.';+function serverNotRunningMessage(): string {+ const command = currentCliCommandName();+ return (+ 'OpenKnowledge server is not running — the links validator needs the live backlink index. ' ++ `Start it with \`${command} start\` (or open OK Desktop) and re-run. For headless lint-only checks, use \`${command} lint\`.`+ );+}export function auditCommand(getConfig: () => Config): Command {return new Command('audit')@@ -86,7 +91,7 @@ export async function runAudit(const lock = readServerLock(resolveLockDir(projectDir));if (!lock || lock.port <= 0) {- io.err(SERVER_NOT_RUNNING_MESSAGE);+ io.err(serverNotRunningMessage());return 1;}diff --git a/packages/cli/src/commands/clone.test.ts b/packages/cli/src/commands/clone.test.tsindex 5bca87caa..52a161a0d 100644--- a/packages/cli/src/commands/clone.test.ts+++ b/packages/cli/src/commands/clone.test.ts@@ -5,7 +5,7 @@ import { join, resolve } from 'node:path';import { pathToFileURL } from 'node:url';import { type Config, UnsafeIncomingSymlinkError } from '@inkeep/open-knowledge-server';import simpleGit, { type SimpleGitOptions } from 'simple-git';-import { afterEach, beforeEach, describe, expect, it, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, it, test, vi } from 'vitest';import { configureTestGitRepository } from '../../../../test-support/configure-git-fixture.test-helper.ts';import type { ExecFileSyncFn, GhDetectResult } from '../auth/gh-detect.ts';import { detectGh } from '../auth/gh-detect.ts';@@ -31,6 +31,14 @@ import {shouldSkipAuthForPublicRepo,} from './clone.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+describe('resolveSelfCliArgs', () => {it('returns [execPath, cliEntry] from argv', () => {expect(resolveSelfCliArgs(['/usr/bin/node', '/app/cli.mjs', 'clone'], '/usr/bin/node')).toEqual(@@ -1514,3 +1522,24 @@ describe('runClone git preflight', () => {}});});++describe('formatCloneAuthFailure names the running channel command', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test.each([+ ['stable', 'ok'],+ ['beta', 'ok-beta'],+ ])('%s', (channel, command) => {+ vi.stubEnv('OK_CHANNEL', channel);+ const login = formatCloneAuthFailure({+ error: new Error('fatal: could not read Username for https://github.com'),+ url: 'https://github.com/inkeep/playbooks',+ });+ expect(login).toContain(` 1. Run: ${command} auth login`);+ expect(login).toContain(+ ` 2. Then re-run: ${command} clone https://github.com/inkeep/playbooks`,+ );+ });+});diff --git a/packages/cli/src/commands/clone.ts b/packages/cli/src/commands/clone.tsindex 10459a30b..b572e0ac1 100644--- a/packages/cli/src/commands/clone.ts+++ b/packages/cli/src/commands/clone.ts@@ -4,6 +4,7 @@ import {type ClassifiedGitAuthError,classifyGitAuthError,credentialHostFromRemoteUrl,+ currentCliCommandName,isBranchNotFoundGitError,isLoginFixableGitAuthError,shellSingleQuote,@@ -384,7 +385,7 @@ function quoteIfNeeded(s: string): string {function reconstructCloneCommand(url: string, branch: string | null | undefined): string {const branchSuffix =typeof branch === 'string' && branch.length > 0 ? ` -b ${quoteIfNeeded(branch)}` : '';- return `ok clone ${quoteIfNeeded(url)}${branchSuffix}`;+ return `${currentCliCommandName()} clone ${quoteIfNeeded(url)}${branchSuffix}`;}export function formatCloneAuthFailure(opts: {@@ -405,7 +406,7 @@ export function formatCloneAuthFailure(opts: {`✗ Couldn't clone ${displayUrl} — authentication is required.`,'',' To fix:',- ' 1. Run: ok auth login',+ ` 1. Run: ${currentCliCommandName()} auth login`,` 2. Then re-run: ${reRun}`,].join('\n');}@@ -435,7 +436,7 @@ export function formatCloneAuthFailure(opts: {'',' To fix:',' 1. Create a token with `repo` scope at https://github.com/settings/tokens',- ' 2. Run: ok auth pat',+ ` 2. Run: ${currentCliCommandName()} auth pat`,` 3. Then re-run: ${reconstructCloneCommand(displayUrl, opts.branch)}`,].join('\n');}diff --git a/packages/cli/src/commands/deinit.test.ts b/packages/cli/src/commands/deinit.test.tsindex b0203b6d2..941bd5bfe 100644--- a/packages/cli/src/commands/deinit.test.ts+++ b/packages/cli/src/commands/deinit.test.ts@@ -447,3 +447,19 @@ test('keeps project state when a later skill removal fails', async () => {rmSync(home, { recursive: true, force: true });}});++describe('deinit help names the running channel command', () => {+ test.each([+ ['stable', 'ok'],+ ['beta', 'ok-beta'],+ ])('%s', (channel, command) => {+ vi.stubEnv('OK_CHANNEL', channel);+ try {+ expect(deinitCommand().description()).toContain(+ `Re-run \`${command} start\` to re-scaffold.`,+ );+ } finally {+ vi.unstubAllEnvs();+ }+ });+});diff --git a/packages/cli/src/commands/deinit.ts b/packages/cli/src/commands/deinit.tsindex 004a4b117..bc939e621 100644--- a/packages/cli/src/commands/deinit.ts+++ b/packages/cli/src/commands/deinit.ts@@ -1,7 +1,7 @@import { existsSync } from 'node:fs';import { homedir } from 'node:os';import { join, resolve } from 'node:path';-import { OK_USER_HOME_AUTH_FILE } from '@inkeep/open-knowledge-core';+import { currentCliCommandName, OK_USER_HOME_AUTH_FILE } from '@inkeep/open-knowledge-core';import { isHomeDir } from '@inkeep/open-knowledge-server';import { Command } from 'commander';import { accent, dim, error as errorColor, warning } from '../ui/colors.ts';@@ -48,7 +48,7 @@ export async function runDeinit(opts: DeinitOptions = {}): Promise<DeinitResult>`${errorColor('Refusing to deinit your home directory.')}\n` +` ${projectRoot}/.ok is OpenKnowledge's user-global directory (global.yml, skills/,\n` +` ${OK_USER_HOME_AUTH_FILE}), not a project. Removing it would delete your global settings and skills.\n` +- ` To remove OpenKnowledge everywhere, use 'ok uninstall'.`,+ ` To remove OpenKnowledge everywhere, use '${currentCliCommandName()} uninstall'.`,exitCode: 64,};}@@ -113,7 +113,7 @@ export async function runDeinit(opts: DeinitOptions = {}): Promise<DeinitResult>export function deinitCommand(): Command {return new Command('deinit').description(- 'Remove OpenKnowledge from this project (its .ok/, editor MCP entries, git-exclude lines, shadow repo) while leaving your markdown content untouched. Re-run `ok start` to re-scaffold.',+ `Remove OpenKnowledge from this project (its .ok/, editor MCP entries, git-exclude lines, shadow repo) while leaving your markdown content untouched. Re-run \`${currentCliCommandName()} start\` to re-scaffold.`,).argument('[path]', 'Project directory (defaults to the current project)').option('-y, --yes', 'Skip the confirmation prompt')diff --git a/packages/cli/src/commands/editors.ts b/packages/cli/src/commands/editors.tsindex baa22d118..1ef149250 100644--- a/packages/cli/src/commands/editors.ts+++ b/packages/cli/src/commands/editors.ts@@ -6,6 +6,7 @@ import {EDITOR_LABELS as CORE_EDITOR_LABELS,HOSTS_WITH_USER_SKILL_DIR as CORE_HOSTS_WITH_USER_SKILL_DIR,type EditorId as CoreEditorId,+ currentCliCommandName,currentDesktopProduct,currentMcpServerName,DESKTOP_PRODUCTS,@@ -709,7 +710,7 @@ export const EDITOR_TARGETS: Record<EditorId, EditorMcpTarget> & { pi: ManagedFilabel: EDITOR_LABELS.pi,configPath: () => {throw new Error(- `Pi has no user-global MCP config; OK's integration is the project-scoped bridge extension at ${piExtensionProjectPath(currentDesktopProduct())} (run \`ok init\` in the project).`,+ `Pi has no user-global MCP config; OK's integration is the project-scoped bridge extension at ${piExtensionProjectPath(currentDesktopProduct())} (run \`${currentCliCommandName()} init\` in the project).`,);},format: 'file',diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.tsindex 92666f214..91874a9d3 100644--- a/packages/cli/src/commands/init.ts+++ b/packages/cli/src/commands/init.ts@@ -3,6 +3,7 @@ import { homedir } from 'node:os';import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';import { inspect } from 'node:util';import {+ currentCliCommandName,currentMcpServerName,type McpLauncherDeclineReason,OPENKNOWLEDGE_SKILLS_REPO,@@ -530,8 +531,7 @@ async function promptSharingMode({name: 'Local only (keep out of git via .git/info/exclude)',value: 'local-only',- description:- 'OK config stays on this machine only; teammates do not see it. Safe escape hatch via `ok config-sharing share`.',+ description: `OK config stays on this machine only; teammates do not see it. Safe escape hatch via \`${currentCliCommandName()} config-sharing share\`.`,},],});@@ -1161,7 +1161,7 @@ export async function runInit(options: InitCommandOptions = {}): Promise<InitCom`${warning(`[ok] Content scope promoted to the git repo root: ${projectRoot}`)}\n` +` Ran in ${promotedFromDir}/, but .ok/ lives at the git root (one .ok/ per git repo),\n` +` so the whole repo is now the content scope. To narrow it, re-run with\n` +- ` \`ok init --content-dir .\`, or set content.dir: ${promotedFromDir} in ${OK_DIR}/config.yml.\n`,+ ` \`${currentCliCommandName()} init --content-dir .\`, or set content.dir: ${promotedFromDir} in ${OK_DIR}/config.yml.\n`,);}@@ -1711,7 +1711,7 @@ export function formatInitResult(result: InitCommandResult, cwd: string): stringlines.push(` ${dim('none installed — skipped for this run (--no-skills)')}`);lines.push(` ${dim('No user-global skill was installed or removed; any already on this')}`);lines.push(` ${dim('machine are untouched. Run init without the flag to install them:')}`);- lines.push(` ${dim(' ok init')}`);+ lines.push(` ${dim(` ${currentCliCommandName()} init`)}`);lines.push(` ${dim('--no-skills covers user-global skills only, not project-local skills.')}`,);@@ -1746,12 +1746,12 @@ export function formatInitResult(result: InitCommandResult, cwd: string): stringbreak;case 'opted-out':lines.push(- ` ${name} ${dim(`not installed — turned off on this machine; reinstall with ok init --skills ${bundle.bundleId} or Settings → Skills Studio`)}`,+ ` ${name} ${dim(`not installed — turned off on this machine; reinstall with ${currentCliCommandName()} init --skills ${bundle.bundleId} or Settings → Skills Studio`)}`,);break;case 'decision-read-failed':lines.push(- ` ${warning(`${name} not installed — could not read whether it is turned off on this machine; rerun ok init once ${okUserHomeDisplayPath(SKILL_STATE_FILENAME)} is readable`)}`,+ ` ${warning(`${name} not installed — could not read whether it is turned off on this machine; rerun ${currentCliCommandName()} init once ${okUserHomeDisplayPath(SKILL_STATE_FILENAME)} is readable`)}`,);break;default: {@@ -1765,7 +1765,7 @@ export function formatInitResult(result: InitCommandResult, cwd: string): stringlines.push(` ${dim('Opt out: DO_NOT_TRACK=1, or Settings → User → Preferences.')}`);}if (bundles.some((b) => b.result === 'failed')) {- lines.push(` ${warning('Retry with: ok repair-skills')}`);+ lines.push(` ${warning(`Retry with: ${currentCliCommandName()} repair-skills`)}`);}}@@ -1795,11 +1795,11 @@ export function formatInitResult(result: InitCommandResult, cwd: string): string` .ok/ was initialized at ${cwd} because it contains a .git folder (one .ok/ per git repo),`,);lines.push(- ` not the sub-folder you ran \`ok init\` in${result.promotedFromDir ? ` (${result.promotedFromDir})` : ''}. The whole repo is now the content scope.`,+ ` not the sub-folder you ran \`${currentCliCommandName()} init\` in${result.promotedFromDir ? ` (${result.promotedFromDir})` : ''}. The whole repo is now the content scope.`,);if (result.promotedFromDir) {lines.push(- ` To scope to just that sub-folder, re-run \`ok init --content-dir .\` from there, or set`,+ ` To scope to just that sub-folder, re-run \`${currentCliCommandName()} init --content-dir .\` from there, or set`,);lines.push(` content.dir: ${result.promotedFromDir} in ${OK_DIR}/config.yml.`);}@@ -1817,8 +1817,8 @@ export function formatInitResult(result: InitCommandResult, cwd: string): stringlines.push(...formatSharingOutcome(result.sharing, cwd));const seedLines = (indent: string): string[] => [- `${indent}- ${info('ok seed --list-packs')} — browse the starter packs`,- `${indent}- ${info('ok seed')} — scaffold an empty repo`,+ `${indent}- ${info(`${currentCliCommandName()} seed --list-packs`)} — browse the starter packs`,+ `${indent}- ${info(`${currentCliCommandName()} seed`)} — scaffold an empty repo`,];if (anyWritten) {const seen = new Set<EditorId>();@@ -2107,7 +2107,7 @@ export function formatSharingOutcome(outcome: SharingOutcome, cwd: string): strilines.push(raw.length > 0 ? ` ${raw}` : '');}lines.push(- ` Re-run ${info('ok config-sharing unshare')} after resolving to complete the switch.`,+ ` Re-run ${info(`${currentCliCommandName()} config-sharing unshare`)} after resolving to complete the switch.`,);return lines;case 'no-exclude': {@@ -2116,7 +2116,7 @@ export function formatSharingOutcome(outcome: SharingOutcome, cwd: string): striwarning('Sharing mode: --local-only requested but no git repo found — option ignored'),);lines.push(- ` Run ${info('git init')} (or open this folder via OK Desktop, which can scaffold a repo) and then ${info('ok config-sharing unshare')}.`,+ ` Run ${info('git init')} (or open this folder via OK Desktop, which can scaffold a repo) and then ${info(`${currentCliCommandName()} config-sharing unshare`)}.`,);} else if (outcome.reason === 'no-git') {return [];diff --git a/packages/cli/src/commands/open.test.ts b/packages/cli/src/commands/open.test.tsindex 4c0ab872a..5956215a3 100644--- a/packages/cli/src/commands/open.test.ts+++ b/packages/cli/src/commands/open.test.ts@@ -1,4 +1,4 @@-import { describe, expect, test } from 'vitest';+import { afterEach, describe, expect, test, vi } from 'vitest';import type { OpenTargetOptions } from '../utils/open-target.ts';import {type DesktopAppTarget,@@ -509,3 +509,27 @@ describe('running from a subdirectory of a project', () => {expect(opened[0]).toContain(encodeURIComponent('/other/project'));});});++describe('runOpen hints name the running channel command', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test.each([+ ['stable', 'ok'],+ ['beta', 'ok-beta'],+ ])('%s', async (channel, command) => {+ vi.stubEnv('OK_CHANNEL', channel);+ const missing = makeDeps();+ expect(await runOpen('', { project: '/abs/proj' }, missing.deps)).toBe(1);+ expect(missing.errors).toEqual([+ `Nothing to open: pass a doc, folder, or skill name (e.g. \`${command} open specs/foo/SPEC\`).`,+ ]);++ const noTarget = makeDeps();+ expect(await runOpen('notes', { project: '/abs/proj' }, noTarget.deps)).toBe(1);+ expect(noTarget.errors.join('\n')).toContain(+ `or run \`${command} start\` to serve the editor, then retry.`,+ );+ });+});diff --git a/packages/cli/src/commands/open.ts b/packages/cli/src/commands/open.tsindex ff17c80d3..4a2bcc36e 100644--- a/packages/cli/src/commands/open.ts+++ b/packages/cli/src/commands/open.ts@@ -1,6 +1,10 @@import { statSync } from 'node:fs';import { dirname, join, resolve } from 'node:path';-import { MANAGED_ARTIFACT_SCOPES, type SkillScope } from '@inkeep/open-knowledge-core';+import {+ currentCliCommandName,+ MANAGED_ARTIFACT_SCOPES,+ type SkillScope,+} from '@inkeep/open-knowledge-core';import {encodeDocName,encodeFolderRoute,@@ -82,7 +86,7 @@ function isUnsafeName(name: string): boolean {function noTargetError(deps: OpenDeps): number {deps.error('No OpenKnowledge desktop app found and no UI is running. ' +- 'Install it from https://openknowledge.ai/download, or run `ok start` to serve the editor, then retry.',+ `Install it from https://openknowledge.ai/download, or run \`${currentCliCommandName()} start\` to serve the editor, then retry.`,);return 1;}@@ -132,7 +136,7 @@ export async function runOpen(name: string, options: OpenOptions, deps: OpenDepsif (!cleanName) {deps.error(- 'Nothing to open: pass a doc, folder, or skill name (e.g. `ok open specs/foo/SPEC`).',+ `Nothing to open: pass a doc, folder, or skill name (e.g. \`${currentCliCommandName()} open specs/foo/SPEC\`).`,);return 1;}diff --git a/packages/cli/src/commands/start.test.ts b/packages/cli/src/commands/start.test.tsindex abedd90e7..6b1060730 100644--- a/packages/cli/src/commands/start.test.ts+++ b/packages/cli/src/commands/start.test.ts@@ -46,6 +46,14 @@ import {withIdleShutdownProcessExit,} from './start.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+describe('resolveHost', () => {test('falls back to HOST env when --bind is absent', () => {expect(resolveHost({}, { HOST: '0.0.0.0' })).toBe('0.0.0.0');@@ -1914,3 +1922,29 @@ describe('startCommand — flag-conflict guards (exit 2)', () => {expect(stderr).toContain('--react-shell-dist-dir');});});++describe('start messages name the running channel command', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test('Stable keeps ok in the missing-setup error and the reuse notice', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(new OkDirMissingError('/p').message).toBe(+ "This directory isn't set up yet. Run `ok init` first, then `ok start` again.",+ );+ expect(formatServerReuseNotice({ url: 'u', pid: 7, servesUi: true })[2]).toBe(+ 'Leaving it running — run `ok stop` first if you want a fresh server.',+ );+ });++ test('Beta names ok-beta in the missing-setup error and the reuse notice', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(new OkDirMissingError('/p').message).toBe(+ "This directory isn't set up yet. Run `ok-beta init` first, then `ok-beta start` again.",+ );+ expect(formatServerReuseNotice({ url: 'u', pid: 7, servesUi: true })[2]).toBe(+ 'Leaving it running — run `ok-beta stop` first if you want a fresh server.',+ );+ });+});diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.tsindex 88f0b89ed..fc7ec5ad2 100644--- a/packages/cli/src/commands/start.ts+++ b/packages/cli/src/commands/start.ts@@ -7,6 +7,7 @@ import { basename, dirname, resolve as pathResolve } from 'node:path';import { setTimeout as wait } from 'node:timers/promises';import {applyConfigOverlay,+ currentCliCommandName,DEFAULT_SERVER_HOST,type EnvConfigLayer,EnvVarError,@@ -158,7 +159,9 @@ export function deriveServerProcessTitle(cwd: string): string {export class OkDirMissingError extends Error {readonly cwd: string;constructor(cwd: string) {- super("This directory isn't set up yet. Run `ok init` first, then `ok start` again.");+ super(+ `This directory isn't set up yet. Run \`${currentCliCommandName()} init\` first, then \`${currentCliCommandName()} start\` again.`,+ );this.name = 'OkDirMissingError';this.cwd = cwd;}@@ -170,7 +173,7 @@ export class EphemeralProjectDirNotThrowawayError extends Error {super(`--project-dir must be a throwaway ${EPHEMERAL_PROJECT_DIR_PREFIX}* directory under the OS temp dir. ` +`Refusing to write ephemeral session state into ${projectDir}. ` +- 'Omit --project-dir to let ok start create (and clean up) its own.',+ `Omit --project-dir to let ${currentCliCommandName()} start create (and clean up) its own.`,);this.name = 'EphemeralProjectDirNotThrowawayError';this.projectDir = projectDir;@@ -924,7 +927,7 @@ export function formatServerReuseNotice(info: ServerReuseInfo): string[] {return [`${holder} (pid ${info.pid}).`,` ${info.url}`,- 'Leaving it running — run `ok stop` first if you want a fresh server.',+ `Leaving it running — run \`${currentCliCommandName()} stop\` first if you want a fresh server.`,];}@@ -960,13 +963,11 @@ export function tryDescribeLockCollision(try {const meta = serverModule.readServerLock(serverModule.resolveLockDir(cwd));- if (!meta) {- return 'OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.';- }- if (meta.kind === 'mcp-spawned') {- return 'An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.';+ const command = currentCliCommandName();+ if (meta?.kind === 'mcp-spawned') {+ return `An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run \`${command} stop\`.`;}- return 'OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.';+ return `OpenKnowledge server is already running on this project — check \`${command} status\` or \`${command} stop\`.`;} catch {return null;}diff --git a/packages/cli/src/commands/sync-credential-helper.test.ts b/packages/cli/src/commands/sync-credential-helper.test.tsindex 20df80214..22df81366 100644--- a/packages/cli/src/commands/sync-credential-helper.test.ts+++ b/packages/cli/src/commands/sync-credential-helper.test.ts@@ -1184,6 +1184,15 @@ describe("ok sync without a running server authenticates through OpenKnowledge'snamed: `OpenKnowledge's GitHub sign-in for ${GITHUB_HOST}`,remedy: `ok auth login --host ${GITHUB_HOST}`,},+ {+ source: "OpenKnowledge Beta's own stored sign-in",+ channel: 'beta',+ okStoreToken: REVOKED_OK_TOKEN,+ detectGh: ghUnavailable,+ rejected: REVOKED_OK_TOKEN,+ named: `OpenKnowledge's GitHub sign-in for ${GITHUB_HOST}`,+ remedy: `ok-beta auth login --host ${GITHUB_HOST}`,+ },{source: "the gh CLI's sign-in",okStoreToken: undefined,@@ -1195,6 +1204,7 @@ describe("ok sync without a running server authenticates through OpenKnowledge's])("when GitHub rejects $source while the user's own helper holds a working credential, ok sync's error names the credential it used and how to renew it",async (row) => {+ vi.stubEnv('OK_CHANNEL', 'channel' in row ? row.channel : 'stable');const server = await arrange({gitHubAccepts: USER_PASSWORD,okStoreToken: row.okStoreToken,diff --git a/packages/cli/src/commands/sync.ts b/packages/cli/src/commands/sync.tsindex 45c7630cf..19ba26bf7 100644--- a/packages/cli/src/commands/sync.ts+++ b/packages/cli/src/commands/sync.ts@@ -2,6 +2,7 @@ import {type ClassifiedGitAuthError,classifyGitAuthError,clientVersionHeaders,+ currentCliCommandName,isGitHubHost,normalizeGitHostname,} from '@inkeep/open-knowledge-core';@@ -163,7 +164,9 @@ function describeSignInUsed(case 'no-credential':case '401':case 'unknown-auth': {- const renew = viaGh ? `gh auth login --hostname ${host}` : `ok auth login --host ${host}`;+ const renew = viaGh+ ? `gh auth login --hostname ${host}`+ : `${currentCliCommandName()} auth login --host ${host}`;return `${used} If that sign-in has expired or was revoked, run: ${renew}`;}case '403':@@ -173,7 +176,7 @@ function describeSignInUsed(case 'scope-mismatch': {const rescope = viaGh? `run: gh auth refresh --hostname ${host} --scopes repo`- : `create a token with that scope at https://${host}/settings/tokens and run: ok auth pat --host ${host}`;+ : `create a token with that scope at https://${host}/settings/tokens and run: ${currentCliCommandName()} auth pat --host ${host}`;return `${used} If its token is missing a required OAuth scope, likely repo, ${rescope}`;}case 'ssh-auth':diff --git a/packages/cli/src/commands/uninstall.ts b/packages/cli/src/commands/uninstall.tsindex 9f465e159..50801cc5c 100644--- a/packages/cli/src/commands/uninstall.ts+++ b/packages/cli/src/commands/uninstall.ts@@ -3,6 +3,7 @@ import { existsSync } from 'node:fs';import { homedir } from 'node:os';import { join, resolve } from 'node:path';import {+ currentCliCommandName,DESKTOP_PRODUCTS,desktopWindowsExecutableName,desktopWindowsInstallDirNames,@@ -243,7 +244,7 @@ async function defaultProjectCheckbox(candidates: ProjectCandidate[]): Promise<smessage:'Also remove OpenKnowledge from these projects? (space to toggle; none selected by default)\n' +" Removes each project's .ok/ config, editor MCP entries, and OK edit-history\n" +- ' (.git/ok/). Your markdown content is kept — `ok start` re-adds OK later.\n',+ ` (.git/ok/). Your markdown content is kept — \`${currentCliCommandName()} start\` re-adds OK later.\n`,required: false,theme: { icon: { checked: '[x]', unchecked: '[ ]' } },choices: candidates.map((c) => ({@@ -340,7 +341,7 @@ export async function runUninstall(opts: UninstallOptions = {}): Promise<Uninstaconst fallbackNote = dim('Individual projects are only removed when you select them (or pass --all-projects). ' +- 'To remove OpenKnowledge from one project, run `ok deinit` inside it.',+ `To remove OpenKnowledge from one project, run \`${currentCliCommandName()} deinit\` inside it.`,);const binaryBlock = (): string =>formatInstallInstructions(diff --git a/packages/cli/src/mcp/shim.test.ts b/packages/cli/src/mcp/shim.test.tsindex 10c511011..9191cae27 100644--- a/packages/cli/src/mcp/shim.test.ts+++ b/packages/cli/src/mcp/shim.test.ts@@ -11,7 +11,7 @@ import {} from '@inkeep/open-knowledge-core';import { AutoStartDisabledError, type ServerLockMetadata } from '@inkeep/open-knowledge-server';import type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';-import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import {bridgeStdioToHttpMcp,parseSpawnTimeoutEnv,@@ -20,6 +20,14 @@ import {startMcpShim,} from './shim.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+interface FakeTransport {onerror: ((err: Error) => void) | undefined;onclose: (() => void) | undefined;@@ -237,6 +245,20 @@ describe('MCP stdio shim server resolution', () => {expect((err as Error).message).toContain('native file edits for OpenKnowledge content');});+ test('auto-start opt-out on Beta names ok-beta start', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ const err: unknown = await resolveMcpHttpUrl({+ lockDir,+ contentDir: tmp,+ envAutoStart: '0',+ readLock: () => null,+ isAlive: () => false,+ }).catch((e: unknown) => e);+ expect((err as Error).message).toContain(+ 'Run `ok-beta start` in the target project, then retry this tool.',+ );+ });+test.each(['missing', 'overlong'])('native spawn failure for a %s working directory teaches recovery',async (kind) => {diff --git a/packages/cli/src/mcp/shim.ts b/packages/cli/src/mcp/shim.tsindex 253441908..e103b505c 100644--- a/packages/cli/src/mcp/shim.ts+++ b/packages/cli/src/mcp/shim.ts@@ -6,6 +6,7 @@ import type { Readable, Writable } from 'node:stream';import { setTimeout as wait } from 'node:timers/promises';import {clientVersionHeaders,+ currentCliCommandName,DEFAULT_SERVER_HOST,SPAWN_ERROR_LOG,sliceLastSpawnAttempt,@@ -29,8 +30,9 @@ import { resolveSelfSpawn } from '../commands/self-spawn.ts';const DEFAULT_SPAWN_TIMEOUT_MS = 5000;const DEFAULT_POLL_INTERVAL_MS = 100;const DEFAULT_REQUEST_TIMEOUT_MS = 120_000;-const SERVER_START_RECOVERY =- 'Run `ok start` in the target project, then retry this tool. Do not fall back to native file edits for OpenKnowledge content.';+function serverStartRecovery(): string {+ return `Run \`${currentCliCommandName()} start\` in the target project, then retry this tool. Do not fall back to native file edits for OpenKnowledge content.`;+}interface ShimTransport {onerror: ((err: Error) => void) | undefined;@@ -157,7 +159,7 @@ function readErrorLogDefault(path: string): string {function formatTimeoutMessage(timeoutMs: number, stderr: string): string {const stderrBlock = stderr ? ` stderr:\n${stderr}` : '';- return `server did not start within ${timeoutMs}ms${stderrBlock}\n${SERVER_START_RECOVERY}`;+ return `server did not start within ${timeoutMs}ms${stderrBlock}\n${serverStartRecovery()}`;}function requestIdOf(message: JSONRPCMessage): RequestId | undefined {@@ -214,7 +216,7 @@ export async function resolveMcpHttpUrl(opts: ResolveMcpHttpUrlOptions): Promiseif (opts.envAutoStart === '0') {throw new AutoStartDisabledError(- `OpenKnowledge server is not running and OK_MCP_AUTOSTART=0 disables auto-start. ${SERVER_START_RECOVERY}`,+ `OpenKnowledge server is not running and OK_MCP_AUTOSTART=0 disables auto-start. ${serverStartRecovery()}`,);}@@ -276,7 +278,7 @@ export async function resolveMcpHttpUrl(opts: ResolveMcpHttpUrlOptions): Promiseif (asyncSpawnError) {const stderr = readErrorLog(stderrPath);const stderrBlock = stderr ? ` stderr:\n${stderr}` : '';- throw new Error(`spawn failed: ${asyncSpawnError}${stderrBlock}\n${SERVER_START_RECOVERY}`);+ throw new Error(`spawn failed: ${asyncSpawnError}${stderrBlock}\n${serverStartRecovery()}`);}await sleep(pollIntervalMs);const base = liveBaseUrlFromLock(readLock(), isAlive);@@ -286,7 +288,7 @@ export async function resolveMcpHttpUrl(opts: ResolveMcpHttpUrlOptions): Promiseif (asyncSpawnError) {const stderr = readErrorLog(stderrPath);const stderrBlock = stderr ? ` stderr:\n${stderr}` : '';- throw new Error(`spawn failed: ${asyncSpawnError}${stderrBlock}\n${SERVER_START_RECOVERY}`);+ throw new Error(`spawn failed: ${asyncSpawnError}${stderrBlock}\n${serverStartRecovery()}`);}throw new Error(formatTimeoutMessage(timeoutMs, readErrorLog(stderrPath)));diff --git a/packages/core/src/constants/ok-dir.ts b/packages/core/src/constants/ok-dir.tsindex 21502c53a..a5e3280c9 100644--- a/packages/core/src/constants/ok-dir.ts+++ b/packages/core/src/constants/ok-dir.ts@@ -1,4 +1,4 @@-import { currentDesktopProduct } from './product.ts';+import { currentDesktopProduct, userHomeDisplayPath } from './product.ts';export const OK_DIR = '.ok';@@ -57,5 +57,5 @@ export function posixOkManagedBinDir(}export function okUserHomeDisplayPath(...segments: string[]): string {- return ['~', currentDesktopProduct().userHomeDirName, ...segments].join('/');+ return userHomeDisplayPath(currentDesktopProduct(), ...segments);}diff --git a/packages/core/src/constants/product.test.ts b/packages/core/src/constants/product.test.tsindex e8f4302d5..5bedc6979 100644--- a/packages/core/src/constants/product.test.ts+++ b/packages/core/src/constants/product.test.ts@@ -1,5 +1,12 @@-import { describe, expect, it } from 'vitest';-import { DESKTOP_PRODUCTS, desktopChannelLabel, resolveDesktopProductName } from './product.ts';+import { afterEach, describe, expect, it, vi } from 'vitest';+import {+ currentCliCommandName,+ DESKTOP_PRODUCTS,+ desktopChannelLabel,+ desktopProductForCliCommand,+ resolveDesktopProductName,+ userHomeDisplayPath,+} from './product.ts';describe('resolveDesktopProductName', () => {it.each([@@ -71,3 +78,33 @@ describe('desktopChannelLabel', () => {expect(desktopChannelLabel(channel)).toBe(expected);});});++describe('channel CLI command name', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ it('names ok on Stable', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(currentCliCommandName()).toBe('ok');+ });++ it('names ok-beta on Beta', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(currentCliCommandName()).toBe('ok-beta');+ });++ it('maps a command name back to its product, and anything else to Stable', () => {+ expect(desktopProductForCliCommand('ok-beta')).toBe(DESKTOP_PRODUCTS.beta);+ expect(desktopProductForCliCommand('ok')).toBe(DESKTOP_PRODUCTS.stable);+ expect(desktopProductForCliCommand(null)).toBe(DESKTOP_PRODUCTS.stable);+ expect(desktopProductForCliCommand('open-knowledge-beta')).toBe(DESKTOP_PRODUCTS.stable);+ });++ it('names each product home folder for display', () => {+ expect(userHomeDisplayPath(DESKTOP_PRODUCTS.stable, 'secrets.yml')).toBe('~/.ok/secrets.yml');+ expect(userHomeDisplayPath(DESKTOP_PRODUCTS.beta, 'secrets.yml')).toBe(+ '~/.ok-beta/secrets.yml',+ );+ });+});diff --git a/packages/core/src/constants/product.ts b/packages/core/src/constants/product.tsindex 3292d1f53..99390bf83 100644--- a/packages/core/src/constants/product.ts+++ b/packages/core/src/constants/product.ts@@ -98,3 +98,18 @@ export function currentDesktopProduct(): DesktopProduct {export function currentMcpServerName(): DesktopProduct['mcpServerName'] {return currentDesktopProduct().mcpServerName;}++export function currentCliCommandName(): DesktopProduct['cliCommandNames'][0] {+ return currentDesktopProduct().cliCommandNames[0];+}++export function desktopProductForCliCommand(command: string | null | undefined): DesktopProduct {+ for (const product of Object.values(DESKTOP_PRODUCTS)) {+ if (product.cliCommandNames[0] === command) return product;+ }+ return DESKTOP_PRODUCTS.stable;+}++export function userHomeDisplayPath(product: DesktopProduct, ...segments: string[]): string {+ return ['~', product.userHomeDirName, ...segments].join('/');+}diff --git a/packages/core/src/desktop-bridge.ts b/packages/core/src/desktop-bridge.tsindex 64367fc93..e11de6b1f 100644--- a/packages/core/src/desktop-bridge.ts+++ b/packages/core/src/desktop-bridge.ts@@ -1487,6 +1487,7 @@ export interface OkDesktopBridge {readonly appVersion: string;readonly instanceLabel: string | null;readonly mcpServerName: string | null;+ readonly cliCommandName: string | null;getPathForFile(file: File): string | null;diff --git a/packages/core/src/handoff/terminal-launch.test.ts b/packages/core/src/handoff/terminal-launch.test.tsindex f44d3439f..09839a331 100644--- a/packages/core/src/handoff/terminal-launch.test.ts+++ b/packages/core/src/handoff/terminal-launch.test.ts@@ -118,6 +118,7 @@ describe('Windows launch composition', () => {mcpPreApprove: true,autoApproveOkTools: true,mcpServerName: MCP_SERVER_NAME,+ cliCommandName: 'ok',}),).toEqual({executable: 'claude',@@ -998,6 +999,7 @@ describe('buildPosixCliLaunch promptless (New chat)', () => {buildPosixCliLaunch('claude', null, {autoApproveOkTools: true,mcpServerName: MCP_SERVER_NAME,+ cliCommandName: 'ok',}).args,).toEqual(['--settings', CLAUDE_AUTO_APPROVE_JSON]);expect(@@ -1005,6 +1007,7 @@ describe('buildPosixCliLaunch promptless (New chat)', () => {mcpPreApprove: true,autoApproveOkTools: true,mcpServerName: MCP_SERVER_NAME,+ cliCommandName: 'ok',}).args,).toEqual(['--settings', CLAUDE_BOTH_JSON]);});@@ -1194,7 +1197,7 @@ describe('claude MCP pre-approval', () => {});describe('OK auto-approve (autoApproveOkTools)', () => {- const AUTO = { autoApproveOkTools: true, mcpServerName: MCP_SERVER_NAME };+ const AUTO = { autoApproveOkTools: true, mcpServerName: MCP_SERVER_NAME, cliCommandName: 'ok' };it('adds the OK allow-list + destructive ask-list to Claude --settings when on', () => {expect(buildPosixCliLaunch('claude', 'hi', AUTO).args).toEqual([@@ -1261,9 +1264,9 @@ describe('launch approval names the server the main process checked', () => {it('uses only the supplied Beta name, even when this process resolves to Stable', () => {vi.stubEnv('OK_CHANNEL', 'stable');try {- const out = artifacts({ ...ALL_ON, mcpServerName: BETA });+ const out = artifacts({ ...ALL_ON, mcpServerName: BETA, cliCommandName: 'ok-beta' });expect(out[0]).toBe(- `--settings {"enabledMcpjsonServers":["${BETA}"],"permissions":{"allow":["mcp__${BETA}","Bash(ok open:*)"],"ask":["mcp__${BETA}__delete","mcp__${BETA}__move","mcp__${BETA}__share_link","mcp__${BETA}__install","mcp__${BETA}__import"]}} hi`,+ `--settings {"enabledMcpjsonServers":["${BETA}"],"permissions":{"allow":["mcp__${BETA}","Bash(ok-beta open:*)"],"ask":["mcp__${BETA}__delete","mcp__${BETA}__move","mcp__${BETA}__share_link","mcp__${BETA}__install","mcp__${BETA}__import"]}} hi`,);expect(out[1]).toBe(`-c mcp_servers.${BETA}.default_tools_approval_mode="approve" hi`);expect(out[2]).toContain(`["${BETA}"]`);@@ -1294,8 +1297,15 @@ describe('launch approval names the server the main process checked', () => {}});- it('keeps the Stable artifacts byte-identical when main supplies the Stable name', () => {- const out = artifacts({ ...ALL_ON, mcpServerName: 'open-knowledge' });+ it('pre-approves no open command when main supplied no CLI name', () => {+ const out = artifacts({ ...ALL_ON, mcpServerName: BETA });+ expect(out[0]).toContain(`"allow":["mcp__${BETA}"]`);+ expect(out[2]).toContain(`"allow":["mcp__${BETA}"]`);+ for (const artifact of out) expect(artifact).not.toContain('Bash(');+ });++ it('keeps the Stable artifacts byte-identical when main supplies the Stable names', () => {+ const out = artifacts({ ...ALL_ON, mcpServerName: 'open-knowledge', cliCommandName: 'ok' });expect(out[0]).toBe(`--settings {"enabledMcpjsonServers":["open-knowledge"],"permissions":{"allow":["mcp__open-knowledge","Bash(ok open:*)"],"ask":["mcp__open-knowledge__delete","mcp__open-knowledge__move","mcp__open-knowledge__share_link","mcp__open-knowledge__install","mcp__open-knowledge__import"]}} hi`,);diff --git a/packages/core/src/handoff/terminal-launch.ts b/packages/core/src/handoff/terminal-launch.tsindex 6580de790..a4764f5a8 100644--- a/packages/core/src/handoff/terminal-launch.ts+++ b/packages/core/src/handoff/terminal-launch.ts@@ -298,7 +298,9 @@ function buildClaudeSettingsJson(opts: BuildCliLaunchOptions): string | null {}if (opts.autoApproveOkTools === true) {settings.permissions = {- allow: [`mcp__${server}`, 'Bash(ok open:*)'],+ allow: opts.cliCommandName+ ? [`mcp__${server}`, `Bash(${opts.cliCommandName} open:*)`]+ : [`mcp__${server}`],ask: OK_GATED_TOOL_NAMES.map((tool) => `mcp__${server}__${tool}`),};}@@ -443,6 +445,7 @@ export interface BuildCliLaunchOptions {readonly mcpPreApprove?: boolean;readonly autoApproveOkTools?: boolean;readonly mcpServerName?: string;+ readonly cliCommandName?: string;}export function buildWindowsCliLaunch(diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex b398e20c5..6befc30bf 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -558,6 +558,7 @@ export {type PreviewThemeToken,} from './constants/preview-theme-tokens.ts';export {+ currentCliCommandName,currentDesktopProduct,currentMcpServerName,DESKTOP_PRODUCTS,diff --git a/packages/desktop/src/main/cli-command-name-arg.test.ts b/packages/desktop/src/main/cli-command-name-arg.test.tsnew file mode 100644index 000000000..9d19deb49--- /dev/null+++ b/packages/desktop/src/main/cli-command-name-arg.test.ts@@ -0,0 +1,24 @@+import { afterEach, describe, expect, test, vi } from 'vitest';+import { withCliCommandNameArg } from './cli-command-name-arg.ts';++afterEach(() => {+ vi.unstubAllEnvs();+});++describe('renderer-window CLI command-name argv', () => {+ test('a Beta run hands the window its own command', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(withCliCommandNameArg(['--ok-mode=editor'])).toEqual([+ '--ok-mode=editor',+ '--ok-cli-command-name=ok-beta',+ ]);+ });++ test('a Stable run hands the window the Stable command', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(withCliCommandNameArg(['--ok-mode=editor'])).toEqual([+ '--ok-mode=editor',+ '--ok-cli-command-name=ok',+ ]);+ });+});diff --git a/packages/desktop/src/main/cli-command-name-arg.ts b/packages/desktop/src/main/cli-command-name-arg.tsnew file mode 100644index 000000000..f8cfb9fc4--- /dev/null+++ b/packages/desktop/src/main/cli-command-name-arg.ts@@ -0,0 +1,6 @@+import { currentCliCommandName } from '@inkeep/open-knowledge-core';+import { CLI_COMMAND_NAME_ARG_NAME } from '../shared/ok-desktop-argv.ts';++export function withCliCommandNameArg(args: readonly string[]): string[] {+ return [...args, `--ok-${CLI_COMMAND_NAME_ARG_NAME}=${currentCliCommandName()}`];+}diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.tsindex f466ff426..c0e8feca7 100644--- a/packages/desktop/src/main/index.ts+++ b/packages/desktop/src/main/index.ts@@ -229,6 +229,7 @@ import {runLoginShellProbe,runWindowsPathProbe,} from './claude-readiness.ts';+import { withCliCommandNameArg } from './cli-command-name-arg.ts';import { requestUserConsent } from './consent-dialog.ts';import { copyImageToClipboard } from './copy-image-clipboard.ts';import {@@ -502,7 +503,7 @@ import {unrecognizedUpdateModeIn,windowRestoreKey,} from './state-store.ts';-import { quoteStopCommandPath } from './stop-command.ts';+import { stopCommandLine } from './stop-command.ts';import { isTerminalAvailable, withTerminalCapabilityArg } from './terminal-capability.ts';import {isTerminalConsented,@@ -1281,7 +1282,7 @@ function runDriverBootSmokeInProduction(): void {}function withWindowRuntimeArgs(args: readonly string[]): string[] {- const withServerName = withMcpServerNameArg(args);+ const withServerName = withCliCommandNameArg(withMcpServerNameArg(args));const withDebug = isDebugKeyringSmokeAllowed()? [...withServerName, '--ok-debug-keyring-smoke=1']: withServerName;@@ -2277,7 +2278,7 @@ async function openProjectOrFallbackToNavigator(`${projectPath}\n\n` +(prompt.reason === 'eperm'? 'The conflicting server belongs to another user account and cannot be stopped from here. Quit it from that account and try again.'- : `Could not stop the conflicting server. Quit it manually (\`ok stop --force ${quoteStopCommandPath(projectPath, process.platform)}\`) and try again.`),+ : `Could not stop the conflicting server. Quit it manually (\`${stopCommandLine(projectPath, process.platform, { force: true })}\`) and try again.`),);} else {getLogger('project').info(@@ -2290,7 +2291,7 @@ async function openProjectOrFallbackToNavigator('user declined the stop-and-retry remedy',);if (isStaleLockHolder && otherChannelHolder === null) {- const stopCommandTarget = quoteStopCommandPath(projectPath, process.platform);+ const stopCommand = stopCommandLine(projectPath, process.platform);flushDesktopLogger();showErrorOverNavigator(dialogTitle,@@ -2302,9 +2303,9 @@ async function openProjectOrFallbackToNavigator(`Help > Report a bug.`: warnsHolderMayBeLive? `Nothing was stopped. If you need that process, leave it running and open a ` +- `different project; if you do not, run \`ok stop ${stopCommandTarget}\` and ` ++ `different project; if you do not, run \`${stopCommand}\` and ` +`open the project again, or reopen and choose Stop Server & Retry.`- : `Nothing was stopped. Run \`ok stop ${stopCommandTarget}\` and open the ` ++ : `Nothing was stopped. Run \`${stopCommand}\` and open the ` +`project again, or reopen and choose Stop Server & Retry to have ` +`OpenKnowledge do it.`),);diff --git a/packages/desktop/src/main/path-install-beta.test.ts b/packages/desktop/src/main/path-install-beta.test.tsindex f6609b22e..5ae99ffc7 100644--- a/packages/desktop/src/main/path-install-beta.test.ts+++ b/packages/desktop/src/main/path-install-beta.test.ts@@ -51,6 +51,9 @@ describe('Beta CLI path install', () => {});expect(result.status).toBe('installed');+ if (result.status === 'installed') {+ expect(result.summary).toBe('Added ok-beta to your PATH — managed block in ~/.zshrc.');+ }const betaRoot = join(userHome, '.ok-beta');expect(pathInstallMarkerPath(userHome)).toBe(join(betaRoot, 'path-install.json'));expect(readlinkSync(join(betaRoot, 'bin', 'ok-beta'))).toBe(BETA_WRAPPER);@@ -417,3 +420,42 @@ describe('Beta installer and runtime agree on the bin dir', () => {}});});++describe('Beta PATH install summary', () => {+ test('names ok-beta when it removes leftover symlinks', async () => {+ const userHome = home();+ const bin = join(userHome, 'bin');+ mkdirSync(bin);+ symlinkSync(BETA_WRAPPER, join(bin, 'ok-beta'));+ const markerPath = pathInstallMarkerPath(userHome);+ mkdirSync(join(userHome, '.ok-beta'), { recursive: true });+ writeFileSync(+ markerPath,+ JSON.stringify({+ version: 1,+ installedAt: '2026-09-23T00:00:00.000Z',+ bundleVersion: '0.77.7-beta.0',+ bundleWrapperPath: BETA_WRAPPER,+ binDir: join(userHome, '.ok-beta', 'bin'),+ envShimPath: join(userHome, '.ok-beta', 'env.sh'),+ rcFiles: [],+ pathDiscovery: null,+ extraSymlinks: [+ {+ path: join(bin, 'ok-beta'),+ target: BETA_WRAPPER,+ createdAt: '2026-09-23T00:00:00.000Z',+ kind: 'created',+ },+ ],+ }),+ );++ const result = await launch(userHome);++ if (result.status !== 'installed') throw new Error(`unexpected ${result.status}`);+ expect(result.summary).toBe(+ 'Removed 1 leftover ok-beta symlink(s) created by an older version.',+ );+ });+});diff --git a/packages/desktop/src/main/path-install.test.ts b/packages/desktop/src/main/path-install.test.tsindex 3aaa19abb..a602c228f 100644--- a/packages/desktop/src/main/path-install.test.ts+++ b/packages/desktop/src/main/path-install.test.ts@@ -86,7 +86,9 @@ describe('ensureCliOnPath — consent gate (rc files are never written without abaseOpts(h, { consentDecision: GRANTED, logger: { event: (e) => events.push(e) } }),);expect(result.status).toBe('installed');- if (result.status === 'installed') expect(result.summary).toContain('~/.zshrc');+ if (result.status === 'installed') {+ expect(result.summary).toBe('Added ok to your PATH — managed block in ~/.zshrc.');+ }const zshrc = readFileSync(join(h, '.zshrc'), 'utf8');expect(zshrc).toContain('# >>> open-knowledge cli >>>');expect(zshrc).toContain('Delete this whole block to opt out');diff --git a/packages/desktop/src/main/path-install.ts b/packages/desktop/src/main/path-install.tsindex 9809e58b2..162cdab4c 100644--- a/packages/desktop/src/main/path-install.ts+++ b/packages/desktop/src/main/path-install.ts@@ -610,7 +610,7 @@ export async function ensureCliOnPath(opts: EnsureCliOnPathOpts): Promise<Ensureconst parts: string[] = [];if (changedRcFiles.length > 0)parts.push(- `Added ok to your PATH — managed block in ${changedRcFiles.map((p) => tildify(p, home)).join(', ')}.`,+ `Added ${NAMES[0]} to your PATH — managed block in ${changedRcFiles.map((p) => tildify(p, home)).join(', ')}.`,);if (newOptOuts.length > 0)parts.push(@@ -618,7 +618,7 @@ export async function ensureCliOnPath(opts: EnsureCliOnPathOpts): Promise<Ensure);if (cleanup.removedCount > 0)parts.push(- `Removed ${cleanup.removedCount} leftover ok symlink(s) created by an older version.`,+ `Removed ${cleanup.removedCount} leftover ${NAMES[0]} symlink(s) created by an older version.`,);if (parts.length === 0) return { status: 'installed-silent', marker };return { status: 'installed', marker, summary: parts.join(' ') };diff --git a/packages/desktop/src/main/stop-command.test.ts b/packages/desktop/src/main/stop-command.test.tsindex 2bb36895e..5f2064d1c 100644--- a/packages/desktop/src/main/stop-command.test.ts+++ b/packages/desktop/src/main/stop-command.test.ts@@ -1,5 +1,5 @@-import { describe, expect, test } from 'vitest';-import { quoteStopCommandPath } from './stop-command.ts';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { quoteStopCommandPath, stopCommandLine } from './stop-command.ts';describe('quoteStopCommandPath', () => {describe('posix', () => {@@ -40,3 +40,27 @@ describe('quoteStopCommandPath', () => {});});});++describe('stopCommandLine', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test('keeps the Stable command byte-identical', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(stopCommandLine("/Users/bob/Bob's Notes", 'darwin')).toBe(+ "ok stop '/Users/bob/Bob'\\''s Notes'",+ );+ expect(stopCommandLine('C:\\notes\\', 'win32', { force: true })).toBe(+ 'ok stop --force "C:\\notes\\\\"',+ );+ });++ test('names the Beta command on Beta', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(stopCommandLine('/Users/me/notes', 'darwin')).toBe("ok-beta stop '/Users/me/notes'");+ expect(stopCommandLine('/Users/me/notes', 'linux', { force: true })).toBe(+ "ok-beta stop --force '/Users/me/notes'",+ );+ });+});diff --git a/packages/desktop/src/main/stop-command.ts b/packages/desktop/src/main/stop-command.tsindex 88c02af40..b780e91b1 100644--- a/packages/desktop/src/main/stop-command.ts+++ b/packages/desktop/src/main/stop-command.ts@@ -1,3 +1,5 @@+import { currentCliCommandName } from '@inkeep/open-knowledge-core';+function posixQuote(value: string): string {return `'${value.replaceAll("'", "'\\''")}'`;}@@ -9,3 +11,12 @@ function windowsQuote(value: string): string {export function quoteStopCommandPath(projectPath: string, platform: NodeJS.Platform): string {return platform === 'win32' ? windowsQuote(projectPath) : posixQuote(projectPath);}++export function stopCommandLine(+ projectPath: string,+ platform: NodeJS.Platform,+ opts: { readonly force?: boolean } = {},+): string {+ const force = opts.force === true ? ' --force' : '';+ return `${currentCliCommandName()} stop${force} ${quoteStopCommandPath(projectPath, platform)}`;+}diff --git a/packages/desktop/src/preload/bridge-forwarding.test.ts b/packages/desktop/src/preload/bridge-forwarding.test.tsindex eb3296231..8e302c81b 100644--- a/packages/desktop/src/preload/bridge-forwarding.test.ts+++ b/packages/desktop/src/preload/bridge-forwarding.test.ts@@ -1,4 +1,5 @@import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { withCliCommandNameArg } from '../main/cli-command-name-arg.ts';import { withMcpServerNameArg } from '../main/mcp-server-name-arg.ts';const invokeMock = vi.fn(() => Promise.resolve({ ok: true }));@@ -20,6 +21,7 @@ vi.mock('electron', () => ({type BridgeProbe = {mcpServerName: string | null;+ cliCommandName: string | null;state: { query(): Promise<unknown> };update: {relaunchNow(): Promise<void>;@@ -125,6 +127,23 @@ describe('preload argv config', () => {expect(bridge.mcpServerName).toBe('open-knowledge-beta');});++ it('exposes the CLI command main hands a Beta window', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ process.argv = withCliCommandNameArg(originalArgv);++ const bridge = await loadBridge();++ expect(bridge.cliCommandName).toBe('ok-beta');+ });++ it('exposes no CLI command when main sent none', async () => {+ process.argv = originalArgv.filter((arg) => !arg.startsWith('--ok-cli-command-name='));++ const bridge = await loadBridge();++ expect(bridge.cliCommandName).toBeNull();+ });});describe('preload state query marshalling', () => {diff --git a/packages/desktop/src/preload/index.ts b/packages/desktop/src/preload/index.tsindex b7c1aa3ab..8d3695218 100644--- a/packages/desktop/src/preload/index.ts+++ b/packages/desktop/src/preload/index.ts@@ -81,6 +81,7 @@ import {asSpellingLanguagesSetResult,} from '../shared/menu-dispatch-results.ts';import {+ CLI_COMMAND_NAME_ARG_NAME,LANGUAGE_PREFERENCE_ARG_NAME,MCP_SERVER_NAME_ARG_NAME,resolveOkDesktopMode,@@ -967,6 +968,7 @@ const bridge: OkDesktopBridge = {appVersion: parseArg('app-version') ?? '0.0.0',instanceLabel: parseArg('instance-label') ?? null,mcpServerName: parseArg(MCP_SERVER_NAME_ARG_NAME) ?? null,+ cliCommandName: parseArg(CLI_COMMAND_NAME_ARG_NAME) ?? null,getPathForFile: (file) => {const path = webUtils.getPathForFile(file);diff --git a/packages/desktop/src/shared/ok-desktop-argv.ts b/packages/desktop/src/shared/ok-desktop-argv.tsindex c0c40cc58..f97098b5f 100644--- a/packages/desktop/src/shared/ok-desktop-argv.ts+++ b/packages/desktop/src/shared/ok-desktop-argv.ts@@ -1,5 +1,6 @@import type { OkDesktopConfig, OkThemeSource } from './bridge-contract.ts';+export const CLI_COMMAND_NAME_ARG_NAME = 'cli-command-name';export const LANGUAGE_PREFERENCE_ARG_NAME = 'language-preference';export const MCP_SERVER_NAME_ARG_NAME = 'mcp-server-name';export const THEME_PREFERENCE_ARG_NAME = 'theme-preference';diff --git a/packages/desktop/tests/integration/mcp-server-name-wiring.test.ts b/packages/desktop/tests/integration/mcp-server-name-wiring.test.tsindex b417c7d9a..62c9d0b3d 100644--- a/packages/desktop/tests/integration/mcp-server-name-wiring.test.ts+++ b/packages/desktop/tests/integration/mcp-server-name-wiring.test.ts@@ -24,5 +24,9 @@ describe('renderer-window MCP server-name wiring (bypass-pin)', () => {/withMcpServerNameArg\(args\)/.test(fn?.[1] ?? ''),FIX('withWindowRuntimeArgs no longer passes its args through withMcpServerNameArg.'),).toBe(true);+ expect(+ /withCliCommandNameArg\(/.test(fn?.[1] ?? ''),+ FIX('withWindowRuntimeArgs no longer passes its args through withCliCommandNameArg.'),+ ).toBe(true);});});diff --git a/packages/server/src/boot.test.ts b/packages/server/src/boot.test.tsindex 047a425c1..f9109350c 100644--- a/packages/server/src/boot.test.ts+++ b/packages/server/src/boot.test.ts@@ -22,6 +22,14 @@ import { getLogger } from './logger.ts';import { parseKeepaliveConnectionId } from './mcp-mount.ts';import { shutdownTelemetry } from './telemetry.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+function seedOkScaffold(projectDir: string): void {const okDir = resolve(projectDir, OK_DIR);mkdirSync(okDir, { recursive: true });@@ -184,7 +192,7 @@ describe('bootServer — MissingOkConfigError pre-listen check', () => {.filter((w) => w.includes('.gitignore is missing'));expect(bootWarnings.length).toBe(1);expect(bootWarnings[0]).toContain('.ok/.gitignore');- expect(bootWarnings[0]).toContain('ok init');+ expect(bootWarnings[0]).toContain('Run `ok init` to add the recommended ignore entries.');} finally {warnSpy.mockRestore();if (booted) await booted.destroy();diff --git a/packages/server/src/boot.ts b/packages/server/src/boot.tsindex 85b2ced58..a1ee85473 100644--- a/packages/server/src/boot.ts+++ b/packages/server/src/boot.ts@@ -4,6 +4,7 @@ import { homedir } from 'node:os';import { resolve } from 'node:path';import {ASSET_EXTENSIONS,+ currentCliCommandName,DEFAULT_SERVER_HOST,EXECUTABLE_BLOCKLIST_EXTENSIONS,INLINE_RENDERABLE_EXTENSIONS,@@ -336,7 +337,7 @@ async function bootServerInner(opts: BootServerOptions): Promise<BootedServer> {if (!existsSync(gitignorePath)) {getLogger('boot').warn({ path: gitignorePath },- `Note: ${OK_DIR}/.gitignore is missing — per-machine state files in ${OK_DIR}/ may show up as untracked changes. Run \`ok init\` to add the recommended ignore entries.`,+ `Note: ${OK_DIR}/.gitignore is missing — per-machine state files in ${OK_DIR}/ may show up as untracked changes. Run \`${currentCliCommandName()} init\` to add the recommended ignore entries.`,);}diff --git a/packages/server/src/index.ts b/packages/server/src/index.tsindex 8fa1ee430..095b2597b 100644--- a/packages/server/src/index.ts+++ b/packages/server/src/index.ts@@ -426,9 +426,9 @@ export {resetMetrics,} from './metrics.ts';export {- MISSING_OK_CONFIG_MESSAGE,MissingOkConfigError,type MissingOkConfigKind,+ missingOkConfigMessage,} from './missing-ok-config-error.ts';export {createPersistenceExtension,diff --git a/packages/server/src/mcp/tools/audit.test.ts b/packages/server/src/mcp/tools/audit.test.tsindex 8eb0fa74f..501f86966 100644--- a/packages/server/src/mcp/tools/audit.test.ts+++ b/packages/server/src/mcp/tools/audit.test.ts@@ -11,7 +11,7 @@ import {AUDIT_FILE_CAP,AUDIT_FILE_DIAGNOSTIC_CAP,AUDIT_WARNING_CAP,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,} from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -278,7 +278,7 @@ describe('audit — registration + DESCRIPTION', () => {register(server, makeDeps(undefined, tmpDir));const result = await getTool().handler({});expect(result.isError).toBe(true);- expect(result.content[0]?.text).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toBe(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/audit.ts b/packages/server/src/mcp/tools/audit.tsindex e82165b49..2ac22864b 100644--- a/packages/server/src/mcp/tools/audit.ts+++ b/packages/server/src/mcp/tools/audit.ts@@ -13,7 +13,7 @@ import {countSummary,degradationBlock,formatDiagnosticLine,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,looseObjectArray,outputSchemaWithText,@@ -132,7 +132,7 @@ export function register(server: ServerInstance, deps: AuditDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);return runAudit(args.path, url, cwd);},);diff --git a/packages/server/src/mcp/tools/checkpoint.test.ts b/packages/server/src/mcp/tools/checkpoint.test.tsindex 1907580ac..8a6153a82 100644--- a/packages/server/src/mcp/tools/checkpoint.test.ts+++ b/packages/server/src/mcp/tools/checkpoint.test.ts@@ -6,7 +6,7 @@ import { type Config, ConfigSchema } from '../../config/schema.ts';import { type CheckpointDeps, DESCRIPTION, register } from './checkpoint.ts';import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';import type { ServerInstance } from './shared.ts';-import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';+import { hocuspocusNotRunningError } from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -102,6 +102,6 @@ describe('checkpoint — registration + behavior', () => {register(server, makeDeps(undefined, tmpDir));const result = await getTool().handler({});expect(result.isError).toBe(true);- expect(result.content[0]?.text).toContain(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toContain(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/checkpoint.ts b/packages/server/src/mcp/tools/checkpoint.tsindex a0dde25a2..743288918 100644--- a/packages/server/src/mcp/tools/checkpoint.ts+++ b/packages/server/src/mcp/tools/checkpoint.ts@@ -4,7 +4,7 @@ import type { AgentIdentity } from '../agent-identity.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {apiTarget,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpPost,outputSchemaWithText,previewUrlOutputField,@@ -55,7 +55,7 @@ export function register(server: ServerInstance, deps: CheckpointDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const identity = deps.identityRef?.current;const result = await httpPost(apiTarget(url, deps.localApi), '/api/save-version', {diff --git a/packages/server/src/mcp/tools/delete.ts b/packages/server/src/mcp/tools/delete.tsindex be3285a3b..e09e0503e 100644--- a/packages/server/src/mcp/tools/delete.ts+++ b/packages/server/src/mcp/tools/delete.ts@@ -6,7 +6,7 @@ import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shimport {agentIdentityFields,apiTarget,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpDelete,httpPost,looseObjectArray,@@ -265,7 +265,7 @@ export function register(server: ServerInstance, deps: DeleteDeps): void {const resolved = resolveTemplatePath(args.template.path);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);const { folder, name } = resolved;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const params = new URLSearchParams({ folder, name });for (const [key, value] of Object.entries(agentIdentityFields(deps.identityRef?.current))) {if (typeof value === 'string' && value.length > 0) params.set(key, value);@@ -281,7 +281,7 @@ export function register(server: ServerInstance, deps: DeleteDeps): void {);}- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if (args.folder !== undefined) {const result = await httpPost(apiTarget(url, deps.localApi), '/api/delete-path', {diff --git a/packages/server/src/mcp/tools/edit.ts b/packages/server/src/mcp/tools/edit.tsindex 4ae1bafd9..609d61cd5 100644--- a/packages/server/src/mcp/tools/edit.ts+++ b/packages/server/src/mcp/tools/edit.ts@@ -21,7 +21,7 @@ import {parseBrokenLinks,} from './advisory-warnings.ts';import { resolveWithinRoot } from './path-safety.ts';-import { buildPreviewAttachWarning, resolvePreviewUrl, START_UI_TEXT_HINT } from './preview-url.ts';+import { buildPreviewAttachWarning, resolvePreviewUrl, startUiTextHint } from './preview-url.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {AUTHORING_WARNING_CODE_GLOSS,@@ -29,7 +29,7 @@ import {CANONICAL_COMPONENT_GUIDANCE,documentResultBaseShape,errorTextWithDetail,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpPost,httpPut,nestDocResult,@@ -274,7 +274,7 @@ function composeWritePreviewResult(const brokenLinkSuppression = parseBrokenLinkSuppression(result.brokenLinkSuppression);const lines: string[] = [leadLine];- if (noPreviewAnywhere && !preview) lines.push(START_UI_TEXT_HINT);+ if (noPreviewAnywhere && !preview) lines.push(startUiTextHint());if (summaryHint) lines.push(summaryHint);if (advisoryWarnings) {lines.push(...formatAdvisoryLines(advisoryWarnings));@@ -337,7 +337,7 @@ async function handleTemplate(if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);const { folder, name } = resolved;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const filePath = templateFilePath(cwd, folder, name);if (!filePath.ok || !existsSync(filePath.abs)) {return textResult(@@ -436,7 +436,7 @@ async function handleSkillFileEdit(true,);}- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const scope = skill.scope ?? 'project';const existing = await readSkillFile(url, scope, skill.name, pathCheck.path);@@ -515,7 +515,7 @@ async function handleSkill(true,);}- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const scope = skill.scope ?? 'project';const existing = await fetchSkill(url, scope, skill.name);@@ -562,7 +562,7 @@ async function handleFolder(url: string | undefined,deps: EditDeps,) {- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const result = await httpPut(url, '/api/folder-config', {path: folder.path,frontmatter: folder.frontmatter,@@ -752,7 +752,7 @@ export function register(server: ServerInstance, deps: EditDeps): void {if (args.document !== undefined) {const docTeaching = bodyOrFrontmatterError(args.document, 'document');if (docTeaching) return textResult(`Error: ${docTeaching}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if (args.document.frontmatter !== undefined) {return handleDocFrontmatter({ path: args.document.path, frontmatter: args.document.frontmatter },diff --git a/packages/server/src/mcp/tools/get-preview-url.test.ts b/packages/server/src/mcp/tools/get-preview-url.test.tsindex eb12ee0c1..5ce042651 100644--- a/packages/server/src/mcp/tools/get-preview-url.test.ts+++ b/packages/server/src/mcp/tools/get-preview-url.test.ts@@ -1,7 +1,7 @@import { existsSync, mkdtempSync, rmSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-import { afterEach, describe, expect, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { AutoStartDisabledError } from '../../autostart.ts';import { resolveLockDir } from '../../config/paths.ts';import { type Config, ConfigSchema } from '../../config/schema.ts';@@ -11,6 +11,14 @@ import { register } from './get-preview-url.ts';import { bindTestServerLock, bindTestUiServerLock } from './preview-url-test-helpers.ts';import type { ServerInstance } from './shared.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+const ownedDirectories: string[] = [];function temporaryProject(prefix = 'ok-get-preview-url-'): string {const dir = mkdtempSync(join(tmpdir(), prefix));@@ -658,3 +666,70 @@ describe('preview_url tool — file branch boot-on-demand', () => {expect(result.structuredContent?.autoOpen).toBe(false);});});++describe('preview_url tool — names the running channel command', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test('a Beta hosted agent is steered to ok-beta open', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ const cwd = temporaryProject();+ bindTestUiServerLock(cwd);+ const handler = captureRegistration(cwd, BASE_CONFIG, { isHostedAgent: true });++ const doc = await handler({ document: 'specs/foo/SPEC' });+ expect(doc.structuredContent?.okOpenCommand).toBe('ok-beta open specs/foo/SPEC');+ expect(doc.content[0]?.text ?? '').toContain('run `ok-beta open specs/foo/SPEC`');++ const skill = await handler({ skill: { name: 'trip-log', scope: 'global' } });+ expect(skill.structuredContent?.okOpenCommand).toBe(+ 'ok-beta open trip-log --skill --scope global',+ );+ });++ test('a Beta server with nothing running says ok-beta start', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ const handler = captureRegistration(temporaryProject());+ const result = await handler({ document: 'specs/foo/SPEC' });+ expect(result.content[0]?.text).toContain('Start it with `ok-beta start`');+ expect(result.content[0]?.text).not.toContain('`ok start`');+ });++ test('a Beta server without a mounted UI says ok-beta start', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ const cwd = temporaryProject();+ bindTestServerLock(cwd, 4321, ['http', 'ws']);+ const result = await captureRegistration(cwd)({ document: 'specs/foo/SPEC' });+ expect(result.content[0]?.text).toContain('Restart it with plain `ok-beta start`');+ });++ test('a Beta loose file without a session says ok-beta open', async () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ const empty: OffCwdResolverDeps = {+ discover: async () => [],+ inspect: async () => null,+ realpath: async (p) => p,+ };+ const handler = captureRegistration(temporaryProject('ok-pv-'), BASE_CONFIG, {+ offCwdResolverDeps: empty,+ });+ const result = await handler({ file: '/loose/y.md' });+ expect(result.content[0]?.text).toContain('`ok-beta open /loose/y.md` starts one');+ });++ test('Stable hints stay byte-identical', async () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ const cwd = temporaryProject();+ bindTestUiServerLock(cwd);+ const steered = await captureRegistration(cwd, BASE_CONFIG, { isHostedAgent: true })({+ folder: 'specs/foo',+ });+ expect(steered.structuredContent?.okOpenCommand).toBe('ok open specs/foo');++ const idle = await captureRegistration(temporaryProject())({ document: 'specs/foo/SPEC' });+ expect(idle.content[0]?.text).toContain(+ 'No OpenKnowledge server is running for this project. Start it with `ok start` (also starts the preview UI), or open the project in OK Electron.',+ );+ });+});diff --git a/packages/server/src/mcp/tools/get-preview-url.ts b/packages/server/src/mcp/tools/get-preview-url.tsindex d2db61475..3d566cc72 100644--- a/packages/server/src/mcp/tools/get-preview-url.ts+++ b/packages/server/src/mcp/tools/get-preview-url.ts@@ -1,5 +1,9 @@import { isAbsolute } from 'node:path';-import { MANAGED_ARTIFACT_SCOPES, SKILL_NAME_REGEX } from '@inkeep/open-knowledge-core';+import {+ currentCliCommandName,+ MANAGED_ARTIFACT_SCOPES,+ SKILL_NAME_REGEX,+} from '@inkeep/open-knowledge-core';import { readConfigSafely, resolveConfigPath } from '@inkeep/open-knowledge-core/server';import { z } from 'zod';import { AutoStartDisabledError } from '../../autostart.ts';@@ -112,16 +116,18 @@ const OutputSchema = outputSchemaWithText({.nullable().optional().describe(- 'Machine-readable form of the hosted-agent steer: when the calling agent runs inside an OpenKnowledge surface (the desktop app’s built-in terminal, or its in-app agent panel) AND a doc/folder/skill target was given, the exact `ok open …` command to run to bring it up for the user. Run it INSTEAD of navigating `url`, and do not paste `url` into your reply — the user is already in the app it points at. `null`/absent in every other context (navigate `url` per your host instead).',+ 'Machine-readable form of the hosted-agent steer: when the calling agent runs inside an OpenKnowledge surface (the desktop app’s built-in terminal, or its in-app agent panel) AND a doc/folder/skill target was given, the exact OpenKnowledge CLI `open` command to run to bring it up for the user. Run it INSTEAD of navigating `url`, and do not paste `url` into your reply — the user is already in the app it points at. `null`/absent in every other context (navigate `url` per your host instead).',),});const NO_UI_SERVER_RUNNING_MESSAGE ='The OK server is running but no UI has bound for this project yet. Retry in a few seconds, or open the project in OK Electron.';-const NO_UI_NONE_MOUNTED_MESSAGE =- 'The OK server is running but no preview UI is mounted (e.g. it was started with `--only server`). Restart it with plain `ok start` to serve the editor, or open the project in OK Electron.';-const NO_SERVER_MESSAGE =- 'No OpenKnowledge server is running for this project. Start it with `ok start` (also starts the preview UI), or open the project in OK Electron.';+function noUiNoneMountedMessage(): string {+ return `The OK server is running but no preview UI is mounted (e.g. it was started with \`--only server\`). Restart it with plain \`${currentCliCommandName()} start\` to serve the editor, or open the project in OK Electron.`;+}+function noServerMessage(): string {+ return `No OpenKnowledge server is running for this project. Start it with \`${currentCliCommandName()} start\` (also starts the preview UI), or open the project in OK Electron.`;+}const AUTOSTART_DISABLED_NOTE = ' Auto-start is disabled (OK_MCP_AUTOSTART=0).';function readUserAutoOpen(): boolean {try {@@ -140,7 +146,7 @@ function readUserAutoOpen(): boolean {}function noSingleFileSessionMessage(file: string): string {- return `No Open Knowledge session is serving ${file} yet. On a host with a terminal, \`ok open ${file}\` starts one; otherwise open ${file} in the OK Desktop app. Then retry.`;+ return `No Open Knowledge session is serving ${file} yet. On a host with a terminal, \`${currentCliCommandName()} open ${file}\` starts one; otherwise open ${file} in the OK Desktop app. Then retry.`;}function serverExplicitlyLacksUi(lockDir: string): boolean {@@ -264,12 +270,13 @@ export function register(server: ServerInstance, deps: GetPreviewUrlDeps): void? `#/${encodeSkillRoute(args.skill.scope ?? 'project', args.skill.name)}`: null;+ const cliCommand = currentCliCommandName();const okOpenCommand = args.document- ? `ok open ${shellQuoteArg(args.document)}`+ ? `${cliCommand} open ${shellQuoteArg(args.document)}`: args.folder- ? `ok open ${shellQuoteArg(args.folder)}`+ ? `${cliCommand} open ${shellQuoteArg(args.folder)}`: args.skill- ? `ok open ${args.skill.name} --skill${args.skill.scope === 'global' ? ' --scope global' : ''}`+ ? `${cliCommand} open ${args.skill.name} --skill${args.skill.scope === 'global' ? ' --scope global' : ''}`: null;const hostedAgentSteer =deps.isHostedAgent && okOpenCommand@@ -308,9 +315,9 @@ export function register(server: ServerInstance, deps: GetPreviewUrlDeps): voidif (baseUrl === null) {const hint = !isServerLive(lockDir)- ? `${NO_SERVER_MESSAGE}${autoStartDisabled ? AUTOSTART_DISABLED_NOTE : ''}`+ ? `${noServerMessage()}${autoStartDisabled ? AUTOSTART_DISABLED_NOTE : ''}`: serverExplicitlyLacksUi(lockDir)- ? NO_UI_NONE_MOUNTED_MESSAGE+ ? noUiNoneMountedMessage(): NO_UI_SERVER_RUNNING_MESSAGE;return textPlusStructured(`${hostedAgentSteer}${hint}`, {url: null,diff --git a/packages/server/src/mcp/tools/history.ts b/packages/server/src/mcp/tools/history.tsindex 993fd4bf3..a5d1e9375 100644--- a/packages/server/src/mcp/tools/history.ts+++ b/packages/server/src/mcp/tools/history.ts@@ -2,7 +2,7 @@ import { z } from 'zod';import { resolvePreviewUrlForTool } from './preview-url.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,httpGetRows,looseObjectArray,@@ -133,7 +133,7 @@ export function register(server: ServerInstance, deps: GetHistoryDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const targetCount =(args.document !== undefined ? 1 : 0) +diff --git a/packages/server/src/mcp/tools/links.test.ts b/packages/server/src/mcp/tools/links.test.tsindex d4b400ace..b89b3ae33 100644--- a/packages/server/src/mcp/tools/links.test.ts+++ b/packages/server/src/mcp/tools/links.test.ts@@ -7,7 +7,7 @@ import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.import { DESCRIPTION, type LinksDeps, register } from './links.ts';import { bindTestUiServerLock } from './preview-url-test-helpers.ts';import type { ServerInstance } from './shared.ts';-import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';+import { hocuspocusNotRunningError } from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -186,7 +186,7 @@ describe('links — registration + DESCRIPTION', () => {register(server, makeDeps(undefined, tmpDir));const result = await getTool().handler({ kind: 'hubs' });expect(result.isError).toBe(true);- expect(result.content[0]?.text).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toBe(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/links.ts b/packages/server/src/mcp/tools/links.tsindex e0fb56add..794a5bacd 100644--- a/packages/server/src/mcp/tools/links.ts+++ b/packages/server/src/mcp/tools/links.ts@@ -6,7 +6,7 @@ import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shimport {type ApiTarget,apiTarget,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,looseObjectArray,normalizeDocName,@@ -143,7 +143,7 @@ export function register(server: ServerInstance, deps: LinksDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const kinds = Array.isArray(args.kind) ? [...new Set(args.kind)] : [args.kind];const { resolve } = await buildListResolver(deps, cwd);diff --git a/packages/server/src/mcp/tools/lint.test.ts b/packages/server/src/mcp/tools/lint.test.tsindex 07578f30d..652a7394f 100644--- a/packages/server/src/mcp/tools/lint.test.ts+++ b/packages/server/src/mcp/tools/lint.test.ts@@ -6,11 +6,7 @@ import { type Config, ConfigSchema } from '../../config/schema.ts';import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';import { DESCRIPTION, type LintDeps, register } from './lint.ts';import type { ServerInstance } from './shared.ts';-import {- AUDIT_FILE_CAP,- AUDIT_FILE_DIAGNOSTIC_CAP,- HOCUSPOCUS_NOT_RUNNING_ERROR,-} from './shared.ts';+import { AUDIT_FILE_CAP, AUDIT_FILE_DIAGNOSTIC_CAP, hocuspocusNotRunningError } from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -240,7 +236,7 @@ describe('lint — registration + DESCRIPTION', () => {register(server, makeDeps(undefined, tmpDir));const result = await getTool().handler({});expect(result.isError).toBe(true);- expect(result.content[0]?.text).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toBe(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/lint.ts b/packages/server/src/mcp/tools/lint.tsindex 41f0ef80a..cde8f9625 100644--- a/packages/server/src/mcp/tools/lint.ts+++ b/packages/server/src/mcp/tools/lint.ts@@ -19,7 +19,7 @@ import {degradationBlock,errorTextWithDetail,formatDiagnosticLine,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,httpPost,looseObjectArray,@@ -194,7 +194,7 @@ export function register(server: ServerInstance, deps: LintDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if (args.fix === true) {if (args.document === undefined) {diff --git a/packages/server/src/mcp/tools/move.ts b/packages/server/src/mcp/tools/move.tsindex 2823cb3c7..68be5638c 100644--- a/packages/server/src/mcp/tools/move.ts+++ b/packages/server/src/mcp/tools/move.ts@@ -14,7 +14,7 @@ import { type PreviewUrlSource, resolvePreviewUrlForTool } from './preview-url.timport type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {agentIdentityFields,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpPost,looseObjectArray,normalizeDocName,@@ -267,7 +267,7 @@ export function register(server: ServerInstance, deps: MoveDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, config, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if (args.template !== undefined) {if (args.from !== undefined || args.to !== undefined) {diff --git a/packages/server/src/mcp/tools/preview-url.test.ts b/packages/server/src/mcp/tools/preview-url.test.tsindex f9fbce5f6..479a8212f 100644--- a/packages/server/src/mcp/tools/preview-url.test.ts+++ b/packages/server/src/mcp/tools/preview-url.test.ts@@ -2,13 +2,14 @@ import { mkdtemp, rm } from 'node:fs/promises';import { tmpdir } from 'node:os';import { resolve } from 'node:path';import { LOCAL_DIR, OK_DIR } from '@inkeep/open-knowledge-core';-import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import {acquireServerLock,markServerLockDraining,updateServerLockPort,} from '../../server-lock.ts';import {+ buildPreviewAttachWarning,encodeSkillRoute,resolvePreviewUrl,resolveSkillPreviewUrl,@@ -222,3 +223,27 @@ describe('resolveUiInfo — server.lock source', () => {expect(resolveUiInfo({ lockDir })).toEqual({ baseUrl: null });});});++describe('buildPreviewAttachWarning — names the running channel command', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ test('Stable text is byte-identical', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(buildPreviewAttachWarning(null, true).message).toBe(+ 'No UI is running for this project. Start one to see the preview: `ok start` (terminal), or open the project in OK Electron.',+ );+ expect(buildPreviewAttachWarning({ url: '/#/a' }, true).message).toMatch(+ /on a stdio CLI with no browser, `ok open <doc>`\.$/,+ );+ });++ test('Beta names ok-beta', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(buildPreviewAttachWarning(null, true).message).toContain('`ok-beta start` (terminal)');+ expect(buildPreviewAttachWarning({ url: '/#/a' }, true).message).toMatch(+ /on a stdio CLI with no browser, `ok-beta open <doc>`\.$/,+ );+ });+});diff --git a/packages/server/src/mcp/tools/preview-url.ts b/packages/server/src/mcp/tools/preview-url.tsindex 89d550bd9..012c4cbcb 100644--- a/packages/server/src/mcp/tools/preview-url.ts+++ b/packages/server/src/mcp/tools/preview-url.ts@@ -1,3 +1,4 @@+import { currentCliCommandName } from '@inkeep/open-knowledge-core';import { resolveLockDir } from '../../config/paths.ts';import { lockBaseUrl } from '../../process-lock.ts';import { lockAdvertisesUi, readServerLock } from '../../server-lock.ts';@@ -47,10 +48,12 @@ type PreviewAttachWarning =autoOpen: boolean;};-const START_UI_MESSAGE =- 'No UI is running for this project. Start one to see the preview: `ok start` (terminal), or open the project in OK Electron.';-const ATTACH_PREVIEW_ONCE_MESSAGE =- "No browser is attached to the preview. Open it in your host's surface: `preview_url`, then drive your in-app browser (Claude Code Desktop: `preview_start({url})` to open the pane, then `navigate({url})` to move; Cursor: `Navigate`; Codex desktop: `@Browser`); on a stdio CLI with no browser, `ok open <doc>`.";+export function startUiTextHint(): string {+ return `No UI is running for this project. Start one to see the preview: \`${currentCliCommandName()} start\` (terminal), or open the project in OK Electron.`;+}+function attachPreviewOnceMessage(): string {+ return `No browser is attached to the preview. Open it in your host's surface: \`preview_url\`, then drive your in-app browser (Claude Code Desktop: \`preview_start({url})\` to open the pane, then \`navigate({url})\` to move; Cursor: \`Navigate\`; Codex desktop: \`@Browser\`); on a stdio CLI with no browser, \`${currentCliCommandName()} open <doc>\`.`;+}export function buildPreviewAttachWarning(preview: { url: string } | null,@@ -60,20 +63,18 @@ export function buildPreviewAttachWarning(return {action: 'attach-preview-once',previewUrl: preview.url,- message: ATTACH_PREVIEW_ONCE_MESSAGE,+ message: attachPreviewOnceMessage(),autoOpen,};}return {action: 'start-ui',previewUrl: null,- message: START_UI_MESSAGE,+ message: startUiTextHint(),autoOpen,};}-export const START_UI_TEXT_HINT = START_UI_MESSAGE;-export async function resolvePreviewUrlForTool(docName: string,deps: PreviewUrlDeps,diff --git a/packages/server/src/mcp/tools/restore-version.test.ts b/packages/server/src/mcp/tools/restore-version.test.tsindex 6f39bff8c..15668ecab 100644--- a/packages/server/src/mcp/tools/restore-version.test.ts+++ b/packages/server/src/mcp/tools/restore-version.test.ts@@ -6,7 +6,7 @@ import { type Config, ConfigSchema } from '../../config/schema.ts';import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';import { DESCRIPTION, type RestoreVersionDeps, register } from './restore-version.ts';import type { ServerInstance } from './shared.ts';-import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';+import { hocuspocusNotRunningError } from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});const SHA = '0123456789abcdef0123456789abcdef01234567';@@ -134,6 +134,6 @@ describe('restore_version — registration + behavior', () => {register(server, makeDeps(undefined, tmpDir));const result = await getTool().handler({ document: 'notes/x', version: SHA });expect(result.isError).toBe(true);- expect(result.content[0]?.text).toContain(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toContain(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/restore-version.ts b/packages/server/src/mcp/tools/restore-version.tsindex 55adcd4c9..33fa187e3 100644--- a/packages/server/src/mcp/tools/restore-version.ts+++ b/packages/server/src/mcp/tools/restore-version.ts@@ -6,7 +6,7 @@ import { resolvePreviewUrlForTool } from './preview-url.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {agentIdentityFields,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,httpPost,normalizeDocName,@@ -93,7 +93,7 @@ export function register(server: ServerInstance, deps: RestoreVersionDeps): void);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if ((args.document !== undefined) === (args.skill !== undefined)) {return textResult('Error: pass EXACTLY ONE of `document` or `skill`.', true);diff --git a/packages/server/src/mcp/tools/search.test.ts b/packages/server/src/mcp/tools/search.test.tsindex 46670f26a..5c447479b 100644--- a/packages/server/src/mcp/tools/search.test.ts+++ b/packages/server/src/mcp/tools/search.test.ts@@ -717,7 +717,7 @@ describe('search MCP tool — route-only previewUrl + no ui block (PRD-6735)', (});describe('search MCP tool — error paths', () => {- test('server-not-running returns HOCUSPOCUS_NOT_RUNNING_ERROR + grep fallback hint (FR7, AC4)', async () => {+ test('server-not-running returns hocuspocusNotRunningError() + grep fallback hint (FR7, AC4)', async () => {const { server, registered } = makeFakeServer();register(server, {resolveCwd: async () => '/tmp/proj',diff --git a/packages/server/src/mcp/tools/search.ts b/packages/server/src/mcp/tools/search.tsindex 749fda45f..18b33d183 100644--- a/packages/server/src/mcp/tools/search.ts+++ b/packages/server/src/mcp/tools/search.ts@@ -19,7 +19,7 @@ import {import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {apiTarget,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpPost,outputSchemaWithText,ROUTED_CWD_DESCRIPTION,@@ -290,7 +290,7 @@ export function register(server: ServerInstance, deps: SearchDeps): void {const { cwd, config, url } = context;if (!url) {return textResult(- `${HOCUSPOCUS_NOT_RUNNING_ERROR}\nFor server-free literal-string search, use \`exec("grep ...")\` instead — it walks the filesystem and does not need Hocuspocus.`,+ `${hocuspocusNotRunningError()}\nFor server-free literal-string search, use \`exec("grep ...")\` instead — it walks the filesystem and does not need Hocuspocus.`,true,);}diff --git a/packages/server/src/mcp/tools/share-link.test.ts b/packages/server/src/mcp/tools/share-link.test.tsindex 3bbcdfc89..7197ff124 100644--- a/packages/server/src/mcp/tools/share-link.test.ts+++ b/packages/server/src/mcp/tools/share-link.test.ts@@ -8,7 +8,7 @@ import { acquireServerLock, updateServerLockPort } from '../../server-lock.ts';import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';import { register, type ShareLinkDeps } from './share-link.ts';import type { ServerInstance } from './shared.ts';-import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';+import { hocuspocusNotRunningError } from './shared.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -169,7 +169,7 @@ describe('share_link — registration + preconditions', () => {await writeFile(resolve(tmpDir, 'notes.md'), '# notes');const result = await getTool().handler({ path: 'notes' });expect(result.isError).toBe(true);- expect(result.content[0]?.text).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(result.content[0]?.text).toBe(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/share-link.ts b/packages/server/src/mcp/tools/share-link.tsindex 10206ae55..522c98b2e 100644--- a/packages/server/src/mcp/tools/share-link.ts+++ b/packages/server/src/mcp/tools/share-link.ts@@ -13,7 +13,7 @@ import { resolveWithinRoot } from './path-safety.ts';import { encodeDocName, resolvePreviewUrlForTool } from './preview-url.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,isTimeoutError,outputSchemaWithText,ROUTED_CWD_DESCRIPTION,@@ -224,7 +224,7 @@ export function register(server: ServerInstance, deps: ShareLinkDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { cwd, config, url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const contentDir = join(cwd, config.content.dir);const resolved = resolveShareTarget(contentDir, args.path, args.kind);diff --git a/packages/server/src/mcp/tools/shared.test.ts b/packages/server/src/mcp/tools/shared.test.tsindex 8535a7b9f..ed184d702 100644--- a/packages/server/src/mcp/tools/shared.test.ts+++ b/packages/server/src/mcp/tools/shared.test.ts@@ -2,7 +2,7 @@ import {SKILL_INSTALL_WARNING_CODES,summarizeLintPluginFailures,} from '@inkeep/open-knowledge-core';-import { afterAll, beforeAll, describe, expect, test, vi } from 'vitest';+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test, vi } from 'vitest';import { z } from 'zod';import { type Config, ConfigSchema } from '../../config/schema.ts';@@ -17,7 +17,7 @@ import {alignWarningCodes,capAuditWarnings,errorTextWithDetail,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGet,httpPost,INSTALL_WARNING_CODE_GLOSS,@@ -34,6 +34,14 @@ import {UNREADABLE_WARNINGS_TEXT,} from './shared.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+describe('capAuditWarnings', () => {test('retains late validator-attributed failures ahead of generic warnings', () => {const generic = Array.from({ length: AUDIT_WARNING_CAP }, (_, i) => `could not read ${i}`);@@ -277,14 +285,27 @@ describe('normalizeDocName', () => {});});-describe('HOCUSPOCUS_NOT_RUNNING_ERROR', () => {+describe('hocuspocusNotRunningError', () => {test('names the recovery command', () => {- expect(HOCUSPOCUS_NOT_RUNNING_ERROR).toContain('ok start');+ expect(hocuspocusNotRunningError()).toContain('ok start');+ });++ test('keeps the Stable text byte-identical and names ok-beta on Beta', () => {+ try {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(hocuspocusNotRunningError()).toBe(+ 'Error: Hocuspocus server is not running. Start it with `ok start`, then retry.\nDo not fall back to native file edits for in-scope markdown; route writes through OpenKnowledge so attribution and live sync stay intact.',+ );+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(hocuspocusNotRunningError()).toContain('Start it with `ok-beta start`, then retry.');+ } finally {+ vi.unstubAllEnvs();+ }});test('does not offer a native-edit escape hatch', () => {- expect(HOCUSPOCUS_NOT_RUNNING_ERROR).toContain('Do not fall back to native file edits');- expect(HOCUSPOCUS_NOT_RUNNING_ERROR).toContain('route writes through OpenKnowledge');+ expect(hocuspocusNotRunningError()).toContain('Do not fall back to native file edits');+ expect(hocuspocusNotRunningError()).toContain('route writes through OpenKnowledge');});});diff --git a/packages/server/src/mcp/tools/shared.ts b/packages/server/src/mcp/tools/shared.tsindex 3cbb45307..0da82c9ac 100644--- a/packages/server/src/mcp/tools/shared.ts+++ b/packages/server/src/mcp/tools/shared.ts@@ -4,6 +4,7 @@ import {AdvisoryWarningSchema,BrokenLinkSchema,BrokenLinkSuppressionSchema,+ currentCliCommandName,getAgentCanonicalDescriptors,isAuditEmptyScopeWarning,SERVER_TIMEOUT_ERROR_PREFIX,@@ -206,8 +207,9 @@ export function textPlusStructured<T>(text: string, structured: T, isError?: boo};}-export const HOCUSPOCUS_NOT_RUNNING_ERROR =- 'Error: Hocuspocus server is not running. Start it with `ok start`, then retry.\nDo not fall back to native file edits for in-scope markdown; route writes through OpenKnowledge so attribution and live sync stay intact.';+export function hocuspocusNotRunningError(): string {+ return `Error: Hocuspocus server is not running. Start it with \`${currentCliCommandName()} start\`, then retry.\nDo not fall back to native file edits for in-scope markdown; route writes through OpenKnowledge so attribution and live sync stay intact.`;+}export type ServerUrlOrResolver =| string@@ -258,7 +260,7 @@ export async function requireProjectServer(> {const context = await resolveProjectServerContext(resolveCwd, config, serverUrl, explicitCwd);if (!context.ok) return { ok: false, result: textResult(`Error: ${context.error}`, true) };- if (!context.url) return { ok: false, result: textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true) };+ if (!context.url) return { ok: false, result: textResult(hocuspocusNotRunningError(), true) };return {ok: true,cwd: context.cwd,diff --git a/packages/server/src/mcp/tools/skill-target.test.ts b/packages/server/src/mcp/tools/skill-target.test.tsindex b3e6b1820..d6d02d8a7 100644--- a/packages/server/src/mcp/tools/skill-target.test.ts+++ b/packages/server/src/mcp/tools/skill-target.test.ts@@ -1,5 +1,5 @@import { afterEach, describe, expect, test } from 'vitest';-import { HOCUSPOCUS_NOT_RUNNING_ERROR, UNREADABLE_WARNINGS_TEXT } from './shared.ts';+import { hocuspocusNotRunningError, UNREADABLE_WARNINGS_TEXT } from './shared.ts';import { deleteSkill, moveSkill, moveSkillCrossScope, writeSkill } from './skill-target.ts';interface ToolResult {@@ -17,13 +17,13 @@ describe('skill verb tools — server-required contract', () => {description: 'Use when logging a trip.',})) as ToolResult;expect(r.isError).toBe(true);- expect(text(r)).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toBe(hocuspocusNotRunningError());});test('deleteSkill with no server URL returns the not-running error', async () => {const r = (await deleteSkill(undefined, { name: 'trip-log' })) as ToolResult;expect(r.isError).toBe(true);- expect(text(r)).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toBe(hocuspocusNotRunningError());});test('moveSkill with no server URL returns the not-running error', async () => {@@ -32,7 +32,7 @@ describe('skill verb tools — server-required contract', () => {toName: 'fishing-log',})) as ToolResult;expect(r.isError).toBe(true);- expect(text(r)).toBe(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toBe(hocuspocusNotRunningError());});});@@ -65,7 +65,7 @@ describe('skill verb tools — name grammar short-circuits before the network',toName: 'trip-log',})) as ToolResult;expect(r.isError).toBe(true);- expect(text(r)).toContain(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toContain(hocuspocusNotRunningError());expect(text(r)).toContain('moveState: nothing-written');expect(text(r)).toContain('safe to retry once the refusal is addressed');});diff --git a/packages/server/src/mcp/tools/skill-target.ts b/packages/server/src/mcp/tools/skill-target.tsindex 20bc28b8a..b0f5cd8fc 100644--- a/packages/server/src/mcp/tools/skill-target.ts+++ b/packages/server/src/mcp/tools/skill-target.ts@@ -17,7 +17,7 @@ import {agentIdentityFields,alignWarningCodes,errorTextWithDetail,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpDelete,httpGet,httpPost,@@ -60,7 +60,7 @@ export async function writeSkill() {const resolved = resolveSkillName(input.name);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const result = await httpPut(url, '/api/skill', {...(input.scope !== undefined ? { scope: input.scope } : {}),name: input.name,@@ -146,7 +146,7 @@ export async function writeSkillFile() {const resolved = resolveSkillName(input.name);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const result = await httpPut(url, '/api/skill-file', {...(input.scope !== undefined ? { scope: input.scope } : {}),name: input.name,@@ -207,7 +207,7 @@ export async function deleteSkillFile() {const resolved = resolveSkillName(input.name);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const params = new URLSearchParams({name: input.name,scope: input.scope ?? 'project',@@ -232,7 +232,7 @@ export async function deleteSkill() {const resolved = resolveSkillName(input.name);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const params = new URLSearchParams({ name: input.name, scope: input.scope ?? 'project' });if (input.summary !== undefined) params.set('summary', input.summary);appendIdentityParams(params, input.identity);@@ -259,7 +259,7 @@ export async function moveSkill(if (!rf.ok) return textResult(`Error: ${rf.error}`, true);const rt = resolveSkillName(input.toName);if (!rt.ok) return textResult(`Error: ${rt.error}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const result = await httpPost(url, '/api/skill', {...(input.scope !== undefined ? { scope: input.scope } : {}),fromName: input.fromName,@@ -388,7 +388,7 @@ export async function moveSkillCrossScope(if (!rf.ok) return refuse(`Error: ${rf.error}`);const rt = resolveSkillName(input.toName);if (!rt.ok) return refuse(`Error: ${rt.error}`);- if (!url) return refuse(HOCUSPOCUS_NOT_RUNNING_ERROR);+ if (!url) return refuse(hocuspocusNotRunningError());const moved = await httpPost(url, '/api/skill/move-scope', {name: input.fromName,diff --git a/packages/server/src/mcp/tools/skills.test.ts b/packages/server/src/mcp/tools/skills.test.tsindex b234a7e29..1eb23a662 100644--- a/packages/server/src/mcp/tools/skills.test.ts+++ b/packages/server/src/mcp/tools/skills.test.ts@@ -1,7 +1,7 @@import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { type Config, ConfigSchema } from '../../config/schema.ts';import { BUNDLE_SKILL_NAME } from '../../skill-bundles.ts';-import { HOCUSPOCUS_NOT_RUNNING_ERROR, type ServerInstance } from './shared.ts';+import { hocuspocusNotRunningError, type ServerInstance } from './shared.ts';import { register as registerSkills, type SkillsToolDeps } from './skills.ts';const BASE_CONFIG: Config = ConfigSchema.parse({});@@ -77,7 +77,7 @@ describe('skills read tool — server-required', () => {const handler = captureSkills(undefined);const r = await handler({ name: 'trip-log' });expect(r.isError).toBe(true);- expect(text(r)).toContain(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toContain(hocuspocusNotRunningError());});});@@ -162,7 +162,7 @@ describe('skills read tool — built-in OK skills short-circuit before the netwoconst handler = captureSkills(undefined);const r = await handler({ name: 'open-knowledge-pack-fishing' });expect(r.isError).toBe(true);- expect(text(r)).toContain(HOCUSPOCUS_NOT_RUNNING_ERROR);+ expect(text(r)).toContain(hocuspocusNotRunningError());});});diff --git a/packages/server/src/mcp/tools/skills.ts b/packages/server/src/mcp/tools/skills.tsindex 2f21e6d5d..b6c0c107f 100644--- a/packages/server/src/mcp/tools/skills.ts+++ b/packages/server/src/mcp/tools/skills.ts@@ -7,7 +7,7 @@ import { z } from 'zod';import { INTERNAL_BUNDLE_SKILL_NAMES, isInternalBundleSkillName } from '../../skill-bundles.ts';import {type ConfigOrResolver,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpGetRows,outputSchemaWithText,ROUTED_CWD_DESCRIPTION,@@ -296,7 +296,7 @@ export function register(server: ServerInstance, deps: SkillsToolDeps): void {);if (!context.ok) return textResult(`Error: ${context.error}`, true);const { url } = context;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if (args.query !== undefined) {const q = args.query.trim();diff --git a/packages/server/src/mcp/tools/write.ts b/packages/server/src/mcp/tools/write.tsindex 4435d2502..af9a436ae 100644--- a/packages/server/src/mcp/tools/write.ts+++ b/packages/server/src/mcp/tools/write.ts@@ -39,7 +39,7 @@ import {parseBrokenLinkSuppression,parseBrokenLinks,} from './advisory-warnings.ts';-import { buildPreviewAttachWarning, resolvePreviewUrl, START_UI_TEXT_HINT } from './preview-url.ts';+import { buildPreviewAttachWarning, resolvePreviewUrl, startUiTextHint } from './preview-url.ts';import type { ConfigOrResolver, ServerInstance, ServerUrlOrResolver } from './shared.ts';import {AUTHORING_WARNING_CODE_GLOSS,@@ -49,7 +49,7 @@ import {docExtensionOnDisk,documentResultBaseShape,errorTextWithDetail,- HOCUSPOCUS_NOT_RUNNING_ERROR,+ hocuspocusNotRunningError,httpPost,httpPut,looseObjectArray,@@ -395,7 +395,7 @@ async function handleFolder(url: string | undefined,deps: WriteDeps,) {- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const identity = deps.identityRef?.current;const result = await httpPost(apiTarget(url, deps.localApi), '/api/create-folder', {path: folder.path,@@ -443,7 +443,7 @@ async function handleTemplate(const resolved = resolveTemplatePath(template.path);if (!resolved.ok) return textResult(`Error: ${resolved.error}`, true);const { folder, name } = resolved;- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);const result = await httpPut(url, '/api/template', {folder,name,@@ -480,7 +480,7 @@ async function handleAsset(url: string | undefined,deps: WriteDeps,) {- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);if ((asset.content === undefined) === (asset.source === undefined)) {return textResult('Error: provide exactly one of `content` (base64) or `source` (local file path) for an asset.',@@ -815,7 +815,7 @@ async function handleSingleDoc(const fmNote = frontmatterIgnoredNote(w.position, spec.content);if (fmNote) lines.push(fmNote);if (w.extensionNote) lines.push(w.extensionNote);- if (noPreviewAnywhere && !preview) lines.push(START_UI_TEXT_HINT);+ if (noPreviewAnywhere && !preview) lines.push(startUiTextHint());if (summaryHint) lines.push(summaryHint);if (hints) {for (const hint of hints) {@@ -1112,7 +1112,7 @@ export function register(server: ServerInstance, deps: WriteDeps): void {'documents',]);if (teaching) return textResult(`Error: ${teaching}`, true);- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);return handleBatch(args.documents, cwd, contentDir, url, deps, lockDir, autoOpen);}@@ -1126,7 +1126,7 @@ export function register(server: ServerInstance, deps: WriteDeps): void {if (teaching) return textResult(`Error: ${teaching}`, true);if (args.document !== undefined) {- if (!url) return textResult(HOCUSPOCUS_NOT_RUNNING_ERROR, true);+ if (!url) return textResult(hocuspocusNotRunningError(), true);return handleSingleDoc({ ...args.document, summary: args.summary },cwd,diff --git a/packages/server/src/missing-ok-config-error.test.ts b/packages/server/src/missing-ok-config-error.test.tsindex f0434f887..652789350 100644--- a/packages/server/src/missing-ok-config-error.test.ts+++ b/packages/server/src/missing-ok-config-error.test.ts@@ -1,12 +1,30 @@-import { describe, expect, test } from 'vitest';-import { MISSING_OK_CONFIG_MESSAGE, MissingOkConfigError } from './missing-ok-config-error.ts';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { MissingOkConfigError, missingOkConfigMessage } from './missing-ok-config-error.ts';++afterEach(() => {+ vi.unstubAllEnvs();+});describe('MissingOkConfigError', () => {test('carries the canonical message verbatim for both kinds', () => {const a = new MissingOkConfigError('okdir', '/tmp/proj-a');const b = new MissingOkConfigError('config', '/tmp/proj-b');- expect(a.message).toBe(MISSING_OK_CONFIG_MESSAGE);- expect(b.message).toBe(MISSING_OK_CONFIG_MESSAGE);+ expect(a.message).toBe(missingOkConfigMessage());+ expect(b.message).toBe(missingOkConfigMessage());+ });++ test('tells a Stable user to run ok init', () => {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(new MissingOkConfigError('okdir', '/tmp/proj').message).toBe(+ 'OpenKnowledge config not found at .ok/config.yml. Run ok init to scaffold OK in this directory.',+ );+ });++ test('tells a Beta user to run ok-beta init', () => {+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(new MissingOkConfigError('okdir', '/tmp/proj').message).toBe(+ 'OpenKnowledge config not found at .ok/config.yml. Run ok-beta init to scaffold OK in this directory.',+ );});test('discriminator + projectDir are queryable as readonly fields', () => {diff --git a/packages/server/src/missing-ok-config-error.ts b/packages/server/src/missing-ok-config-error.tsindex 76832f2c1..39218a338 100644--- a/packages/server/src/missing-ok-config-error.ts+++ b/packages/server/src/missing-ok-config-error.ts@@ -1,13 +1,16 @@+import { currentCliCommandName } from '@inkeep/open-knowledge-core';+export type MissingOkConfigKind = 'okdir' | 'config';-export const MISSING_OK_CONFIG_MESSAGE =- 'OpenKnowledge config not found at .ok/config.yml. Run ok init to scaffold OK in this directory.';+export function missingOkConfigMessage(): string {+ return `OpenKnowledge config not found at .ok/config.yml. Run ${currentCliCommandName()} init to scaffold OK in this directory.`;+}export class MissingOkConfigError extends Error {readonly kind: MissingOkConfigKind;readonly projectDir: string;constructor(kind: MissingOkConfigKind, projectDir: string, options?: { cause?: unknown }) {- super(MISSING_OK_CONFIG_MESSAGE, options);+ super(missingOkConfigMessage(), options);this.name = 'MissingOkConfigError';this.kind = kind;this.projectDir = projectDir;diff --git a/packages/server/src/server-authority.test.ts b/packages/server/src/server-authority.test.tsindex 09d8fca12..11369b1ed 100644--- a/packages/server/src/server-authority.test.ts+++ b/packages/server/src/server-authority.test.ts@@ -20,6 +20,14 @@ import {} from './server-authority.ts';import { ServerAuthorityLeaseVerificationError } from './server-authority-lease.ts';+beforeEach(() => {+ vi.stubEnv('OK_CHANNEL', 'stable');+});++afterEach(() => {+ vi.unstubAllEnvs();+});+vi.mock('node:fs', async (importOriginal) => ({...(await importOriginal<typeof import('node:fs')>()),}));@@ -290,6 +298,19 @@ describe('acquireServerAuthority', () => {expect(() => claim(tree())).toThrow(/Never remove either while a server is running/);});+ test('corrupt registry recovery names the running channel command', () => {+ writeFileSync(join(directory, 'corrupt.sqlite'), 'not a SQLite database');+ registryPath = join(directory, 'corrupt.sqlite');+ try {+ vi.stubEnv('OK_CHANNEL', 'stable');+ expect(() => claim(tree())).toThrow(/Run ok stop all and confirm/);+ vi.stubEnv('OK_CHANNEL', 'beta');+ expect(() => claim(tree())).toThrow(/Run ok-beta stop all and confirm/);+ } finally {+ vi.unstubAllEnvs();+ }+ });+test('unwritable registry location fails closed', () => {const parentFile = join(directory, 'not-a-directory');writeFileSync(parentFile, 'file');diff --git a/packages/server/src/server-authority.ts b/packages/server/src/server-authority.tsindex 0645b05bb..a6b8b89f7 100644--- a/packages/server/src/server-authority.ts+++ b/packages/server/src/server-authority.ts@@ -2,7 +2,12 @@ import { randomUUID } from 'node:crypto';import { userInfo } from 'node:os';import { dirname, isAbsolute, normalize, relative, resolve, sep } from 'node:path';import { DatabaseSync } from 'node:sqlite';-import { LOCAL_DIR, OK_DIR, SERVER_AUTHORITY_REGISTRY_FILENAME } from '@inkeep/open-knowledge-core';+import {+ currentCliCommandName,+ LOCAL_DIR,+ OK_DIR,+ SERVER_AUTHORITY_REGISTRY_FILENAME,+} from '@inkeep/open-knowledge-core';import { z } from 'zod';import {normalizeFsPath,@@ -38,7 +43,7 @@ type ServerAuthorityVerification =| { kind: 'failed'; error: ServerAuthorityLeaseVerificationError };function ownershipRegistryRecovery(registryPath: string | undefined): string {- return `Run ok stop all and confirm every OpenKnowledge server under this OS account has exited. Then back up and remove ${registryPath ?? 'the named ownership registry'} together with its -journal file if present, keeping them together as one backup. Never remove either while a server is running.`;+ return `Run ${currentCliCommandName()} stop all and confirm every OpenKnowledge server under this OS account has exited. Then back up and remove ${registryPath ?? 'the named ownership registry'} together with its -journal file if present, keeping them together as one backup. Never remove either while a server is running.`;}function unverifiedOwnershipMessage(