Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Refuse filesystem roots as projects and show setup path (PRD-9076) (#5801)
Andrew Mikofalvy388068456143
diff --git a/.changeset/prd-9076-refuse-drive-root-projects.md b/.changeset/prd-9076-refuse-drive-root-projects.mdnew file mode 100644index 000000000..32cafecf6--- /dev/null+++ b/.changeset/prd-9076-refuse-drive-root-projects.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++OpenKnowledge now refuses to set up a project at the top of a drive, and the desktop app also refuses system folders. Open folder reports an error when the picker closes without a folder.diff --git a/.changeset/prd-9076-setup-dialog-path.md b/.changeset/prd-9076-setup-dialog-path.mdnew file mode 100644index 000000000..70c2a69b5--- /dev/null+++ b/.changeset/prd-9076-setup-dialog-path.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++The setup dialog now shows the full project folder path and counts a single markdown file correctly.diff --git a/docs/content/reference/cli.mdx b/docs/content/reference/cli.mdxindex 43ae1c46c..0bc173275 100644--- a/docs/content/reference/cli.mdx+++ b/docs/content/reference/cli.mdx@@ -38,6 +38,8 @@ ok initIn a sub-folder of a git repo, `ok init` sets the project up at the git root — one `.ok/` per repo — and the whole repo becomes the content scope. Pass `--content-dir <dir>` to limit content to one folder (`ok init --content-dir .` scopes it to the folder you run in); the choice is saved as `content.dir` in `.ok/config.yml`. For scripts, `--json` prints a structured JSON summary. `ok init` also installs the user-global `open-knowledge-discovery` skill, the same one the desktop's first launch sets up; `--skills discovery,write-skill` adds the authoring skill, and `--no-skills` installs none on that run. `open-knowledge-write-skill` is otherwise one click away in **Settings → Skills Studio**.+`ok init` refuses to set up a project in your home directory or at the top of a drive (`/`, `C:\`, a network share root) and exits with status 64. Make a folder for the project and run it there. The desktop app's **Open folder** refuses the same folders, plus system folders such as `/usr` or `C:\Windows`.+<Callout type="info" title="If an editor shows “left unchanged”">OpenKnowledge prints `left unchanged (<reason>)` when it cannot safely read or update an editor's config. This can mean a permission problem, a path that is not a regular file, invalid JSON/TOML/YAML, duplicate MCP server blocks, or an unusually large file. The config stays **byte-for-byte untouched**. Follow the printed reason and then re-run `ok init`. Correct permissions or the path for an access failure, or repair syntax for a parse failure. For `no format-preserving writer available`, reinstall OpenKnowledge to restore its TOML writer, or add the MCP entry manually as described in the [Codex integration guide](/docs/integrations/codex#verify).</Callout>diff --git a/packages/app/src/components/ConsentDialogBody.dom.test.tsx b/packages/app/src/components/ConsentDialogBody.dom.test.tsxindex bdbe01b44..065cca122 100644--- a/packages/app/src/components/ConsentDialogBody.dom.test.tsx+++ b/packages/app/src/components/ConsentDialogBody.dom.test.tsx@@ -158,6 +158,55 @@ describe('ConsentDialogBody runtime form behavior', () => {},);+ test.each([+ { count: 0, expected: 'Found 0 markdown files' },+ { count: 1, expected: 'Found 1 markdown file' },+ { count: 2, expected: 'Found 2 markdown files' },+ ])('pluralizes the count line for $count files', async ({ count, expected }) => {+ setBridge({+ ...statusBridge([]),+ onboarding: {+ probeContent: async () => ({ ok: true, count, sample: [], truncated: false }),+ },+ });+ renderConsentDialog();++ await waitFor(() => {+ expect(screen.getByTestId('consent-preview').textContent).toBe(expected);+ });+ });++ test('always shows the absolute project folder', () => {+ const harness = makeStore();+ render(+ <ConsentDialogBody+ payload={{ ...payload, pickedPath: '/Users/test/notes', projectDir: '/Users/test/notes' }}+ store={harness.store}+ />,+ );++ expect(screen.getByTestId('consent-project-dir').textContent).toContain('/Users/test/notes');+ expect(screen.getByText('/Users/test/notes').getAttribute('dir')).toBe('ltr');+ });++ test('names the project folder once when it was promoted to the git root', () => {+ const harness = makeStore();+ render(+ <ConsentDialogBody+ payload={{+ ...payload,+ pickedPath: '/Users/test/repo/docs',+ projectDir: '/Users/test/repo',+ gitRootPromoted: true,+ }}+ store={harness.store}+ />,+ );++ expect(screen.getAllByText('/Users/test/repo')).toHaveLength(1);+ expect(screen.getByText('/Users/test/repo').getAttribute('dir')).toBe('ltr');+ });+test.each([{ locale: 'en', headline: '5,000', remaining: '4,999' },{ locale: 'fr', headline: '5\u202f000', remaining: '4\u202f999' },diff --git a/packages/app/src/components/ConsentDialogBody.tsx b/packages/app/src/components/ConsentDialogBody.tsxindex d145a0135..5c82251e3 100644--- a/packages/app/src/components/ConsentDialogBody.tsx+++ b/packages/app/src/components/ConsentDialogBody.tsx@@ -4,7 +4,7 @@import { receivesProjectIntegrationWrite } from '@inkeep/open-knowledge-core/constants/editors';import type { MessageDescriptor } from '@lingui/core';-import { msg } from '@lingui/core/macro';+import { msg, plural } from '@lingui/core/macro';import { Trans, useLingui } from '@lingui/react/macro';import { ChevronRight } from 'lucide-react';import type React from 'react';@@ -56,13 +56,10 @@ const PROBE_THROTTLE_MS = 750;const DETECTION_GRACE_MS = 8_000;const WARNING_COPY: Record<OkOnboardingWarningKind, MessageDescriptor> = {- root: msg`You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want.`,- home: msg`You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files.`,'home-documents': msg`You picked ~/Documents. OpenKnowledge will index every markdown file under it. If you only want to manage a sub-folder, choose a smaller scope.`,'home-desktop': msg`You picked ~/Desktop. OpenKnowledge will index everything on your desktop.`,'home-downloads': msg`You picked ~/Downloads. Files there are usually transient — consider a stable folder instead.`,'volumes-mount': msg`This path is on an external volume (/Volumes/...). OpenKnowledge will lose track of files when the drive ejects.`,- 'drive-root': msg`This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive.`,};interface ConsentDialogBodyProps {@@ -307,13 +304,22 @@ function ConsentDialogForm({ payload, store, toast, detectionGraceMs }: ConsentD{payload.gitRootPromoted ? (<p className="text-1sm text-muted-foreground"><Trans>- OpenKnowledge initializes at <code>{projectDir}</code> — the parent of{' '}- <code>{pickedRelative}</code> because it contains a <code>.git</code> folder (one- .ok/ per git repo). <code>Content directory</code> defaults to <code>.</code> (the- whole repo); type a sub-folder to narrow it.+ OpenKnowledge initializes at <code dir="ltr">{projectDir}</code> — the parent of{' '}+ <code dir="ltr">{pickedRelative}</code> because it contains a <code>.git</code>{' '}+ folder (one .ok/ per git repo). <code>Content directory</code> defaults to{' '}+ <code>.</code> (the whole repo); type a sub-folder to narrow it.</Trans></p>- ) : null}+ ) : (+ <p+ className="text-1sm text-muted-foreground break-all"+ data-testid="consent-project-dir"+ >+ <Trans>+ Project folder: <code dir="ltr">{projectDir}</code>+ </Trans>+ </p>+ )}{payload.warnings.length > 0 ? (<div@@ -489,7 +495,13 @@ function ProbePreview({ probe }: { probe: OkOnboardingProbeContentResult | nullconst numberFormat = new Intl.NumberFormat(i18n.locale);const formattedCount = numberFormat.format(probe.count);const countDisplay = probe.truncated ? `≥ ${formattedCount}` : formattedCount;- const countLine = t`Found ${countDisplay} markdown files`;+ const count = probe.count;+ const countLine = probe.truncated+ ? t`Found ${countDisplay} markdown files`+ : t`${plural(count, {+ one: `Found ${formattedCount} markdown file`,+ other: `Found ${formattedCount} markdown files`,+ })}`;if (probe.sample.length === 0) {return (<p className="text-1sm text-muted-foreground" data-testid="consent-preview">diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 707214722..c8f9d8f60 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -1495,6 +1495,7 @@"DqyItq": ["سجلات OpenKnowledge عبر المشاريع. لا يوجد مشروع مفتوح، لذا لا تُضمَّن سجلات خادم المشروع."],+ "DrKYv7": ["مجلد المشروع: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0",@@ -2332,7 +2333,6 @@"LzM_ga": ["تصفية المهارات"],"M0jOcG": ["العرض في مصدر Markdown"],"M1OfV9": ["تشخيص المصدر التالي"],- "M3ytY_": ["يبدو هذا جذر قرص (مثل C:\\). سيفحص البناء هنا قرصًا كاملًا."],"M5_9s2": ["يجري إرسال التقرير"],"M5mfAe": ["إضافة وسم"],"M6mvVi": ["نسخ المسار النسبي"],@@ -3693,9 +3693,6 @@"ZW2yR_": ["إضافة مسار مخصص"],"ZW3mlR": ["وضع عرض الفروق"],"ZWgr0b": ["في مجلد فرعي"],- "ZWolSV": [- "اخترت جذر نظام الملفات (/). سيفحص البناء هنا كل ملف على هذا الجهاز — تأكد أن هذا ما تريده."- ],"ZWwYwM": ["الفرع الأساسي"],"ZWxfrc": ["مسح خصائص المجلد"],"ZWyHmq": ["هذا المشروع"],@@ -3820,9 +3817,6 @@"_Pmhxt": ["… تم اقتطاع المخرجات السابقة"],"_PnPuw": ["تم التقاط ", ["0"], " من ", ["1"], "."],"_QwkMu": ["لا توجد مسارات مطابقة"],- "_RcqUM": [- "اخترت مجلدك الرئيسي. سيفهرس OpenKnowledge كل ما في شجرة مجلدك الرئيسي — وهو كبير وقد يُظهر ملفات شخصية."- ],"_SDGzH": ["المتابعة في المتصفح"],"_SkqfM": ["قبول الوارد"],"_TDESN": ["خطأ في الشبكة - لا يزال ", ["kind"], " «", ["createdPath"], "» موجودًا على القرص"],@@ -6848,6 +6842,20 @@],"zZ_I5K": ["فتح قائمة المشروع"],"z_4xza": ["فشل تحميل المستندات. اضغط <0>Esc</0> وأعد الفتح للمحاولة مرة أخرى."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "zero": ["عُثر على ", ["formattedCount"], " ملف Markdown"],+ "one": ["عُثر على ", ["formattedCount"], " ملف Markdown"],+ "two": ["عُثر على ", ["formattedCount"], " ملفَّي Markdown"],+ "few": ["عُثر على ", ["formattedCount"], " ملفات Markdown"],+ "many": ["عُثر على ", ["formattedCount"], " ملف Markdown"],+ "other": ["عُثر على ", ["formattedCount"], " ملف Markdown"]+ }+ ]+ ],"zaXlhf": ["كتلة الخصائص أعلى هذا المستند بها خطأ تنسيقي. بدّل إلى وضع المصدر لإصلاحه."],"zbymaY": ["قبل ", ["0"], " دقيقة"],"zd00pH": ["نسخ المسار"],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex 673ed7de0..d29aa0b4d 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, zero {هل تريد بالتأكيد حذف الملفاmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, zero {هل تريد بالتأكيد حذف الملفات/المجلدات التالية ومحتوياتها؟} one {هل تريد بالتأكيد حذف الملف/المجلد التالي ومحتوياته؟} two {هل تريد بالتأكيد حذف العنصرين التاليين ومحتوياتهما؟} few {هل تريد بالتأكيد حذف العناصر # التالية ومحتوياتها؟} many {هل تريد بالتأكيد حذف # عنصرًا من الملفات/المجلدات التالية ومحتوياتها؟} other {هل تريد بالتأكيد حذف # عنصر من الملفات/المجلدات التالية ومحتوياتها؟}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, zero {عُثر على {formattedCount} ملف Markdown} one {عُثر على {formattedCount} ملف Markdown} two {عُثر على {formattedCount} ملفَّي Markdown} few {عُثر على {formattedCount} ملفات Markdown} many {عُثر على {formattedCount} ملف Markdown} other {عُثر على {formattedCount} ملف Markdown}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, zero {يسلّم المشكلات # إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.} one {يسلّم المشكلة الواحدة إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.} two {يسلّم المشكلتين إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.} few {يسلّم كل المشكلات # إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.} many {يسلّم كل المشكلات # إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.} other {يسلّم كل المشكلات # إلى وكيل الذكاء الاصطناعي لديك، بما في ذلك ما لا إصلاح تلقائي له.}}"@@ -11384,6 +11388,10 @@ msgstr "تفاصيل المشروع"msgid "Project folder created, but git init failed. Try again."msgstr "أُنشئ مجلد المشروع، لكن فشل git init. أعد المحاولة."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "مجلد المشروع: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "خادم MCP للمشروع"@@ -15451,10 +15459,6 @@ msgstr "قد تكون هذه القائمة قديمة — آخر قراءة {stmsgid "This list may be out of date."msgstr "قد تكون هذه القائمة قديمة."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "يبدو هذا جذر قرص (مثل C:\\). سيفحص البناء هنا قرصًا كاملًا."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "اخترت ~/Documents. سيفهرس OpenKnowledge كل ملف Markdownmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "اخترت ~/Downloads. الملفات هناك عابرة عادةً — ففكّر في مجلد ثابت بدلًا من ذلك."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "اخترت جذر نظام الملفات (/). سيفحص البناء هنا كل ملف على هذا الجهاز — تأكد أن هذا ما تريده."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "اخترت مجلدك الرئيسي. سيفهرس OpenKnowledge كل ما في شجرة مجلدك الرئيسي — وهو كبير وقد يُظهر ملفات شخصية."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "اكتمل إعدادك!"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 18deb9a87..755be697c 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -1250,6 +1250,7 @@"DqyItq": ["বিভিন্ন প্রজেক্টের OpenKnowledge লগ। কোনো প্রজেক্ট খোলা নেই, তাই প্রজেক্ট সার্ভারের লগ অন্তর্ভুক্ত নেই।"],+ "DrKYv7": ["প্রকল্পের ফোল্ডার: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " ত্রুটি"], "other": ["#", " ত্রুটি"] }]],"DskIkK": ["সাইন-ইন স্ট্রিম নিশ্চিতকরণ ছাড়াই শেষ হয়েছে — অনুগ্রহ করে আবার চেষ্টা করুন"],"DuCPiG": [@@ -1973,7 +1974,6 @@"LzM_ga": ["স্কিল ছাঁকুন"],"M0jOcG": ["সোর্স markdown-এ দেখুন"],"M1OfV9": ["পরবর্তী সোর্স নির্ণয়"],- "M3ytY_": ["এটি একটি ড্রাইভের রুট মনে হচ্ছে (যেমন C:\\)। এখানে কাঠামো গড়লে পুরো ড্রাইভ স্ক্যান হবে।"],"M5_9s2": ["রিপোর্ট পাঠানো হচ্ছে"],"M5mfAe": ["ট্যাগ যোগ করুন"],"M6mvVi": ["আপেক্ষিক পথ কপি করুন"],@@ -3127,9 +3127,6 @@"ZW2yR_": ["কাস্টম পথ যোগ করুন"],"ZW3mlR": ["পার্থক্য রেন্ডার মোড"],"ZWgr0b": ["একটি উপ-ফোল্ডারে"],- "ZWolSV": [- "আপনি ফাইল সিস্টেমের রুট (/) বেছেছেন। এখানে কাঠামো গড়লে এই মেশিনের প্রতিটি ফাইল স্ক্যান হবে — নিশ্চিত হয়ে নিন আপনি সেটাই চান।"- ],"ZWwYwM": ["ভিত্তি ব্রাঞ্চ"],"ZWxfrc": ["ফোল্ডার প্রপার্টি মুছে ফেলা হয়েছে"],"ZWyHmq": ["এই প্রকল্প"],@@ -3231,9 +3228,6 @@"_Pmhxt": ["… আগের আউটপুট ছেঁটে ফেলা হয়েছে"],"_PnPuw": [["1"], " থেকে ", ["0"], " তোলা হয়েছে।"],"_QwkMu": ["মিলে যাওয়া কোনো পথ নেই"],- "_RcqUM": [- "আপনি আপনার হোম ডিরেক্টরি বেছেছেন। OpenKnowledge আপনার পুরো হোম বৃক্ষের সবকিছু সূচিভুক্ত করবে — এটি বড় এবং এতে ব্যক্তিগত ফাইল সামনে আসতে পারে।"- ],"_SDGzH": ["ব্রাউজারে চালিয়ে যান"],"_SkqfM": ["আগতটি গ্রহণ করুন"],"_TDESN": ["নেটওয়ার্ক ত্রুটি - ", ["kind"], " \"", ["createdPath"], "\" এখনও ডিস্কে আছে"],@@ -5731,6 +5725,16 @@],"zZ_I5K": ["প্রকল্প মেনু খুলুন"],"z_4xza": ["নথি লোড করতে ব্যর্থ। <0>Esc</0> চেপে আবার খুলে চেষ্টা করুন।"],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": [["formattedCount"], "টি markdown ফাইল পাওয়া গেছে"],+ "other": [["formattedCount"], "টি markdown ফাইল পাওয়া গেছে"]+ }+ ]+ ],"zaXlhf": ["এই নথির উপরের প্রপার্টি ব্লকে একটি বিন্যাস ত্রুটি আছে। এটি ঠিক করতে সোর্স মোডে যান।"],"zbymaY": [["0"], " মিনিট আগে"],"zd00pH": ["পথ কপি করুন"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex afad0f469..fb064cfb6 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {আপনি কি নিশ্চিতভাবmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {আপনি কি নিশ্চিতভাবে নিচের # ফাইল/ফোল্ডার এবং তার বিষয়বস্তু মুছতে চান?} other {আপনি কি নিশ্চিতভাবে নিচের # ফাইল/ফোল্ডার এবং সেগুলির বিষয়বস্তু মুছতে চান?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {{formattedCount}টি markdown ফাইল পাওয়া গেছে} other {{formattedCount}টি markdown ফাইল পাওয়া গেছে}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {# সমস্যাটি আপনার AI এজেন্টের হাতে তুলে দেয়, যার কোনো স্বয়ংক্রিয় সমাধান নেই সেটিসহ।} other {সব # সমস্যা আপনার AI এজেন্টের হাতে তুলে দেয়, যেগুলোর কোনো স্বয়ংক্রিয় সমাধান নেই সেগুলোসহ।}}"@@ -11380,6 +11384,10 @@ msgstr "প্রকল্পের বিবরণ"msgid "Project folder created, but git init failed. Try again."msgstr "প্রকল্পের ফোল্ডার তৈরি হয়েছে, কিন্তু git init ব্যর্থ হয়েছে। আবার চেষ্টা করুন।"+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "প্রকল্পের ফোল্ডার: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "প্রকল্প MCP সার্ভার"@@ -15447,10 +15455,6 @@ msgstr "এই তালিকা পুরোনো হতে পারে —msgid "This list may be out of date."msgstr "এই তালিকা পুরোনো হতে পারে।"-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "এটি একটি ড্রাইভের রুট মনে হচ্ছে (যেমন C:\\)। এখানে কাঠামো গড়লে পুরো ড্রাইভ স্ক্যান হবে।"-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16969,14 +16973,6 @@ msgstr "আপনি ~/Documents বেছেছেন। OpenKnowledge এরmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "আপনি ~/Downloads বেছেছেন। সেখানকার ফাইল সাধারণত ক্ষণস্থায়ী — বদলে একটি স্থায়ী ফোল্ডার বিবেচনা করুন।"-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "আপনি ফাইল সিস্টেমের রুট (/) বেছেছেন। এখানে কাঠামো গড়লে এই মেশিনের প্রতিটি ফাইল স্ক্যান হবে — নিশ্চিত হয়ে নিন আপনি সেটাই চান।"--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "আপনি আপনার হোম ডিরেক্টরি বেছেছেন। OpenKnowledge আপনার পুরো হোম বৃক্ষের সবকিছু সূচিভুক্ত করবে — এটি বড় এবং এতে ব্যক্তিগত ফাইল সামনে আসতে পারে।"-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "আপনার সব প্রস্তুত!"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 814c280f2..defcf78b4 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -1295,6 +1295,7 @@"DqyItq": ["OpenKnowledge logs across projects. No project is open, so project server logs are not included."],+ "DrKYv7": ["Project folder: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " error"], "other": ["#", " errors"] }]],"DskIkK": ["Sign-in stream ended without confirmation — please try again"],"DuCPiG": [@@ -2036,9 +2037,6 @@"LzM_ga": ["Filter skills"],"M0jOcG": ["View in source markdown"],"M1OfV9": ["Next source diagnostic"],- "M3ytY_": [- "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."- ],"M5_9s2": ["Sending report"],"M5mfAe": ["Add tag"],"M6mvVi": ["Copy relative path"],@@ -3215,9 +3213,6 @@"ZW2yR_": ["Add custom path"],"ZW3mlR": ["Diff render mode"],"ZWgr0b": ["In a subfolder"],- "ZWolSV": [- "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."- ],"ZWwYwM": ["Base branch"],"ZWxfrc": ["cleared folder properties"],"ZWyHmq": ["This project"],@@ -3324,9 +3319,6 @@"_Pmhxt": ["… earlier output trimmed"],"_PnPuw": ["Picked up ", ["0"], " from ", ["1"], "."],"_QwkMu": ["No matching paths"],- "_RcqUM": [- "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."- ],"_SDGzH": ["Continue in browser"],"_SkqfM": ["Accept incoming"],"_TDESN": ["Network error - ", ["kind"], " \"", ["createdPath"], "\" still exists on disk"],@@ -5944,6 +5936,16 @@],"zZ_I5K": ["Open project menu"],"z_4xza": ["Failed to load docs. Press <0>Esc</0> and re-open to retry."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": ["Found ", ["formattedCount"], " markdown file"],+ "other": ["Found ", ["formattedCount"], " markdown files"]+ }+ ]+ ],"zaXlhf": ["The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 853a54871..a9a39b812 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {Are you sure you want to delete the following # filmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"@@ -11384,6 +11388,10 @@ msgstr "Project details"msgid "Project folder created, but git init failed. Try again."msgstr "Project folder created, but git init failed. Try again."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Project folder: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Project MCP server"@@ -15451,10 +15459,6 @@ msgstr "This list may be out of date — last read {staleRelative}."msgid "This list may be out of date."msgstr "This list may be out of date."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "You picked ~/Documents. OpenKnowledge will index every markdown file undmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "You're all set up!"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 8e39570de..5f840c98d 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -1508,6 +1508,7 @@"DqyItq": ["Registros de OpenKnowledge de varios proyectos. No hay ningún proyecto abierto, por lo que no se incluyen registros del servidor del proyecto."],+ "DrKYv7": ["Carpeta del proyecto: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0",@@ -2368,9 +2369,6 @@"LzM_ga": ["Filtrar habilidades"],"M0jOcG": ["Ver en el markdown de origen"],"M1OfV9": ["Diagnóstico de código siguiente"],- "M3ytY_": [- "Esto parece la raíz de una unidad (p. ej. C:\\). Preparar el proyecto aquí analizará una unidad entera."- ],"M5_9s2": ["Enviando el informe"],"M5mfAe": ["Añadir etiqueta"],"M6mvVi": ["Copiar ruta relativa"],@@ -3718,9 +3716,6 @@"ZW2yR_": ["Añadir ruta personalizada"],"ZW3mlR": ["Modo de renderizado de diferencias"],"ZWgr0b": ["En una subcarpeta"],- "ZWolSV": [- "Elegiste la raíz del sistema de archivos (/). Preparar el proyecto aquí analizará todos los archivos de este equipo; asegúrate de que es lo que quieres."- ],"ZWwYwM": ["Rama base"],"ZWxfrc": ["se borraron las propiedades de la carpeta"],"ZWyHmq": ["Este proyecto"],@@ -3833,9 +3828,6 @@"_Pmhxt": ["… se recortó la salida anterior"],"_PnPuw": ["Se tomó ", ["0"], " de ", ["1"], "."],"_QwkMu": ["Ninguna ruta coincide"],- "_RcqUM": [- "Elegiste tu carpeta personal. OpenKnowledge indexará todo tu árbol personal: es grande y puede sacar a la luz archivos personales."- ],"_SDGzH": ["Continuar en el navegador"],"_SkqfM": ["Aceptar entrante"],"_TDESN": [@@ -6850,6 +6842,17 @@"z_4xza": ["No se pudieron cargar los documentos. Pulsa <0>Esc</0> y vuelve a abrirlo para reintentarlo."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": ["Se encontró ", ["formattedCount"], " archivo markdown"],+ "many": ["Se encontraron ", ["formattedCount"], " archivos markdown"],+ "other": ["Se encontraron ", ["formattedCount"], " archivos markdown"]+ }+ ]+ ],"zaXlhf": ["El bloque de propiedades del principio de este documento tiene un error de formato. Cambia al modo código para arreglarlo."],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex e2778cc43..2bc1d9b01 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {¿Seguro que quieres eliminar el siguiente # archivmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {¿Seguro que quieres eliminar el siguiente # archivo/carpeta y su contenido?} many {¿Seguro que quieres eliminar los siguientes # archivos/carpetas y su contenido?} other {¿Seguro que quieres eliminar los siguientes # archivos/carpetas y su contenido?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {Se encontró {formattedCount} archivo markdown} many {Se encontraron {formattedCount} archivos markdown} other {Se encontraron {formattedCount} archivos markdown}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {Pasa el # problema a tu agente de IA, incluido lo que no tiene arreglo automático.} many {Pasa los # problemas a tu agente de IA, incluido lo que no tiene arreglo automático.} other {Pasa los # problemas a tu agente de IA, incluido lo que no tiene arreglo automático.}}"@@ -11384,6 +11388,10 @@ msgstr "Detalles del proyecto"msgid "Project folder created, but git init failed. Try again."msgstr "Se creó la carpeta del proyecto, pero falló git init. Inténtalo de nuevo."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Carpeta del proyecto: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Servidor MCP del proyecto"@@ -15451,10 +15459,6 @@ msgstr "Puede que esta lista esté desactualizada; última lectura: {staleRelatimsgid "This list may be out of date."msgstr "Puede que esta lista esté desactualizada."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "Esto parece la raíz de una unidad (p. ej. C:\\). Preparar el proyecto aquí analizará una unidad entera."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "Elegiste ~/Documents. OpenKnowledge indexará todos los archivos markdowmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "Elegiste ~/Downloads. Los archivos de ahí suelen ser pasajeros; plantéate una carpeta más estable."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "Elegiste la raíz del sistema de archivos (/). Preparar el proyecto aquí analizará todos los archivos de este equipo; asegúrate de que es lo que quieres."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "Elegiste tu carpeta personal. OpenKnowledge indexará todo tu árbol personal: es grande y puede sacar a la luz archivos personales."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "¡Ya está todo listo!"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 976cc59e6..8cd10b2bc 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -1541,6 +1541,7 @@"DqyItq": ["Journaux OpenKnowledge de plusieurs projets. Aucun projet n’est ouvert ; les journaux du serveur de projet ne sont donc pas inclus."],+ "DrKYv7": ["Dossier du projet : <0>", ["projectDir"], "</0>"],"DsDwR-": [["0",@@ -2412,9 +2413,6 @@"LzM_ga": ["Filtrer les compétences"],"M0jOcG": ["Voir dans la source markdown"],"M1OfV9": ["Diagnostic de source suivant"],- "M3ytY_": [- "Cela ressemble à la racine d'un disque (par ex. C:\\). Créer un projet ici analysera tout le disque."- ],"M5_9s2": ["Envoi du rapport"],"M5mfAe": ["Ajouter une étiquette"],"M6mvVi": ["Copier le chemin relatif"],@@ -3767,9 +3765,6 @@"ZW2yR_": ["Ajouter un chemin personnalisé"],"ZW3mlR": ["Mode de rendu des différences"],"ZWgr0b": ["Dans un sous-dossier"],- "ZWolSV": [- "Vous avez choisi la racine du système de fichiers (/). Créer un projet ici analysera chaque fichier de cette machine — assurez-vous que c'est bien ce que vous voulez."- ],"ZWwYwM": ["Branche de base"],"ZWxfrc": ["propriétés du dossier effacées"],"ZWyHmq": ["Ce projet"],@@ -3884,9 +3879,6 @@"_Pmhxt": ["… sortie antérieure tronquée"],"_PnPuw": [["0"], " pris depuis ", ["1"], "."],"_QwkMu": ["Aucun chemin correspondant"],- "_RcqUM": [- "Vous avez choisi votre répertoire personnel. OpenKnowledge indexera tout ce qu'il contient — c'est volumineux et cela peut faire remonter des fichiers personnels."- ],"_SDGzH": ["Continuer dans le navigateur"],"_SkqfM": ["Accepter l’entrant"],"_TDESN": [@@ -6936,6 +6928,17 @@"z_4xza": ["Échec du chargement des documents. Appuyez sur <0>Échap</0> puis rouvrez pour réessayer."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": [["formattedCount"], " fichier markdown trouvé"],+ "many": [["formattedCount"], " fichiers markdown trouvés"],+ "other": [["formattedCount"], " fichiers markdown trouvés"]+ }+ ]+ ],"zaXlhf": ["Le bloc de propriétés en haut de ce document contient une erreur de mise en forme. Passez en mode source pour la corriger."],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 456c3fd8f..5aff27880 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {Voulez-vous vraiment supprimer le fichier suivant ?msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {Voulez-vous vraiment supprimer le fichier/dossier suivant et son contenu ?} many {Voulez-vous vraiment supprimer les # fichiers/dossiers suivants et leur contenu ?} other {Voulez-vous vraiment supprimer les # fichiers/dossiers suivants et leur contenu ?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {{formattedCount} fichier markdown trouvé} many {{formattedCount} fichiers markdown trouvés} other {{formattedCount} fichiers markdown trouvés}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {Confie le # problème à votre agent IA, y compris ce qui n'a pas de correction automatique.} many {Confie les # problèmes à votre agent IA, y compris ce qui n'a pas de correction automatique.} other {Confie les # problèmes à votre agent IA, y compris ce qui n'a pas de correction automatique.}}"@@ -11384,6 +11388,10 @@ msgstr "Détails du projet"msgid "Project folder created, but git init failed. Try again."msgstr "Dossier de projet créé, mais git init a échoué. Réessayez."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Dossier du projet : <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Serveur MCP du projet"@@ -15451,10 +15459,6 @@ msgstr "Cette liste n'est peut-être pas à jour — dernière lecture {staleRelmsgid "This list may be out of date."msgstr "Cette liste n'est peut-être pas à jour."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "Cela ressemble à la racine d'un disque (par ex. C:\\). Créer un projet ici analysera tout le disque."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "Vous avez choisi ~/Documents. OpenKnowledge indexera chaque fichier markmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "Vous avez choisi ~/Downloads. Les fichiers y sont généralement temporaires — envisagez plutôt un dossier stable."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "Vous avez choisi la racine du système de fichiers (/). Créer un projet ici analysera chaque fichier de cette machine — assurez-vous que c'est bien ce que vous voulez."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "Vous avez choisi votre répertoire personnel. OpenKnowledge indexera tout ce qu'il contient — c'est volumineux et cela peut faire remonter des fichiers personnels."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "Tout est prêt !"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex ff3bc044b..f7da11333 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -1261,6 +1261,7 @@"DqyItq": ["अलग-अलग प्रोजेक्ट के OpenKnowledge लॉग। कोई प्रोजेक्ट खुला नहीं है, इसलिए प्रोजेक्ट सर्वर लॉग शामिल नहीं हैं।"],+ "DrKYv7": ["प्रोजेक्ट फ़ोल्डर: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " त्रुटि"], "other": ["#", " त्रुटियाँ"] }]],"DskIkK": ["साइन-इन स्ट्रीम बिना पुष्टि के समाप्त हुई — कृपया फिर कोशिश करें"],"DuCPiG": [@@ -1970,7 +1971,6 @@"LzM_ga": ["स्किल फ़िल्टर करें"],"M0jOcG": ["स्रोत markdown में देखें"],"M1OfV9": ["अगला स्रोत निदान"],- "M3ytY_": ["यह किसी ड्राइव का रूट लगता है (जैसे C:\\)। यहाँ ढाँचा बनाने पर पूरी ड्राइव स्कैन होगी।"],"M5_9s2": ["रिपोर्ट भेजी जा रही है"],"M5mfAe": ["टैग जोड़ें"],"M6mvVi": ["सापेक्ष पथ कॉपी करें"],@@ -3118,9 +3118,6 @@"ZW2yR_": ["कस्टम पथ जोड़ें"],"ZW3mlR": ["अंतर रेंडर मोड"],"ZWgr0b": ["किसी उप-फ़ोल्डर में"],- "ZWolSV": [- "आपने फ़ाइल सिस्टम का रूट (/) चुना। यहाँ ढाँचा बनाने पर इस मशीन की हर फ़ाइल स्कैन होगी — पक्का कर लें कि आप यही चाहते हैं।"- ],"ZWwYwM": ["आधार ब्रांच"],"ZWxfrc": ["फ़ोल्डर प्रॉपर्टी साफ़ की गईं"],"ZWyHmq": ["यह प्रोजेक्ट"],@@ -3222,9 +3219,6 @@"_Pmhxt": ["… पहले का आउटपुट छाँटा गया"],"_PnPuw": [["1"], " से ", ["0"], " उठाया गया।"],"_QwkMu": ["कोई मेल खाता पथ नहीं"],- "_RcqUM": [- "आपने अपनी होम निर्देशिका चुनी। OpenKnowledge आपके पूरे होम वृक्ष की हर चीज़ अनुक्रमित करेगा — यह बड़ा है और इससे निजी फ़ाइलें सामने आ सकती हैं।"- ],"_SDGzH": ["ब्राउज़र में जारी रखें"],"_SkqfM": ["आने वाला स्वीकारें"],"_TDESN": ["नेटवर्क त्रुटि - ", ["kind"], " \"", ["createdPath"], "\" अब भी डिस्क पर मौजूद है"],@@ -5711,6 +5705,16 @@],"zZ_I5K": ["प्रोजेक्ट मेन्यू खोलें"],"z_4xza": ["दस्तावेज़ लोड करने में विफल। <0>Esc</0> दबाएँ और फिर कोशिश करने के लिए दोबारा खोलें।"],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": [["formattedCount"], " markdown फ़ाइल मिली"],+ "other": [["formattedCount"], " markdown फ़ाइलें मिलीं"]+ }+ ]+ ],"zaXlhf": ["इस दस्तावेज़ के ऊपर मौजूद प्रॉपर्टी ब्लॉक में एक फ़ॉर्मैटिंग त्रुटि है। इसे ठीक करने के लिए स्रोत मोड पर जाएँ।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 3b89a806c..615143f14 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {क्या आप वाकई निम्नलmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {क्या आप वाकई निम्नलिखित # फ़ाइल/फ़ोल्डर और उसकी सामग्री हटाना चाहते हैं?} other {क्या आप वाकई निम्नलिखित # फ़ाइलें/फ़ोल्डर और उनकी सामग्री हटाना चाहते हैं?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {{formattedCount} markdown फ़ाइल मिली} other {{formattedCount} markdown फ़ाइलें मिलीं}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {# समस्या आपके AI एजेंट को सौंपता है, उसे भी जिसका कोई स्वचालित समाधान नहीं है।} other {सभी # समस्याएँ आपके AI एजेंट को सौंपता है, उन्हें भी जिनका कोई स्वचालित समाधान नहीं है।}}"@@ -11380,6 +11384,10 @@ msgstr "प्रोजेक्ट विवरण"msgid "Project folder created, but git init failed. Try again."msgstr "प्रोजेक्ट फ़ोल्डर बन गया, पर git init विफल रहा। फिर कोशिश करें।"+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "प्रोजेक्ट फ़ोल्डर: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "परियोजना MCP सर्वर"@@ -15447,10 +15455,6 @@ msgstr "यह सूची पुरानी हो सकती है —msgid "This list may be out of date."msgstr "यह सूची पुरानी हो सकती है।"-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "यह किसी ड्राइव का रूट लगता है (जैसे C:\\)। यहाँ ढाँचा बनाने पर पूरी ड्राइव स्कैन होगी।"-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16969,14 +16973,6 @@ msgstr "आपने ~/Documents चुना। OpenKnowledge उसके नmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "आपने ~/Downloads चुना। वहाँ की फ़ाइलें आमतौर पर अस्थायी होती हैं — इसके बजाय किसी स्थिर फ़ोल्डर पर विचार करें।"-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "आपने फ़ाइल सिस्टम का रूट (/) चुना। यहाँ ढाँचा बनाने पर इस मशीन की हर फ़ाइल स्कैन होगी — पक्का कर लें कि आप यही चाहते हैं।"--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "आपने अपनी होम निर्देशिका चुनी। OpenKnowledge आपके पूरे होम वृक्ष की हर चीज़ अनुक्रमित करेगा — यह बड़ा है और इससे निजी फ़ाइलें सामने आ सकती हैं।"-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "आपका सब कुछ तैयार है!"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex f19f51011..a31c3f4d4 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -1292,6 +1292,7 @@"DqyItq": ["Log OpenKnowledge lintas proyek. Tidak ada proyek yang terbuka, jadi log server proyek tidak disertakan."],+ "DrKYv7": ["Folder proyek: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "other": ["#", " galat"] }]],"DskIkK": ["Aliran proses masuk berakhir tanpa konfirmasi — silakan coba lagi"],"DuCPiG": [@@ -2063,9 +2064,6 @@"LzM_ga": ["Saring keterampilan"],"M0jOcG": ["Lihat di markdown sumber"],"M1OfV9": ["Diagnostik sumber berikutnya"],- "M3ytY_": [- "Ini tampak seperti akar sebuah drive (mis. C:\\). Menyusun proyek di sini akan memindai seluruh drive."- ],"M5_9s2": ["Mengirim laporan"],"M5mfAe": ["Tambahkan tag"],"M6mvVi": ["Salin jalur relatif"],@@ -3236,9 +3234,6 @@"ZW2yR_": ["Tambahkan jalur khusus"],"ZW3mlR": ["Mode render perbedaan"],"ZWgr0b": ["Di subfolder"],- "ZWolSV": [- "Anda memilih akar sistem berkas (/). Menyusun proyek di sini akan memindai setiap berkas di komputer ini — pastikan itu memang yang Anda mau."- ],"ZWwYwM": ["Cabang dasar"],"ZWxfrc": ["properti folder dibersihkan"],"ZWyHmq": ["Proyek ini"],@@ -3338,9 +3333,6 @@"_Pmhxt": ["… keluaran sebelumnya dipangkas"],"_PnPuw": [["0"], " diambil dari ", ["1"], "."],"_QwkMu": ["Tidak ada jalur yang cocok"],- "_RcqUM": [- "Anda memilih direktori beranda Anda. OpenKnowledge akan mengindeks semua yang ada di pohon beranda Anda — besar dan bisa memunculkan berkas pribadi."- ],"_SDGzH": ["Lanjutkan di peramban"],"_SkqfM": ["Terima yang masuk"],"_TDESN": ["Galat jaringan - ", ["kind"], " \"", ["createdPath"], "\" masih ada di disk"],@@ -5936,6 +5928,9 @@],"zZ_I5K": ["Buka menu proyek"],"z_4xza": ["Gagal memuat dokumen. Tekan <0>Esc</0> lalu buka lagi untuk mencoba ulang."],+ "z_wa6u": [+ ["count", "plural", { "other": ["Ditemukan ", ["formattedCount"], " berkas markdown"] }]+ ],"zaXlhf": ["Blok properti di bagian atas dokumen ini punya galat format. Beralihlah ke mode sumber untuk memperbaikinya."],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex 71e129e30..9f424e48b 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, other {Yakin ingin menghapus # berkas berikut?}}"msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, other {Yakin ingin menghapus # berkas/folder berikut beserta isinya?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, other {Ditemukan {formattedCount} berkas markdown}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, other {Menyerahkan # masalah ke agen AI Anda, termasuk yang tidak punya perbaikan otomatis.}}"@@ -11380,6 +11384,10 @@ msgstr "Detail proyek"msgid "Project folder created, but git init failed. Try again."msgstr "Folder proyek dibuat, tetapi git init gagal. Coba lagi."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Folder proyek: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Server MCP proyek"@@ -15447,10 +15455,6 @@ msgstr "Daftar ini mungkin tidak mutakhir — terakhir dibaca {staleRelative}."msgid "This list may be out of date."msgstr "Daftar ini mungkin tidak mutakhir."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "Ini tampak seperti akar sebuah drive (mis. C:\\). Menyusun proyek di sini akan memindai seluruh drive."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16969,14 +16973,6 @@ msgstr "Anda memilih ~/Documents. OpenKnowledge akan mengindeks setiap berkas mamsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "Anda memilih ~/Downloads. Berkas di sana biasanya sementara — pertimbangkan folder yang lebih tetap."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "Anda memilih akar sistem berkas (/). Menyusun proyek di sini akan memindai setiap berkas di komputer ini — pastikan itu memang yang Anda mau."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "Anda memilih direktori beranda Anda. OpenKnowledge akan mengindeks semua yang ada di pohon beranda Anda — besar dan bisa memunculkan berkas pribadi."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "Semuanya sudah siap!"diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex e1ccf4dee..2e8462e59 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -1252,6 +1252,7 @@"DqyItq": ["여러 프로젝트의 OpenKnowledge 로그입니다. 열린 프로젝트가 없으므로 프로젝트 서버 로그는 포함되지 않습니다."],+ "DrKYv7": ["프로젝트 폴더: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "other": ["오류 ", "#", "개"] }]],"DskIkK": ["로그인 스트림이 확인 없이 종료되었습니다. 다시 시도하세요."],"DuCPiG": [@@ -1976,9 +1977,6 @@"LzM_ga": ["스킬 필터"],"M0jOcG": ["소스 Markdown에서 보기"],"M1OfV9": ["다음 소스 진단으로 이동"],- "M3ytY_": [- "드라이브 루트처럼 보입니다(예: Windows 드라이브 루트). 여기서 뼈대를 만들면 드라이브 전체를 검사합니다."- ],"M5_9s2": ["보고서 보내는 중"],"M5mfAe": ["태그 추가"],"M6mvVi": ["상대 경로 복사"],@@ -3097,9 +3095,6 @@"ZW2yR_": ["사용자 지정 경로 추가"],"ZW3mlR": ["Diff 렌더링 모드"],"ZWgr0b": ["하위 폴더에서"],- "ZWolSV": [- "파일 시스템 루트(/)를 선택했습니다. 여기서 뼈대를 만들면 이 컴퓨터의 모든 파일을 검사합니다. 원하는 동작인지 확인하세요."- ],"ZWwYwM": ["기준 브랜치"],"ZWxfrc": ["폴더 속성 지움"],"ZWyHmq": ["이 프로젝트"],@@ -3193,9 +3188,6 @@"_Pmhxt": ["… 이전 출력은 생략되었습니다"],"_PnPuw": [["0"], "을 ", ["1"], "에서 가져왔습니다."],"_QwkMu": ["일치하는 경로 없음"],- "_RcqUM": [- "홈 디렉터리를 선택했습니다. OpenKnowledge가 홈 트리의 모든 항목을 색인합니다. 범위가 크고 개인 파일이 표시될 수 있습니다."- ],"_SDGzH": ["브라우저에서 계속"],"_SkqfM": ["수신 항목 적용"],"_TDESN": [@@ -5665,6 +5657,9 @@],"zZ_I5K": ["프로젝트 메뉴 열기"],"z_4xza": ["문서를 불러오지 못했습니다. <0>Esc</0> 키를 누르고 다시 열어 보세요."],+ "z_wa6u": [+ ["count", "plural", { "other": [["formattedCount"], "개의 markdown 파일을 찾았습니다"] }]+ ],"zaXlhf": ["이 문서 위쪽의 속성 블록에 서식 오류가 있습니다. 소스 모드로 전환하여 수정하세요."],"zbymaY": [["0"], "분 전"],"zd00pH": ["경로 복사"],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex 42bab65cb..e8020fc35 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, other {다음 파일 #개를 삭제하시겠습니까?}}msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, other {다음 파일 또는 폴더 #개와 그 내용을 삭제하시겠습니까?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, other {{formattedCount}개의 markdown 파일을 찾았습니다}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, other {AI 에이전트에 문제 #개를 전달합니다. 자동 수정이 없는 문제도 포함됩니다.}}"@@ -11384,6 +11388,10 @@ msgstr "프로젝트 세부 정보"msgid "Project folder created, but git init failed. Try again."msgstr "프로젝트 폴더는 생성되었지만 git init에 실패했습니다. 다시 시도하세요."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "프로젝트 폴더: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "프로젝트 MCP 서버"@@ -15451,10 +15459,6 @@ msgstr "이 목록은 최신 상태가 아닐 수 있습니다. 마지막으로msgid "This list may be out of date."msgstr "이 목록은 최신 상태가 아닐 수 있습니다."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "드라이브 루트처럼 보입니다(예: Windows 드라이브 루트). 여기서 뼈대를 만들면 드라이브 전체를 검사합니다."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "~/Documents를 선택했습니다. OpenKnowledge가 그 아래의 모든msgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "~/Downloads를 선택했습니다. 여기의 파일은 대개 일시적이므로 안정적인 폴더를 대신 선택하는 것이 좋습니다."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "파일 시스템 루트(/)를 선택했습니다. 여기서 뼈대를 만들면 이 컴퓨터의 모든 파일을 검사합니다. 원하는 동작인지 확인하세요."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "홈 디렉터리를 선택했습니다. OpenKnowledge가 홈 트리의 모든 항목을 색인합니다. 범위가 크고 개인 파일이 표시될 수 있습니다."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "설정이 완료되었습니다!"diff --git a/packages/app/src/locales/pl/messages.json b/packages/app/src/locales/pl/messages.jsonindex bfb640976..47fa3ec72 100644--- a/packages/app/src/locales/pl/messages.json+++ b/packages/app/src/locales/pl/messages.json@@ -1545,6 +1545,7 @@"DqyItq": ["Logi OpenKnowledge ze wszystkich projektów. Żaden projekt nie jest otwarty, więc logi serwera projektu nie są dołączone."],+ "DrKYv7": ["Folder projektu: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0",@@ -2416,9 +2417,6 @@"LzM_ga": ["Filtruj umiejętności"],"M0jOcG": ["Zobacz w źródle markdown"],"M1OfV9": ["Następny komunikat źródłowy"],- "M3ytY_": [- "To wygląda na katalog główny dysku (np. C:\\). Tworzenie szkieletu tutaj przeskanuje cały dysk."- ],"M5_9s2": ["Wysyłanie zgłoszenia"],"M5mfAe": ["Dodaj tag"],"M6mvVi": ["Kopiuj ścieżkę względną"],@@ -3801,9 +3799,6 @@"ZW2yR_": ["Dodaj własną ścieżkę"],"ZW3mlR": ["Tryb renderowania diffu"],"ZWgr0b": ["W podfolderze"],- "ZWolSV": [- "Wybrałeś katalog główny systemu plików (/). Inicjalizacja tutaj zeskanuje każdy plik na tym komputerze — upewnij się, że tego chcesz."- ],"ZWwYwM": ["Gałąź bazowa"],"ZWxfrc": ["wyczyszczono właściwości folderu"],"ZWyHmq": ["Ten projekt"],@@ -3919,9 +3914,6 @@"_Pmhxt": ["… wcześniejsze wyjście obcięte"],"_PnPuw": ["Przejęto ", ["0"], " z ", ["1"], "."],"_QwkMu": ["Brak pasujących ścieżek"],- "_RcqUM": [- "Wybrałeś katalog domowy. OpenKnowledge zaindeksuje wszystko w Twoim katalogu domowym — jest duży i mogą pojawić się w nim pliki osobiste."- ],"_SDGzH": ["Kontynuuj w przeglądarce"],"_SkqfM": ["Akceptuj przychodzącą"],"_TDESN": ["Błąd sieci - ", ["kind"], " \"", ["createdPath"], "\" nadal istnieje na dysku"],@@ -7059,6 +7051,18 @@"z_4xza": ["Nie udało się wczytać dokumentów. Naciśnij <0>Esc</0> i otwórz ponownie, aby spróbować jeszcze raz."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": ["Znaleziono ", ["formattedCount"], " plik Markdown"],+ "few": ["Znaleziono ", ["formattedCount"], " pliki Markdown"],+ "many": ["Znaleziono ", ["formattedCount"], " plików Markdown"],+ "other": ["Znaleziono ", ["formattedCount"], " pliku Markdown"]+ }+ ]+ ],"zaXlhf": ["Blok właściwości na górze tego dokumentu zawiera błąd formatowania. Przełącz się w tryb źródłowy, aby go poprawić."],diff --git a/packages/app/src/locales/pl/messages.po b/packages/app/src/locales/pl/messages.poindex 22c8aadbf..4747e0ea7 100644--- a/packages/app/src/locales/pl/messages.po+++ b/packages/app/src/locales/pl/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {Czy na pewno chcesz usunąć # poniższy plik?} fewmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {Czy na pewno chcesz usunąć # poniższy plik/katalog i jego zawartość?} few {Czy na pewno chcesz usunąć # poniższe pliki/katalogi i ich zawartość?} many {Czy na pewno chcesz usunąć # poniższych plików/katalogów i ich zawartość?} other {Czy na pewno chcesz usunąć # poniższego pliku/katalogu i jego zawartość?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {Znaleziono {formattedCount} plik Markdown} few {Znaleziono {formattedCount} pliki Markdown} many {Znaleziono {formattedCount} plików Markdown} other {Znaleziono {formattedCount} pliku Markdown}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {Przekazuje # problem twojemu agentowi AI, łącznie z tym, co nie ma automatycznej poprawki.} few {Przekazuje # problemy twojemu agentowi AI, łącznie z tym, co nie ma automatycznej poprawki.} many {Przekazuje # problemów twojemu agentowi AI, łącznie z tym, co nie ma automatycznej poprawki.} other {Przekazuje # problemu twojemu agentowi AI, łącznie z tym, co nie ma automatycznej poprawki.}}"@@ -11384,6 +11388,10 @@ msgstr "Szczegóły projektu"msgid "Project folder created, but git init failed. Try again."msgstr "Folder projektu został utworzony, ale polecenie git init nie powiodło się. Spróbuj ponownie."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Folder projektu: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Serwer MCP projektu"@@ -15451,10 +15459,6 @@ msgstr "Ta lista może być nieaktualna — ostatni odczyt: {staleRelative}."msgid "This list may be out of date."msgstr "Ta lista może być nieaktualna."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "To wygląda na katalog główny dysku (np. C:\\). Tworzenie szkieletu tutaj przeskanuje cały dysk."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "Wybrałeś ~/Documents. OpenKnowledge zaindeksuje każdy plik markdown wmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "Wybrałeś ~/Downloads. Pliki tam są zwykle tymczasowe — rozważ użycie trwałego folderu."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "Wybrałeś katalog główny systemu plików (/). Inicjalizacja tutaj zeskanuje każdy plik na tym komputerze — upewnij się, że tego chcesz."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "Wybrałeś katalog domowy. OpenKnowledge zaindeksuje wszystko w Twoim katalogu domowym — jest duży i mogą pojawić się w nim pliki osobiste."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "Wszystko gotowe!"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 3f424174c..e5584cf5b 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -1295,6 +1295,7 @@"DqyItq": ["ŌƥēńĶńōŵĺēďĝē ĺōĝś àćŕōśś ƥŕōĴēćţś. Ńō ƥŕōĴēćţ ĩś ōƥēń, śō ƥŕōĴēćţ śēŕvēŕ ĺōĝś àŕē ńōţ ĩńćĺũďēď."],+ "DrKYv7": ["ƤŕōĴēćţ ƒōĺďēŕ: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " ēŕŕōŕ"], "other": ["#", " ēŕŕōŕś"] }]],"DskIkK": ["Śĩĝń-ĩń śţŕēàḿ ēńďēď ŵĩţĥōũţ ćōńƒĩŕḿàţĩōń — ƥĺēàśē ţŕŷ àĝàĩń"],"DuCPiG": [@@ -2036,9 +2037,6 @@"LzM_ga": ["Ƒĩĺţēŕ śķĩĺĺś"],"M0jOcG": ["Vĩēŵ ĩń śōũŕćē ḿàŕķďōŵń"],"M1OfV9": ["Ńēxţ śōũŕćē ďĩàĝńōśţĩć"],- "M3ytY_": [- "Ţĥĩś ĺōōķś ĺĩķē à ďŕĩvē ŕōōţ (ē.ĝ., Ć:\\). Śćàƒƒōĺďĩńĝ ĥēŕē ŵĩĺĺ śćàń àń ēńţĩŕē ďŕĩvē."- ],"M5_9s2": ["Śēńďĩńĝ ŕēƥōŕţ"],"M5mfAe": ["Àďď ţàĝ"],"M6mvVi": ["Ćōƥŷ ŕēĺàţĩvē ƥàţĥ"],@@ -3215,9 +3213,6 @@"ZW2yR_": ["Àďď ćũśţōḿ ƥàţĥ"],"ZW3mlR": ["Ďĩƒƒ ŕēńďēŕ ḿōďē"],"ZWgr0b": ["Ĩń à śũƀƒōĺďēŕ"],- "ZWolSV": [- "Ŷōũ ƥĩćķēď ţĥē ƒĩĺēśŷśţēḿ ŕōōţ (/). Śćàƒƒōĺďĩńĝ ĥēŕē ŵĩĺĺ śćàń ēvēŕŷ ƒĩĺē ōń ţĥĩś ḿàćĥĩńē — ḿàķē śũŕē ţĥàţ'ś ŵĥàţ ŷōũ ŵàńţ."- ],"ZWwYwM": ["ßàśē ƀŕàńćĥ"],"ZWxfrc": ["ćĺēàŕēď ƒōĺďēŕ ƥŕōƥēŕţĩēś"],"ZWyHmq": ["Ţĥĩś ƥŕōĴēćţ"],@@ -3324,9 +3319,6 @@"_Pmhxt": ["… ēàŕĺĩēŕ ōũţƥũţ ţŕĩḿḿēď"],"_PnPuw": ["Ƥĩćķēď ũƥ ", ["0"], " ƒŕōḿ ", ["1"], "."],"_QwkMu": ["Ńō ḿàţćĥĩńĝ ƥàţĥś"],- "_RcqUM": [- "Ŷōũ ƥĩćķēď ŷōũŕ ĥōḿē ďĩŕēćţōŕŷ. ŌƥēńĶńōŵĺēďĝē ŵĩĺĺ ĩńďēx ēvēŕŷţĥĩńĝ ĩń ŷōũŕ ĥōḿē ţŕēē — ĺàŕĝē àńď ḿàŷ śũŕƒàćē ƥēŕśōńàĺ ƒĩĺēś."- ],"_SDGzH": ["Ćōńţĩńũē ĩń ƀŕōŵśēŕ"],"_SkqfM": ["Àććēƥţ ĩńćōḿĩńĝ"],"_TDESN": ["Ńēţŵōŕķ ēŕŕōŕ - ", ["kind"], " \"", ["createdPath"], "\" śţĩĺĺ ēxĩśţś ōń ďĩśķ"],@@ -5944,6 +5936,16 @@],"zZ_I5K": ["Ōƥēń ƥŕōĴēćţ ḿēńũ"],"z_4xza": ["Ƒàĩĺēď ţō ĺōàď ďōćś. Ƥŕēśś <0>Ēść</0> àńď ŕē-ōƥēń ţō ŕēţŕŷ."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": ["Ƒōũńď ", ["formattedCount"], " ḿàŕķďōŵń ƒĩĺē"],+ "other": ["Ƒōũńď ", ["formattedCount"], " ḿàŕķďōŵń ƒĩĺēś"]+ }+ ]+ ],"zaXlhf": ["Ţĥē ƥŕōƥēŕţĩēś ƀĺōćķ àţ ţĥē ţōƥ ōƒ ţĥĩś ďōć ĥàś à ƒōŕḿàţţĩńĝ ēŕŕōŕ. Śŵĩţćĥ ţō śōũŕćē ḿōďē ţō ƒĩx ĩţ."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 8ec68a73c..31c0f6aa8 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -755,6 +755,10 @@ msgstr ""msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr ""+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr ""+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr ""@@ -11380,6 +11384,10 @@ msgstr ""msgid "Project folder created, but git init failed. Try again."msgstr ""+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr ""+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr ""@@ -15447,10 +15455,6 @@ msgstr ""msgid "This list may be out of date."msgstr ""-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr ""-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16969,14 +16973,6 @@ msgstr ""msgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr ""-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr ""--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr ""-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr ""diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 34c745544..63727d559 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -1486,6 +1486,7 @@"DqyItq": ["Logs do OpenKnowledge de vários projetos. Nenhum projeto está aberto, por isso os logs do servidor do projeto não são incluídos."],+ "DrKYv7": ["Pasta do projeto: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " erro"], "many": ["#", " erros"], "other": ["#", " erros"] }]],@@ -2335,9 +2336,6 @@"LzM_ga": ["Filtrar habilidades"],"M0jOcG": ["Ver no markdown de origem"],"M1OfV9": ["Próximo diagnóstico do código"],- "M3ytY_": [- "Isto parece a raiz de uma unidade (ex.: C:\\). Preparar o projeto aqui vai varrer uma unidade inteira."- ],"M5_9s2": ["Enviando o relatório"],"M5mfAe": ["Adicionar tag"],"M6mvVi": ["Copiar caminho relativo"],@@ -3656,9 +3654,6 @@"ZW2yR_": ["Adicionar caminho personalizado"],"ZW3mlR": ["Modo de exibição das diferenças"],"ZWgr0b": ["Em uma subpasta"],- "ZWolSV": [- "Você escolheu a raiz do sistema de arquivos (/). Preparar o projeto aqui vai varrer todos os arquivos deste computador — confira se é isso mesmo que você quer."- ],"ZWwYwM": ["Ramo base"],"ZWxfrc": ["propriedades da pasta limpas"],"ZWyHmq": ["Este projeto"],@@ -3768,9 +3763,6 @@"_Pmhxt": ["… saída anterior cortada"],"_PnPuw": [["0"], " pego de ", ["1"], "."],"_QwkMu": ["Nenhum caminho corresponde"],- "_RcqUM": [- "Você escolheu sua pasta pessoal. O OpenKnowledge vai indexar toda a sua árvore pessoal — é grande e pode trazer à tona arquivos pessoais."- ],"_SDGzH": ["Continuar no navegador"],"_SkqfM": ["Aceitar recebido"],"_TDESN": ["Erro de rede - ", ["kind"], " \"", ["createdPath"], "\" ainda existe no disco"],@@ -6711,6 +6703,17 @@"z_4xza": ["Falha ao carregar os documentos. Pressione <0>Esc</0> e abra de novo para tentar outra vez."],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": [["formattedCount"], " arquivo markdown encontrado"],+ "many": [["formattedCount"], " arquivos markdown encontrados"],+ "other": [["formattedCount"], " arquivos markdown encontrados"]+ }+ ]+ ],"zaXlhf": ["O bloco de propriedades no topo deste documento tem um erro de formatação. Mude para o modo código para corrigir."],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex d45d44240..1f232ebf2 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {Tem certeza de que deseja excluir o # arquivo a segmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {Tem certeza de que deseja excluir o # arquivo/pasta a seguir e seu conteúdo?} many {Tem certeza de que deseja excluir os # arquivos/pastas a seguir e seu conteúdo?} other {Tem certeza de que deseja excluir os # arquivos/pastas a seguir e seu conteúdo?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {{formattedCount} arquivo markdown encontrado} many {{formattedCount} arquivos markdown encontrados} other {{formattedCount} arquivos markdown encontrados}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {Entrega o # problema ao seu agente de IA, incluindo o que não tem correção automática.} many {Entrega os # problemas ao seu agente de IA, incluindo o que não tem correção automática.} other {Entrega os # problemas ao seu agente de IA, incluindo o que não tem correção automática.}}"@@ -11380,6 +11384,10 @@ msgstr "Detalhes do projeto"msgid "Project folder created, but git init failed. Try again."msgstr "A pasta do projeto foi criada, mas o git init falhou. Tente de novo."+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "Pasta do projeto: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "Servidor MCP do projeto"@@ -15447,10 +15455,6 @@ msgstr "Esta lista pode estar desatualizada — última leitura {staleRelative}.msgid "This list may be out of date."msgstr "Esta lista pode estar desatualizada."-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "Isto parece a raiz de uma unidade (ex.: C:\\). Preparar o projeto aqui vai varrer uma unidade inteira."-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16969,14 +16973,6 @@ msgstr "Você escolheu ~/Documents. O OpenKnowledge vai indexar todos os arquivomsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "Você escolheu ~/Downloads. Os arquivos de lá costumam ser passageiros — pense em uma pasta mais estável."-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "Você escolheu a raiz do sistema de arquivos (/). Preparar o projeto aqui vai varrer todos os arquivos deste computador — confira se é isso mesmo que você quer."--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "Você escolheu sua pasta pessoal. O OpenKnowledge vai indexar toda a sua árvore pessoal — é grande e pode trazer à tona arquivos pessoais."-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "Está tudo pronto!"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex dd632db77..b8f0dcbe0 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -1308,6 +1308,7 @@"DqyItq": ["مختلف پروجیکٹس کے OpenKnowledge لاگز۔ کوئی پروجیکٹ کھلا نہیں، اس لیے پروجیکٹ سرور کے لاگز شامل نہیں ہیں۔"],+ "DrKYv7": ["پروجیکٹ کا فولڈر: <0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "one": ["#", " خرابی"], "other": ["#", " خرابیاں"] }]],"DskIkK": ["سائن اِن کی سٹریم تصدیق کے بغیر ختم ہو گئی — براہِ کرم دوبارہ کوشش کریں"],"DuCPiG": [@@ -2072,9 +2073,6 @@"LzM_ga": ["مہارتیں چھانیں"],"M0jOcG": ["سورس Markdown میں دیکھیں"],"M1OfV9": ["اگلی سورس تشخیص"],- "M3ytY_": [- "یہ کسی ڈرائیو کی جڑ لگتی ہے (مثلاً C:\\)۔ یہاں ڈھانچہ بنانا پوری ڈرائیو اسکین کرے گا۔"- ],"M5_9s2": ["رپورٹ بھیجی جا رہی ہے"],"M5mfAe": ["ٹیگ شامل کریں"],"M6mvVi": ["نسبتی راستہ نقل کریں"],@@ -3278,9 +3276,6 @@"ZW2yR_": ["حسبِ ضرورت راستہ شامل کریں"],"ZW3mlR": ["فرق کے رینڈر کا موڈ"],"ZWgr0b": ["ذیلی فولڈر میں"],- "ZWolSV": [- "آپ نے فائل سسٹم کی جڑ (/) منتخب کی۔ یہاں ڈھانچہ بنانا اس مشین کی ہر فائل اسکین کرے گا — یقین کر لیں کہ آپ یہی چاہتے ہیں۔"- ],"ZWwYwM": ["بنیادی برانچ"],"ZWxfrc": ["فولڈر کی خصوصیات صاف کیں"],"ZWyHmq": ["یہ پروجیکٹ"],@@ -3387,9 +3382,6 @@"_Pmhxt": ["… پہلے کا آؤٹ پٹ مختصر کر دیا گیا"],"_PnPuw": [["1"], " سے ", ["0"], " اٹھایا گیا۔"],"_QwkMu": ["کوئی مماثل راستہ نہیں"],- "_RcqUM": [- "آپ نے اپنی ہوم ڈائریکٹری منتخب کی۔ OpenKnowledge آپ کے پورے ہوم ٹری کی ہر چیز اشاریہ بند کرے گا — یہ بڑا ہے اور ذاتی فائلیں سامنے لا سکتا ہے۔"- ],"_SDGzH": ["براؤزر میں جاری رکھیں"],"_SkqfM": ["آنے والا قبول کریں"],"_TDESN": ["نیٹ ورک کی خرابی - ", ["kind"], " «", ["createdPath"], "» اب بھی ڈسک پر موجود ہے"],@@ -6022,6 +6014,16 @@"z_4xza": ["دستاویزات لوڈ نہیں ہو سکیں۔ دوبارہ کوشش کے لیے <0>Esc</0> دبائیں اور دوبارہ کھولیں۔"],+ "z_wa6u": [+ [+ "count",+ "plural",+ {+ "one": [["formattedCount"], " Markdown فائل ملی"],+ "other": [["formattedCount"], " Markdown فائلیں ملیں"]+ }+ ]+ ],"zaXlhf": ["اس دستاویز کے اوپر خصوصیات کے بلاک میں فارمیٹنگ کی خرابی ہے۔ اسے ٹھیک کرنے کے لیے سورس موڈ پر جائیں۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 6b324a0cc..b24cb9f45 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, one {کیا آپ واقعی درج ذیل # فائل حmsgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, one {کیا آپ واقعی درج ذیل # فائل/فولڈر اور اس کا مواد حذف کرنا چاہتے ہیں؟} other {کیا آپ واقعی درج ذیل # فائلیں/فولڈرز اور ان کا مواد حذف کرنا چاہتے ہیں؟}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, one {{formattedCount} Markdown فائل ملی} other {{formattedCount} Markdown فائلیں ملیں}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, one {# مسئلہ آپ کے AI ایجنٹ کے حوالے کرتا ہے، بشمول وہ جس کا کوئی خودکار حل نہیں۔} other {تمام # مسائل آپ کے AI ایجنٹ کے حوالے کرتا ہے، بشمول وہ جن کا کوئی خودکار حل نہیں۔}}"@@ -11384,6 +11388,10 @@ msgstr "پروجیکٹ کی تفصیلات"msgid "Project folder created, but git init failed. Try again."msgstr "پروجیکٹ کا فولڈر بن گیا، مگر git init ناکام رہا۔ دوبارہ کوشش کریں۔"+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "پروجیکٹ کا فولڈر: <0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "پروجیکٹ MCP سرور"@@ -15451,10 +15459,6 @@ msgstr "یہ فہرست پرانی ہو سکتی ہے — آخری بار پڑھmsgid "This list may be out of date."msgstr "یہ فہرست پرانی ہو سکتی ہے۔"-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "یہ کسی ڈرائیو کی جڑ لگتی ہے (مثلاً C:\\)۔ یہاں ڈھانچہ بنانا پوری ڈرائیو اسکین کرے گا۔"-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "آپ نے ~/Documents منتخب کیا۔ OpenKnowledge اس کے تحتmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "آپ نے ~/Downloads منتخب کیا۔ وہاں فائلیں عموماً عارضی ہوتی ہیں — اس کے بجائے کسی مستقل فولڈر پر غور کریں۔"-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "آپ نے فائل سسٹم کی جڑ (/) منتخب کی۔ یہاں ڈھانچہ بنانا اس مشین کی ہر فائل اسکین کرے گا — یقین کر لیں کہ آپ یہی چاہتے ہیں۔"--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "آپ نے اپنی ہوم ڈائریکٹری منتخب کی۔ OpenKnowledge آپ کے پورے ہوم ٹری کی ہر چیز اشاریہ بند کرے گا — یہ بڑا ہے اور ذاتی فائلیں سامنے لا سکتا ہے۔"-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "آپ کا سب کچھ تیار ہے!"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex aabca7c5d..01a139450 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -1138,6 +1138,7 @@"DpeNOR": ["正在读取当前设置…"],"DpjYd6": ["跳到锚定的文本"],"DqyItq": ["跨项目的 OpenKnowledge 日志。当前未打开任何项目,因此不包含项目服务器日志。"],+ "DrKYv7": ["项目文件夹:<0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "other": ["#", " 个错误"] }]],"DskIkK": ["登录流程未确认就结束了——请重试"],"DuCPiG": ["自动模式会在每次启动时选择一个空闲端口。选择固定端口可在重启后保持相同地址。"],@@ -1771,7 +1772,6 @@"LzM_ga": ["筛选技能"],"M0jOcG": ["在 markdown 源码中查看"],"M1OfV9": ["下一条源码诊断"],- "M3ytY_": ["这看起来像是驱动器根目录(例如 C:\\)。在这里搭建项目会扫描整个驱动器。"],"M5_9s2": ["正在发送报告"],"M5mfAe": ["添加标签"],"M6mvVi": ["复制相对路径"],@@ -2818,9 +2818,6 @@"ZW2yR_": ["添加自定义路径"],"ZW3mlR": ["差异渲染模式"],"ZWgr0b": ["在子文件夹中"],- "ZWolSV": [- "你选择了文件系统根目录(/)。在这里搭建项目会扫描这台电脑上的每个文件——请确认这确实是你想要的。"- ],"ZWwYwM": ["基础分支"],"ZWxfrc": ["已清除文件夹属性"],"ZWyHmq": ["本项目"],@@ -2914,9 +2911,6 @@"_Pmhxt": ["… 已省略更早的输出"],"_PnPuw": ["已从 ", ["1"], " 拾取 ", ["0"], "。"],"_QwkMu": ["没有匹配的路径"],- "_RcqUM": [- "你选择了主目录。OpenKnowledge 会索引整个主目录树——数量庞大,而且可能暴露个人文件。"- ],"_SDGzH": ["在浏览器中继续"],"_SkqfM": ["采用传入"],"_TDESN": ["网络错误 - ", ["kind"], "“", ["createdPath"], "”在磁盘上仍然存在"],@@ -5137,6 +5131,9 @@],"zZ_I5K": ["打开项目菜单"],"z_4xza": ["加载文档失败。按 <0>Esc</0> 后重新打开可重试。"],+ "z_wa6u": [+ ["count", "plural", { "other": ["找到 ", ["formattedCount"], " 个 markdown 文件"] }]+ ],"zaXlhf": ["这个文档顶部的属性块有格式错误。请切换到源码模式修复。"],"zbymaY": [["0"], " 分钟前"],"zd00pH": ["复制路径"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 6676a0873..28c5c0c66 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, other {确定要删除以下 # 个文件吗?}}"msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, other {确定要删除以下 # 个文件/文件夹及其内容吗?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, other {找到 {formattedCount} 个 markdown 文件}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, other {把这 # 个问题交给你的 AI 智能体,包括没有自动修复方案的部分。}}"@@ -11384,6 +11388,10 @@ msgstr "项目详情"msgid "Project folder created, but git init failed. Try again."msgstr "项目文件夹已创建,但 git init 失败。请重试。"+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "项目文件夹:<0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "项目 MCP 服务器"@@ -15451,10 +15459,6 @@ msgstr "此列表可能不是最新的——上次读取:{staleRelative}。"msgid "This list may be out of date."msgstr "此列表可能不是最新的。"-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "这看起来像是驱动器根目录(例如 C:\\)。在这里搭建项目会扫描整个驱动器。"-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "你选择了 ~/Documents。OpenKnowledge 会索引它下面的每个 marmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "你选择了 ~/Downloads。那里的文件通常是临时的——建议改用一个稳定的文件夹。"-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "你选择了文件系统根目录(/)。在这里搭建项目会扫描这台电脑上的每个文件——请确认这确实是你想要的。"--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "你选择了主目录。OpenKnowledge 会索引整个主目录树——数量庞大,而且可能暴露个人文件。"-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "全都设置好了!"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex 743df0026..bbf32ecca 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -1140,6 +1140,7 @@"DpeNOR": ["正在讀取目前設定…"],"DpjYd6": ["跳到錨定的文字"],"DqyItq": ["跨專案的 OpenKnowledge 紀錄。目前未開啟任何專案,因此不包含專案伺服器紀錄。"],+ "DrKYv7": ["專案資料夾:<0>", ["projectDir"], "</0>"],"DsDwR-": [["0", "plural", { "other": ["#", " 個錯誤"] }]],"DskIkK": ["登入流程還沒確認就結束了——請再試一次"],"DuCPiG": [@@ -1791,7 +1792,6 @@"LzM_ga": ["篩選技能"],"M0jOcG": ["在 markdown 原始碼中檢視"],"M1OfV9": ["下一則原始碼診斷"],- "M3ytY_": ["這看起來像是磁碟機根目錄(例如 C:\\)。在這裡建立專案骨架會掃描整個磁碟機。"],"M5_9s2": ["正在傳送回報"],"M5mfAe": ["新增標籤"],"M6mvVi": ["複製相對路徑"],@@ -2838,9 +2838,6 @@"ZW2yR_": ["新增自訂路徑"],"ZW3mlR": ["差異顯示模式"],"ZWgr0b": ["在子資料夾中"],- "ZWolSV": [- "你選了檔案系統根目錄(/)。在這裡建立專案骨架會掃描這台電腦上的每個檔案——請確認這真的是你要的。"- ],"ZWwYwM": ["基底分支"],"ZWxfrc": ["已清除資料夾屬性"],"ZWyHmq": ["這個專案"],@@ -2934,9 +2931,6 @@"_Pmhxt": ["… 已略過較早的輸出"],"_PnPuw": ["已從 ", ["1"], " 拾取 ", ["0"], "。"],"_QwkMu": ["沒有相符的路徑"],- "_RcqUM": [- "你選了家目錄。OpenKnowledge 會把整個家目錄樹都建立索引——數量龐大,而且可能把個人檔案帶出來。"- ],"_SDGzH": ["在瀏覽器中繼續"],"_SkqfM": ["採用傳入"],"_TDESN": ["網路錯誤 - ", ["kind"], "「", ["createdPath"], "」在磁碟上仍然存在"],@@ -5165,6 +5159,9 @@],"zZ_I5K": ["開啟專案選單"],"z_4xza": ["載入文件失敗。按 <0>Esc</0> 後重新開啟可再試一次。"],+ "z_wa6u": [+ ["count", "plural", { "other": ["找到 ", ["formattedCount"], " 個 markdown 檔案"] }]+ ],"zaXlhf": ["這份文件最上面的屬性區塊有格式錯誤。請切換到原始碼模式修正。"],"zbymaY": [["0"], " 分鐘前"],"zd00pH": ["複製路徑"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 4e1f739c0..05a136634 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -755,6 +755,10 @@ msgstr "{count, plural, other {確定要刪除以下 # 個檔案嗎?}}"msgid "{count, plural, one {Are you sure you want to delete the following # file/directory and its contents?} other {Are you sure you want to delete the following # files/directories and their contents?}}"msgstr "{count, plural, other {確定要刪除以下 # 個檔案/資料夾及其內容嗎?}}"+#: src/components/ConsentDialogBody.tsx+msgid "{count, plural, one {Found {formattedCount} markdown file} other {Found {formattedCount} markdown files}}"+msgstr "{count, plural, other {找到 {formattedCount} 個 markdown 檔案}}"+#: src/components/ProblemsPanel.tsxmsgid "{count, plural, one {Hands the # problem to your AI agent, including what has no automatic fix.} other {Hands all # problems to your AI agent, including what has no automatic fix.}}"msgstr "{count, plural, other {把這 # 個問題交給你的 AI 代理,包括沒有自動修正方式的部分。}}"@@ -11384,6 +11388,10 @@ msgstr "專案詳細資料"msgid "Project folder created, but git init failed. Try again."msgstr "專案資料夾已建立,但 git init 失敗。請再試一次。"+#: src/components/ConsentDialogBody.tsx+msgid "Project folder: <0>{projectDir}</0>"+msgstr "專案資料夾:<0>{projectDir}</0>"+#: src/components/settings/AgentConnectionDialogs.tsxmsgid "Project MCP server"msgstr "專案 MCP 伺服器"@@ -15451,10 +15459,6 @@ msgstr "這份清單可能不是最新的——上次讀取:{staleRelative}。msgid "This list may be out of date."msgstr "這份清單可能不是最新的。"-#: src/components/ConsentDialogBody.tsx-msgid "This looks like a drive root (e.g., C:\\). Scaffolding here will scan an entire drive."-msgstr "這看起來像是磁碟機根目錄(例如 C:\\)。在這裡建立專案骨架會掃描整個磁碟機。"-#: src/components/settings/AgentConnectionDialogs.tsx#: src/components/settings/ScopeBadge.tsx#: src/components/SkillScopeSegment.tsx@@ -16973,14 +16977,6 @@ msgstr "你選了 ~/Documents。OpenKnowledge 會把它底下的每個 markdownmsgid "You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."msgstr "你選了 ~/Downloads。那裡的檔案通常是暫時的——建議改用一個穩定的資料夾。"-#: src/components/ConsentDialogBody.tsx-msgid "You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."-msgstr "你選了檔案系統根目錄(/)。在這裡建立專案骨架會掃描這台電腦上的每個檔案——請確認這真的是你要的。"--#: src/components/ConsentDialogBody.tsx-msgid "You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."-msgstr "你選了家目錄。OpenKnowledge 會把整個家目錄樹都建立索引——數量龐大,而且可能把個人檔案帶出來。"-#: src/components/OnboardingCard.tsxmsgid "You're all set up!"msgstr "全都設定好了!"diff --git a/packages/cli/src/commands/init-filesystem-root.test.ts b/packages/cli/src/commands/init-filesystem-root.test.tsnew file mode 100644index 000000000..ee554e50f--- /dev/null+++ b/packages/cli/src/commands/init-filesystem-root.test.ts@@ -0,0 +1,80 @@+import { existsSync, mkdirSync, mkdtempSync, realpathSync, rmSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { OK_DIR } from '../constants.ts';++const rootLike = vi.hoisted(() => ({ dir: '' }));++vi.mock('@inkeep/open-knowledge-server', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@inkeep/open-knowledge-server')>();+ return {+ ...actual,+ isFilesystemRoot: (dir: string, platform?: NodeJS.Platform) =>+ dir === rootLike.dir || actual.isFilesystemRoot(dir, platform),+ };+});++const { FilesystemRootProjectError, initCommand, runInit } = await import('./init.ts');++describe('ok init refuses the top of a drive', () => {+ let testDir: string;+ let fakeHome: string;+ let driveRoot: string;+ const originalHome = process.env.HOME;++ beforeEach(() => {+ testDir = realpathSync(mkdtempSync(join(tmpdir(), 'init-root-refusal-test-')));+ fakeHome = join(testDir, 'fakehome');+ driveRoot = join(testDir, 'drive');+ mkdirSync(join(fakeHome, '.claude'), { recursive: true });+ mkdirSync(driveRoot, { recursive: true });+ rootLike.dir = driveRoot;+ process.env.HOME = fakeHome;+ });++ afterEach(() => {+ if (originalHome === undefined) delete process.env.HOME;+ else process.env.HOME = originalHome;+ rootLike.dir = '';+ rmSync(testDir, { recursive: true, force: true });+ });++ it('throws FilesystemRootProjectError and writes nothing', async () => {+ await expect(+ runInit({+ cwd: driveRoot,+ home: fakeHome,+ installUserSkill: async () => 'installed' as const,+ scope: 'project',+ skills: true,+ }),+ ).rejects.toBeInstanceOf(FilesystemRootProjectError);++ expect(existsSync(join(driveRoot, '.git'))).toBe(false);+ expect(existsSync(join(driveRoot, OK_DIR))).toBe(false);+ expect(existsSync(join(driveRoot, '.okignore'))).toBe(false);+ });++ it('the command action prints the refusal and exits 64', async () => {+ const savedCwd = process.cwd();+ const savedExitCode = process.exitCode;+ const stderrSpy = vi.spyOn(process.stderr, 'write').mockImplementation(() => true);+ try {+ process.chdir(driveRoot);++ await initCommand().parseAsync([], { from: 'user' });++ expect(process.exitCode).toBe(64);+ const printed = stderrSpy.mock.calls.map((call) => String(call[0])).join('');+ expect(printed).toContain(+ 'Refusing to set up an OpenKnowledge project at the top of a drive',+ );+ expect(existsSync(join(driveRoot, OK_DIR))).toBe(false);+ } finally {+ process.chdir(savedCwd);+ process.exitCode = savedExitCode;+ stderrSpy.mockRestore();+ }+ });+});diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.tsindex f9cee3535..a2a691eaa 100644--- a/packages/cli/src/commands/init.ts+++ b/packages/cli/src/commands/init.ts@@ -17,11 +17,13 @@ import {BUNDLE_SKILL_NAME,detectUserSkillHosts,ensureProjectGit,+ FilesystemRootProjectError,GitNotAvailableError,GitTooOldError,HomeProjectRootError,initContent,installUserSkill,+ isFilesystemRoot,isSkillInstallReportEnvOptOut,ONBOARDING_BUNDLE_IDS,ProjectGitInitError,@@ -589,7 +591,7 @@ export class ContentDirError extends Error {}}-export { HomeProjectRootError };+export { FilesystemRootProjectError, HomeProjectRootError };export function resolveInitSkillEnablement(skills: string | boolean | undefined): Set<BundleId> {if (skills === undefined || skills === true) return new Set<BundleId>(ONBOARDING_BUNDLE_IDS);@@ -1138,6 +1140,9 @@ export async function runInit(options: InitCommandOptions = {}): Promise<InitComif (isHomeDir(projectRoot, options.home ?? homedir())) {throw new HomeProjectRootError(projectRoot);}+ if (isFilesystemRoot(projectRoot)) {+ throw new FilesystemRootProjectError(projectRoot);+ }const willScaffold = !existsSync(join(projectRoot, OK_DIR));const promotedFromDir = resolution.gitRootPromoted ? relative(projectRoot, cwd) : undefined;const contentDirScope =@@ -1952,7 +1957,11 @@ export function initCommand(): Command {skills: opts.skills,});} catch (err) {- if (err instanceof ContentDirError || err instanceof HomeProjectRootError) {+ if (+ err instanceof ContentDirError ||+ err instanceof HomeProjectRootError ||+ err instanceof FilesystemRootProjectError+ ) {process.stderr.write(`${err.message}\n`);process.exitCode = 64;return;diff --git a/packages/cli/src/commands/share/publish-filesystem-root.test.ts b/packages/cli/src/commands/share/publish-filesystem-root.test.tsnew file mode 100644index 000000000..8066276b7--- /dev/null+++ b/packages/cli/src/commands/share/publish-filesystem-root.test.ts@@ -0,0 +1,39 @@+import { afterEach, describe, expect, test, vi } from 'vitest';++const tokenLookups = vi.hoisted(() => ({ count: 0 }));++vi.mock('../auth/repos.ts', () => ({+ resolveReposToken: async () => {+ tokenLookups.count += 1;+ return null;+ },+}));++const { sharePublishCommand } = await import('./publish.ts');++describe('share publish refuses the top of a drive', () => {+ afterEach(() => {+ tokenLookups.count = 0;+ });++ test('prints the refusal and exits 64 before looking up credentials', async () => {+ const savedExitCode = process.exitCode;+ const stderrSpy = vi.spyOn(process.stderr, 'write').mockImplementation(() => true);+ const stdoutSpy = vi.spyOn(process.stdout, 'write').mockImplementation(() => true);+ try {+ await sharePublishCommand(async () => ({}) as never).parseAsync(+ ['--owner', 'someone', '--name', 'notes', '--visibility', 'private', '--project-dir', '/'],+ { from: 'user' },+ );++ expect(process.exitCode).toBe(64);+ const printed = stderrSpy.mock.calls.map((call) => String(call[0])).join('');+ expect(printed).toContain('top of a drive');+ expect(tokenLookups.count).toBe(0);+ } finally {+ process.exitCode = savedExitCode;+ stderrSpy.mockRestore();+ stdoutSpy.mockRestore();+ }+ });+});diff --git a/packages/cli/src/commands/share/publish.ts b/packages/cli/src/commands/share/publish.tsindex 51f82b37c..a235e4c99 100644--- a/packages/cli/src/commands/share/publish.ts+++ b/packages/cli/src/commands/share/publish.ts@@ -2,8 +2,10 @@ import { execSync } from 'node:child_process';import { existsSync } from 'node:fs';import { join, resolve } from 'node:path';import {+ FilesystemRootProjectError,HomeProjectRootError,initContent,+ isFilesystemRoot,isHomeDir,withHiddenWindowsConsole,} from '@inkeep/open-knowledge-server';@@ -324,6 +326,11 @@ async function runSharePublish(opts: PublishOptions, tokenStore: TokenStore): Prprocess.exitCode = 64;return;}+ if (isFilesystemRoot(projectDir)) {+ process.stderr.write(`${new FilesystemRootProjectError(resolve(projectDir)).message}\n`);+ process.exitCode = 64;+ return;+ }const token = await resolveReposToken(host, tokenStore);if (token == null) {emitPublishEvent(json, { kind: 'error', code: 'auth-required' });diff --git a/packages/core/src/desktop-bridge.ts b/packages/core/src/desktop-bridge.tsindex 6ef44a10c..1790003b5 100644--- a/packages/core/src/desktop-bridge.ts+++ b/packages/core/src/desktop-bridge.ts@@ -476,13 +476,10 @@ export type OkAgentIntegrationsApplyResult =};export type OkOnboardingWarningKind =- | 'root'- | 'home'| 'home-documents'| 'home-desktop'| 'home-downloads'- | 'volumes-mount'- | 'drive-root';+ | 'volumes-mount';export type OkOnboardingGitState = 'present' | 'absent' | 'shell-only';diff --git a/packages/desktop/src/main/dialog-helpers.test.ts b/packages/desktop/src/main/dialog-helpers.test.tsindex 3c2fcc1e9..e80bc875c 100644--- a/packages/desktop/src/main/dialog-helpers.test.ts+++ b/packages/desktop/src/main/dialog-helpers.test.ts@@ -1,4 +1,13 @@import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';++const dialogLog = vi.hoisted(() => ({+ info: vi.fn(),+ warn: vi.fn(),+ error: vi.fn(),+ debug: vi.fn(),+}));+vi.mock('./desktop-logger.ts', () => ({ getLogger: () => dialogLog }));+import {promptForExistingFolder,promptForExistingMarkdownFile,@@ -8,6 +17,14 @@ import {const ORIGINAL_SMOKE = process.env.OK_DESKTOP_E2E_SMOKE;const ORIGINAL_PICKED = process.env.OK_DESKTOP_TEST_PICKED_PATH;+function pickerReturning(result: { canceled: boolean; filePaths: string[] }) {+ return { showOpenDialog: vi.fn(async () => result), showErrorBox: vi.fn() };+}++beforeEach(() => {+ vi.clearAllMocks();+});+afterEach(() => {if (ORIGINAL_SMOKE === undefined) delete process.env.OK_DESKTOP_E2E_SMOKE;else process.env.OK_DESKTOP_E2E_SMOKE = ORIGINAL_SMOKE;@@ -23,35 +40,70 @@ describe('promptForExistingFolder', () => {test('OS picker uses openDirectory + createDirectory + showHiddenFiles (macOS: New Folder button + dot-dirs visible for `.claude/worktrees`)', async () => {const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/picked'] }));- const result = await promptForExistingFolder({ showOpenDialog });+ const result = await promptForExistingFolder({ showOpenDialog, showErrorBox: vi.fn() });expect(result).toBe('/picked');expect(showOpenDialog).toHaveBeenCalledWith({properties: ['openDirectory', 'createDirectory', 'showHiddenFiles'],});});- test('OS picker returns null on cancel', async () => {- const showOpenDialog = vi.fn(async () => ({ canceled: true, filePaths: [] }));- expect(await promptForExistingFolder({ showOpenDialog })).toBe(null);- });-- test('OS picker returns null on empty filePaths', async () => {- const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: [] }));- expect(await promptForExistingFolder({ showOpenDialog })).toBe(null);+ test('a cancel returns null silently', async () => {+ const picker = pickerReturning({ canceled: true, filePaths: [] });+ expect(await promptForExistingFolder(picker)).toBe(null);+ expect(picker.showErrorBox).not.toHaveBeenCalled();+ expect(dialogLog.warn).not.toHaveBeenCalled();+ expect(dialogLog.info).toHaveBeenCalledWith(+ { outcome: 'canceled', target: 'folder' },+ expect.any(String),+ );+ });++ test.each([+ { label: 'no paths', filePaths: [], shape: 'none' },+ { label: 'an empty path', filePaths: [''], shape: 'empty' },+ { label: 'a relative path', filePaths: ['notes'], shape: 'relative' },+ ])('a non-cancel close with $label shows an error and logs it', async ({ filePaths, shape }) => {+ const picker = pickerReturning({ canceled: false, filePaths });+ expect(await promptForExistingFolder(picker)).toBe(null);+ expect(picker.showErrorBox).toHaveBeenCalledTimes(1);+ expect(picker.showErrorBox.mock.calls[0]?.[0]).toContain('open that folder');+ expect(dialogLog.warn).toHaveBeenCalledWith(+ { outcome: 'no-selection', target: 'folder', shape, count: filePaths.length },+ expect.any(String),+ );+ });++ test('a picker that throws is logged and rethrown', async () => {+ const failure = new Error('portal unavailable');+ const picker = {+ showOpenDialog: vi.fn(async () => {+ throw failure;+ }),+ showErrorBox: vi.fn(),+ };+ await expect(promptForExistingFolder(picker)).rejects.toBe(failure);+ expect(dialogLog.error).toHaveBeenCalledWith(+ expect.objectContaining({ outcome: 'failed' }),+ expect.any(String),+ );});test('test seam returns env path when both gates set, never calls OS picker', async () => {process.env.OK_DESKTOP_E2E_SMOKE = '1';process.env.OK_DESKTOP_TEST_PICKED_PATH = '/tmp/seam';const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/never/used'] }));- expect(await promptForExistingFolder({ showOpenDialog })).toBe('/tmp/seam');+ expect(await promptForExistingFolder({ showOpenDialog, showErrorBox: vi.fn() })).toBe(+ '/tmp/seam',+ );expect(showOpenDialog).not.toHaveBeenCalled();});test('test seam ignored when OK_DESKTOP_E2E_SMOKE missing — production safety', async () => {process.env.OK_DESKTOP_TEST_PICKED_PATH = '/tmp/should-not-fire';const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/real/pick'] }));- expect(await promptForExistingFolder({ showOpenDialog })).toBe('/real/pick');+ expect(await promptForExistingFolder({ showOpenDialog, showErrorBox: vi.fn() })).toBe(+ '/real/pick',+ );expect(showOpenDialog).toHaveBeenCalled();});@@ -59,13 +111,18 @@ describe('promptForExistingFolder', () => {process.env.OK_DESKTOP_E2E_SMOKE = '1';process.env.OK_DESKTOP_TEST_PICKED_PATH = '';const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/real/pick'] }));- expect(await promptForExistingFolder({ showOpenDialog })).toBe('/real/pick');+ expect(await promptForExistingFolder({ showOpenDialog, showErrorBox: vi.fn() })).toBe(+ '/real/pick',+ );expect(showOpenDialog).toHaveBeenCalled();});test('defaultPath threads through to showOpenDialog', async () => {const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/picked'] }));- await promptForExistingFolder({ showOpenDialog }, { defaultPath: '/project/root' });+ await promptForExistingFolder(+ { showOpenDialog, showErrorBox: vi.fn() },+ { defaultPath: '/project/root' },+ );expect(showOpenDialog).toHaveBeenCalledWith({properties: ['openDirectory', 'createDirectory', 'showHiddenFiles'],defaultPath: '/project/root',@@ -74,7 +131,7 @@ describe('promptForExistingFolder', () => {test('omits defaultPath when not provided', async () => {const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/picked'] }));- await promptForExistingFolder({ showOpenDialog });+ await promptForExistingFolder({ showOpenDialog, showErrorBox: vi.fn() });expect(showOpenDialog).toHaveBeenCalledWith({properties: ['openDirectory', 'createDirectory', 'showHiddenFiles'],});@@ -128,7 +185,7 @@ describe('promptForExistingMarkdownFile', () => {test('OS picker uses openFile + a md/mdx filter', async () => {const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/notes/x.md'] }));- const result = await promptForExistingMarkdownFile({ showOpenDialog });+ const result = await promptForExistingMarkdownFile({ showOpenDialog, showErrorBox: vi.fn() });expect(result).toBe('/notes/x.md');expect(showOpenDialog).toHaveBeenCalledWith({properties: ['openFile'],@@ -136,27 +193,47 @@ describe('promptForExistingMarkdownFile', () => {});});- test('OS picker returns null on cancel', async () => {- const showOpenDialog = vi.fn(async () => ({ canceled: true, filePaths: [] }));- expect(await promptForExistingMarkdownFile({ showOpenDialog })).toBe(null);+ test('a cancel returns null silently', async () => {+ const picker = pickerReturning({ canceled: true, filePaths: [] });+ expect(await promptForExistingMarkdownFile(picker)).toBe(null);+ expect(picker.showErrorBox).not.toHaveBeenCalled();+ expect(dialogLog.info).toHaveBeenCalledWith(+ { outcome: 'canceled', target: 'file' },+ expect.any(String),+ );});- test('OS picker returns null on empty filePaths', async () => {- const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: [] }));- expect(await promptForExistingMarkdownFile({ showOpenDialog })).toBe(null);+ test.each([+ { label: 'no paths', filePaths: [], shape: 'none' },+ { label: 'an empty path', filePaths: [''], shape: 'empty' },+ { label: 'a relative path', filePaths: ['notes.md'], shape: 'relative' },+ ])('a non-cancel close with $label shows an error', async ({ filePaths, shape }) => {+ const picker = pickerReturning({ canceled: false, filePaths });+ expect(await promptForExistingMarkdownFile(picker)).toBe(null);+ expect(picker.showErrorBox).toHaveBeenCalledTimes(1);+ expect(picker.showErrorBox.mock.calls[0]?.[0]).toContain('open that file');+ expect(dialogLog.warn).toHaveBeenCalledWith(+ { outcome: 'no-selection', target: 'file', shape, count: filePaths.length },+ expect.any(String),+ );});test('test seam returns env path when both gates set, never calls OS picker', async () => {process.env.OK_DESKTOP_E2E_SMOKE = '1';process.env.OK_DESKTOP_TEST_PICKED_PATH = '/tmp/seam.md';const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/never/used.md'] }));- expect(await promptForExistingMarkdownFile({ showOpenDialog })).toBe('/tmp/seam.md');+ expect(await promptForExistingMarkdownFile({ showOpenDialog, showErrorBox: vi.fn() })).toBe(+ '/tmp/seam.md',+ );expect(showOpenDialog).not.toHaveBeenCalled();});test('defaultPath threads through to showOpenDialog', async () => {const showOpenDialog = vi.fn(async () => ({ canceled: false, filePaths: ['/notes/x.md'] }));- await promptForExistingMarkdownFile({ showOpenDialog }, { defaultPath: '/notes' });+ await promptForExistingMarkdownFile(+ { showOpenDialog, showErrorBox: vi.fn() },+ { defaultPath: '/notes' },+ );expect(showOpenDialog).toHaveBeenCalledWith({properties: ['openFile'],filters: [{ name: 'Markdown', extensions: ['md', 'mdx'] }],diff --git a/packages/desktop/src/main/dialog-helpers.ts b/packages/desktop/src/main/dialog-helpers.tsindex 566b8256f..798c9b644 100644--- a/packages/desktop/src/main/dialog-helpers.ts+++ b/packages/desktop/src/main/dialog-helpers.ts@@ -1,3 +1,8 @@+import { isAbsolute } from 'node:path';+import { getLogger } from './desktop-logger.ts';++type OpenDialogOptions = Parameters<DialogLike['showOpenDialog']>[0];+interface DialogLike {showOpenDialog(opts: {properties: (@@ -10,6 +15,56 @@ interface DialogLike {defaultPath?: string;filters?: { name: string; extensions: string[] }[];}): Promise<{ canceled: boolean; filePaths: string[] }>;+ showErrorBox(title: string, content: string): void;+}++const NO_SELECTION_COPY = {+ folder: {+ title: 'Couldn\u2019t open that folder',+ body: 'The folder picker closed without choosing a folder. Try again, and select the folder in the list instead of typing its path.',+ },+ file: {+ title: 'Couldn\u2019t open that file',+ body: 'The file picker closed without choosing a file. Try again, and select the file in the list instead of typing its path.',+ },+} as const;++function unusablePickShape(picked: string | undefined): 'none' | 'empty' | 'relative' | null {+ if (picked === undefined) return 'none';+ if (picked.length === 0) return 'empty';+ if (!isAbsolute(picked)) return 'relative';+ return null;+}++async function runPicker(+ dialogModule: DialogLike,+ target: keyof typeof NO_SELECTION_COPY,+ options: OpenDialogOptions,+): Promise<string | null> {+ const log = getLogger('dialog');+ let result: Awaited<ReturnType<DialogLike['showOpenDialog']>>;+ try {+ result = await dialogModule.showOpenDialog(options);+ } catch (err) {+ log.error({ outcome: 'failed', target, err }, 'picker failed to open');+ throw err;+ }+ if (result.canceled) {+ log.info({ outcome: 'canceled', target }, 'picker closed');+ return null;+ }+ const picked = result.filePaths[0];+ const unusable = unusablePickShape(picked);+ if (unusable !== null) {+ log.warn(+ { outcome: 'no-selection', target, shape: unusable, count: result.filePaths.length },+ 'picker returned no usable path',+ );+ const copy = NO_SELECTION_COPY[target];+ dialogModule.showErrorBox(copy.title, copy.body);+ return null;+ }+ return picked;}interface PromptForPickerOpts {@@ -41,12 +96,10 @@ export async function promptForExistingFolder(): Promise<string | null> {const testSeam = readTestPickedPath();if (testSeam !== null) return testSeam;- const result = await dialogModule.showOpenDialog({+ return runPicker(dialogModule, 'folder', {properties: ['openDirectory', 'createDirectory', 'showHiddenFiles'],...(opts.defaultPath !== undefined ? { defaultPath: opts.defaultPath } : {}),});- if (result.canceled) return null;- return result.filePaths[0] ?? null;}export async function promptForExistingMarkdownFile(@@ -55,11 +108,9 @@ export async function promptForExistingMarkdownFile(): Promise<string | null> {const testSeam = readTestPickedPath();if (testSeam !== null) return testSeam;- const result = await dialogModule.showOpenDialog({+ return runPicker(dialogModule, 'file', {properties: ['openFile'],filters: [{ name: 'Markdown', extensions: ['md', 'mdx'] }],...(opts.defaultPath !== undefined ? { defaultPath: opts.defaultPath } : {}),});- if (result.canceled) return null;- return result.filePaths[0] ?? null;}diff --git a/packages/desktop/src/main/folder-admission.test.ts b/packages/desktop/src/main/folder-admission.test.tsindex 7628a2e70..e7bbcdd24 100644--- a/packages/desktop/src/main/folder-admission.test.ts+++ b/packages/desktop/src/main/folder-admission.test.ts@@ -12,6 +12,8 @@ import {type FolderPickValidation,type GitState,isExactManagedProject,+ isSystemDirectory,+ REJECTION_REASON_COPY,type RejectionReason,type SensitivePathWarning,type ValidateFolderPickOptions,@@ -20,6 +22,16 @@ import {const execFileAsync = promisify(execFile);+const simulatedFilesystemRoots = vi.hoisted(() => new Set<string>());+vi.mock('@inkeep/open-knowledge-server', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@inkeep/open-knowledge-server')>();+ return {+ ...actual,+ isFilesystemRoot: (dir: string, platform?: NodeJS.Platform) =>+ simulatedFilesystemRoots.has(dir) || actual.isFilesystemRoot(dir, platform),+ };+});+const HOME = '/Users/test';describe('validateFolderPick — happy path (no warnings)', () => {@@ -37,29 +49,13 @@ describe('validateFolderPick — happy path (no warnings)', () => {});test('blocked is always false even when warnings fire', () => {- const result = validateFolderPick('/', { homeDir: HOME });+ const result = validateFolderPick(join(HOME, 'Documents'), { homeDir: HOME });+ expect(result.warnings).not.toEqual([]);expect(result.blocked).toBe(false);});});-describe('validateFolderPick — root warning', () => {- test('exact "/" returns root warning', () => {- const result = validateFolderPick('/', { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'root' }]);- });-- test('"/foo" does NOT trigger root warning', () => {- const result = validateFolderPick('/foo', { homeDir: HOME });- expect(result.warnings).toEqual([]);- });-});-describe('validateFolderPick — home warnings', () => {- test('exact home path returns home warning', () => {- const result = validateFolderPick(HOME, { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'home' }]);- });-test('home/Documents returns home-documents warning', () => {const result = validateFolderPick(join(HOME, 'Documents'), { homeDir: HOME });expect(result.warnings).toEqual([{ kind: 'home-documents' }]);@@ -97,9 +93,9 @@ describe('validateFolderPick — /Volumes warnings', () => {expect(result.warnings).toEqual([{ kind: 'volumes-mount' }]);});- test('exact /Volumes returns volumes-mount warning', () => {+ test('exact /Volumes carries no warning, since admission refuses it as a system folder', () => {const result = validateFolderPick('/Volumes', { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'volumes-mount' }]);+ expect(result.warnings).toEqual([]);});test('/Volumes-likeprefix does NOT trigger (must be /Volumes/ separator)', () => {@@ -108,45 +104,10 @@ describe('validateFolderPick — /Volumes warnings', () => {});});-describe('validateFolderPick — drive-root warning (Windows shape)', () => {- test.each(['C:\\', 'C:', 'C:/'])(- 'drive warnings for %s do not inherit the working directory',- (drivePath) => {- const workingDirectories = [resolve('/Users/test/project'), resolve('/Volumes/External')];- const cwd = vi.spyOn(process, 'cwd');- try {- for (const directory of workingDirectories) {- cwd.mockReturnValue(directory);- expect(validateFolderPick(drivePath, { homeDir: HOME }).warnings).toEqual([- { kind: 'drive-root' },- ]);- }- } finally {- cwd.mockRestore();- }- },- );-- test('C:\\ returns drive-root warning', () => {- const result = validateFolderPick('C:\\', { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'drive-root' }]);- });-- test('C: returns drive-root warning', () => {- const result = validateFolderPick('C:', { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'drive-root' }]);- });-- test('C:/ returns drive-root warning', () => {- const result = validateFolderPick('C:/', { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'drive-root' }]);- });-});-describe('validateFolderPick — purity + path normalization', () => {test('trailing slash normalized away (path.resolve canonicalizes)', () => {- const result = validateFolderPick(`${HOME}/`, { homeDir: HOME });- expect(result.warnings).toEqual([{ kind: 'home' }]);+ const result = validateFolderPick(`${HOME}/Documents/`, { homeDir: HOME });+ expect(result.warnings).toEqual([{ kind: 'home-documents' }]);});test('embedded ".." resolved before comparison', () => {@@ -168,13 +129,10 @@ describe('validateFolderPick — purity + path normalization', () => {test('warning kind type is exhaustively narrowed (compile-time + runtime)', () => {const allKinds: readonly SensitivePathWarning['kind'][] = [- 'root',- 'home','home-documents','home-desktop','home-downloads','volumes-mount',- 'drive-root',];for (const kind of allKinds) {const w: SensitivePathWarning = { kind };@@ -195,6 +153,7 @@ beforeEach(() => {});afterEach(() => {+ simulatedFilesystemRoots.clear();rmSync(tmpRoot, { recursive: true, force: true });});@@ -266,6 +225,166 @@ describe('discoverProject — the home directory is never a project', () => {});});+describe('discoverProject refuses filesystem roots and system folders', () => {+ test('rejects the filesystem root instead of classifying it fresh', async () => {+ const result = await discoverProject('/', {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result).toEqual({ kind: 'rejected', reason: 'filesystem-root' });+ });++ test('rejects the folder that holds every user profile', async () => {+ const result = await discoverProject(tmpReal, {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result).toEqual({ kind: 'rejected', reason: 'system-directory' });+ });++ test.skipIf(process.platform === 'win32')(+ 'rejects /bin whether it is a real folder or a merged-usr link into /usr',+ async () => {+ const result = await discoverProject('/bin', {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result).toEqual({ kind: 'rejected', reason: 'system-directory' });+ },+ );++ test.skipIf(process.platform !== 'darwin')(+ 'rejects a system folder spelled in a different letter case',+ async () => {+ const result = await discoverProject('/LIBRARY', {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result).toEqual({ kind: 'rejected', reason: 'system-directory' });+ },+ );++ test('an existing project at the top of a drive never captures a pick below it', async () => {+ const drive = resolve(tmpReal, 'drive');+ const pick = resolve(drive, 'work', 'notes');+ mkdirSync(pick, { recursive: true });+ writeOkConfig(drive);+ simulatedFilesystemRoots.add(drive);++ for (const dirSizeProbe of [null, async () => ({ exceedsCap: true })]) {+ const result = await discoverProject(pick, {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe,+ });++ expect(result).toMatchObject({ kind: 'fresh', projectDir: pick });+ }+ });++ test('an existing project in a system folder never captures a pick below it', async () => {+ const pick = resolve(tmpReal, 'shared', 'notes');+ mkdirSync(pick, { recursive: true });+ writeOkConfig(tmpReal);++ const result = await discoverProject(pick, {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result).toMatchObject({ kind: 'fresh', projectDir: pick });+ });++ test('a sibling of the home folder is unaffected', async () => {+ const project = resolve(tmpReal, 'shared-notes');+ mkdirSync(project, { recursive: true });++ const result = await discoverProject(project, {+ homeDir: fakeHome,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result.kind).toBe('fresh');+ });+});++describe('isSystemDirectory', () => {+ test.each([+ '/usr',+ '/etc',+ '/private/etc',+ '/var',+ '/System',+ '/Library',+ '/Applications',+ '/Volumes',+ '/usr/',+ '/usr/bin',+ '/usr/sbin',+ '/usr/lib',+ '/usr/lib64',+ ])('true for the OS-owned folder %s', (dir) => {+ expect(isSystemDirectory(dir, HOME, 'linux', {})).toBe(true);+ });++ test('true for the folder that holds every user profile', () => {+ expect(isSystemDirectory('/Users', HOME, 'darwin', {})).toBe(true);+ expect(isSystemDirectory('/home', '/home/test', 'linux', {})).toBe(true);+ });++ test.each([+ '/usr/local/notes',+ '/opt',+ '/opt/notes',+ '/srv',+ '/tmp',+ '/mnt',+ '/Volumes/SSD',+ '/Volumes/SSD/notes',+ '/Users/test/notes',+ '/usr-notes',+ ])('false for %s, matching folders exactly and never their contents', (dir) => {+ expect(isSystemDirectory(dir, HOME, 'linux', {})).toBe(false);+ });++ test.skipIf(process.platform === 'win32')(+ 'true for a link that resolves to a system folder',+ () => {+ const link = resolve(tmpReal, 'usr-link');+ symlinkSync('/usr', link);+ expect(isSystemDirectory(link, HOME)).toBe(true);+ },+ );++ test('Windows system folders match case-insensitively from the environment', () => {+ const env = {+ SystemRoot: 'C:\\Windows',+ ProgramFiles: 'C:\\Program Files',+ 'ProgramFiles(x86)': 'C:\\Program Files (x86)',+ ProgramData: 'C:\\ProgramData',+ };+ const winHome = 'C:\\Users\\test';+ expect(isSystemDirectory('c:\\windows', winHome, 'win32', env)).toBe(true);+ expect(isSystemDirectory('C:\\Program Files\\', winHome, 'win32', env)).toBe(true);+ expect(isSystemDirectory('C:\\Program Files (x86)', winHome, 'win32', env)).toBe(true);+ expect(isSystemDirectory('C:\\ProgramData', winHome, 'win32', env)).toBe(true);+ expect(isSystemDirectory('C:\\Users', winHome, 'win32', env)).toBe(true);+ expect(isSystemDirectory('C:\\Windows\\notes', winHome, 'win32', env)).toBe(false);+ expect(isSystemDirectory('C:\\Users\\test\\notes', winHome, 'win32', env)).toBe(false);+ expect(isSystemDirectory('D:\\notes', winHome, 'win32', env)).toBe(false);+ });+});+describe('discoverProject — managed kind (ancestor walk)', () => {test('returns managed at picked path when .ok/config.yml is at picked', async () => {const project = resolve(fakeHome, 'project');@@ -357,6 +476,24 @@ describe('discoverProject — managed kind (ancestor walk)', () => {expect(result.projectDir).toBe(sub);});+ test('walk excludes home when home is given by a symlinked spelling', async () => {+ writeOkConfig(fakeHome);+ const sub = resolve(fakeHome, 'sub');+ mkdirSync(sub, { recursive: true });+ const homeLink = resolve(tmpReal, 'home-link');+ symlinkSync(fakeHome, homeLink);++ const result = await discoverProject(sub, {+ homeDir: homeLink,+ gitTopLevel: stubGitTopLevel({}),+ dirSizeProbe: null,+ });++ expect(result.kind).toBe('fresh');+ if (result.kind !== 'fresh') return;+ expect(result.projectDir).toBe(sub);+ });+test('legacy .ok/ below git root wins over git-root promotion', async () => {const repo = resolve(fakeHome, 'repo');const docs = resolve(repo, 'docs');@@ -667,8 +804,11 @@ describe('discoverProject — type surface', () => {'symlink-escape','unreadable','home-directory',+ 'filesystem-root',+ 'system-directory',];for (const r of allReasons) expect(typeof r).toBe('string');+ expect(Object.keys(REJECTION_REASON_COPY).sort()).toEqual([...allReasons].sort());});test('DiscoverProjectOptions and DiscoverProjectResult are import-able', () => {diff --git a/packages/desktop/src/main/folder-admission.ts b/packages/desktop/src/main/folder-admission.tsindex 4d2dbfc1e..f2e3226fa 100644--- a/packages/desktop/src/main/folder-admission.ts+++ b/packages/desktop/src/main/folder-admission.ts@@ -1,21 +1,23 @@import { execFile } from 'node:child_process';import { existsSync, realpathSync, statSync } from 'node:fs';import { homedir as nodeHomedir } from 'node:os';-import { dirname, isAbsolute, join, relative, resolve } from 'node:path';+import { dirname, isAbsolute, join, posix, relative, resolve, win32 } from 'node:path';import { promisify } from 'node:util';import { resolveGitDirDetailed } from '@inkeep/open-knowledge-core/shadow-repo-layout';-import { canonicalizeForCompare, isHomeDir, isProjectRoot } from '@inkeep/open-knowledge-server';+import {+ canonicalizeForCompare,+ isFilesystemRoot,+ isHomeDir,+ isProjectRoot,+} from '@inkeep/open-knowledge-server';const execFileAsync = promisify(execFile);export type SensitivePathWarning =- | { readonly kind: 'root' }- | { readonly kind: 'home' }| { readonly kind: 'home-documents' }| { readonly kind: 'home-desktop' }| { readonly kind: 'home-downloads' }- | { readonly kind: 'volumes-mount' }- | { readonly kind: 'drive-root' };+ | { readonly kind: 'volumes-mount' };export interface FolderPickValidation {readonly warnings: readonly SensitivePathWarning[];@@ -33,23 +35,8 @@ export function validateFolderPick(const home = opts.homeDir ?? nodeHomedir();const warnings: SensitivePathWarning[] = [];- if (/^[A-Za-z]:[\\/]?$/.test(absPath)) {- warnings.push({ kind: 'drive-root' });- if (process.platform !== 'win32') {- return { warnings, blocked: false };- }- }-const resolved = resolve(absPath);- if (resolved === '/') {- warnings.push({ kind: 'root' });- }-- if (resolved === home) {- warnings.push({ kind: 'home' });- }-if (resolved === join(home, 'Documents')) {warnings.push({ kind: 'home-documents' });}@@ -62,7 +49,7 @@ export function validateFolderPick(warnings.push({ kind: 'home-downloads' });}- if (resolved === '/Volumes' || resolved.startsWith('/Volumes/')) {+ if (resolved.startsWith('/Volumes/')) {warnings.push({ kind: 'volumes-mount' });}@@ -71,7 +58,86 @@ export function validateFolderPick(export type GitState = 'present' | 'absent' | 'shell-only';-export type RejectionReason = 'symlink-escape' | 'unreadable' | 'home-directory';+export type RejectionReason =+ | 'symlink-escape'+ | 'unreadable'+ | 'home-directory'+ | 'filesystem-root'+ | 'system-directory';++const POSIX_SYSTEM_DIRECTORIES: ReadonlySet<string> = new Set([+ '/bin',+ '/boot',+ '/dev',+ '/etc',+ '/lib',+ '/lib32',+ '/lib64',+ '/libx32',+ '/proc',+ '/run',+ '/sbin',+ '/sys',+ '/usr',+ '/usr/bin',+ '/usr/lib',+ '/usr/lib32',+ '/usr/lib64',+ '/usr/libx32',+ '/usr/sbin',+ '/var',+ '/private',+ '/private/etc',+ '/private/var',+ '/System',+ '/Library',+ '/Applications',+ '/Volumes',+]);++const WINDOWS_SYSTEM_DIRECTORY_ENV_KEYS = [+ 'SystemRoot',+ 'ProgramFiles',+ 'ProgramFiles(x86)',+ 'ProgramData',+] as const;++export function isSystemDirectory(+ dir: string,+ home: string,+ platform: NodeJS.Platform = process.platform,+ env: NodeJS.ProcessEnv = process.env,+): boolean {+ const canonical = (p: string) => (platform === process.platform ? canonicalizeForCompare(p) : p);+ if (platform === 'win32') {+ const key = (p: string) => canonical(win32.resolve(p)).toLowerCase();+ const targets = new Set([win32.resolve(dir).toLowerCase(), key(dir)]);+ const candidates = [+ win32.dirname(canonical(win32.resolve(home))),+ ...WINDOWS_SYSTEM_DIRECTORY_ENV_KEYS.flatMap((name) => {+ const value = env[name];+ return value === undefined || value.length === 0 ? [] : [value];+ }),+ ];+ return candidates.some((candidate) => targets.has(key(candidate)));+ }+ const resolved = posix.resolve(dir);+ const homeParent = posix.dirname(canonicalizeForCompare(posix.resolve(home)));+ return [resolved, canonical(resolved)].some(+ (target) => POSIX_SYSTEM_DIRECTORIES.has(target) || target === homeParent,+ );+}++export const REJECTION_REASON_COPY = {+ 'symlink-escape': 'Symlink resolves outside its parent directory.',+ unreadable: 'Folder is unreadable or does not exist.',+ 'home-directory':+ "This is your home directory, not a project. ~/.ok is OpenKnowledge's own user-global folder (settings, skills), and opening a project here would set up git in your home directory and write project config into your editors' global folders. Make a folder for your notes and open that instead.",+ 'filesystem-root':+ 'This is the top of a drive, not a project folder. Setting up OpenKnowledge here would scan every file on the drive and set up git at its root. Make a folder for your notes and open that instead.',+ 'system-directory':+ 'This is a system folder, not a project folder. Make a folder for your notes and open that instead.',+} as const satisfies Record<RejectionReason, string>;export type DiscoverProjectResult =| {@@ -142,6 +208,14 @@ export async function discoverProject(return { kind: 'rejected', reason: 'home-directory' };}+ if (isFilesystemRoot(realPicked)) {+ return { kind: 'rejected', reason: 'filesystem-root' };+ }++ if (isSystemDirectory(absPicked, home) || isSystemDirectory(realPicked, home)) {+ return { kind: 'rejected', reason: 'system-directory' };+ }+if (isPickedPathLinkedWorktreeRoot(realPicked) && !isProjectRoot(realPicked)) {return {kind: 'fresh',@@ -156,7 +230,14 @@ export async function discoverProject(let cursor = realPicked;let depth = 0;while (depth < ANCESTOR_WALK_DEPTH_LIMIT) {- if (cursor === home || cursor === '/' || cursor === '') break;+ if (+ cursor === '' ||+ isHomeDir(cursor, home) ||+ isFilesystemRoot(cursor) ||+ isSystemDirectory(cursor, home)+ ) {+ break;+ }if (isProjectRoot(cursor)) {const ancestorPromoted = cursor !== realPicked;if (ancestorPromoted && dirSizeProbe !== null) {diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.tsindex 8b89db86d..9667bb4ff 100644--- a/packages/desktop/src/main/index.ts+++ b/packages/desktop/src/main/index.ts@@ -289,6 +289,7 @@ import {defaultGitTopLevel,discoverProject,isExactManagedProject,+ REJECTION_REASON_COPY,validateFolderPick,} from './folder-admission.ts';import { createBootBudgetDirSizeProbe } from './fs-walk-budget.ts';@@ -1775,13 +1776,7 @@ async function openProject(if (discovery.kind === 'rejected') {dialog.showErrorBox('Cannot open this folder',- `${projectPath}\n\nReason: ${- discovery.reason === 'symlink-escape'- ? 'Symlink resolves outside its parent directory.'- : discovery.reason === 'home-directory'- ? "This is your home directory, not a project. ~/.ok is OpenKnowledge's own user-global folder (settings, skills), and opening a project here would set up git in your home directory and write project config into your editors' global folders. Make a folder for your notes and open that instead."- : 'Folder is unreadable or does not exist.'- }`,+ `${projectPath}\n\nReason: ${REJECTION_REASON_COPY[discovery.reason]}`,);openNavigator();return false;diff --git a/packages/desktop/src/shared/ipc-channels.ts b/packages/desktop/src/shared/ipc-channels.tsindex 492e04b82..b05e15d65 100644--- a/packages/desktop/src/shared/ipc-channels.ts+++ b/packages/desktop/src/shared/ipc-channels.ts@@ -177,14 +177,7 @@ export interface HandoffStatsLine {export type McpWiringEditorId = EditorId;-type OnboardingWarningKind =- | 'root'- | 'home'- | 'home-documents'- | 'home-desktop'- | 'home-downloads'- | 'volumes-mount'- | 'drive-root';+type OnboardingWarningKind = 'home-documents' | 'home-desktop' | 'home-downloads' | 'volumes-mount';type OnboardingGitState = 'present' | 'absent' | 'shell-only';diff --git a/packages/desktop/tests/main/menu.test.ts b/packages/desktop/tests/main/menu.test.tsindex ab5c81676..7f4e17640 100644--- a/packages/desktop/tests/main/menu.test.ts+++ b/packages/desktop/tests/main/menu.test.ts@@ -126,6 +126,21 @@ describe('buildMenuTemplate', () => {expect(openProject).toHaveBeenCalledWith('/tmp/picked', 'pick-existing');});+ test('File → Open folder reports a picker that closes without a folder', async () => {+ const openProject = vi.fn(() => Promise.resolve());+ const showOpenDialog = vi.fn(() => Promise.resolve({ canceled: false, filePaths: [] }));+ const showErrorBox = vi.fn();+ const deps = makeDeps({+ openProject,+ dialog: { showOpenDialog, showErrorBox } as unknown as MenuDeps['dialog'],+ });+ const template = buildMenuTemplate(deps);+ const openFolder = findByLabel(template, 'Open folder…');+ await (openFolder?.click as (() => Promise<void>) | undefined)?.();+ expect(showErrorBox).toHaveBeenCalledTimes(1);+ expect(openProject).not.toHaveBeenCalled();+ });+test('Clear menu click dispatches deps.clearRecentProjects()', () => {const clearRecentProjects = vi.fn(() => {});const deps = makeDeps({diff --git a/packages/server/src/home-project-root.test.ts b/packages/server/src/home-project-root.test.tsindex 3b832a3aa..76f25b597 100644--- a/packages/server/src/home-project-root.test.ts+++ b/packages/server/src/home-project-root.test.ts@@ -1,8 +1,14 @@import { existsSync, mkdtempSync, rmSync, symlinkSync } from 'node:fs';import { tmpdir } from 'node:os';-import { join, resolve } from 'node:path';+import { join, resolve, sep } from 'node:path';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';-import { assertNotHomeProjectRoot, HomeProjectRootError, isHomeDir } from './home-project-root.ts';+import {+ assertSafeProjectRoot,+ FilesystemRootProjectError,+ HomeProjectRootError,+ isFilesystemRoot,+ isHomeDir,+} from './home-project-root.ts';import { initContent } from './init-project.ts';import { ensureProjectGit } from './project-git.ts';@@ -38,10 +44,10 @@ describe('isHomeDir', () => {});});-describe('assertNotHomeProjectRoot', () => {+describe('assertSafeProjectRoot', () => {test('throws for home, carrying the resolved path', () => {try {- assertNotHomeProjectRoot(home, home);+ assertSafeProjectRoot(home, home);throw new Error('expected a throw');} catch (err) {expect(err).toBeInstanceOf(HomeProjectRootError);@@ -49,8 +55,58 @@ describe('assertNotHomeProjectRoot', () => {}});+ test('throws for the filesystem root, carrying the resolved path', () => {+ try {+ assertSafeProjectRoot('/', home);+ throw new Error('expected a throw');+ } catch (err) {+ expect(err).toBeInstanceOf(FilesystemRootProjectError);+ expect((err as FilesystemRootProjectError).projectRoot).toBe(resolve('/'));+ expect((err as FilesystemRootProjectError).message).toContain('top of a drive');+ }+ });+test('is silent for any other directory', () => {- expect(() => assertNotHomeProjectRoot(join(home, 'notes'), home)).not.toThrow();+ expect(() => assertSafeProjectRoot(join(home, 'notes'), home)).not.toThrow();+ expect(() => assertSafeProjectRoot(home, join(home, 'other-home'))).not.toThrow();+ });+});++describe('isFilesystemRoot', () => {+ test('true for the host root and for a relative spelling of it', () => {+ expect(isFilesystemRoot('/')).toBe(true);+ expect(isFilesystemRoot(join(home, ...home.split(sep).map(() => '..')))).toBe(true);+ });++ test('false for ordinary directories, including top-level ones', () => {+ expect(isFilesystemRoot(home)).toBe(false);+ expect(isFilesystemRoot(tmpdir())).toBe(false);+ expect(isFilesystemRoot('/opt', 'linux')).toBe(false);+ });++ test.each(['C:\\', 'C:/', 'd:\\'])('true for the Windows drive root %s', (dir) => {+ expect(isFilesystemRoot(dir, 'win32')).toBe(true);+ });++ test.skipIf(process.platform === 'win32').each(['\\\\server\\share', '\\\\server\\share\\'])(+ 'true for the Windows share root %s',+ (dir) => {+ expect(isFilesystemRoot(dir, 'win32')).toBe(true);+ },+ );++ test.each(['C:\\Users', 'C:\\notes'])('false for the Windows folder %s', (dir) => {+ expect(isFilesystemRoot(dir, 'win32')).toBe(false);+ });++ test.skipIf(process.platform === 'win32')('false for a folder inside a Windows share', () => {+ expect(isFilesystemRoot('\\\\server\\share\\notes', 'win32')).toBe(false);+ });++ test('the macOS data volume counts as a root on darwin only', () => {+ expect(isFilesystemRoot('/System/Volumes/Data', 'darwin')).toBe(true);+ expect(isFilesystemRoot('/System/Volumes/Data/notes', 'darwin')).toBe(false);+ expect(isFilesystemRoot('/System/Volumes/Data', 'linux')).toBe(false);});});diff --git a/packages/server/src/home-project-root.ts b/packages/server/src/home-project-root.tsindex 0b977ba0c..b10f419d1 100644--- a/packages/server/src/home-project-root.ts+++ b/packages/server/src/home-project-root.ts@@ -1,6 +1,6 @@import { realpathSync } from 'node:fs';import { homedir as nodeHomedir } from 'node:os';-import { resolve } from 'node:path';+import { posix, resolve, win32 } from 'node:path';export class HomeProjectRootError extends Error {readonly projectRoot: string;@@ -17,6 +17,22 @@ export class HomeProjectRootError extends Error {}}+export class FilesystemRootProjectError extends Error {+ readonly projectRoot: string;++ constructor(projectRoot: string) {+ super(+ `Refusing to set up an OpenKnowledge project at the top of a drive (${projectRoot}).\n` ++ ` A project here would scan every file on the drive and run 'git init' at its root.\n` ++ ` Make a folder for this project, then run 'ok init' inside it.`,+ );+ this.name = 'FilesystemRootProjectError';+ this.projectRoot = projectRoot;+ }+}++const MACOS_DATA_VOLUME = '/System/Volumes/Data';+export function canonicalizeForCompare(p: string): string {try {return realpathSync.native(p);@@ -29,6 +45,17 @@ export function isHomeDir(dir: string, home: string = nodeHomedir()): boolean {return canonicalizeForCompare(resolve(dir)) === canonicalizeForCompare(home);}-export function assertNotHomeProjectRoot(dir: string, home?: string): void {+export function isFilesystemRoot(+ dir: string,+ platform: NodeJS.Platform = process.platform,+): boolean {+ const path = platform === 'win32' ? win32 : posix;+ const resolved = path.resolve(dir);+ const abs = platform === process.platform ? canonicalizeForCompare(resolved) : resolved;+ return path.dirname(abs) === abs || (platform === 'darwin' && abs === MACOS_DATA_VOLUME);+}++export function assertSafeProjectRoot(dir: string, home?: string): void {if (isHomeDir(dir, home)) throw new HomeProjectRootError(resolve(dir));+ if (isFilesystemRoot(dir)) throw new FilesystemRootProjectError(resolve(dir));}diff --git a/packages/server/src/index.ts b/packages/server/src/index.tsindex b10fe131c..c0191ac22 100644--- a/packages/server/src/index.ts+++ b/packages/server/src/index.ts@@ -260,9 +260,11 @@ export {} from './handoff-api.ts';export { type ProjectHeadState, readProjectHeadState } from './head-watcher.ts';export {- assertNotHomeProjectRoot,+ assertSafeProjectRoot,canonicalizeForCompare,+ FilesystemRootProjectError,HomeProjectRootError,+ isFilesystemRoot,isHomeDir,} from './home-project-root.ts';export {diff --git a/packages/server/src/init-project.ts b/packages/server/src/init-project.tsindex 092bdf652..4ecc81eb0 100644--- a/packages/server/src/init-project.ts+++ b/packages/server/src/init-project.ts@@ -15,7 +15,7 @@ import {tracedRmSync,tracedWriteFileSync,} from './fs-traced.ts';-import { assertNotHomeProjectRoot } from './home-project-root.ts';+import { assertSafeProjectRoot } from './home-project-root.ts';export const CONFIG_FILENAME = 'config.yml';@@ -272,7 +272,7 @@ export interface InitContentResult {}export function initContent(projectDir: string, options?: InitContentOptions): InitContentResult {- assertNotHomeProjectRoot(projectDir);+ assertSafeProjectRoot(projectDir);const okDir = resolve(projectDir, OK_DIR);const created: string[] = [];const updated: string[] = [];diff --git a/packages/server/src/project-git.ts b/packages/server/src/project-git.tsindex 88f32afb9..f029cdf83 100644--- a/packages/server/src/project-git.ts+++ b/packages/server/src/project-git.ts@@ -10,7 +10,7 @@ import {GitTooOldError,} from './git-preflight.ts';import { emitPreflightFailureSpan } from './git-preflight-telemetry.ts';-import { assertNotHomeProjectRoot } from './home-project-root.ts';+import { assertSafeProjectRoot } from './home-project-root.ts';import { getLogger } from './logger.ts';const execFileAsync = promisify(execFile);@@ -140,7 +140,7 @@ async function isInsideExistingWorkTree(gitBin: string, cwd: string): Promise<boexport async function ensureProjectGit(projectRoot: string): Promise<EnsureProjectGitResult> {const abs = resolve(projectRoot);- assertNotHomeProjectRoot(abs);+ assertSafeProjectRoot(abs);const gitPath = resolve(abs, '.git');const headPath = resolve(gitPath, 'HEAD');