Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
ACP MCP injection: ground-truth verification matrix, delivery hardening, and a consent-gated pi bridge (#3726)
mike-inkeep97795d413fb9
diff --git a/.changeset/acp-mcp-injection-hardening.md b/.changeset/acp-mcp-injection-hardening.mdnew file mode 100644index 000000000..fdaefd441--- /dev/null+++ b/.changeset/acp-mcp-injection-hardening.md@@ -0,0 +1,10 @@+---+"@inkeep/open-knowledge": minor+---++Agent threads now deliver Open Knowledge tools more reliably across ACP agents, and pi gets them for the first time.++- pi agent threads: Open Knowledge has always integrated with pi through its extension system rather than MCP. Starting a pi thread in a project that isn't wired yet now offers a one-tap consent card that installs the bridge extension and marks the project trusted in pi. The card spells out what approving commits you to — pi folder trust covers every extension in the folder, not only Open Knowledge's, and it names any other extensions already there — and both the extension and the trust entry stay until you remove Open Knowledge from the project, which now also revokes the trust entry. Declining leaves the thread fully usable without Open Knowledge tools; reopening that thread won't re-ask, but the next pi thread will.+- Cursor agent threads in a wired project got no Open Knowledge tools at all: Cursor requires separate approval for a configured MCP server, so a configured entry there is not a loaded one, and Open Knowledge was standing down on the assumption that it was. It now always injects for Cursor.+- The MCP server entry handed to agents over stdio now uses an absolute command path and carries the same `PATH` the agent itself was launched with, fixing silent tool absence under agents that launch MCP servers with a stripped environment, or when the app was started from the Dock with a minimal `PATH`.+- Threads whose agent ends up with no Open Knowledge tool transport at all now log a warning instead of failing silently, and the server records which delivery channel each session's injection landed on.diff --git a/knip.config.ts b/knip.config.tsindex 78162ec09..b61debe5e 100644--- a/knip.config.ts+++ b/knip.config.ts@@ -59,6 +59,7 @@ export default {'scripts/build-slack-release-payload.mjs': ['files'],'scripts/assert-smoke-not-vacuous.mjs': ['files'],'scripts/assert-app-built.mjs': ['files'],+ 'scripts/acp-mcp-rig/*.mjs': ['files'],'docs/src/lib/share-splash.ts': ['exports', 'types'],'packages/app/src/components/PublishToGitHubDialog.tsx': ['types'],'packages/app/src/components/ShareButton.tsx': ['types'],diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsxindex 1e558ce07..4eda82e84 100644--- a/packages/app/src/components/acp/ThreadView.tsx+++ b/packages/app/src/components/acp/ThreadView.tsx@@ -1996,6 +1996,8 @@ function ThreadItem({);case 'runtime_consent':return <RuntimeConsentPrompt item={item} threadId={threadId} />;+ case 'pi_bridge':+ return <PiBridgeConsentPrompt item={item} threadId={threadId} />;case 'notice':return (<ThreadNotice@@ -3447,6 +3449,155 @@ function RuntimeConsentPrompt({);}+/**+ * How a Pi bridge attempt settled. Each state names a different fix, so none+ * of them share copy.+ */+function PiBridgeOutcomeRow({+ outcome,+ bridgePath,+}: {+ outcome: NonNullable<Extract<RenderedItem, { kind: 'pi_bridge' }>['outcome']>;+ bridgePath: string;+}): ReactNode {+ const { t } = useLingui();+ const ready = outcome.state === 'ready';+ return (+ <div+ className="rounded-md border border-border/60 bg-muted/20 px-2.5 py-2 text-muted-foreground text-xs"+ data-testid="agent-thread-pi-bridge"+ >+ <div className="flex items-start gap-1.5">+ {ready ? (+ <Check+ className="mt-px size-3.5 shrink-0 text-green-600 dark:text-green-400"+ aria-hidden="true"+ />+ ) : null}+ <span>+ {outcome.state === 'ready'+ ? t`Open Knowledge tools are available in this thread.`+ : outcome.state === 'foreign-file'+ ? t`Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at ${bridgePath}.`+ : outcome.state === 'unreadable-file'+ ? t`Open Knowledge tools are unavailable: something is already at ${bridgePath} but couldn't be read, so Open Knowledge left it alone.`+ : outcome.state === 'trust-failed'+ ? // The bridge is on disk but pi won't read it, so saying+ // "couldn't write it" would send the user to the wrong half.+ t`Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools.`+ : t`Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools.`}+ </span>+ </div>+ {outcome.detail !== null ? (+ <div className="mt-1 break-all font-mono text-[11px] opacity-80">{outcome.detail}</div>+ ) : null}+ </div>+ );+}++/**+ * Prompt (and outcome) for provisioning Pi's bridge extension — the only way+ * OK's tools reach a Pi thread, since Pi has no MCP client. Same retained-item+ * shape as {@link RuntimeConsentPrompt}: it renders identically live and on+ * replay. The folder-trust disclosure is load-bearing copy, not a footnote —+ * approving lets Pi load every extension in that folder, not only OK's.+ */+function PiBridgeConsentPrompt({+ item,+ threadId,+}: {+ item: Extract<RenderedItem, { kind: 'pi_bridge' }>;+ threadId: string;+}): ReactNode {+ const { t } = useLingui();+ const client = getAgentThreadClient();++ // A notice is an outcome nobody was asked about; a prompted row that already+ // has one is done being a prompt. Splitting on the tag first is what lets the+ // rest of this function treat `item.prompt` as present.+ if (item.row === 'notice') {+ return <PiBridgeOutcomeRow outcome={item.outcome} bridgePath={item.bridgePath} />;+ }+ if (item.outcome !== null) {+ return <PiBridgeOutcomeRow outcome={item.outcome} bridgePath={item.bridgePath} />;+ }++ if (item.decision === 'declined' || item.decision === 'timeout') {+ return (+ <div+ className="rounded-md border border-border/60 bg-muted/20 px-2.5 py-2 text-muted-foreground text-xs"+ data-testid="agent-thread-pi-bridge"+ >+ {item.decision === 'declined'+ ? t`Skipped enabling Open Knowledge tools. This thread runs without them.`+ : t`The request to enable Open Knowledge tools timed out. This thread runs without them.`}+ </div>+ );+ }++ if (item.decision === 'granted') {+ return (+ <div+ className="flex items-center gap-1.5 rounded-md border border-border/60 bg-muted/20 px-2.5 py-2 text-muted-foreground text-xs"+ data-testid="agent-thread-pi-bridge"+ >+ <Spinner className="size-3.5 shrink-0" aria-hidden="true" />+ <span>{t`Enabling Open Knowledge tools`}</span>+ </div>+ );+ }++ const prompt = item.prompt;+ const otherExtensions = prompt.otherExtensions.join(', ');+ return (+ <div+ className="rounded-md border border-blue-500/40 bg-blue-500/5 px-2.5 py-2 text-sm"+ data-testid="agent-thread-pi-bridge"+ >+ <div className="mb-1 flex items-center gap-1.5 font-medium">+ <Wrench className="size-4 shrink-0" aria-hidden="true" />+ <span>{t`Enable Open Knowledge tools for ${prompt.agentName}?`}</span>+ </div>+ <p className="mb-1.5 text-muted-foreground text-xs">+ {t`${prompt.agentName} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to ${item.bridgePath} and leaves it there, so this session and later ones in this project have the Open Knowledge tools.`}+ </p>+ <p className="mb-2 text-muted-foreground text-xs">+ {t`It also marks ${prompt.cwd} as trusted, which is what makes the extension load. That trust covers the whole folder — ${prompt.agentName} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project.`}+ </p>+ {otherExtensions !== '' ? (+ <p className="mb-2 text-muted-foreground text-xs">+ {t`That folder already holds code Open Knowledge didn't write, which the same trust would let ${prompt.agentName} run: ${otherExtensions}.`}+ </p>+ ) : null}+ <div className="flex flex-wrap gap-1.5">+ <Button+ type="button"+ size="sm"+ className="h-7 text-xs"+ onClick={() =>+ client.respondPiBridgeConsent(threadId, prompt.requestId, { kind: 'granted' })+ }+ data-testid="agent-thread-pi-bridge-allow"+ >+ {t`Approve`}+ </Button>+ <Button+ type="button"+ size="sm"+ variant="outline"+ className="h-7 text-xs"+ onClick={() =>+ client.respondPiBridgeConsent(threadId, prompt.requestId, { kind: 'declined' })+ }+ data-testid="agent-thread-pi-bridge-decline"+ >+ {t`Not now`}+ </Button>+ </div>+ </div>+ );+}+function consentPercent(progress: { receivedBytes: number; totalBytes: number | null } | null,): number | null {diff --git a/packages/app/src/components/acp/transcript-item-id.ts b/packages/app/src/components/acp/transcript-item-id.tsindex d9c755afb..4bb630bac 100644--- a/packages/app/src/components/acp/transcript-item-id.ts+++ b/packages/app/src/components/acp/transcript-item-id.ts@@ -17,6 +17,9 @@ export function transcriptItemId(item: RenderedItem, index: number): string {return `perm:${item.requestId}`;case 'runtime_consent':return `consent:${item.requestId}`;+ case 'pi_bridge':+ // A prompt-less row (a limitation notice) has no domain id of its own.+ return `pi-bridge:${item.prompt?.requestId ?? index}`;case 'notice':return `notice:${index}`;}diff --git a/packages/app/src/lib/acp/thread-client.ts b/packages/app/src/lib/acp/thread-client.tsindex d743ee10a..e0b419d48 100644--- a/packages/app/src/lib/acp/thread-client.ts+++ b/packages/app/src/lib/acp/thread-client.ts@@ -21,6 +21,7 @@ import type {ThreadInfo,ThreadServerFrame,} from '@inkeep/open-knowledge-core/acp/thread-protocol';+import { THREAD_REOPEN_OP_TIMEOUT_MS } from '@inkeep/open-knowledge-core/acp/thread-protocol';import { t } from '@lingui/core/macro';import { useSyncExternalStore } from 'react';import { toast } from 'sonner';@@ -56,9 +57,9 @@ const RECONNECT_MIN_MS = 500;const RECONNECT_MAX_MS = 15_000;const CREATE_TIMEOUT_MS = 30_000;/** Resume resolves only after the full agent respawn + session handshake (npx cold boots take a while). */-const RESUME_TIMEOUT_MS = 90_000;+const RESUME_TIMEOUT_MS = THREAD_REOPEN_OP_TIMEOUT_MS;/** Retry re-runs the same launch, plus a fresh login-shell PATH probe. */-const RETRY_TIMEOUT_MS = 90_000;+const RETRY_TIMEOUT_MS = THREAD_REOPEN_OP_TIMEOUT_MS;/** Sign-in can park on a browser round trip before the session re-opens. */const AUTHENTICATE_TIMEOUT_MS = 180_000;const CHANNEL_WAIT_MS = 8_000;@@ -329,6 +330,15 @@ export class AgentThreadClient {this.send({ op: 'runtime_consent_response', threadId, requestId, outcome });}+ /** Allow (or refuse) provisioning Pi's bridge extension for this project. */+ respondPiBridgeConsent(+ threadId: string,+ requestId: string,+ outcome: { kind: 'granted' } | { kind: 'declined' },+ ): void {+ this.send({ op: 'pi_bridge_consent_response', threadId, requestId, outcome });+ }+cancel(threadId: string): void {this.send({ op: 'cancel', threadId });}diff --git a/packages/app/src/lib/acp/thread-event-model.test.ts b/packages/app/src/lib/acp/thread-event-model.test.tsindex 83e94a548..974a92b49 100644--- a/packages/app/src/lib/acp/thread-event-model.test.ts+++ b/packages/app/src/lib/acp/thread-event-model.test.ts@@ -446,6 +446,136 @@ describe('buildThreadRenderModel', () => {true,);});++ const piBridgeRequest = (): ThreadEvent =>+ ev({+ kind: 'pi_bridge_consent_request',+ requestId: 'p1',+ agentName: 'Pi',+ bridgePath: '/proj/.pi/extensions/open-knowledge.ts',+ cwd: '/proj',+ ts: 1,+ });++ const piCard = (events: ThreadEvent[]): Extract<RenderedItem, { kind: 'pi_bridge' }> => {+ const card = buildThreadRenderModel(events).items.find((i) => i.kind === 'pi_bridge');+ if (card?.kind !== 'pi_bridge') throw new Error('no pi_bridge card');+ return card;+ };++ test('renders a pending pi-bridge card from the request event', () => {+ expect(piCard([piBridgeRequest()])).toMatchObject({+ prompt: { requestId: 'p1', agentName: 'Pi', cwd: '/proj' },+ bridgePath: '/proj/.pi/extensions/open-knowledge.ts',+ decision: null,+ outcome: null,+ });+ });++ test('approve → the outcome folds onto the same card, one row for both halves', () => {+ const card = piCard([+ piBridgeRequest(),+ ev({ kind: 'pi_bridge_consent_resolved', requestId: 'p1', decision: 'granted', ts: 2 }),+ ev({+ kind: 'pi_bridge_status',+ requestId: 'p1',+ state: 'ready',+ bridgePath: '/proj/.pi/extensions/open-knowledge.ts',+ bridge: 'written',+ trust: 'added',+ ts: 3,+ }),+ ]);+ expect(card.decision).toBe('granted');+ expect(card.outcome).toEqual({ state: 'ready', detail: null });+ });++ test('a refusal settles the card and never grows an outcome', () => {+ const card = piCard([+ piBridgeRequest(),+ ev({ kind: 'pi_bridge_consent_resolved', requestId: 'p1', decision: 'declined', ts: 2 }),+ ]);+ expect(card.decision).toBe('declined');+ expect(card.outcome).toBeNull();+ });++ test('a timeout settles the card the same way a refusal does', () => {+ expect(+ piCard([+ piBridgeRequest(),+ ev({ kind: 'pi_bridge_consent_resolved', requestId: 'p1', decision: 'timeout', ts: 2 }),+ ]).decision,+ ).toBe('timeout');+ });++ test('a half-landed provisioning keeps its machine detail on the card', () => {+ const card = piCard([+ piBridgeRequest(),+ ev({ kind: 'pi_bridge_consent_resolved', requestId: 'p1', decision: 'granted', ts: 2 }),+ ev({+ kind: 'pi_bridge_status',+ requestId: 'p1',+ state: 'trust-failed',+ bridgePath: '/proj/.pi/extensions/open-knowledge.ts',+ bridge: 'written',+ trust: 'failed',+ detail: 'EACCES',+ ts: 3,+ }),+ ]);+ expect(card.outcome).toEqual({ state: 'trust-failed', detail: 'EACCES' });+ });++ // A status with nothing to fold onto — the foreign-file case, where nobody+ // was asked anything — still has to reach the transcript as its own row.+ test('a prompt-less status stands alone as a limitation row', () => {+ const model = buildThreadRenderModel([+ ev({+ kind: 'pi_bridge_status',+ state: 'foreign-file',+ bridgePath: '/proj/.pi/extensions/open-knowledge.ts',+ ts: 1,+ }),+ ]);+ const rows = model.items.filter((i) => i.kind === 'pi_bridge');+ expect(rows).toHaveLength(1);+ expect(rows[0]).toMatchObject({+ prompt: null,+ decision: null,+ outcome: { state: 'foreign-file', detail: null },+ });+ });++ // Same defense as the resolved-permission path: an answer whose question+ // fell off the retained log must not retarget some other row.+ test('an outcome for an unknown requestId becomes its own row', () => {+ const model = buildThreadRenderModel([+ piBridgeRequest(),+ ev({+ kind: 'pi_bridge_status',+ requestId: 'gone',+ state: 'ready',+ bridgePath: '/other',+ ts: 2,+ }),+ ]);+ const rows = model.items.filter((i) => i.kind === 'pi_bridge');+ expect(rows).toHaveLength(2);+ expect(rows[0]).toMatchObject({ prompt: { requestId: 'p1' }, outcome: null });+ expect(rows[1]).toMatchObject({ prompt: null, bridgePath: '/other' });+ });++ // Forward compatibility for the reverse skew: a transcript written by a+ // NEWER server replays on this client without losing the events it does+ // understand. `as never` is the only way past the union.+ test('an event kind this client has never heard of is skipped, not fatal', () => {+ const model = buildThreadRenderModel([+ ev({ kind: 'user_message', content: 'hi', ts: 1 }),+ { kind: 'pi_bridge_teleported', ts: 2 } as never,+ piBridgeRequest(),+ ]);+ expect(model.items.map((i) => i.kind)).toEqual(['message', 'pi_bridge']);+ });});describe('terminal folding', () => {diff --git a/packages/app/src/lib/acp/thread-event-model.ts b/packages/app/src/lib/acp/thread-event-model.tsindex 57e74d5d6..de96eae61 100644--- a/packages/app/src/lib/acp/thread-event-model.ts+++ b/packages/app/src/lib/acp/thread-event-model.ts@@ -23,6 +23,7 @@import type {PermissionOption,+ PiBridgeThreadState,SessionUpdate,ThreadEvent,ThreadFailureDetail,@@ -149,12 +150,56 @@ interface RenderedRuntimeConsent {progress: { receivedBytes: number; totalBytes: number | null } | null;}+/**+ * Pi's bridge extension for this project, as one transcript row: the consent+ * prompt while it is pending, and its settled outcome afterwards. A status+ * event can arrive with no prompt before it (a file OK won't touch already+ * sits at the managed path), which is why `requestId` is nullable — that row+ * is a limitation notice, not an answered question.+ */+interface RenderedPiBridgePrompt {+ requestId: string;+ agentName: string;+ cwd: string;+ /** Other extensions in that folder the trust grant would also turn on. */+ otherExtensions: readonly string[];+}++interface RenderedPiBridgeOutcome {+ state: PiBridgeThreadState;+ detail: string | null;+}++/**+ * A Pi bridge row is one of two things, tagged so the renderer narrows instead+ * of guarding a state that cannot exist: a row the user was asked about (which+ * may still be awaiting its outcome), or a standing limitation notice, which is+ * an outcome nobody was asked about. `outcome` alone can't carry the tag — a+ * property only discriminates when its type is a union of unit types, and an+ * object-or-null is not.+ */+interface RenderedPiBridgeBase {+ kind: 'pi_bridge';+ bridgePath: string;+ /** null while awaiting the user's answer. */+ decision: 'granted' | 'declined' | 'timeout' | null;+}++type RenderedPiBridge =+ | (RenderedPiBridgeBase & {+ row: 'prompted';+ prompt: RenderedPiBridgePrompt;+ outcome: RenderedPiBridgeOutcome | null;+ })+ | (RenderedPiBridgeBase & { row: 'notice'; prompt: null; outcome: RenderedPiBridgeOutcome });+export type RenderedItem =| RenderedMessage| RenderedToolCall| RenderedPermission| RenderedNotice- | RenderedRuntimeConsent;+ | RenderedRuntimeConsent+ | RenderedPiBridge;export interface PlanEntry {content: string;@@ -214,6 +259,8 @@ export class ThreadRenderModelBuilder {private permissionsByToolCall: Record<string, RenderedPermission> = {};private messageIndex = new Map<string, number>();private runtimeConsentIndex = new Map<string, number>();+ /** Item index of the Pi bridge card by consent requestId. */+ private piBridgeIndex = new Map<string, number>();/** Item index of the most recent consent card — progress events target it. */private lastConsentIndex: number | null = null;private appliedCount = 0;@@ -266,6 +313,7 @@ export class ThreadRenderModelBuilder {this.permissionsByToolCall = {};this.messageIndex = new Map();this.runtimeConsentIndex = new Map();+ this.piBridgeIndex = new Map();this.lastConsentIndex = null;this.appliedCount = 0;this.dirty = true;@@ -441,6 +489,52 @@ export class ThreadRenderModelBuilder {};break;}+ case 'pi_bridge_consent_request':+ this.piBridgeIndex.set(event.requestId, this.items.length);+ this.items.push({+ kind: 'pi_bridge',+ row: 'prompted',+ prompt: {+ requestId: event.requestId,+ agentName: event.agentName,+ cwd: event.cwd,+ // Persisted events from before this field existed replay without it.+ otherExtensions: event.otherExtensions ?? [],+ },+ bridgePath: event.bridgePath,+ decision: null,+ outcome: null,+ });+ break;+ case 'pi_bridge_consent_resolved': {+ const index = this.piBridgeIndex.get(event.requestId);+ if (index === undefined) break;+ const target = this.items[index];+ if (target.kind !== 'pi_bridge') break;+ this.items[index] = { ...target, decision: event.decision };+ break;+ }+ case 'pi_bridge_status': {+ const outcome = { state: event.state, detail: event.detail ?? null };+ const index =+ event.requestId === undefined ? undefined : this.piBridgeIndex.get(event.requestId);+ const target = index === undefined ? undefined : this.items[index];+ // Fold onto the card that asked, so one row carries question and+ // answer. A status with no card of its own to update stands alone.+ if (index !== undefined && target?.kind === 'pi_bridge') {+ this.items[index] = { ...target, outcome };+ break;+ }+ this.items.push({+ kind: 'pi_bridge',+ row: 'notice',+ prompt: null,+ bridgePath: event.bridgePath,+ decision: null,+ outcome,+ });+ break;+ }case 'runtime_install_progress': {if (this.lastConsentIndex === null) break;const target = this.items[this.lastConsentIndex];diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 9d2772964..cae89e65d 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -37,6 +37,7 @@"-K0AvT": ["قطع الاتصال"],"-LHLx7": ["حرّر قالبًا"],"-QCLWk": ["قوالب متاحة"],+ "-QVER4": ["جارٍ تفعيل أدوات Open Knowledge"],"-Qw-1t": ["فشلت مصادقة GitHub. حاول تسجيل الدخول مرة أخرى."],"-VqsyR": ["يجري التفكير…"],"-WFFG2": ["الخصائص الافتراضية"],@@ -796,6 +797,11 @@"8x6zk9": ["إخفاء محرر ", ["0"]],"9-lMCF": ["لون ", ["slot"], " — ", ["0"]],"90-wKT": ["قرأ OpenKnowledge سجل ", ["subject"]],+ "92G3B2": [+ "أدوات Open Knowledge غير متاحة: يوجد بالفعل شيء في ",+ ["bridgePath"],+ " لكن تعذّرت قراءته، لذا تركته Open Knowledge كما هو."+ ],"92rbk2": ["يجري تحميل المرآة <0>", ["mirrorRef"], "</0>"],"93LBnX": ["إخفاء الوكلاء"],"96G6Re": ["مجلد جديد"],@@ -1349,6 +1355,7 @@"إعدادات هذا المشروع. بعضها يُشارك مع كل متعاون عبر git، وبعضها ينطبق على هذا الكمبيوتر فقط."],"FNTx6u": ["ابحث عن «", ["semanticSubmitQuery"], "» حسب المعنى"],+ "FNsxBc": ["أدوات Open Knowledge متاحة في هذه السلسلة."],"FOGD7m": ["اصنع شيئًا رائعًا."],"FQwhfM": ["عنوان URL العام الذي يخدمه نفقك (مثل عنوان Tailscale الخاص بك https://…ts.net). يقبل الخادم الطلبات لهذا المضيف ويعلن عنه في عناوين URL التي يصدرها."@@ -1704,6 +1711,13 @@"Jw6EC4": ["فشل تبديل الفرع — حاول فتح ", ["targetNoun"], " يدويًا."],"JyM0gO": ["أُرسلت، لكن تعذّر وضع علامة «تم» على التعليقات — لا تزال في انتظار الإرسال."],"JyW5aS": ["يجري الغربلة…"],+ "JznUmv": [+ "لا يستطيع ",+ ["0"],+ " قراءة مستنداتك أو تحريرها بمفرده. عند الموافقة تُكتب إضافة Open Knowledge إلى ",+ ["1"],+ " وتبقى هناك، فتتوفّر أدوات Open Knowledge لهذه الجلسة وللجلسات اللاحقة في هذا المشروع."+ ],"K-NcyU": ["لا يحتوي هذا المجلد على مستودع git. هل تختار مجلدًا آخر؟"],"K-a33w": ["ابدأ الكتابة لإنشاء هذه الصفحة"],"K-h9cT": ["تعذّر حفظ الحل لـ ", ["filePath"], "."],@@ -2024,6 +2038,7 @@"NRSLBe": ["قبل ", ["diffMin"], " دقيقة"],"NSnIUP": ["صفحتان (زوجي)"],"NUr4kz": ["نقطة انطلاق قابلة لإعادة الاستخدام للمستندات الجديدة في هذا المجلد."],+ "NY0p7s": ["تم تخطّي تفعيل أدوات Open Knowledge. تعمل هذه السلسلة بدونها."],"NYUhy5": ["اسم المجلد الفرعي"],"NYn1cR": ["يجري تحميل المحرر"],"NYu2Pt": ["مشروع جديد…"],@@ -2413,6 +2428,7 @@"SItQRc": ["ما رأيك في OpenKnowledge؟"],"SOPwPh": ["الاستعادة إلى هذا التعديل"],"SRBk2G": ["تعذّرت إضافة ذلك التعليق."],+ "SRLcL7": ["هل تريد تفعيل أدوات Open Knowledge لـ ", ["0"], "؟"],"STTOnz": ["نوع ", ["keyName"], ": قيمة مركّبة (متداخلة؛ للقراءة فقط)"],"SUOoXn": ["فشل فتح المشروع."],"SVLPt5": [["formatted"], " نجمة على GitHub"],@@ -3034,6 +3050,7 @@"لا يوجد ملف <0>.markdownlint.*</0> بعد — تعمل كل قاعدة على الافتراضيات نفسها التي يستخدمها امتداد markdownlint في VS Code: الكل مفعّل، ما عدا طول السطر."],"Z79bnE": ["عرض فروق التعديل ", ["burstNumber"], " في ", ["docName"]],+ "Z7ZXbT": ["موافقة"],"Z7x_Zh": ["يحتاج Git إلى ",["tool"],@@ -3327,6 +3344,13 @@"c863eW": ["تعذّر التبديل إلى ", ["shareBranch"], ". حاول التبديل يدويًا."],"c8iK2Y": ["لم يُعثر على قوالب."],"c8jBgX": ["يجري التحقق من التحديثات على GitHub"],+ "c8wKUP": [+ "كما يضع ذلك ",+ ["0"],+ " ضمن المجلدات الموثوقة، وهو ما يجعل الإضافة تُحمَّل. تشمل هذه الثقة المجلد بأكمله: سيُحمِّل ",+ ["1"],+ " كل إضافة فيه، لا إضافة Open Knowledge وحدها، ويبقى كلاهما إلى أن تزيل Open Knowledge من هذا المشروع."+ ],"cCd8Bs": ["قص"],"cD3aew": ["تحدث إعادة التضمين أثناء تشغيل عمليات البحث، لذا تبدأ التغطية من الصفر وتمتلئ من جديد."@@ -3934,6 +3958,11 @@"افتح جلسة جديدة مع الذكاء الاصطناعي المفضّل لديك. مع تحديد نص، جهّزه هناك بدلًا من تشغيله."],"j5CWO4": ["محدَّث"],+ "j6HvUO": [+ "أدوات Open Knowledge غير متاحة: يوجد بالفعل في ",+ ["bridgePath"],+ " ملف لم تكتبه Open Knowledge."+ ],"j9Vqvc": ["موروث"],"j9tqwO": ["ليس في الشريط الجانبي"],"jAMpHn": ["ما حزمة البداية؟"],@@ -4051,6 +4080,7 @@["targetNoun"]," بمجرد مزامنة الفرع."],+ "kNG0s5": ["تعذّر كتابة إضافة Open Knowledge. لا تتوفر أدوات Open Knowledge في هذه السلسلة."],"kNGLX6": ["جارٍ إعادة المحاولة…"],"kNqMMd": ["مجلد"],"kRTXGw": [@@ -4240,6 +4270,7 @@"mGaZwZ": ["اطّلع على دليل التثبيت الكامل"],"mHVPm5": ["إعادة الاتصال مطلوبة"],"mHf8mp": ["حذف ملف المخطط ", ["file"]],+ "mHo0kp": ["انتهت مهلة طلب تفعيل أدوات Open Knowledge. تعمل هذه السلسلة بدونها."],"mLAjyL": ["امنح أدوات الذكاء الاصطناعي التي تستخدمها إذن قراءة مشاريعك وتحديثها. تحديد مربع يُعدّه فورًا؛ وإلغاء التحديد يزيله."],@@ -4318,6 +4349,9 @@"mlA3HX": ["ثبّت مهارات OpenKnowledge وMCP على مستوى النظام ليتمكن الوكلاء الذين تستخدمهم بالفعل من قراءة مشاريعك وتحديثها."],+ "mlDKzr": [+ "تمت كتابة إضافة Open Knowledge، لكن تعذّر تعليم المجلد كموثوق، لذا لن تُحمَّل. لا تتوفر أدوات Open Knowledge في هذه السلسلة."+ ],"mlvM8g": ["تعذّرت إعادة وضع ذلك التعليق."],"mmpzAq": ["لُف الأسطر الطويلة في محرر مصدر Markdown."],"mnpsVn": [@@ -5159,6 +5193,13 @@"wndeIl": ["صفحات على مستوى المشروع بلا حواف واردة ولا صادرة في الرسم البياني."],"wqD3pI": ["تعذّر تحديث ", ["failed"], " من ", ["0"], " تعليقات."],"ws5o1F": ["تحقق منه: ", ["0"]],+ "wsLj3t": [+ "يحتوي هذا المجلد بالفعل على شيفرة لم تكتبها Open Knowledge وستسمح الثقة نفسها لـ ",+ ["0"],+ " بتشغيلها: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["هل تشارك هذا الإعداد مع فريقك؟"],"wtd69q": ["لا توجد مجلدات مطابقة."],"wvK7Ay": ["نسختك المحلية من الفرع <0>", ["branch"], "</0> متأخرة."],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex d8c980afd..0c9442122 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -317,6 +317,12 @@ msgstr "{0} لا يمكنه متابعة هذه المحادثة — النص مmsgid "{0} doesn't offer any settings to adjust"msgstr "{0} لا يوفر أي إعدادات للضبط"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "لا يستطيع {0} قراءة مستنداتك أو تحريرها بمفرده. عند الموافقة تُكتب إضافة Open Knowledge إلى {1} وتبقى هناك، فتتوفّر أدوات Open Knowledge لهذه الجلسة وللجلسات اللاحقة في هذا المشروع."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "يجري تطبيق تغييرك"msgid "Applying…"msgstr "جارٍ التطبيق…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "موافقة"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "موافق عليه"@@ -3974,6 +3984,10 @@ msgstr "تعذّر تحديث مشاركة المهارات — {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "تعذر التحقق من توفر {displayName} ({bin})، لذا هذه جلسة shell عادية. لا يزال بإمكانك تشغيل {bin} بنفسك."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "تعذّر كتابة إضافة Open Knowledge. لا تتوفر أدوات Open Knowledge في هذه السلسلة."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "احتساب تثبيتات المهارة علنًا"@@ -5056,6 +5070,11 @@ msgstr "هل تفعّل مزامنة git التلقائية؟"msgid "Enable indexes"msgstr "تمكين الفهارس"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "هل تريد تفعيل أدوات Open Knowledge لـ {0}؟"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "تفعيل الإضافات"@@ -5088,6 +5107,10 @@ msgstr "تفعيل السمات"msgid "Enabling index generation"msgstr "تمكين إنشاء الفهرس"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "جارٍ تفعيل أدوات Open Knowledge"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "انتهت"@@ -7014,6 +7037,12 @@ msgstr "رابط المشاركة غير صالح."msgid "Invalid YAML"msgstr "YAML غير صالح"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "كما يضع ذلك {0} ضمن المجلدات الموثوقة، وهو ما يجعل الإضافة تُحمَّل. تشمل هذه الثقة المجلد بأكمله: سيُحمِّل {1} كل إضافة فيه، لا إضافة Open Knowledge وحدها، ويبقى كلاهما إلى أن تزيل Open Knowledge من هذا المشروع."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "لم يناسب سير عملي"@@ -9005,6 +9034,18 @@ msgstr "يحتفظ Open Knowledge بملف تنقل يسمى index.md في كلmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "يقوم Open Knowledge بإعادة كتابة ملفات index.md هذه مع تغير المستندات، لذلك يتم استبدال التعديلات اليدوية عليها."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "أدوات Open Knowledge متاحة في هذه السلسلة."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "أدوات Open Knowledge غير متاحة: يوجد بالفعل في {bridgePath} ملف لم تكتبه Open Knowledge."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "أدوات Open Knowledge غير متاحة: يوجد بالفعل شيء في {bridgePath} لكن تعذّرت قراءته، لذا تركته Open Knowledge كما هو."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "تخطٍّ الآن"msgid "Skipped downloading {0}."msgstr "تم تخطي تنزيل {0}."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "تم تخطّي تفعيل أدوات Open Knowledge. تعمل هذه السلسلة بدونها."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "قائمة أوامر الشرطة المائلة"@@ -12668,6 +12713,11 @@ msgstr "لم يُفتح ذلك المستند في الوقت المناسب. حmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "لا يمكن استخدام نقطة النهاية تلك. أدخل رابط https:// — لا يُسمح بـ http:// إلا للمضيف المحلي."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "يحتوي هذا المجلد بالفعل على شيفرة لم تكتبها Open Knowledge وستسمح الثقة نفسها لـ {0} بتشغيلها: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "ذلك المجلد ليس مشروع OpenKnowledge بعد. هل تهيّئه وتفتحه؟"@@ -12848,6 +12898,10 @@ msgstr "نُقل المستودع أو أُعيدت تسميته أو حُذف."msgid "The repository's original clone directory"msgstr "دليل النسخة الأصلية للمستودع"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "انتهت مهلة طلب تفعيل أدوات Open Knowledge. تعمل هذه السلسلة بدونها."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "ملف المخطط غير موجود أو فشل تحميله — إضافة حقل تنشئه."@@ -14412,6 +14466,10 @@ msgstr "يكتب إدخالًا في"msgid "writing"msgstr "الكتابة"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "تمت كتابة إضافة Open Knowledge، لكن تعذّر تعليم المجلد كموثوق، لذا لن تُحمَّل. لا تتوفر أدوات Open Knowledge في هذه السلسلة."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML أو JSON، بأي من تخطيطي base16."diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 9e8c889f1..cbdc2ccf2 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -13,6 +13,7 @@"-K0AvT": ["সংযোগ বিচ্ছিন্ন করুন"],"-LHLx7": ["টেমপ্লেট সম্পাদিত হয়েছে"],"-QCLWk": ["উপলব্ধ টেমপ্লেট"],+ "-QVER4": ["Open Knowledge টুল সক্ষম করা হচ্ছে"],"-Qw-1t": ["GitHub প্রমাণীকরণ ব্যর্থ। আবার সাইন ইন করে দেখুন।"],"-VqsyR": ["ভাবা হচ্ছে…"],"-WFFG2": ["ডিফল্ট প্রপার্টি"],@@ -674,6 +675,11 @@"8x6zk9": [["0"], " সম্পাদক লুকান"],"9-lMCF": [["slot"], " রং — ", ["0"]],"90-wKT": ["OpenKnowledge ", ["subject"], " এর ইতিহাস পড়েছে"],+ "92G3B2": [+ "Open Knowledge টুল উপলব্ধ নয়: ",+ ["bridgePath"],+ "-এ ইতিমধ্যেই কিছু আছে, কিন্তু সেটি পড়া যায়নি, তাই Open Knowledge সেটি অপরিবর্তিত রেখেছে।"+ ],"92rbk2": ["মিরর <0>", ["mirrorRef"], "</0> লোড হচ্ছে"],"93LBnX": ["Agents লুকান"],"96G6Re": ["নতুন ফোল্ডার"],@@ -1147,6 +1153,7 @@"এই প্রকল্পের সেটিংস। কিছু git-এর মাধ্যমে প্রতিটি সহযোগীর সঙ্গে ভাগ করা হয়; বাকিগুলি শুধু এই কম্পিউটারে প্রযোজ্য।"],"FNTx6u": ["অর্থের ভিত্তিতে \"", ["semanticSubmitQuery"], "\" খুঁজুন"],+ "FNsxBc": ["এই থ্রেডে Open Knowledge টুল উপলব্ধ।"],"FOGD7m": ["দারুণ কিছু তৈরি করুন।"],"FQwhfM": ["আপনার টানেল যে পাবলিক URL পরিবেশন করে (যেমন আপনার Tailscale https://…ts.net ঠিকানা)। সার্ভার এই হোস্টের জন্য অনুরোধ গ্রহণ করে এবং এটি যে URL ইস্যু করে তাতে এটি বিজ্ঞাপন দেয়।"@@ -1429,6 +1436,12 @@"Jw6EC4": ["ব্রাঞ্চ বদল ব্যর্থ — ", ["targetNoun"], " হাতে খুলে দেখুন।"],"JyM0gO": ["পাঠানো হয়েছে, কিন্তু মন্তব্যগুলো সম্পন্ন হিসেবে চিহ্নিত করা যায়নি — সেগুলো এখনও পাঠানোর অপেক্ষায়।"],"JyW5aS": ["ছেঁকে দেখা হচ্ছে…"],+ "JznUmv": [+ ["0"],+ " নিজে থেকে আপনার নথি পড়তে বা সম্পাদনা করতে পারে না। অনুমোদন করলে Open Knowledge এক্সটেনশন ",+ ["1"],+ "-এ লেখা হবে এবং সেখানেই থাকবে, যাতে এই সেশন এবং এই প্রকল্পের পরবর্তী সেশনগুলোতেও Open Knowledge টুল থাকে।"+ ],"K-NcyU": ["এই ফোল্ডারে কোনো git রিপোজিটরি নেই। অন্য ফোল্ডার বেছে নেবেন?"],"K-a33w": ["এই পাতাটি তৈরি করতে লেখা শুরু করুন"],"K-h9cT": [["filePath"], "-এর মীমাংসা সংরক্ষণ করা যায়নি।"],@@ -1694,6 +1707,7 @@"NRSLBe": [["diffMin"], " মিনিট আগে"],"NSnIUP": ["দুই পাতা (জোড়)"],"NUr4kz": ["এই ফোল্ডারে নতুন নথির জন্য একটি পুনর্ব্যবহারযোগ্য শুরুর বিন্দু।"],+ "NY0p7s": ["Open Knowledge টুল সক্ষম করা এড়িয়ে যাওয়া হয়েছে। এই থ্রেড সেগুলো ছাড়াই চলবে।"],"NYUhy5": ["উপ-ফোল্ডারের নাম"],"NYn1cR": ["সম্পাদক লোড হচ্ছে"],"NYu2Pt": ["নতুন প্রকল্প…"],@@ -2072,6 +2086,7 @@"SItQRc": ["OpenKnowledge আপনার কেমন লাগছে?"],"SOPwPh": ["এই সম্পাদনায় ফিরিয়ে আনুন"],"SRBk2G": ["ওই মন্তব্যটি যোগ করা যায়নি।"],+ "SRLcL7": [["0"], "-এর জন্য Open Knowledge টুল সক্ষম করবেন?"],"STTOnz": [["keyName"], " ধরন: জটিল মান (নেস্টেড; শুধু পড়ার জন্য)"],"SUOoXn": ["প্রকল্প খুলতে ব্যর্থ।"],"SVLPt5": [["formatted"], "টি GitHub স্টার"],@@ -2567,6 +2582,7 @@"এখনও কোনো <0>.markdownlint.*</0> ফাইল নেই — প্রতিটি নিয়ম VS Code markdownlint এক্সটেনশনের মতো একই ডিফল্টে চলে: লাইনের দৈর্ঘ্য ছাড়া সব চালু।"],"Z79bnE": [["docName"], "-এর সম্পাদনা ", ["burstNumber"], "-এর পার্থক্য দেখুন"],+ "Z7ZXbT": ["অনুমোদন করুন"],"Z7x_Zh": ["এই রিপোজিটরির জন্য Git-এর ",["tool"],@@ -2829,6 +2845,13 @@"c863eW": [["shareBranch"], "-এ যাওয়া যায়নি। হাতে বদলে দেখুন।"],"c8iK2Y": ["কোনো টেমপ্লেট পাওয়া যায়নি।"],"c8jBgX": ["GitHub-এ হালনাগাদ দেখা হচ্ছে"],+ "c8wKUP": [+ "এটি ",+ ["0"],+ "-কে বিশ্বস্ত হিসেবেও চিহ্নিত করে, যার ফলেই এক্সটেনশনটি লোড হয়। এই বিশ্বাস পুরো ফোল্ডারে প্রযোজ্য: ",+ ["1"],+ " সেখানকার প্রতিটি এক্সটেনশন লোড করবে, শুধু Open Knowledge-এর নয়, এবং আপনি এই প্রকল্প থেকে Open Knowledge না সরানো পর্যন্ত দুটিই থেকে যাবে।"+ ],"cCd8Bs": ["কাটুন"],"cD3aew": ["অনুসন্ধান চলার সঙ্গে সঙ্গেই পুনরায় এমবেড হয়, তাই আওতা শূন্য থেকে আবার শুরু হয়ে ভরে ওঠে।"],"cEoyWz": [["keyName"], "-এ আইটেম যোগ করুন"],@@ -3339,6 +3362,11 @@"আপনার পছন্দের AI দিয়ে একটি নতুন সেশন খুলুন। লেখা নির্বাচিত থাকলে সেটি চালানোর বদলে সেখানে প্রস্তুত রাখুন।"],"j5CWO4": ["হালনাগাদ"],+ "j6HvUO": [+ "Open Knowledge টুল উপলব্ধ নয়: ",+ ["bridgePath"],+ "-এ ইতিমধ্যেই এমন একটি ফাইল আছে যা Open Knowledge লেখেনি।"+ ],"j9Vqvc": ["উত্তরাধিকারসূত্রে পাওয়া"],"j9tqwO": ["সাইডবারে নেই"],"jAMpHn": ["স্টার্টার প্যাক কী?"],@@ -3451,6 +3479,7 @@["targetNoun"]," দেখা যাবে।"],+ "kNG0s5": ["Open Knowledge এক্সটেনশন লেখা যায়নি। এই থ্রেডে Open Knowledge টুল নেই।"],"kNGLX6": ["পুনরায় চেষ্টা করা হচ্ছে…"],"kNqMMd": ["ফোল্ডার"],"kRTXGw": [@@ -3614,6 +3643,7 @@"mGaZwZ": ["পূর্ণ ইনস্টল নির্দেশিকা দেখুন"],"mHVPm5": ["পুনরায় যুক্ত হওয়া দরকার"],"mHf8mp": ["স্কিমা ফাইল ", ["file"], " মুছুন"],+ "mHo0kp": ["Open Knowledge টুল সক্ষম করার অনুরোধের সময় শেষ হয়েছে। এই থ্রেড সেগুলো ছাড়াই চলবে।"],"mLAjyL": ["আপনি যে AI টুলগুলো ব্যবহার করেন সেগুলোকে আপনার প্রকল্প পড়া ও হালনাগাদ করার অধিকার দিন। একটি বাক্সে টিক দিলেই সেটি সঙ্গে সঙ্গে সেট হয়ে যায়; টিক সরালে সরে যায়।"],@@ -3659,6 +3689,9 @@"mlA3HX": ["OpenKnowledge-এর স্কিল ও MCP গ্লোবালি ইনস্টল করুন, যাতে আপনি যে এজেন্ট আগে থেকেই ব্যবহার করেন সেগুলো আপনার প্রকল্প পড়তে ও হালনাগাদ করতে পারে।"],+ "mlDKzr": [+ "Open Knowledge এক্সটেনশন লেখা হয়েছে, কিন্তু ফোল্ডারটিকে বিশ্বস্ত হিসেবে চিহ্নিত করা যায়নি, তাই সেটি লোড হবে না। এই থ্রেডে Open Knowledge টুল নেই।"+ ],"mlvM8g": ["ওই মন্তব্যটি আবার বসানো যায়নি।"],"mmpzAq": ["markdown সোর্স সম্পাদকে লম্বা লাইন মুড়ে দিন।"],"mnpsVn": [@@ -4373,6 +4406,13 @@"wndeIl": ["যেসব প্রকল্প-স্তরের পাতার আগত বা বহির্গামী কোনো গ্রাফ প্রান্তই নেই।"],"wqD3pI": [["0"], "টির মধ্যে ", ["failed"], "টি মন্তব্য আপডেট করা যায়নি।"],"ws5o1F": ["পরীক্ষা করেছেন: ", ["0"]],+ "wsLj3t": [+ "ওই ফোল্ডারে ইতিমধ্যেই এমন কোড আছে যা Open Knowledge লেখেনি এবং একই বিশ্বাস ",+ ["0"],+ "-কে সেটি চালাতে দেবে: ",+ ["otherExtensions"],+ "।"+ ],"wtcxiD": ["এই সেটআপটি আপনার দলের সঙ্গে ভাগ করবেন?"],"wtd69q": ["কোনো ফোল্ডার মিলছে না।"],"wvK7Ay": ["ব্রাঞ্চ <0>", ["branch"], "</0>-এর আপনার স্থানীয় অনুলিপি পিছিয়ে আছে।"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex fe94ec4d6..8a0dec6fd 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -317,6 +317,12 @@ msgstr "{0} এই চ্যাট চালিয়ে যেতে পারmsgid "{0} doesn't offer any settings to adjust"msgstr "{0} সমন্বয় করার মতো কোনো সেটিং দেয় না"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} নিজে থেকে আপনার নথি পড়তে বা সম্পাদনা করতে পারে না। অনুমোদন করলে Open Knowledge এক্সটেনশন {1}-এ লেখা হবে এবং সেখানেই থাকবে, যাতে এই সেশন এবং এই প্রকল্পের পরবর্তী সেশনগুলোতেও Open Knowledge টুল থাকে।"+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1754,6 +1760,10 @@ msgstr "আপনার পরিবর্তন প্রয়োগ করাmsgid "Applying…"msgstr "প্রয়োগ করা হচ্ছে…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "অনুমোদন করুন"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "অনুমোদিত"@@ -3970,6 +3980,10 @@ msgstr "স্কিল ভাগাভাগি হালনাগাদ করmsgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "{displayName} ({bin}) উপলব্ধ কি না তা যাচাই করা যায়নি, তাই এটি একটি সাধারণ শেল। আপনি এখনও নিজে {bin} চালাতে পারেন।"+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Open Knowledge এক্সটেনশন লেখা যায়নি। এই থ্রেডে Open Knowledge টুল নেই।"+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "স্কিল ইনস্টলের সংখ্যা প্রকাশ্যে গণনা করুন"@@ -5052,6 +5066,11 @@ msgstr "git স্বয়ংক্রিয় সিঙ্ক চালুmsgid "Enable indexes"msgstr "সূচী সক্রিয় করুন"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "{0}-এর জন্য Open Knowledge টুল সক্ষম করবেন?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "প্লাগইন চালু করুন"@@ -5084,6 +5103,10 @@ msgstr "থিম চালু করুন"msgid "Enabling index generation"msgstr "সূচক তৈরি সক্ষম করা হচ্ছে"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Open Knowledge টুল সক্ষম করা হচ্ছে"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "শেষ হয়েছে"@@ -7010,6 +7033,12 @@ msgstr "শেয়ার URL সঠিক নয়।"msgid "Invalid YAML"msgstr "অবৈধ YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "এটি {0}-কে বিশ্বস্ত হিসেবেও চিহ্নিত করে, যার ফলেই এক্সটেনশনটি লোড হয়। এই বিশ্বাস পুরো ফোল্ডারে প্রযোজ্য: {1} সেখানকার প্রতিটি এক্সটেনশন লোড করবে, শুধু Open Knowledge-এর নয়, এবং আপনি এই প্রকল্প থেকে Open Knowledge না সরানো পর্যন্ত দুটিই থেকে যাবে।"+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "এটি আমার কর্মপ্রবাহে খাপ খায়নি"@@ -9001,6 +9030,18 @@ msgstr "Open Knowledge Markdown ধারণকারী প্রতিটিmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge এই index.md ফাইলগুলিকে দস্তাবেজগুলি পরিবর্তন করার সাথে সাথে পুনঃলিখন করে, তাই তাদের ম্যানুয়াল সম্পাদনাগুলি প্রতিস্থাপিত হয়৷"+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "এই থ্রেডে Open Knowledge টুল উপলব্ধ।"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge টুল উপলব্ধ নয়: {bridgePath}-এ ইতিমধ্যেই এমন একটি ফাইল আছে যা Open Knowledge লেখেনি।"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge টুল উপলব্ধ নয়: {bridgePath}-এ ইতিমধ্যেই কিছু আছে, কিন্তু সেটি পড়া যায়নি, তাই Open Knowledge সেটি অপরিবর্তিত রেখেছে।"+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11911,6 +11952,10 @@ msgstr "এখন থাক"msgid "Skipped downloading {0}."msgstr "{0} ডাউনলোড এড়িয়ে যাওয়া হয়েছে।"+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Open Knowledge টুল সক্ষম করা এড়িয়ে যাওয়া হয়েছে। এই থ্রেড সেগুলো ছাড়াই চলবে।"+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "স্ল্যাশ কমান্ড মেনু"@@ -12664,6 +12709,11 @@ msgstr "সেই নথিটি সময়মতো খোলেনি।msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "ওই এন্ডপয়েন্টটি ব্যবহার করা যায় না। একটি https:// URL দিন — http:// কেবল localhost-এর জন্য অনুমোদিত।"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "ওই ফোল্ডারে ইতিমধ্যেই এমন কোড আছে যা Open Knowledge লেখেনি এবং একই বিশ্বাস {0}-কে সেটি চালাতে দেবে: {otherExtensions}।"+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "ওই ফোল্ডারটি এখনও একটি OpenKnowledge প্রকল্প নয়। এটি চালু করে খুলবেন?"@@ -12844,6 +12894,10 @@ msgstr "রিপোজিটরিটি সরানো হয়েছে,msgid "The repository's original clone directory"msgstr "রিপোজিটরির মূল ক্লোন ডিরেক্টরি"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "Open Knowledge টুল সক্ষম করার অনুরোধের সময় শেষ হয়েছে। এই থ্রেড সেগুলো ছাড়াই চলবে।"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "স্কিমা ফাইলটি নেই বা লোড করা যায়নি — একটি ফিল্ড যোগ করলে সেটি তৈরি হয়।"@@ -14408,6 +14462,10 @@ msgstr "এখানে একটি এন্ট্রি লেখে"msgid "writing"msgstr "লেখা"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Open Knowledge এক্সটেনশন লেখা হয়েছে, কিন্তু ফোল্ডারটিকে বিশ্বস্ত হিসেবে চিহ্নিত করা যায়নি, তাই সেটি লোড হবে না। এই থ্রেডে Open Knowledge টুল নেই।"+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML বা JSON, যেকোনো base16 বিন্যাসে।"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex fe57fab4b..747ca1a8c 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -17,6 +17,7 @@"-K0AvT": ["Disconnect"],"-LHLx7": ["edited template"],"-QCLWk": ["Templates available"],+ "-QVER4": ["Enabling Open Knowledge tools"],"-Qw-1t": ["GitHub authentication failed. Try signing in again."],"-VqsyR": ["Thinking…"],"-WFFG2": ["Default properties"],@@ -691,6 +692,11 @@"8x6zk9": ["Hide ", ["0"], " editor"],"9-lMCF": [["slot"], " color — ", ["0"]],"90-wKT": ["OpenKnowledge read the history of ", ["subject"]],+ "92G3B2": [+ "Open Knowledge tools are unavailable: something is already at ",+ ["bridgePath"],+ " but couldn't be read, so Open Knowledge left it alone."+ ],"92rbk2": ["Mirror loading <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Hide Agents"],"96G6Re": ["New folder"],@@ -1175,6 +1181,7 @@"Settings for this project. Some are shared with every collaborator through git; others apply only on this computer."],"FNTx6u": ["Search \"", ["semanticSubmitQuery"], "\" by meaning"],+ "FNsxBc": ["Open Knowledge tools are available in this thread."],"FOGD7m": ["Create something great."],"FQwhfM": ["The public URL your tunnel serves (for example your Tailscale https://…ts.net address). The server admits requests for this host and advertises it in the URLs it issues."@@ -1468,6 +1475,12 @@"Jw6EC4": ["Branch switch failed — try opening the ", ["targetNoun"], " manually."],"JyM0gO": ["Sent, but the comments could not be marked done — they're still waiting to send."],"JyW5aS": ["Sifting…"],+ "JznUmv": [+ ["0"],+ " has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to ",+ ["1"],+ " and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+ ],"K-NcyU": ["This folder doesn't contain a git repository. Pick a different folder?"],"K-a33w": ["Start writing to create this page"],"K-h9cT": ["Couldn't save the resolution for ", ["filePath"], "."],@@ -1746,6 +1759,7 @@"NRSLBe": [["diffMin"], "m ago"],"NSnIUP": ["Two-page (even)"],"NUr4kz": ["A reusable starting point for new documents in this folder."],+ "NY0p7s": ["Skipped enabling Open Knowledge tools. This thread runs without them."],"NYUhy5": ["Subfolder name"],"NYn1cR": ["Loading editor"],"NYu2Pt": ["New project…"],@@ -2122,6 +2136,7 @@"SItQRc": ["How do you like OpenKnowledge?"],"SOPwPh": ["Restore to this edit"],"SRBk2G": ["Couldn't add that comment."],+ "SRLcL7": ["Enable Open Knowledge tools for ", ["0"], "?"],"STTOnz": [["keyName"], " type: complex value (nested; read-only)"],"SUOoXn": ["Failed to open project."],"SVLPt5": [["formatted"], " GitHub stars"],@@ -2623,6 +2638,7 @@"No <0>.markdownlint.*</0> file yet — every rule runs on the same defaults as the VS Code markdownlint extension: all on, except line length."],"Z79bnE": ["View diff for edit ", ["burstNumber"], " of ", ["docName"]],+ "Z7ZXbT": ["Approve"],"Z7x_Zh": ["Git needs ",["tool"],@@ -2888,6 +2904,13 @@"c863eW": ["Could not switch to ", ["shareBranch"], ". Try switching manually."],"c8iK2Y": ["No templates found."],"c8jBgX": ["Checking for updates on GitHub"],+ "c8wKUP": [+ "It also marks ",+ ["0"],+ " as trusted, which is what makes the extension load. That trust covers the whole folder — ",+ ["1"],+ " will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+ ],"cCd8Bs": ["Cut"],"cD3aew": ["Re-embedding happens as searches run, so coverage restarts at zero and refills."],"cEoyWz": ["Add item to ", ["keyName"]],@@ -3439,6 +3462,11 @@"Open a new session with your preferred AI. With text selected, stage it there instead of running it."],"j5CWO4": ["Up to date"],+ "j6HvUO": [+ "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at ",+ ["bridgePath"],+ "."+ ],"j9Vqvc": ["inherited"],"j9tqwO": ["Not in sidebar"],"jAMpHn": ["What is a starter pack?"],@@ -3551,6 +3579,9 @@["targetNoun"]," will appear once the branch syncs."],+ "kNG0s5": [+ "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+ ],"kNGLX6": ["Retrying…"],"kNqMMd": ["Folder"],"kRTXGw": [@@ -3718,6 +3749,9 @@"mGaZwZ": ["See the full install guide"],"mHVPm5": ["Reconnect required"],"mHf8mp": ["Delete schema file ", ["file"]],+ "mHo0kp": [+ "The request to enable Open Knowledge tools timed out. This thread runs without them."+ ],"mLAjyL": ["Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."],@@ -3767,6 +3801,9 @@"mlA3HX": ["Globally install the OpenKnowledge skills and MCP to let the agents you already use read and update your projects."],+ "mlDKzr": [+ "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+ ],"mlvM8g": ["Couldn't re-place that comment."],"mmpzAq": ["Wrap long lines in the markdown source editor."],"mnpsVn": [@@ -4523,6 +4560,13 @@"wndeIl": ["Project-level pages with neither incoming nor outgoing graph edges."],"wqD3pI": [["failed"], " of ", ["0"], " comments could not be updated."],"ws5o1F": ["Checked by: ", ["0"]],+ "wsLj3t": [+ "That folder already holds code Open Knowledge didn't write, which the same trust would let ",+ ["0"],+ " run: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["Share this setup with your team?"],"wtd69q": ["No folders match."],"wvK7Ay": ["Your local copy of branch <0>", ["branch"], "</0> is behind."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex a48347373..8f37ce765 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -317,6 +317,12 @@ msgstr "{0} can't continue this chat — the transcript is kept, but the agent smsgid "{0} doesn't offer any settings to adjust"msgstr "{0} doesn't offer any settings to adjust"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "Applying your change"msgid "Applying…"msgstr "Applying…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "Approve"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "Approved"@@ -3974,6 +3984,10 @@ msgstr "Couldn't update skills sharing — {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "Count skill installs publicly"@@ -5056,6 +5070,11 @@ msgstr "Enable git auto-sync?"msgid "Enable indexes"msgstr "Enable indexes"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "Enable Open Knowledge tools for {0}?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "Enable plugins"@@ -5088,6 +5107,10 @@ msgstr "Enable Themes"msgid "Enabling index generation"msgstr "Enabling index generation"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Enabling Open Knowledge tools"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "Ended"@@ -7014,6 +7037,12 @@ msgstr "Invalid share URL."msgid "Invalid YAML"msgstr "Invalid YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "It didn't fit into my workflow"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge maintains a navigation file named index.md in every foldemsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "Open Knowledge tools are available in this thread."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "Skip for now"msgid "Skipped downloading {0}."msgstr "Skipped downloading {0}."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Skipped enabling Open Knowledge tools. This thread runs without them."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "Slash command menu"@@ -12668,6 +12713,11 @@ msgstr "That document didn't open in time. Try again once it has synced."msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "That folder isn't an OpenKnowledge project yet. Initialize it and open?"@@ -12848,6 +12898,10 @@ msgstr "The repository was moved, renamed, or deleted."msgid "The repository's original clone directory"msgstr "The repository's original clone directory"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "The request to enable Open Knowledge tools timed out. This thread runs without them."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "The schema file does not exist or failed to load — adding a field creates it."@@ -14412,6 +14466,10 @@ msgstr "Writes an entry to"msgid "writing"msgstr "writing"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML or JSON, in either base16 layout."diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex fa6722ffc..040ca965c 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -27,6 +27,7 @@"-K0AvT": ["Desconectar"],"-LHLx7": ["plantilla editada"],"-QCLWk": ["Plantillas disponibles"],+ "-QVER4": ["Habilitando las herramientas de Open Knowledge"],"-Qw-1t": ["Falló la autenticación con GitHub. Prueba a iniciar sesión de nuevo."],"-VqsyR": ["Pensando…"],"-WFFG2": ["Propiedades por defecto"],@@ -811,6 +812,11 @@"8x6zk9": ["Ocultar editor de ", ["0"]],"9-lMCF": ["Color de ", ["slot"], " — ", ["0"]],"90-wKT": ["OpenKnowledge leyó el historial de ", ["subject"]],+ "92G3B2": [+ "Las herramientas de Open Knowledge no están disponibles: ya hay algo en ",+ ["bridgePath"],+ ", pero no se pudo leer, así que Open Knowledge lo dejó intacto."+ ],"92rbk2": ["El espejo está cargando <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Ocultar Agentes"],"96G6Re": ["Carpeta nueva"],@@ -1360,6 +1366,7 @@"Configuración de este proyecto. Una parte se comparte con cada colaborador mediante git; el resto se aplica solo en este equipo."],"FNTx6u": ["Buscar \"", ["semanticSubmitQuery"], "\" por significado"],+ "FNsxBc": ["Las herramientas de Open Knowledge están disponibles en este hilo."],"FOGD7m": ["Crea algo grande."],"FQwhfM": ["La URL pública que sirve tu túnel (por ejemplo tu dirección de Tailscale https://…ts.net). El servidor admite solicitudes para este host y lo anuncia en las URL que emite."@@ -1725,6 +1732,12 @@"Se envió, pero no se pudieron marcar los comentarios como hechos: siguen pendientes de envío."],"JyW5aS": ["Cribando…"],+ "JznUmv": [+ ["0"],+ " no puede leer ni editar tus documentos por su cuenta. Al aprobar se escribe la extensión de Open Knowledge en ",+ ["1"],+ " y se deja ahí, de modo que esta sesión y las siguientes en este proyecto tengan las herramientas de Open Knowledge."+ ],"K-NcyU": ["Esta carpeta no contiene un repositorio de git. ¿Eliges otra carpeta?"],"K-a33w": ["Empieza a escribir para crear esta página"],"K-h9cT": ["No se pudo guardar la resolución de ", ["filePath"], "."],@@ -2038,6 +2051,9 @@"NRSLBe": ["hace ", ["diffMin"], " min"],"NSnIUP": ["Dos páginas (pares)"],"NUr4kz": ["Un punto de partida reutilizable para los documentos nuevos de esta carpeta."],+ "NY0p7s": [+ "Se omitió habilitar las herramientas de Open Knowledge. Este hilo funciona sin ellas."+ ],"NYUhy5": ["Nombre de la subcarpeta"],"NYn1cR": ["Cargando el editor"],"NYu2Pt": ["Proyecto nuevo…"],@@ -2438,6 +2454,7 @@"SItQRc": ["¿Qué te parece OpenKnowledge?"],"SOPwPh": ["Restaurar hasta esta edición"],"SRBk2G": ["No se pudo añadir ese comentario."],+ "SRLcL7": ["¿Habilitar las herramientas de Open Knowledge para ", ["0"], "?"],"STTOnz": ["Tipo de ", ["keyName"], ": valor complejo (anidado; solo lectura)"],"SUOoXn": ["No se pudo abrir el proyecto."],"SVLPt5": [["formatted"], " estrellas en GitHub"],@@ -3070,6 +3087,7 @@"Todavía no hay ningún archivo <0>.markdownlint.*</0>: todas las reglas se ejecutan con los mismos valores por defecto que la extensión markdownlint de VS Code, es decir, todas activadas salvo la longitud de línea."],"Z79bnE": ["Ver las diferencias de la edición ", ["burstNumber"], " de ", ["docName"]],+ "Z7ZXbT": ["Aprobar"],"Z7x_Zh": ["Git necesita ",["tool"],@@ -3375,6 +3393,13 @@"c863eW": ["No se pudo cambiar a ", ["shareBranch"], ". Prueba a cambiar manualmente."],"c8iK2Y": ["No se encontraron plantillas."],"c8jBgX": ["Buscando actualizaciones en GitHub"],+ "c8wKUP": [+ "También marca ",+ ["0"],+ " como de confianza, que es lo que hace que la extensión se cargue. Esa confianza abarca toda la carpeta: ",+ ["1"],+ " cargará todas las extensiones que haya en ella, no solo la de Open Knowledge, y ambas permanecen hasta que quites Open Knowledge de este proyecto."+ ],"cCd8Bs": ["Cortar"],"cD3aew": ["Los embeddings se recalculan a medida que se hacen búsquedas, así que la cobertura empieza de cero y se vuelve a llenar."@@ -4016,6 +4041,11 @@"Abre una sesión nueva con tu IA preferida. Con texto seleccionado, lo prepara ahí en lugar de ejecutarlo."],"j5CWO4": ["Al día"],+ "j6HvUO": [+ "Las herramientas de Open Knowledge no están disponibles: ya hay en ",+ ["bridgePath"],+ " un archivo que Open Knowledge no escribió."+ ],"j9Vqvc": ["heredado"],"j9tqwO": ["No está en la barra lateral"],"jAMpHn": ["¿Qué es un paquete inicial?"],@@ -4138,6 +4168,9 @@["targetNoun"]," aparecerá cuando la rama se sincronice."],+ "kNG0s5": [+ "No se pudo escribir la extensión de Open Knowledge. Este hilo no tiene herramientas de Open Knowledge."+ ],"kNGLX6": ["Reintentando…"],"kNqMMd": ["Carpeta"],"kRTXGw": [@@ -4329,6 +4362,9 @@"mGaZwZ": ["Ver la guía de instalación completa"],"mHVPm5": ["Hay que reconectar"],"mHf8mp": ["Eliminar el archivo de esquema ", ["file"]],+ "mHo0kp": [+ "La solicitud para habilitar las herramientas de Open Knowledge caducó. Este hilo funciona sin ellas."+ ],"mLAjyL": ["Da a las herramientas de IA que usas acceso para leer y actualizar tus proyectos. Al marcar una casilla se configura al momento; al desmarcarla se quita."],@@ -4391,6 +4427,9 @@"mlA3HX": ["Instala globalmente las habilidades y el MCP de OpenKnowledge para que los agentes que ya usas puedan leer y actualizar tus proyectos."],+ "mlDKzr": [+ "Se escribió la extensión de Open Knowledge, pero no se pudo marcar la carpeta como de confianza, así que no se cargará. Este hilo no tiene herramientas de Open Knowledge."+ ],"mlvM8g": ["No se pudo volver a colocar ese comentario."],"mmpzAq": ["Ajusta las líneas largas en el editor de código markdown."],"mnpsVn": [@@ -5238,6 +5277,13 @@"wndeIl": ["Páginas de todo el proyecto sin aristas entrantes ni salientes en el grafo."],"wqD3pI": ["No se pudieron actualizar ", ["failed"], " de ", ["0"], " comentarios."],"ws5o1F": ["Comprobado por: ", ["0"]],+ "wsLj3t": [+ "Esa carpeta ya contiene código que Open Knowledge no escribió y que esa misma confianza permitiría ejecutar a ",+ ["0"],+ ": ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["¿Compartir esta configuración con tu equipo?"],"wtd69q": ["Ninguna carpeta coincide."],"wvK7Ay": ["Tu copia local de la rama <0>", ["branch"], "</0> está por detrás."],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 315ff2c9b..4cf68fd5e 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -317,6 +317,12 @@ msgstr "{0} no puede continuar este chat — la transcripción se conserva, peromsgid "{0} doesn't offer any settings to adjust"msgstr "{0} no ofrece ajustes que configurar"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} no puede leer ni editar tus documentos por su cuenta. Al aprobar se escribe la extensión de Open Knowledge en {1} y se deja ahí, de modo que esta sesión y las siguientes en este proyecto tengan las herramientas de Open Knowledge."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "Aplicando tu cambio"msgid "Applying…"msgstr "Aplicando…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "Aprobar"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "Aprobado"@@ -3974,6 +3984,10 @@ msgstr "No se pudo actualizar la compartición de habilidades: {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "No se pudo verificar que {displayName} ({bin}) esté disponible, así que este es un shell normal. Aún puedes ejecutar {bin} tú mismo."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "No se pudo escribir la extensión de Open Knowledge. Este hilo no tiene herramientas de Open Knowledge."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "Contar públicamente las instalaciones de habilidades"@@ -5056,6 +5070,11 @@ msgstr "¿Activar la sincronización automática de git?"msgid "Enable indexes"msgstr "Habilitar índices"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "¿Habilitar las herramientas de Open Knowledge para {0}?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "Activar los complementos"@@ -5088,6 +5107,10 @@ msgstr "Activar los temas"msgid "Enabling index generation"msgstr "Activando la generación de índices"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Habilitando las herramientas de Open Knowledge"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "Terminado"@@ -7014,6 +7037,12 @@ msgstr "URL para compartir no válida."msgid "Invalid YAML"msgstr "YAML no válido"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "También marca {0} como de confianza, que es lo que hace que la extensión se cargue. Esa confianza abarca toda la carpeta: {1} cargará todas las extensiones que haya en ella, no solo la de Open Knowledge, y ambas permanecen hasta que quites Open Knowledge de este proyecto."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "No encajaba en mi forma de trabajar"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge mantiene un archivo de navegación llamado index.md en camsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge reescribe estos archivos index.md a medida que cambian los documentos, por lo que se reemplazan las ediciones manuales."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "Las herramientas de Open Knowledge están disponibles en este hilo."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Las herramientas de Open Knowledge no están disponibles: ya hay en {bridgePath} un archivo que Open Knowledge no escribió."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Las herramientas de Open Knowledge no están disponibles: ya hay algo en {bridgePath}, pero no se pudo leer, así que Open Knowledge lo dejó intacto."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "Omitir por ahora"msgid "Skipped downloading {0}."msgstr "Se omitió la descarga de {0}."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Se omitió habilitar las herramientas de Open Knowledge. Este hilo funciona sin ellas."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "Menú de comandos de barra"@@ -12668,6 +12713,11 @@ msgstr "Ese documento no se abrió a tiempo. Vuelve a intentarlo cuando se hayamsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "No se puede usar ese endpoint. Escribe una URL https://; http:// solo se admite para localhost."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "Esa carpeta ya contiene código que Open Knowledge no escribió y que esa misma confianza permitiría ejecutar a {0}: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "Esa carpeta todavía no es un proyecto de OpenKnowledge. ¿Inicializarla y abrirla?"@@ -12848,6 +12898,10 @@ msgstr "El repositorio se movió, se renombró o se eliminó."msgid "The repository's original clone directory"msgstr "El directorio del clon original del repositorio"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "La solicitud para habilitar las herramientas de Open Knowledge caducó. Este hilo funciona sin ellas."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "El archivo de esquema no existe o no se pudo cargar; al añadir un campo se crea."@@ -14412,6 +14466,10 @@ msgstr "Escribe una entrada en"msgid "writing"msgstr "escritura"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Se escribió la extensión de Open Knowledge, pero no se pudo marcar la carpeta como de confianza, así que no se cargará. Este hilo no tiene herramientas de Open Knowledge."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML o JSON, en cualquiera de las dos disposiciones base16."diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 0e3e1f749..692d257c0 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -27,6 +27,7 @@"-K0AvT": ["Déconnecter"],"-LHLx7": ["modèle modifié"],"-QCLWk": ["Modèles disponibles"],+ "-QVER4": ["Activation des outils Open Knowledge"],"-Qw-1t": ["L'authentification GitHub a échoué. Essayez de vous reconnecter."],"-VqsyR": ["Réflexion…"],"-WFFG2": ["Propriétés par défaut"],@@ -837,6 +838,11 @@"8x6zk9": ["Masquer l’éditeur de ", ["0"]],"9-lMCF": ["Couleur ", ["slot"], " — ", ["0"]],"90-wKT": ["OpenKnowledge a lu l'historique de ", ["subject"]],+ "92G3B2": [+ "Les outils Open Knowledge ne sont pas disponibles : quelque chose se trouve déjà à ",+ ["bridgePath"],+ " mais n'a pas pu être lu, donc Open Knowledge l'a laissé intact."+ ],"92rbk2": ["Chargement du miroir <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Masquer les agents"],"96G6Re": ["Nouveau dossier"],@@ -1393,6 +1399,7 @@"Paramètres de ce projet. Certains sont partagés avec chaque collaborateur via git ; d'autres ne s'appliquent que sur cet ordinateur."],"FNTx6u": ["Rechercher « ", ["semanticSubmitQuery"], " » par le sens"],+ "FNsxBc": ["Les outils Open Knowledge sont disponibles dans ce fil."],"FOGD7m": ["Créez quelque chose de formidable."],"FQwhfM": ["L’URL publique servie par votre tunnel (par exemple votre adresse Tailscale https://…ts.net). Le serveur admet les requêtes pour cet hôte et l’annonce dans les URL qu’il émet."@@ -1754,6 +1761,12 @@"Envoyé, mais les commentaires n'ont pas pu être marqués comme traités — ils attendent toujours d'être envoyés."],"JyW5aS": ["Tamisage…"],+ "JznUmv": [+ ["0"],+ " n'a aucun moyen de lire ou de modifier vos documents par lui-même. Approuver écrit l'extension Open Knowledge dans ",+ ["1"],+ " et l'y laisse, afin que cette session et les suivantes dans ce projet disposent des outils Open Knowledge."+ ],"K-NcyU": ["Ce dossier ne contient pas de dépôt git. Choisir un autre dossier ?"],"K-a33w": ["Commencez à écrire pour créer cette page"],"K-h9cT": ["Impossible d'enregistrer la résolution pour ", ["filePath"], "."],@@ -2065,6 +2078,7 @@"NRSLBe": ["il y a ", ["diffMin"], " min"],"NSnIUP": ["Deux pages (paires)"],"NUr4kz": ["Un point de départ réutilisable pour les nouveaux documents de ce dossier."],+ "NY0p7s": ["Activation des outils Open Knowledge ignorée. Ce fil fonctionne sans eux."],"NYUhy5": ["Nom du sous-dossier"],"NYn1cR": ["Chargement de l'éditeur"],"NYu2Pt": ["Nouveau projet…"],@@ -2467,6 +2481,7 @@"SItQRc": ["Que pensez-vous d'OpenKnowledge ?"],"SOPwPh": ["Restaurer à cette modification"],"SRBk2G": ["Impossible d'ajouter ce commentaire."],+ "SRLcL7": ["Activer les outils Open Knowledge pour ", ["0"], " ?"],"STTOnz": ["Type de ", ["keyName"], " : valeur complexe (imbriquée ; lecture seule)"],"SUOoXn": ["Échec de l'ouverture du projet."],"SVLPt5": [["formatted"], " étoiles GitHub"],@@ -3099,6 +3114,7 @@"Pas encore de fichier <0>.markdownlint.*</0> — chaque règle s'exécute avec les mêmes valeurs par défaut que l'extension markdownlint de VS Code : toutes activées, sauf la longueur de ligne."],"Z79bnE": ["Voir les différences de la modification ", ["burstNumber"], " de ", ["docName"]],+ "Z7ZXbT": ["Approuver"],"Z7x_Zh": ["Git a besoin de ",["tool"],@@ -3408,6 +3424,13 @@],"c8iK2Y": ["Aucun modèle trouvé."],"c8jBgX": ["Recherche de mises à jour sur GitHub"],+ "c8wKUP": [+ "Cela marque aussi ",+ ["0"],+ " comme approuvé, ce qui permet à l'extension de se charger. Cette confiance couvre tout le dossier : ",+ ["1"],+ " chargera chaque extension qui s'y trouve, pas seulement celle d'Open Knowledge, et les deux subsistent jusqu'à ce que vous retiriez Open Knowledge de ce projet."+ ],"cCd8Bs": ["Couper"],"cD3aew": ["Le recalcul des embeddings se fait au fil des recherches, donc la couverture repart de zéro et se remplit peu à peu."@@ -4042,6 +4065,11 @@"Ouvre une nouvelle session avec l'IA de votre choix. Si du texte est sélectionné, il y est préparé au lieu d'être exécuté."],"j5CWO4": ["À jour"],+ "j6HvUO": [+ "Les outils Open Knowledge ne sont pas disponibles : un fichier qu'Open Knowledge n'a pas écrit se trouve déjà à ",+ ["bridgePath"],+ "."+ ],"j9Vqvc": ["hérité"],"j9tqwO": ["Pas dans la barre latérale"],"jAMpHn": ["Qu'est-ce qu'un pack de démarrage ?"],@@ -4166,6 +4194,9 @@["targetNoun"]," apparaîtra une fois la branche synchronisée."],+ "kNG0s5": [+ "Impossible d'écrire l'extension Open Knowledge. Ce fil n'a pas les outils Open Knowledge."+ ],"kNGLX6": ["Nouvelle tentative…"],"kNqMMd": ["Dossier"],"kRTXGw": [@@ -4361,6 +4392,9 @@"mGaZwZ": ["Voir le guide d'installation complet"],"mHVPm5": ["Reconnexion nécessaire"],"mHf8mp": ["Supprimer le fichier de schéma ", ["file"]],+ "mHo0kp": [+ "La demande d'activation des outils Open Knowledge a expiré. Ce fil fonctionne sans eux."+ ],"mLAjyL": ["Donnez aux outils IA que vous utilisez l'accès en lecture et en écriture à vos projets. Cocher une case configure l'outil immédiatement ; décocher le retire."],@@ -4423,6 +4457,9 @@"mlA3HX": ["Installez globalement les compétences et le MCP d'OpenKnowledge pour que les agents que vous utilisez déjà puissent lire et mettre à jour vos projets."],+ "mlDKzr": [+ "L'extension Open Knowledge a été écrite, mais le dossier n'a pas pu être marqué comme approuvé, donc elle ne se chargera pas. Ce fil n'a pas les outils Open Knowledge."+ ],"mlvM8g": ["Impossible de replacer ce commentaire."],"mmpzAq": ["Renvoie les lignes longues à la ligne dans l'éditeur de source markdown."],"mnpsVn": [@@ -5289,6 +5326,13 @@"wndeIl": ["Pages du projet sans arête entrante ni sortante dans le graphe."],"wqD3pI": [["failed"], " commentaires sur ", ["0"], " n'ont pas pu être mis à jour."],"ws5o1F": ["Vérifié par : ", ["0"]],+ "wsLj3t": [+ "Ce dossier contient déjà du code qu'Open Knowledge n'a pas écrit et que cette même confiance permettrait à ",+ ["0"],+ " d'exécuter : ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["Partager cette configuration avec votre équipe ?"],"wtd69q": ["Aucun dossier ne correspond."],"wvK7Ay": ["Votre copie locale de la branche <0>", ["branch"], "</0> est en retard."],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 902b22c3b..e7e12c545 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -317,6 +317,12 @@ msgstr "{0} ne peut pas poursuivre ce chat — la transcription est conservée,msgid "{0} doesn't offer any settings to adjust"msgstr "{0} ne propose aucun paramètre à ajuster"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} n'a aucun moyen de lire ou de modifier vos documents par lui-même. Approuver écrit l'extension Open Knowledge dans {1} et l'y laisse, afin que cette session et les suivantes dans ce projet disposent des outils Open Knowledge."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "Application de votre modification"msgid "Applying…"msgstr "Application…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "Approuver"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "Approuvé"@@ -3974,6 +3984,10 @@ msgstr "Impossible de mettre à jour le partage des compétences — {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "Impossible de vérifier que {displayName} ({bin}) est disponible, ceci est donc un shell ordinaire. Vous pouvez toujours lancer {bin} vous-même."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Impossible d'écrire l'extension Open Knowledge. Ce fil n'a pas les outils Open Knowledge."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "Compter publiquement les installations de compétences"@@ -5056,6 +5070,11 @@ msgstr "Activer la synchronisation git automatique ?"msgid "Enable indexes"msgstr "Activer les index"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "Activer les outils Open Knowledge pour {0} ?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "Activer les plugins"@@ -5088,6 +5107,10 @@ msgstr "Activer les thèmes"msgid "Enabling index generation"msgstr "Activation de la génération d'index"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Activation des outils Open Knowledge"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "Terminé"@@ -7014,6 +7037,12 @@ msgstr "URL de partage non valide."msgid "Invalid YAML"msgstr "YAML non valide"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "Cela marque aussi {0} comme approuvé, ce qui permet à l'extension de se charger. Cette confiance couvre tout le dossier : {1} chargera chaque extension qui s'y trouve, pas seulement celle d'Open Knowledge, et les deux subsistent jusqu'à ce que vous retiriez Open Knowledge de ce projet."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "Cela ne correspondait pas à mon flux de travail"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge conserve un fichier de navigation nommé index.md dans chmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge réécrit ces fichiers index.md à mesure que les documents changent, de sorte que les modifications manuelles apportées à ceux-ci sont remplacées."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "Les outils Open Knowledge sont disponibles dans ce fil."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Les outils Open Knowledge ne sont pas disponibles : un fichier qu'Open Knowledge n'a pas écrit se trouve déjà à {bridgePath}."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Les outils Open Knowledge ne sont pas disponibles : quelque chose se trouve déjà à {bridgePath} mais n'a pas pu être lu, donc Open Knowledge l'a laissé intact."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "Ignorer pour l'instant"msgid "Skipped downloading {0}."msgstr "Téléchargement de {0} ignoré."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Activation des outils Open Knowledge ignorée. Ce fil fonctionne sans eux."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "Menu des commandes slash"@@ -12668,6 +12713,11 @@ msgstr "Ce document ne s'est pas ouvert à temps. Réessayez une fois qu'il seramsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Ce point de terminaison ne peut pas être utilisé. Saisissez une URL https:// — http:// n'est autorisé que pour localhost."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "Ce dossier contient déjà du code qu'Open Knowledge n'a pas écrit et que cette même confiance permettrait à {0} d'exécuter : {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "Ce dossier n'est pas encore un projet OpenKnowledge. L'initialiser et l'ouvrir ?"@@ -12848,6 +12898,10 @@ msgstr "Le dépôt a été déplacé, renommé ou supprimé."msgid "The repository's original clone directory"msgstr "Le répertoire du clone d'origine du dépôt"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "La demande d'activation des outils Open Knowledge a expiré. Ce fil fonctionne sans eux."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "Le fichier de schéma n'existe pas ou n'a pas pu être chargé — ajouter un champ le crée."@@ -14412,6 +14466,10 @@ msgstr "Écrit une entrée dans"msgid "writing"msgstr "rédaction"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "L'extension Open Knowledge a été écrite, mais le dossier n'a pas pu être marqué comme approuvé, donc elle ne se chargera pas. Ce fil n'a pas les outils Open Knowledge."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML ou JSON, dans l'une ou l'autre disposition base16."diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex e09a42f8e..36f99197f 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -17,6 +17,7 @@"-K0AvT": ["कनेक्शन तोड़ें"],"-LHLx7": ["टेम्पलेट संपादित किया गया"],"-QCLWk": ["उपलब्ध टेम्पलेट"],+ "-QVER4": ["Open Knowledge टूल सक्षम किए जा रहे हैं"],"-Qw-1t": ["GitHub प्रमाणीकरण विफल। फिर से साइन इन करके देखें।"],"-VqsyR": ["सोचा जा रहा है…"],"-WFFG2": ["डिफ़ॉल्ट प्रॉपर्टी"],@@ -673,6 +674,11 @@"8x6zk9": [["0"], " संपादक छिपाएँ"],"9-lMCF": [["slot"], " रंग — ", ["0"]],"90-wKT": ["OpenKnowledge ने ", ["subject"], " का इतिहास पढ़ा"],+ "92G3B2": [+ "Open Knowledge टूल उपलब्ध नहीं हैं: ",+ ["bridgePath"],+ " पर पहले से कुछ मौजूद है, लेकिन उसे पढ़ा नहीं जा सका, इसलिए Open Knowledge ने उसे वैसा ही छोड़ दिया।"+ ],"92rbk2": ["मिरर <0>", ["mirrorRef"], "</0> लोड हो रहा है"],"93LBnX": ["Agents छिपाएँ"],"96G6Re": ["नया फ़ोल्डर"],@@ -1147,6 +1153,7 @@"इस प्रोजेक्ट की सेटिंग्स। कुछ git के ज़रिए हर सहयोगी के साथ साझा होती हैं; बाक़ी केवल इस कंप्यूटर पर लागू होती हैं।"],"FNTx6u": ["अर्थ के आधार पर \"", ["semanticSubmitQuery"], "\" खोजें"],+ "FNsxBc": ["इस थ्रेड में Open Knowledge टूल उपलब्ध हैं।"],"FOGD7m": ["कुछ शानदार बनाएँ।"],"FQwhfM": ["वह सार्वजनिक URL जिसे आपका टनल सर्व करता है (उदाहरण के लिए आपका Tailscale https://…ts.net पता)। सर्वर इस होस्ट के लिए अनुरोध स्वीकार करता है और जो URL जारी करता है उनमें इसका विज्ञापन करता है।"@@ -1429,6 +1436,12 @@"भेज दिया गया, पर टिप्पणियों को पूर्ण चिह्नित नहीं किया जा सका — वे अब भी भेजे जाने की प्रतीक्षा में हैं।"],"JyW5aS": ["छाना जा रहा है…"],+ "JznUmv": [+ ["0"],+ " अपने आप आपके दस्तावेज़ पढ़ या संपादित नहीं कर सकता। स्वीकृति देने पर Open Knowledge एक्सटेंशन ",+ ["1"],+ " में लिखा जाता है और वहीं बना रहता है, ताकि इस सत्र और इस प्रोजेक्ट के आगे के सत्रों में Open Knowledge टूल उपलब्ध रहें।"+ ],"K-NcyU": ["इस फ़ोल्डर में कोई git रिपॉजिटरी नहीं है। कोई दूसरा फ़ोल्डर चुनें?"],"K-a33w": ["यह पेज बनाने के लिए लिखना शुरू करें"],"K-h9cT": [["filePath"], " का समाधान नहीं सहेजा जा सका।"],@@ -1697,6 +1710,7 @@"NRSLBe": [["diffMin"], " मिनट पहले"],"NSnIUP": ["दो पेज (सम)"],"NUr4kz": ["इस फ़ोल्डर में नए दस्तावेज़ों के लिए एक पुन: उपयोग योग्य शुरुआती बिंदु।"],+ "NY0p7s": ["Open Knowledge टूल सक्षम करना छोड़ दिया गया। यह थ्रेड उनके बिना चलता है।"],"NYUhy5": ["उप-फ़ोल्डर का नाम"],"NYn1cR": ["संपादक लोड हो रहा है"],"NYu2Pt": ["नया प्रोजेक्ट…"],@@ -2069,6 +2083,7 @@"SItQRc": ["आपको OpenKnowledge कैसा लगा?"],"SOPwPh": ["इस संपादन पर बहाल करें"],"SRBk2G": ["वह टिप्पणी नहीं जोड़ी जा सकी।"],+ "SRLcL7": [["0"], " के लिए Open Knowledge टूल सक्षम करें?"],"STTOnz": [["keyName"], " प्रकार: जटिल मान (नेस्टेड; केवल पढ़ने के लिए)"],"SUOoXn": ["प्रोजेक्ट खोलने में विफल।"],"SVLPt5": [["formatted"], " GitHub स्टार"],@@ -2554,6 +2569,7 @@"अभी कोई <0>.markdownlint.*</0> फ़ाइल नहीं है — हर नियम उन्हीं डिफ़ॉल्ट पर चलता है जो VS Code markdownlint एक्सटेंशन में हैं: पंक्ति की लंबाई को छोड़कर सब चालू।"],"Z79bnE": [["docName"], " के संपादन ", ["burstNumber"], " का अंतर देखें"],+ "Z7ZXbT": ["स्वीकृति दें"],"Z7x_Zh": ["Git को इस रिपॉज़िटरी के लिए ",["tool"],@@ -2820,6 +2836,13 @@"c863eW": [["shareBranch"], " पर नहीं जाया जा सका। हाथ से बदलने की कोशिश करें।"],"c8iK2Y": ["कोई टेम्पलेट नहीं मिला।"],"c8jBgX": ["GitHub पर अपडेट देखे जा रहे हैं"],+ "c8wKUP": [+ "यह ",+ ["0"],+ " को विश्वसनीय भी चिह्नित करता है, जिससे एक्सटेंशन लोड होता है। यह भरोसा पूरे फ़ोल्डर पर लागू होता है: ",+ ["1"],+ " उसमें मौजूद हर एक्सटेंशन लोड करेगा, केवल Open Knowledge का नहीं, और जब तक आप इस प्रोजेक्ट से Open Knowledge नहीं हटाते, दोनों बने रहते हैं।"+ ],"cCd8Bs": ["काटें"],"cD3aew": ["फिर से एम्बेड करना खोज चलने के साथ होता है, इसलिए कवरेज शून्य से फिर शुरू होकर भरता है।"],"cEoyWz": [["keyName"], " में आइटम जोड़ें"],@@ -3333,6 +3356,11 @@"अपनी पसंदीदा AI के साथ एक नया सत्र खोलें। पाठ चयनित होने पर, उसे चलाने के बजाय वहीं तैयार रखें।"],"j5CWO4": ["अद्यतित"],+ "j6HvUO": [+ "Open Knowledge टूल उपलब्ध नहीं हैं: ",+ ["bridgePath"],+ " पर पहले से ऐसी फ़ाइल मौजूद है जिसे Open Knowledge ने नहीं लिखा।"+ ],"j9Vqvc": ["विरासत में मिला"],"j9tqwO": ["साइडबार में नहीं"],"jAMpHn": ["स्टार्टर पैक क्या है?"],@@ -3447,6 +3475,7 @@["targetNoun"]," दिख जाएगा।"],+ "kNG0s5": ["Open Knowledge एक्सटेंशन नहीं लिखा जा सका। इस थ्रेड में Open Knowledge टूल नहीं हैं।"],"kNGLX6": ["पुनः प्रयास किया जा रहा है…"],"kNqMMd": ["फ़ोल्डर"],"kRTXGw": [@@ -3607,6 +3636,7 @@"mGaZwZ": ["पूरी इंस्टॉल मार्गदर्शिका देखें"],"mHVPm5": ["फिर से जुड़ना ज़रूरी"],"mHf8mp": ["स्कीमा फ़ाइल ", ["file"], " हटाएँ"],+ "mHo0kp": ["Open Knowledge टूल सक्षम करने के अनुरोध का समय समाप्त हो गया। यह थ्रेड उनके बिना चलता है।"],"mLAjyL": ["आप जिन AI टूल का उपयोग करते हैं उन्हें अपने प्रोजेक्ट पढ़ने और अपडेट करने की पहुँच दें। बॉक्स चुनते ही यह तुरंत सेट हो जाता है; हटाने पर हट जाता है।"],@@ -3652,6 +3682,9 @@"mlA3HX": ["OpenKnowledge की स्किल और MCP को ग्लोबली इंस्टॉल करें ताकि आप जिन एजेंट का पहले से उपयोग करते हैं वे आपके प्रोजेक्ट पढ़ और अपडेट कर सकें।"],+ "mlDKzr": [+ "Open Knowledge एक्सटेंशन लिख दिया गया, लेकिन फ़ोल्डर को विश्वसनीय चिह्नित नहीं किया जा सका, इसलिए वह लोड नहीं होगा। इस थ्रेड में Open Knowledge टूल नहीं हैं।"+ ],"mlvM8g": ["उस टिप्पणी को फिर से रखा नहीं जा सका।"],"mmpzAq": ["markdown स्रोत संपादक में लंबी पंक्तियाँ लपेटें।"],"mnpsVn": [@@ -4373,6 +4406,13 @@"wndeIl": ["वे प्रोजेक्ट-स्तर के पेज जिनके न आने वाले और न जाने वाले ग्राफ़ किनारे हैं।"],"wqD3pI": [["0"], " में से ", ["failed"], " टिप्पणियाँ अपडेट नहीं हो सकीं।"],"ws5o1F": ["जाँचकर्ता: ", ["0"]],+ "wsLj3t": [+ "उस फ़ोल्डर में पहले से ऐसा कोड है जिसे Open Knowledge ने नहीं लिखा और वही भरोसा ",+ ["0"],+ " को उसे चलाने देगा: ",+ ["otherExtensions"],+ "।"+ ],"wtcxiD": ["यह सेटअप अपनी टीम के साथ साझा करें?"],"wtd69q": ["कोई फ़ोल्डर मेल नहीं खाता।"],"wvK7Ay": ["ब्रांच <0>", ["branch"], "</0> की आपकी स्थानीय प्रति पीछे है।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 3daaec04a..25e8e523d 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -317,6 +317,12 @@ msgstr "{0} इस चैट को जारी नहीं रख सकतmsgid "{0} doesn't offer any settings to adjust"msgstr "{0} समायोजित करने के लिए कोई सेटिंग नहीं देता"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} अपने आप आपके दस्तावेज़ पढ़ या संपादित नहीं कर सकता। स्वीकृति देने पर Open Knowledge एक्सटेंशन {1} में लिखा जाता है और वहीं बना रहता है, ताकि इस सत्र और इस प्रोजेक्ट के आगे के सत्रों में Open Knowledge टूल उपलब्ध रहें।"+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1754,6 +1760,10 @@ msgstr "आपका बदलाव लागू किया जा रहाmsgid "Applying…"msgstr "लागू किया जा रहा है…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "स्वीकृति दें"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "स्वीकृत"@@ -3970,6 +3980,10 @@ msgstr "स्किल साझाकरण अपडेट नहीं कmsgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "यह सत्यापित नहीं हो सका कि {displayName} ({bin}) उपलब्ध है, इसलिए यह एक सादा शेल है। आप फिर भी {bin} स्वयं चला सकते हैं।"+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Open Knowledge एक्सटेंशन नहीं लिखा जा सका। इस थ्रेड में Open Knowledge टूल नहीं हैं।"+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "स्किल इंस्टॉल की गिनती सार्वजनिक रूप से करें"@@ -5052,6 +5066,11 @@ msgstr "git स्वत: सिंक सक्षम करें?"msgid "Enable indexes"msgstr "अनुक्रमणिका सक्षम करें"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "{0} के लिए Open Knowledge टूल सक्षम करें?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "प्लगइन सक्षम करें"@@ -5084,6 +5103,10 @@ msgstr "थीम सक्षम करें"msgid "Enabling index generation"msgstr "सूचकांक निर्माण सक्षम करना"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Open Knowledge टूल सक्षम किए जा रहे हैं"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "समाप्त"@@ -7010,6 +7033,12 @@ msgstr "साझा करने का URL अमान्य है।"msgid "Invalid YAML"msgstr "अमान्य YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "यह {0} को विश्वसनीय भी चिह्नित करता है, जिससे एक्सटेंशन लोड होता है। यह भरोसा पूरे फ़ोल्डर पर लागू होता है: {1} उसमें मौजूद हर एक्सटेंशन लोड करेगा, केवल Open Knowledge का नहीं, और जब तक आप इस प्रोजेक्ट से Open Knowledge नहीं हटाते, दोनों बने रहते हैं।"+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "यह मेरे कार्यप्रवाह में फ़िट नहीं बैठा"@@ -9001,6 +9030,18 @@ msgstr "Open Knowledge प्रत्येक फ़ोल्डर मेंmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "दस्तावेज़ बदलने पर Open Knowledge इन index.md फ़ाइलों को फिर से लिखता है, इसलिए उनमें मैन्युअल संपादन बदल दिए जाते हैं।"+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "इस थ्रेड में Open Knowledge टूल उपलब्ध हैं।"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge टूल उपलब्ध नहीं हैं: {bridgePath} पर पहले से ऐसी फ़ाइल मौजूद है जिसे Open Knowledge ने नहीं लिखा।"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge टूल उपलब्ध नहीं हैं: {bridgePath} पर पहले से कुछ मौजूद है, लेकिन उसे पढ़ा नहीं जा सका, इसलिए Open Knowledge ने उसे वैसा ही छोड़ दिया।"+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11911,6 +11952,10 @@ msgstr "अभी छोड़ें"msgid "Skipped downloading {0}."msgstr "{0} डाउनलोड करना छोड़ दिया गया।"+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Open Knowledge टूल सक्षम करना छोड़ दिया गया। यह थ्रेड उनके बिना चलता है।"+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "स्लैश कमांड मेन्यू"@@ -12664,6 +12709,11 @@ msgstr "वह दस्तावेज़ समय पर नहीं खुmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "वह एंडपॉइंट उपयोग नहीं किया जा सकता। कोई https:// URL डालें — http:// केवल localhost के लिए अनुमत है।"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "उस फ़ोल्डर में पहले से ऐसा कोड है जिसे Open Knowledge ने नहीं लिखा और वही भरोसा {0} को उसे चलाने देगा: {otherExtensions}।"+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "वह फ़ोल्डर अभी OpenKnowledge प्रोजेक्ट नहीं है। इसे आरंभ करके खोलें?"@@ -12844,6 +12894,10 @@ msgstr "रिपॉज़िटरी हिलाई गई, उसका नmsgid "The repository's original clone directory"msgstr "रिपॉज़िटरी की मूल क्लोन डायरेक्टरी"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "Open Knowledge टूल सक्षम करने के अनुरोध का समय समाप्त हो गया। यह थ्रेड उनके बिना चलता है।"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "स्कीमा फ़ाइल मौजूद नहीं है या लोड नहीं हो सकी — कोई फ़ील्ड जोड़ने पर वह बन जाती है।"@@ -14408,6 +14462,10 @@ msgstr "इसमें एक प्रविष्टि लिखता हmsgid "writing"msgstr "लेखन"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Open Knowledge एक्सटेंशन लिख दिया गया, लेकिन फ़ोल्डर को विश्वसनीय चिह्नित नहीं किया जा सका, इसलिए वह लोड नहीं होगा। इस थ्रेड में Open Knowledge टूल नहीं हैं।"+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML या JSON, दोनों में से किसी भी base16 विन्यास में।"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex dd9bf55a2..5db009932 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -11,6 +11,7 @@"-K0AvT": ["Putuskan koneksi"],"-LHLx7": ["templat disunting"],"-QCLWk": ["Templat tersedia"],+ "-QVER4": ["Mengaktifkan alat Open Knowledge"],"-Qw-1t": ["Autentikasi GitHub gagal. Coba masuk lagi."],"-VqsyR": ["Berpikir…"],"-WFFG2": ["Properti bawaan"],@@ -699,6 +700,11 @@"8x6zk9": ["Sembunyikan penyunting ", ["0"]],"9-lMCF": ["Warna ", ["slot"], " — ", ["0"]],"90-wKT": ["OpenKnowledge membaca riwayat ", ["subject"]],+ "92G3B2": [+ "Alat Open Knowledge tidak tersedia: sudah ada sesuatu di ",+ ["bridgePath"],+ ", tetapi tidak dapat dibaca, jadi Open Knowledge membiarkannya."+ ],"92rbk2": ["Cermin memuat <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Sembunyikan Agen"],"96G6Re": ["Folder baru"],@@ -1171,6 +1177,7 @@"Pengaturan untuk proyek ini. Sebagian dibagikan ke setiap kolaborator lewat git; sisanya hanya berlaku di komputer ini."],"FNTx6u": ["Cari \"", ["semanticSubmitQuery"], "\" berdasarkan makna"],+ "FNsxBc": ["Alat Open Knowledge tersedia di utas ini."],"FOGD7m": ["Ciptakan sesuatu yang hebat."],"FQwhfM": ["URL publik yang dilayani tunnel Anda (misalnya alamat Tailscale https://…ts.net Anda). Server menerima permintaan untuk host ini dan mengiklankannya di URL yang diterbitkannya."@@ -1483,6 +1490,12 @@"Terkirim, tetapi komentarnya tidak bisa ditandai selesai — semuanya masih menunggu dikirim."],"JyW5aS": ["Menyaring…"],+ "JznUmv": [+ ["0"],+ " tidak dapat membaca atau menyunting dokumen Anda sendiri. Menyetujui akan menulis ekstensi Open Knowledge ke ",+ ["1"],+ " dan membiarkannya di sana, sehingga sesi ini dan sesi berikutnya dalam proyek ini memiliki alat Open Knowledge."+ ],"K-NcyU": ["Folder ini tidak berisi repositori git. Pilih folder lain?"],"K-a33w": ["Mulai menulis untuk membuat halaman ini"],"K-h9cT": ["Penyelesaian untuk ", ["filePath"], " tidak bisa disimpan."],@@ -1754,6 +1767,7 @@"NRSLBe": [["diffMin"], " mnt lalu"],"NSnIUP": ["Dua halaman (genap)"],"NUr4kz": ["Titik awal yang bisa dipakai ulang untuk dokumen baru di folder ini."],+ "NY0p7s": ["Pengaktifan alat Open Knowledge dilewati. Utas ini berjalan tanpa alat itu."],"NYUhy5": ["Nama subfolder"],"NYn1cR": ["Memuat penyunting"],"NYu2Pt": ["Proyek baru…"],@@ -2127,6 +2141,7 @@"SItQRc": ["Bagaimana pendapat Anda tentang OpenKnowledge?"],"SOPwPh": ["Pulihkan hingga suntingan ini"],"SRBk2G": ["Komentar itu tidak bisa ditambahkan."],+ "SRLcL7": ["Aktifkan alat Open Knowledge untuk ", ["0"], "?"],"STTOnz": ["Tipe ", ["keyName"], ": nilai kompleks (bersarang; hanya-baca)"],"SUOoXn": ["Gagal membuka proyek."],"SVLPt5": [["formatted"], " bintang GitHub"],@@ -2640,6 +2655,7 @@"Belum ada berkas <0>.markdownlint.*</0> — setiap aturan berjalan dengan bawaan yang sama seperti ekstensi markdownlint VS Code: semuanya aktif, kecuali panjang baris."],"Z79bnE": ["Lihat perbedaan untuk suntingan ", ["burstNumber"], " pada ", ["docName"]],+ "Z7ZXbT": ["Setujui"],"Z7x_Zh": ["Git membutuhkan ",["tool"],@@ -2914,6 +2930,13 @@"c863eW": ["Tidak dapat berpindah ke ", ["shareBranch"], ". Coba berpindah secara manual."],"c8iK2Y": ["Tidak ada templat yang ditemukan."],"c8jBgX": ["Memeriksa pembaruan di GitHub"],+ "c8wKUP": [+ "Ini juga menandai ",+ ["0"],+ " sebagai tepercaya, yang membuat ekstensi itu dimuat. Kepercayaan itu mencakup seluruh folder: ",+ ["1"],+ " akan memuat setiap ekstensi di dalamnya, bukan hanya milik Open Knowledge, dan keduanya tetap ada sampai Anda menghapus Open Knowledge dari proyek ini."+ ],"cCd8Bs": ["Potong"],"cD3aew": ["Embedding dihitung ulang seiring pencarian berjalan, jadi cakupannya dimulai lagi dari nol lalu terisi kembali."@@ -3469,6 +3492,11 @@"Membuka sesi baru dengan AI pilihan Anda. Dengan teks terpilih, teks itu disiapkan di sana alih-alih dijalankan."],"j5CWO4": ["Sudah mutakhir"],+ "j6HvUO": [+ "Alat Open Knowledge tidak tersedia: sudah ada berkas di ",+ ["bridgePath"],+ " yang tidak ditulis Open Knowledge."+ ],"j9Vqvc": ["diwarisi"],"j9tqwO": ["Tidak ada di bilah sisi"],"jAMpHn": ["Apa itu paket awal?"],@@ -3585,6 +3613,9 @@["targetNoun"]," akan muncul begitu cabangnya tersinkron."],+ "kNG0s5": [+ "Ekstensi Open Knowledge tidak bisa ditulis. Utas ini tidak memiliki alat Open Knowledge."+ ],"kNGLX6": ["Mencoba lagi…"],"kNqMMd": ["Folder"],"kRTXGw": [@@ -3749,6 +3780,9 @@"mGaZwZ": ["Lihat panduan pemasangan lengkap"],"mHVPm5": ["Perlu menyambung ulang"],"mHf8mp": ["Hapus berkas skema ", ["file"]],+ "mHo0kp": [+ "Permintaan untuk mengaktifkan alat Open Knowledge kedaluwarsa. Utas ini berjalan tanpa alat itu."+ ],"mLAjyL": ["Beri alat AI yang Anda pakai akses untuk membaca dan memperbarui proyek Anda. Mencentang kotak langsung menyiapkannya; melepas centang menghapusnya."],@@ -3795,6 +3829,9 @@"mlA3HX": ["Pasang skill dan MCP OpenKnowledge secara global agar agen yang sudah Anda pakai dapat membaca dan memperbarui proyek Anda."],+ "mlDKzr": [+ "Ekstensi Open Knowledge sudah ditulis, tetapi folder tidak bisa ditandai tepercaya, jadi ekstensi itu tidak akan dimuat. Utas ini tidak memiliki alat Open Knowledge."+ ],"mlvM8g": ["Komentar itu tidak bisa ditempatkan ulang."],"mmpzAq": ["Membungkus baris panjang di penyunting sumber markdown."],"mnpsVn": [@@ -4534,6 +4571,13 @@"wndeIl": ["Halaman tingkat proyek yang tidak punya sisi graf masuk maupun keluar."],"wqD3pI": [["failed"], " dari ", ["0"], " komentar tidak dapat diperbarui."],"ws5o1F": ["Diperiksa oleh: ", ["0"]],+ "wsLj3t": [+ "Folder itu sudah berisi kode yang tidak ditulis Open Knowledge, dan kepercayaan yang sama akan mengizinkan ",+ ["0"],+ " menjalankannya: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["Bagikan penyiapan ini dengan tim Anda?"],"wtd69q": ["Tidak ada folder yang cocok."],"wvK7Ay": ["Salinan lokal cabang <0>", ["branch"], "</0> milik Anda tertinggal."],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex 6696f87ad..3b42682b2 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -317,6 +317,12 @@ msgstr "{0} tidak dapat melanjutkan obrolan ini — transkrip tetap tersimpan, tmsgid "{0} doesn't offer any settings to adjust"msgstr "{0} tidak menawarkan pengaturan untuk disesuaikan"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} tidak dapat membaca atau menyunting dokumen Anda sendiri. Menyetujui akan menulis ekstensi Open Knowledge ke {1} dan membiarkannya di sana, sehingga sesi ini dan sesi berikutnya dalam proyek ini memiliki alat Open Knowledge."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1754,6 +1760,10 @@ msgstr "Menerapkan perubahan Anda"msgid "Applying…"msgstr "Menerapkan…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "Setujui"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "Disetujui"@@ -3970,6 +3980,10 @@ msgstr "Berbagi keterampilan tidak bisa diperbarui — {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "Tidak dapat memverifikasi bahwa {displayName} ({bin}) tersedia, jadi ini adalah shell biasa. Anda tetap dapat menjalankan {bin} sendiri."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Ekstensi Open Knowledge tidak bisa ditulis. Utas ini tidak memiliki alat Open Knowledge."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "Hitung pemasangan keterampilan secara publik"@@ -5052,6 +5066,11 @@ msgstr "Aktifkan sinkronisasi otomatis git?"msgid "Enable indexes"msgstr "Aktifkan indeks"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "Aktifkan alat Open Knowledge untuk {0}?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "Aktifkan plugin"@@ -5084,6 +5103,10 @@ msgstr "Aktifkan Tema"msgid "Enabling index generation"msgstr "Mengaktifkan pembuatan indeks"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Mengaktifkan alat Open Knowledge"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "Berakhir"@@ -7010,6 +7033,12 @@ msgstr "URL berbagi tidak valid."msgid "Invalid YAML"msgstr "YAML tidak valid"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "Ini juga menandai {0} sebagai tepercaya, yang membuat ekstensi itu dimuat. Kepercayaan itu mencakup seluruh folder: {1} akan memuat setiap ekstensi di dalamnya, bukan hanya milik Open Knowledge, dan keduanya tetap ada sampai Anda menghapus Open Knowledge dari proyek ini."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "Tidak cocok dengan alur kerja saya"@@ -9001,6 +9030,18 @@ msgstr "Open Knowledge menyimpan file navigasi bernama index.md di setiap foldermsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge menulis ulang file index.md ini seiring perubahan dokumen, sehingga pengeditan manual pada file tersebut diganti."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "Alat Open Knowledge tersedia di utas ini."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Alat Open Knowledge tidak tersedia: sudah ada berkas di {bridgePath} yang tidak ditulis Open Knowledge."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Alat Open Knowledge tidak tersedia: sudah ada sesuatu di {bridgePath}, tetapi tidak dapat dibaca, jadi Open Knowledge membiarkannya."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11911,6 +11952,10 @@ msgstr "Lewati dulu"msgid "Skipped downloading {0}."msgstr "Unduhan {0} dilewati."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Pengaktifan alat Open Knowledge dilewati. Utas ini berjalan tanpa alat itu."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "Menu perintah garis miring"@@ -12664,6 +12709,11 @@ msgstr "Dokumen itu tidak terbuka tepat waktu. Coba lagi setelah tersinkronisasimsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Endpoint itu tidak bisa dipakai. Masukkan URL https:// — http:// hanya diizinkan untuk localhost."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "Folder itu sudah berisi kode yang tidak ditulis Open Knowledge, dan kepercayaan yang sama akan mengizinkan {0} menjalankannya: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "Folder itu belum menjadi proyek OpenKnowledge. Inisialisasi lalu buka?"@@ -12844,6 +12894,10 @@ msgstr "Repositorinya dipindahkan, diganti nama, atau dihapus."msgid "The repository's original clone directory"msgstr "Direktori klon asli repositori"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "Permintaan untuk mengaktifkan alat Open Knowledge kedaluwarsa. Utas ini berjalan tanpa alat itu."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "Berkas skemanya tidak ada atau gagal dimuat — menambahkan sebuah bidang akan membuatnya."@@ -14408,6 +14462,10 @@ msgstr "Menulis entri ke"msgid "writing"msgstr "menulis"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Ekstensi Open Knowledge sudah ditulis, tetapi folder tidak bisa ditandai tepercaya, jadi ekstensi itu tidak akan dimuat. Utas ini tidak memiliki alat Open Knowledge."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML atau JSON, dalam salah satu tata letak base16."diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex cce786fce..55c278cbe 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -11,6 +11,7 @@"-K0AvT": ["연결 해제"],"-LHLx7": ["템플릿 편집됨"],"-QCLWk": ["사용 가능한 템플릿"],+ "-QVER4": ["Open Knowledge 도구를 사용 설정하는 중"],"-Qw-1t": ["GitHub 인증에 실패했습니다. 다시 로그인하세요."],"-VqsyR": ["생각 중…"],"-WFFG2": ["기본 속성"],@@ -673,6 +674,11 @@"8x6zk9": [["0"], " 편집기 숨기기"],"9-lMCF": [["slot"], " 색상, ", ["0"]],"90-wKT": ["OpenKnowledge에서 ", ["subject"], " 기록 조회"],+ "92G3B2": [+ "Open Knowledge 도구를 사용할 수 없습니다. ",+ ["bridgePath"],+ "에 이미 무언가 있지만 읽을 수 없어 Open Knowledge가 그대로 두었습니다."+ ],"92rbk2": ["미러 로드 중 <0>", ["mirrorRef"], "</0>"],"93LBnX": ["에이전트 가리기"],"96G6Re": ["새 폴더"],@@ -1122,6 +1128,7 @@"이 프로젝트의 설정입니다. 일부는 git을 통해 모든 협업자와 공유되고, 일부는 이 컴퓨터에만 적용됩니다."],"FNTx6u": ["“", ["semanticSubmitQuery"], "”를 의미로 검색"],+ "FNsxBc": ["이 스레드에서 Open Knowledge 도구를 사용할 수 있습니다."],"FOGD7m": ["멋진 것을 만들어 보세요."],"FQwhfM": ["터널이 제공하는 공개 URL입니다(예: Tailscale https://…ts.net 주소). 서버는 이 호스트에 대한 요청을 허용하고 발급하는 URL에 이를 광고합니다."@@ -1420,6 +1427,12 @@"Jw6EC4": ["브랜치 전환에 실패했습니다. 직접 ", ["targetNoun"], " 열기를 시도해 보세요."],"JyM0gO": ["보냈지만 댓글 완료 표시에 실패했습니다. 아직 전송 대기 중입니다."],"JyW5aS": ["선별 중…"],+ "JznUmv": [+ ["0"],+ "은(는) 스스로 문서를 읽거나 편집할 수 없습니다. 승인하면 Open Knowledge 확장이 ",+ ["1"],+ "에 기록되어 그대로 남으므로, 이 세션과 이 프로젝트의 이후 세션에서도 Open Knowledge 도구를 사용할 수 있습니다."+ ],"K-NcyU": ["이 폴더에 git 저장소가 없습니다. 다른 폴더를 선택하시겠습니까?"],"K-a33w": ["이 페이지를 만들려면 쓰기 시작하세요"],"K-h9cT": [["filePath"], "의 해결 결과를 저장하지 못했습니다."],@@ -1684,6 +1697,7 @@"NRSLBe": [["diffMin"], "분 전"],"NSnIUP": ["두 페이지 (짝수)"],"NUr4kz": ["이 폴더에서 새 문서를 시작할 수 있는 재사용 가능한 출발점입니다."],+ "NY0p7s": ["Open Knowledge 도구 사용 설정을 건너뛰었습니다. 이 스레드는 도구 없이 실행됩니다."],"NYUhy5": ["하위 폴더 이름"],"NYn1cR": ["편집기 불러오는 중"],"NYu2Pt": ["새 프로젝트…"],@@ -2039,6 +2053,7 @@"SItQRc": ["OpenKnowledge가 어떠신가요?"],"SOPwPh": ["이 편집으로 복원"],"SRBk2G": ["댓글 추가에 실패했습니다."],+ "SRLcL7": [["0"], "에서 Open Knowledge 도구를 사용하도록 설정할까요?"],"STTOnz": [["keyName"], " 유형: 복합 값 (중첩됨, 읽기 전용)"],"SUOoXn": ["프로젝트를 열지 못했습니다"],"SVLPt5": [["formatted"], " GitHub 스타"],@@ -2534,6 +2549,7 @@"아직 <0>.markdownlint.*</0> 파일이 없습니다. 모든 규칙은 VS Code markdownlint 확장과 같은 기본값으로 실행됩니다. 줄 길이를 제외한 모든 규칙이 켜져 있습니다."],"Z79bnE": ["편집 ", ["burstNumber"], " 시점의 ", ["docName"], " 변경 사항 보기"],+ "Z7ZXbT": ["승인"],"Z7x_Zh": ["이 저장소의 Git 작업에 ",["tool"],@@ -2790,6 +2806,13 @@"c863eW": [["shareBranch"], " 브랜치로 전환할 수 없습니다. 직접 전환해 보세요."],"c8iK2Y": ["템플릿을 찾지 못했습니다."],"c8jBgX": ["GitHub에서 업데이트 확인 중"],+ "c8wKUP": [+ "또한 ",+ ["0"],+ "을(를) 신뢰하는 폴더로 표시하며, 그래야 확장이 로드됩니다. 이 신뢰는 폴더 전체에 적용됩니다. ",+ ["1"],+ "은(는) Open Knowledge의 것뿐 아니라 그 폴더의 모든 확장을 로드하며, 이 프로젝트에서 Open Knowledge를 제거할 때까지 둘 다 유지됩니다."+ ],"cCd8Bs": ["잘라내기"],"cD3aew": ["검색을 실행하면 다시 임베딩되므로, 적용 범위가 0부터 다시 채워집니다."],"cEoyWz": [["keyName"], "에 항목 추가"],@@ -3320,6 +3343,11 @@"선호하는 AI로 새 세션을 엽니다. 텍스트를 선택한 경우 실행하는 대신 해당 세션에 추가합니다."],"j5CWO4": ["최신 상태"],+ "j6HvUO": [+ "Open Knowledge 도구를 사용할 수 없습니다. ",+ ["bridgePath"],+ "에 Open Knowledge가 작성하지 않은 파일이 이미 있습니다."+ ],"j9Vqvc": ["상속됨"],"j9tqwO": ["사이드바에 없음"],"jAMpHn": ["스타터 팩이란?"],@@ -3432,6 +3460,9 @@["targetNoun"],"이 나타납니다."],+ "kNG0s5": [+ "Open Knowledge 확장을 기록하지 못했습니다. 이 스레드에는 Open Knowledge 도구가 없습니다."+ ],"kNGLX6": ["다시 시도 중…"],"kNqMMd": ["폴더"],"kRTXGw": [@@ -3586,6 +3617,9 @@"mGaZwZ": ["전체 설치 안내 보기"],"mHVPm5": ["다시 연결 필요"],"mHf8mp": ["스키마 파일 ", ["file"], " 삭제"],+ "mHo0kp": [+ "Open Knowledge 도구 사용 설정 요청 시간이 초과되었습니다. 이 스레드는 도구 없이 실행됩니다."+ ],"mLAjyL": ["사용하는 AI 도구에 프로젝트를 읽고 업데이트할 권한을 부여합니다. 확인란을 선택하면 즉시 설정하고, 선택을 해제하면 제거합니다."],@@ -3632,6 +3666,9 @@"mlA3HX": ["OpenKnowledge 스킬과 MCP를 전역으로 설치해, 이미 사용 중인 에이전트가 프로젝트를 읽고 업데이트할 수 있게 하세요."],+ "mlDKzr": [+ "Open Knowledge 확장을 기록했지만 폴더를 신뢰할 수 있는 폴더로 표시하지 못해 로드되지 않습니다. 이 스레드에는 Open Knowledge 도구가 없습니다."+ ],"mlvM8g": ["댓글 다시 배치에 실패했습니다."],"mmpzAq": ["Markdown 소스 편집기에서 긴 줄을 자동으로 줄바꿈합니다."],"mnpsVn": [@@ -4323,6 +4360,13 @@"wndeIl": ["들어오는 그래프 연결과 나가는 그래프 연결이 모두 없는 프로젝트 수준 페이지입니다."],"wqD3pI": ["댓글 ", ["0"], "개 중 ", ["failed"], "개 업데이트에 실패했습니다."],"ws5o1F": ["확인한 사람: ", ["0"]],+ "wsLj3t": [+ "해당 폴더에는 Open Knowledge가 작성하지 않은 코드가 이미 있으며, 같은 신뢰로 ",+ ["0"],+ "이(가) 이를 실행할 수 있게 됩니다: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["이 설정을 팀과 공유하시겠습니까?"],"wtd69q": ["일치하는 폴더 없음."],"wvK7Ay": ["브랜치 <0>", ["branch"], "</0>의 로컬 사본이 뒤처져 있습니다."],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex 7b7f053b7..1de9df640 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -317,6 +317,12 @@ msgstr "{0} 이 채팅을 계속할 수 없습니다. 대화 기록은 남아msgid "{0} doesn't offer any settings to adjust"msgstr "{0}에서 조정할 설정을 제공하지 않습니다"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0}은(는) 스스로 문서를 읽거나 편집할 수 없습니다. 승인하면 Open Knowledge 확장이 {1}에 기록되어 그대로 남으므로, 이 세션과 이 프로젝트의 이후 세션에서도 Open Knowledge 도구를 사용할 수 있습니다."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "변경사항 적용 중"msgid "Applying…"msgstr "적용 중…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "승인"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "승인됨"@@ -3974,6 +3984,10 @@ msgstr "스킬 공유를 업데이트하지 못했습니다: {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "{displayName}({bin})이(가) 사용 가능한지 확인할 수 없어 일반 셸이 열렸습니다. 직접 {bin}을(를) 실행할 수 있습니다."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Open Knowledge 확장을 기록하지 못했습니다. 이 스레드에는 Open Knowledge 도구가 없습니다."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "스킬 설치 횟수를 공개적으로 집계"@@ -5056,6 +5070,11 @@ msgstr "git 자동 동기화를 사용하시겠습니까?"msgid "Enable indexes"msgstr "인덱스 사용"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "{0}에서 Open Knowledge 도구를 사용하도록 설정할까요?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "플러그인 활성화"@@ -5088,6 +5107,10 @@ msgstr "테마 사용"msgid "Enabling index generation"msgstr "인덱스 생성 활성화 중"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Open Knowledge 도구를 사용 설정하는 중"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "종료됨"@@ -7014,6 +7037,12 @@ msgstr "잘못된 공유 URL입니다."msgid "Invalid YAML"msgstr "잘못된 YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "또한 {0}을(를) 신뢰하는 폴더로 표시하며, 그래야 확장이 로드됩니다. 이 신뢰는 폴더 전체에 적용됩니다. {1}은(는) Open Knowledge의 것뿐 아니라 그 폴더의 모든 확장을 로드하며, 이 프로젝트에서 Open Knowledge를 제거할 때까지 둘 다 유지됩니다."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "내 작업 방식에 맞지 않았습니다"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge는 Markdown이 있는 모든 폴더에 index.md라는 탐msgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "문서가 변경되면 Open Knowledge가 index.md 파일을 다시 작성하므로 직접 편집한 내용은 대체됩니다."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "이 스레드에서 Open Knowledge 도구를 사용할 수 있습니다."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge 도구를 사용할 수 없습니다. {bridgePath}에 Open Knowledge가 작성하지 않은 파일이 이미 있습니다."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge 도구를 사용할 수 없습니다. {bridgePath}에 이미 무언가 있지만 읽을 수 없어 Open Knowledge가 그대로 두었습니다."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "나중에 하기"msgid "Skipped downloading {0}."msgstr "{0} 다운로드 건너뜀."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Open Knowledge 도구 사용 설정을 건너뛰었습니다. 이 스레드는 도구 없이 실행됩니다."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "슬래시 명령 메뉴"@@ -12668,6 +12713,11 @@ msgstr "문서 열기 시간 초과. 동기화 후 다시 시도합니다."msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "이 엔드포인트는 사용할 수 없습니다. https:// URL을 입력합니다. http://는 localhost에만 사용할 수 있습니다."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "해당 폴더에는 Open Knowledge가 작성하지 않은 코드가 이미 있으며, 같은 신뢰로 {0}이(가) 이를 실행할 수 있게 됩니다: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "해당 폴더는 아직 OpenKnowledge 프로젝트가 아닙니다. 초기화하고 여시겠습니까?"@@ -12848,6 +12898,10 @@ msgstr "저장소가 이동, 이름 변경 또는 삭제됐습니다."msgid "The repository's original clone directory"msgstr "리포지토리의 원래 클론 디렉터리"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "Open Knowledge 도구 사용 설정 요청 시간이 초과되었습니다. 이 스레드는 도구 없이 실행됩니다."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "스키마 파일이 없거나 불러오지 못했습니다. 필드를 추가하면 파일이 생성됩니다."@@ -14412,6 +14466,10 @@ msgstr "다음에 항목을 씁니다"msgid "writing"msgstr "작성 중"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Open Knowledge 확장을 기록했지만 폴더를 신뢰할 수 있는 폴더로 표시하지 못해 로드되지 않습니다. 이 스레드에는 Open Knowledge 도구가 없습니다."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "base16 레이아웃에서 YAML 또는 JSON"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex afdf5e6f6..9c7b61d70 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -17,6 +17,7 @@"-K0AvT": ["Ďĩśćōńńēćţ"],"-LHLx7": ["ēďĩţēď ţēḿƥĺàţē"],"-QCLWk": ["Ţēḿƥĺàţēś àvàĩĺàƀĺē"],+ "-QVER4": ["Ēńàƀĺĩńĝ Ōƥēń Ķńōŵĺēďĝē ţōōĺś"],"-Qw-1t": ["ĜĩţĤũƀ àũţĥēńţĩćàţĩōń ƒàĩĺēď. Ţŕŷ śĩĝńĩńĝ ĩń àĝàĩń."],"-VqsyR": ["Ţĥĩńķĩńĝ…"],"-WFFG2": ["Ďēƒàũĺţ ƥŕōƥēŕţĩēś"],@@ -691,6 +692,11 @@"8x6zk9": ["Ĥĩďē ", ["0"], " ēďĩţōŕ"],"9-lMCF": [["slot"], " ćōĺōŕ — ", ["0"]],"90-wKT": ["ŌƥēńĶńōŵĺēďĝē ŕēàď ţĥē ĥĩśţōŕŷ ōƒ ", ["subject"]],+ "92G3B2": [+ "Ōƥēń Ķńōŵĺēďĝē ţōōĺś àŕē ũńàvàĩĺàƀĺē: śōḿēţĥĩńĝ ĩś àĺŕēàďŷ àţ ",+ ["bridgePath"],+ " ƀũţ ćōũĺďń'ţ ƀē ŕēàď, śō Ōƥēń Ķńōŵĺēďĝē ĺēƒţ ĩţ àĺōńē."+ ],"92rbk2": ["Ḿĩŕŕōŕ ĺōàďĩńĝ <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Ĥĩďē Àĝēńţś"],"96G6Re": ["Ńēŵ ƒōĺďēŕ"],@@ -1175,6 +1181,7 @@"Śēţţĩńĝś ƒōŕ ţĥĩś ƥŕōĴēćţ. Śōḿē àŕē śĥàŕēď ŵĩţĥ ēvēŕŷ ćōĺĺàƀōŕàţōŕ ţĥŕōũĝĥ ĝĩţ; ōţĥēŕś àƥƥĺŷ ōńĺŷ ōń ţĥĩś ćōḿƥũţēŕ."],"FNTx6u": ["Śēàŕćĥ \"", ["semanticSubmitQuery"], "\" ƀŷ ḿēàńĩńĝ"],+ "FNsxBc": ["Ōƥēń Ķńōŵĺēďĝē ţōōĺś àŕē àvàĩĺàƀĺē ĩń ţĥĩś ţĥŕēàď."],"FOGD7m": ["Ćŕēàţē śōḿēţĥĩńĝ ĝŕēàţ."],"FQwhfM": ["Ţĥē ƥũƀĺĩć ŨŔĹ ŷōũŕ ţũńńēĺ śēŕvēś (ƒōŕ ēxàḿƥĺē ŷōũŕ Ţàĩĺśćàĺē ĥţţƥś://…ţś.ńēţ àďďŕēśś). Ţĥē śēŕvēŕ àďḿĩţś ŕēǫũēśţś ƒōŕ ţĥĩś ĥōśţ àńď àďvēŕţĩśēś ĩţ ĩń ţĥē ŨŔĹś ĩţ ĩśśũēś."@@ -1468,6 +1475,12 @@"Jw6EC4": ["ßŕàńćĥ śŵĩţćĥ ƒàĩĺēď — ţŕŷ ōƥēńĩńĝ ţĥē ", ["targetNoun"], " ḿàńũàĺĺŷ."],"JyM0gO": ["Śēńţ, ƀũţ ţĥē ćōḿḿēńţś ćōũĺď ńōţ ƀē ḿàŕķēď ďōńē — ţĥēŷ'ŕē śţĩĺĺ ŵàĩţĩńĝ ţō śēńď."],"JyW5aS": ["Śĩƒţĩńĝ…"],+ "JznUmv": [+ ["0"],+ " ĥàś ńō ŵàŷ ţō ŕēàď ōŕ ēďĩţ ŷōũŕ ďōćũḿēńţś ōń ĩţś ōŵń. Àƥƥŕōvĩńĝ ŵŕĩţēś ţĥē Ōƥēń Ķńōŵĺēďĝē ēxţēńśĩōń ţō ",+ ["1"],+ " àńď ĺēàvēś ĩţ ţĥēŕē, śō ţĥĩś śēśśĩōń àńď ĺàţēŕ ōńēś ĩń ţĥĩś ƥŕōĴēćţ ĥàvē ţĥē Ōƥēń Ķńōŵĺēďĝē ţōōĺś."+ ],"K-NcyU": ["Ţĥĩś ƒōĺďēŕ ďōēśń'ţ ćōńţàĩń à ĝĩţ ŕēƥōśĩţōŕŷ. Ƥĩćķ à ďĩƒƒēŕēńţ ƒōĺďēŕ?"],"K-a33w": ["Śţàŕţ ŵŕĩţĩńĝ ţō ćŕēàţē ţĥĩś ƥàĝē"],"K-h9cT": ["Ćōũĺďń'ţ śàvē ţĥē ŕēśōĺũţĩōń ƒōŕ ", ["filePath"], "."],@@ -1746,6 +1759,7 @@"NRSLBe": [["diffMin"], "ḿ àĝō"],"NSnIUP": ["Ţŵō-ƥàĝē (ēvēń)"],"NUr4kz": ["À ŕēũśàƀĺē śţàŕţĩńĝ ƥōĩńţ ƒōŕ ńēŵ ďōćũḿēńţś ĩń ţĥĩś ƒōĺďēŕ."],+ "NY0p7s": ["Śķĩƥƥēď ēńàƀĺĩńĝ Ōƥēń Ķńōŵĺēďĝē ţōōĺś. Ţĥĩś ţĥŕēàď ŕũńś ŵĩţĥōũţ ţĥēḿ."],"NYUhy5": ["Śũƀƒōĺďēŕ ńàḿē"],"NYn1cR": ["Ĺōàďĩńĝ ēďĩţōŕ"],"NYu2Pt": ["Ńēŵ ƥŕōĴēćţ…"],@@ -2122,6 +2136,7 @@"SItQRc": ["Ĥōŵ ďō ŷōũ ĺĩķē ŌƥēńĶńōŵĺēďĝē?"],"SOPwPh": ["Ŕēśţōŕē ţō ţĥĩś ēďĩţ"],"SRBk2G": ["Ćōũĺďń'ţ àďď ţĥàţ ćōḿḿēńţ."],+ "SRLcL7": ["Ēńàƀĺē Ōƥēń Ķńōŵĺēďĝē ţōōĺś ƒōŕ ", ["0"], "?"],"STTOnz": [["keyName"], " ţŷƥē: ćōḿƥĺēx vàĺũē (ńēśţēď; ŕēàď-ōńĺŷ)"],"SUOoXn": ["Ƒàĩĺēď ţō ōƥēń ƥŕōĴēćţ."],"SVLPt5": [["formatted"], " ĜĩţĤũƀ śţàŕś"],@@ -2623,6 +2638,7 @@"Ńō <0>.ḿàŕķďōŵńĺĩńţ.*</0> ƒĩĺē ŷēţ — ēvēŕŷ ŕũĺē ŕũńś ōń ţĥē śàḿē ďēƒàũĺţś àś ţĥē VŚ Ćōďē ḿàŕķďōŵńĺĩńţ ēxţēńśĩōń: àĺĺ ōń, ēxćēƥţ ĺĩńē ĺēńĝţĥ."],"Z79bnE": ["Vĩēŵ ďĩƒƒ ƒōŕ ēďĩţ ", ["burstNumber"], " ōƒ ", ["docName"]],+ "Z7ZXbT": ["Àƥƥŕōvē"],"Z7x_Zh": ["Ĝĩţ ńēēďś ",["tool"],@@ -2888,6 +2904,13 @@"c863eW": ["Ćōũĺď ńōţ śŵĩţćĥ ţō ", ["shareBranch"], ". Ţŕŷ śŵĩţćĥĩńĝ ḿàńũàĺĺŷ."],"c8iK2Y": ["Ńō ţēḿƥĺàţēś ƒōũńď."],"c8jBgX": ["Ćĥēćķĩńĝ ƒōŕ ũƥďàţēś ōń ĜĩţĤũƀ"],+ "c8wKUP": [+ "Ĩţ àĺśō ḿàŕķś ",+ ["0"],+ " àś ţŕũśţēď, ŵĥĩćĥ ĩś ŵĥàţ ḿàķēś ţĥē ēxţēńśĩōń ĺōàď. Ţĥàţ ţŕũśţ ćōvēŕś ţĥē ŵĥōĺē ƒōĺďēŕ — ",+ ["1"],+ " ŵĩĺĺ ĺōàď ēvēŕŷ ēxţēńśĩōń ĩń ĩţ, ńōţ ōńĺŷ Ōƥēń Ķńōŵĺēďĝē'ś — àńď ƀōţĥ śţàŷ ũńţĩĺ ŷōũ ŕēḿōvē Ōƥēń Ķńōŵĺēďĝē ƒŕōḿ ţĥĩś ƥŕōĴēćţ."+ ],"cCd8Bs": ["Ćũţ"],"cD3aew": ["Ŕē-ēḿƀēďďĩńĝ ĥàƥƥēńś àś śēàŕćĥēś ŕũń, śō ćōvēŕàĝē ŕēśţàŕţś àţ źēŕō àńď ŕēƒĩĺĺś."],"cEoyWz": ["Àďď ĩţēḿ ţō ", ["keyName"]],@@ -3439,6 +3462,11 @@"Ōƥēń à ńēŵ śēśśĩōń ŵĩţĥ ŷōũŕ ƥŕēƒēŕŕēď ÀĨ. Ŵĩţĥ ţēxţ śēĺēćţēď, śţàĝē ĩţ ţĥēŕē ĩńśţēàď ōƒ ŕũńńĩńĝ ĩţ."],"j5CWO4": ["Ũƥ ţō ďàţē"],+ "j6HvUO": [+ "Ōƥēń Ķńōŵĺēďĝē ţōōĺś àŕē ũńàvàĩĺàƀĺē: à ƒĩĺē Ōƥēń Ķńōŵĺēďĝē ďĩďń'ţ ŵŕĩţē ĩś àĺŕēàďŷ àţ ",+ ["bridgePath"],+ "."+ ],"j9Vqvc": ["ĩńĥēŕĩţēď"],"j9tqwO": ["Ńōţ ĩń śĩďēƀàŕ"],"jAMpHn": ["Ŵĥàţ ĩś à śţàŕţēŕ ƥàćķ?"],@@ -3551,6 +3579,9 @@["targetNoun"]," ŵĩĺĺ àƥƥēàŕ ōńćē ţĥē ƀŕàńćĥ śŷńćś."],+ "kNG0s5": [+ "Ćōũĺďń'ţ ŵŕĩţē ţĥē Ōƥēń Ķńōŵĺēďĝē ēxţēńśĩōń. Ţĥĩś ţĥŕēàď ĥàś ńō Ōƥēń Ķńōŵĺēďĝē ţōōĺś."+ ],"kNGLX6": ["Ŕēţŕŷĩńĝ…"],"kNqMMd": ["Ƒōĺďēŕ"],"kRTXGw": [@@ -3718,6 +3749,9 @@"mGaZwZ": ["Śēē ţĥē ƒũĺĺ ĩńśţàĺĺ ĝũĩďē"],"mHVPm5": ["Ŕēćōńńēćţ ŕēǫũĩŕēď"],"mHf8mp": ["Ďēĺēţē śćĥēḿà ƒĩĺē ", ["file"]],+ "mHo0kp": [+ "Ţĥē ŕēǫũēśţ ţō ēńàƀĺē Ōƥēń Ķńōŵĺēďĝē ţōōĺś ţĩḿēď ōũţ. Ţĥĩś ţĥŕēàď ŕũńś ŵĩţĥōũţ ţĥēḿ."+ ],"mLAjyL": ["Ĝĩvē ţĥē ÀĨ ţōōĺś ŷōũ ũśē àććēśś ţō ŕēàď àńď ũƥďàţē ŷōũŕ ƥŕōĴēćţś. Ćĥēćķĩńĝ à ƀōx śēţś ĩţ ũƥ ŕĩĝĥţ àŵàŷ; ũńćĥēćķĩńĝ ŕēḿōvēś ĩţ."],@@ -3767,6 +3801,9 @@"mlA3HX": ["Ĝĺōƀàĺĺŷ ĩńśţàĺĺ ţĥē ŌƥēńĶńōŵĺēďĝē śķĩĺĺś àńď ḾĆƤ ţō ĺēţ ţĥē àĝēńţś ŷōũ àĺŕēàďŷ ũśē ŕēàď àńď ũƥďàţē ŷōũŕ ƥŕōĴēćţś."],+ "mlDKzr": [+ "Ŵŕōţē ţĥē Ōƥēń Ķńōŵĺēďĝē ēxţēńśĩōń, ƀũţ ćōũĺďń'ţ ḿàŕķ ţĥē ƒōĺďēŕ ţŕũśţēď, śō ĩţ ŵōń'ţ ĺōàď. Ţĥĩś ţĥŕēàď ĥàś ńō Ōƥēń Ķńōŵĺēďĝē ţōōĺś."+ ],"mlvM8g": ["Ćōũĺďń'ţ ŕē-ƥĺàćē ţĥàţ ćōḿḿēńţ."],"mmpzAq": ["Ŵŕàƥ ĺōńĝ ĺĩńēś ĩń ţĥē ḿàŕķďōŵń śōũŕćē ēďĩţōŕ."],"mnpsVn": [@@ -4523,6 +4560,13 @@"wndeIl": ["ƤŕōĴēćţ-ĺēvēĺ ƥàĝēś ŵĩţĥ ńēĩţĥēŕ ĩńćōḿĩńĝ ńōŕ ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."],"wqD3pI": [["failed"], " ōƒ ", ["0"], " ćōḿḿēńţś ćōũĺď ńōţ ƀē ũƥďàţēď."],"ws5o1F": ["Ćĥēćķēď ƀŷ: ", ["0"]],+ "wsLj3t": [+ "Ţĥàţ ƒōĺďēŕ àĺŕēàďŷ ĥōĺďś ćōďē Ōƥēń Ķńōŵĺēďĝē ďĩďń'ţ ŵŕĩţē, ŵĥĩćĥ ţĥē śàḿē ţŕũśţ ŵōũĺď ĺēţ ",+ ["0"],+ " ŕũń: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["Śĥàŕē ţĥĩś śēţũƥ ŵĩţĥ ŷōũŕ ţēàḿ?"],"wtd69q": ["Ńō ƒōĺďēŕś ḿàţćĥ."],"wvK7Ay": ["Ŷōũŕ ĺōćàĺ ćōƥŷ ōƒ ƀŕàńćĥ <0>", ["branch"], "</0> ĩś ƀēĥĩńď."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 3def4f5c0..31ebfb25b 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -317,6 +317,12 @@ msgstr ""msgid "{0} doesn't offer any settings to adjust"msgstr ""+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr ""+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1754,6 +1760,10 @@ msgstr ""msgid "Applying…"msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr ""+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr ""@@ -3970,6 +3980,10 @@ msgstr ""msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr ""+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr ""@@ -5052,6 +5066,11 @@ msgstr ""msgid "Enable indexes"msgstr ""+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr ""+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr ""@@ -5084,6 +5103,10 @@ msgstr ""msgid "Enabling index generation"msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr ""+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr ""@@ -7010,6 +7033,12 @@ msgstr ""msgid "Invalid YAML"msgstr ""+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr ""+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr ""@@ -9001,6 +9030,18 @@ msgstr ""msgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr ""++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr ""++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr ""+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11911,6 +11952,10 @@ msgstr ""msgid "Skipped downloading {0}."msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr ""+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr ""@@ -12664,6 +12709,11 @@ msgstr ""msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr ""+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr ""+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr ""@@ -12844,6 +12894,10 @@ msgstr ""msgid "The repository's original clone directory"msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr ""+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr ""@@ -14408,6 +14462,10 @@ msgstr ""msgid "writing"msgstr ""+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr ""+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr ""diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 9a3ec1f77..0757870b2 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -27,6 +27,7 @@"-K0AvT": ["Desconectar"],"-LHLx7": ["modelo editado"],"-QCLWk": ["Modelos disponíveis"],+ "-QVER4": ["Ativando as ferramentas do Open Knowledge"],"-Qw-1t": ["Falha na autenticação com o GitHub. Tente entrar de novo."],"-VqsyR": ["Pensando…"],"-WFFG2": ["Propriedades padrão"],@@ -801,6 +802,11 @@"8x6zk9": ["Ocultar editor de ", ["0"]],"9-lMCF": ["Cor de ", ["slot"], " — ", ["0"]],"90-wKT": ["OpenKnowledge leu o histórico de ", ["subject"]],+ "92G3B2": [+ "As ferramentas do Open Knowledge estão indisponíveis: já existe algo em ",+ ["bridgePath"],+ ", mas não foi possível ler, então o Open Knowledge o deixou intacto."+ ],"92rbk2": ["O espelho está carregando <0>", ["mirrorRef"], "</0>"],"93LBnX": ["Ocultar Agentes"],"96G6Re": ["Nova pasta"],@@ -1342,6 +1348,7 @@"Configurações deste projeto. Algumas são compartilhadas com cada colaborador pelo git; outras se aplicam somente neste computador."],"FNTx6u": ["Buscar \"", ["semanticSubmitQuery"], "\" por significado"],+ "FNsxBc": ["As ferramentas do Open Knowledge estão disponíveis nesta conversa."],"FOGD7m": ["Crie algo excelente."],"FQwhfM": ["A URL pública que seu túnel serve (por exemplo, seu endereço Tailscale https://…ts.net). O servidor aceita solicitações para este host e o anuncia nas URLs que emite."@@ -1701,6 +1708,12 @@"Enviado, mas não foi possível marcar os comentários como concluídos — eles continuam aguardando envio."],"JyW5aS": ["Peneirando…"],+ "JznUmv": [+ ["0"],+ " não tem como ler ou editar seus documentos por conta própria. Aprovar grava a extensão do Open Knowledge em ",+ ["1"],+ " e a mantém lá, para que esta sessão e as seguintes neste projeto tenham as ferramentas do Open Knowledge."+ ],"K-NcyU": ["Esta pasta não contém um repositório git. Escolher outra pasta?"],"K-a33w": ["Comece a escrever para criar esta página"],"K-h9cT": ["Não deu para salvar a resolução de ", ["filePath"], "."],@@ -2006,6 +2019,9 @@"NRSLBe": ["há ", ["diffMin"], " min"],"NSnIUP": ["Duas páginas (pares)"],"NUr4kz": ["Um ponto de partida reutilizável para novos documentos nesta pasta."],+ "NY0p7s": [+ "A ativação das ferramentas do Open Knowledge foi ignorada. Esta conversa funciona sem elas."+ ],"NYUhy5": ["Nome da subpasta"],"NYn1cR": ["Carregando o editor"],"NYu2Pt": ["Novo projeto…"],@@ -2404,6 +2420,7 @@"SItQRc": ["O que você acha do OpenKnowledge?"],"SOPwPh": ["Restaurar até esta edição"],"SRBk2G": ["Não deu para adicionar esse comentário."],+ "SRLcL7": ["Ativar as ferramentas do Open Knowledge para ", ["0"], "?"],"STTOnz": ["Tipo de ", ["keyName"], ": valor complexo (aninhado; somente leitura)"],"SUOoXn": ["Falha ao abrir o projeto."],"SVLPt5": [["formatted"], " estrelas no GitHub"],@@ -3007,6 +3024,7 @@"Ainda não há arquivo <0>.markdownlint.*</0> — todas as regras rodam com os mesmos padrões da extensão markdownlint do VS Code: todas ligadas, exceto o comprimento da linha."],"Z79bnE": ["Ver as diferenças da edição ", ["burstNumber"], " de ", ["docName"]],+ "Z7ZXbT": ["Aprovar"],"Z7x_Zh": ["O git precisa de ",["tool"],@@ -3300,6 +3318,13 @@"c863eW": ["Não foi possível mudar para ", ["shareBranch"], ". Tente mudar manualmente."],"c8iK2Y": ["Nenhum modelo encontrado."],"c8jBgX": ["Buscando atualizações no GitHub"],+ "c8wKUP": [+ "Isso também marca ",+ ["0"],+ " como confiável, que é o que faz a extensão carregar. Essa confiança abrange a pasta inteira: ",+ ["1"],+ " carregará todas as extensões que houver nela, não apenas a do Open Knowledge, e ambas permanecem até você remover o Open Knowledge deste projeto."+ ],"cCd8Bs": ["Recortar"],"cD3aew": ["Os embeddings são recalculados à medida que as buscas rodam, então a cobertura recomeça do zero e vai enchendo."@@ -3930,6 +3955,11 @@"Abre uma nova sessão com a IA que você preferir. Com um texto selecionado, prepara-o lá em vez de executar."],"j5CWO4": ["Atualizado"],+ "j6HvUO": [+ "As ferramentas do Open Knowledge estão indisponíveis: já existe em ",+ ["bridgePath"],+ " um arquivo que o Open Knowledge não escreveu."+ ],"j9Vqvc": ["herdado"],"j9tqwO": ["Não está na barra lateral"],"jAMpHn": ["O que é um pacote inicial?"],@@ -4050,6 +4080,9 @@["targetNoun"]," vai aparecer assim que o ramo sincronizar."],+ "kNG0s5": [+ "Não deu para gravar a extensão do Open Knowledge. Esta conversa não tem as ferramentas do Open Knowledge."+ ],"kNGLX6": ["Tentando novamente…"],"kNqMMd": ["Pasta"],"kRTXGw": [@@ -4235,6 +4268,9 @@"mGaZwZ": ["Ver o guia de instalação completo"],"mHVPm5": ["É preciso reconectar"],"mHf8mp": ["Excluir o arquivo de esquema ", ["file"]],+ "mHo0kp": [+ "O pedido para ativar as ferramentas do Open Knowledge expirou. Esta conversa funciona sem elas."+ ],"mLAjyL": ["Dê às ferramentas de IA que você usa acesso para ler e atualizar seus projetos. Marcar uma caixa configura na hora; desmarcar remove."],@@ -4297,6 +4333,9 @@"mlA3HX": ["Instale globalmente as habilidades e o MCP do OpenKnowledge para que os agentes que você já usa possam ler e atualizar seus projetos."],+ "mlDKzr": [+ "A extensão do Open Knowledge foi gravada, mas não deu para marcar a pasta como confiável, então ela não vai carregar. Esta conversa não tem as ferramentas do Open Knowledge."+ ],"mlvM8g": ["Não deu para reposicionar esse comentário."],"mmpzAq": ["Quebra as linhas longas no editor de código markdown."],"mnpsVn": [@@ -5118,6 +5157,13 @@"wndeIl": ["Páginas de todo o projeto sem arestas de entrada nem de saída no grafo."],"wqD3pI": ["Não foi possível atualizar ", ["failed"], " de ", ["0"], " comentários."],"ws5o1F": ["Verificado por: ", ["0"]],+ "wsLj3t": [+ "Essa pasta já contém código que o Open Knowledge não escreveu e que essa mesma confiança permitiria a ",+ ["0"],+ " executar: ",+ ["otherExtensions"],+ "."+ ],"wtcxiD": ["Compartilhar esta configuração com sua equipe?"],"wtd69q": ["Nenhuma pasta corresponde."],"wvK7Ay": ["Sua cópia local do ramo <0>", ["branch"], "</0> está atrasada."],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex 17849571f..c8909c599 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -317,6 +317,12 @@ msgstr "{0} não pode continuar este chat — a transcrição foi mantida, mas amsgid "{0} doesn't offer any settings to adjust"msgstr "{0} não oferece configurações para ajustar"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} não tem como ler ou editar seus documentos por conta própria. Aprovar grava a extensão do Open Knowledge em {1} e a mantém lá, para que esta sessão e as seguintes neste projeto tenham as ferramentas do Open Knowledge."+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1754,6 +1760,10 @@ msgstr "Aplicando sua alteração"msgid "Applying…"msgstr "Aplicando…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "Aprovar"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "Aprovado"@@ -3970,6 +3980,10 @@ msgstr "Não deu para atualizar o compartilhamento de habilidades — {detail}."msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "Não foi possível verificar se {displayName} ({bin}) está disponível, então este é um shell comum. Você ainda pode executar {bin} por conta própria."+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Não deu para gravar a extensão do Open Knowledge. Esta conversa não tem as ferramentas do Open Knowledge."+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "Contar publicamente as instalações de habilidades"@@ -5052,6 +5066,11 @@ msgstr "Ativar a sincronização automática do git?"msgid "Enable indexes"msgstr "Habilitar índices"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "Ativar as ferramentas do Open Knowledge para {0}?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "Ativar os plugins"@@ -5084,6 +5103,10 @@ msgstr "Ativar os temas"msgid "Enabling index generation"msgstr "Habilitando a geração de índice"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Ativando as ferramentas do Open Knowledge"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "Encerrado"@@ -7010,6 +7033,12 @@ msgstr "URL de compartilhamento inválida."msgid "Invalid YAML"msgstr "YAML inválido"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "Isso também marca {0} como confiável, que é o que faz a extensão carregar. Essa confiança abrange a pasta inteira: {1} carregará todas as extensões que houver nela, não apenas a do Open Knowledge, e ambas permanecem até você remover o Open Knowledge deste projeto."+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "Não encaixou no meu jeito de trabalhar"@@ -9001,6 +9030,18 @@ msgstr "Open Knowledge mantém um arquivo de navegação denominado index.md emmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge reescreve esses arquivos index.md conforme os documentos são alterados, portanto, as edições manuais neles são substituídas."+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "As ferramentas do Open Knowledge estão disponíveis nesta conversa."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "As ferramentas do Open Knowledge estão indisponíveis: já existe em {bridgePath} um arquivo que o Open Knowledge não escreveu."++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "As ferramentas do Open Knowledge estão indisponíveis: já existe algo em {bridgePath}, mas não foi possível ler, então o Open Knowledge o deixou intacto."+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11911,6 +11952,10 @@ msgstr "Ignorar por enquanto"msgid "Skipped downloading {0}."msgstr "O download de {0} foi pulado."+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "A ativação das ferramentas do Open Knowledge foi ignorada. Esta conversa funciona sem elas."+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "Menu de comandos de barra"@@ -12664,6 +12709,11 @@ msgstr "Esse documento não abriu a tempo. Tente novamente quando ele estiver simsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Não dá para usar esse endpoint. Digite uma URL https:// — http:// só é aceito para localhost."+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "Essa pasta já contém código que o Open Knowledge não escreveu e que essa mesma confiança permitiria a {0} executar: {otherExtensions}."+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "Essa pasta ainda não é um projeto do OpenKnowledge. Inicializar e abrir?"@@ -12844,6 +12894,10 @@ msgstr "O repositório foi movido, renomeado ou excluído."msgid "The repository's original clone directory"msgstr "O diretório do clone original do repositório"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "O pedido para ativar as ferramentas do Open Knowledge expirou. Esta conversa funciona sem elas."+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "O arquivo de esquema não existe ou falhou ao carregar — adicionar um campo o cria."@@ -14408,6 +14462,10 @@ msgstr "Grava uma entrada em"msgid "writing"msgstr "escrita"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "A extensão do Open Knowledge foi gravada, mas não deu para marcar a pasta como confiável, então ela não vai carregar. Esta conversa não tem as ferramentas do Open Knowledge."+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML ou JSON, em qualquer um dos dois formatos base16."diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex aa7ef4a5b..d9568f31e 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -13,6 +13,7 @@"-K0AvT": ["منقطع کریں"],"-LHLx7": ["ٹیمپلیٹ میں ترمیم کی"],"-QCLWk": ["دستیاب ٹیمپلیٹس"],+ "-QVER4": ["Open Knowledge ٹولز فعال کیے جا رہے ہیں"],"-Qw-1t": ["GitHub کی توثیق ناکام رہی۔ دوبارہ سائن اِن کر کے دیکھیں۔"],"-VqsyR": ["سوچا جا رہا ہے…"],"-WFFG2": ["طے شدہ خصوصیات"],@@ -709,6 +710,11 @@"8x6zk9": [["0"], " ایڈیٹر چھپائیں"],"9-lMCF": [["slot"], " رنگ — ", ["0"]],"90-wKT": ["OpenKnowledge نے ", ["subject"], " کی تاریخ پڑھی"],+ "92G3B2": [+ "Open Knowledge ٹولز دستیاب نہیں: ",+ ["bridgePath"],+ " پر پہلے سے کچھ موجود ہے مگر اسے پڑھا نہیں جا سکا، اس لیے Open Knowledge نے اسے ویسا ہی چھوڑ دیا۔"+ ],"92rbk2": ["مرر <0>", ["mirrorRef"], "</0> لوڈ ہو رہا ہے"],"93LBnX": ["ایجنٹس چھپائیں"],"96G6Re": ["نیا فولڈر"],@@ -1195,6 +1201,7 @@"اس پروجیکٹ کی ترتیبات۔ کچھ git کے ذریعے ہر ساتھی کے ساتھ مشترک ہوتی ہیں؛ باقی صرف اسی کمپیوٹر پر لاگو ہوتی ہیں۔"],"FNTx6u": ["«", ["semanticSubmitQuery"], "» کو معنی کے لحاظ سے تلاش کریں"],+ "FNsxBc": ["اس تھریڈ میں Open Knowledge ٹولز دستیاب ہیں۔"],"FOGD7m": ["کچھ عمدہ بنائیں۔"],"FQwhfM": ["وہ عوامی URL جو آپ کا ٹنل پیش کرتا ہے (مثال کے طور پر آپ کا Tailscale https://…ts.net پتہ)۔ سرور اس ہوسٹ کے لیے درخواستیں قبول کرتا ہے اور جو URLs جاری کرتا ہے ان میں اس کی تشہیر کرتا ہے۔"@@ -1506,6 +1513,12 @@"بھیج دیا گیا، مگر تبصروں کو مکمل نشان زد نہیں کیا جا سکا — وہ اب بھی بھیجنے کے منتظر ہیں۔"],"JyW5aS": ["چھانٹا جا رہا ہے…"],+ "JznUmv": [+ ["0"],+ " خود سے آپ کی دستاویزات پڑھ یا ان میں ترمیم نہیں کر سکتا۔ منظوری دینے پر Open Knowledge ایکسٹینشن ",+ ["1"],+ " میں لکھی جاتی ہے اور وہیں رہتی ہے، تاکہ اس سیشن اور اس پروجیکٹ کے آئندہ سیشنز میں Open Knowledge ٹولز دستیاب ہوں۔"+ ],"K-NcyU": ["اس فولڈر میں کوئی git ریپوزٹری نہیں۔ کوئی اور فولڈر منتخب کریں؟"],"K-a33w": ["یہ صفحہ بنانے کے لیے لکھنا شروع کریں"],"K-h9cT": [["filePath"], " کا حل محفوظ نہیں ہو سکا۔"],@@ -1788,6 +1801,7 @@"NRSLBe": [["diffMin"], " منٹ پہلے"],"NSnIUP": ["دو صفحے (جفت)"],"NUr4kz": ["اس فولڈر میں نئی دستاویزات کے لیے دوبارہ استعمال ہونے والا نقطۂ آغاز۔"],+ "NY0p7s": ["Open Knowledge ٹولز فعال کرنا چھوڑ دیا گیا۔ یہ تھریڈ ان کے بغیر چلے گا۔"],"NYUhy5": ["ذیلی فولڈر کا نام"],"NYn1cR": ["ایڈیٹر لوڈ ہو رہا ہے"],"NYu2Pt": ["نیا پروجیکٹ…"],@@ -2172,6 +2186,7 @@"SItQRc": ["OpenKnowledge آپ کو کیسا لگا؟"],"SOPwPh": ["اس ترمیم پر بحال کریں"],"SRBk2G": ["وہ تبصرہ شامل نہیں ہو سکا۔"],+ "SRLcL7": ["کیا ", ["0"], " کے لیے Open Knowledge ٹولز فعال کریں؟"],"STTOnz": [["keyName"], " کی قسم: پیچیدہ قدر (نیسٹڈ؛ صرف پڑھنے کے لیے)"],"SUOoXn": ["پروجیکٹ نہیں کھل سکا۔"],"SVLPt5": [["formatted"], " GitHub ستارے"],@@ -2690,6 +2705,7 @@"ابھی کوئی <0>.markdownlint.*</0> فائل نہیں — ہر قاعدہ انہی طے شدہ اقدار پر چلتا ہے جو VS Code کے markdownlint ایکسٹینشن کی ہیں: سب فعال، سوائے سطر کی لمبائی کے۔"],"Z79bnE": [["docName"], " کی ترمیم ", ["burstNumber"], " کا فرق دیکھیں"],+ "Z7ZXbT": ["منظوری دیں"],"Z7x_Zh": ["اس ریپازٹری کے لیے Git کو ",["tool"],@@ -2971,6 +2987,13 @@"c863eW": [["shareBranch"], " پر تبدیل نہیں ہو سکا۔ دستی طور پر تبدیل کرنے کی کوشش کریں۔"],"c8iK2Y": ["کوئی ٹیمپلیٹ نہیں ملا۔"],"c8jBgX": ["GitHub پر اپ ڈیٹس دیکھے جا رہے ہیں"],+ "c8wKUP": [+ "یہ ",+ ["0"],+ " کو قابلِ اعتماد بھی قرار دیتا ہے، جس سے ایکسٹینشن لوڈ ہوتی ہے۔ یہ اعتماد پورے فولڈر پر لاگو ہوتا ہے: ",+ ["1"],+ " اس میں موجود ہر ایکسٹینشن لوڈ کرے گا، صرف Open Knowledge کی نہیں، اور جب تک آپ اس پروجیکٹ سے Open Knowledge نہ ہٹائیں، دونوں برقرار رہیں گے۔"+ ],"cCd8Bs": ["کاٹیں"],"cD3aew": ["دوبارہ ایمبیڈنگ تلاش چلنے کے دوران ہوتی ہے، اس لیے احاطہ صفر سے شروع ہو کر دوبارہ بھرتا ہے۔"@@ -3521,6 +3544,11 @@"اپنے پسندیدہ AI کے ساتھ نیا سیشن کھولیں۔ متن منتخب ہونے پر، اسے چلانے کے بجائے وہاں تیار رکھیں۔"],"j5CWO4": ["تازہ ترین"],+ "j6HvUO": [+ "Open Knowledge ٹولز دستیاب نہیں: ",+ ["bridgePath"],+ " پر پہلے سے ایسی فائل موجود ہے جو Open Knowledge نے نہیں لکھی۔"+ ],"j9Vqvc": ["وراثت میں ملا"],"j9tqwO": ["سائیڈ بار میں نہیں"],"jAMpHn": ["ابتدائی پیک کیا ہے؟"],@@ -3637,6 +3665,9 @@["targetNoun"]," ظاہر ہو جائے گا۔"],+ "kNG0s5": [+ "Open Knowledge ایکسٹینشن نہیں لکھی جا سکی۔ اس تھریڈ میں Open Knowledge ٹولز نہیں ہیں۔"+ ],"kNGLX6": ["دوبارہ کوشش جاری ہے…"],"kNqMMd": ["فولڈر"],"kRTXGw": [@@ -3814,6 +3845,9 @@"mGaZwZ": ["مکمل تنصیبی رہنما دیکھیں"],"mHVPm5": ["دوبارہ منسلک ہونا ضروری ہے"],"mHf8mp": ["اسکیما فائل ", ["file"], " حذف کریں"],+ "mHo0kp": [+ "Open Knowledge ٹولز فعال کرنے کی درخواست کا وقت ختم ہو گیا۔ یہ تھریڈ ان کے بغیر چلے گا۔"+ ],"mLAjyL": ["اپنے استعمال کے AI ٹولز کو اپنے پروجیکٹس پڑھنے اور تازہ کرنے کی رسائی دیں۔ خانہ نشان زد کرنا اسے فوراً ترتیب دے دیتا ہے؛ نشان ہٹانا اسے ہٹا دیتا ہے۔"],@@ -3864,6 +3898,9 @@"mlA3HX": ["OpenKnowledge کی اسکلز اور MCP کو گلوبل طور پر انسٹال کریں تاکہ جو ایجنٹس آپ پہلے سے استعمال کرتے ہیں وہ آپ کے پروجیکٹس پڑھ اور اپ ڈیٹ کر سکیں۔"],+ "mlDKzr": [+ "Open Knowledge ایکسٹینشن لکھ دی گئی، لیکن فولڈر کو قابلِ اعتماد نشان زد نہیں کیا جا سکا، اس لیے یہ لوڈ نہیں ہوگی۔ اس تھریڈ میں Open Knowledge ٹولز نہیں ہیں۔"+ ],"mlvM8g": ["وہ تبصرہ دوبارہ نہیں رکھا جا سکا۔"],"mmpzAq": ["Markdown سورس ایڈیٹر میں لمبی سطریں لپیٹیں۔"],"mnpsVn": [@@ -4611,6 +4648,13 @@"wndeIl": ["پروجیکٹ کی سطح کے وہ صفحات جن کے گراف میں نہ آنے والے اور نہ جانے والے کنارے ہیں۔"],"wqD3pI": [["0"], " میں سے ", ["failed"], " تبصرے اپ ڈیٹ نہیں ہو سکے۔"],"ws5o1F": ["جانچا گیا: ", ["0"]],+ "wsLj3t": [+ "اس فولڈر میں پہلے سے ایسا کوڈ موجود ہے جو Open Knowledge نے نہیں لکھا اور یہی اعتماد ",+ ["0"],+ " کو اسے چلانے کی اجازت دے گا: ",+ ["otherExtensions"],+ "۔"+ ],"wtcxiD": ["یہ سیٹ اپ اپنی ٹیم کے ساتھ شیئر کریں؟"],"wtd69q": ["کوئی فولڈر مماثل نہیں۔"],"wvK7Ay": ["برانچ <0>", ["branch"], "</0> کی آپ کی مقامی نقل پیچھے ہے۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex f3d21ef2f..e0188c1d9 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -317,6 +317,12 @@ msgstr "{0} اس چیٹ کو جاری نہیں رکھ سکتا — ٹرانسکmsgid "{0} doesn't offer any settings to adjust"msgstr "{0} ایڈجسٹ کرنے کے لیے کوئی ترتیبات فراہم نہیں کرتا"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} خود سے آپ کی دستاویزات پڑھ یا ان میں ترمیم نہیں کر سکتا۔ منظوری دینے پر Open Knowledge ایکسٹینشن {1} میں لکھی جاتی ہے اور وہیں رہتی ہے، تاکہ اس سیشن اور اس پروجیکٹ کے آئندہ سیشنز میں Open Knowledge ٹولز دستیاب ہوں۔"+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "آپ کی تبدیلی لاگو کی جا رہی ہے"msgid "Applying…"msgstr "لاگو کیا جا رہا ہے…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "منظوری دیں"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "منظور شدہ"@@ -3974,6 +3984,10 @@ msgstr "مہارتوں کا اشتراک تازہ نہیں ہو سکا — {detamsgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "تصدیق نہیں ہو سکی کہ {displayName} ({bin}) دستیاب ہے، اس لیے یہ ایک سادہ شیل ہے۔ آپ پھر بھی خود {bin} چلا سکتے ہیں۔"+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "Open Knowledge ایکسٹینشن نہیں لکھی جا سکی۔ اس تھریڈ میں Open Knowledge ٹولز نہیں ہیں۔"+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "مہارت کی تنصیبات عوامی طور پر شمار کریں"@@ -5056,6 +5070,11 @@ msgstr "git کی خودکار مطابقت پذیری فعال کریں؟"msgid "Enable indexes"msgstr "اشاریہ جات کو فعال کریں۔"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "کیا {0} کے لیے Open Knowledge ٹولز فعال کریں؟"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "پلگ اِنز فعال کریں"@@ -5088,6 +5107,10 @@ msgstr "تھیمز فعال کریں"msgid "Enabling index generation"msgstr "انڈیکس جنریشن کو فعال کرنا"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "Open Knowledge ٹولز فعال کیے جا رہے ہیں"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "ختم ہو گیا"@@ -7014,6 +7037,12 @@ msgstr "شیئر URL درست نہیں۔"msgid "Invalid YAML"msgstr "YAML درست نہیں"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "یہ {0} کو قابلِ اعتماد بھی قرار دیتا ہے، جس سے ایکسٹینشن لوڈ ہوتی ہے۔ یہ اعتماد پورے فولڈر پر لاگو ہوتا ہے: {1} اس میں موجود ہر ایکسٹینشن لوڈ کرے گا، صرف Open Knowledge کی نہیں، اور جب تک آپ اس پروجیکٹ سے Open Knowledge نہ ہٹائیں، دونوں برقرار رہیں گے۔"+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "یہ میرے ورک فلو میں فٹ نہیں بیٹھا"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge ہر فولڈر میں index.md نامی ایک نیویmsgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "Open Knowledge ان index.md فائلوں کو دوبارہ لکھتا ہے جیسے ہی دستاویزات میں تبدیلی آتی ہے، لہذا ان میں دستی ترامیم تبدیل کردی جاتی ہیں۔"+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "اس تھریڈ میں Open Knowledge ٹولز دستیاب ہیں۔"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge ٹولز دستیاب نہیں: {bridgePath} پر پہلے سے ایسی فائل موجود ہے جو Open Knowledge نے نہیں لکھی۔"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge ٹولز دستیاب نہیں: {bridgePath} پر پہلے سے کچھ موجود ہے مگر اسے پڑھا نہیں جا سکا، اس لیے Open Knowledge نے اسے ویسا ہی چھوڑ دیا۔"+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "ابھی چھوڑ دیں"msgid "Skipped downloading {0}."msgstr "{0} کا ڈاؤن لوڈ چھوڑ دیا گیا۔"+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "Open Knowledge ٹولز فعال کرنا چھوڑ دیا گیا۔ یہ تھریڈ ان کے بغیر چلے گا۔"+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "سلیش کمانڈ کا مینو"@@ -12668,6 +12713,11 @@ msgstr "وہ دستاویز وقت پر نہیں کھلی۔ ہم آہنگ ہونmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "وہ اینڈ پوائنٹ استعمال نہیں ہو سکتا۔ https:// والا URL درج کریں — http:// کی اجازت صرف localhost کے لیے ہے۔"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "اس فولڈر میں پہلے سے ایسا کوڈ موجود ہے جو Open Knowledge نے نہیں لکھا اور یہی اعتماد {0} کو اسے چلانے کی اجازت دے گا: {otherExtensions}۔"+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "وہ فولڈر ابھی OpenKnowledge پروجیکٹ نہیں ہے۔ اس کا ابتدائیہ کر کے کھولیں؟"@@ -12848,6 +12898,10 @@ msgstr "ریپازٹری منتقل ہو گئی، اس کا نام بدل گیاmsgid "The repository's original clone directory"msgstr "ریپازٹری کی اصل کلون ڈائریکٹری"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "Open Knowledge ٹولز فعال کرنے کی درخواست کا وقت ختم ہو گیا۔ یہ تھریڈ ان کے بغیر چلے گا۔"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "اسکیما فائل موجود نہیں یا لوڈ نہیں ہو سکی — فیلڈ شامل کرنے سے یہ بن جاتی ہے۔"@@ -14412,6 +14466,10 @@ msgstr "اس میں ایک اندراج لکھتا ہے"msgid "writing"msgstr "لکھائی"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "Open Knowledge ایکسٹینشن لکھ دی گئی، لیکن فولڈر کو قابلِ اعتماد نشان زد نہیں کیا جا سکا، اس لیے یہ لوڈ نہیں ہوگی۔ اس تھریڈ میں Open Knowledge ٹولز نہیں ہیں۔"+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML یا JSON، base16 کے کسی بھی خاکے میں۔"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 89fa40f61..e66ea36be 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -11,6 +11,7 @@"-K0AvT": ["断开连接"],"-LHLx7": ["已编辑模板"],"-QCLWk": ["可用模板"],+ "-QVER4": ["正在启用 Open Knowledge 工具"],"-Qw-1t": ["GitHub 身份验证失败。请尝试重新登录。"],"-VqsyR": ["正在思考…"],"-WFFG2": ["默认属性"],@@ -621,6 +622,11 @@"8x6zk9": ["隐藏 ", ["0"], " 编辑器"],"9-lMCF": [["slot"], " 颜色 — ", ["0"]],"90-wKT": ["OpenKnowledge 查看了 ", ["subject"], " 的历史"],+ "92G3B2": [+ "Open Knowledge 工具不可用:",+ ["bridgePath"],+ " 处已有内容,但无法读取,因此 Open Knowledge 未做改动。"+ ],"92rbk2": ["镜像正在加载 <0>", ["mirrorRef"], "</0>"],"93LBnX": ["隐藏「智能体」"],"96G6Re": ["新建文件夹"],@@ -1044,6 +1050,7 @@"FK57sK": ["已修复 ", ["names"], " 的 MCP 集成"],"FKVmcC": ["本项目的设置。部分设置通过 git 与每位协作者共享;其余仅在这台电脑上生效。"],"FNTx6u": ["按语义搜索 \"", ["semanticSubmitQuery"], "\""],+ "FNsxBc": ["此线程中已可使用 Open Knowledge 工具。"],"FOGD7m": ["创造点了不起的东西。"],"FQwhfM": ["您的隧道所服务的公开 URL(例如您的 Tailscale https://…ts.net 地址)。服务器接受针对此主机的请求,并在其发出的 URL 中公布该地址。"@@ -1297,6 +1304,12 @@"Jw6EC4": ["切换分支失败——请尝试手动打开", ["targetNoun"], "。"],"JyM0gO": ["已发送,但无法把这些评论标记为已完成——它们仍在等待发送。"],"JyW5aS": ["正在筛查…"],+ "JznUmv": [+ ["0"],+ " 无法自行读取或编辑你的文档。批准后会将 Open Knowledge 扩展写入 ",+ ["1"],+ " 并保留在那里,使本次会话以及此项目中后续的会话都能使用 Open Knowledge 工具。"+ ],"K-NcyU": ["此文件夹不包含 git 仓库。要换一个文件夹吗?"],"K-a33w": ["开始写点什么即可创建这个页面"],"K-h9cT": ["无法保存 ", ["filePath"], " 的解决结果。"],@@ -1534,6 +1547,7 @@"NRSLBe": [["diffMin"], " 分钟前"],"NSnIUP": ["双页(偶数)"],"NUr4kz": ["这个文件夹中新文档可复用的起点。"],+ "NY0p7s": ["已跳过启用 Open Knowledge 工具。此线程将在没有这些工具的情况下运行。"],"NYUhy5": ["子文件夹名"],"NYn1cR": ["正在加载编辑器"],"NYu2Pt": ["新建项目…"],@@ -1871,6 +1885,7 @@"SItQRc": ["你觉得 OpenKnowledge 怎么样?"],"SOPwPh": ["恢复到这次编辑"],"SRBk2G": ["无法添加那条评论。"],+ "SRLcL7": ["为 ", ["0"], " 启用 Open Knowledge 工具?"],"STTOnz": [["keyName"], " 类型:复合值(嵌套;只读)"],"SUOoXn": ["打开项目失败。"],"SVLPt5": [["formatted"], " 个 GitHub star"],@@ -2322,6 +2337,7 @@"还没有 <0>.markdownlint.*</0> 文件——所有规则都按与 VS Code markdownlint 扩展相同的默认值运行:除行长度外全部开启。"],"Z79bnE": ["查看 ", ["docName"], " 第 ", ["burstNumber"], " 次编辑的差异"],+ "Z7ZXbT": ["批准"],"Z7x_Zh": ["Git 在这个仓库中需要 ", ["tool"], ",但它未安装或找不到。请先安装再重试。"],"Z8KDox": ["请输入文件夹名(例如 brain)。"],"Z8lGw6": ["共享"],@@ -2560,6 +2576,13 @@"c863eW": ["无法切换到 ", ["shareBranch"], "。请尝试手动切换。"],"c8iK2Y": ["没有找到模板。"],"c8jBgX": ["正在 GitHub 上检查更新"],+ "c8wKUP": [+ "这同时会将 ",+ ["0"],+ " 标记为受信任,扩展正是因此才会加载。该信任覆盖整个文件夹:",+ ["1"],+ " 会加载其中的每一个扩展,而不仅是 Open Knowledge 的;在你将 Open Knowledge 从此项目中移除之前,两者都会一直保留。"+ ],"cCd8Bs": ["剪切"],"cD3aew": ["重新生成嵌入向量会随着搜索进行,因此覆盖率会从零重新累积。"],"cEoyWz": ["向 ", ["keyName"], " 添加项目"],@@ -3036,6 +3059,11 @@"用你偏好的 AI 打开一个新会话。如果有选中的文本,会把它放到那里待发送,而不是直接执行。"],"j5CWO4": ["已是最新"],+ "j6HvUO": [+ "Open Knowledge 工具不可用:",+ ["bridgePath"],+ " 处已存在一个并非 Open Knowledge 写入的文件。"+ ],"j9Vqvc": ["继承"],"j9tqwO": ["不在侧边栏中"],"jAMpHn": ["什么是入门包?"],@@ -3142,6 +3170,7 @@["targetNoun"],"就会出现。"],+ "kNG0s5": ["无法写入 Open Knowledge 扩展。此线程没有 Open Knowledge 工具。"],"kNGLX6": ["正在重试…"],"kNqMMd": ["文件夹"],"kRTXGw": [@@ -3289,6 +3318,7 @@"mGaZwZ": ["查看完整的安装指南"],"mHVPm5": ["需要重新连接"],"mHf8mp": ["删除架构文件 ", ["file"]],+ "mHo0kp": ["启用 Open Knowledge 工具的请求已超时。此线程将在没有这些工具的情况下运行。"],"mLAjyL": ["让你使用的 AI 工具能够读取和更新你的项目。勾选即刻生效;取消勾选则移除。"],"mPy9lS": ["把我现有的规格整理成一个按领域分组的链接索引,并标出与当前代码脱节的部分。"],"mPzgTS": ["打开 ", ["docName"]],@@ -3321,6 +3351,9 @@],"mk2poV": ["例如 server.ts"],"mlA3HX": ["全局安装 OpenKnowledge 技能和 MCP,让你已在使用的智能体可以读取和更新你的项目。"],+ "mlDKzr": [+ "已写入 Open Knowledge 扩展,但无法将该文件夹标记为受信任,因此它不会被加载。此线程没有 Open Knowledge 工具。"+ ],"mlvM8g": ["无法重新定位那条评论。"],"mmpzAq": ["在 markdown 源码编辑器中对长行自动换行。"],"mnpsVn": [@@ -3948,6 +3981,13 @@"wndeIl": ["既无入链又无出链的项目级页面。"],"wqD3pI": [["0"], " 条评论中有 ", ["failed"], " 条无法更新。"],"ws5o1F": ["检查者:", ["0"]],+ "wsLj3t": [+ "该文件夹中已有并非 Open Knowledge 写入的代码,同一份信任会允许 ",+ ["0"],+ " 运行它们:",+ ["otherExtensions"],+ "。"+ ],"wtcxiD": ["要把这套配置分享给你的团队吗?"],"wtd69q": ["没有匹配的文件夹。"],"wvK7Ay": ["你本地的 <0>", ["branch"], "</0> 分支副本落后了。"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 97ce8e4eb..50bb02dce 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -317,6 +317,12 @@ msgstr "{0} 无法继续此对话 — 聊天记录已保留,但智能体会话msgid "{0} doesn't offer any settings to adjust"msgstr "{0} 没有可调整的设置"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} 无法自行读取或编辑你的文档。批准后会将 Open Knowledge 扩展写入 {1} 并保留在那里,使本次会话以及此项目中后续的会话都能使用 Open Knowledge 工具。"+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "正在应用你的更改"msgid "Applying…"msgstr "正在应用…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "批准"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "已批准"@@ -3974,6 +3984,10 @@ msgstr "无法更新技能共享设置——{detail}。"msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "无法确认 {displayName}({bin})是否可用,因此这是一个普通 shell。你仍然可以自行运行 {bin}。"+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "无法写入 Open Knowledge 扩展。此线程没有 Open Knowledge 工具。"+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "公开统计技能安装量"@@ -5056,6 +5070,11 @@ msgstr "要启用 git 自动同步吗?"msgid "Enable indexes"msgstr "启用索引"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "为 {0} 启用 Open Knowledge 工具?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "启用插件"@@ -5088,6 +5107,10 @@ msgstr "启用主题"msgid "Enabling index generation"msgstr "启用索引生成"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "正在启用 Open Knowledge 工具"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "已结束"@@ -7014,6 +7037,12 @@ msgstr "共享链接无效。"msgid "Invalid YAML"msgstr "无效的 YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "这同时会将 {0} 标记为受信任,扩展正是因此才会加载。该信任覆盖整个文件夹:{1} 会加载其中的每一个扩展,而不仅是 Open Knowledge 的;在你将 Open Knowledge 从此项目中移除之前,两者都会一直保留。"+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "它不适合我的工作流程"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge 在包含 Markdown 的每个文件夹中维护一个名msgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "当文档更改时,Open Knowledge 会重写这些 index.md 文件,因此对它们的手动编辑将被替换。"+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "此线程中已可使用 Open Knowledge 工具。"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge 工具不可用:{bridgePath} 处已存在一个并非 Open Knowledge 写入的文件。"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge 工具不可用:{bridgePath} 处已有内容,但无法读取,因此 Open Knowledge 未做改动。"+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "暂时跳过"msgid "Skipped downloading {0}."msgstr "已跳过下载 {0}。"+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "已跳过启用 Open Knowledge 工具。此线程将在没有这些工具的情况下运行。"+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "斜杠命令菜单"@@ -12668,6 +12713,11 @@ msgstr "该文档未能及时打开。请在同步完成后重试。"msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "无法使用那个端点。请输入 https:// 的 URL——http:// 只允许用于 localhost。"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "该文件夹中已有并非 Open Knowledge 写入的代码,同一份信任会允许 {0} 运行它们:{otherExtensions}。"+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "那个文件夹还不是 OpenKnowledge 项目。要初始化并打开它吗?"@@ -12848,6 +12898,10 @@ msgstr "这个仓库被移动、重命名或删除了。"msgid "The repository's original clone directory"msgstr "仓库的原始克隆目录"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "启用 Open Knowledge 工具的请求已超时。此线程将在没有这些工具的情况下运行。"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "架构文件不存在或加载失败——添加字段会自动创建它。"@@ -14412,6 +14466,10 @@ msgstr "写入条目到"msgid "writing"msgstr "写作"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "已写入 Open Knowledge 扩展,但无法将该文件夹标记为受信任,因此它不会被加载。此线程没有 Open Knowledge 工具。"+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML 或 JSON,两种 base16 布局都可以。"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex d3f651ce2..4101461d2 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -11,6 +11,7 @@"-K0AvT": ["中斷連接"],"-LHLx7": ["已編輯範本"],"-QCLWk": ["可用的範本"],+ "-QVER4": ["正在啟用 Open Knowledge 工具"],"-Qw-1t": ["GitHub 驗證失敗。請試著重新登入。"],"-VqsyR": ["思考中…"],"-WFFG2": ["預設屬性"],@@ -625,6 +626,11 @@"8x6zk9": ["隱藏 ", ["0"], " 編輯器"],"9-lMCF": [["slot"], " 色彩 — ", ["0"]],"90-wKT": ["OpenKnowledge 查看了 ", ["subject"], " 的歷史"],+ "92G3B2": [+ "Open Knowledge 工具無法使用:",+ ["bridgePath"],+ " 已有內容,但無法讀取,因此 Open Knowledge 未做更動。"+ ],"92rbk2": ["鏡像正在載入 <0>", ["mirrorRef"], "</0>"],"93LBnX": ["隱藏「代理」"],"96G6Re": ["新增資料夾"],@@ -1054,6 +1060,7 @@"FK57sK": ["已修復 ", ["names"], " 的 MCP 整合"],"FKVmcC": ["這個專案的設定。部分設定會透過 git 與每位協作者分享;其餘只在這台電腦上生效。"],"FNTx6u": ["按語意搜尋「", ["semanticSubmitQuery"], "」"],+ "FNsxBc": ["此執行緒中已可使用 Open Knowledge 工具。"],"FOGD7m": ["創造點了不起的東西。"],"FQwhfM": ["您的通道所提供的公開 URL(例如您的 Tailscale https://…ts.net 位址)。伺服器接受針對此主機的請求,並在其發出的 URL 中公布該位址。"@@ -1311,6 +1318,12 @@"Jw6EC4": ["切換分支失敗——請試著手動開啟", ["targetNoun"], "。"],"JyM0gO": ["已傳送,但無法把這些註解標記為完成——它們仍在等著傳送。"],"JyW5aS": ["篩查中…"],+ "JznUmv": [+ ["0"],+ " 無法自行讀取或編輯你的文件。核准後會將 Open Knowledge 擴充功能寫入 ",+ ["1"],+ " 並保留在該處,使本次工作階段以及此專案中後續的工作階段都能使用 Open Knowledge 工具。"+ ],"K-NcyU": ["這個資料夾沒有 git 儲存庫。要換一個資料夾嗎?"],"K-a33w": ["開始寫點東西就能建立這個頁面"],"K-h9cT": ["無法儲存 ", ["filePath"], " 的解決結果。"],@@ -1558,6 +1571,7 @@"NRSLBe": [["diffMin"], " 分鐘前"],"NSnIUP": ["雙頁(偶數)"],"NUr4kz": ["這個資料夾中新文件可重複使用的起點。"],+ "NY0p7s": ["已略過啟用 Open Knowledge 工具。此執行緒將在沒有這些工具的情況下運作。"],"NYUhy5": ["子資料夾名稱"],"NYn1cR": ["正在載入編輯器"],"NYu2Pt": ["新增專案…"],@@ -1897,6 +1911,7 @@"SItQRc": ["你覺得 OpenKnowledge 如何?"],"SOPwPh": ["還原到這次編輯"],"SRBk2G": ["無法加上那則註解。"],+ "SRLcL7": ["要為 ", ["0"], " 啟用 Open Knowledge 工具嗎?"],"STTOnz": [["keyName"], " 類型:複合值(巢狀;唯讀)"],"SUOoXn": ["開啟專案失敗。"],"SVLPt5": [["formatted"], " 個 GitHub star"],@@ -2346,6 +2361,7 @@"還沒有 <0>.markdownlint.*</0> 檔案——所有規則都按照和 VS Code markdownlint 擴充功能相同的預設值執行:除了行長度以外全部開啟。"],"Z79bnE": ["檢視 ", ["docName"], " 第 ", ["burstNumber"], " 次編輯的差異"],+ "Z7ZXbT": ["核准"],"Z7x_Zh": ["Git 在這個儲存庫需要 ", ["tool"], ",但它沒有安裝或找不到。請先安裝再試一次。"],"Z8KDox": ["請輸入資料夾名稱(例如 brain)。"],"Z8lGw6": ["分享"],@@ -2586,6 +2602,13 @@"c863eW": ["無法切換到 ", ["shareBranch"], "。請試著手動切換。"],"c8iK2Y": ["找不到範本。"],"c8jBgX": ["正在 GitHub 上檢查更新"],+ "c8wKUP": [+ "這同時會將 ",+ ["0"],+ " 標記為受信任,擴充功能正是因此才會載入。該信任涵蓋整個資料夾:",+ ["1"],+ " 會載入其中的每一個擴充功能,而不僅是 Open Knowledge 的;在你將 Open Knowledge 從此專案移除之前,兩者都會一直保留。"+ ],"cCd8Bs": ["剪下"],"cD3aew": ["重新產生嵌入向量會隨著搜尋進行,所以涵蓋率會從零重新累積。"],"cEoyWz": ["為 ", ["keyName"], " 新增項目"],@@ -3066,6 +3089,11 @@"用你偏好的 AI 開啟一個新的工作階段。如果有選取文字,會把它放到那裡待送出,而不是直接執行。"],"j5CWO4": ["已是最新"],+ "j6HvUO": [+ "Open Knowledge 工具無法使用:",+ ["bridgePath"],+ " 已存在一個並非 Open Knowledge 寫入的檔案。"+ ],"j9Vqvc": ["繼承"],"j9tqwO": ["不在側邊欄中"],"jAMpHn": ["什麼是入門套件?"],@@ -3172,6 +3200,7 @@["targetNoun"],"就會出現。"],+ "kNG0s5": ["無法寫入 Open Knowledge 擴充功能。此執行緒沒有 Open Knowledge 工具。"],"kNGLX6": ["正在重試…"],"kNqMMd": ["資料夾"],"kRTXGw": [@@ -3319,6 +3348,7 @@"mGaZwZ": ["查看完整的安裝指南"],"mHVPm5": ["需要重新連接"],"mHf8mp": ["刪除結構描述檔案 ", ["file"]],+ "mHo0kp": ["啟用 Open Knowledge 工具的請求已逾時。此執行緒將在沒有這些工具的情況下運作。"],"mLAjyL": ["讓你用的 AI 工具能夠讀取和更新你的專案。勾選就會立刻設定好;取消勾選則會移除。"],"mPy9lS": ["把我現有的規格整理成一個依領域分組的連結索引,並標出和目前程式碼已經脫節的部分。"],"mPzgTS": ["開啟 ", ["docName"]],@@ -3351,6 +3381,9 @@],"mk2poV": ["例如 server.ts"],"mlA3HX": ["全域安裝 OpenKnowledge 技能與 MCP,讓你已在使用的智慧代理可以讀取並更新你的專案。"],+ "mlDKzr": [+ "已寫入 Open Knowledge 擴充功能,但無法將該資料夾標記為受信任,因此不會載入。此執行緒沒有 Open Knowledge 工具。"+ ],"mlvM8g": ["無法重新定位那則註解。"],"mmpzAq": ["在 markdown 原始碼編輯器中把過長的行自動換行。"],"mnpsVn": [@@ -3982,6 +4015,13 @@"wndeIl": ["既沒有連入也沒有連出關係圖邊的專案層級頁面。"],"wqD3pI": [["0"], " 則註解中有 ", ["failed"], " 則無法更新。"],"ws5o1F": ["檢查者:", ["0"]],+ "wsLj3t": [+ "該資料夾中已有並非 Open Knowledge 寫入的程式碼,同一份信任會允許 ",+ ["0"],+ " 執行它們:",+ ["otherExtensions"],+ "。"+ ],"wtcxiD": ["要把這套設定分享給你的團隊嗎?"],"wtd69q": ["沒有符合的資料夾。"],"wvK7Ay": ["你本機的 <0>", ["branch"], "</0> 分支副本落後了。"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 54aebd8b4..257c1199a 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -317,6 +317,12 @@ msgstr "{0} 無法繼續此對話 — 對話記錄已保留,但智慧代理的msgid "{0} doesn't offer any settings to adjust"msgstr "{0} 沒有可調整的設定"+#. placeholder {0}: prompt.agentName+#. placeholder {1}: item.bridgePath+#: src/components/acp/ThreadView.tsx+msgid "{0} has no way to read or edit your documents on its own. Approving writes the Open Knowledge extension to {1} and leaves it there, so this session and later ones in this project have the Open Knowledge tools."+msgstr "{0} 無法自行讀取或編輯你的文件。核准後會將 Open Knowledge 擴充功能寫入 {1} 並保留在該處,使本次工作階段以及此專案中後續的工作階段都能使用 Open Knowledge 工具。"+#. placeholder {0}: info.agent.name#: src/components/acp/ThreadView.tsxmsgid "{0} hasn't reported its settings yet"@@ -1758,6 +1764,10 @@ msgstr "正在套用你的變更"msgid "Applying…"msgstr "套用中…"+#: src/components/acp/ThreadView.tsx+msgid "Approve"+msgstr "核准"+#: src/components/acp/ThreadView.tsxmsgid "Approved"msgstr "已核准"@@ -3974,6 +3984,10 @@ msgstr "無法更新技能分享設定——{detail}。"msgid "Couldn't verify that {displayName} ({bin}) is available, so this is a plain shell. You can still run {bin} yourself."msgstr "無法確認 {displayName}({bin})是否可用,因此這是一個一般 shell。你仍然可以自行執行 {bin}。"+#: src/components/acp/ThreadView.tsx+msgid "Couldn't write the Open Knowledge extension. This thread has no Open Knowledge tools."+msgstr "無法寫入 Open Knowledge 擴充功能。此執行緒沒有 Open Knowledge 工具。"+#: src/components/settings/settings-fields.tsmsgid "Count skill installs publicly"msgstr "公開統計技能安裝次數"@@ -5056,6 +5070,11 @@ msgstr "要啟用 git 自動同步嗎?"msgid "Enable indexes"msgstr "啟用索引"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "Enable Open Knowledge tools for {0}?"+msgstr "要為 {0} 啟用 Open Knowledge 工具嗎?"+#: src/components/ProblemsPanel.tsxmsgid "Enable plugins"msgstr "啟用外掛"@@ -5088,6 +5107,10 @@ msgstr "啟用主題"msgid "Enabling index generation"msgstr "啟用索引生成"+#: src/components/acp/ThreadView.tsx+msgid "Enabling Open Knowledge tools"+msgstr "正在啟用 Open Knowledge 工具"+#: src/components/ActivityModeContent.tsxmsgid "Ended"msgstr "已結束"@@ -7014,6 +7037,12 @@ msgstr "分享網址無效。"msgid "Invalid YAML"msgstr "無效的 YAML"+#. placeholder {0}: prompt.cwd+#. placeholder {1}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "It also marks {0} as trusted, which is what makes the extension load. That trust covers the whole folder — {1} will load every extension in it, not only Open Knowledge's — and both stay until you remove Open Knowledge from this project."+msgstr "這同時會將 {0} 標記為受信任,擴充功能正是因此才會載入。該信任涵蓋整個資料夾:{1} 會載入其中的每一個擴充功能,而不僅是 Open Knowledge 的;在你將 Open Knowledge 從此專案移除之前,兩者都會一直保留。"+#: src/uninstall/UninstallSurveyScreen.tsxmsgid "It didn't fit into my workflow"msgstr "它不符合我的工作流程"@@ -9005,6 +9034,18 @@ msgstr "Open Knowledge 在包含 Markdown 的每個資料夾中維護一個名msgid "Open Knowledge rewrites these index.md files as documents change, so manual edits to them are replaced."msgstr "當文件變更時,Open Knowledge 會重寫這些 index.md 文件,因此對它們的手動編輯將會被取代。"+#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are available in this thread."+msgstr "此執行緒中已可使用 Open Knowledge 工具。"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: a file Open Knowledge didn't write is already at {bridgePath}."+msgstr "Open Knowledge 工具無法使用:{bridgePath} 已存在一個並非 Open Knowledge 寫入的檔案。"++#: src/components/acp/ThreadView.tsx+msgid "Open Knowledge tools are unavailable: something is already at {bridgePath} but couldn't be read, so Open Knowledge left it alone."+msgstr "Open Knowledge 工具無法使用:{bridgePath} 已有內容,但無法讀取,因此 Open Knowledge 未做更動。"+#. placeholder {0}: item.displayName#. placeholder {1}: item.displayName#. placeholder {2}: item.version@@ -11915,6 +11956,10 @@ msgstr "暫時略過"msgid "Skipped downloading {0}."msgstr "已略過下載 {0}。"+#: src/components/acp/ThreadView.tsx+msgid "Skipped enabling Open Knowledge tools. This thread runs without them."+msgstr "已略過啟用 Open Knowledge 工具。此執行緒將在沒有這些工具的情況下運作。"+#: src/lib/keyboard-shortcuts.tsmsgid "Slash command menu"msgstr "斜線指令選單"@@ -12668,6 +12713,11 @@ msgstr "該文件未能及時開啟。請在同步完成後重試。"msgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "無法使用那個端點。請輸入 https:// 的 URL——http:// 只允許用在 localhost。"+#. placeholder {0}: prompt.agentName+#: src/components/acp/ThreadView.tsx+msgid "That folder already holds code Open Knowledge didn't write, which the same trust would let {0} run: {otherExtensions}."+msgstr "該資料夾中已有並非 Open Knowledge 寫入的程式碼,同一份信任會允許 {0} 執行它們:{otherExtensions}。"+#: src/components/ShareReceiveDialog.tsxmsgid "That folder isn't an OpenKnowledge project yet. Initialize it and open?"msgstr "那個資料夾還不是 OpenKnowledge 專案。要初始化並開啟它嗎?"@@ -12848,6 +12898,10 @@ msgstr "這個儲存庫被移動、重新命名或刪除了。"msgid "The repository's original clone directory"msgstr "儲存庫的原始複製目錄"+#: src/components/acp/ThreadView.tsx+msgid "The request to enable Open Knowledge tools timed out. This thread runs without them."+msgstr "啟用 Open Knowledge 工具的請求已逾時。此執行緒將在沒有這些工具的情況下運作。"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "The schema file does not exist or failed to load — adding a field creates it."msgstr "結構描述檔案不存在或載入失敗——新增欄位就會建立它。"@@ -14412,6 +14466,10 @@ msgstr "寫入項目到"msgid "writing"msgstr "寫作"+#: src/components/acp/ThreadView.tsx+msgid "Wrote the Open Knowledge extension, but couldn't mark the folder trusted, so it won't load. This thread has no Open Knowledge tools."+msgstr "已寫入 Open Knowledge 擴充功能,但無法將該資料夾標記為受信任,因此不會載入。此執行緒沒有 Open Knowledge 工具。"+#: src/components/settings/CustomThemeEditor.tsxmsgid "YAML or JSON, in either base16 layout."msgstr "YAML 或 JSON,兩種 base16 排版都可以。"diff --git a/packages/app/src/server/hocuspocus-plugin.ts b/packages/app/src/server/hocuspocus-plugin.tsindex 43a1b03c8..10179ce8d 100644--- a/packages/app/src/server/hocuspocus-plugin.ts+++ b/packages/app/src/server/hocuspocus-plugin.ts@@ -263,13 +263,15 @@ export function hocuspocusPlugin(): Plugin {const port = typeof addr === 'object' && addr !== null ? addr.port : 5173;return `http://localhost:${port}`;},- // Non-HTTP agents (e.g. Claude's ACP adapter) get a stdio `ok mcp`- // shim pinned to this dev port. Relies on `open-knowledge` being on- // PATH here (no CLI entrypoint to resolve in the Vite dev server).+ // Agents without HTTP-MCP support get a stdio `ok mcp` shim pinned+ // to this dev port. The Vite dev server has no CLI entrypoint to+ // hand over, so this leans on a globally installed+ // `open-knowledge`, which the builder resolves to an absolute path+ // (and warns through this logger when it can't).getMcpStdioCommand: () => {const addr = server.httpServer?.address();const port = typeof addr === 'object' && addr !== null ? addr.port : 5173;- return buildOkMcpStdioCommand(undefined, port);+ return buildOkMcpStdioCommand(undefined, port, { log: getLogger('acp-threads') });},log: getLogger('acp-threads'),});diff --git a/packages/cli/src/commands/acp-harness-probe.ts b/packages/cli/src/commands/acp-harness-probe.tsindex da40009ca..15e66d26c 100644--- a/packages/cli/src/commands/acp-harness-probe.ts+++ b/packages/cli/src/commands/acp-harness-probe.ts@@ -41,6 +41,21 @@ export interface OwnManagedMcpEntryHit {configPath: string;}+/**+ * Per-editor "does this entry run OK's own server" predicate. Two shapes exist+ * because two config notations do: the chain-shape default and OpenCode's+ * single-argv envelope.+ *+ * Pi needs no branch here. Its integration is a whole managed FILE rather than+ * a config entry, and a Pi thread never reaches this probe — the thread manager+ * settles Pi's bridge before it asks whether a harness config already carries+ * OK's server.+ */+function ownServerMatcherFor(editorId: EditorId): (entry: unknown) => boolean {+ if (editorId === 'opencode') return openCodeEntryRunsOwnManagedServer;+ return entryRunsOwnManagedServer;+}+/*** Whether `editorId`'s project-local (probed first) or user-global MCP* config already carries OK's own canonical managed entry. Never throws —@@ -52,8 +67,7 @@ export function probeOwnManagedEditorMcpEntry(home?: string,): OwnManagedMcpEntryHit | null {const target = EDITOR_TARGETS[editorId];- const runsOwnServer =- editorId === 'opencode' ? openCodeEntryRunsOwnManagedServer : entryRunsOwnManagedServer;+ const runsOwnServer = ownServerMatcherFor(editorId);const surfaces: Array<{ scope: 'project' | 'user'; configPath: string }> = [];const projectPath = target.projectConfigPath?.(cwd);if (projectPath !== undefined) surfaces.push({ scope: 'project', configPath: projectPath });diff --git a/packages/cli/src/commands/mcp-config-removal.ts b/packages/cli/src/commands/mcp-config-removal.tsindex a59d3b2d2..dea5585d5 100644--- a/packages/cli/src/commands/mcp-config-removal.ts+++ b/packages/cli/src/commands/mcp-config-removal.ts@@ -32,6 +32,7 @@ import { getTomlConfigEngine } from '../native/toml-config-engine.ts';import { type EditorMcpTarget, isEntryUpToDate, isOwnManagedEntry } from './editors.ts';import { classifyExistingMcpEntry, type McpDeclineReason, serverMapPath } from './init.ts';import { existingFileMode, isCrlfDominant, surgicalJsonDelete } from './jsonc-surgical.ts';+import { type PiTrustRemoveAction, removePiTrustEntry } from './pi-acp-bridge.ts';/*** Outcome of a surgical MCP-entry removal.@@ -48,7 +49,19 @@ import { existingFileMode, isCrlfDominant, surgicalJsonDelete } from './jsonc-su* byte-unchanged.*/export type McpRemoveOutcome =- | { kind: 'removed' }+ | {+ kind: 'removed';+ /**+ * Pi only: what removing the bridge did to Pi's folder-trust entry, the+ * other half OK wrote. Absent for every editor whose integration is a+ * config entry and nothing else. Callers must report anything but+ * `removed`/`not-present` — the bridge file going away while the grant+ * stays is a half-finished removal, and silence there reads as clean.+ */+ trust?: PiTrustRemoveAction;+ /** Diagnostic detail for a trust outcome that failed or was refused. */+ trustError?: string;+ }| { kind: 'not-present' }| { kind: 'left-foreign' }| { kind: 'declined'; reason: McpDeclineReason };@@ -142,7 +155,18 @@ export function removeOwnMcpEntry(// deleted (`left-foreign`).if (target.format === 'file') {rmSync(configPath, { force: true });- return { kind: 'removed' };+ // Provisioning wrote TWO things — the bridge file and a folder-trust entry+ // that lets Pi load it. Removing only the first leaves a standing grant to+ // execute anything dropped into that folder later, which is the more+ // sensitive of the two. Deletion order matters: the file has to be gone+ // before the revocation decides whether the folder still holds someone+ // else's extension.+ const trust = removePiTrustEntry(cwd, home);+ return {+ kind: 'removed',+ trust: trust.action,+ ...(trust.error !== undefined ? { trustError: trust.error } : {}),+ };}if (target.format === 'toml') return removeTomlEntry(configPath, serverName);diff --git a/packages/cli/src/commands/pi-acp-bridge.test.ts b/packages/cli/src/commands/pi-acp-bridge.test.tsnew file mode 100644index 000000000..d2410458b--- /dev/null+++ b/packages/cli/src/commands/pi-acp-bridge.test.ts@@ -0,0 +1,438 @@+import {+ chmodSync,+ mkdirSync,+ mkdtempSync,+ readFileSync,+ rmSync,+ statSync,+ utimesSync,+ writeFileSync,+} from 'node:fs';+import { tmpdir } from 'node:os';+import { dirname, join } from 'node:path';+import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { buildPiExtensionSource, isOwnPiExtensionSource } from '../integrations/pi-extension.ts';+import { PI_EXTENSION_OWNERSHIP_MARKER } from './editors.ts';+import { ensurePiBridge, probePiBridgeState, removePiTrustEntry } from './pi-acp-bridge.ts';++let dirs: string[] = [];+function tmp(): string {+ const d = mkdtempSync(join(tmpdir(), 'pi-acp-bridge-'));+ dirs.push(d);+ return d;+}+afterEach(() => {+ for (const d of dirs) rmSync(d, { recursive: true, force: true });+ dirs = [];+});++const bridgePathIn = (cwd: string) => join(cwd, '.pi', 'extensions', 'open-knowledge.ts');+const trustPathIn = (home: string) => join(home, '.pi', 'agent', 'trust.json');++function write(path: string, text: string): void {+ mkdirSync(dirname(path), { recursive: true });+ writeFileSync(path, text, 'utf-8');+}++/**+ * Dev-mode sources resolve the local dist launcher from `argv[1]`, which under+ * the test runner points at its own worker. Stub a CLI-shaped path so repo-root+ * inference succeeds (same shim the pi-extension suite uses).+ */+/**+ * Awaits the callback before restoring argv — an async body would otherwise+ * see the restored value the moment it hit its first await.+ */+async function withDevArgv<T>(fn: () => Promise<T>): Promise<T> {+ const original = process.argv[1];+ process.argv[1] = '/repo/packages/cli/src/cli.ts';+ try {+ return await fn();+ } finally {+ process.argv[1] = original;+ }+}++/** Freeze both artifacts' mtimes so a "no write happened" claim is checkable. */+function freezeMtime(path: string): number {+ const stamp = new Date(Date.now() - 60_000);+ utimesSync(path, stamp, stamp);+ return statSync(path).mtimeMs;+}++describe('probePiBridgeState', () => {+ test('reports absent bridge + untrusted folder when nothing exists', async () => {+ const cwd = tmp();+ const home = tmp();+ expect(probePiBridgeState(cwd, home)).toEqual({+ cwd,+ otherExtensions: [],+ bridgePath: bridgePathIn(cwd),+ trustPath: trustPathIn(home),+ bridge: 'absent',+ trust: 'untrusted',+ bridgeLoadable: false,+ });+ });++ test('normalizes the cwd it reports and keys trust on', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }));+ const state = probePiBridgeState(`${cwd}/./`, home);+ expect(state.cwd).toBe(cwd);+ expect(state.trust).toBe('trusted');+ });++ test('classifies an own current bridge, trusted', async () => {+ const cwd = tmp();+ const home = tmp();+ write(bridgePathIn(cwd), buildPiExtensionSource({ mode: 'published' }));+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }, null, 2));+ const state = probePiBridgeState(cwd, home);+ expect(state.bridge).toBe('own-current');+ expect(state.trust).toBe('trusted');+ expect(state.bridgeLoadable).toBe(true);+ });++ test('a dev-mode drop and an older version are both own-stale, still loadable', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }));++ await withDevArgv(async () =>+ write(bridgePathIn(cwd), buildPiExtensionSource({ mode: 'dev' })),+ );+ expect(probePiBridgeState(cwd, home)).toMatchObject({+ bridge: 'own-stale',+ bridgeLoadable: true,+ });++ write(bridgePathIn(cwd), `${PI_EXTENSION_OWNERSHIP_MARKER}-v0\n// legacy body\n`);+ expect(probePiBridgeState(cwd, home)).toMatchObject({+ bridge: 'own-stale',+ bridgeLoadable: true,+ });+ });++ test('a file OK did not write is foreign and never loadable', async () => {+ const cwd = tmp();+ const home = tmp();+ write(bridgePathIn(cwd), 'export default function mine() {}\n');+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }));+ const state = probePiBridgeState(cwd, home);+ expect(state.bridge).toBe('foreign');+ expect(state.bridgeLoadable).toBe(false);+ });++ test('a blank file at the managed path is creatable, not foreign', async () => {+ const cwd = tmp();+ const home = tmp();+ write(bridgePathIn(cwd), ' \n');+ expect(probePiBridgeState(cwd, home).bridge).toBe('absent');+ });++ test('trust states: missing entry, explicit false, corrupt, non-object', async () => {+ const cwd = tmp();+ const home = tmp();++ write(trustPathIn(home), JSON.stringify({ '/somewhere/else': true }));+ expect(probePiBridgeState(cwd, home).trust).toBe('untrusted');++ write(trustPathIn(home), JSON.stringify({ [cwd]: false }));+ expect(probePiBridgeState(cwd, home).trust).toBe('untrusted');++ write(trustPathIn(home), '{not json');+ expect(probePiBridgeState(cwd, home).trust).toBe('unreadable');++ write(trustPathIn(home), JSON.stringify([cwd]));+ expect(probePiBridgeState(cwd, home).trust).toBe('unreadable');++ write(trustPathIn(home), '');+ expect(probePiBridgeState(cwd, home).trust).toBe('untrusted');+ });++ describe('with PI_CODING_AGENT_DIR set on the machine', () => {+ const previous = process.env.PI_CODING_AGENT_DIR;+ beforeEach(() => {+ process.env.PI_CODING_AGENT_DIR = '/nonexistent/pi-agent-dir';+ });+ afterEach(() => {+ if (previous === undefined) delete process.env.PI_CODING_AGENT_DIR;+ else process.env.PI_CODING_AGENT_DIR = previous;+ });++ test('an injected home wins, so probes stay hermetic', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }));+ const state = probePiBridgeState(cwd, home);+ expect(state.trustPath).toBe(trustPathIn(home));+ expect(state.trust).toBe('trusted');+ });++ test('without an injected home the env override is honored', async () => {+ const cwd = tmp();+ expect(probePiBridgeState(cwd).trustPath).toBe('/nonexistent/pi-agent-dir/trust.json');+ });+ });+});++describe('ensurePiBridge', () => {+ test('provisions both halves from nothing', async () => {+ const cwd = tmp();+ const home = tmp();+ const result = await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(result).toEqual({+ ok: true,+ cwd,+ bridgePath: bridgePathIn(cwd),+ trustPath: trustPathIn(home),+ bridge: 'written',+ trust: 'added',+ });+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(+ buildPiExtensionSource({ mode: 'published' }),+ );+ expect(JSON.parse(readFileSync(trustPathIn(home), 'utf-8'))).toEqual({ [cwd]: true });+ expect(probePiBridgeState(cwd, home).bridgeLoadable).toBe(true);+ });++ test('defaults to the published shape `ok init` writes', async () => {+ const cwd = tmp();+ const home = tmp();+ expect((await ensurePiBridge(cwd, undefined, home)).ok).toBe(true);+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(+ buildPiExtensionSource({ mode: 'published' }),+ );+ });++ test('dev mode drops the dev launcher shape', async () => {+ const cwd = tmp();+ const home = tmp();+ await withDevArgv(async () => {+ expect((await ensurePiBridge(cwd, { mode: 'dev' }, home)).bridge).toBe('written');+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(+ buildPiExtensionSource({ mode: 'dev' }),+ );+ });+ });++ test('an unbuildable dev source fails structurally instead of throwing', async () => {+ const cwd = tmp();+ const home = tmp();+ write(bridgePathIn(cwd), buildPiExtensionSource({ mode: 'published' }));+ // No argv shim: the dev launcher path cannot be inferred under the test+ // runner, and this surface must report rather than throw at its caller.+ expect(await ensurePiBridge(cwd, { mode: 'dev' }, home)).toMatchObject({+ ok: false,+ bridge: 'failed',+ trust: 'skipped',+ });+ expect(() => statSync(trustPathIn(home))).toThrow();+ });++ test('is idempotent: a second call touches neither file', async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ const bridgeMtime = freezeMtime(bridgePathIn(cwd));+ const trustMtime = freezeMtime(trustPathIn(home));++ const second = await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(second).toMatchObject({ ok: true, bridge: 'unchanged', trust: 'already-trusted' });+ expect(statSync(bridgePathIn(cwd)).mtimeMs).toBe(bridgeMtime);+ expect(statSync(trustPathIn(home)).mtimeMs).toBe(trustMtime);+ });++ test('refreshes an own stale bridge, including a mode flip', async () => {+ const cwd = tmp();+ const home = tmp();+ write(bridgePathIn(cwd), `${PI_EXTENSION_OWNERSHIP_MARKER}-v0\n// legacy body\n`);+ expect((await ensurePiBridge(cwd, { mode: 'published' }, home)).bridge).toBe('refreshed');+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(+ buildPiExtensionSource({ mode: 'published' }),+ );++ // A byte-current PUBLISHED file is stale for a dev install and vice versa:+ // the version sentinel alone cannot answer "already correct".+ await withDevArgv(async () => {+ expect((await ensurePiBridge(cwd, { mode: 'dev' }, home)).bridge).toBe('refreshed');+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(+ buildPiExtensionSource({ mode: 'dev' }),+ );+ });+ });++ test('refuses a foreign file and never flips the folder-trust gate', async () => {+ const cwd = tmp();+ const home = tmp();+ const foreign = 'export default function mine() {}\n';+ write(bridgePathIn(cwd), foreign);++ const result = await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(result).toEqual({+ ok: false,+ cwd,+ bridgePath: bridgePathIn(cwd),+ trustPath: trustPathIn(home),+ bridge: 'refused-foreign',+ trust: 'skipped',+ });+ expect(readFileSync(bridgePathIn(cwd), 'utf-8')).toBe(foreign);+ expect(() => statSync(trustPathIn(home))).toThrow();+ });++ test('preserves existing trust entries, their order, and the trailing-newline shape', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), `${JSON.stringify({ '/z/last': true, '/a/first': true }, null, 2)}\n`);++ expect((await ensurePiBridge(cwd, { mode: 'published' }, home)).trust).toBe('added');+ const raw = readFileSync(trustPathIn(home), 'utf-8');+ expect(raw.endsWith('\n')).toBe(true);+ expect(Object.keys(JSON.parse(raw))).toEqual(['/z/last', '/a/first', cwd]);+ });++ test("matches pi's own no-trailing-newline serialization when creating the store", async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(readFileSync(trustPathIn(home), 'utf-8')).toBe(JSON.stringify({ [cwd]: true }, null, 2));+ });++ test('flips an explicit false entry to true in place', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), JSON.stringify({ [cwd]: false, '/other': true }, null, 2));+ expect((await ensurePiBridge(cwd, { mode: 'published' }, home)).trust).toBe('added');+ const parsed = JSON.parse(readFileSync(trustPathIn(home), 'utf-8'));+ expect(parsed).toEqual({ [cwd]: true, '/other': true });+ expect(Object.keys(parsed)).toEqual([cwd, '/other']);+ });++ test('leaves a corrupt trust store byte-untouched and reports it', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), '{not json');++ const result = await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(result).toMatchObject({+ ok: false,+ bridge: 'written',+ trust: 'refused-unreadable',+ });+ expect(result.error).toBeTruthy();+ expect(readFileSync(trustPathIn(home), 'utf-8')).toBe('{not json');+ // The bridge half still landed — the caller can report a partial result.+ expect(isOwnPiExtensionSource(readFileSync(bridgePathIn(cwd), 'utf-8'))).toBe(true);+ });++ test('an already-trusted folder with no bridge writes only the bridge', async () => {+ const cwd = tmp();+ const home = tmp();+ write(trustPathIn(home), JSON.stringify({ [cwd]: true }, null, 2));+ const trustMtime = freezeMtime(trustPathIn(home));++ expect(await ensurePiBridge(cwd, { mode: 'published' }, home)).toMatchObject({+ ok: true,+ bridge: 'written',+ trust: 'already-trusted',+ });+ expect(statSync(trustPathIn(home)).mtimeMs).toBe(trustMtime);+ });+});++/**+ * Trust is folder-scoped: one entry authorizes every extension in+ * `<cwd>/.pi/extensions`, so both halves of its lifecycle have to reckon with+ * what else lives there.+ */+describe('folder-scoped trust', () => {+ test('the probe names the other extensions the trust grant would cover', async () => {+ const cwd = tmp();+ const home = tmp();+ mkdirSync(dirname(bridgePathIn(cwd)), { recursive: true });+ write(join(dirname(bridgePathIn(cwd)), 'zeta.ts'), '// someone else');+ write(join(dirname(bridgePathIn(cwd)), 'alpha.ts'), '// someone else');+ // Not an extension Pi would load, so not something to warn about.+ write(join(dirname(bridgePathIn(cwd)), 'notes.md'), 'hi');+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ // Sorted, and OK's own managed file is never listed as somebody else's.+ expect(probePiBridgeState(cwd, home).otherExtensions).toEqual(['alpha.ts', 'zeta.ts']);+ });++ test('removing the bridge revokes the trust entry it added', async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ expect(probePiBridgeState(cwd, home).trust).toBe('trusted');+ rmSync(bridgePathIn(cwd), { force: true });+ expect(removePiTrustEntry(cwd, home).action).toBe('removed');+ expect(probePiBridgeState(cwd, home).trust).toBe('untrusted');+ });++ test('an entry another extension still depends on is kept', async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ write(join(dirname(bridgePathIn(cwd)), 'theirs.ts'), '// someone else');+ rmSync(bridgePathIn(cwd), { force: true });+ // Revoking here would silently stop Pi loading a file OK never wrote.+ expect(removePiTrustEntry(cwd, home).action).toBe('kept-shared');+ expect(probePiBridgeState(cwd, home).trust).toBe('trusted');+ });++ test('an unreadable extensions folder is kept, not treated as verified empty', async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ const extDir = dirname(bridgePathIn(cwd));+ rmSync(bridgePathIn(cwd), { force: true });+ chmodSync(extDir, 0o000);+ try {+ // An inconclusive check must not license a revocation — something we+ // can't see could still depend on the grant.+ expect(removePiTrustEntry(cwd, home).action).toBe('kept-unverified');+ expect(probePiBridgeState(cwd, home).trust).toBe('trusted');+ } finally {+ chmodSync(extDir, 0o755);+ }+ });++ test('a folder that is simply gone counts as verified empty', async () => {+ const cwd = tmp();+ const home = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ // Nothing left there to depend on the grant, so revoking is safe.+ rmSync(dirname(bridgePathIn(cwd)), { recursive: true, force: true });+ expect(removePiTrustEntry(cwd, home).action).toBe('removed');+ });++ test('revoking a folder that was never trusted is a no-op, not a failure', async () => {+ const cwd = tmp();+ const home = tmp();+ expect(removePiTrustEntry(cwd, home).action).toBe('not-present');+ });++ test('a trust store OK cannot parse is left byte-untouched', async () => {+ const cwd = tmp();+ const home = tmp();+ const trustPath = trustPathIn(home);+ mkdirSync(dirname(trustPath), { recursive: true });+ write(trustPath, 'not json at all');+ expect(removePiTrustEntry(cwd, home).action).toBe('refused-unreadable');+ expect(readFileSync(trustPath, 'utf-8')).toBe('not json at all');+ });++ test('every other entry in the store survives the revocation', async () => {+ const cwd = tmp();+ const home = tmp();+ const other = tmp();+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ await ensurePiBridge(other, { mode: 'published' }, home);+ rmSync(bridgePathIn(cwd), { force: true });+ expect(removePiTrustEntry(cwd, home).action).toBe('removed');+ expect(probePiBridgeState(other, home).trust).toBe('trusted');+ });+});diff --git a/packages/cli/src/commands/pi-acp-bridge.ts b/packages/cli/src/commands/pi-acp-bridge.tsnew file mode 100644index 000000000..afc35baf9--- /dev/null+++ b/packages/cli/src/commands/pi-acp-bridge.ts@@ -0,0 +1,460 @@+/**+ * Pi ACP-thread bridge primitives — probe + provision the two machine-local+ * facts a Pi agent needs before it can see Open Knowledge's tools.+ *+ * Pi has no MCP client at all: the ACP adapter accepts an `mcpServers` array+ * and silently drops it, so an OK thread against Pi is toolless unless OK's+ * bridge extension is on disk. Pi loads project extensions from+ * `<cwd>/.pi/extensions/*.ts` ONLY when the cwd is trusted — `~/.pi/agent/+ * trust.json` is a flat `path -> true` map, and trust is FOLDER-scoped: one+ * entry enables every extension in that folder, not just OK's. Both halves are+ * required; either alone leaves the thread without tools.+ *+ * Two functions, deliberately split: {@link probePiBridgeState} is a pure read+ * (safe to call before asking the user for anything) and+ * {@link ensurePiBridge} is the write half. Both are structured-result-only —+ * neither throws, including on a corrupt or unreadable `trust.json`, because+ * the caller is a thread-launch path that must stay alive and report rather+ * than abort the thread.+ *+ * Write posture mirrors OK's guest-in-someone-else's-config discipline: the+ * bridge file is written through the same production writer `ok init` uses+ * (`writeEditorMcpConfig` at project scope — advisory lock, atomic write,+ * byte-equality skip), a foreign or unreadable file at OK's managed path is+ * REFUSED rather than overwritten, and the trust write is skipped entirely+ * unless the bridge is OK's own — flipping Pi's folder-trust gate for a+ * folder whose `.pi/extensions` contents we did not verify or write would+ * enable code we never inspected.+ */+import { existsSync, mkdirSync, readdirSync, readFileSync } from 'node:fs';+import { basename, dirname, join, resolve } from 'node:path';+import type {+ PiBridgeWriteAction,+ PiTrustWriteAction,+} from '@inkeep/open-knowledge-core/acp/thread-protocol';+import {+ atomicWriteFileSync,+ withFileLock,+ withFileLockSync,+} from '@inkeep/open-knowledge-core/server';+import { buildPiExtensionSource, isOwnPiManagedFileEntry } from '../integrations/pi-extension.ts';+import { isObject } from '../utils/is-object.ts';+import {+ EDITOR_TARGETS,+ isEntryUpToDate,+ type McpInstallOptions,+ resolvePiAgentDirPath,+} from './editors.ts';+import { classifyExistingMcpEntry, writeEditorMcpConfig } from './init.ts';+import { existingFileMode } from './jsonc-surgical.ts';++/** Filename of Pi's folder-trust store inside its agent home. */+const PI_TRUST_FILENAME = 'trust.json';++/**+ * State of the managed bridge file at `<cwd>/.pi/extensions/open-knowledge.ts`.+ *+ * `own-stale` covers both an older published version and a dev-mode drop —+ * everything OK recognizes as its own but would rewrite. `foreign` is a file+ * OK did not write; `unreadable` is a present file OK could not inspect+ * (oversize, unreadable bytes). Both are refusal states, never overwrite+ * targets.+ */+export type PiBridgeFileState = 'absent' | 'own-current' | 'own-stale' | 'foreign' | 'unreadable';++/**+ * Whether Pi will load project extensions for this cwd. `unreadable` means+ * `trust.json` exists but is corrupt or not a JSON object — OK can neither+ * confirm trust nor safely rewrite the file.+ */+export type PiTrustState = 'trusted' | 'untrusted' | 'unreadable';++export interface PiBridgeState {+ /** Absolute, normalized cwd — the exact key used in Pi's trust store. */+ cwd: string;+ /** Absolute path of OK's managed Pi bridge extension for this project. */+ bridgePath: string;+ /** Absolute path of Pi's folder-trust store. */+ trustPath: string;+ bridge: PiBridgeFileState;+ trust: PiTrustState;+ /**+ * True when Pi would load OK's bridge for this cwd as things stand: an+ * own-* bridge file (a stale one still registers OK's tools) in a trusted+ * folder. Deliberately narrower than "nothing to do" — a stale bridge is+ * loadable AND worth refreshing.+ */+ bridgeLoadable: boolean;+ /**+ * Extension filenames already in `<cwd>/.pi/extensions/` that OK did not+ * write, so a consent prompt can name what else trusting this folder turns+ * on. Trust is folder-scoped, and "approve" reads very differently against+ * an empty folder than against one already holding somebody else's code.+ * Empty when the folder is absent or unreadable — absence of evidence, so+ * callers must not present it as "nothing else here".+ */+ otherExtensions: readonly string[];+}++/**+ * What {@link ensurePiBridge} did to each half. Re-exported from core rather+ * than redeclared: these travel to the client on the thread wire, so core owns+ * them and a member added there has to reach this surface, not be silently+ * absorbed by a structurally-identical local copy.+ */+export type { PiBridgeWriteAction, PiTrustWriteAction };++/**+ * What {@link removePiTrustEntry} did. `kept-shared` is the deliberate no-op:+ * another extension still lives in the folder, and the trust entry that keeps+ * it loading is not OK's to revoke on the way out.+ */+export type PiTrustRemoveAction =+ | 'removed'+ | 'not-present'+ | 'kept-shared'+ /**+ * Kept because OK could not read the extensions folder to find out whether+ * anything else depends on the grant. Distinct from `kept-shared`: that one+ * is a verified "yes, something needs it", this one is "unknown" — and an+ * inconclusive check has to take the conservative branch.+ */+ | 'kept-unverified'+ | 'refused-unreadable'+ | 'failed';++export interface EnsurePiBridgeResult {+ /** True only when BOTH halves hold: bridge is OK's own and cwd is trusted. */+ ok: boolean;+ cwd: string;+ bridgePath: string;+ trustPath: string;+ bridge: PiBridgeWriteAction;+ trust: PiTrustWriteAction;+ /** Present on the `failed` and `refused-unreadable` outcomes only. */+ error?: string;+}++/** Resolve the pair of paths both halves key off, from one normalized cwd. */+function resolvePiPaths(+ cwd: string,+ home?: string,+): {+ cwd: string;+ bridgePath: string;+ trustPath: string;+} {+ const normalizedCwd = resolve(cwd);+ // An injected `home` must win over `PI_CODING_AGENT_DIR`: the resolver+ // prefers that env var, so a machine that sets it would silently redirect a+ // home-scoped caller (tests, a sandboxed probe) onto the real agent dir.+ // Production callers pass no `home`, so the env override stays honored.+ const agentDir =+ home === undefined ? resolvePiAgentDirPath() : resolvePiAgentDirPath({ home, env: {} });+ return {+ cwd: normalizedCwd,+ // Pi's registry entry always declares a project path — the bridge file IS+ // its project config — so the fallback is unreachable; reading the path+ // from the registry keeps a future relocation in one place.+ bridgePath: EDITOR_TARGETS.pi.projectConfigPath?.(normalizedCwd) ?? '',+ trustPath: join(agentDir, PI_TRUST_FILENAME),+ };+}++/**+ * Classify the bridge file through the same classifier the repair/reclaim+ * sweeps use, so a blank file reads as creatable (`absent`) and an+ * oversize/unreadable one reads as a refusal rather than as foreign bytes.+ * Returns the raw source alongside, which the ensure path diffs against the+ * freshly built source to tell "already byte-current" from "needs a refresh".+ */+function classifyPiBridgeFile(+ cwd: string,+ bridgePath: string,+ home: string | undefined,+): { state: PiBridgeFileState; text: string | null } {+ const classified = classifyExistingMcpEntry(EDITOR_TARGETS.pi, cwd, home, bridgePath);+ if (classified.kind === 'absent') return { state: 'absent', text: null };+ if (classified.kind !== 'present') return { state: 'unreadable', text: null };+ const entry = classified.entry;+ const text =+ Array.isArray(entry.args) && typeof entry.args[0] === 'string' ? entry.args[0] : null;+ if (isEntryUpToDate(entry)) return { state: 'own-current', text };+ if (isOwnPiManagedFileEntry(entry)) return { state: 'own-stale', text };+ return { state: 'foreign', text };+}++/**+ * Read Pi's trust store. An absent or blank file is `untrusted` with an empty+ * map (safe to create into); a present file OK cannot parse into a JSON object+ * is `unreadable` with no map, which stops the write path.+ */+function readPiTrust(+ trustPath: string,+ cwd: string,+): { state: PiTrustState; entries: Record<string, unknown> | null; trailingNewline: boolean } {+ let raw: string;+ try {+ raw = readFileSync(trustPath, 'utf-8');+ } catch (err) {+ const code = (err as NodeJS.ErrnoException).code;+ if (code === 'ENOENT' || code === 'ENOTDIR') {+ return { state: 'untrusted', entries: {}, trailingNewline: false };+ }+ return { state: 'unreadable', entries: null, trailingNewline: false };+ }+ if (raw.trim() === '') return { state: 'untrusted', entries: {}, trailingNewline: false };+ let parsed: unknown;+ try {+ parsed = JSON.parse(raw);+ } catch {+ return { state: 'unreadable', entries: null, trailingNewline: false };+ }+ if (!isObject(parsed)) return { state: 'unreadable', entries: null, trailingNewline: false };+ return {+ state: parsed[cwd] === true ? 'trusted' : 'untrusted',+ entries: parsed,+ trailingNewline: raw.endsWith('\n'),+ };+}++/**+ * Read-only report of both halves of the Pi bridge for `cwd`. Never throws;+ * every unreadable surface resolves to its own state so a caller can tell+ * "not provisioned" from "cannot inspect".+ *+ * `home` overrides the user home used to locate Pi's agent dir (test hook).+ */+export function probePiBridgeState(cwd: string, home?: string): PiBridgeState {+ const paths = resolvePiPaths(cwd, home);+ const bridge = classifyPiBridgeFile(paths.cwd, paths.bridgePath, home).state;+ const trust = readPiTrust(paths.trustPath, paths.cwd).state;+ return {+ ...paths,+ bridge,+ trust,+ bridgeLoadable: (bridge === 'own-current' || bridge === 'own-stale') && trust === 'trusted',+ otherExtensions: listOtherPiExtensions(paths.bridgePath).names,+ };+}++/**+ * Extension files beside OK's managed one — sorted, so the same folder always+ * reads back the same way. Pi loads `.ts` modules from this directory.+ *+ * `verified` separates "there are none" from "OK could not look", which an+ * empty list alone cannot: one caller merely displays the names, but the other+ * gates a revocation on them, and a directory OK cannot read must not be+ * mistaken for one it read and found empty. A directory that does not exist IS+ * verified empty — there is nothing there to depend on the trust grant.+ */+function listOtherPiExtensions(bridgePath: string): {+ names: readonly string[];+ verified: boolean;+} {+ const dir = dirname(bridgePath);+ const own = basename(bridgePath);+ try {+ return {+ names: readdirSync(dir)+ .filter((name) => name !== own && name.endsWith('.ts'))+ .sort(),+ verified: true,+ };+ } catch (err) {+ const code = (err as NodeJS.ErrnoException).code;+ return { names: [], verified: code === 'ENOENT' || code === 'ENOTDIR' };+ }+}++/**+ * Idempotently provision both halves: drop (or refresh) OK's managed bridge+ * extension for `cwd`, then add `cwd -> true` to Pi's trust store.+ *+ * Ordering is load-bearing — the trust write only runs once the bridge file is+ * OK's own, because trusting the folder enables EVERY extension in it. A+ * foreign or unreadable file at the managed path stops the whole call with a+ * structured refusal; it is never overwritten.+ *+ * `options` defaults to the published launcher shape that `ok init` writes;+ * pass `{ mode: 'dev' }` to match a dev-server install. The generated source+ * is byte-deterministic per `options`, so a re-run with the same value is a+ * no-op on disk.+ */+export async function ensurePiBridge(+ cwd: string,+ options: McpInstallOptions = { mode: 'published' },+ home?: string,+): Promise<EnsurePiBridgeResult> {+ const base = resolvePiPaths(cwd, home);+ const existing = classifyPiBridgeFile(base.cwd, base.bridgePath, home);++ if (existing.state === 'foreign') {+ return { ...base, ok: false, bridge: 'refused-foreign', trust: 'skipped' };+ }+ if (existing.state === 'unreadable') {+ return { ...base, ok: false, bridge: 'refused-unreadable', trust: 'skipped' };+ }++ let bridge: PiBridgeWriteAction;+ if (existing.state === 'absent') {+ bridge = 'written';+ } else {+ // Own file: the version sentinel alone can't answer "already correct" —+ // a current published drop is stale against `{ mode: 'dev' }` and vice+ // versa — so diff against the bytes the writer would produce. The builder+ // throws for a dev install whose launcher path can't be inferred; fall+ // through to the writer, which turns that same throw into a structured+ // failure instead of one escaping this never-throws surface.+ let desired: string | undefined;+ try {+ desired = buildPiExtensionSource(options);+ } catch {+ desired = undefined;+ }+ bridge = desired !== undefined && existing.text === desired ? 'unchanged' : 'refreshed';+ }++ if (bridge !== 'unchanged') {+ const result = writeEditorMcpConfig(+ EDITOR_TARGETS.pi,+ base.cwd,+ options,+ home,+ base.bridgePath,+ );+ if (result.action !== 'written' && result.action !== 'overwritten') {+ return {+ ...base,+ ok: false,+ bridge: 'failed',+ trust: 'skipped',+ error: result.error ?? `bridge write ${result.action}`,+ };+ }+ }++ const trust = await addPiTrustEntry(base.trustPath, base.cwd);+ return {+ ...base,+ ok: trust.action === 'already-trusted' || trust.action === 'added',+ bridge,+ trust: trust.action,+ ...(trust.error !== undefined ? { error: trust.error } : {}),+ };+}++/**+ * Add `cwd -> true` to Pi's flat trust map, preserving every existing entry,+ * the file's key order, its trailing-newline convention, and its mode. Creates+ * the file and its parent dirs when absent. A file OK cannot parse is left+ * byte-untouched: Pi's own security store is not ours to reset.+ *+ * Re-reads under the advisory lock — Pi itself (or a second OK process) may+ * have written between the probe and the write.+ *+ * Async on purpose: the ACP thread manager calls this from the long-running+ * collaboration server, and the sync lock's contention path BUSY-WAITS, which+ * would stall the event loop for every connected client, not just the thread+ * doing the approving. The await-able lock has identical semantics and sleeps+ * instead. {@link removePiTrustEntry} keeps the sync one — its callers are+ * short-lived CLI invocations with nothing else on the loop.+ */+async function addPiTrustEntry(+ trustPath: string,+ cwd: string,+): Promise<{ action: PiTrustWriteAction; error?: string }> {+ try {+ mkdirSync(dirname(trustPath), { recursive: true });+ } catch (err) {+ return { action: 'failed', error: err instanceof Error ? err.message : String(err) };+ }+ const captured: { action: PiTrustWriteAction } = { action: 'added' };+ try {+ await withFileLock(`${trustPath}.lock`, async () => {+ const current = readPiTrust(trustPath, cwd);+ if (current.state === 'trusted') {+ captured.action = 'already-trusted';+ return;+ }+ if (current.entries === null) {+ captured.action = 'refused-unreadable';+ return;+ }+ // Spread-then-set keeps an existing key in its original position (a+ // `false` entry flips in place) and appends a new one at the end; Pi+ // reads the map by key, not by order.+ const next = { ...current.entries, [cwd]: true };+ const serialized = JSON.stringify(next, null, 2) + (current.trailingNewline ? '\n' : '');+ const mode = existingFileMode(trustPath);+ atomicWriteFileSync(trustPath, serialized, mode !== undefined ? { mode } : undefined);+ captured.action = 'added';+ });+ } catch (err) {+ return { action: 'failed', error: err instanceof Error ? err.message : String(err) };+ }+ return captured.action === 'refused-unreadable'+ ? { action: 'refused-unreadable', error: 'trust store is not a readable JSON object' }+ : { action: captured.action };+}++/**+ * Drop `cwd` from Pi's trust map — the revocation half of+ * {@link ensurePiBridge}, run when OK's managed bridge is removed+ * (`ok deinit` / `ok uninstall`).+ *+ * Removal is CONDITIONAL on the folder holding no other extension: the trust+ * entry is folder-scoped, so if somebody else's extension is still there,+ * revoking would silently break it. In that case the entry stays and the+ * outcome says so — as it does when the folder could not be read at all, since+ * an inconclusive check is not a licence to revoke.+ *+ * Known limitation: OK never persisted who added the entry, so a folder the+ * user trusted themselves before OK ever wrote one is indistinguishable from+ * one OK added — and OK's removal takes it away. The narrow condition above+ * keeps the blast radius to "a folder whose only extension was OK's".+ *+ * Sync, unlike the add half: every caller is a short-lived CLI invocation with+ * nothing else on the event loop. Never throws; a trust store OK cannot parse+ * is left byte-untouched.+ */+export function removePiTrustEntry(+ cwd: string,+ home?: string,+): { action: PiTrustRemoveAction; error?: string } {+ const base = resolvePiPaths(cwd, home);+ const others = listOtherPiExtensions(base.bridgePath);+ if (!others.verified) {+ return { action: 'kept-unverified', error: 'could not read the Pi extensions folder' };+ }+ if (others.names.length > 0) return { action: 'kept-shared' };+ // Nothing to remove and no lock to take. The add half creates the parent dir+ // on its way to writing; removal must not, or the "there was never a store"+ // case fails on a lock file it had no business creating.+ if (!existsSync(base.trustPath)) return { action: 'not-present' };+ const captured: { action: PiTrustRemoveAction } = { action: 'removed' };+ try {+ withFileLockSync(`${base.trustPath}.lock`, () => {+ const current = readPiTrust(base.trustPath, base.cwd);+ if (current.entries === null) {+ captured.action = current.state === 'unreadable' ? 'refused-unreadable' : 'not-present';+ return;+ }+ if (!(base.cwd in current.entries)) {+ captured.action = 'not-present';+ return;+ }+ const next = { ...current.entries };+ delete next[base.cwd];+ const serialized = JSON.stringify(next, null, 2) + (current.trailingNewline ? '\n' : '');+ const mode = existingFileMode(base.trustPath);+ atomicWriteFileSync(base.trustPath, serialized, mode !== undefined ? { mode } : undefined);+ captured.action = 'removed';+ });+ } catch (err) {+ return { action: 'failed', error: err instanceof Error ? err.message : String(err) };+ }+ return captured.action === 'refused-unreadable'+ ? { action: 'refused-unreadable', error: 'trust store is not a readable JSON object' }+ : { action: captured.action };+}diff --git a/packages/cli/src/commands/removal-plan.test.ts b/packages/cli/src/commands/removal-plan.test.tsindex 92a6310fb..f87866812 100644--- a/packages/cli/src/commands/removal-plan.test.ts+++ b/packages/cli/src/commands/removal-plan.test.ts@@ -16,6 +16,7 @@ import { describe, expect, test } from 'vitest';import { DESKTOP_UPDATER_CACHE_DIR_NAME } from '../integrations/desktop-state.ts';import { readPathInstallMarker } from '../integrations/path-shim.ts';import { buildManagedServerEntry } from './editors.ts';+import { ensurePiBridge, probePiBridgeState } from './pi-acp-bridge.ts';import {applicationDataOps,buildUninstallPlan,@@ -24,7 +25,12 @@ import {runRemoval,type UninstallPlanInput,} from './removal-plan.ts';-import { formatRemovalPlan, removalPlanToJson } from './removal-render.ts';+import {+ formatRemovalOutcome,+ formatRemovalPlan,+ removalOutcomeToJson,+ removalPlanToJson,+} from './removal-render.ts';const OWN_ENTRY = buildManagedServerEntry({ mode: 'published' });@@ -566,3 +572,77 @@ describe('deinitOps', () => {}});});++/**+ * Pi's integration is two artifacts: the managed bridge file AND a folder-wide+ * trust grant that lets Pi auto-load anything in that directory. Removing the+ * first while the second stays is a half-finished removal, so what happened to+ * the trust entry has to reach the user rather than hide under "✓ Removed".+ */+describe('pi trust revocation surfaces through the removal plan', () => {+ function piOp(cwd: string, home: string) {+ return {+ kind: 'mcp-entry' as const,+ group: 'Editor integrations',+ label: "Remove OK's Pi bridge",+ editorId: 'pi' as const,+ scope: 'project' as const,+ cwd,+ home,+ configPath: join(cwd, '.pi', 'extensions', 'open-knowledge.ts'),+ };+ }++ test('a revoked trust entry reports plain removal', async () => {+ const cwd = mkdtempSync(join(tmpdir(), 'ok-pi-removal-'));+ const home = mkdtempSync(join(tmpdir(), 'ok-pi-removal-home-'));+ try {+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ const { results } = await runRemoval({ ops: [piOp(cwd, home)] }, stubDeps());+ expect(results[0]).toMatchObject({ status: 'removed' });+ expect(results[0]?.detail).toBeUndefined();+ expect(probePiBridgeState(cwd, home).trust).toBe('untrusted');+ } finally {+ rmSync(cwd, { recursive: true, force: true });+ rmSync(home, { recursive: true, force: true });+ }+ });++ test('a trust entry kept for another extension says so instead of claiming a clean sweep', async () => {+ const cwd = mkdtempSync(join(tmpdir(), 'ok-pi-removal-'));+ const home = mkdtempSync(join(tmpdir(), 'ok-pi-removal-home-'));+ try {+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ write(join(cwd, '.pi', 'extensions', 'theirs.ts'), '// someone else\n');+ const outcome = await runRemoval({ ops: [piOp(cwd, home)] }, stubDeps());+ expect(outcome.results[0]?.status).toBe('removed');+ expect(outcome.results[0]?.detail).toContain('folder trust');+ // …and the grant really is still there, which is why it had to be said.+ expect(probePiBridgeState(cwd, home).trust).toBe('trusted');+ // The user has to actually SEE it — a detail nobody renders is the same+ // silence this whole branch exists to break.+ expect(formatRemovalOutcome(outcome)).toContain('folder trust');+ const json = removalOutcomeToJson('deinit', outcome);+ expect(json.mode === 'applied' && json.removed[0]?.detail).toContain('folder trust');+ } finally {+ rmSync(cwd, { recursive: true, force: true });+ rmSync(home, { recursive: true, force: true });+ }+ });++ test('a trust store OK cannot parse fails the op rather than reporting success', async () => {+ const cwd = mkdtempSync(join(tmpdir(), 'ok-pi-removal-'));+ const home = mkdtempSync(join(tmpdir(), 'ok-pi-removal-home-'));+ try {+ await ensurePiBridge(cwd, { mode: 'published' }, home);+ write(join(home, '.pi', 'agent', 'trust.json'), 'not json at all');+ const { results, failed } = await runRemoval({ ops: [piOp(cwd, home)] }, stubDeps());+ expect(results[0]?.status).toBe('failed');+ expect(results[0]?.detail).toContain('refused-unreadable');+ expect(failed).toHaveLength(1);+ } finally {+ rmSync(cwd, { recursive: true, force: true });+ rmSync(home, { recursive: true, force: true });+ }+ });+});diff --git a/packages/cli/src/commands/removal-plan.ts b/packages/cli/src/commands/removal-plan.tsindex e4ac7fba0..5d2054297 100644--- a/packages/cli/src/commands/removal-plan.ts+++ b/packages/cli/src/commands/removal-plan.ts@@ -578,7 +578,38 @@ async function executeOp(op: RemovalOp, deps: ResolvedDeps): Promise<RemovalOpRe);switch (outcome.kind) {case 'removed':- return { op, status: 'removed' };+ // Pi's integration is two artifacts, and the second one — the+ // folder-trust grant that lets Pi auto-load anything in that+ // directory — is the one worth reporting on. A grant left standing+ // under a "✓ Removed" line is the failure this branch exists to+ // prevent. `undefined` is every other editor: nothing to say.+ switch (outcome.trust) {+ case undefined:+ case 'removed':+ case 'not-present':+ return { op, status: 'removed' };+ case 'kept-shared':+ return {+ op,+ status: 'removed',+ detail: "kept Pi's folder trust — another extension there still needs it",+ };+ case 'kept-unverified':+ return {+ op,+ status: 'removed',+ detail:+ "kept Pi's folder trust — couldn't read the extensions folder to see what else needs it",+ };+ default:+ return {+ op,+ status: 'failed',+ detail: `removed the bridge file, but couldn't revoke Pi's folder trust (${outcome.trust})${+ outcome.trustError !== undefined ? `: ${outcome.trustError}` : ''+ }`,+ };+ }case 'not-present':return { op, status: 'not-present' };case 'left-foreign':diff --git a/packages/cli/src/commands/removal-render.ts b/packages/cli/src/commands/removal-render.tsindex 458467bc0..6e2c006d9 100644--- a/packages/cli/src/commands/removal-render.ts+++ b/packages/cli/src/commands/removal-render.ts@@ -49,6 +49,14 @@ export function formatRemovalOutcome(outcome: RemovalOutcome): string {);if (notPresent > 0) lines.push(dim(` ${notPresent} already absent.`));+ // A removal that succeeded but left something behind on purpose still owes+ // the user that sentence — otherwise "✓ Removed" reads as a clean sweep+ // while, say, Pi's folder-trust grant is still standing.+ for (const r of outcome.removed) {+ if (r.detail === undefined) continue;+ lines.push(` ${warning('·')} ${r.op.label} — ${dim(r.detail)}`);+ }+for (const s of skipped) {lines.push(` ${warning('·')} Left in place: ${s.op.label}${s.detail ? ` — ${dim(s.detail)}` : ''}`,@@ -101,7 +109,11 @@ export function removalOutcomeToJson(return {scope,mode: 'applied',- removed: outcome.removed.map((r) => ({ kind: r.op.kind, label: r.op.label })),+ removed: outcome.removed.map((r) => ({+ kind: r.op.kind,+ label: r.op.label,+ detail: r.detail,+ })),skipped: outcome.results.filter((r) => r.status === 'skipped').map((r) => ({ kind: r.op.kind, label: r.op.label, detail: r.detail })),diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.tsindex e75d5c0c5..f5dad23a3 100644--- a/packages/cli/src/commands/start.ts+++ b/packages/cli/src/commands/start.ts@@ -57,6 +57,7 @@ import {launchDesktop,notFoundMessage,} from './desktop-dispatch.ts';+import { ensurePiBridge, probePiBridgeState } from './pi-acp-bridge.ts';/** 30 minutes — default threshold. */const DEFAULT_IDLE_THRESHOLD_MS = 30 * 60 * 1000;@@ -731,6 +732,11 @@ export async function bootStartServer(opts: BootStartServerOptions): Promise<Boo// agent's own harness already loads OK's managed editor-config entry.probeHarnessManagedMcpEntry: (editorId, agentCwd) =>probeOwnManagedEditorMcpEntry(editorId, agentCwd),+ // Pi has no MCP client, so its ACP threads get OK tools from the managed+ // bridge extension in the project instead — probed at session setup and,+ // with the user's consent, provisioned there and then.+ probePiAcpBridge: (agentCwd) => probePiBridgeState(agentCwd),+ ensurePiAcpBridge: (agentCwd) => ensurePiBridge(agentCwd),// CLI-specific opt-insidleShutdownMs: idleThresholdMs,...(opts.serverRuntime !== undefined ? { serverRuntime: opts.serverRuntime } : {}),diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex e0d7bc218..4455c7acf 100644--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -77,6 +77,18 @@ export {// consumers should use `buildMcpConfigMigrateEvent` instead.truncatePriorEntry,} from './commands/mcp-migrate-event.ts';+// Desktop's utility process wires these into `bootServer()` as the ACP thread+// manager's Pi bridge seams (same wiring as `ok start`).+export {+ type EnsurePiBridgeResult,+ ensurePiBridge,+ type PiBridgeFileState,+ type PiBridgeState,+ type PiBridgeWriteAction,+ type PiTrustState,+ type PiTrustWriteAction,+ probePiBridgeState,+} from './commands/pi-acp-bridge.ts';// `runStop` is the path-addressable stop primitive (SIGTERM the server + ui// pids recorded in `<lockDir>/{server,ui}.lock`). Desktop's// `ok:fs:remove-git-folder` IPC reuses it to deterministically tear down adiff --git a/packages/core/src/acp/thread-protocol.test.ts b/packages/core/src/acp/thread-protocol.test.tsindex d1e55837d..c89be0ba7 100644--- a/packages/core/src/acp/thread-protocol.test.ts+++ b/packages/core/src/acp/thread-protocol.test.ts@@ -241,6 +241,50 @@ describe('parseThreadClientFrame', () => {).toBeNull();});+ // Its own op rather than a reuse of the runtime one: the two park different+ // waits, and a shared frame would let either answer resolve the other.+ test('pi_bridge_consent_response validates the granted/declined outcome', () => {+ expect(+ parseThreadClientFrame(+ JSON.stringify({+ op: 'pi_bridge_consent_response',+ threadId: 't',+ requestId: 'p1',+ outcome: { kind: 'granted' },+ }),+ ),+ ).toMatchObject({ op: 'pi_bridge_consent_response', outcome: { kind: 'granted' } });+ expect(+ parseThreadClientFrame(+ JSON.stringify({+ op: 'pi_bridge_consent_response',+ threadId: 't',+ requestId: 'p1',+ outcome: { kind: 'declined' },+ }),+ ),+ ).toMatchObject({ outcome: { kind: 'declined' } });+ expect(+ parseThreadClientFrame(+ JSON.stringify({+ op: 'pi_bridge_consent_response',+ threadId: 't',+ requestId: 'p1',+ outcome: { kind: 'maybe' },+ }),+ ),+ ).toBeNull();+ expect(+ parseThreadClientFrame(+ JSON.stringify({+ op: 'pi_bridge_consent_response',+ threadId: 't',+ outcome: { kind: 'granted' },+ }),+ ),+ ).toBeNull();+ });+test('subscribe accepts optional numeric sinceSeq only', () => {expect(parseThreadClientFrame(JSON.stringify({ op: 'subscribe', threadId: 't', sinceSeq: 4 })),diff --git a/packages/core/src/acp/thread-protocol.ts b/packages/core/src/acp/thread-protocol.tsindex cb92e9c61..b7f1a1e6a 100644--- a/packages/core/src/acp/thread-protocol.ts+++ b/packages/core/src/acp/thread-protocol.ts@@ -54,6 +54,57 @@ export type ThreadStatus =/** Runtimes OK can download on demand to launch an agent (see `managed-runtime.ts`). */export type ManagedRuntimeKind = 'node' | 'uv';+/**+ * What provisioning did to OK's managed Pi bridge extension file. Mirrors the+ * action union the CLI provisioning primitive returns; the boot wiring that+ * hands that primitive to the thread manager is where the two are checked+ * against each other, so a rename on either side fails there.+ */+export type PiBridgeWriteAction =+ | 'unchanged'+ | 'written'+ | 'refreshed'+ | 'refused-foreign'+ | 'refused-unreadable'+ | 'failed';++/** What provisioning did to Pi's folder-trust store (same mirroring). */+export type PiTrustWriteAction =+ | 'already-trusted'+ | 'added'+ | 'skipped'+ | 'refused-unreadable'+ | 'failed';++/**+ * How long the client waits for a session-reopening op (`resume`, `retry`)+ * before it abandons the request and surfaces a timeout.+ *+ * Shared rather than client-private because the server has to stay INSIDE it:+ * both ops answer only after the full agent respawn + session handshake, and+ * anything the server parks on inside that window (a consent card, say) has to+ * resolve with room to spare or the user gets a "timed out" error on a prompt+ * that is still live — and then a thread that quietly goes ready behind an+ * already-failed client.+ */+export const THREAD_REOPEN_OP_TIMEOUT_MS = 90_000;++/**+ * How a Pi thread's access to OK tools settled. `ready` is the only state+ * where the agent has them; each of the rest wants its own copy, because each+ * points at a different fix.+ */+export type PiBridgeThreadState =+ | 'ready'+ /** Something OK didn't write already sits at the managed bridge path. */+ | 'foreign-file'+ /** The managed bridge path exists but can't be read, so its provenance is unknown. */+ | 'unreadable-file'+ /** The write itself failed, so nothing landed. */+ | 'bridge-failed'+ /** The bridge landed but the folder-trust half didn't, so it stays unloadable. */+ | 'trust-failed';+/*** One auth method the agent advertised at `initialize`, trimmed to what the* client renders — and to the `id` that `authenticate` targets. Mirrors the@@ -355,6 +406,63 @@ export type ThreadEvent =decision: 'granted' | 'declined' | 'timeout';ts: number;}+ | {+ /**+ * Pi has no MCP client — it drops the `mcpServers` an ACP session+ * carries — so OK's tools reach a Pi thread only through OK's bridge+ * extension inside the project's `.pi/extensions/`, which Pi loads only+ * for folders listed in its own trust store. This project has neither+ * yet, so session setup parks on the user's answer (a+ * `pi_bridge_consent_response` frame, or a timeout). Retained + replayed+ * like `permission_request`.+ */+ kind: 'pi_bridge_consent_request';+ requestId: string;+ /** The agent whose tools are blocked on this decision. */+ agentName: string;+ /** Absolute path of the bridge extension approving would write. */+ bridgePath: string;+ /**+ * The folder approving would mark trusted. Disclosure-bearing: Pi's+ * trust is folder-scoped, so the entry lets it load EVERY extension in+ * that folder, not only OK's.+ */+ cwd: string;+ /**+ * Extension filenames already in that folder that OK did not write —+ * the concrete code the trust grant would also turn on. Empty means+ * either "none" or "OK could not read the folder", so copy must not+ * present it as proof the folder is otherwise empty. Optional on the+ * wire: events persisted before this field existed replay without it.+ */+ otherExtensions?: readonly string[];+ ts: number;+ }+ | {+ kind: 'pi_bridge_consent_resolved';+ requestId: string;+ /** `timeout` when nobody answered before session setup gave up. */+ decision: 'granted' | 'declined' | 'timeout';+ ts: number;+ }+ | {+ /**+ * How this thread's Pi bridge settled, once the answer is something the+ * user should see: provisioning succeeded, or it could not. A healthy+ * already-provisioned thread emits nothing.+ */+ kind: 'pi_bridge_status';+ /** The consent prompt this answers; absent when nothing was asked. */+ requestId?: string;+ state: PiBridgeThreadState;+ bridgePath: string;+ /** What the provisioning attempt did, when one ran. */+ bridge?: PiBridgeWriteAction;+ trust?: PiTrustWriteAction;+ /** Machine detail for the failure states — never headline copy. */+ detail?: string;+ ts: number;+ }| {/** Download/verify/extract progress while a consented runtime installs. */kind: 'runtime_install_progress';@@ -510,6 +618,23 @@ export type ThreadClientFrame =requestId: string;outcome: { kind: 'granted' } | { kind: 'declined' };}+ | {+ /**+ * Answer a `pi_bridge_consent_request`: allow (or refuse) OK to write+ * its bridge extension into this project and mark the folder trusted in+ * Pi.+ *+ * The two answers are not symmetric, and the copy says so. A refusal is+ * remembered for this thread only — reopening it won't re-ask, but the+ * next Pi thread will. An approval writes disk state that outlives the+ * thread entirely: the bridge file stays, and so does the folder-trust+ * entry, until the project is deinitialized.+ */+ op: 'pi_bridge_consent_response';+ threadId: string;+ requestId: string;+ outcome: { kind: 'granted' } | { kind: 'declined' };+ }| { op: 'set_mode'; threadId: string; modeId: string }| {op: 'set_config_option';@@ -645,6 +770,7 @@ const CLIENT_OPS = new Set(['queue_remove','permission_response','runtime_consent_response',+ 'pi_bridge_consent_response','cancel','set_mode','set_config_option',@@ -798,6 +924,13 @@ export function parseThreadClientFrame(raw: string): ThreadClientFrame | null {// the floor — the user clicks Download and the launch just stays parked.return frame as unknown as ThreadClientFrame;}+ case 'pi_bridge_consent_response': {+ if (!str('threadId') || !str('requestId')) return null;+ const outcome = frame.outcome as Record<string, unknown> | undefined;+ if (typeof outcome !== 'object' || outcome === null) return null;+ if (outcome.kind !== 'granted' && outcome.kind !== 'declined') return null;+ return frame as unknown as ThreadClientFrame;+ }case 'set_mode':if (!str('threadId') || !str('modeId')) return null;return frame as unknown as ThreadClientFrame;diff --git a/packages/desktop/src/utility/server-entry.ts b/packages/desktop/src/utility/server-entry.tsindex a2dcd9c4a..4be4f75c1 100644--- a/packages/desktop/src/utility/server-entry.ts+++ b/packages/desktop/src/utility/server-entry.ts@@ -24,10 +24,12 @@ import { rename, writeFile } from 'node:fs/promises';import { isAbsolute, relative, resolve } from 'node:path';import {detectGh,+ ensurePiBridge,getNativeTomlMcpEditor,loadConfig,makeLazyProbeTokenStore,probeOwnManagedEditorMcpEntry,+ probePiBridgeState,} from '@inkeep/open-knowledge';import { resolveServerRuntimeConfig, type ServerRuntimeConfig } from '@inkeep/open-knowledge-core';import {@@ -379,6 +381,11 @@ export function setupUtility(deps: SetupUtilityDeps): UtilityHandle {// (same wiring as `ok start`).probeHarnessManagedMcpEntry: (editorId, agentCwd) =>probeOwnManagedEditorMcpEntry(editorId, agentCwd),+ // Pi has no MCP client: its ACP threads get OK tools from the managed+ // bridge extension in the project, probed at session setup and — with+ // the user's consent — provisioned there and then (same as `ok start`).+ probePiAcpBridge: (agentCwd) => probePiBridgeState(agentCwd),+ ensurePiAcpBridge: (agentCwd) => ensurePiBridge(agentCwd),// The renderer page origin (Vite dev URL / `file://`) has no asset// middleware — serve content assets from this utility server so the// renderer can resolve `/<contentDir-relative>` srcs against `apiOrigin`.diff --git a/packages/server/src/acp/launch.ts b/packages/server/src/acp/launch.tsindex 807e7770a..6d92627da 100644--- a/packages/server/src/acp/launch.ts+++ b/packages/server/src/acp/launch.ts@@ -115,6 +115,23 @@ export function mergedEnv(overlay?: Record<string, string>): Record<string, strireturn { ...base, ...overlay };}+/**+ * The PATH every ACP agent this host spawns is launched with — {@link mergedEnv}'s+ * repaired base, exposed so anything OK hands the agent can declare a PATH that+ * is never narrower than the agent's own.+ *+ * The narrowing this prevents is not hypothetical: OK injects a stdio MCP entry+ * whose `env` several adapters spread LAST over the child's inherited env, so a+ * declared PATH replaces rather than supplements. Declaring the server's raw+ * `process.env.PATH` there would hand the MCP child launchd's minimal default+ * under a Dock-launched Desktop — dropping exactly the package-manager global+ * bins the spawn augmentation exists to restore. Reading it back off `mergedEnv`+ * rather than re-augmenting keeps the two from drifting apart.+ */+export function agentSpawnPath(): string | undefined {+ return envPath(mergedEnv());+}+/** True when `overlay` sets PATH under any spelling — see {@link ResolvedLaunch.pathFromOverlay}. */export function overlaySetsPath(overlay?: Record<string, string>): boolean {return overlay !== undefined && Object.keys(overlay).some((k) => k.toLowerCase() === 'path');@@ -129,10 +146,15 @@ export function overlaySetsPath(overlay?: Record<string, string>): boolean {* agent. Applied AFTER the caller's overlay: whether OK is hosting this agent* is our fact about the launch, not a per-agent registry setting to override.*- * The marker's reason for existing is the hop it survives: the agent we spawn- * goes on to spawn its own `ok mcp` (from the harness's MCP config, which OK- * does not control), and that process reads the marker to decide whether to- * hand the agent a preview URL or steer it to `ok open`.+ * The marker's reason for existing is the hop it tries to survive: the agent we+ * spawn goes on to spawn its own `ok mcp` (from the harness's MCP config, which+ * OK does not control), and that process reads the marker to decide whether to+ * hand the agent a preview URL or steer it to `ok open`. That hop is best-effort+ * and cannot be made deterministic from here — harnesses disagree about the env+ * they give MCP children, and some sanitize or allowlist it down to a handful of+ * standard variables. Entries OK injects itself carry the marker explicitly+ * instead; `OkMcpHostedMarker` in the thread manager records which case a thread+ * landed in.*/export function withHostedAgentMarker(env: Record<string, string>): Record<string, string> {return { ...env, [OK_HOSTED_AGENT_ENV]: '1' };diff --git a/packages/server/src/acp/mcp-injection-skip.test.ts b/packages/server/src/acp/mcp-injection-skip.test.tsindex 93eca26dc..3379e7872 100644--- a/packages/server/src/acp/mcp-injection-skip.test.ts+++ b/packages/server/src/acp/mcp-injection-skip.test.ts@@ -8,18 +8,20 @@import { mkdtempSync, rmSync } from 'node:fs';import { tmpdir } from 'node:os';-import { join } from 'node:path';+import { delimiter, join } from 'node:path';import { OK_HOSTED_AGENT_ENV } from '@inkeep/open-knowledge-core';import { afterEach, describe, expect, test } from 'vitest';import type { AgentSessionManager } from '../agent-sessions.ts';import { getLogger } from '../logger.ts';import { MCP_HOSTED_AGENT_HEADER } from '../mcp/agent-identity.ts';+import { agentSpawnPath } from './launch.ts';import { AcpPermissionStore } from './permissions.ts';import { AcpRegistry } from './registry.ts';import {AcpThreadManager,type AcpThreadManagerOptions,type HarnessManagedMcpEntryHit,+ type OkMcpHostedMarker,} from './thread-manager.ts';const log = getLogger('acp-injection-skip-test');@@ -53,21 +55,31 @@ type BuildMcpServersSeam = {info: { threadId: string };},init: { agentCapabilities?: { mcpCapabilities?: { http?: boolean } } },- ) => Promise<- Array<{+ ) => Promise<{+ servers: Array<{name: string;type?: string;env?: Array<{ name: string; value: string }>;headers?: Array<{ name: string; value: string }>;- }>- >;+ }>;+ hostedMarker: OkMcpHostedMarker;+ }>;};function makeManager(probe?: AcpThreadManagerOptions['probeHarnessManagedMcpEntry'],+ stdio: AcpThreadManagerOptions['getMcpStdioCommand'] = () => ({+ command: 'open-knowledge',+ args: ['mcp', '--port', '4242'],+ }),+ pi?: {+ probePiAcpBridge?: AcpThreadManagerOptions['probePiAcpBridge'];+ ensurePiAcpBridge?: AcpThreadManagerOptions['ensurePiAcpBridge'];+ },): BuildMcpServersSeam {const localDir = tmp();const manager = new AcpThreadManager({+ ...pi,contentDir: tmp(),localDir,globalDir: null,@@ -83,7 +95,7 @@ function makeManager(isExcludedPath: () => false,isIgnoredPath: () => false,getServerUrl: () => 'http://127.0.0.1:4242',- getMcpStdioCommand: () => ({ command: 'open-knowledge', args: ['mcp', '--port', '4242'] }),+ getMcpStdioCommand: stdio,probeHarnessManagedMcpEntry: probe,log,// Hermetic by default: every launch now merges the login shell's PATH, and@@ -111,13 +123,15 @@ const hit: HarnessManagedMcpEntryHit = {describe('buildMcpServers × probeHarnessManagedMcpEntry', () => {test('skips injection entirely on a probe hit (http-capable and stdio agents)', async () => {const m = makeManager(() => hit);- expect(await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT)).toEqual([]);- expect(await m.buildMcpServers(record('registry', 'claude-acp'), {})).toEqual([]);+ expect((await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT)).servers).toEqual(+ [],+ );+ expect((await m.buildMcpServers(record('registry', 'claude-acp'), {})).servers).toEqual([]);});test('injects on a probe miss', async () => {const m = makeManager(() => null);- const servers = await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT);+ const { servers } = await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT);expect(servers).toHaveLength(1);expect(servers[0]).toMatchObject({ name: 'open-knowledge', type: 'http' });});@@ -128,23 +142,49 @@ describe('buildMcpServers × probeHarnessManagedMcpEntry', () => {// URL this whole change exists to suppress.test('the injected HTTP server carries the hosted-agent header', async () => {const m = makeManager(() => null);- const servers = await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT);+ const { servers, hostedMarker } = await m.buildMcpServers(+ record('registry', 'codex-acp'),+ HTTP_INIT,+ );expect(servers[0]).toMatchObject({type: 'http',headers: [{ name: MCP_HOSTED_AGENT_HEADER, value: '1' }],});+ expect(hostedMarker).toBe('http-header');});// On this branch we name the command, so the marker can be guaranteed- // rather than left to inheritance through the agent process.- test('the injected stdio server carries the hosted-agent marker', async () => {+ // rather than left to inheritance through the agent process. PATH rides on+ // the entry too — env-sanitizing harnesses may hand the child none, and an+ // env-shim command then can't find node.+ test('the injected stdio server carries the hosted-agent marker and PATH', async () => {const m = makeManager(() => null);- const servers = await m.buildMcpServers(record('registry', 'claude-acp'), {});+ const { servers, hostedMarker } = await m.buildMcpServers(record('registry', 'claude-acp'), {});expect(servers).toHaveLength(1);- expect(servers[0]).toMatchObject({- name: 'open-knowledge',- env: [{ name: OK_HOSTED_AGENT_ENV, value: '1' }],- });+ expect(servers[0]).toMatchObject({ name: 'open-knowledge' });+ const env = (servers[0] as { env: Array<{ name: string; value: string }> }).env;+ expect(env).toContainEqual({ name: OK_HOSTED_AGENT_ENV, value: '1' });+ expect(hostedMarker).toBe('stdio-entry-env');+ });++ // Adapters that deliver entry env spread it LAST over the child's inherited+ // env, so a declared PATH REPLACES rather than supplements — pinning it to+ // the server's own would narrow the MCP child under a Dock-launched Desktop,+ // whose server runs on launchd's minimal PATH while the agent gets the+ // repaired one. The bar is "never narrower than the agent's", so the entry+ // has to carry the agent spawn PATH verbatim.+ test('the injected stdio PATH is the agent spawn PATH, not the server process PATH', async () => {+ const m = makeManager(() => null);+ const { servers } = await m.buildMcpServers(record('registry', 'claude-acp'), {});+ const env = (servers[0] as { env: Array<{ name: string; value: string }> }).env;+ const declared = env.find((e) => e.name === 'PATH')?.value;+ expect(declared).toBe(agentSpawnPath());+ // …and the agent PATH is append-only over the inherited one, so every+ // entry the server itself can see survives into the child.+ const declaredDirs = new Set((declared ?? '').split(delimiter));+ for (const dir of (process.env.PATH ?? '').split(delimiter)) {+ if (dir !== '') expect(declaredDirs.has(dir)).toBe(true);+ }});test('never probes for custom agents or registry agents without an OK config surface', async () => {@@ -153,8 +193,30 @@ describe('buildMcpServers × probeHarnessManagedMcpEntry', () => {calls += 1;return hit;});- expect(await m.buildMcpServers(record('custom', 'my-agent'), HTTP_INIT)).toHaveLength(1);- expect(await m.buildMcpServers(record('registry', 'gemini'), HTTP_INIT)).toHaveLength(1);+ expect((await m.buildMcpServers(record('custom', 'my-agent'), HTTP_INIT)).servers).toHaveLength(+ 1,+ );+ expect((await m.buildMcpServers(record('registry', 'gemini'), HTTP_INIT)).servers).toHaveLength(+ 1,+ );+ expect(calls).toBe(0);+ });++ // Cursor keeps its OK config entry behind an approval step whose state we+ // can't read, so a present entry is no evidence the agent will have the+ // tools. Standing down there produced silent zero-tool sessions.+ test('always injects for Cursor, even when its config carries OK’s entry', async () => {+ let calls = 0;+ const m = makeManager(() => {+ calls += 1;+ return { ...hit, editorId: 'cursor' as const };+ });+ const { servers, hostedMarker } = await m.buildMcpServers(record('registry', 'cursor'), {+ agentCapabilities: { mcpCapabilities: { http: true } },+ });+ expect(servers).toHaveLength(1);+ expect(servers[0]).toMatchObject({ name: 'open-knowledge', type: 'http' });+ expect(hostedMarker).toBe('http-header');expect(calls).toBe(0);});@@ -162,13 +224,124 @@ describe('buildMcpServers × probeHarnessManagedMcpEntry', () => {const m = makeManager(() => {throw new Error('probe exploded');});- const servers = await m.buildMcpServers(record('registry', 'claude-acp'), {});+ const { servers } = await m.buildMcpServers(record('registry', 'claude-acp'), {});expect(servers).toHaveLength(1);expect(servers[0]).toMatchObject({ name: 'open-knowledge', command: 'open-knowledge' });});test('unwired seam keeps unconditional injection', async () => {const m = makeManager(undefined);- expect(await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT)).toHaveLength(1);+ expect((await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT)).servers).toEqual([+ expect.objectContaining({ name: 'open-knowledge' }),+ ]);+ });+});++/**+ * The marker is deterministic only on the entries OK writes. A skip-branch+ * connection is reported `unknown` rather than silently defaulting to "not+ * hosted": the harness spawns OK's managed entry itself, and the marker cannot+ * be stamped into that config because the user's ordinary non-hosted use of the+ * editor loads the very same entry.+ */+describe('buildMcpServers hosted-marker outcomes', () => {+ test('a skip-branch thread reports `unknown`, not a false negative', async () => {+ const m = makeManager(() => hit);+ expect((await m.buildMcpServers(record('registry', 'codex-acp'), HTTP_INIT)).hostedMarker).toBe(+ 'unknown',+ );+ expect((await m.buildMcpServers(record('registry', 'claude-acp'), {})).hostedMarker).toBe(+ 'unknown',+ );+ });++ test('an agent with no usable transport reports `none` and gets no servers', async () => {+ const m = makeManager(+ () => null,+ () => null,+ );+ const { servers, hostedMarker } = await m.buildMcpServers(record('registry', 'claude-acp'), {});+ expect(servers).toEqual([]);+ expect(hostedMarker).toBe('none');+ });+});++/**+ * Pi accepts the `mcpServers` array and silently drops it — it has no MCP+ * client — so injection is suppressed unconditionally for it, seams or no+ * seams. Its tools ride OK's managed bridge extension in the project instead;+ * the consent flow that provisions one lives in the Pi bridge suite (it needs+ * a real thread record to append events to).+ */+describe('buildMcpServers × pi-acp', () => {+ const PI_LOADABLE = {+ bridgePath: '/tmp/acp-injection-skip-project/.pi/extensions/open-knowledge.ts',+ bridge: 'own-current' as const,+ trust: 'trusted' as const,+ bridgeLoadable: true,+ };++ test('never injects for pi, even with an http-capable init and a working stdio command', async () => {+ const m = makeManager(() => null, undefined, { probePiAcpBridge: () => PI_LOADABLE });+ expect((await m.buildMcpServers(record('registry', 'pi-acp'), HTTP_INIT)).servers).toEqual([]);+ expect((await m.buildMcpServers(record('registry', 'pi-acp'), {})).servers).toEqual([]);+ });++ test('a loadable bridge reports `unknown` — the bridge spawns the server, not us', async () => {+ const m = makeManager(() => null, undefined, { probePiAcpBridge: () => PI_LOADABLE });+ expect((await m.buildMcpServers(record('registry', 'pi-acp'), HTTP_INIT)).hostedMarker).toBe(+ 'unknown',+ );+ });++ // The dev server wires neither seam. OK cannot see the bridge, so it must+ // not claim the thread has no tools — `ok init` may well have wired the+ // project — and it must not prompt for a write it has no way to make.+ test('unwired seams suppress injection and report `unknown`, not `none`', async () => {+ const m = makeManager(() => null);+ const { servers, hostedMarker } = await m.buildMcpServers(+ record('registry', 'pi-acp'),+ HTTP_INIT,+ );+ expect(servers).toEqual([]);+ expect(hostedMarker).toBe('unknown');+ });++ test('a throwing probe degrades to `unknown` rather than failing session setup', async () => {+ const m = makeManager(() => null, undefined, {+ probePiAcpBridge: () => {+ throw new Error('probe exploded');+ },+ });+ expect((await m.buildMcpServers(record('registry', 'pi-acp'), HTTP_INIT)).hostedMarker).toBe(+ 'unknown',+ );+ });++ // Prompting for consent OK cannot act on is worse than staying quiet, so a+ // probe-only wiring reports the honest "no tools" and never asks.+ test('an unprovisioned bridge with no ensure seam reports `none` without prompting', async () => {+ const m = makeManager(() => null, undefined, {+ probePiAcpBridge: () => ({+ bridgePath: PI_LOADABLE.bridgePath,+ bridge: 'absent',+ trust: 'untrusted',+ bridgeLoadable: false,+ }),+ });+ const { servers, hostedMarker } = await m.buildMcpServers(+ record('registry', 'pi-acp'),+ HTTP_INIT,+ );+ expect(servers).toEqual([]);+ expect(hostedMarker).toBe('none');+ });++ // The registry map is the one place the pairing is stated: a custom agent+ // that happens to be called `pi-acp` is not Pi.+ test('a custom agent named like the registry entry still gets normal injection', async () => {+ const m = makeManager(() => null, undefined, { probePiAcpBridge: () => PI_LOADABLE });+ const { servers } = await m.buildMcpServers(record('custom', 'pi-acp'), HTTP_INIT);+ expect(servers).toHaveLength(1);});});diff --git a/packages/server/src/acp/mcp-stdio-command.test.ts b/packages/server/src/acp/mcp-stdio-command.test.tsindex 1c60bce8d..838944af1 100644--- a/packages/server/src/acp/mcp-stdio-command.test.ts+++ b/packages/server/src/acp/mcp-stdio-command.test.ts@@ -1,33 +1,76 @@-import { describe, expect, test } from 'vitest';+import { describe, expect, test, vi } from 'vitest';+import type { PinoLogger } from '../logger.ts';import { buildOkMcpStdioCommand } from './thread-manager.ts';/*** The stdio `ok mcp` command is the fallback that carries OK MCP tools to- * agents whose ACP adapter doesn't advertise HTTP-MCP support (e.g. Claude- * Code's). It must pin to a specific server port (`--port`) so the shim proxies- * to THIS server rather than auto-discovering some other install.+ * agents whose ACP adapter doesn't advertise HTTP-MCP support. It must pin to a+ * specific server port (`--port`) so the shim proxies to THIS server rather+ * than auto-discovering some other install, and it must hand the harness an+ * absolute command whenever one can be resolved — the harness spawns this child+ * with a PATH of its own choosing, and a bare name dies under a minimal one.+ *+ * Every case injects `resolveCommand`: the real lookup reads the developer's+ * own PATH, so a test that let it run would assert on whether this machine+ * happens to have the OK CLI installed.*/++const unresolvable = { resolveCommand: () => null };+describe('buildOkMcpStdioCommand', () => {test('uses the host CLI entrypoint when provided (packaged app / ok start)', () => {- expect(buildOkMcpStdioCommand(['/usr/bin/ok-bin', '/app/cli.js'], 5174)).toEqual({+ const resolveCommand = vi.fn(() => '/never/used');+ expect(+ buildOkMcpStdioCommand(['/usr/bin/ok-bin', '/app/cli.js'], 5174, { resolveCommand }),+ ).toEqual({command: '/usr/bin/ok-bin',args: ['/app/cli.js', 'mcp', '--port', '5174'],});+ // A path-qualified command is the host's own answer — no PATH lookup at all.+ expect(resolveCommand).not.toHaveBeenCalled();+ });++ test('resolves the bare `open-knowledge` fallback to an absolute path (dev server)', () => {+ const resolveCommand = vi.fn(() => '/opt/homebrew/bin/open-knowledge');+ expect(buildOkMcpStdioCommand(undefined, 3000, { resolveCommand })).toEqual({+ command: '/opt/homebrew/bin/open-knowledge',+ args: ['mcp', '--port', '3000'],+ });+ expect(resolveCommand).toHaveBeenCalledWith('open-knowledge');+ expect(buildOkMcpStdioCommand([], 3000, { resolveCommand }).command).toBe(+ '/opt/homebrew/bin/open-knowledge',+ );});- test('falls back to `open-knowledge` on PATH when no entrypoint is resolvable (dev server)', () => {- expect(buildOkMcpStdioCommand(undefined, 3000)).toEqual({+ test('also resolves a bare name the host supplied itself', () => {+ expect(+ buildOkMcpStdioCommand(['ok'], 3000, { resolveCommand: () => '/usr/local/bin/ok' }),+ ).toEqual({+ command: '/usr/local/bin/ok',+ args: ['mcp', '--port', '3000'],+ });+ });++ test('keeps the bare name and warns when PATH has no answer', () => {+ const warn = vi.fn();+ const log = { warn } as unknown as PinoLogger;+ expect(buildOkMcpStdioCommand(undefined, 3000, { resolveCommand: () => null, log })).toEqual({command: 'open-knowledge',args: ['mcp', '--port', '3000'],});- expect(buildOkMcpStdioCommand([], 3000)).toEqual({+ expect(warn).toHaveBeenCalledTimes(1);+ expect(warn.mock.calls[0]?.[0]).toMatchObject({ command: 'open-knowledge' });+ });++ test('an unresolvable name without a logger still degrades to the bare command', () => {+ expect(buildOkMcpStdioCommand(undefined, 3000, unresolvable)).toEqual({command: 'open-knowledge',args: ['mcp', '--port', '3000'],});});test('always pins to the given port', () => {- expect(buildOkMcpStdioCommand(['ok'], 61999).args).toContain('--port');- expect(buildOkMcpStdioCommand(['ok'], 61999).args.at(-1)).toBe('61999');+ expect(buildOkMcpStdioCommand(['ok'], 61999, unresolvable).args).toContain('--port');+ expect(buildOkMcpStdioCommand(['ok'], 61999, unresolvable).args.at(-1)).toBe('61999');});});diff --git a/packages/server/src/acp/pi-bridge-flow.integration.test.ts b/packages/server/src/acp/pi-bridge-flow.integration.test.tsnew file mode 100644index 000000000..a4b526b90--- /dev/null+++ b/packages/server/src/acp/pi-bridge-flow.integration.test.ts@@ -0,0 +1,461 @@+/**+ * The consent-gated Pi bridge flow, driven through the real+ * `AcpThreadManager` against a real spawned agent (the SDK's example agent,+ * served as the registry's `pi-acp` entry through a stub launcher).+ *+ * Everything the flow touches is real except the two disk-writing primitives,+ * which arrive as the manager's seams: session setup blocks on the consent+ * card exactly as production does, and the thread only reaches `ready` once+ * the answer lands — which is the property that matters, since a Pi thread+ * whose bridge is written after `session/new` would have no tools.+ */++import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { dirname, join } from 'node:path';+import type {+ ThreadEvent,+ ThreadServerFrame,+} from '@inkeep/open-knowledge-core/acp/thread-protocol';+import { afterEach, describe, expect, test } from 'vitest';+import type { AgentSessionManager } from '../agent-sessions.ts';+import { getLogger } from '../logger.ts';+import { AcpPermissionStore } from './permissions.ts';+import { AcpRegistry } from './registry.ts';+import {+ AcpThreadManager,+ type AcpThreadManagerOptions,+ type PiAcpBridgeEnsureResult,+ type PiAcpBridgeProbe,+} from './thread-manager.ts';++const log = getLogger('pi-bridge-flow-test');++/**+ * Resolve through the module graph — survives hoisting differences between+ * per-package and workspace-root node_modules.+ */+const EXAMPLE_AGENT = join(+ dirname(Bun.resolveSync('@agentclientprotocol/sdk', import.meta.dirname)),+ 'examples/agent.js',+);++const fakeSessionManager = {+ getSession: async () => {+ throw new Error('the example agent never uses client fs');+ },+ closeAllForAgent: async () => {},+} as unknown as AgentSessionManager;++let dirs: string[] = [];+let managers: AcpThreadManager[] = [];+function tmp(): string {+ const d = mkdtempSync(join(tmpdir(), 'pi-bridge-flow-'));+ dirs.push(d);+ return d;+}+afterEach(async () => {+ await Promise.allSettled(managers.map((m) => m.destroy()));+ managers = [];+ for (const d of dirs) rmSync(d, { recursive: true, force: true });+ dirs = [];+});++/**+ * A registry manifest whose `pi-acp` entry launches the example agent. The+ * npx distribution pins its own PATH (a spawn-env contract the launch honors+ * verbatim), so the stubs below are the only `npx` and `node` the launch can+ * find. Both are required: the launch preflights the interpreter an npx-kind+ * agent will run under, and a pinned PATH with no `node` on it reads as "no+ * usable interpreter" — which parks the thread on the managed-runtime card+ * before session setup ever reaches the Pi bridge.+ */+function piRegistryFetch(binDir: string): typeof fetch {+ writeFileSync(join(binDir, 'node'), `#!/bin/sh\nexec ${process.execPath} "$@"\n`, {+ mode: 0o755,+ });+ const stub = join(binDir, 'npx');+ writeFileSync(+ stub,+ `#!/bin/sh\nif [ "$1" = "--version" ]; then echo 1.0.0; exit 0; fi\nexec ${process.execPath} ${EXAMPLE_AGENT}\n`,+ { mode: 0o755 },+ );+ return (async () =>+ new Response(+ JSON.stringify({+ agents: [+ {+ id: 'pi-acp',+ name: 'pi',+ version: '1.0.0',+ distribution: { npx: { package: '@fake/pi', env: { PATH: binDir } } },+ },+ ],+ }),+ { status: 200 },+ )) as unknown as typeof fetch;+}++function makeManager(seams: {+ probePiAcpBridge?: AcpThreadManagerOptions['probePiAcpBridge'];+ ensurePiAcpBridge?: AcpThreadManagerOptions['ensurePiAcpBridge'];+}): AcpThreadManager {+ const localDir = tmp();+ const manager = new AcpThreadManager({+ contentDir: tmp(),+ localDir,+ globalDir: null,+ registry: new AcpRegistry({ localDir, log, fetchImpl: piRegistryFetch(tmp()) }),+ permissions: new AcpPermissionStore(localDir, log),+ sessionManager: fakeSessionManager,+ isExcludedPath: () => false,+ isIgnoredPath: () => false,+ // Injection is suppressed for Pi either way; wiring both transports keeps+ // that from passing for the wrong reason.+ getServerUrl: () => 'http://127.0.0.1:4242',+ getMcpStdioCommand: () => ({ command: 'open-knowledge', args: ['mcp', '--port', '4242'] }),+ // Hermetic: never spawn the developer's own login shell from a test.+ resolveLoginShellPath: async () => null,+ log,+ ...seams,+ });+ managers.push(manager);+ return manager;+}++async function collect(+ manager: AcpThreadManager,+ threadId: string,+ sink: ThreadEvent[],+): Promise<void> {+ await manager.subscribe(threadId, 0, (frame: ThreadServerFrame) => {+ if (frame.op === 'event') sink.push(frame.event);+ else if (frame.op === 'events') sink.push(...frame.events);+ });+}++async function waitFor(pred: () => boolean, ms: number, what: string): Promise<void> {+ const deadline = Date.now() + ms;+ while (!pred()) {+ if (Date.now() > deadline) throw new Error(`timed out waiting for ${what}`);+ await new Promise((r) => setTimeout(r, 20));+ }+}++function findRequest(+ events: ThreadEvent[],+): Extract<ThreadEvent, { kind: 'pi_bridge_consent_request' }> | undefined {+ return events.find(+ (e): e is Extract<ThreadEvent, { kind: 'pi_bridge_consent_request' }> =>+ e.kind === 'pi_bridge_consent_request',+ );+}++function findStatus(+ events: ThreadEvent[],+): Extract<ThreadEvent, { kind: 'pi_bridge_status' }> | undefined {+ return events.find(+ (e): e is Extract<ThreadEvent, { kind: 'pi_bridge_status' }> => e.kind === 'pi_bridge_status',+ );+}++const BRIDGE_PATH = '/tmp/pi-project/.pi/extensions/open-knowledge.ts';++const unprovisioned: PiAcpBridgeProbe = {+ bridgePath: BRIDGE_PATH,+ bridge: 'absent',+ trust: 'untrusted',+ bridgeLoadable: false,+ otherExtensions: [],+};++const provisioned: PiAcpBridgeProbe = {+ bridgePath: BRIDGE_PATH,+ bridge: 'own-current',+ trust: 'trusted',+ bridgeLoadable: true,+};++const ensured: PiAcpBridgeEnsureResult = {+ ok: true,+ bridgePath: BRIDGE_PATH,+ bridge: 'written',+ trust: 'added',+};++/** Start a thread and wait for it to settle (ready or error). */+async function startThread(+ manager: AcpThreadManager,+ events: ThreadEvent[],+): Promise<{ threadId: string }> {+ const info = await manager.createThread({ agent: { source: 'registry', id: 'pi-acp' } });+ await collect(manager, info.threadId, events);+ return { threadId: info.threadId };+}++async function waitReady(manager: AcpThreadManager, threadId: string): Promise<void> {+ await waitFor(() => manager.getInfo(threadId)?.status === 'ready', 15_000, 'the thread to start');+}++describe('pi bridge consent flow', () => {+ test('an already-provisioned project starts silently — no prompt, no provisioning', async () => {+ let ensureCalls = 0;+ const manager = makeManager({+ probePiAcpBridge: () => provisioned,+ ensurePiAcpBridge: () => {+ ensureCalls += 1;+ return ensured;+ },+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitReady(manager, threadId);+ expect(findRequest(events)).toBeUndefined();+ expect(findStatus(events)).toBeUndefined();+ expect(ensureCalls).toBe(0);+ }, 30_000);++ test('approve → the bridge is provisioned before the session opens', async () => {+ const seen: string[] = [];+ const manager = makeManager({+ probePiAcpBridge: (cwd) => {+ seen.push(cwd);+ return unprovisioned;+ },+ ensurePiAcpBridge: () => ensured,+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);++ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the consent request');+ const req = findRequest(events);+ if (req === undefined) throw new Error('unreachable');+ expect(req.bridgePath).toBe(BRIDGE_PATH);+ expect(req.agentName).toBe(manager.getInfo(threadId)?.agent.name);+ // The card discloses which folder becomes trusted, so it must be the+ // thread's own cwd and not, say, the bridge file's path.+ expect(req.cwd).toBe(seen[0]);+ // Session setup is parked on the answer: no agent session yet.+ expect(manager.getInfo(threadId)?.status).not.toBe('ready');++ manager.respondPiBridgeConsent(threadId, req.requestId, { kind: 'granted' });+ await waitReady(manager, threadId);+ await waitFor(() => findStatus(events) !== undefined, 5_000, 'the outcome event');+ const status = findStatus(events);+ expect(status).toMatchObject({+ state: 'ready',+ requestId: req.requestId,+ bridge: 'written',+ trust: 'added',+ });+ expect(events.some((e) => e.kind === 'pi_bridge_consent_resolved')).toBe(true);+ }, 30_000);++ // A refusal is deliberately remembered nowhere, so the next Pi+ // thread in the same project asks again. Nothing about it is written to+ // disk, and nothing reads the transcript back to decide.+ test('refuse → the thread runs anyway, and the next thread asks again', async () => {+ let ensureCalls = 0;+ const manager = makeManager({+ probePiAcpBridge: () => unprovisioned,+ ensurePiAcpBridge: () => {+ ensureCalls += 1;+ return ensured;+ },+ });++ const first: ThreadEvent[] = [];+ const one = await startThread(manager, first);+ await waitFor(() => findRequest(first) !== undefined, 15_000, 'the first consent request');+ const refused = findRequest(first);+ if (refused === undefined) throw new Error('unreachable');+ manager.respondPiBridgeConsent(one.threadId, refused.requestId, { kind: 'declined' });++ // Toolless, but alive: refusing the bridge must not fail the launch.+ await waitReady(manager, one.threadId);+ await waitFor(+ () => first.some((e) => e.kind === 'pi_bridge_consent_resolved'),+ 5_000,+ 'the refusal to land in the transcript',+ );+ expect(ensureCalls).toBe(0);+ expect(findStatus(first)).toBeUndefined();+ expect(first.find((e) => e.kind === 'pi_bridge_consent_resolved')).toMatchObject({+ decision: 'declined',+ });++ const second: ThreadEvent[] = [];+ const two = await startThread(manager, second);+ await waitFor(() => findRequest(second) !== undefined, 15_000, 'the second consent request');+ // …and approving now works, from a thread that knows nothing of the refusal.+ const retry = findRequest(second);+ if (retry === undefined) throw new Error('unreachable');+ manager.respondPiBridgeConsent(two.threadId, retry.requestId, { kind: 'granted' });+ await waitReady(manager, two.threadId);+ expect(ensureCalls).toBe(1);+ }, 45_000);++ // A resume opens a fresh agent session, so it re-runs session setup — but+ // "no" was already said for THIS thread, and re-asking on every reopen is+ // consent fatigue on a card whose approval flips a folder-wide trust gate.+ // The sibling test above covers the other half: a NEW thread asks again.+ test('a resume of a declined thread does not ask again', async () => {+ let ensureCalls = 0;+ const manager = makeManager({+ probePiAcpBridge: () => unprovisioned,+ ensurePiAcpBridge: () => {+ ensureCalls += 1;+ return ensured;+ },+ });+ const events: ThreadEvent[] = [];+ // A prompt is what makes the thread archivable: closing one that never+ // carried a user message discards it instead.+ const info = await manager.createThread({+ agent: { source: 'registry', id: 'pi-acp' },+ prompt: 'hello',+ });+ await collect(manager, info.threadId, events);+ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the first consent request');+ const first = findRequest(events);+ if (first === undefined) throw new Error('unreachable');+ manager.respondPiBridgeConsent(info.threadId, first.requestId, { kind: 'declined' });+ // Closing archives the thread only once a user message is on the log; the+ // turn itself needn't finish, and this agent's parks on a permission.+ await waitFor(+ () => events.some((e) => e.kind === 'user_message'),+ 15_000,+ 'the first prompt to reach the transcript',+ );+ await manager.closeThread(info.threadId);++ const resumed: ThreadEvent[] = [];+ await collect(manager, info.threadId, resumed);+ // The example agent may refuse the resume itself; the consent decision is+ // made ahead of that, which is what this asserts on.+ await manager.resumeThread(info.threadId).catch(() => undefined);+ // Identity, not count: the archived log replays, so the ORIGINAL request+ // is expected back. A second requestId is what would prove a re-ask.+ const asked = (): Extract<ThreadEvent, { kind: 'pi_bridge_consent_request' }> | undefined =>+ resumed.find(+ (e): e is Extract<ThreadEvent, { kind: 'pi_bridge_consent_request' }> =>+ e.kind === 'pi_bridge_consent_request' && e.requestId !== first.requestId,+ );+ expect(asked()).toBeUndefined();+ // …and the decision is never silently upgraded into a provisioning run.+ expect(ensureCalls).toBe(0);+ }, 45_000);++ // Approving flips a FOLDER-scoped trust gate, so the card has to name the+ // other code that gate would also turn on — the difference between a benign+ // approval and running someone else's extension with the user's privileges.+ test('the consent request carries the other extensions the trust would cover', async () => {+ const manager = makeManager({+ probePiAcpBridge: () => ({ ...unprovisioned, otherExtensions: ['theirs.ts'] }),+ ensurePiAcpBridge: () => ensured,+ });+ const events: ThreadEvent[] = [];+ await startThread(manager, events);+ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the consent request');+ expect(findRequest(events)?.otherExtensions).toEqual(['theirs.ts']);+ }, 45_000);++ // Consent here would be consent to trust a folder for extension contents OK+ // did not write. Not ours to ask for — the write primitive refuses it too.+ test('a foreign file at the managed path is reported, never prompted about', async () => {+ let ensureCalls = 0;+ const manager = makeManager({+ probePiAcpBridge: () => ({ ...unprovisioned, bridge: 'foreign' }),+ ensurePiAcpBridge: () => {+ ensureCalls += 1;+ return ensured;+ },+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitReady(manager, threadId);+ await waitFor(() => findStatus(events) !== undefined, 5_000, 'the limitation event');+ expect(findRequest(events)).toBeUndefined();+ expect(ensureCalls).toBe(0);+ expect(findStatus(events)).toMatchObject({+ state: 'foreign-file',+ bridgePath: BRIDGE_PATH,+ });+ expect(findStatus(events)?.requestId).toBeUndefined();+ }, 30_000);++ // A bridge file with no trust entry is inert, and saying "couldn't write it"+ // would send the user after the wrong half.+ test('a half-landed provisioning reports which half failed and proceeds toolless', async () => {+ const manager = makeManager({+ probePiAcpBridge: () => unprovisioned,+ ensurePiAcpBridge: () => ({+ ok: false,+ bridgePath: BRIDGE_PATH,+ bridge: 'written',+ trust: 'refused-unreadable',+ error: 'trust store is not a readable JSON object',+ }),+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the consent request');+ const req = findRequest(events);+ if (req === undefined) throw new Error('unreachable');+ manager.respondPiBridgeConsent(threadId, req.requestId, { kind: 'granted' });++ await waitReady(manager, threadId);+ await waitFor(() => findStatus(events) !== undefined, 5_000, 'the outcome event');+ expect(findStatus(events)).toMatchObject({+ state: 'trust-failed',+ requestId: req.requestId,+ bridge: 'written',+ trust: 'refused-unreadable',+ detail: 'trust store is not a readable JSON object',+ });+ }, 30_000);++ test('a provisioning seam that throws is reported, not fatal to the thread', async () => {+ const manager = makeManager({+ probePiAcpBridge: () => unprovisioned,+ ensurePiAcpBridge: () => {+ throw new Error('disk on fire');+ },+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the consent request');+ const req = findRequest(events);+ if (req === undefined) throw new Error('unreachable');+ manager.respondPiBridgeConsent(threadId, req.requestId, { kind: 'granted' });++ await waitReady(manager, threadId);+ await waitFor(() => findStatus(events) !== undefined, 5_000, 'the outcome event');+ expect(findStatus(events)).toMatchObject({ state: 'bridge-failed', detail: 'disk on fire' });+ }, 30_000);++ // The dev server wires neither seam: no prompt can be honored, so none is+ // shown, and the thread starts exactly as it did before this flow existed.+ test('unwired seams start the thread with no prompt and no events', async () => {+ const manager = makeManager({});+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitReady(manager, threadId);+ expect(findRequest(events)).toBeUndefined();+ expect(findStatus(events)).toBeUndefined();+ }, 30_000);++ // Closing a thread parked on the card must resolve the park, not strand the+ // caller awaiting it forever.+ test('closing a parked thread releases session setup', async () => {+ const manager = makeManager({+ probePiAcpBridge: () => unprovisioned,+ ensurePiAcpBridge: () => ensured,+ });+ const events: ThreadEvent[] = [];+ const { threadId } = await startThread(manager, events);+ await waitFor(() => findRequest(events) !== undefined, 15_000, 'the consent request');+ await manager.closeThread(threadId);+ expect(manager.getInfo(threadId)?.status).not.toBe('ready');+ }, 30_000);+});diff --git a/packages/server/src/acp/registry.ts b/packages/server/src/acp/registry.tsindex af466cd27..bb463f613 100644--- a/packages/server/src/acp/registry.ts+++ b/packages/server/src/acp/registry.ts@@ -39,18 +39,36 @@ export const FEATURED_AGENT_IDS: readonly string[] = [];/**- * Registry agents whose harness independently loads the editor MCP configs- * OK's own wiring installs (`ok init` / the Desktop consent flow), keyed to- * the editor id that wiring writes for. Agent ids pinned to the live- * registry catalog like `FEATURED_AGENT_IDS`; agents absent here (gemini,- * github-copilot-cli, custom entries) have no OK-managed config surface, so- * the thread manager always injects for them.+ * Registry agents that reach OK's tools through the wiring OK installs for+ * their editor (`ok init` / the Desktop consent flow), keyed to that editor+ * id. For most, the wiring is an MCP config entry their harness loads on its+ * own, which is why the thread manager stands down from injecting a+ * same-name duplicate. Pi is the other shape: it has no MCP client at all,+ * and its wiring is a whole managed extension FILE in the project — the+ * thread manager provisions that instead of injecting anything.+ *+ * Agent ids pinned to the live registry catalog like `FEATURED_AGENT_IDS`;+ * agents absent here (gemini, github-copilot-cli, custom entries) have no+ * OK-managed config surface, so the thread manager always injects for them.+ *+ * Cursor is deliberately absent despite having one. It treats a configured+ * server as offered rather than loaded: config-declared MCP servers sit behind+ * a separate approval step (`cursor-agent mcp list` reports an unapproved+ * entry as "not loaded (needs approval)"), so the entry's presence says+ * nothing about whether the agent will have the tools, and standing down+ * strands the user with no tools and no error. Tracking the approval instead+ * would mean reproducing two undocumented Cursor internals — the per-project+ * directory slug and the hash keying each approval entry — either of which can+ * drift silently back into that same failure. Injecting sidesteps the gate and+ * is safe even for an already-approved entry: Cursor merges config-declared+ * and injected servers by name, and the injected one wins the tie. The editor+ * wiring itself stays — it still serves the user's own non-ACP Cursor use.*/export const ACP_AGENT_EDITOR_IDS: { readonly [agentId: string]: EditorId | undefined } = {'claude-acp': 'claude','codex-acp': 'codex',- cursor: 'cursor',opencode: 'opencode',+ 'pi-acp': 'pi',};/** One platform target inside a manifest's `binary` distribution. */diff --git a/packages/server/src/acp/thread-manager.ts b/packages/server/src/acp/thread-manager.tsindex ddb50f878..d1b282208 100644--- a/packages/server/src/acp/thread-manager.ts+++ b/packages/server/src/acp/thread-manager.ts@@ -51,6 +51,9 @@ import {} from '@inkeep/open-knowledge-core';import type {AttachmentPart,+ PiBridgeThreadState,+ PiBridgeWriteAction,+ PiTrustWriteAction,QueuedMessage,SteerMessage,ThreadAgentInfo,@@ -61,6 +64,7 @@ import type {ThreadServerFrame,ThreadStatus,} from '@inkeep/open-knowledge-core/acp/thread-protocol';+import { THREAD_REOPEN_OP_TIMEOUT_MS } from '@inkeep/open-knowledge-core/acp/thread-protocol';import { toBroadcasterKey } from '../agent-id.ts';import type { AgentPresenceBroadcaster } from '../agent-presence.ts';import {@@ -70,6 +74,7 @@ import {snapshotBlocks,} from '../agent-sessions.ts';import { isConfigDoc, isSystemDoc } from '../cc1-broadcast.ts';+import { resolveOnPath } from '../git-preflight.ts';import type { PinoLogger } from '../logger.ts';import { MCP_HOSTED_AGENT_HEADER } from '../mcp/agent-identity.ts';import { RUNTIME_VERSION } from '../version-constants.ts';@@ -77,6 +82,7 @@ import { buildPromptBlocks } from './attachment-blocks.ts';import { boundSessionUpdateForLog, coalesceChunkInto } from './event-log-bounds.ts';import {AgentLaunchError,+ agentSpawnPath,brokenInterpreterHint,declinedRepairHint,envPath,@@ -131,8 +137,27 @@ const EVENT_LOG_LIMIT = 5_000;const DEFAULT_IDLE_REAP_MS = 60 * 60 * 1000;const REAP_SWEEP_MS = 5 * 60 * 1000;const PERMISSION_TIMEOUT_MS = 10 * 60 * 1000;-/** How long a launch parks waiting for the user to allow/refuse a runtime download. */-const RUNTIME_CONSENT_TIMEOUT_MS = 5 * 60 * 1000;+/**+ * How long a launch parks waiting for the user to allow/refuse a runtime+ * download — and, on the same budget, to allow/refuse provisioning Pi's+ * bridge extension. Both park session setup on one in-thread card, so the+ * "walked away from the machine" ceiling is the same question twice.+ */+const CONSENT_TIMEOUT_MS = 5 * 60 * 1000;++/**+ * Ceiling on a consent park opened from a path a CLIENT REQUEST is already+ * blocking on. Resume and retry both await the whole handshake before their+ * response frame goes out, so the full {@link CONSENT_TIMEOUT_MS} budget there+ * would produce a "resume timed out" error on a card that is still live and+ * clickable, then flip the thread to ready behind an already-failed client.+ *+ * Derived from the client's own budget rather than guessed at, so the two+ * cannot drift apart; the halving leaves the rest of the handshake room inside+ * it. Thread creation has no blocked caller (it fires the launch and returns),+ * so it keeps the full budget.+ */+const BLOCKING_CONSENT_TIMEOUT_MS = Math.floor(THREAD_REOPEN_OP_TIMEOUT_MS / 2);/** Trailing throttle for runtime-install progress events (bounds the retained log). */const RUNTIME_PROGRESS_THROTTLE_MS = 400;const KILL_GRACE_MS = 5_000;@@ -259,6 +284,16 @@ function threadRestartedDuringSignIn(): ThreadOpError {type Subscriber = (frame: ThreadServerFrame) => void;+/**+ * A launch parked on an in-thread consent card. `closed` resolves the park+ * during teardown so a thread the user closed mid-question doesn't leak its+ * awaiting caller.+ */+interface PendingConsent {+ resolve: (decision: 'granted' | 'declined' | 'timeout' | 'closed') => void;+ timer: ReturnType<typeof setTimeout>;+}+interface ThreadRecord {info: ThreadInfo;/** Extension-less doc the thread was launched from (context only). */@@ -312,13 +347,29 @@ interface ThreadRecord {{ resolve: (response: RequestPermissionResponse) => void; timer: ReturnType<typeof setTimeout> }>;/** In-flight runtime-download consent prompts blocking this thread's launch. */- pendingRuntimeConsent: Map<- string,- {- resolve: (decision: 'granted' | 'declined' | 'timeout' | 'closed') => void;- timer: ReturnType<typeof setTimeout>;- }- >;+ pendingRuntimeConsent: Map<string, PendingConsent>;+ /**+ * In-flight Pi bridge-provisioning consent prompts blocking this thread's+ * session setup. Separate from the runtime map so the two answer frames+ * can't cross-resolve each other's park.+ */+ pendingPiBridgeConsent: Map<string, PendingConsent>;+ /**+ * True once the user has declined this thread's Pi bridge prompt. A resume+ * or retry re-runs session setup, so without this the same thread re-asks on+ * every reopen for an answer already given. Scoped to the record on purpose:+ * a NEW Pi thread re-probes and asks again, since the decision is about this+ * session, not a preference. A park that TIMED OUT is not a decline — nobody+ * answered, so the next reopen is the first real chance to.+ */+ piBridgeDeclined: boolean;+ /**+ * Last Pi bridge state this thread reported with no prompt attached, so a+ * standing limitation (a foreign file at the managed path) contributes one+ * row instead of one per reopen. Keyed on the state rather than a flag so a+ * genuine change still surfaces.+ */+ lastPiBridgeStatus: PiBridgeThreadState | null;stderrTail: string[];/*** Stderr written while an `authenticate` is in flight, or null outside one.@@ -377,6 +428,55 @@ export interface HarnessManagedMcpEntryHit {configPath: string;}+/**+ * Read-only report from the `probePiAcpBridge` seam: whether Pi would load+ * OK's bridge extension for this cwd, and — when it wouldn't — which half is+ * missing. Structurally the CLI probe's result; the boot wiring that supplies+ * that probe is where the two shapes meet.+ */+export interface PiAcpBridgeProbe {+ /** Absolute path of OK's managed bridge extension for this project. */+ bridgePath: string;+ bridge: 'absent' | 'own-current' | 'own-stale' | 'foreign' | 'unreadable';+ trust: 'trusted' | 'untrusted' | 'unreadable';+ /** True when Pi loads OK's bridge for this cwd as things stand. */+ bridgeLoadable: boolean;+ /**+ * Extension filenames already beside the managed bridge that OK did not+ * write. Empty when there are none OR when the folder could not be read, so+ * it is safe to name what is listed and unsafe to claim the list is complete.+ */+ otherExtensions: readonly string[];+}++/** Outcome of the `ensurePiAcpBridge` seam — both halves reported separately. */+export interface PiAcpBridgeEnsureResult {+ /** True only when the bridge is OK's own AND the folder is trusted. */+ ok: boolean;+ bridgePath: string;+ bridge: PiBridgeWriteAction;+ trust: PiTrustWriteAction;+ error?: string;+}++/**+ * How a Pi thread's tool access settled, as the injection branch reads it.+ * `unknown` is the honest answer when OK cannot see the bridge at all (no+ * probe seam, or the probe failed) — the project may well have been wired by+ * `ok init`, and claiming "no tools" would be a guess.+ */+type PiBridgeOutcome = 'loadable' | 'unavailable' | 'unknown';++/**+ * True for a registry agent whose OK wiring is Pi's managed bridge extension+ * rather than an MCP config entry. Read off `ACP_AGENT_EDITOR_IDS` rather+ * than matched on the agent id, so the registry map stays the one place the+ * agent↔editor pairing is stated.+ */+function isPiBridgeAgent(agentRef: { source: 'registry' | 'custom'; id: string }): boolean {+ return agentRef.source === 'registry' && ACP_AGENT_EDITOR_IDS[agentRef.id] === 'pi';+}+export interface AcpThreadManagerOptions {contentDir: string;/** `<projectDir>/.ok/local` — custom agents, permission grants, registry cache. */@@ -438,6 +538,23 @@ export interface AcpThreadManagerOptions {editorId: EditorId,cwd: string,) => HarnessManagedMcpEntryHit | null | Promise<HarnessManagedMcpEntryHit | null>;+ /**+ * Read-only check of whether Pi would load OK's bridge extension for a+ * thread's cwd. Pi has no MCP client, so this — not injection — is how a Pi+ * thread gets OK tools. Wired by `bootServer()` callers to the CLI's+ * `probePiBridgeState`; unwired (the Vite dev server) means OK cannot see+ * the bridge and never offers to provision it, so such a thread has OK+ * tools only if `ok init` already wired the project.+ */+ probePiAcpBridge?: (cwd: string) => PiAcpBridgeProbe | Promise<PiAcpBridgeProbe>;+ /**+ * Write half of the same pair, run ONLY after the user approves the+ * in-thread consent card: drop OK's bridge extension into the project and+ * add the folder to Pi's trust store. Wired to the CLI's `ensurePiBridge`.+ * Unwired suppresses the prompt entirely — asking for permission OK cannot+ * act on is worse than staying quiet.+ */+ ensurePiAcpBridge?: (cwd: string) => PiAcpBridgeEnsureResult | Promise<PiAcpBridgeEnsureResult>;/*** Test seam for the managed-runtime download path — override the install* cache root and the download `fetch` so a test can drive the@@ -473,18 +590,82 @@ export interface AcpThreadManagerOptions {* Build the stdio command that launches the OK MCP shim (`ok mcp --port <n>`)* pinned to this server's HTTP MCP endpoint. `localOpCliArgs` is how the host* invokes the OK CLI in its runtime (`[execPath, entry]` under `ok start` / the- * packaged app); it degrades to a bare `open-knowledge` on PATH when the host- * can't resolve one (e.g. the Vite dev server).+ * packaged app); it falls back to a globally installed `open-knowledge` when the+ * host can't resolve one (e.g. the Vite dev server).+ *+ * A bare name never goes on the wire when it can be avoided: the harness — not+ * OK — spawns this child, and several harnesses hand it whatever PATH launched+ * the agent, which for a GUI-launched desktop app is launchd's minimal default+ * with no OK CLI in it. Resolving to an absolute path here sidesteps that whole+ * class. The lookup is memoized process-wide, so it costs one probe per name.+ * An unresolvable name keeps the bare form (the harness may still have a PATH+ * that finds it) and warns, since that is the shape that silently loses tools.*/export function buildOkMcpStdioCommand(localOpCliArgs: readonly string[] | undefined,port: number,+ deps?: {+ /** PATH lookup override — tests only; production resolves against the agent's PATH. */+ resolveCommand?: (name: string) => string | null;+ log?: PinoLogger;+ },): { command: string; args: string[] } {const argv = localOpCliArgs && localOpCliArgs.length > 0 ? localOpCliArgs : ['open-knowledge'];const [command = 'open-knowledge', ...rest] = argv;- return { command, args: [...rest, 'mcp', '--port', String(port)] };+ const args = [...rest, 'mcp', '--port', String(port)];+ // Anything carrying a separator is already path-qualified (`[execPath, entry]`+ // from the packaged app / `ok start`) and is left exactly as the host built it.+ if (command.includes('/') || command.includes('\\')) return { command, args };+ // Probed against the PATH the AGENT gets, not this process's: the server can+ // be running under launchd's minimal default while the agent — and therefore+ // the MCP child it spawns — is launched with the repaired one. Probing the+ // narrow PATH would report "missing" for a command the child finds fine, and+ // fall back to the bare name in exactly the case this resolution exists for.+ const resolved = (deps?.resolveCommand ?? ((name) => resolveOnPath(name, agentSpawnPath())))(+ command,+ );+ if (resolved === null) {+ deps?.log?.warn(+ { command },+ '[acp-threads] OK MCP stdio command did not resolve on PATH — injecting the bare name, which fails for harnesses that spawn MCP children under a minimal PATH',+ );+ return { command, args };+ }+ return { command: resolved, args };}+/**+ * How the hosted-agent marker reaches the OK MCP server an agent connects to.+ *+ * The marker itself is what lets `preview_url` steer an in-app agent to+ * `ok open` instead of handing it a URL to the app its user is already looking+ * at. This classification is NOT that mechanism and nothing reads it to make+ * that call — `preview_url` derives hosted-ness independently, from the header+ * or env var actually present on the connection. This says only which delivery+ * channel a thread's injection landed on, so the injection log can say whether+ * the marker was guaranteed or left to inheritance. Nothing downstream+ * branches on it; keep it that way or the two will disagree.+ *+ * OK can only guarantee delivery on entries it writes itself:+ *+ * - `http-header`, `stdio-entry-env` — deterministic: OK builds the entry, so+ * the marker rides on it.+ * - `unknown` — OK's own managed wiring spawns the server rather than an entry+ * OK put on the wire: the agent's harness loads OK's managed editor-config+ * entry itself, or (Pi) OK's managed bridge extension in the project does.+ * That leaves the agent process env as the only channel; harnesses disagree+ * about handing that env to MCP children (some pass it whole, others+ * sanitize or allowlist it). Stamping+ * the marker into the managed config entry is not an alternative: that same+ * entry serves the user's ordinary, non-hosted use of the editor, which would+ * then be misclassified as hosted. Such a connection is treated as external —+ * the safe direction, since a plain URL is merely useless advice inside the+ * app while an `ok open` steer is wrong advice outside it.+ * - `none` — no transport was available at all, so the agent starts with no OK+ * tools rather than with an unmarked connection.+ */+export type OkMcpHostedMarker = 'http-header' | 'stdio-entry-env' | 'unknown' | 'none';+interface InterpreterProbeFailure {kind: 'unhealthy' | 'incompatible';detail: string;@@ -727,6 +908,9 @@ export class AcpThreadManager {subscribers: new Set(),pendingPermissions: new Map(),pendingRuntimeConsent: new Map(),+ pendingPiBridgeConsent: new Map(),+ piBridgeDeclined: false,+ lastPiBridgeStatus: null,stderrTail: [],authStderr: null,terminals: null,@@ -1415,7 +1599,7 @@ export class AcpThreadManager {ts: Date.now(),});resolvePromise('timeout');- }, RUNTIME_CONSENT_TIMEOUT_MS);+ }, CONSENT_TIMEOUT_MS);timer.unref?.();record.pendingRuntimeConsent.set(requestId, { resolve: resolvePromise, timer });});@@ -1469,49 +1653,110 @@ export class AcpThreadManager {});}+ /**+ * Decide what `mcpServers` this thread's session opens with — the one seam+ * both `session/new` and resume pass through, and the last moment before+ * either that can still change what the agent will see.+ *+ * For a Pi thread it can PARK on the user: Pi's answer to "what MCP do we+ * inject" is inseparable from "was the bridge extension provisioned", and+ * that provisioning needs consent. The park mirrors the runtime-download+ * card's closed/timeout outcomes, but its budget is the caller's to set —+ * see {@link BLOCKING_CONSENT_TIMEOUT_MS} for why a caller a client request+ * is waiting on cannot hand out the full one.+ */private async buildMcpServers(record: ThreadRecord,init: InitializeResponse,- ): Promise<McpServer[]> {- if ((await this.harnessAlreadyHasOkMcp(record)) !== null) return [];- const mcpServers: McpServer[] = [];- const serverUrl = this.opts.getServerUrl?.();- if (serverUrl !== undefined && init.agentCapabilities?.mcpCapabilities?.http === true) {- // Preferred: a direct HTTP MCP connection to this running server.- // The env marker the stdio branch uses cannot travel over HTTP, so the- // hosted-agent fact rides a header instead. It has to be per-connection:- // this same server also answers external clients that legitimately want- // a navigable URL, so the signal cannot live on the server process.- mcpServers.push({- type: 'http',- name: 'open-knowledge',- url: `${serverUrl}/mcp`,- headers: [{ name: MCP_HOSTED_AGENT_HEADER, value: '1' }],- });+ consentBudgetMs: number = CONSENT_TIMEOUT_MS,+ ): Promise<{ servers: McpServer[]; hostedMarker: OkMcpHostedMarker }> {+ const servers: McpServer[] = [];+ let hostedMarker: OkMcpHostedMarker;+ if (isPiBridgeAgent(record.agentRef)) {+ // Pi has no MCP client: it accepts the `mcpServers` array and silently+ // drops it, so injecting anything here only hides the real question.+ // Its tools ride OK's bridge extension in the project instead.+ const outcome = await this.settlePiBridge(record, consentBudgetMs);+ hostedMarker = outcome === 'unavailable' ? 'none' : 'unknown';+ } else if ((await this.harnessAlreadyHasOkMcp(record)) !== null) {+ hostedMarker = 'unknown';} else {- // Fallback for agents that don't advertise HTTP-MCP support (e.g. Claude- // Code's ACP adapter): a stdio MCP server. stdio needs no capability flag- // — every ACP agent accepts it — so this is what actually carries the OK- // tools to non-HTTP agents. Without it they connect with only their own- // personal MCP config and OK tools are silently absent (verified: Codex- // declares http and gets OK tools; Claude does not and got only its own).- const stdio = this.opts.getMcpStdioCommand?.();- if (stdio !== null && stdio !== undefined) {- mcpServers.push({+ const serverUrl = this.opts.getServerUrl?.();+ if (serverUrl !== undefined && init.agentCapabilities?.mcpCapabilities?.http === true) {+ // Preferred: a direct HTTP MCP connection to this running server.+ // The env marker the stdio branch uses cannot travel over HTTP, so the+ // hosted-agent fact rides a header instead. It has to be per-connection:+ // this same server also answers external clients that legitimately want+ // a navigable URL, so the signal cannot live on the server process.+ servers.push({+ type: 'http',name: 'open-knowledge',- command: stdio.command,- args: [...stdio.args],- // Carry the hosted-agent marker explicitly rather than relying on- // the agent to pass its own env through to the MCP servers it- // spawns. On this branch we name the command, so we can make it- // deterministic; on the skip branch above the harness spawns its- // own entry and the marker has to arrive by inheritance from- // `withHostedAgentMarker` at the agent spawn.- env: [{ name: OK_HOSTED_AGENT_ENV, value: '1' }],+ url: `${serverUrl}/mcp`,+ headers: [{ name: MCP_HOSTED_AGENT_HEADER, value: '1' }],});+ hostedMarker = 'http-header';+ } else {+ // Fallback for agents whose adapter doesn't advertise HTTP-MCP support+ // (custom agents, registry agents that only speak stdio): a stdio MCP+ // server, which is what actually carries OK tools to them — otherwise+ // they connect with only their own personal MCP config and OK tools are+ // silently absent.+ //+ // Nothing gates this branch on a capability flag and nothing may: ACP+ // has no stdio flag to check, and adapters under-report — a capability+ // object listing only http/sse is not evidence that stdio would be+ // refused. The http check above is a preference, not a gate.+ const stdio = this.opts.getMcpStdioCommand?.();+ const entryPath = agentSpawnPath();+ if (stdio !== null && stdio !== undefined) {+ servers.push({+ name: 'open-knowledge',+ command: stdio.command,+ args: [...stdio.args],+ // Carry the hosted-agent marker on the entry rather than relying on+ // the agent to pass its own env through to the MCP servers it+ // spawns — a hop some harnesses sanitize. On this branch OK names+ // the command, so the marker is deterministic; see+ // `OkMcpHostedMarker` for the branch where it cannot be.+ //+ // PATH rides along for the same reason: an env-sanitizing harness+ // may hand the child no PATH at all, and even an absolute command+ // can be an `#!/usr/bin/env node` shim that then can't find node.+ // Entry-declared env is the one channel every adapter delivers.+ //+ // It must be the AGENT's PATH, never this process's: adapters that+ // deliver entry env spread it LAST over the child's inherited env+ // (verified in opencode + codex-rs), so a declared PATH replaces+ // rather than supplements. A Dock-launched Desktop runs its server+ // under launchd's minimal PATH, so declaring that would strip the+ // package-manager global bins the agent spawn deliberately restores+ // — narrowing the child in the exact scenario this hardening+ // targets.+ env: [+ { name: OK_HOSTED_AGENT_ENV, value: '1' },+ ...(entryPath !== undefined && entryPath !== ''+ ? [{ name: 'PATH', value: entryPath }]+ : []),+ ],+ });+ hostedMarker = 'stdio-entry-env';+ } else {+ hostedMarker = 'none';+ }}}- return mcpServers;+ if (hostedMarker === 'none') {+ this.opts.log.warn(+ { threadId: record.info.threadId, agentId: record.agentRef.id },+ '[acp-threads] no OK MCP transport available for this agent — it starts without OK tools',+ );+ } else {+ this.opts.log.info(+ { threadId: record.info.threadId, agentId: record.agentRef.id, hostedMarker },+ '[acp-threads] OK MCP injection outcome',+ );+ }+ return { servers, hostedMarker };}/**@@ -1553,6 +1798,250 @@ export class AcpThreadManager {return hit;}+ /**+ * Settle whether this Pi thread will have OK tools, provisioning the bridge+ * extension with the user's consent when it won't.+ *+ * Runs at every session setup — fresh start and resume alike — because the+ * refusal is deliberately remembered nowhere: the next Pi thread re-probes+ * and asks again. A `foreign` file at OK's managed path is never offered as+ * a prompt: consent would be for trusting a folder whose extension contents+ * OK did not write, which is not ours to ask for (the write primitive+ * refuses it too).+ */+ private async settlePiBridge(+ record: ThreadRecord,+ consentBudgetMs: number,+ ): Promise<PiBridgeOutcome> {+ const probe = this.opts.probePiAcpBridge;+ const threadId = record.info.threadId;+ if (probe === undefined) {+ this.opts.log.debug(+ { threadId, agentId: record.agentRef.id },+ '[acp-threads] no Pi bridge probe wired — OK tools depend on whether the project was already wired',+ );+ return 'unknown';+ }+ let state: PiAcpBridgeProbe;+ try {+ state = await probe(record.cwd);+ } catch (err) {+ this.opts.log.warn({ err, threadId }, '[acp-threads] Pi bridge probe failed');+ return 'unknown';+ }+ if (record.closed) return 'unknown';+ if (state.bridgeLoadable) {+ this.opts.log.info(+ { threadId, bridge: state.bridge, bridgePath: state.bridgePath },+ '[acp-threads] Pi already loads the OK bridge extension for this project',+ );+ return 'loadable';+ }+ if (state.bridge === 'foreign' || state.bridge === 'unreadable') {+ this.opts.log.warn(+ { threadId, bridge: state.bridge, bridgePath: state.bridgePath },+ "[acp-threads] OK can't claim the Pi bridge path — leaving it alone; this thread has no OK tools",+ );+ // Two different problems with two different fixes: a file OK didn't+ // write is a decision the user has to make about their own file, while+ // an unreadable one is a permission/IO fault. Collapsing them sends half+ // the users to the wrong remedy.+ this.emitPiBridgeStatus(record, {+ kind: 'pi_bridge_status',+ state: state.bridge === 'foreign' ? 'foreign-file' : 'unreadable-file',+ bridgePath: state.bridgePath,+ ts: Date.now(),+ });+ return 'unavailable';+ }+ if (record.piBridgeDeclined) {+ // Already asked, already answered. The declined card is still in the+ // transcript, so re-emitting a status here would only add noise.+ this.opts.log.debug(+ { threadId },+ '[acp-threads] Pi bridge prompt already declined for this thread — not re-asking',+ );+ return 'unavailable';+ }+ const ensure = this.opts.ensurePiAcpBridge;+ if (ensure === undefined) {+ this.opts.log.warn(+ { threadId },+ '[acp-threads] Pi bridge is not provisioned and no provisioning seam is wired — not prompting',+ );+ return 'unavailable';+ }++ const requestId = crypto.randomUUID();+ const decision = await this.requestPiBridgeConsent(record, requestId, state, consentBudgetMs);+ // Recorded before the closed gate: a user who declines and immediately+ // closes has still answered, and reopening must not re-ask.+ if (decision === 'declined') record.piBridgeDeclined = true;+ if (record.closed) return 'unknown';+ if (decision !== 'granted') {+ this.opts.log.info(+ { threadId, decision },+ '[acp-threads] Pi bridge not provisioned — the thread continues without OK tools',+ );+ return 'unavailable';+ }++ let result: PiAcpBridgeEnsureResult;+ try {+ result = await ensure(record.cwd);+ } catch (err) {+ const detail = err instanceof Error ? err.message : String(err);+ this.opts.log.warn({ err, threadId }, '[acp-threads] Pi bridge provisioning threw');+ this.appendPiBridgeFailure(record, requestId, 'bridge-failed', state.bridgePath, { detail });+ return 'unavailable';+ }+ if (result.ok) {+ this.opts.log.info(+ { threadId, bridge: result.bridge, trust: result.trust, bridgePath: result.bridgePath },+ '[acp-threads] provisioned the Pi bridge extension for this project',+ );+ if (record.closed) return 'unknown';+ this.appendEvent(record, {+ kind: 'pi_bridge_status',+ requestId,+ state: 'ready',+ bridgePath: result.bridgePath,+ bridge: result.bridge,+ trust: result.trust,+ ts: Date.now(),+ });+ return 'loadable';+ }+ // Half-landed outcomes are their own answer: a bridge file with no trust+ // entry is inert, and the copy has to say which half is missing rather+ // than claim the whole thing failed.+ const bridgeLanded =+ result.bridge === 'written' || result.bridge === 'refreshed' || result.bridge === 'unchanged';+ const state2: PiBridgeThreadState =+ result.bridge === 'refused-foreign'+ ? 'foreign-file'+ : result.bridge === 'refused-unreadable'+ ? 'unreadable-file'+ : bridgeLanded+ ? 'trust-failed'+ : 'bridge-failed';+ // Logged before the closed gate below: a disk-full or permission failure+ // during provisioning has to leave a trace whether or not anyone is still+ // watching, and closing the thread is exactly what an impatient user does+ // while a slow write is failing. `record.closed` gates the UI event, never+ // the server-side record of what happened.+ this.opts.log.warn(+ {+ threadId,+ bridge: result.bridge,+ trust: result.trust,+ bridgePath: result.bridgePath,+ err: result.error,+ },+ '[acp-threads] Pi bridge provisioning did not complete — the thread continues without OK tools',+ );+ this.appendPiBridgeFailure(record, requestId, state2, result.bridgePath, {+ bridge: result.bridge,+ trust: result.trust,+ ...(result.error !== undefined ? { detail: result.error } : {}),+ });+ return 'unavailable';+ }++ private appendPiBridgeFailure(+ record: ThreadRecord,+ requestId: string,+ state: PiBridgeThreadState,+ bridgePath: string,+ extra: { bridge?: PiBridgeWriteAction; trust?: PiTrustWriteAction; detail?: string },+ ): void {+ // The caller has already logged; this is the UI half, and a torn-down+ // thread has nobody to show it to.+ if (record.closed) return;+ this.appendEvent(record, {+ kind: 'pi_bridge_status',+ requestId,+ state,+ bridgePath,+ ...extra,+ ts: Date.now(),+ });+ }++ /**+ * Emit a Pi bridge status that answers no prompt, collapsing an unchanged+ * repeat. Session setup runs again on every resume, so a standing condition+ * (someone else's file at the managed path) would otherwise stack one+ * identical, unactionable row per reopen for the life of the transcript.+ */+ private emitPiBridgeStatus(+ record: ThreadRecord,+ event: Extract<ThreadEvent, { kind: 'pi_bridge_status' }>,+ ): void {+ if (record.lastPiBridgeStatus === event.state) return;+ record.lastPiBridgeStatus = event.state;+ this.appendEvent(record, event);+ }++ /**+ * Emit a `pi_bridge_consent_request` (retained + replayed like a permission+ * prompt) and park until the user answers via a+ * `pi_bridge_consent_response` frame, the request times out, or the thread+ * closes. Nothing about the answer is written to disk — the transcript is+ * history, not a store anything consults.+ */+ private requestPiBridgeConsent(+ record: ThreadRecord,+ requestId: string,+ state: PiAcpBridgeProbe,+ budgetMs: number,+ ): Promise<'granted' | 'declined' | 'timeout' | 'closed'> {+ this.appendEvent(record, {+ kind: 'pi_bridge_consent_request',+ requestId,+ agentName: record.info.agent.name,+ bridgePath: state.bridgePath,+ cwd: record.cwd,+ otherExtensions: state.otherExtensions,+ ts: Date.now(),+ });+ return new Promise((resolvePromise) => {+ const timer = setTimeout(() => {+ record.pendingPiBridgeConsent.delete(requestId);+ this.appendEvent(record, {+ kind: 'pi_bridge_consent_resolved',+ requestId,+ decision: 'timeout',+ ts: Date.now(),+ });+ resolvePromise('timeout');+ }, budgetMs);+ timer.unref?.();+ record.pendingPiBridgeConsent.set(requestId, { resolve: resolvePromise, timer });+ });+ }++ /** Answer a parked Pi bridge-provisioning prompt from the client. */+ respondPiBridgeConsent(+ threadId: string,+ requestId: string,+ outcome: { kind: 'granted' } | { kind: 'declined' },+ ): void {+ const t = this.mustGet(threadId);+ const pending = t.pendingPiBridgeConsent.get(requestId);+ if (pending === undefined) return;+ t.pendingPiBridgeConsent.delete(requestId);+ clearTimeout(pending.timer);+ const decision = outcome.kind === 'granted' ? 'granted' : 'declined';+ this.appendEvent(t, {+ kind: 'pi_bridge_consent_resolved',+ requestId,+ decision,+ ts: Date.now(),+ });+ pending.resolve(decision);+ }+private async startThread(record: ThreadRecord,params: {@@ -1562,6 +2051,7 @@ export class AcpThreadManager {settings?: { config?: Record<string, string | boolean>; modeId?: string };},custom: CustomAgentEntry | null,+ consentBudgetMs: number = CONSENT_TIMEOUT_MS,): Promise<void> {let handshake: Awaited<ReturnType<AcpThreadManager['connectAgent']>>;try {@@ -1583,7 +2073,12 @@ export class AcpThreadManager {if (handshake === null) return;const { conn, init, launch } = handshake;- if ((await this.openSession(record, conn, init, params.settings)) !== true) return;+ if (+ (await this.openSession(record, conn, init, params.settings, 'park', consentBudgetMs)) !==+ true+ ) {+ return;+ }// Startup latency is a known UX sore point (npx resolution + node boot +// handshake, serialized) — keep it measurable per launch kind.this.opts.log.info(@@ -1629,12 +2124,13 @@ export class AcpThreadManager {init: InitializeResponse,settings?: { config?: Record<string, string | boolean>; modeId?: string },onAuthRequired: 'park' | 'report' = 'park',+ consentBudgetMs: number = CONSENT_TIMEOUT_MS,): Promise<boolean | 'auth-required'> {// A fresh session invalidates whatever a previous one advertised (retry// and post-authenticate reopen reach here with a dead session's list) —// back to "not yet known" until this session's update arrives.record.info.availableCommands = null;- const mcpServers = await this.buildMcpServers(record, init);+ const { servers: mcpServers } = await this.buildMcpServers(record, init, consentBudgetMs);try {const session = await conn.agent.request(acpMethods.agent.session.new, {cwd: record.cwd,@@ -1780,7 +2276,12 @@ export class AcpThreadManager {throw new ThreadOpError('not-ready', 'thread closed during resume');}const { conn, init } = handshake;- const mcpServers = await this.buildMcpServers(t, init);+ // The client is blocked on this call — see BLOCKING_CONSENT_TIMEOUT_MS.+ const { servers: mcpServers } = await this.buildMcpServers(+ t,+ init,+ BLOCKING_CONSENT_TIMEOUT_MS,+ );const caps = init.agentCapabilities;const viaResume = caps?.sessionCapabilities?.resume != null;let response: { modes?: unknown; configOptions?: unknown };@@ -1907,7 +2408,12 @@ export class AcpThreadManager {t.turnActive = false;this.emitStatus(t, 'installing');try {- await this.startThread(t, { agent: t.agentRef, settings: t.launchSettings }, custom);+ await this.startThread(+ t,+ { agent: t.agentRef, settings: t.launchSettings },+ custom,+ BLOCKING_CONSENT_TIMEOUT_MS,+ );} catch (err) {const detail = err instanceof Error ? err.message : String(err);this.emitStatus(t, 'error', detail, { reason: 'connect', agentMessage: detail });@@ -2000,7 +2506,14 @@ export class AcpThreadManager {// any failure but auth tears the process down here, exactly as at launch.// The create-time settings ride along so a session recovered through a// sign-in opens on the same model/mode a first launch would have.- const opened = await this.openSession(t, conn, init, t.launchSettings, 'report');+ const opened = await this.openSession(+ t,+ conn,+ init,+ t.launchSettings,+ 'report',+ BLOCKING_CONSENT_TIMEOUT_MS,+ );if (opened === 'auth-required') {// The sign-in succeeded and the agent STILL won't open a session: it// read its credentials at startup and this process predates them. A@@ -2076,7 +2589,7 @@ export class AcpThreadManager {t.closed = true;t.suppressUpdates = false;this.failPendingPermissions(t);- this.failPendingRuntimeConsent(t);+ this.failPendingConsents(t);try {t.conn?.close();} catch {@@ -2792,7 +3305,7 @@ export class AcpThreadManager {t.closed = true; // Suppress exit/conn status handlers during teardown.this.clearSteer(t);this.failPendingPermissions(t);- this.failPendingRuntimeConsent(t);+ this.failPendingConsents(t);try {t.conn?.close();} catch {@@ -3291,13 +3804,15 @@ export class AcpThreadManager {t.pendingPermissions.clear();}- /** Resolve any parked runtime-consent prompts as `closed` during teardown. */- private failPendingRuntimeConsent(t: ThreadRecord): void {- for (const pending of t.pendingRuntimeConsent.values()) {- clearTimeout(pending.timer);- pending.resolve('closed');+ /** Resolve every parked consent prompt as `closed` during teardown. */+ private failPendingConsents(t: ThreadRecord): void {+ for (const map of [t.pendingRuntimeConsent, t.pendingPiBridgeConsent]) {+ for (const pending of map.values()) {+ clearTimeout(pending.timer);+ pending.resolve('closed');+ }+ map.clear();}- t.pendingRuntimeConsent.clear();}/**@@ -3465,6 +3980,9 @@ function rehydratedRecord(meta: PersistedThreadMeta): ThreadRecord {subscribers: new Set(),pendingPermissions: new Map(),pendingRuntimeConsent: new Map(),+ pendingPiBridgeConsent: new Map(),+ piBridgeDeclined: false,+ lastPiBridgeStatus: null,stderrTail: [],authStderr: null,terminals: null,diff --git a/packages/server/src/acp/thread-socket.ts b/packages/server/src/acp/thread-socket.tsindex 4136e315c..7332da8bb 100644--- a/packages/server/src/acp/thread-socket.ts+++ b/packages/server/src/acp/thread-socket.ts@@ -164,6 +164,10 @@ export function attachAcpThreadSocket(manager.respondRuntimeConsent(frame.threadId, frame.requestId, frame.outcome);return;}+ case 'pi_bridge_consent_response': {+ manager.respondPiBridgeConsent(frame.threadId, frame.requestId, frame.outcome);+ return;+ }case 'cancel': {manager.cancel(frame.threadId);return;diff --git a/packages/server/src/boot.ts b/packages/server/src/boot.tsindex 57139d44d..853b2f8f8 100644--- a/packages/server/src/boot.ts+++ b/packages/server/src/boot.ts@@ -251,6 +251,15 @@ export interface BootServerOptions* keeps unconditional OK-MCP injection for ACP threads.*/probeHarnessManagedMcpEntry?: AcpThreadManagerOptions['probeHarnessManagedMcpEntry'];+ /**+ * Forwarded to the ACP thread manager — see+ * `AcpThreadManagerOptions.probePiAcpBridge` / `ensurePiAcpBridge`. `ok+ * start` and the Electron utility wire the CLI's Pi bridge primitives;+ * unset means a Pi thread is never offered the bridge and has OK tools only+ * where `ok init` already wired the project.+ */+ probePiAcpBridge?: AcpThreadManagerOptions['probePiAcpBridge'];+ ensurePiAcpBridge?: AcpThreadManagerOptions['ensurePiAcpBridge'];/*** Idle-shutdown threshold in milliseconds. `null` disables idle-shutdown* entirely (Electron utility sets this to `null` — window lifecycle@@ -956,8 +965,10 @@ async function bootServerInner(opts: BootServerOptions): Promise<BootedServer> {// the MCP-tools 401, that failure is SILENT (the agent just loses OK tools),// so do not repoint this at `externalUrl`.getServerUrl: () => internalBaseUrl(),- getMcpStdioCommand: () => buildOkMcpStdioCommand(opts.localOpCliArgs, boundPort),+ getMcpStdioCommand: () => buildOkMcpStdioCommand(opts.localOpCliArgs, boundPort, { log }),probeHarnessManagedMcpEntry: opts.probeHarnessManagedMcpEntry,+ probePiAcpBridge: opts.probePiAcpBridge,+ ensurePiAcpBridge: opts.ensurePiAcpBridge,log,});// Rehydrate archived threads (metadata-only scan) before the WS surfacediff --git a/packages/server/src/git-preflight.ts b/packages/server/src/git-preflight.tsindex 9c2ecbf31..c93537f54 100644--- a/packages/server/src/git-preflight.ts+++ b/packages/server/src/git-preflight.ts@@ -308,10 +308,41 @@ export function __seedResolveOnPathCacheForTests(name: string, resolvedPath: strresolveOnPathCache.set(name, resolvedPath);}-export function resolveOnPath(name: string): string | null {+/**+ * Absolute path a command name resolves to, or null.+ *+ * `pathOverride` probes against a PATH other than the one this process was+ * started with — the caller that needs it resolves a command it will hand to a+ * child spawned with a WIDER PATH than the server's own, so probing the+ * server's would report "missing" for something the child would find. It joins+ * the cache key, since the same name legitimately resolves differently under a+ * different PATH.+ */+/**+ * `process.env` with PATH replaced under whatever spelling this process already+ * uses (Windows spells it `Path`) — setting a second spelling alongside the+ * existing one leaves the probe reading whichever the platform happens to pick.+ */+function withPath(path: string): NodeJS.ProcessEnv {+ const next: NodeJS.ProcessEnv = {};+ let key = 'PATH';+ for (const [k, v] of Object.entries(process.env)) {+ if (k.toLowerCase() === 'path') {+ key = k;+ continue;+ }+ next[k] = v;+ }+ next[key] = path;+ return next;+}++export function resolveOnPath(name: string, pathOverride?: string): string | null {if (!SAFE_COMMAND_NAME_RE.test(name)) return null;- const cached = resolveOnPathCache.get(name);+ const cacheKey = pathOverride === undefined ? name : `${pathOverride}\u0000${name}`;+ const cached = resolveOnPathCache.get(cacheKey);if (cached !== undefined) return cached;+ const spawnEnv = pathOverride === undefined ? undefined : withPath(pathOverride);// `timeout` bounds the worst case for pathological PATH entries (stale NFS// mount, slow network filesystem) that would otherwise hang the boot// sequence indefinitely — the failure-path callers (`buildGuidance`,@@ -323,7 +354,7 @@ export function resolveOnPath(name: string): string | null {const result = spawnSync('where',[name],- withHiddenWindowsConsole({ encoding: 'utf-8', timeout: PROBE_TIMEOUT_MS }),+ withHiddenWindowsConsole({ encoding: 'utf-8', timeout: PROBE_TIMEOUT_MS, env: spawnEnv }),);if (result.status !== 0) {resolved = null;@@ -341,6 +372,7 @@ export function resolveOnPath(name: string): string | null {withHiddenWindowsConsole({encoding: 'utf-8',timeout: PROBE_TIMEOUT_MS,+ env: spawnEnv,}),);if (result.status !== 0) {@@ -353,7 +385,7 @@ export function resolveOnPath(name: string): string | null {}}if (resolved !== null) {- resolveOnPathCache.set(name, resolved);+ resolveOnPathCache.set(cacheKey, resolved);}return resolved;}diff --git a/packages/server/src/mcp-http.ts b/packages/server/src/mcp-http.tsindex 312440a9e..a95a94218 100644--- a/packages/server/src/mcp-http.ts+++ b/packages/server/src/mcp-http.ts@@ -237,10 +237,12 @@ export function createMcpHttpHandler(opts: McpHttpHandlerOptions): McpHttpHandle);}- // Only the HTTP MCP entry OK injects for an agent it hosts sets this;- // an external client (Cursor/Codex outside the app, an `ok start`- // consumer) never does and keeps the plain-URL behavior. Read per- // session rather than per process because one server answers both.+ // Only an HTTP MCP entry OK injects itself sets this. Read per session+ // rather than per process because one server answers both hosted and+ // external clients. Absence is the safe default, not a proof of+ // externality — a hosted agent whose harness spawns OK's own managed MCP+ // entry connects unmarked (see MCP_HOSTED_AGENT_HEADER) and lands in the+ // plain-URL behavior an external client wants.const isHostedAgent = firstHeader(req.headers[MCP_HOSTED_AGENT_HEADER]) === '1';const transport = new StreamableHTTPServerTransport({diff --git a/packages/server/src/mcp/agent-identity.ts b/packages/server/src/mcp/agent-identity.tsindex 2e9620684..af157a800 100644--- a/packages/server/src/mcp/agent-identity.ts+++ b/packages/server/src/mcp/agent-identity.ts@@ -54,9 +54,16 @@ export const MCP_CONNECTION_ID_HEADER = 'x-ok-connection-id';* over HTTP, and the signal has to stay per-connection rather than* per-process: one shared server answers both the in-app agent panel and* external clients (an outside Cursor/Codex, an `ok start` consumer), and- * those external clients legitimately want a navigable URL. Only the entry OK- * injects for an agent it hosts sets this header, so absent means "not- * hosted" and the plain-URL behavior is preserved by default.+ * those external clients legitimately want a navigable URL.+ *+ * Only an entry OK injects itself carries this header, and its absence is NOT+ * proof that the caller is external. A hosted agent whose harness loads OK's+ * own managed MCP entry from its editor config opens a connection OK never+ * wrote, so no marker rides it, and the marker cannot be put in that config+ * entry either — the same entry serves the user's ordinary, non-hosted use of+ * that editor. Absent is therefore treated as external deliberately, not+ * confidently: a plain URL is useless advice to an agent inside the app, but+ * an `ok open` steer is wrong advice to one outside it.*/export const MCP_HOSTED_AGENT_HEADER = 'x-ok-hosted-agent';diff --git a/packages/server/src/mcp/tools/get-preview-url.ts b/packages/server/src/mcp/tools/get-preview-url.tsindex 0cf280187..f626a4ffd 100644--- a/packages/server/src/mcp/tools/get-preview-url.ts+++ b/packages/server/src/mcp/tools/get-preview-url.ts@@ -93,9 +93,13 @@ interface GetPreviewUrlDeps {* responses lead with a steer to run `ok open <target>` (which focuses the* target up for the user) rather than navigating the* returned URL — an agent living inside the app has no business handing its- * user a localhost link to the app they are looking at. Absent/false- * everywhere else (the shared collab server, an external Cursor/Codex with- * its own browser pane, plain CLI), so those paths are unchanged.+ * user a localhost link to the app they are looking at. False for external+ * clients (the shared collab server, an external Cursor/Codex with its own+ * browser pane, plain CLI) — but false is not proof of external: a hosted+ * agent whose harness spawns OK's server from its own editor config arrives+ * unmarked when that harness strips the spawn env, and is deliberately+ * treated as external here (a plain URL is useless advice inside the app;+ * an `ok open` steer is wrong advice outside it).*/isHostedAgent?: boolean;/**