Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Collect OS termination evidence in bug reports (PRD-8810) (#5619)
Andrew Mikofalvyaac70de09be5
diff --git a/.changeset/os-termination-evidence.md b/.changeset/os-termination-evidence.mdnew file mode 100644index 000000000..b669913ef--- /dev/null+++ b/.changeset/os-termination-evidence.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++Full bug reports and `ok diagnose bundle` now include what the operating system recorded about the app being ended, such as memory-pressure or out-of-memory kills, hangs, and shutdowns and restarts, so unexplained exits can be diagnosed.diff --git a/docs/content/reference/what-open-knowledge-writes.mdx b/docs/content/reference/what-open-knowledge-writes.mdxindex d9138c8b9..163abc408 100644--- a/docs/content/reference/what-open-knowledge-writes.mdx+++ b/docs/content/reference/what-open-knowledge-writes.mdx@@ -59,6 +59,7 @@ On every platform the app writes app-level state and logs on launch. The table b| `~/Library/Caches/@inkeepopen-knowledge-desktop-updater/` | Staged auto-update downloads (electron-updater) | Outside-project (home dir) || `~/Library/Caches/com.inkeep.open-knowledge.ShipIt/` | Install log of the macOS update helper (Squirrel's ShipIt), which swaps the app bundle after the app has quit. The only record of why an update failed to install, so a bug report you send collects it — only this app's, never those of other applications that use the same update mechanism | Outside-project (home dir) || `~/Library/Logs/DiagnosticReports/` | Not written by OpenKnowledge at all — this is macOS's own crash-report directory, shared by every application on the machine. When the OS ends one of this app's processes it records why there, which is sometimes the only account of a session that stopped without a crash dump, so a bug report you send at the **Detailed diagnostics** level collects the reports macOS wrote for this app and its helper processes — only ours, never those of any other application, and never at the standard level. A report of ours still names the processes it was running alongside. A report also carries machine details macOS puts in every one of them — the account uid, the Mac model, and the name of the process that launched the app, which on a managed machine can be internal tooling — while the identifiers that would link your bundles to each other are replaced before bundling. `ok diagnose bundle` collects them too, on every run: that command produces the Detailed superset by design, and its summary tells you what the search found before it writes the zip | Outside-project (home dir) |+| `/Library/Logs/DiagnosticReports/JetsamEvent-*.ips`; on Linux, the system journal; on Windows, the System and Application event logs | Not written by OpenKnowledge at all. These are the operating system's own records, shared by every application on the machine, of the times it ended a process from outside: macOS's low-memory kills (jetsam), the Linux kernel's out-of-memory killer and `systemd-oomd`, and on Windows the crash and hang records of applications plus the system's records of shutdowns, restarts, power losses, and low-memory warnings. A process ended that way runs none of its own code, so this is often the only account of a session that stopped with no crash dump. A bug report you send at the **Detailed diagnostics** level reads the past week of these records, and `ok diagnose bundle` reads them on every run. From macOS and Linux it keeps only the records that name this app's processes. On macOS it keeps, for each of this app's processes in a report, the process id, its memory use and peak, and whether macOS ended it. On Linux it keeps the time, the action, the process name and id, and the unit name, and drops the machine name, the cgroup paths, and the account uid the journal line carries. From the Windows Application log it keeps only this app's crash and hang records, with any value that looks like a file path removed. From the Windows System log it keeps the time and kind of every shutdown, restart, power loss, and low-memory warning on the machine, planned or not and whichever application they concerned, with no other detail. The result is `state/os-termination-evidence.json` in the zip, which a project's zip lists in `manifest.json`. A system-wide zip's README names it whenever records were kept | Machine-wide (OS logs) || `~/Library/Application Support/OpenKnowledge/Crashpad/` | Native crash minidumps, written by the OS crash handler (Electron's Crashpad) if the app ever crashes. Local-only: the crash reporter runs with `uploadToServer: false`, so no dump is ever uploaded automatically | Outside-project (home dir) || `~/Library/Application Support/OpenKnowledge/bug-report-dirty-shutdown.json` | Dirty-shutdown sentinel — written on **every** launch, refreshed as it runs, and removed on a clean quit. The next launch reads it to tell an app crash (prompts you) from the endings that are not a crash: a reboot, an OS shutdown, or dying asleep (all suppressed and logged instead), an update install shutting the app down to replace its files (logged either way, and suppressed in almost every case: a shutdown the app had no chance to record, or one it cannot date because the previous session left no heartbeat, can still prompt so you are able to report it), and a death the app can date to more than a week ago, which is too stale to report usefully — the diagnostics a report would gather describe the day you sent it rather than the day it happened. A fresh crash dump still overrides those, the same as it does for a reboot, a suspend or an OS shutdown — except in the first 30 seconds after the app committed to quitting for an update install, where a dump is part of that same shutdown rather than a crash you could act on. A session that left neither a heartbeat nor a crash dump cannot be dated, so it is never treated as stale | Outside-project (home dir) || `~/Library/Application Support/OpenKnowledge/bug-report-crash-acks.json` | Records which crash-report invitations you already answered or dismissed, so the same crash never re-prompts. Answering is what retires a crash: an invitation you simply never saw — because it went unanswered for a day, or the window it was waiting on never appeared — is dropped rather than answered, so that crash can be offered again the next time you open the app | Outside-project (home dir) |@@ -403,8 +404,8 @@ None of your content, by default. Everything above is written to your own disk.| What | When | Where it goes || --- | --- | --- |-| Diagnostic bundle | Only when you run `ok diagnose bundle` (you can inspect it first). On macOS it also carries the crash reports the OS recorded for this app and its helper processes (listed above), which are machine-wide rather than project-scoped; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the summary printed before the zip is written says what that search found even when the answer is nothing | Wherever you send it |-| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. You can also attach up to three images by dropping them on the **What happened?** box, pasting them anywhere in the dialog (`Cmd+V` / `Ctrl+V`), or browsing with the paperclip in that box. Neither these images nor the screenshot are scanned or redacted, so review them before sending. A report started from an agent chat's **Report a problem with this chat…** also carries, unless you uncheck **This conversation**, the newest 4 MB of that chat's messages, tool calls, and their output, and the chat's metadata file, which names the chat's title, the project folder's path, the document the chat started from, and the agent and its settings. Known secrets are scrubbed from both. Images and other binary content in the chat, including images pasted into a message, are replaced by a note of their type and size, while text files attached to a message are included and scrubbed the same way. If the chat's messages can't be added, the review step says so and the report goes without the conversation. If only the metadata file can't be read, the report carries the messages without it, and the review step doesn't say so. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, the Windows and Linux menu bar, or an agent chat's **Settings** menu — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. When the app holds a crash dump, the same dialog adds a **Crash dump** checkbox. It starts checked on the invitation that follows a crash with a dump available, and unchecked on a report you open yourself. A crash dump is a memory snapshot that can contain document content and can't be redacted, so it is attached only if that box is checked when you create the report, and you review the result before anything is sent. The invitation attaches the dump of the crash it was raised for, never a newer one; if that dump can't be added, the review step says so and the report goes without it. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the zip always says what that search found even when the answer is nothing. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | Send uploads the zip to the bug-report intake: `openknowledge.ai` unless [`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables) points elsewhere. If the upload fails, Send falls back to a prefilled email draft to [email protected] that you send yourself, naming the zip to attach |+| Diagnostic bundle | Only when you run `ok diagnose bundle` (you can inspect it first). On macOS it also carries the crash reports the OS recorded for this app and its helper processes (listed above), which are machine-wide rather than project-scoped; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the summary printed before the zip is written says what that search found even when the answer is nothing. On every platform it also carries the past week of the operating system's records of this app being ended from outside (listed above), and the same summary says what that read found | Wherever you send it |+| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. You can also attach up to three images by dropping them on the **What happened?** box, pasting them anywhere in the dialog (`Cmd+V` / `Ctrl+V`), or browsing with the paperclip in that box. Neither these images nor the screenshot are scanned or redacted, so review them before sending. A report started from an agent chat's **Report a problem with this chat…** also carries, unless you uncheck **This conversation**, the newest 4 MB of that chat's messages, tool calls, and their output, and the chat's metadata file, which names the chat's title, the project folder's path, the document the chat started from, and the agent and its settings. Known secrets are scrubbed from both. Images and other binary content in the chat, including images pasted into a message, are replaced by a note of their type and size, while text files attached to a message are included and scrubbed the same way. If the chat's messages can't be added, the review step says so and the report goes without the conversation. If only the metadata file can't be read, the report carries the messages without it, and the review step doesn't say so. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, the Windows and Linux menu bar, or an agent chat's **Settings** menu — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. When the app holds a crash dump, the same dialog adds a **Crash dump** checkbox. It starts checked on the invitation that follows a crash with a dump available, and unchecked on a report you open yourself. A crash dump is a memory snapshot that can contain document content and can't be redacted, so it is attached only if that box is checked when you create the report, and you review the result before anything is sent. The invitation attaches the dump of the crash it was raised for, never a newer one; if that dump can't be added, the review step says so and the report goes without it. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the zip always says what that search found even when the answer is nothing. On every platform the same level also adds the past week of the operating system's records of this app being ended from outside (also listed above), listed in `manifest.json` for a project's zip and named in the same README for a system-wide zip whenever records were kept. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | Send uploads the zip to the bug-report intake: `openknowledge.ai` unless [`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables) points elsewhere. If the upload fails, Send falls back to a prefilled email draft to [email protected] that you send yourself, naming the zip to attach || Uninstall feedback | Only if you answer the optional "Before you go" screen or prompt. The macOS desktop asks after you confirm removal, before the app quits and cleanup starts; feedback can be sent even if cleanup later fails. Interactive `ok uninstall` asks only after successful cleanup. Skipping sends nothing; CLI runs with `--yes`, `--json`, or non-interactive input never ask | `openknowledge.ai/api/feedback` — the reason you picked, your note, your email address if you gave one, plus the app version and platform. It files one ticket for the team; nothing from your notes is included || Feedback form | Only when you click **Send** in the feedback form, opened from **Help → Send feedback**, the command palette's **Send feedback** command, or the feedback card in the sidebar. Images you drop on, paste into, or attach to the message box go with it; like bug report images, they are not scanned or redacted | `openknowledge.ai/api/feedback` — your rating, the reasons you picked, your note, your email address if you gave one, up to three attached images, plus the app version and platform. In the desktop app the images upload first to the bug-report intake (`openknowledge.ai` unless [`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables) points elsewhere) and the feedback carries links to them. If an image upload fails, the images go inline with the feedback to `openknowledge.ai/api/feedback` instead || Semantic search embeddings | Only when you enable [semantic search](./configuration.mdx#semantic-search) **and** set a key — off by default | Your configured embeddings provider (OpenAI by default) |diff --git a/packages/app/src/components/ReportBugDialog.dom.test.tsx b/packages/app/src/components/ReportBugDialog.dom.test.tsxindex 29284a376..daea8c5af 100644--- a/packages/app/src/components/ReportBugDialog.dom.test.tsx+++ b/packages/app/src/components/ReportBugDialog.dom.test.tsx@@ -326,6 +326,26 @@ describe('ReportBugDialog', () => {expect(screen.queryByText(/crash reports macOS recorded/)).toBeNull();});+ test.each([+ ['darwin', /low-memory reports macOS wrote/],+ ['linux', /out-of-memory kills of OpenKnowledge that the system journal recorded/],+ ['win32', /crash and hang records Windows logged/],+ ])('shows only the %s operating-system records sentence', async (platform, own) => {+ installBridge({ platform });+ await renderDialog();+ await userEvent.click(screen.getByRole('button', { name: "What's included" }));++ const sentences = [+ /low-memory reports macOS wrote/,+ /out-of-memory kills of OpenKnowledge that the system journal recorded/,+ /crash and hang records Windows logged/,+ ];+ for (const sentence of sentences) {+ if (sentence.source === own.source) expect(screen.getByText(sentence)).not.toBeNull();+ else expect(screen.queryByText(sentence)).toBeNull();+ }+ });+test('a system-wide report says up front that no project logs are included', async () => {installBridge();await renderDialog({ systemWide: true });diff --git a/packages/app/src/components/ReportBugDialogBody.tsx b/packages/app/src/components/ReportBugDialogBody.tsxindex 3542a8545..a55a503aa 100644--- a/packages/app/src/components/ReportBugDialogBody.tsx+++ b/packages/app/src/components/ReportBugDialogBody.tsx@@ -171,8 +171,8 @@ function ReportBugDialog({agentChat,}: ReportBugDialogProps) {const { t } = useLingui();- const isMacOS =- (typeof window !== 'undefined' ? window.okDesktop?.platform : undefined) === 'darwin';+ const desktopPlatform = typeof window !== 'undefined' ? window.okDesktop?.platform : undefined;+ const isMacOS = desktopPlatform === 'darwin';const [phase, setPhase] = useState<Phase>(COMPOSE_IDLE);const [note, setNote] = useState('');const [detailed, setDetailed] = useState(crashContext !== undefined || crashInvite !== undefined);@@ -541,6 +541,28 @@ function ReportBugDialog({Credentials are always removed; document names, if included, appear incleartext (not redacted).</Trans>{' '}+ {isMacOS && (+ <Trans>+ It also adds the low-memory reports macOS wrote in the past week that+ list OpenKnowledge's processes, with each one's memory use and whether+ macOS ended it.+ </Trans>+ )}+ {desktopPlatform === 'linux' && (+ <Trans>+ It also adds the out-of-memory kills of OpenKnowledge that the system+ journal recorded in the past week, without the machine name, account+ id, or folder paths.+ </Trans>+ )}+ {desktopPlatform === 'win32' && (+ <Trans>+ It also adds the crash and hang records Windows logged for+ OpenKnowledge in the past week, without file paths, and the times of+ every shutdown, restart, power loss, and low-memory warning on this+ computer in that week, whatever caused them.+ </Trans>+ )}{' '}{isMacOS && (<Trans>It also adds the crash reports macOS recorded for OpenKnowledge anddiff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 61ec8a720..88e94bd1c 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -1443,6 +1443,9 @@"DLIljL": ["لا تظهر بعض السمات المحفوظة لأن مجلد السمات يتجاوز حد الفحص."],"DMLE5q": ["فشل الإصلاح التلقائي لـ MCP"],"DMeaxi": ["يجري تنزيل ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "كما يضيف حالات إنهاء OpenKnowledge بسبب نفاد الذاكرة التي سجّلها سجل النظام خلال الأسبوع الماضي، دون اسم الجهاز أو معرّف الحساب أو مسارات المجلدات."+ ],"DNkveC": ["خيارات العمود"],"DPfwMq": ["تم"],"DTI-fp": [@@ -2188,6 +2191,9 @@"اعرض مستندًا كشرائح تقديمية في نافذة خاصة به. أضف <0>slides: true</0> إلى frontmatter المستند، ثم افتحه عبر إجراء Slidev. يتولّى العرضَ واجهةُ Slidev لسطر الأوامر، وهي غير مضمّنة في OpenKnowledge."],"L4Cdd9": ["أو أنشئ ملفًا جديدًا <0/>"],+ "L5wak0": [+ "كما يضيف سجلات التعطّل وعدم الاستجابة التي سجّلها Windows لـ OpenKnowledge خلال الأسبوع الماضي، دون مسارات الملفات، وأوقات كل إيقاف تشغيل وإعادة تشغيل وانقطاع للطاقة وتحذير من نقص الذاكرة على هذا الكمبيوتر خلال ذلك الأسبوع، أيًّا كان سببها."+ ],"L6Hhh6": ["(الجذر)"],"L6Ud-t": ["تعذّر تحميل التعارضات. أعد التحميل للمحاولة مرة أخرى."],"L7NFTZ": ["أدخل عددًا من الثواني بين ", ["minimum"], " و", ["maximum"], "."],@@ -5848,6 +5854,9 @@"r51jLC": ["تم حفظ الملف وفتح تطبيق Claude Desktop"],"r57GiQ": ["توقّف ", ["agentName"], " بشكل غير متوقّع."],"r6ncaO": ["إغلاق التبويب"],+ "r6riWv": [+ "كما يضيف تقارير نقص الذاكرة التي كتبها macOS خلال الأسبوع الماضي والتي تذكر عمليات OpenKnowledge، مع استخدام الذاكرة لكل منها وما إذا كان macOS قد أنهاها."+ ],"r6y-jM": ["تحذير"],"r7IaYp": ["Open Knowledge Format التوجيه"],"r7tQuq": ["تقريرك محفوظ على هذا الحاسوب، فلم يُفقد شيء."],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex 513badd10..8285bd643 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -8093,10 +8093,22 @@ msgstr "رابط المشاركة غير صالح."msgid "Invalid YAML"msgstr "YAML غير صالح"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "كما يضيف سجلات التعطّل وعدم الاستجابة التي سجّلها Windows لـ OpenKnowledge خلال الأسبوع الماضي، دون مسارات الملفات، وأوقات كل إيقاف تشغيل وإعادة تشغيل وانقطاع للطاقة وتحذير من نقص الذاكرة على هذا الكمبيوتر خلال ذلك الأسبوع، أيًّا كان سببها."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "يضيف أيضًا تقارير الأعطال التي سجّلها macOS لـ OpenKnowledge وعملياته المساعدة، ولا يضيف أبدًا تقرير تطبيق آخر، وإن كانت تقاريرنا تذكر العمليات التي كانت تعمل إلى جانبها. يحمل كل تقرير تفاصيل الجهاز التي يضعها macOS في كل تقرير: uid حسابك، وطراز الـ Mac، واسم العملية التي شغّلت التطبيق. على جهاز مُدار، قد تكون عملية التشغيل تلك أداة داخلية. تُستبدل أولًا المعرّفات التي قد تربط بلاغات الأخطاء التي ترسلها ببعضها، لذا فإن التقرير المجمَّع ليس مطابقًا بايتًا ببايت لما كتبه macOS."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "كما يضيف تقارير نقص الذاكرة التي كتبها macOS خلال الأسبوع الماضي والتي تذكر عمليات OpenKnowledge، مع استخدام الذاكرة لكل منها وما إذا كان macOS قد أنهاها."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "كما يضيف حالات إنهاء OpenKnowledge بسبب نفاد الذاكرة التي سجّلها سجل النظام خلال الأسبوع الماضي، دون اسم الجهاز أو معرّف الحساب أو مسارات المجلدات."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 6aef5f2af..e336f7924 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -1211,6 +1211,9 @@"DLIljL": ["থিম ফোল্ডারটি স্ক্যানের সীমা ছাড়িয়ে যাওয়ায় কিছু সংরক্ষিত থিম দেখানো হচ্ছে না।"],"DMLE5q": ["MCP স্বয়ংক্রিয় মেরামত ব্যর্থ হয়েছে"],"DMeaxi": [["0"], " ", ["1"], " ডাউনলোড হচ্ছে…"],+ "DMwy6X": [+ "এটি গত সপ্তাহে সিস্টেম জার্নাল OpenKnowledge-এর মেমরি শেষ হয়ে যাওয়ার কারণে বন্ধ করার যে ঘটনাগুলো রেকর্ড করেছে সেগুলো মেশিনের নাম, অ্যাকাউন্ট আইডি বা ফোল্ডারের পাথ ছাড়া যোগ করে।"+ ],"DNkveC": ["কলাম বিকল্প"],"DPfwMq": ["সম্পন্ন"],"DTI-fp": [@@ -1871,6 +1874,9 @@"একটি নথিকে আলাদা উইন্ডোতে স্লাইড ডেক হিসেবে উপস্থাপন করুন। নথির frontmatter-এ <0>slides: true</0> যোগ করুন, তারপর Slidev অ্যাকশন দিয়ে খুলুন। রেন্ডারিং করে Slidev CLI, যা OpenKnowledge সরবরাহ করে না।"],"L4Cdd9": ["নয়তো একটি নতুন ফাইল তৈরি করুন <0/>"],+ "L5wak0": [+ "এটি গত সপ্তাহে Windows OpenKnowledge-এর জন্য যে ক্র্যাশ ও আটকে যাওয়ার রেকর্ড লগ করেছে তা ফাইলের পাথ ছাড়া যোগ করে, এবং সেই সপ্তাহে এই কম্পিউটারে প্রতিটি শাটডাউন, রিস্টার্ট, বিদ্যুৎ বিভ্রাট ও কম মেমরির সতর্কতার সময়ও যোগ করে, কারণ যা-ই হোক।"+ ],"L6Hhh6": ["(রুট)"],"L6Ud-t": ["দ্বন্দ্বগুলো লোড করা যায়নি। আবার চেষ্টা করতে রিলোড করুন।"],"L7NFTZ": [["minimum"], " থেকে ", ["maximum"], " এর মধ্যে সেকেন্ডের সংখ্যা লিখুন।"],@@ -4924,6 +4930,9 @@"r51jLC": ["ফাইল সংরক্ষিত হয়েছে ও Claude Desktop App খুলেছে"],"r57GiQ": [["agentName"], " অপ্রত্যাশিতভাবে থেমে গেছে।"],"r6ncaO": ["ট্যাব বন্ধ করুন"],+ "r6riWv": [+ "এটি গত সপ্তাহে macOS যে কম মেমরির রিপোর্ট লিখেছে যেগুলোতে OpenKnowledge-এর প্রসেসের উল্লেখ আছে, প্রতিটির মেমরি ব্যবহার এবং macOS সেটি বন্ধ করেছে কি না সহ, সেগুলোও যোগ করে।"+ ],"r6y-jM": ["সতর্কতা"],"r7IaYp": ["Open Knowledge Format নির্দেশিকা"],"r7tQuq": ["আপনার রিপোর্ট এই কম্পিউটারে সংরক্ষিত আছে, তাই কিছুই হারায়নি।"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex 9b80b9456..cbbf58ba2 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -8089,10 +8089,22 @@ msgstr "শেয়ার URL সঠিক নয়।"msgid "Invalid YAML"msgstr "অবৈধ YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "এটি গত সপ্তাহে Windows OpenKnowledge-এর জন্য যে ক্র্যাশ ও আটকে যাওয়ার রেকর্ড লগ করেছে তা ফাইলের পাথ ছাড়া যোগ করে, এবং সেই সপ্তাহে এই কম্পিউটারে প্রতিটি শাটডাউন, রিস্টার্ট, বিদ্যুৎ বিভ্রাট ও কম মেমরির সতর্কতার সময়ও যোগ করে, কারণ যা-ই হোক।"+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "এটি macOS OpenKnowledge এবং তার সহায়ক প্রক্রিয়াগুলির জন্য যে ক্র্যাশ রিপোর্ট রেকর্ড করেছে সেগুলিও যোগ করে, কখনও অন্য অ্যাপের রিপোর্ট নয়, যদিও আমাদের রিপোর্টে পাশাপাশি চলা প্রক্রিয়াগুলির নাম থাকে। প্রতিটিতে মেশিনের সেই তথ্য থাকে যা macOS প্রতিটি রিপোর্টে রাখে: আপনার অ্যাকাউন্ট uid, Mac মডেল, এবং যে প্রক্রিয়াটি অ্যাপটি চালু করেছে তার নাম। পরিচালিত মেশিনে সেই চালুকারী প্রক্রিয়াটি অভ্যন্তরীণ টুল হতে পারে। আপনার পাঠানো বাগ রিপোর্টগুলিকে পরস্পরের সঙ্গে যুক্ত করতে পারত এমন শনাক্তকারীগুলি আগেই প্রতিস্থাপিত হয়, তাই সংগৃহীত রিপোর্ট macOS যা লিখেছিল তার সঙ্গে বাইট-অনুযায়ী অভিন্ন নয়।"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "এটি গত সপ্তাহে macOS যে কম মেমরির রিপোর্ট লিখেছে যেগুলোতে OpenKnowledge-এর প্রসেসের উল্লেখ আছে, প্রতিটির মেমরি ব্যবহার এবং macOS সেটি বন্ধ করেছে কি না সহ, সেগুলোও যোগ করে।"++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "এটি গত সপ্তাহে সিস্টেম জার্নাল OpenKnowledge-এর মেমরি শেষ হয়ে যাওয়ার কারণে বন্ধ করার যে ঘটনাগুলো রেকর্ড করেছে সেগুলো মেশিনের নাম, অ্যাকাউন্ট আইডি বা ফোল্ডারের পাথ ছাড়া যোগ করে।"+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 3b3b450a4..e7c7daff8 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -1256,6 +1256,9 @@"DLIljL": ["Some saved themes aren’t shown because the theme folder exceeds the scan limit."],"DMLE5q": ["MCP auto-repair failed"],"DMeaxi": ["Downloading ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+ ],"DNkveC": ["Column options"],"DPfwMq": ["Done"],"DTI-fp": [@@ -1930,6 +1933,9 @@"Present a document as a slide deck in its own window. Add <0>slides: true</0> to a document's frontmatter, then open it with the Slidev action. Rendering is handled by the Slidev CLI, which OpenKnowledge does not bundle."],"L4Cdd9": ["or create a new file <0/>"],+ "L5wak0": [+ "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+ ],"L6Hhh6": ["(root)"],"L6Ud-t": ["Couldn't load conflicts — reload to retry."],"L7NFTZ": ["Enter a number of seconds between ", ["minimum"], " and ", ["maximum"], "."],@@ -5093,6 +5099,9 @@"r51jLC": ["File saved & Claude Desktop App opened"],"r57GiQ": [["agentName"], " stopped unexpectedly."],"r6ncaO": ["Close tab"],+ "r6riWv": [+ "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+ ],"r6y-jM": ["Warning"],"r7IaYp": ["Open Knowledge Format guidance"],"r7tQuq": ["Your report is saved on this computer, so nothing was lost."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex aeebf4513..d8171b85b 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -8093,10 +8093,22 @@ msgstr "Invalid share URL."msgid "Invalid YAML"msgstr "Invalid YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 35474919e..206cd44c2 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -1465,6 +1465,9 @@],"DMLE5q": ["Falló la reparación automática de MCP"],"DMeaxi": ["Descargando ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "También añade los cierres de OpenKnowledge por falta de memoria que el registro del sistema anotó durante la última semana, sin el nombre del equipo, el identificador de la cuenta ni las rutas de carpetas."+ ],"DNkveC": ["Opciones de columna"],"DPfwMq": ["Listo"],"DTI-fp": [@@ -2238,6 +2241,9 @@"Presenta un documento como una presentación de diapositivas en su propia ventana. Añade <0>slides: true</0> al frontmatter de un documento y ábrelo con la acción de Slidev. El renderizado lo gestiona la CLI de Slidev, que OpenKnowledge no incluye."],"L4Cdd9": ["o crea un archivo nuevo <0/>"],+ "L5wak0": [+ "También añade los registros de fallos y bloqueos que Windows anotó para OpenKnowledge durante la última semana, sin rutas de archivo, y las horas de cada apagado, reinicio, corte de energía y aviso de memoria baja de este equipo en esa semana, fuera cual fuera su causa."+ ],"L6Hhh6": ["(raíz)"],"L6Ud-t": ["No se pudieron cargar los conflictos. Vuelve a cargar para reintentar."],"L7NFTZ": ["Introduce un número de segundos entre ", ["minimum"], " y ", ["maximum"], "."],@@ -5875,6 +5881,9 @@"r51jLC": ["Archivo guardado y aplicación Claude Desktop abierta"],"r57GiQ": [["agentName"], " se detuvo inesperadamente."],"r6ncaO": ["Cerrar pestaña"],+ "r6riWv": [+ "También añade los informes de memoria baja que macOS escribió durante la última semana en los que aparecen procesos de OpenKnowledge, con el uso de memoria de cada uno y si macOS lo cerró."+ ],"r6y-jM": ["Advertencia"],"r7IaYp": ["Guía de Open Knowledge Format"],"r7tQuq": ["Tu informe está guardado en este equipo, así que no se perdió nada."],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 49306c712..8710345a3 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -8093,10 +8093,22 @@ msgstr "URL para compartir no válida."msgid "Invalid YAML"msgstr "YAML no válido"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "También añade los registros de fallos y bloqueos que Windows anotó para OpenKnowledge durante la última semana, sin rutas de archivo, y las horas de cada apagado, reinicio, corte de energía y aviso de memoria baja de este equipo en esa semana, fuera cual fuera su causa."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "También añade los informes de fallos que macOS registró para OpenKnowledge y sus procesos auxiliares, nunca el informe de otra aplicación, aunque los nuestros sí nombran los procesos junto a los que se estaban ejecutando. Cada uno incluye detalles del equipo que macOS pone en todos los informes: el uid de tu cuenta, el modelo del Mac y el nombre del proceso que inició la aplicación. En un equipo gestionado, ese proceso de inicio puede ser software interno. Los identificadores que vincularían entre sí los informes de error que envías se sustituyen antes, así que un informe recopilado no es idéntico byte a byte al que escribió macOS."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "También añade los informes de memoria baja que macOS escribió durante la última semana en los que aparecen procesos de OpenKnowledge, con el uso de memoria de cada uno y si macOS lo cerró."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "También añade los cierres de OpenKnowledge por falta de memoria que el registro del sistema anotó durante la última semana, sin el nombre del equipo, el identificador de la cuenta ni las rutas de carpetas."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 50fd891e0..dd9421ca0 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -1498,6 +1498,9 @@],"DMLE5q": ["La réparation automatique de MCP a échoué"],"DMeaxi": ["Téléchargement de ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "Il ajoute aussi les arrêts d'OpenKnowledge pour manque de mémoire consignés dans le journal système la semaine dernière, sans le nom de la machine, l'identifiant du compte ni les chemins de dossiers."+ ],"DNkveC": ["Options de colonne"],"DPfwMq": ["Terminé"],"DTI-fp": [@@ -2278,6 +2281,9 @@"Présentez un document sous forme de diaporama dans sa propre fenêtre. Ajoutez <0>slides: true</0> au frontmatter d'un document, puis ouvrez-le avec l'action Slidev. Le rendu est assuré par la CLI Slidev, qu'OpenKnowledge ne fournit pas."],"L4Cdd9": ["ou créez un nouveau fichier <0/>"],+ "L5wak0": [+ "Il ajoute aussi les plantages et blocages qu'a consignés Windows pour OpenKnowledge la semaine dernière, sans chemins de fichiers, ainsi que les heures de chaque arrêt, redémarrage, coupure de courant et alerte de mémoire insuffisante de cet ordinateur pendant cette semaine, quelle qu'en soit la cause."+ ],"L6Hhh6": ["(racine)"],"L6Ud-t": ["Impossible de charger les conflits. Rechargez pour réessayer."],"L7NFTZ": [@@ -5942,6 +5948,9 @@"r51jLC": ["Fichier enregistré et application Claude Desktop ouverte"],"r57GiQ": [["agentName"], " s'est arrêté de manière inattendue."],"r6ncaO": ["Fermer l'onglet"],+ "r6riWv": [+ "Il ajoute aussi les rapports de mémoire insuffisante écrits par macOS la semaine dernière qui citent des processus d'OpenKnowledge, avec la mémoire utilisée par chacun et l'indication que macOS l'a arrêté ou non."+ ],"r6y-jM": ["Avertissement"],"r7IaYp": ["Open Knowledge Format conseils"],"r7tQuq": ["Votre rapport est enregistré sur cet ordinateur, rien n'a donc été perdu."],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex afe23bf6f..3fb3c1e16 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -8093,10 +8093,22 @@ msgstr "URL de partage non valide."msgid "Invalid YAML"msgstr "YAML non valide"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "Il ajoute aussi les plantages et blocages qu'a consignés Windows pour OpenKnowledge la semaine dernière, sans chemins de fichiers, ainsi que les heures de chaque arrêt, redémarrage, coupure de courant et alerte de mémoire insuffisante de cet ordinateur pendant cette semaine, quelle qu'en soit la cause."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "Ajoute également les rapports de plantage que macOS a enregistrés pour OpenKnowledge et ses processus auxiliaires, jamais le rapport d'une autre application, même si les nôtres nomment les processus qui s'exécutaient à leurs côtés. Chacun contient des informations sur la machine que macOS inscrit dans tous les rapports : l'uid de votre compte, le modèle de Mac et le nom du processus qui a lancé l'application. Sur une machine gérée, ce processus de lancement peut être un outil interne. Les identifiants qui relieraient entre eux les rapports de bug que vous envoyez sont d'abord remplacés, de sorte qu'un rapport collecté n'est pas identique octet pour octet à celui écrit par macOS."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "Il ajoute aussi les rapports de mémoire insuffisante écrits par macOS la semaine dernière qui citent des processus d'OpenKnowledge, avec la mémoire utilisée par chacun et l'indication que macOS l'a arrêté ou non."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "Il ajoute aussi les arrêts d'OpenKnowledge pour manque de mémoire consignés dans le journal système la semaine dernière, sans le nom de la machine, l'identifiant du compte ni les chemins de dossiers."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex a48567557..202c72b00 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -1222,6 +1222,9 @@"DLIljL": ["कुछ सहेजी गई थीम नहीं दिखाई जा रही हैं क्योंकि थीम फ़ोल्डर स्कैन सीमा से बड़ा है।"],"DMLE5q": ["MCP स्वतः-मरम्मत विफल रही"],"DMeaxi": [["0"], " ", ["1"], " डाउनलोड हो रहा है…"],+ "DMwy6X": [+ "यह पिछले सप्ताह सिस्टम जर्नल में दर्ज OpenKnowledge के मेमोरी खत्म होने के कारण बंद किए जाने की घटनाएँ भी जोड़ता है, मशीन के नाम, खाता आईडी या फ़ोल्डर पाथ के बिना।"+ ],"DNkveC": ["कॉलम विकल्प"],"DPfwMq": ["पूर्ण"],"DTI-fp": [@@ -1870,6 +1873,9 @@"किसी दस्तावेज़ को अलग विंडो में स्लाइड डेक के रूप में प्रस्तुत करें। दस्तावेज़ के frontmatter में <0>slides: true</0> जोड़ें, फिर उसे Slidev क्रिया से खोलें। रेंडरिंग Slidev CLI करता है, जिसे OpenKnowledge शामिल नहीं करता।"],"L4Cdd9": ["या एक नई फ़ाइल बनाएँ <0/>"],+ "L5wak0": [+ "यह पिछले सप्ताह Windows द्वारा OpenKnowledge के लिए दर्ज क्रैश और अटकने के रिकॉर्ड, फ़ाइल पाथ के बिना, और उस सप्ताह इस कंप्यूटर पर हर शटडाउन, रीस्टार्ट, बिजली जाने और कम मेमोरी चेतावनी का समय भी जोड़ता है, कारण चाहे जो हो।"+ ],"L6Hhh6": ["(रूट)"],"L6Ud-t": ["विरोध लोड नहीं हो सके। दोबारा कोशिश करने के लिए फिर से लोड करें।"],"L7NFTZ": [["minimum"], " और ", ["maximum"], " के बीच सेकंड की संख्या दर्ज करें।"],@@ -4905,6 +4911,9 @@"r51jLC": ["फ़ाइल सहेजी गई और Claude Desktop App खुला"],"r57GiQ": [["agentName"], " अप्रत्याशित रूप से रुक गया।"],"r6ncaO": ["टैब बंद करें"],+ "r6riWv": [+ "यह पिछले सप्ताह macOS द्वारा लिखी गई कम मेमोरी रिपोर्टें भी जोड़ता है जिनमें OpenKnowledge की प्रक्रियाएँ सूचीबद्ध हैं, हर एक के मेमोरी उपयोग के साथ और यह भी कि macOS ने उसे बंद किया या नहीं।"+ ],"r6y-jM": ["चेतावनी"],"r7IaYp": ["Open Knowledge Format मार्गदर्शन"],"r7tQuq": ["आपकी रिपोर्ट इस कंप्यूटर पर सेव है, इसलिए कुछ भी नहीं खोया।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 5c90cf0ac..d3b2674db 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -8089,10 +8089,22 @@ msgstr "साझा करने का URL अमान्य है।"msgid "Invalid YAML"msgstr "अमान्य YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "यह पिछले सप्ताह Windows द्वारा OpenKnowledge के लिए दर्ज क्रैश और अटकने के रिकॉर्ड, फ़ाइल पाथ के बिना, और उस सप्ताह इस कंप्यूटर पर हर शटडाउन, रीस्टार्ट, बिजली जाने और कम मेमोरी चेतावनी का समय भी जोड़ता है, कारण चाहे जो हो।"+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "यह macOS द्वारा OpenKnowledge और उसकी सहायक प्रक्रियाओं के लिए दर्ज की गई क्रैश रिपोर्ट भी जोड़ता है, किसी दूसरे ऐप की रिपोर्ट कभी नहीं, हालाँकि हमारी रिपोर्ट उन प्रक्रियाओं के नाम बताती हैं जो साथ-साथ चल रही थीं। हर रिपोर्ट में मशीन का वह विवरण होता है जो macOS हर रिपोर्ट में डालता है: आपका खाता uid, Mac मॉडल, और उस प्रक्रिया का नाम जिसने ऐप शुरू किया। प्रबंधित मशीन पर वह शुरू करने वाली प्रक्रिया आंतरिक टूल हो सकती है। जो पहचानकर्ता आपकी भेजी गई बग रिपोर्टों को आपस में जोड़ सकते हैं उन्हें पहले बदल दिया जाता है, इसलिए एकत्र की गई रिपोर्ट macOS द्वारा लिखी गई रिपोर्ट से बाइट-दर-बाइट समान नहीं होती।"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "यह पिछले सप्ताह macOS द्वारा लिखी गई कम मेमोरी रिपोर्टें भी जोड़ता है जिनमें OpenKnowledge की प्रक्रियाएँ सूचीबद्ध हैं, हर एक के मेमोरी उपयोग के साथ और यह भी कि macOS ने उसे बंद किया या नहीं।"++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "यह पिछले सप्ताह सिस्टम जर्नल में दर्ज OpenKnowledge के मेमोरी खत्म होने के कारण बंद किए जाने की घटनाएँ भी जोड़ता है, मशीन के नाम, खाता आईडी या फ़ोल्डर पाथ के बिना।"+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex f98740431..ddb46c254 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -1252,6 +1252,9 @@],"DMLE5q": ["Perbaikan otomatis MCP gagal"],"DMeaxi": ["Mengunduh ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "Ini juga menambahkan penghentian OpenKnowledge karena kehabisan memori yang dicatat jurnal sistem dalam seminggu terakhir, tanpa nama mesin, ID akun, atau jalur folder."+ ],"DNkveC": ["Opsi kolom"],"DPfwMq": ["Selesai"],"DTI-fp": [@@ -1961,6 +1964,9 @@"Tampilkan dokumen sebagai dek slide di jendela tersendiri. Tambahkan <0>slides: true</0> ke frontmatter dokumen, lalu buka dengan aksi Slidev. Perenderan ditangani oleh CLI Slidev, yang tidak disertakan OpenKnowledge."],"L4Cdd9": ["atau buat berkas baru <0/>"],+ "L5wak0": [+ "Ini juga menambahkan catatan crash dan macet yang dicatat Windows untuk OpenKnowledge dalam seminggu terakhir, tanpa jalur file, serta waktu setiap pematian, mulai ulang, listrik padam, dan peringatan memori rendah di komputer ini selama minggu itu, apa pun penyebabnya."+ ],"L6Hhh6": ["(akar)"],"L6Ud-t": ["Tidak dapat memuat konflik. Muat ulang untuk mencoba lagi."],"L7NFTZ": ["Masukkan jumlah detik antara ", ["minimum"], " dan ", ["maximum"], "."],@@ -5084,6 +5090,9 @@"r51jLC": ["Berkas tersimpan & aplikasi Claude Desktop terbuka"],"r57GiQ": [["agentName"], " berhenti secara tak terduga."],"r6ncaO": ["Tutup tab"],+ "r6riWv": [+ "Ini juga menambahkan laporan memori rendah yang ditulis macOS dalam seminggu terakhir yang mencantumkan proses OpenKnowledge, beserta penggunaan memori masing-masing dan apakah macOS menghentikannya."+ ],"r6y-jM": ["Peringatan"],"r7IaYp": ["Open Knowledge Format bimbingan"],"r7tQuq": ["Laporan Anda tersimpan di komputer ini, jadi tidak ada yang hilang."],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex ad6cee7b6..aaa53157a 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -8089,10 +8089,22 @@ msgstr "URL berbagi tidak valid."msgid "Invalid YAML"msgstr "YAML tidak valid"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "Ini juga menambahkan catatan crash dan macet yang dicatat Windows untuk OpenKnowledge dalam seminggu terakhir, tanpa jalur file, serta waktu setiap pematian, mulai ulang, listrik padam, dan peringatan memori rendah di komputer ini selama minggu itu, apa pun penyebabnya."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "Juga menambahkan laporan kerusakan yang dicatat macOS untuk OpenKnowledge dan proses pembantunya, tidak pernah laporan aplikasi lain, meskipun laporan kami menyebutkan proses-proses yang berjalan berdampingan dengannya. Masing-masing memuat detail mesin yang dicantumkan macOS di setiap laporan: uid akun Anda, model Mac, dan nama proses yang meluncurkan aplikasi. Pada mesin terkelola, proses peluncur itu bisa berupa perkakas internal. Pengidentifikasi yang akan menghubungkan laporan bug yang Anda kirim satu sama lain diganti terlebih dahulu, sehingga laporan yang dikumpulkan tidak identik byte per byte dengan yang ditulis macOS."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "Ini juga menambahkan laporan memori rendah yang ditulis macOS dalam seminggu terakhir yang mencantumkan proses OpenKnowledge, beserta penggunaan memori masing-masing dan apakah macOS menghentikannya."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "Ini juga menambahkan penghentian OpenKnowledge karena kehabisan memori yang dicatat jurnal sistem dalam seminggu terakhir, tanpa nama mesin, ID akun, atau jalur folder."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex 28744eb8b..d0faefb8e 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -1211,6 +1211,9 @@"DLIljL": ["테마 폴더가 스캔 한도를 초과해 일부 저장된 테마가 나타나지 않습니다."],"DMLE5q": ["MCP 자동 복구 실패"],"DMeaxi": [["0"], " ", ["1"], " 다운로드 중…"],+ "DMwy6X": [+ "또한 지난 한 주 동안 시스템 저널에 기록된 메모리 부족으로 인한 OpenKnowledge 강제 종료를 컴퓨터 이름, 계정 ID, 폴더 경로 없이 추가합니다."+ ],"DNkveC": ["열 옵션"],"DPfwMq": ["완료"],"DTI-fp": [@@ -1878,6 +1881,9 @@"문서를 별도 창에서 슬라이드 덱으로 표시합니다. 문서의 frontmatter에 <0>slides: true</0>를 추가한 후 Slidev 작업으로 엽니다. 렌더링은 Slidev CLI가 담당하며 OpenKnowledge에는 포함되지 않습니다."],"L4Cdd9": ["또는 새 파일 <0/> 만들기"],+ "L5wak0": [+ "또한 지난 한 주 동안 Windows가 OpenKnowledge에 대해 기록한 충돌 및 응답 없음 기록을 파일 경로 없이 추가하고, 그 주에 이 컴퓨터에서 발생한 모든 종료, 다시 시작, 전원 손실, 메모리 부족 경고의 시각을 원인과 관계없이 추가합니다."+ ],"L6Hhh6": ["(루트)"],"L6Ud-t": ["충돌을 불러올 수 없습니다. 다시 로드해 시도하세요."],"L7NFTZ": [["minimum"], "에서 ", ["maximum"], " 사이의 초 단위 값을 입력하세요."],@@ -4859,6 +4865,9 @@"r51jLC": ["파일 저장됨, Claude Desktop App 열림"],"r57GiQ": [["agentName"], "이(가) 예기치 않게 중지되었습니다."],"r6ncaO": ["탭 닫기"],+ "r6riWv": [+ "또한 지난 한 주 동안 macOS가 작성한 메모리 부족 보고서 중 OpenKnowledge 프로세스가 포함된 보고서를 각 프로세스의 메모리 사용량 및 macOS가 종료했는지 여부와 함께 추가합니다."+ ],"r6y-jM": ["경고"],"r7IaYp": ["Open Knowledge Format 안내"],"r7tQuq": ["보고서는 이 컴퓨터에 저장되어 있으므로 아무것도 잃지 않았습니다."],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex 25d29946d..0adfcaaed 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -8093,10 +8093,22 @@ msgstr "잘못된 공유 URL입니다."msgid "Invalid YAML"msgstr "잘못된 YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "또한 지난 한 주 동안 Windows가 OpenKnowledge에 대해 기록한 충돌 및 응답 없음 기록을 파일 경로 없이 추가하고, 그 주에 이 컴퓨터에서 발생한 모든 종료, 다시 시작, 전원 손실, 메모리 부족 경고의 시각을 원인과 관계없이 추가합니다."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "macOS가 OpenKnowledge와 그 보조 프로세스에 대해 기록한 충돌 보고서도 추가합니다. 다른 앱의 보고서는 절대 포함하지 않지만, 우리 보고서에는 함께 실행 중이던 프로세스의 이름이 담깁니다. 각 보고서에는 macOS가 모든 보고서에 기록하는 머신 정보가 담깁니다: 계정 uid, Mac 모델, 앱을 실행한 프로세스 이름입니다. 관리되는 기기에서는 그 실행 프로세스가 내부 도구일 수 있습니다. 사용자가 보내는 버그 신고들을 서로 연결할 수 있는 식별자는 먼저 대체되므로, 수집된 보고서는 macOS가 작성한 것과 바이트 단위로 동일하지 않습니다."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "또한 지난 한 주 동안 macOS가 작성한 메모리 부족 보고서 중 OpenKnowledge 프로세스가 포함된 보고서를 각 프로세스의 메모리 사용량 및 macOS가 종료했는지 여부와 함께 추가합니다."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "또한 지난 한 주 동안 시스템 저널에 기록된 메모리 부족으로 인한 OpenKnowledge 강제 종료를 컴퓨터 이름, 계정 ID, 폴더 경로 없이 추가합니다."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/pl/messages.json b/packages/app/src/locales/pl/messages.jsonindex 428304587..292beabc6 100644--- a/packages/app/src/locales/pl/messages.json+++ b/packages/app/src/locales/pl/messages.json@@ -1498,6 +1498,9 @@],"DMLE5q": ["Automatyczna naprawa MCP nie powiodła się"],"DMeaxi": ["Pobieranie ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "Dodaje też zapisane w dzienniku systemowym w ostatnim tygodniu zakończenia OpenKnowledge z powodu braku pamięci, bez nazwy komputera, identyfikatora konta ani ścieżek folderów."+ ],"DNkveC": ["Opcje kolumny"],"DPfwMq": ["Gotowe"],"DTI-fp": [@@ -2274,6 +2277,9 @@"Wyświetl dokument jako prezentację w osobnym oknie. Dodaj <0>slides: true</0> do frontmatter dokumentu, a następnie otwórz go akcją Slidev. Renderowanie obsługuje Slidev CLI, którego OpenKnowledge nie dołącza."],"L4Cdd9": ["lub utwórz nowy plik <0/>"],+ "L5wak0": [+ "Dodaje też zapisane przez Windows w ostatnim tygodniu awarie i zawieszenia OpenKnowledge, bez ścieżek plików, a także godziny każdego wyłączenia, ponownego uruchomienia, utraty zasilania i ostrzeżenia o małej ilości pamięci na tym komputerze w tym tygodniu, niezależnie od przyczyny."+ ],"L6Hhh6": ["(katalog główny)"],"L6Ud-t": ["Nie udało się wczytać konfliktów — odśwież, aby spróbować ponownie."],"L7NFTZ": ["Wpisz liczbę sekund z zakresu od ", ["minimum"], " do ", ["maximum"], "."],@@ -6015,6 +6021,9 @@"r51jLC": ["Plik zapisany i otwarto aplikację Claude Desktop"],"r57GiQ": [["agentName"], " nieoczekiwanie się zatrzymał."],"r6ncaO": ["Zamknij kartę"],+ "r6riWv": [+ "Dodaje też raporty o małej ilości pamięci zapisane przez macOS w ostatnim tygodniu, w których występują procesy OpenKnowledge, z użyciem pamięci każdego z nich i informacją, czy macOS go zakończył."+ ],"r6y-jM": ["Ostrzeżenie"],"r7IaYp": ["Wskazówki formatu Open Knowledge"],"r7tQuq": ["Twoje zgłoszenie jest zapisane na tym komputerze, więc nic nie zostało utracone."],diff --git a/packages/app/src/locales/pl/messages.po b/packages/app/src/locales/pl/messages.poindex 6932a860a..e8ece20dc 100644--- a/packages/app/src/locales/pl/messages.po+++ b/packages/app/src/locales/pl/messages.po@@ -8093,10 +8093,22 @@ msgstr "Nieprawidłowy adres URL udostępniania."msgid "Invalid YAML"msgstr "Nieprawidłowy YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "Dodaje też zapisane przez Windows w ostatnim tygodniu awarie i zawieszenia OpenKnowledge, bez ścieżek plików, a także godziny każdego wyłączenia, ponownego uruchomienia, utraty zasilania i ostrzeżenia o małej ilości pamięci na tym komputerze w tym tygodniu, niezależnie od przyczyny."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "Dodaje także raporty awaryjne zapisane przez macOS dla OpenKnowledge i jego procesów pomocniczych, nigdy raportu innej aplikacji — choć nasze zawierają nazwy procesów, obok których działały. Każdy zawiera dane komputera, które macOS umieszcza w każdym raporcie: uid Twojego konta, model Maca i nazwę procesu, który uruchomił aplikację. Na komputerze zarządzanym tym procesem uruchamiającym może być narzędzie wewnętrzne. Identyfikatory, które łączyłyby Twoje zgłoszenia błędów ze sobą, są najpierw zastępowane, dlatego zebrany raport nie jest bajt w bajt identyczny z tym, który zapisał macOS."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "Dodaje też raporty o małej ilości pamięci zapisane przez macOS w ostatnim tygodniu, w których występują procesy OpenKnowledge, z użyciem pamięci każdego z nich i informacją, czy macOS go zakończył."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "Dodaje też zapisane w dzienniku systemowym w ostatnim tygodniu zakończenia OpenKnowledge z powodu braku pamięci, bez nazwy komputera, identyfikatora konta ani ścieżek folderów."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 791a4e057..b4440505f 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -1256,6 +1256,9 @@"DLIljL": ["Śōḿē śàvēď ţĥēḿēś àŕēń’ţ śĥōŵń ƀēćàũśē ţĥē ţĥēḿē ƒōĺďēŕ ēxćēēďś ţĥē śćàń ĺĩḿĩţ."],"DMLE5q": ["ḾĆƤ àũţō-ŕēƥàĩŕ ƒàĩĺēď"],"DMeaxi": ["Ďōŵńĺōàďĩńĝ ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "Ĩţ àĺśō àďďś ţĥē ōũţ-ōƒ-ḿēḿōŕŷ ķĩĺĺś ōƒ ŌƥēńĶńōŵĺēďĝē ţĥàţ ţĥē śŷśţēḿ Ĵōũŕńàĺ ŕēćōŕďēď ĩń ţĥē ƥàśţ ŵēēķ, ŵĩţĥōũţ ţĥē ḿàćĥĩńē ńàḿē, àććōũńţ ĩď, ōŕ ƒōĺďēŕ ƥàţĥś."+ ],"DNkveC": ["Ćōĺũḿń ōƥţĩōńś"],"DPfwMq": ["Ďōńē"],"DTI-fp": [@@ -1930,6 +1933,9 @@"Ƥŕēśēńţ à ďōćũḿēńţ àś à śĺĩďē ďēćķ ĩń ĩţś ōŵń ŵĩńďōŵ. Àďď <0>śĺĩďēś: ţŕũē</0> ţō à ďōćũḿēńţ'ś ƒŕōńţḿàţţēŕ, ţĥēń ōƥēń ĩţ ŵĩţĥ ţĥē Śĺĩďēv àćţĩōń. Ŕēńďēŕĩńĝ ĩś ĥàńďĺēď ƀŷ ţĥē Śĺĩďēv ĆĹĨ, ŵĥĩćĥ ŌƥēńĶńōŵĺēďĝē ďōēś ńōţ ƀũńďĺē."],"L4Cdd9": ["ōŕ ćŕēàţē à ńēŵ ƒĩĺē <0/>"],+ "L5wak0": [+ "Ĩţ àĺśō àďďś ţĥē ćŕàśĥ àńď ĥàńĝ ŕēćōŕďś Ŵĩńďōŵś ĺōĝĝēď ƒōŕ ŌƥēńĶńōŵĺēďĝē ĩń ţĥē ƥàśţ ŵēēķ, ŵĩţĥōũţ ƒĩĺē ƥàţĥś, àńď ţĥē ţĩḿēś ōƒ ēvēŕŷ śĥũţďōŵń, ŕēśţàŕţ, ƥōŵēŕ ĺōśś, àńď ĺōŵ-ḿēḿōŕŷ ŵàŕńĩńĝ ōń ţĥĩś ćōḿƥũţēŕ ĩń ţĥàţ ŵēēķ, ŵĥàţēvēŕ ćàũśēď ţĥēḿ."+ ],"L6Hhh6": ["(ŕōōţ)"],"L6Ud-t": ["Ćōũĺďń'ţ ĺōàď ćōńƒĺĩćţś — ŕēĺōàď ţō ŕēţŕŷ."],"L7NFTZ": ["Ēńţēŕ à ńũḿƀēŕ ōƒ śēćōńďś ƀēţŵēēń ", ["minimum"], " àńď ", ["maximum"], "."],@@ -5093,6 +5099,9 @@"r51jLC": ["Ƒĩĺē śàvēď & Ćĺàũďē Ďēśķţōƥ Àƥƥ ōƥēńēď"],"r57GiQ": [["agentName"], " śţōƥƥēď ũńēxƥēćţēďĺŷ."],"r6ncaO": ["Ćĺōśē ţàƀ"],+ "r6riWv": [+ "Ĩţ àĺśō àďďś ţĥē ĺōŵ-ḿēḿōŕŷ ŕēƥōŕţś ḿàćŌŚ ŵŕōţē ĩń ţĥē ƥàśţ ŵēēķ ţĥàţ ĺĩśţ ŌƥēńĶńōŵĺēďĝē'ś ƥŕōćēśśēś, ŵĩţĥ ēàćĥ ōńē'ś ḿēḿōŕŷ ũśē àńď ŵĥēţĥēŕ ḿàćŌŚ ēńďēď ĩţ."+ ],"r6y-jM": ["Ŵàŕńĩńĝ"],"r7IaYp": ["Ōƥēń Ķńōŵĺēďĝē Ƒōŕḿàţ ĝũĩďàńćē"],"r7tQuq": ["Ŷōũŕ ŕēƥōŕţ ĩś śàvēď ōń ţĥĩś ćōḿƥũţēŕ, śō ńōţĥĩńĝ ŵàś ĺōśţ."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 9626ed01d..c071c9db8 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -8089,10 +8089,22 @@ msgstr ""msgid "Invalid YAML"msgstr ""+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr ""+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr ""+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr ""++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr ""+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 8b97193e6..138fef9c3 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -1443,6 +1443,9 @@],"DMLE5q": ["O reparo automático do MCP falhou"],"DMeaxi": ["Baixando ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "Também adiciona os encerramentos do OpenKnowledge por falta de memória que o diário do sistema registrou na última semana, sem o nome da máquina, o ID da conta ou caminhos de pastas."+ ],"DNkveC": ["Opções da coluna"],"DPfwMq": ["Concluído"],"DTI-fp": [@@ -2211,6 +2214,9 @@"Apresente um documento como slides em uma janela própria. Adicione <0>slides: true</0> ao frontmatter de um documento e abra-o com a ação do Slidev. A renderização é feita pela CLI do Slidev, que o OpenKnowledge não inclui."],"L4Cdd9": ["ou crie um novo arquivo <0/>"],+ "L5wak0": [+ "Também adiciona os registros de falhas e travamentos que o Windows anotou para o OpenKnowledge na última semana, sem caminhos de arquivo, e os horários de cada desligamento, reinicialização, queda de energia e aviso de pouca memória deste computador nessa semana, seja qual for a causa."+ ],"L6Hhh6": ["(raiz)"],"L6Ud-t": ["Não foi possível carregar os conflitos. Recarregue para tentar de novo."],"L7NFTZ": ["Insira um número de segundos entre ", ["minimum"], " e ", ["maximum"], "."],@@ -5758,6 +5764,9 @@"r51jLC": ["Arquivo salvo e app Claude Desktop aberto"],"r57GiQ": [["agentName"], " parou inesperadamente."],"r6ncaO": ["Fechar aba"],+ "r6riWv": [+ "Também adiciona os relatórios de pouca memória que o macOS escreveu na última semana em que aparecem processos do OpenKnowledge, com o uso de memória de cada um e se o macOS o encerrou."+ ],"r6y-jM": ["Aviso"],"r7IaYp": ["Open Knowledge Format orientação"],"r7tQuq": ["Seu relatório está salvo neste computador, então nada foi perdido."],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex 226947bd2..6e4562811 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -8089,10 +8089,22 @@ msgstr "URL de compartilhamento inválida."msgid "Invalid YAML"msgstr "YAML inválido"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "Também adiciona os registros de falhas e travamentos que o Windows anotou para o OpenKnowledge na última semana, sem caminhos de arquivo, e os horários de cada desligamento, reinicialização, queda de energia e aviso de pouca memória deste computador nessa semana, seja qual for a causa."+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "Também adiciona os relatórios de falha que o macOS registrou para o OpenKnowledge e seus processos auxiliares, nunca o relatório de outro aplicativo, embora os nossos nomeiem os processos que estavam em execução ao lado deles. Cada um traz detalhes da máquina que o macOS coloca em todos os relatórios: o uid da sua conta, o modelo do Mac e o nome do processo que iniciou o aplicativo. Em uma máquina gerenciada, esse processo inicializador pode ser uma ferramenta interna. Os identificadores que ligariam entre si os relatórios de erro que você envia são substituídos antes, então um relatório coletado não é idêntico byte a byte ao que o macOS escreveu."+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "Também adiciona os relatórios de pouca memória que o macOS escreveu na última semana em que aparecem processos do OpenKnowledge, com o uso de memória de cada um e se o macOS o encerrou."++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "Também adiciona os encerramentos do OpenKnowledge por falta de memória que o diário do sistema registrou na última semana, sem o nome da máquina, o ID da conta ou caminhos de pastas."+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex 38dee01b9..80f84bd76 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -1267,6 +1267,9 @@],"DMLE5q": ["MCP کی خودکار مرمت ناکام رہی"],"DMeaxi": [["0"], " ", ["1"], " ڈاؤن لوڈ ہو رہا ہے…"],+ "DMwy6X": [+ "یہ پچھلے ہفتے سسٹم جرنل میں درج OpenKnowledge کے میموری ختم ہونے کی وجہ سے بند کیے جانے کے واقعات بھی شامل کرتا ہے، مشین کے نام، اکاؤنٹ آئی ڈی یا فولڈر پاتھ کے بغیر۔"+ ],"DNkveC": ["کالم کے اختیارات"],"DPfwMq": ["مکمل"],"DTI-fp": [@@ -1966,6 +1969,9 @@"کسی دستاویز کو الگ ونڈو میں سلائیڈ ڈیک کے طور پر پیش کریں۔ دستاویز کے frontmatter میں <0>slides: true</0> شامل کریں، پھر اسے Slidev ایکشن سے کھولیں۔ رینڈرنگ Slidev CLI کرتا ہے، جو OpenKnowledge میں شامل نہیں۔"],"L4Cdd9": ["یا نئی فائل بنائیں <0/>"],+ "L5wak0": [+ "یہ پچھلے ہفتے Windows کی جانب سے OpenKnowledge کے لیے درج کریش اور اٹکنے کے ریکارڈ، فائل پاتھ کے بغیر، اور اس ہفتے اس کمپیوٹر پر ہر شٹ ڈاؤن، ری اسٹارٹ، بجلی جانے اور کم میموری کی وارننگ کے اوقات بھی شامل کرتا ہے، وجہ جو بھی ہو۔"+ ],"L6Hhh6": ["(جڑ)"],"L6Ud-t": ["تنازعات لوڈ نہیں ہو سکے۔ دوبارہ کوشش کے لیے صفحہ ری لوڈ کریں۔"],"L7NFTZ": [["minimum"], " اور ", ["maximum"], " کے درمیان سیکنڈ کی تعداد درج کریں۔"],@@ -5174,6 +5180,9 @@"r51jLC": ["فائل محفوظ ہو گئی اور Claude Desktop App کھل گیا"],"r57GiQ": [["agentName"], " غیر متوقع طور پر رک گیا۔"],"r6ncaO": ["ٹیب بند کریں"],+ "r6riWv": [+ "یہ پچھلے ہفتے macOS کی لکھی ہوئی کم میموری رپورٹس بھی شامل کرتا ہے جن میں OpenKnowledge کے پروسیس درج ہیں، ہر ایک کے میموری استعمال کے ساتھ اور یہ بھی کہ آیا macOS نے اسے بند کیا۔"+ ],"r6y-jM": ["انتباہ"],"r7IaYp": ["Open Knowledge Format رہنمائی"],"r7tQuq": ["آپ کی رپورٹ اس کمپیوٹر پر محفوظ ہے، اس لیے کچھ ضائع نہیں ہوا۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 9e8afd946..0ec3e8341 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -8093,10 +8093,22 @@ msgstr "شیئر URL درست نہیں۔"msgid "Invalid YAML"msgstr "YAML درست نہیں"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "یہ پچھلے ہفتے Windows کی جانب سے OpenKnowledge کے لیے درج کریش اور اٹکنے کے ریکارڈ، فائل پاتھ کے بغیر، اور اس ہفتے اس کمپیوٹر پر ہر شٹ ڈاؤن، ری اسٹارٹ، بجلی جانے اور کم میموری کی وارننگ کے اوقات بھی شامل کرتا ہے، وجہ جو بھی ہو۔"+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "یہ macOS کی جانب سے OpenKnowledge اور اس کے معاون عملوں کے لیے ریکارڈ کی گئی کریش رپورٹس بھی شامل کرتا ہے، کسی دوسری ایپ کی رپورٹ کبھی نہیں، اگرچہ ہماری رپورٹس اُن عملوں کے نام ضرور بتاتی ہیں جو ساتھ ساتھ چل رہے تھے۔ ہر رپورٹ میں مشین کی وہ تفصیلات ہوتی ہیں جو macOS ہر رپورٹ میں ڈالتا ہے: آپ کے اکاؤنٹ کا uid، Mac ماڈل، اور اُس عمل کا نام جس نے ایپ چلائی۔ منظم مشین پر وہ چلانے والا عمل داخلی ٹولنگ ہو سکتا ہے۔ وہ شناخت کنندگان جو آپ کی بھیجی گئی بگ رپورٹس کو آپس میں جوڑ سکتے تھے پہلے تبدیل کر دیے جاتے ہیں، اس لیے جمع کی گئی رپورٹ macOS کی لکھی ہوئی رپورٹ سے بائٹ بہ بائٹ یکساں نہیں ہوتی۔"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "یہ پچھلے ہفتے macOS کی لکھی ہوئی کم میموری رپورٹس بھی شامل کرتا ہے جن میں OpenKnowledge کے پروسیس درج ہیں، ہر ایک کے میموری استعمال کے ساتھ اور یہ بھی کہ آیا macOS نے اسے بند کیا۔"++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "یہ پچھلے ہفتے سسٹم جرنل میں درج OpenKnowledge کے میموری ختم ہونے کی وجہ سے بند کیے جانے کے واقعات بھی شامل کرتا ہے، مشین کے نام، اکاؤنٹ آئی ڈی یا فولڈر پاتھ کے بغیر۔"+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 3fbdd1022..136789e65 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -1101,6 +1101,9 @@"DLIljL": ["因为主题文件夹超出扫描限制,部分已保存的主题未显示。"],"DMLE5q": ["MCP 自动修复失败"],"DMeaxi": ["正在下载 ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "它还会添加系统日志在过去一周内记录的 OpenKnowledge 因内存耗尽被终止的事件,不含计算机名称、账户 ID 或文件夹路径。"+ ],"DNkveC": ["列选项"],"DPfwMq": ["完成"],"DTI-fp": [@@ -1687,6 +1690,9 @@"在独立窗口中将文档演示为幻灯片。在文档的 frontmatter 中添加 <0>slides: true</0>,然后通过 Slidev 操作打开它。渲染由 Slidev CLI 完成,OpenKnowledge 不捆绑它。"],"L4Cdd9": ["或者新建一个文件 <0/>"],+ "L5wak0": [+ "它还会添加 Windows 在过去一周内为 OpenKnowledge 记录的崩溃和无响应记录(不含文件路径),以及这台电脑在那一周内每次关机、重启、断电和内存不足警告的时间,无论原因为何。"+ ],"L6Hhh6": ["(根目录)"],"L6Ud-t": ["无法加载冲突。请重新加载后重试。"],"L7NFTZ": ["请输入 ", ["minimum"], " 到 ", ["maximum"], " 之间的秒数。"],@@ -4421,6 +4427,9 @@"r51jLC": ["文件已保存,Claude 桌面应用已打开"],"r57GiQ": [["agentName"], " 意外停止了。"],"r6ncaO": ["关闭标签页"],+ "r6riWv": [+ "它还会添加 macOS 在过去一周内写下的、列出 OpenKnowledge 进程的内存不足报告,包括每个进程的内存用量以及 macOS 是否终止了它。"+ ],"r6y-jM": ["警告"],"r7IaYp": ["Open Knowledge Format 指导"],"r7tQuq": ["你的报告已保存在这台电脑上,没有丢失任何内容。"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 29afdc257..2f2b09206 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -8093,10 +8093,22 @@ msgstr "共享链接无效。"msgid "Invalid YAML"msgstr "无效的 YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "它还会添加 Windows 在过去一周内为 OpenKnowledge 记录的崩溃和无响应记录(不含文件路径),以及这台电脑在那一周内每次关机、重启、断电和内存不足警告的时间,无论原因为何。"+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "还会添加 macOS 为 OpenKnowledge 及其辅助进程记录的崩溃报告,绝不包含其他应用的报告,不过我们自己的报告会列出与之同时运行的进程。每份报告都含有 macOS 写入所有报告的机器信息:你的账户 uid、Mac 机型,以及启动该应用的进程名称。在受管理的设备上,该启动进程可能是内部工具。会先替换掉可能将你提交的多份问题报告相互关联的标识符,因此收集到的报告与 macOS 写入的原文并非逐字节相同。"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "它还会添加 macOS 在过去一周内写下的、列出 OpenKnowledge 进程的内存不足报告,包括每个进程的内存用量以及 macOS 是否终止了它。"++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "它还会添加系统日志在过去一周内记录的 OpenKnowledge 因内存耗尽被终止的事件,不含计算机名称、账户 ID 或文件夹路径。"+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex ee8611bd7..8ec216e76 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -1103,6 +1103,9 @@"DLIljL": ["因為主題資料夾超出掃描限制,部分已儲存的主題未顯示。"],"DMLE5q": ["MCP 自動修復失敗"],"DMeaxi": ["正在下載 ", ["0"], " ", ["1"], "…"],+ "DMwy6X": [+ "它還會加入系統日誌在過去一週內記錄的 OpenKnowledge 因記憶體耗盡被終止的事件,不含電腦名稱、帳戶 ID 或資料夾路徑。"+ ],"DNkveC": ["欄選項"],"DPfwMq": ["完成"],"DTI-fp": [@@ -1701,6 +1704,9 @@"在獨立視窗中將文件展示為簡報。在文件的 frontmatter 中加入 <0>slides: true</0>,再透過 Slidev 動作開啟。算繪由 Slidev CLI 處理,OpenKnowledge 並未內建。"],"L4Cdd9": ["或者新增一個檔案 <0/>"],+ "L5wak0": [+ "它還會加入 Windows 在過去一週內為 OpenKnowledge 記錄的當機與沒有回應記錄(不含檔案路徑),以及這台電腦在那一週內每次關機、重新啟動、斷電和記憶體不足警告的時間,無論原因為何。"+ ],"L6Hhh6": ["(根目錄)"],"L6Ud-t": ["無法載入衝突。請重新載入後再試一次。"],"L7NFTZ": ["請輸入介於 ", ["minimum"], " 和 ", ["maximum"], " 之間的秒數。"],@@ -4443,6 +4449,9 @@"r51jLC": ["檔案已儲存,Claude Desktop App 已開啟"],"r57GiQ": [["agentName"], " 已意外停止。"],"r6ncaO": ["關閉分頁"],+ "r6riWv": [+ "它還會加入 macOS 在過去一週內寫下、列出 OpenKnowledge 處理程序的記憶體不足報告,包括每個處理程序的記憶體用量以及 macOS 是否結束了它。"+ ],"r6y-jM": ["警告"],"r7IaYp": ["Open Knowledge Format 指導"],"r7tQuq": ["你的回報已儲存在這台電腦上,沒有遺失任何內容。"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 92df6a09c..e9a8925ae 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -8093,10 +8093,22 @@ msgstr "分享網址無效。"msgid "Invalid YAML"msgstr "無效的 YAML"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the crash and hang records Windows logged for OpenKnowledge in the past week, without file paths, and the times of every shutdown, restart, power loss, and low-memory warning on this computer in that week, whatever caused them."+msgstr "它還會加入 Windows 在過去一週內為 OpenKnowledge 記錄的當機與沒有回應記錄(不含檔案路徑),以及這台電腦在那一週內每次關機、重新啟動、斷電和記憶體不足警告的時間,無論原因為何。"+#: src/components/ReportBugDialogBody.tsxmsgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr "還會加入 macOS 為 OpenKnowledge 及其輔助處理程序記錄的當機報告,絕不包含其他應用程式的報告,不過我們自己的報告會列出與之同時執行的處理程序。每份報告都含有 macOS 寫入所有報告的機器資訊:你的帳戶 uid、Mac 機型,以及啟動該應用程式的處理程序名稱。在受管理的裝置上,該啟動處理程序可能是內部工具。會先替換掉可能將你提交的多份問題報告相互關聯的識別碼,因此收集到的報告與 macOS 寫入的原文並非逐位元組相同。"+#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the low-memory reports macOS wrote in the past week that list OpenKnowledge's processes, with each one's memory use and whether macOS ended it."+msgstr "它還會加入 macOS 在過去一週內寫下、列出 OpenKnowledge 處理程序的記憶體不足報告,包括每個處理程序的記憶體用量以及 macOS 是否結束了它。"++#: src/components/ReportBugDialogBody.tsx+msgid "It also adds the out-of-memory kills of OpenKnowledge that the system journal recorded in the past week, without the machine name, account id, or folder paths."+msgstr "它還會加入系統日誌在過去一週內記錄的 OpenKnowledge 因記憶體耗盡被終止的事件,不含電腦名稱、帳戶 ID 或資料夾路徑。"+#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentName#: src/components/acp/ThreadView.tsxdiff --git a/packages/cli/src/commands/bug-report-bundle.ts b/packages/cli/src/commands/bug-report-bundle.tsindex 2962e6ff5..1e8ee1302 100644--- a/packages/cli/src/commands/bug-report-bundle.ts+++ b/packages/cli/src/commands/bug-report-bundle.ts@@ -20,6 +20,11 @@ import {prepareDiagnosticReportText,renderDiagnosticReportsStatus,} from '../diagnose/diagnostic-reports.ts';+import {+ OS_TERMINATION_EVIDENCE_PATH,+ type OsTerminationEvidence,+ renderOsTerminationEvidence,+} from '../diagnose/os-termination-evidence.ts';import type { LanguageMetadata } from '../report-language.ts';import { redactContent, SECRET_PATTERN_NAMES } from './bug-report-redact.ts';import { DESKTOP_BUNDLE_ID } from './desktop-dispatch.ts';@@ -66,6 +71,7 @@ export interface CollectStandardBundleOptions {shipItLogFiles?: string[];bugReportLedgerFiles?: string[];diagnosticReports?: DiagnosticReportCollection;+ osTerminationEvidence?: OsTerminationEvidence;note?: string;extraFiles?: BundleExtraFile[];desktop?: DesktopMetadata | null;@@ -489,6 +495,15 @@ export async function collectStandardBundle('state/diagnostic-reports-status.txt',);bundleFiles.push('state/diagnostic-reports-status.txt');+ addTextEntry({+ zipfile,+ name: OS_TERMINATION_EVIDENCE_PATH,+ content: renderOsTerminationEvidence(opts.osTerminationEvidence),+ redact,+ revealDocNames: true,+ bundleFiles,+ redactions,+ });const sysinfoJson = JSON.stringify(sysinfo, null, 2);zipfile.addBuffer(Buffer.from(sysinfoJson, 'utf8'), 'sysinfo.json');@@ -591,6 +606,21 @@ export async function collectStandardBundle('',]: []),+ ...((opts.osTerminationEvidence?.events.length ?? 0) > 0+ ? [+ 'Termination records: read from the operating system rather than written',+ 'by OpenKnowledge, covering the last 7 days, to explain an exit the app',+ 'could not record itself. On macOS: the memory-pressure (jetsam) reports',+ "that list processes of this app, with each one's memory use and whether",+ 'it was killed. On Linux: kernel and systemd-oomd out-of-memory kills of',+ 'this app, as structured fields with the machine name, cgroup paths and',+ 'user id left out. On Windows: crash and hang records for this app with',+ 'file paths left out, plus the time of every shutdown, restart, power',+ 'loss and low-memory warning on the machine, whatever caused it:',+ `- ${OS_TERMINATION_EVIDENCE_PATH}`,+ '',+ ]+ : []),...(ledgerEntries.length > 0? ['Send history: a small record for each bug report previously generated',diff --git a/packages/cli/src/commands/diagnose-bundle.test.ts b/packages/cli/src/commands/diagnose-bundle.test.tsindex f137ec766..5c5b6139a 100644--- a/packages/cli/src/commands/diagnose-bundle.test.ts+++ b/packages/cli/src/commands/diagnose-bundle.test.ts@@ -2,9 +2,19 @@ import { execSync } from 'node:child_process';import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { dirname, join, resolve } from 'node:path';-import { afterEach, describe, expect, test } from 'vitest';+import { afterEach, describe, expect, test, vi } from 'vitest';+import type { OsTerminationEvidenceDeps } from '../diagnose/os-termination-evidence.ts';import { type RunDiagnoseBundleDeps, runDiagnoseBundle } from './diagnose.ts';+vi.mock('../diagnose/os-termination-evidence.ts', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../diagnose/os-termination-evidence.ts')>();+ return {+ ...actual,+ collectOsTerminationEvidence: (deps?: OsTerminationEvidenceDeps) =>+ actual.collectOsTerminationEvidence(deps ?? { platform: 'aix' }),+ };+});+const tmpDirs: string[] = [];function makeTmpDir(prefix = 'ok-bundle-runner-test-'): string {@@ -61,6 +71,12 @@ function makeRunnerDeps(over: Partial<RunDiagnoseBundleDeps> = {}): {return { captured, deps };}+function readZipEntry(zipPath: string, entry: string): string {+ return execSync(`unzip -p ${JSON.stringify(zipPath)} ${JSON.stringify(entry)}`, {+ encoding: 'utf-8',+ });+}+function readZipEntries(zipPath: string): string[] {const out = execSync(`unzip -Z1 ${JSON.stringify(zipPath)}`, { encoding: 'utf-8' });return out@@ -110,6 +126,30 @@ describe('runDiagnoseBundle — macOS crash reports', () => {expect(allLogs).toContain('processes it was running alongside');});+ test('collects OS termination evidence and names its outcome in the summary', async () => {+ const contentDir = makeTmpDir();+ const { deps, captured } = makeRunnerDeps();+ deps.osTerminationEvidenceDeps = {+ platform: 'linux',+ runCommand: async () => ({+ status: 0,+ stdout:+ '2026-10-04T18:49:10.000000+00:00 host kernel: Out of memory: Killed process 12 (openknowledge) total-vm:1kB\n',+ stderr: '',+ }),+ };++ const result = await runDiagnoseBundle({ contentDir, yes: true }, deps);++ const evidence = JSON.parse(+ readZipEntry(result.outputPath ?? '', 'state/os-termination-evidence.json'),+ );+ expect(evidence).toMatchObject({ source: 'linux-journal', outcome: 'collected' });+ expect(captured.logs.find((l) => l.includes('OS termination log:'))).toContain(+ 'collected from system journal (7d; 1 kept; 0 other-process record(s) ignored; 0 unparseable)',+ );+ });+test('reports an empty sweep rather than staying silent', async () => {const contentDir = makeTmpDir();const { deps, captured } = makeRunnerDeps();@@ -137,6 +177,11 @@ describe('runDiagnoseBundle — macOS crash reports', () => {expect(allLogs).toContain('machine details macOS puts in every report');expect(allLogs).toContain('bundles to each other replaced');expect(allLogs).toContain('processes it was running alongside');+ const crashRow = allLogs.indexOf('macOS crash reports:');+ const crashCaveat = allLogs.indexOf('processes it was running alongside');+ const osRow = allLogs.indexOf('OS termination log:');+ expect(crashRow).toBeLessThan(crashCaveat);+ expect(crashCaveat).toBeLessThan(osRow);});test('--no-redact promises no exception when no report was staged', async () => {diff --git a/packages/cli/src/commands/diagnose.ts b/packages/cli/src/commands/diagnose.tsindex 27501b588..d0504ebc9 100644--- a/packages/cli/src/commands/diagnose.ts+++ b/packages/cli/src/commands/diagnose.ts@@ -17,6 +17,12 @@ import {type DiagnosticReportCollection,renderDiagnosticReportsStatus,} from '../diagnose/diagnostic-reports.ts';+import {+ collectOsTerminationEvidence,+ describeOsTerminationEvidence,+ type OsTerminationEvidence,+ type OsTerminationEvidenceDeps,+} from '../diagnose/os-termination-evidence.ts';import {discoverLockDirs,type ProcessUsage,@@ -444,6 +450,7 @@ export interface RunDiagnoseBundleDeps {runProcessDiagnose?: (pid: number) => Promise<string>;collectDeps?: CollectBundleDeps;diagnosticReportsDir?: string;+ osTerminationEvidenceDeps?: OsTerminationEvidenceDeps;now?: () => Date;}@@ -505,6 +512,7 @@ function printSummary(collected: CollectedBundle,outputPath: string,diagnosticReports: DiagnosticReportCollection,+ osTerminationEvidence: OsTerminationEvidence,): void {const { summary, manifest } = collected;log('');@@ -533,6 +541,7 @@ function printSummary(log(' regardless of --no-redact. A report of ours still names the');log(' processes it was running alongside.');}+ log(` OS termination log: ${describeOsTerminationEvidence(osTerminationEvidence)}`);log(` Output: ${outputPath}`);log('');}@@ -573,6 +582,7 @@ export async function runDiagnoseBundle(deps.diagnosticReportsDir ?? join(homedir(), 'Library', 'Logs', 'DiagnosticReports'),now(),);+ const osTerminationEvidence = await collectOsTerminationEvidence(deps.osTerminationEvidenceDeps);const collected = await collectBundle({contentDir: opts.contentDir,projectDir: opts.projectDir,@@ -580,6 +590,7 @@ export async function runDiagnoseBundle(redact,scrubSecrets: redact,diagnosticReports,+ osTerminationEvidence,deps: deps.collectDeps,});@@ -587,7 +598,7 @@ export async function runDiagnoseBundle(if (collected.manifest.serverStatus === 'not-running') {log(pc.yellow(' server not running — live state unavailable'));}- printSummary(log, collected, outputPath, diagnosticReports);+ printSummary(log, collected, outputPath, diagnosticReports, osTerminationEvidence);if (opts.yes !== true) {const answer = await prompt('Write bundle? [y/N]: ');diff --git a/packages/cli/src/diagnose/bundle.ts b/packages/cli/src/diagnose/bundle.tsindex d177351c3..4995aed6c 100644--- a/packages/cli/src/diagnose/bundle.ts+++ b/packages/cli/src/diagnose/bundle.ts@@ -43,6 +43,11 @@ import {prepareDiagnosticReportText,renderDiagnosticReportsStatus,} from './diagnostic-reports.ts';+import {+ OS_TERMINATION_EVIDENCE_PATH,+ type OsTerminationEvidence,+ renderOsTerminationEvidence,+} from './os-termination-evidence.ts';type BundleSchemaVersion = 2;@@ -111,6 +116,7 @@ export interface CollectBundleOpts {userLogFiles?: string[];userStateFiles?: string[];diagnosticReports?: DiagnosticReportCollection;+ osTerminationEvidence?: OsTerminationEvidence;deps?: CollectBundleDeps;}@@ -625,6 +631,10 @@ export async function collectBundle(opts: CollectBundleOpts): Promise<CollectedBjoin(stagingDir, 'state', 'diagnostic-reports-status.txt'),`${diagnosticReportsStatus}\n`,);+ writeFileSync(+ join(stagingDir, OS_TERMINATION_EVIDENCE_PATH),+ renderOsTerminationEvidence(opts.osTerminationEvidence),+ );if (opts.processDir && existsSync(opts.processDir)) {const processDest = join(stagingDir, 'process');diff --git a/packages/cli/src/diagnose/diagnostic-reports.ts b/packages/cli/src/diagnose/diagnostic-reports.tsindex feb86953c..b99064be4 100644--- a/packages/cli/src/diagnose/diagnostic-reports.ts+++ b/packages/cli/src/diagnose/diagnostic-reports.ts@@ -2,7 +2,7 @@ import { closeSync, type Dirent, openSync, readdirSync, readSync, statSync } froimport { join } from 'node:path';import { DESKTOP_PRODUCT_NAME } from '../integrations/desktop-state.ts';-const DIAGNOSTIC_REPORT_WINDOW_DAYS = 7;+export const DIAGNOSTIC_REPORT_WINDOW_DAYS = 7;const DIAGNOSTIC_REPORT_WINDOW_MS = DIAGNOSTIC_REPORT_WINDOW_DAYS * 24 * 60 * 60 * 1000;const MAX_BUNDLED_DIAGNOSTIC_REPORTS = 25;@@ -78,7 +78,7 @@ type ReportHeader =const HEADER_TIMESTAMP = /^(\d{4}-\d{2}-\d{2}) (\d{2}:\d{2}:\d{2})(\.\d+)? ([+-]\d{2})(\d{2})$/;-function parseHeaderTimestamp(value: unknown): number | null {+export function parseHeaderTimestamp(value: unknown): number | null {if (typeof value !== 'string') return null;const match = HEADER_TIMESTAMP.exec(value.trim());if (match === null) return null;@@ -129,7 +129,7 @@ function readReportHeader(filePath: string): ReportHeader {}}-function isOwnedProcessName(name: string): boolean {+export function isOwnedProcessName(name: string): boolean {return name === DESKTOP_PRODUCT_NAME || name.startsWith(`${DESKTOP_PRODUCT_NAME} `);}diff --git a/packages/cli/src/diagnose/os-termination-evidence.test.ts b/packages/cli/src/diagnose/os-termination-evidence.test.tsnew file mode 100644index 000000000..a6d014835--- /dev/null+++ b/packages/cli/src/diagnose/os-termination-evidence.test.ts@@ -0,0 +1,613 @@+import { mkdtempSync, rmSync, utimesSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join, resolve } from 'node:path';+import { afterEach, describe, expect, test } from 'vitest';+import {+ type CommandResult,+ collectOsTerminationEvidence,+ createRunCommand,+ describeOsTerminationEvidence,+ LINUX_JOURNAL_GREP,+ parseJetsamReport,+ renderOsTerminationEvidence,+ windowsEventLogArgs,+ windowsEventLogExecutable,+} from './os-termination-evidence.ts';++const tmpDirs: string[] = [];+afterEach(() => {+ for (const d of tmpDirs) rmSync(d, { recursive: true, force: true });+ tmpDirs.length = 0;+});++function makeTmpDir(): string {+ const dir = mkdtempSync(resolve(tmpdir(), 'ok-os-termination-test-'));+ tmpDirs.push(dir);+ return dir;+}++const NOW = new Date('2026-10-05T12:00:00.000Z');++function jetsamReport(processes: Record<string, unknown>[], largestProcess = 'fseventsd'): string {+ const header = { bug_type: '298', timestamp: '2026-10-04 17:14:39.00 -0700' };+ const body = { largestProcess, memoryStatus: { pageSize: 16384 }, processes };+ return `${JSON.stringify(header)}\n${JSON.stringify(body, null, 2)}`;+}++function writeAged(dir: string, name: string, content: string, daysOld: number): void {+ const path = join(dir, name);+ writeFileSync(path, content);+ const at = new Date(NOW.getTime() - daysOld * 24 * 60 * 60 * 1000);+ utimesSync(path, at, at);+}++describe('parseJetsamReport', () => {+ test('keeps only this app’s processes and carries the kill reason jetsam recorded', () => {+ const event = parseJetsamReport(+ 'JetsamEvent-a.ips',+ jetsamReport(+ [+ {+ name: 'OpenKnowledge',+ pid: 4406,+ rpages: 900,+ lifetimeMax: 1200,+ reason: 'vm-pageshortage',+ },+ { name: 'OpenKnowledge Helper (Renderer)', pid: 4410, rpages: 50, lifetimeMax: 60 },+ { name: 'Slack', pid: 77, rpages: 9000, reason: 'per-process-limit' },+ { name: 'OpenKnowledgeImpostor', pid: 5 },+ ],+ 'OpenKnowledge',+ ),+ );++ expect(event).toEqual({+ kind: 'jetsam',+ at: '2026-10-05T00:14:39.000Z',+ file: 'JetsamEvent-a.ips',+ pageSize: 16384,+ largestProcessOwned: true,+ ownedProcesses: [+ {+ name: 'OpenKnowledge',+ pid: 4406,+ killReason: 'vm-pageshortage',+ residentPages: 900,+ lifetimeMaxPages: 1200,+ },+ {+ name: 'OpenKnowledge Helper (Renderer)',+ pid: 4410,+ killReason: null,+ residentPages: 50,+ lifetimeMaxPages: 60,+ },+ ],+ });+ });++ test('rejects a report that is not a header line followed by a JSON body', () => {+ expect(parseJetsamReport('x.ips', '{"bug_type":"298"}')).toBeNull();+ expect(parseJetsamReport('x.ips', '{"bug_type":"298"}\nnot json')).toBeNull();+ expect(parseJetsamReport('x.ips', '{"bug_type":"298"}\n{"processes":3}')).toBeNull();+ });+});++describe('macOS jetsam collection', () => {+ test('collects in-window events naming this app and counts the rest', async () => {+ const dir = makeTmpDir();+ writeAged(dir, 'JetsamEvent-owned.ips', jetsamReport([{ name: 'OpenKnowledge', pid: 1 }]), 1);+ writeAged(dir, 'JetsamEvent-foreign.ips', jetsamReport([{ name: 'Slack', pid: 2 }]), 1);+ writeAged(dir, 'JetsamEvent-garbage.ips', 'garbage', 1);+ writeAged(dir, 'JetsamEvent-old.ips', jetsamReport([{ name: 'OpenKnowledge', pid: 3 }]), 9);+ writeAged(dir, 'OpenKnowledge-crash.ips', jetsamReport([{ name: 'OpenKnowledge', pid: 4 }]), 1);++ const evidence = await collectOsTerminationEvidence({+ platform: 'darwin',+ now: () => NOW,+ macosReportsDir: dir,+ });++ expect(evidence).toMatchObject({+ outcome: 'collected',+ source: 'macos-jetsam',+ readFrom: [join(dir, 'JetsamEvent-*.ips')],+ foreignIgnored: 1,+ unparseable: 1,+ droppedOverCap: 0,+ });+ expect(evidence.events.map((e) => (e.kind === 'jetsam' ? e.file : null))).toEqual([+ 'JetsamEvent-owned.ips',+ ]);+ });++ test('counts the oldest in-window files it did not read', async () => {+ const dir = makeTmpDir();+ for (let i = 0; i < 52; i += 1) {+ writeAged(+ dir,+ `JetsamEvent-${String(i).padStart(2, '0')}.ips`,+ jetsamReport([{ name: 'OpenKnowledge', pid: i }]),+ 1 + i / 100,+ );+ }++ const evidence = await collectOsTerminationEvidence({+ platform: 'darwin',+ now: () => NOW,+ macosReportsDir: dir,+ });++ expect(evidence.events).toHaveLength(50);+ expect(evidence.droppedOverCap).toBe(2);+ expect(evidence.events.map((e) => (e.kind === 'jetsam' ? e.file : null))).not.toContain(+ 'JetsamEvent-51.ips',+ );+ });++ test('reports an unreadable directory as unavailable rather than as an empty window', async () => {+ const evidence = await collectOsTerminationEvidence({+ platform: 'darwin',+ now: () => NOW,+ macosReportsDir: join(makeTmpDir(), 'missing'),+ });++ expect(evidence).toMatchObject({ outcome: 'unavailable', unavailableReason: 'ENOENT' });+ });+});++function runner(results: Record<string, CommandResult>) {+ const calls: { command: string; args: string[] }[] = [];+ let inFlight = 0;+ let maxInFlight = 0;+ const run = async (command: string, args: string[]): Promise<CommandResult> => {+ calls.push({ command, args });+ inFlight += 1;+ maxInFlight = Math.max(maxInFlight, inFlight);+ await new Promise((r) => setTimeout(r, 5));+ inFlight -= 1;+ const key = command.endsWith('wevtutil.exe') ? `wevtutil:${args[1]}` : command;+ const result = results[key];+ if (result === undefined) throw new Error(`unexpected command ${key}`);+ return result;+ };+ return { run, calls, maxInFlight: () => maxInFlight };+}++describe('Linux journal collection', () => {+ const KERNEL_INVOKED =+ '2026-10-04T18:49:10.100000+00:00 host-a kernel: openknowledge invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=200';+ const KERNEL_TASK =+ '2026-10-04T18:49:10.110000+00:00 host-a kernel: oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/run-p1.service,task_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/run-p1.service,task=openknowledge,pid=1234,uid=1000';+ const KERNEL_KILLED =+ '2026-10-04T18:49:10.123456+00:00 host-a kernel: Memory cgroup out of memory: Killed process 1234 (openknowledge) total-vm:79404kB, anon-rss:65208kB, UID:1000';+ const OOMD_PRESSURE =+ '2026-10-04T18:40:00.000000+00:00 host-a systemd-oomd[812]: Killed /user.slice/user-1000.slice/[email protected]/app.slice/app-gnome-openknowledge-1234.scope due to memory pressure for /user.slice/user-1000.slice being 71.20% > 50.00% for > 20s with reclaim activity';+ const OOMD_SWAP =+ '2026-10-04T18:41:00.000000+00:00 host-a systemd-oomd[812]: Killed /user.slice/user-1000.slice/[email protected]/app.slice/app-gnome-openknowledge-5678.scope due to memory used (15.5G) / total (15.6G) and swap used (3.9G) / total (4.0G) being more than 90.00%';+ const FOREIGN =+ '2026-10-04T18:30:00.000000+00:00 host-a kernel: Out of memory: Killed process 99 (chrome) total-vm:1kB';++ test('queries kernel and systemd-oomd lines for the last week with a pinned filter', async () => {+ const { run, calls } = runner({+ journalctl: { status: 1, stdout: '-- No entries --\n', stderr: '' },+ });++ await collectOsTerminationEvidence({ platform: 'linux', runCommand: run });++ expect(calls).toEqual([+ {+ command: 'journalctl',+ args: [+ '--no-pager',+ '--output=short-iso-precise',+ '--since=-7d',+ '--grep=Out of memory|oom-kill|Killed process|Killed /|memory pressure',+ '_TRANSPORT=kernel',+ '+',+ '_SYSTEMD_UNIT=systemd-oomd.service',+ ],+ },+ ]);+ });++ test('the journal filter selects every published kill wording', () => {+ const filter = new RegExp(LINUX_JOURNAL_GREP);+ for (const line of [KERNEL_INVOKED, KERNEL_TASK, KERNEL_KILLED, OOMD_PRESSURE, OOMD_SWAP]) {+ expect(filter.test(line)).toBe(true);+ }+ });++ test('keeps this app’s kills as structured fields with no host, cgroup path or uid', async () => {+ const { run } = runner({+ journalctl: {+ status: 0,+ stdout: `-- Boot 44962998fa1849c29d4807eefb892418 --\n${FOREIGN}\n${OOMD_PRESSURE}\n${OOMD_SWAP}\n${KERNEL_INVOKED}\n${KERNEL_TASK}\n${KERNEL_KILLED}\n`,+ stderr: '',+ },+ });++ const evidence = await collectOsTerminationEvidence({ platform: 'linux', runCommand: run });++ expect(evidence.outcome).toBe('collected');+ expect(evidence.foreignIgnored).toBe(1);+ expect(evidence.unparseable).toBe(0);+ expect(evidence.events).toEqual([+ {+ kind: 'journal',+ at: '2026-10-04T18:40:00.000000+00:00',+ origin: 'systemd-oomd',+ action: 'oomd-kill',+ pid: null,+ processName: null,+ unit: 'app-gnome-openknowledge-1234.scope',+ trigger: 'memory-pressure',+ },+ {+ kind: 'journal',+ at: '2026-10-04T18:41:00.000000+00:00',+ origin: 'systemd-oomd',+ action: 'oomd-kill',+ pid: null,+ processName: null,+ unit: 'app-gnome-openknowledge-5678.scope',+ trigger: 'swap',+ },+ {+ kind: 'journal',+ at: '2026-10-04T18:49:10.100000+00:00',+ origin: 'kernel',+ action: 'oom-invoked',+ pid: null,+ processName: 'openknowledge',+ unit: null,+ trigger: null,+ },+ {+ kind: 'journal',+ at: '2026-10-04T18:49:10.110000+00:00',+ origin: 'kernel',+ action: 'oom-kill',+ pid: 1234,+ processName: 'openknowledge',+ unit: null,+ trigger: null,+ },+ {+ kind: 'journal',+ at: '2026-10-04T18:49:10.123456+00:00',+ origin: 'kernel',+ action: 'oom-kill',+ pid: 1234,+ processName: 'openknowledge',+ unit: null,+ trigger: null,+ },+ ]);+ const serialized = JSON.stringify(evidence.events);+ expect(serialized).not.toContain('host-a');+ expect(serialized).not.toContain('user.slice');+ expect(serialized).not.toMatch(/uid/i);+ });++ test('flags a journal that hid system messages from this user', async () => {+ const { run } = runner({+ journalctl: {+ status: 1,+ stdout: '-- No entries --\n',+ stderr:+ "Hint: You are currently not seeing messages from other users and the system.\n Users in groups 'adm', 'systemd-journal' can see all messages.\n",+ },+ });++ const evidence = await collectOsTerminationEvidence({ platform: 'linux', runCommand: run });++ expect(evidence).toMatchObject({ outcome: 'none-in-window', restrictedToCurrentUser: true });+ });++ test('counts an exit-1 window as empty only when journalctl printed its no-entries marker', async () => {+ const empty = runner({+ journalctl: {+ status: 1,+ stdout: '-- Boot 44962998fa1849c29d4807eefb892418 --\n-- No entries --\n',+ stderr: '',+ },+ });+ const rejected = runner({+ journalctl: {+ status: 1,+ stdout: '',+ stderr: "journalctl: unrecognized option '--grep=Out of memory'\n",+ },+ });+ const missing = runner({+ journalctl: { status: null, stdout: '', stderr: '', errorCode: 'ENOENT' },+ });++ expect(+ (await collectOsTerminationEvidence({ platform: 'linux', runCommand: empty.run })).outcome,+ ).toBe('none-in-window');+ expect(+ await collectOsTerminationEvidence({ platform: 'linux', runCommand: rejected.run }),+ ).toMatchObject({+ outcome: 'unavailable',+ unavailableReason: "exit 1: journalctl: unrecognized option '--grep=Out of memory'",+ });+ expect(+ await collectOsTerminationEvidence({ platform: 'linux', runCommand: missing.run }),+ ).toMatchObject({ outcome: 'unavailable', unavailableReason: 'ENOENT' });+ const corrupt = runner({+ journalctl: {+ status: 1,+ stdout: '',+ stderr:+ 'Journal file /var/log/journal/0123456789abcdef0123456789abcdef/system.journal is truncated, ignoring file.\n',+ },+ });+ expect(+ await collectOsTerminationEvidence({ platform: 'linux', runCommand: corrupt.run }),+ ).toMatchObject({+ unavailableReason: 'exit 1: Journal file <journal path> is truncated, ignoring file.',+ });+ });+});++function windowsEvent(provider: string, eventId: number, at: string, payload: string): string {+ return `<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='${provider}' Guid='{x}'/><EventID Qualifiers='0'>${eventId}</EventID><TimeCreated SystemTime='${at}'/></System>${payload}</Event>`;+}++function eventData(values: string[]): string {+ return `<EventData>${values.map((v) => `<Data>${v}</Data>`).join('')}</EventData>`;+}++function memoryExhaustion(processes: string[]): string {+ const entries = processes+ .map(+ (name, i) =>+ `<Process_${i}><Name>${name}</Name><ID>${4412 + i}</ID><CommitCharge>9000000000</CommitCharge></Process_${i}>`,+ )+ .join('');+ return `<UserData><MemoryExhaustionInfo xmlns='http://www.microsoft.com/Windows/Resource/Exhaustion/Detector/Events'><SystemInfo><SystemCommitLimit>34359738368</SystemCommitLimit><SystemCommitCharge>34000000000</SystemCommitCharge></SystemInfo><ProcessInfo>${entries}</ProcessInfo></MemoryExhaustionInfo></UserData>`;+}++describe('Windows event log collection', () => {+ test('runs wevtutil from System32 and narrows the application query to this app', () => {+ expect(windowsEventLogExecutable('D:\\Win')).toBe('D:\\Win\\System32\\wevtutil.exe');+ expect(windowsEventLogExecutable(undefined)).toBe('C:\\Windows\\System32\\wevtutil.exe');+ expect(windowsEventLogArgs('System')).toEqual([+ 'qe',+ 'System',+ '/q:*[System[(EventID=41 or EventID=1074 or EventID=2004 or EventID=6008) and TimeCreated[timediff(@SystemTime) <= 604800000]]]',+ '/f:xml',+ '/rd:true',+ '/c:200',+ ]);+ expect(windowsEventLogArgs('Application')).toEqual([+ 'qe',+ 'Application',+ "/q:*[System[(EventID=1000 or EventID=1001 or EventID=1002) and TimeCreated[timediff(@SystemTime) <= 604800000]] and EventData[Data='OpenKnowledge.exe' or Data='OpenKnowledge Beta.exe']]",+ '/f:xml',+ '/rd:true',+ '/c:200',+ ]);+ });++ test('keeps system events as times only, and this app’s application events without paths', async () => {+ const system = [+ windowsEvent(+ 'Microsoft-Windows-Resource-Exhaustion-Detector',+ 2004,+ '2026-10-04T10:00:00Z',+ memoryExhaustion(['OpenKnowledge.exe', 'chrome.exe']),+ ),+ windowsEvent(+ 'Microsoft-Windows-Resource-Exhaustion-Detector',+ 2004,+ '2026-10-04T10:30:00Z',+ memoryExhaustion(['chrome.exe']),+ ),+ windowsEvent('EventLog', 6008, '2026-10-04T11:00:00Z', eventData(['11:00:00', '10/4/2026'])),+ windowsEvent('Some-Other-Provider', 41, '2026-10-04T12:00:00Z', eventData([])),+ ].join('');+ const application = [+ windowsEvent(+ 'Application Hang',+ 1002,+ '2026-10-04T09:00:00Z',+ eventData([+ 'OpenKnowledge.exe',+ '0.79.9.0',+ '4412',+ 'C:\\Users\\someone\\AppData\\Local\\Programs\\OpenKnowledge\\OpenKnowledge.exe',+ 'Quit',+ ]),+ ),+ windowsEvent('Application Error', 1000, '2026-10-04T08:00:00Z', eventData(['chrome.exe'])),+ ].join('');+ const { run, calls, maxInFlight } = runner({+ 'wevtutil:System': { status: 0, stdout: system, stderr: '' },+ 'wevtutil:Application': { status: 0, stdout: application, stderr: '' },+ });++ const evidence = await collectOsTerminationEvidence({+ platform: 'win32',+ runCommand: run,+ systemRoot: 'C:\\Windows',+ });++ expect(calls.map((c) => c.command)).toEqual([+ 'C:\\Windows\\System32\\wevtutil.exe',+ 'C:\\Windows\\System32\\wevtutil.exe',+ ]);+ expect(maxInFlight()).toBe(2);+ expect(evidence.outcome).toBe('collected');+ expect(evidence.foreignIgnored).toBe(2);+ expect(evidence.events).toEqual([+ {+ kind: 'windows-event',+ at: '2026-10-04T10:00:00Z',+ log: 'System',+ provider: 'Microsoft-Windows-Resource-Exhaustion-Detector',+ eventId: 2004,+ mentionsOpenKnowledge: true,+ data: [],+ },+ {+ kind: 'windows-event',+ at: '2026-10-04T10:30:00Z',+ log: 'System',+ provider: 'Microsoft-Windows-Resource-Exhaustion-Detector',+ eventId: 2004,+ mentionsOpenKnowledge: false,+ data: [],+ },+ {+ kind: 'windows-event',+ at: '2026-10-04T11:00:00Z',+ log: 'System',+ provider: 'EventLog',+ eventId: 6008,+ mentionsOpenKnowledge: false,+ data: [],+ },+ {+ kind: 'windows-event',+ at: '2026-10-04T09:00:00Z',+ log: 'Application',+ provider: 'Application Hang',+ eventId: 1002,+ mentionsOpenKnowledge: true,+ data: ['OpenKnowledge.exe', '0.79.9.0', '4412', 'Quit'],+ },+ ]);+ });++ test('keeps each queried id only from the provider that documents it', async () => {+ const documented: [log: 'System' | 'Application', id: number, provider: string][] = [+ ['System', 41, 'Microsoft-Windows-Kernel-Power'],+ ['System', 1074, 'User32'],+ ['System', 2004, 'Microsoft-Windows-Resource-Exhaustion-Detector'],+ ['System', 6008, 'EventLog'],+ ['Application', 1000, 'Application Error'],+ ['Application', 1001, 'Windows Error Reporting'],+ ['Application', 1002, 'Application Hang'],+ ];+ const at = '2026-10-04T10:00:00Z';+ const recordsFor = (log: string) =>+ documented+ .filter(([l]) => l === log)+ .flatMap(([, id, provider]) => [+ windowsEvent(provider, id, at, eventData(['OpenKnowledge.exe'])),+ windowsEvent('Impostor', id, at, eventData(['OpenKnowledge.exe'])),+ ])+ .join('');+ const { run } = runner({+ 'wevtutil:System': { status: 0, stdout: recordsFor('System'), stderr: '' },+ 'wevtutil:Application': { status: 0, stdout: recordsFor('Application'), stderr: '' },+ });++ const evidence = await collectOsTerminationEvidence({ platform: 'win32', runCommand: run });++ expect(+ evidence.events.map((e) =>+ e.kind === 'windows-event' ? [e.log, e.eventId, e.provider] : null,+ ),+ ).toEqual(documented);+ expect(evidence.foreignIgnored).toBe(documented.length);+ });++ test('a single failed log makes the sweep partial, and two make it unavailable', async () => {+ const oneFailed = runner({+ 'wevtutil:System': { status: 5, stdout: '', stderr: 'Access is denied.' },+ 'wevtutil:Application': { status: 0, stdout: '', stderr: '' },+ });+ const bothFailed = runner({+ 'wevtutil:System': { status: null, stdout: '', stderr: '', errorCode: 'ENOENT' },+ 'wevtutil:Application': { status: null, stdout: '', stderr: '', signal: 'SIGKILL' },+ });++ expect(+ await collectOsTerminationEvidence({ platform: 'win32', runCommand: oneFailed.run }),+ ).toMatchObject({ outcome: 'partial', unavailableReason: 'System: exit 5: Access is denied.' });+ expect(+ await collectOsTerminationEvidence({ platform: 'win32', runCommand: bothFailed.run }),+ ).toMatchObject({+ outcome: 'unavailable',+ unavailableReason: 'System: ENOENT; Application: signal SIGKILL',+ });+ });+});++describe('createRunCommand', () => {+ const node = process.execPath;++ test('reports an exit code, a missing program, an output overflow and a timeout distinctly', async () => {+ const run = createRunCommand({ timeoutMs: 5_000, maxBuffer: 64 });++ expect(await run(node, ['-e', 'process.stdout.write("hi"); process.exit(3)'])).toMatchObject({+ status: 3,+ stdout: 'hi',+ });+ expect(await run(join(makeTmpDir(), 'no-such-program'), [])).toMatchObject({+ status: null,+ errorCode: 'ENOENT',+ });+ expect(await run(node, ['-e', 'process.stdout.write("x".repeat(4096))'])).toMatchObject({+ status: null,+ errorCode: 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER',+ });+ expect(+ await createRunCommand({ timeoutMs: 200 })(node, ['-e', 'setTimeout(() => {}, 10_000)']),+ ).toMatchObject({ status: null, errorCode: 'ETIMEDOUT' });+ });++ test('resolves a spawn that throws synchronously instead of rejecting', async () => {+ expect(await createRunCommand()(node, ['-e', 'nul\0byte'])).toMatchObject({+ status: null,+ errorCode: 'ERR_INVALID_ARG_VALUE',+ });+ });++ test.skipIf(process.platform === 'win32')('names the signal that ended a child', async () => {+ const run = createRunCommand();++ expect(+ await run(node, ['-e', 'process.kill(process.pid, "SIGTERM"); setTimeout(() => {}, 5000)']),+ ).toMatchObject({ status: null, signal: 'SIGTERM' });+ });+});++test('names a platform with no collector as unsupported', async () => {+ expect(await collectOsTerminationEvidence({ platform: 'freebsd' })).toMatchObject({+ source: null,+ outcome: 'unsupported',+ });+});++test('summarises the sweep in one line, naming what it could not keep', () => {+ expect(+ describeOsTerminationEvidence({+ schemaVersion: 1,+ platform: 'win32',+ source: 'windows-event-log',+ outcome: 'partial',+ readFrom: [],+ unavailableReason: 'System: exit 5',+ windowDays: 7,+ foreignIgnored: 3,+ unparseable: 1,+ droppedOverCap: 2,+ events: [],+ }),+ ).toBe(+ 'partial from Windows event logs, System: exit 5 (7d; 0 kept; 3 other-process record(s) ignored; 1 unparseable; 2 older dropped over cap)',+ );+});++test('renders an uncollected sweep explicitly rather than as an empty file', () => {+ expect(JSON.parse(renderOsTerminationEvidence(undefined))).toEqual({+ schemaVersion: 1,+ outcome: 'not-collected',+ });+});diff --git a/packages/cli/src/diagnose/os-termination-evidence.ts b/packages/cli/src/diagnose/os-termination-evidence.tsnew file mode 100644index 000000000..a771817f6--- /dev/null+++ b/packages/cli/src/diagnose/os-termination-evidence.ts@@ -0,0 +1,555 @@+import { type ExecFileException, execFile } from 'node:child_process';+import { readdir, readFile, stat } from 'node:fs/promises';+import { join, win32 } from 'node:path';+import { DESKTOP_PRODUCTS, desktopWindowsExecutableName } from '@inkeep/open-knowledge-core';+import {+ DIAGNOSTIC_REPORT_WINDOW_DAYS,+ isOwnedProcessName,+ parseHeaderTimestamp,+} from './diagnostic-reports.ts';++export const OS_TERMINATION_EVIDENCE_PATH = 'state/os-termination-evidence.json';++const WINDOW_MS = DIAGNOSTIC_REPORT_WINDOW_DAYS * 24 * 60 * 60 * 1000;+const MAX_JETSAM_FILES = 50;+const MAX_EVENTS = 50;+const COMMAND_TIMEOUT_MS = 15_000;+const COMMAND_MAX_BUFFER = 16 * 1024 * 1024;++const MACOS_SYSTEM_DIAGNOSTIC_REPORTS_DIR = '/Library/Logs/DiagnosticReports';++const OWNED_NAME = /openknowledge/i;++const WINDOWS_EXECUTABLES = Object.values(DESKTOP_PRODUCTS).map(desktopWindowsExecutableName);++type OsTerminationSource = 'macos-jetsam' | 'linux-journal' | 'windows-event-log';++interface JetsamProcess {+ name: string;+ pid: number | null;+ killReason: string | null;+ residentPages: number | null;+ lifetimeMaxPages: number | null;+}++interface JetsamEvidenceEvent {+ kind: 'jetsam';+ at: string | null;+ file: string;+ pageSize: number | null;+ largestProcessOwned: boolean;+ ownedProcesses: JetsamProcess[];+}++interface JournalEvidenceEvent {+ kind: 'journal';+ at: string;+ origin: 'kernel' | 'systemd-oomd';+ action: 'oom-invoked' | 'oom-kill' | 'oomd-kill';+ pid: number | null;+ processName: string | null;+ unit: string | null;+ trigger: 'memory-pressure' | 'swap' | null;+}++interface WindowsEvidenceEvent {+ kind: 'windows-event';+ at: string;+ log: 'System' | 'Application';+ provider: string;+ eventId: number;+ mentionsOpenKnowledge: boolean;+ data: string[];+}++type OsTerminationEvent = JetsamEvidenceEvent | JournalEvidenceEvent | WindowsEvidenceEvent;++export interface OsTerminationEvidence {+ schemaVersion: 1;+ platform: string;+ source: OsTerminationSource | null;+ outcome: 'unsupported' | 'unavailable' | 'partial' | 'none-in-window' | 'collected';+ readFrom: string[];+ unavailableReason?: string;+ restrictedToCurrentUser?: boolean;+ windowDays: number;+ foreignIgnored: number;+ unparseable: number;+ droppedOverCap: number;+ events: OsTerminationEvent[];+}++interface OsTerminationNotCollected {+ schemaVersion: 1;+ outcome: 'not-collected';+}++type OsTerminationEvidenceDocument = OsTerminationEvidence | OsTerminationNotCollected;++export interface CommandResult {+ status: number | null;+ stdout: string;+ stderr: string;+ errorCode?: string;+ signal?: string;+}++type RunCommand = (command: string, args: string[]) => Promise<CommandResult>;++export interface OsTerminationEvidenceDeps {+ platform?: NodeJS.Platform;+ now?: () => Date;+ macosReportsDir?: string;+ systemRoot?: string;+ runCommand?: RunCommand;+}++export function createRunCommand(+ options: { timeoutMs?: number; maxBuffer?: number } = {},+): RunCommand {+ return (command, args) =>+ new Promise((resolvePromise) => {+ try {+ execFile(+ command,+ args,+ {+ encoding: 'utf8',+ timeout: options.timeoutMs ?? COMMAND_TIMEOUT_MS,+ maxBuffer: options.maxBuffer ?? COMMAND_MAX_BUFFER,+ windowsHide: true,+ },+ (error: ExecFileException | null, stdout, stderr) => {+ resolvePromise({ ...describeExit(error), stdout, stderr });+ },+ );+ } catch (err) {+ const code = (err as NodeJS.ErrnoException).code;+ resolvePromise({+ status: null,+ stdout: '',+ stderr: '',+ errorCode: typeof code === 'string' ? code : 'spawn-failed',+ });+ }+ });+}++function describeExit(+ error: ExecFileException | null,+): Pick<CommandResult, 'status' | 'errorCode' | 'signal'> {+ if (error === null) return { status: 0 };+ if (typeof error.code === 'string') return { status: null, errorCode: error.code };+ if (typeof error.code === 'number') return { status: error.code };+ if (error.killed === true) return { status: null, errorCode: 'ETIMEDOUT' };+ return error.signal ? { status: null, signal: error.signal } : { status: null };+}++function describeFailure(result: CommandResult): string {+ if (result.errorCode !== undefined) return result.errorCode;+ if (result.signal !== undefined) return `signal ${result.signal}`;+ const firstLine = (result.stderr.trim().split('\n')[0] ?? '')+ .replace(/\S*\/journal\/\S*/g, '<journal path>')+ .replace(/\b[0-9a-f]{32}\b/gi, '<id>');+ return `exit ${result.status}${firstLine === '' ? '' : `: ${firstLine}`}`;+}++function base(+ platform: string,+ source: OsTerminationSource | null,+ readFrom: string[],+): OsTerminationEvidence {+ return {+ schemaVersion: 1,+ platform,+ source,+ outcome: 'none-in-window',+ readFrom,+ windowDays: DIAGNOSTIC_REPORT_WINDOW_DAYS,+ foreignIgnored: 0,+ unparseable: 0,+ droppedOverCap: 0,+ events: [],+ };+}++function unavailable(evidence: OsTerminationEvidence, reason: string): OsTerminationEvidence {+ return { ...evidence, outcome: 'unavailable', unavailableReason: reason };+}++function settle(evidence: OsTerminationEvidence): OsTerminationEvidence {+ return { ...evidence, outcome: evidence.events.length > 0 ? 'collected' : 'none-in-window' };+}++function finiteOrNull(value: unknown): number | null {+ return typeof value === 'number' && Number.isFinite(value) ? value : null;+}++function asRecord(value: unknown): Record<string, unknown> | null {+ return typeof value === 'object' && value !== null && !Array.isArray(value)+ ? (value as Record<string, unknown>)+ : null;+}++export function parseJetsamReport(file: string, content: string): JetsamEvidenceEvent | null {+ const newline = content.indexOf('\n');+ if (newline === -1) return null;+ let header: Record<string, unknown> | null;+ let body: Record<string, unknown> | null;+ try {+ header = asRecord(JSON.parse(content.slice(0, newline)));+ body = asRecord(JSON.parse(content.slice(newline + 1)));+ } catch {+ return null;+ }+ if (header === null || body === null || !Array.isArray(body.processes)) return null;+ const ownedProcesses: JetsamProcess[] = [];+ for (const entry of body.processes) {+ const p = asRecord(entry);+ if (p === null || typeof p.name !== 'string' || !isOwnedProcessName(p.name)) continue;+ ownedProcesses.push({+ name: p.name,+ pid: finiteOrNull(p.pid),+ killReason: typeof p.reason === 'string' ? p.reason : null,+ residentPages: finiteOrNull(p.rpages),+ lifetimeMaxPages: finiteOrNull(p.lifetimeMax),+ });+ }+ const atMs = parseHeaderTimestamp(header.timestamp);+ return {+ kind: 'jetsam',+ at: atMs === null ? null : new Date(atMs).toISOString(),+ file,+ pageSize: finiteOrNull(asRecord(body.memoryStatus)?.pageSize),+ largestProcessOwned:+ typeof body.largestProcess === 'string' && isOwnedProcessName(body.largestProcess),+ ownedProcesses,+ };+}++async function collectMacosJetsam(dir: string, now: Date): Promise<OsTerminationEvidence> {+ const evidence = base('darwin', 'macos-jetsam', [join(dir, 'JetsamEvent-*.ips')]);+ let names: string[];+ try {+ names = await readdir(dir);+ } catch (err) {+ return unavailable(evidence, (err as NodeJS.ErrnoException).code ?? 'unknown');+ }+ const cutoff = now.getTime() - WINDOW_MS;+ const candidates: { file: string; mtimeMs: number }[] = [];+ for (const file of names) {+ if (!/^JetsamEvent-.*\.ips$/.test(file)) continue;+ try {+ const { mtimeMs } = await stat(join(dir, file));+ if (mtimeMs >= cutoff) candidates.push({ file, mtimeMs });+ } catch {+ evidence.unparseable += 1;+ }+ }+ candidates.sort((a, b) => b.mtimeMs - a.mtimeMs);+ evidence.droppedOverCap = Math.max(0, candidates.length - MAX_JETSAM_FILES);+ for (const { file } of candidates.slice(0, MAX_JETSAM_FILES)) {+ let parsed: JetsamEvidenceEvent | null = null;+ try {+ parsed = parseJetsamReport(file, await readFile(join(dir, file), 'utf8'));+ } catch {}+ if (parsed === null) {+ evidence.unparseable += 1;+ } else if (parsed.ownedProcesses.length === 0) {+ evidence.foreignIgnored += 1;+ } else {+ evidence.events.push(parsed);+ }+ }+ return settle(evidence);+}++export const LINUX_JOURNAL_GREP = 'Out of memory|oom-kill|Killed process|Killed /|memory pressure';++const LINUX_JOURNAL_ARGS: readonly string[] = [+ '--no-pager',+ '--output=short-iso-precise',+ '--since=-7d',+ `--grep=${LINUX_JOURNAL_GREP}`,+ '_TRANSPORT=kernel',+ '+',+ '_SYSTEMD_UNIT=systemd-oomd.service',+];++const JOURNAL_LINE = /^(\S+) \S+ ([^:\s[]+)(?:\[\d+\])?: (.*)$/;++function parseJournalMessage(+ origin: string,+ message: string,+): Omit<JournalEvidenceEvent, 'kind' | 'at'> | null {+ if (origin === 'systemd-oomd') {+ const killed = /^Killed (\S+)/.exec(message);+ if (killed === null) return null;+ const leaf = killed[1]?.split('/').pop() ?? '';+ return {+ origin: 'systemd-oomd',+ action: 'oomd-kill',+ pid: null,+ processName: null,+ unit: OWNED_NAME.test(leaf) ? leaf : null,+ trigger: /swap used/.test(message)+ ? 'swap'+ : /memory pressure/.test(message)+ ? 'memory-pressure'+ : null,+ };+ }+ if (origin !== 'kernel') return null;+ const killedProcess = /Killed process (\d+) \(([^)]+)\)/.exec(message);+ if (killedProcess !== null) {+ return {+ origin: 'kernel',+ action: 'oom-kill',+ pid: Number(killedProcess[1]),+ processName: killedProcess[2] ?? null,+ unit: null,+ trigger: null,+ };+ }+ const task = /task=([^,]+),pid=(\d+)/.exec(message);+ if (task !== null) {+ return {+ origin: 'kernel',+ action: 'oom-kill',+ pid: Number(task[2]),+ processName: task[1] ?? null,+ unit: null,+ trigger: null,+ };+ }+ const invoked = /^(\S+) invoked oom-killer/.exec(message);+ if (invoked !== null) {+ return {+ origin: 'kernel',+ action: 'oom-invoked',+ pid: null,+ processName: invoked[1] ?? null,+ unit: null,+ trigger: null,+ };+ }+ return null;+}++function parseJournalOutput(stdout: string): {+ events: JournalEvidenceEvent[];+ foreignIgnored: number;+ unparseable: number;+} {+ const events: JournalEvidenceEvent[] = [];+ let foreignIgnored = 0;+ let unparseable = 0;+ for (const line of stdout.split('\n')) {+ if (line.trim() === '' || line.startsWith('-- ')) continue;+ const match = JOURNAL_LINE.exec(line);+ if (match === null) {+ unparseable += 1;+ continue;+ }+ const [, at = '', origin = '', message = ''] = match;+ if (!OWNED_NAME.test(message)) {+ foreignIgnored += 1;+ continue;+ }+ const parsed = parseJournalMessage(origin, message);+ if (parsed === null) {+ unparseable += 1;+ continue;+ }+ events.push({ kind: 'journal', at, ...parsed });+ }+ return { events, foreignIgnored, unparseable };+}++async function collectLinuxJournal(run: RunCommand): Promise<OsTerminationEvidence> {+ const evidence = base('linux', 'linux-journal', [`journalctl ${LINUX_JOURNAL_ARGS.join(' ')}`]);+ const result = await run('journalctl', [...LINUX_JOURNAL_ARGS]);+ const emptyWindow = result.status === 1 && /^-- No entries --$/m.test(result.stdout);+ if (result.status !== 0 && !emptyWindow) return unavailable(evidence, describeFailure(result));+ const parsed = parseJournalOutput(result.stdout);+ evidence.droppedOverCap = Math.max(0, parsed.events.length - MAX_EVENTS);+ evidence.events.push(...parsed.events.slice(-MAX_EVENTS));+ evidence.foreignIgnored = parsed.foreignIgnored;+ evidence.unparseable = parsed.unparseable;+ if (/not seeing messages from other users/i.test(`${result.stdout}\n${result.stderr}`)) {+ evidence.restrictedToCurrentUser = true;+ }+ return settle(evidence);+}++const WINDOWS_SYSTEM_PROVIDERS: Record<number, string> = {+ 41: 'Microsoft-Windows-Kernel-Power',+ 1074: 'User32',+ 2004: 'Microsoft-Windows-Resource-Exhaustion-Detector',+ 6008: 'EventLog',+};++const WINDOWS_APPLICATION_PROVIDERS: Record<number, string> = {+ 1000: 'Application Error',+ 1001: 'Windows Error Reporting',+ 1002: 'Application Hang',+};++type WindowsLog = 'System' | 'Application';++function providersFor(log: WindowsLog): Record<number, string> {+ return log === 'System' ? WINDOWS_SYSTEM_PROVIDERS : WINDOWS_APPLICATION_PROVIDERS;+}++function windowsQuery(log: WindowsLog): string {+ const ids = Object.keys(providersFor(log))+ .map((id) => `EventID=${id}`)+ .join(' or ');+ const system = `System[(${ids}) and TimeCreated[timediff(@SystemTime) <= ${WINDOW_MS}]]`;+ if (log === 'System') return `*[${system}]`;+ const names = WINDOWS_EXECUTABLES.map((exe) => `Data='${exe}'`).join(' or ');+ return `*[${system} and EventData[${names}]]`;+}++export function windowsEventLogArgs(log: WindowsLog): string[] {+ return ['qe', log, `/q:${windowsQuery(log)}`, '/f:xml', '/rd:true', '/c:200'];+}++export function windowsEventLogExecutable(systemRoot: string | undefined): string {+ return win32.join(systemRoot ?? 'C:\\Windows', 'System32', 'wevtutil.exe');+}++function decodeXml(value: string): string {+ return value+ .replace(/</g, '<')+ .replace(/>/g, '>')+ .replace(/"/g, '"')+ .replace(/'/g, "'")+ .replace(/&/g, '&');+}++function looksLikePath(value: string): boolean {+ return /[\\/]/.test(value) || /^[a-z]:/i.test(value);+}++function elementTexts(record: string, element: string): string[] {+ const pattern = new RegExp(`<${element}(?:\\s[^>]*)?>([\\s\\S]*?)</${element}>`, 'g');+ return [...record.matchAll(pattern)].map((m) => decodeXml(m[1] ?? '').trim());+}++function parseWindowsEventXml(+ log: WindowsLog,+ xml: string,+): { events: WindowsEvidenceEvent[]; foreignIgnored: number; unparseable: number } {+ const providers = providersFor(log);+ const events: WindowsEvidenceEvent[] = [];+ let foreignIgnored = 0;+ let unparseable = 0;+ for (const record of xml.match(/<Event[\s>][\s\S]*?<\/Event>/g) ?? []) {+ const provider = /<Provider\s+Name=['"]([^'"]+)['"]/.exec(record)?.[1];+ const eventId = Number(/<EventID[^>]*>(\d+)<\/EventID>/.exec(record)?.[1]);+ const at = /<TimeCreated\s+SystemTime=['"]([^'"]+)['"]/.exec(record)?.[1];+ if (provider === undefined || !Number.isInteger(eventId) || at === undefined) {+ unparseable += 1;+ continue;+ }+ if (providers[eventId] !== provider) {+ foreignIgnored += 1;+ continue;+ }+ const values = elementTexts(record, 'Data');+ const processNames = elementTexts(record, 'Name');+ const mentionsOpenKnowledge = [...values, ...processNames].some((v) => OWNED_NAME.test(v));+ if (log === 'Application' && !mentionsOpenKnowledge) {+ foreignIgnored += 1;+ continue;+ }+ events.push({+ kind: 'windows-event',+ at,+ log,+ provider,+ eventId,+ mentionsOpenKnowledge,+ data: log === 'Application' ? values.filter((v) => v !== '' && !looksLikePath(v)) : [],+ });+ }+ return { events, foreignIgnored, unparseable };+}++async function collectWindowsEventLog(+ run: RunCommand,+ systemRoot: string | undefined,+): Promise<OsTerminationEvidence> {+ const executable = windowsEventLogExecutable(systemRoot);+ const logs = ['System', 'Application'] as const;+ const evidence = base(+ 'win32',+ 'windows-event-log',+ logs.map((log) => `${executable} ${windowsEventLogArgs(log).join(' ')}`),+ );+ const results = await Promise.all(+ logs.map(async (log) => ({ log, result: await run(executable, windowsEventLogArgs(log)) })),+ );+ const failures: string[] = [];+ for (const { log, result } of results) {+ if (result.status !== 0) {+ failures.push(`${log}: ${describeFailure(result)}`);+ continue;+ }+ const parsed = parseWindowsEventXml(log, result.stdout);+ evidence.droppedOverCap += Math.max(0, parsed.events.length - MAX_EVENTS);+ evidence.events.push(...parsed.events.slice(0, MAX_EVENTS));+ evidence.foreignIgnored += parsed.foreignIgnored;+ evidence.unparseable += parsed.unparseable;+ }+ if (failures.length === logs.length) return unavailable(evidence, failures.join('; '));+ if (failures.length > 0) {+ return { ...evidence, outcome: 'partial', unavailableReason: failures.join('; ') };+ }+ return settle(evidence);+}++export async function collectOsTerminationEvidence(+ deps: OsTerminationEvidenceDeps = {},+): Promise<OsTerminationEvidence> {+ const platform = deps.platform ?? process.platform;+ const run = deps.runCommand ?? createRunCommand();+ const now = (deps.now ?? (() => new Date()))();+ switch (platform) {+ case 'darwin':+ return collectMacosJetsam(deps.macosReportsDir ?? MACOS_SYSTEM_DIAGNOSTIC_REPORTS_DIR, now);+ case 'linux':+ return collectLinuxJournal(run);+ case 'win32':+ return collectWindowsEventLog(run, deps.systemRoot ?? process.env.SystemRoot);+ default:+ return { ...base(platform, null, []), outcome: 'unsupported' };+ }+}++const NOT_COLLECTED: OsTerminationNotCollected = { schemaVersion: 1, outcome: 'not-collected' };++export function renderOsTerminationEvidence(evidence: OsTerminationEvidence | undefined): string {+ const document: OsTerminationEvidenceDocument = evidence ?? NOT_COLLECTED;+ return `${JSON.stringify(document, null, 2)}\n`;+}++const SOURCE_NAMES: Record<OsTerminationSource, string> = {+ 'macos-jetsam': 'macOS low-memory reports',+ 'linux-journal': 'system journal',+ 'windows-event-log': 'Windows event logs',+};++export function describeOsTerminationEvidence(evidence: OsTerminationEvidence): string {+ const counts = [+ `${evidence.windowDays}d`,+ `${evidence.events.length} kept`,+ `${evidence.foreignIgnored} other-process record(s) ignored`,+ `${evidence.unparseable} unparseable`,+ ];+ if (evidence.droppedOverCap > 0) counts.push(`${evidence.droppedOverCap} older dropped over cap`);+ const source = evidence.source ? ` from ${SOURCE_NAMES[evidence.source]}` : '';+ const reason = evidence.unavailableReason ? `, ${evidence.unavailableReason}` : '';+ return `${evidence.outcome}${source}${reason} (${counts.join('; ')})`;+}diff --git a/packages/cli/src/report-bundle.test.ts b/packages/cli/src/report-bundle.test.tsindex bb0c51d68..1361ede20 100644--- a/packages/cli/src/report-bundle.test.ts+++ b/packages/cli/src/report-bundle.test.ts@@ -3,11 +3,21 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSyncimport { tmpdir } from 'node:os';import { dirname, join, resolve } from 'node:path';import { SERVER_CRASH_LOG } from '@inkeep/open-knowledge-core';-import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';+import { afterAll, afterEach, beforeAll, describe, expect, test, vi } from 'vitest';+import type { OsTerminationEvidenceDeps } from './diagnose/os-termination-evidence.ts';import { collectReportBundle as collectReportBundleFromIndex } from './index.ts';import { collectReportBundle } from './report-bundle.ts';import type { LanguageMetadata } from './report-language.ts';+vi.mock('./diagnose/os-termination-evidence.ts', async (importOriginal) => {+ const actual = await importOriginal<typeof import('./diagnose/os-termination-evidence.ts')>();+ return {+ ...actual,+ collectOsTerminationEvidence: (deps?: OsTerminationEvidenceDeps) =>+ actual.collectOsTerminationEvidence(deps ?? { platform: 'aix' }),+ };+});+const tmpDirs: string[] = [];function makeTmpDir(prefix = 'ok-report-test-'): string {@@ -595,6 +605,111 @@ describe('collectReportBundle — full level', () => {);});+ test('carries the OS termination evidence at full level', async () => {+ const outputPath = join(makeTmpDir(), 'report.zip');++ const { zipPath } = await collectReportBundle({+ level: 'full',+ projectDir: makeFullProjectDir(),+ redact: true,+ outputPath,+ userLogsDir: makeTmpDir(),+ diagnosticReportsDir: makeTmpDir(),+ osTerminationEvidenceDeps: {+ platform: 'linux',+ runCommand: async () => ({+ status: 0,+ stdout:+ '2026-10-04T18:49:10.000000+0000 host kernel: Out of memory: Killed process 12 (openknowledge)\n',+ stderr: '',+ }),+ },+ });++ expect(JSON.parse(readZipEntry(zipPath, 'state/os-termination-evidence.json'))).toMatchObject(+ {+ source: 'linux-journal',+ outcome: 'collected',+ events: [{ origin: 'kernel', action: 'oom-kill', pid: 12, processName: 'openknowledge' }],+ },+ );+ });++ test('discloses collected OS termination records in a system-wide bundle README', async () => {+ const outputPath = join(makeTmpDir(), 'report.zip');++ const { zipPath } = await collectReportBundle({+ level: 'full',+ redact: true,+ outputPath,+ userLogsDir: makeTmpDir(),+ diagnosticReportsDir: makeTmpDir(),+ osTerminationEvidenceDeps: {+ platform: 'linux',+ runCommand: async () => ({+ status: 0,+ stdout:+ '2026-10-04T18:49:10.000000+00:00 host kernel: Out of memory: Killed process 12 (openknowledge)\n',+ stderr: '',+ }),+ },+ });++ expect(listZipEntries(zipPath)).toContain('state/os-termination-evidence.json');+ expect(readZipEntry(zipPath, 'README.md')).toContain(+ 'Termination records: read from the operating system',+ );+ });++ test('discloses kept records in the README even when one Windows log failed', async () => {+ const outputPath = join(makeTmpDir(), 'report.zip');++ const { zipPath } = await collectReportBundle({+ level: 'full',+ redact: true,+ outputPath,+ userLogsDir: makeTmpDir(),+ diagnosticReportsDir: makeTmpDir(),+ osTerminationEvidenceDeps: {+ platform: 'win32',+ systemRoot: 'C:\\Windows',+ runCommand: async (_command, args) =>+ args[1] === 'System'+ ? {+ status: 0,+ stdout:+ "<Event><System><Provider Name='EventLog'/><EventID>6008</EventID><TimeCreated SystemTime='2026-10-04T11:00:00Z'/></System></Event>",+ stderr: '',+ }+ : { status: 5, stdout: '', stderr: 'Access is denied.' },+ },+ });++ expect(JSON.parse(readZipEntry(zipPath, 'state/os-termination-evidence.json'))).toMatchObject(+ { outcome: 'partial', events: [{ log: 'System', eventId: 6008 }] },+ );+ expect(readZipEntry(zipPath, 'README.md')).toContain(+ 'Termination records: read from the operating system',+ );+ });++ test('marks the OS termination evidence as not collected at standard level', async () => {+ const outputPath = join(makeTmpDir(), 'report.zip');++ const { zipPath } = await collectReportBundle({+ level: 'standard',+ projectDir: makeFullProjectDir(),+ redact: true,+ outputPath,+ userLogsDir: makeTmpDir(),+ });++ expect(JSON.parse(readZipEntry(zipPath, 'state/os-termination-evidence.json'))).toEqual({+ schemaVersion: 1,+ outcome: 'not-collected',+ });+ });+test('records an empty window rather than staying silent', async () => {const outputPath = join(makeTmpDir(), 'report.zip');diff --git a/packages/cli/src/report-bundle.ts b/packages/cli/src/report-bundle.tsindex d1b169a2a..d89f4bb26 100644--- a/packages/cli/src/report-bundle.ts+++ b/packages/cli/src/report-bundle.ts@@ -27,6 +27,11 @@ import {collectDiagnosticReports,type DiagnosticReportCollection,} from './diagnose/diagnostic-reports.ts';+import {+ collectOsTerminationEvidence,+ type OsTerminationEvidence,+ type OsTerminationEvidenceDeps,+} from './diagnose/os-termination-evidence.ts';import { defaultReadLanguage, type LanguageMetadata } from './report-language.ts';import { isObject } from './utils/is-object.ts';@@ -43,6 +48,7 @@ export interface CollectReportBundleOptions {userLogsDir?: string;cachesDir?: string;diagnosticReportsDir?: string;+ osTerminationEvidenceDeps?: OsTerminationEvidenceDeps;bugReportsDir?: string;logger?: BundleLogger;readDesktopEnv?: () => DesktopMetadata | null;@@ -80,6 +86,7 @@ async function collectFullBundle(readDesktopEnv: () => DesktopMetadata | null,readLanguage: () => LanguageMetadata,diagnosticReports: DiagnosticReportCollection,+ osTerminationEvidence: OsTerminationEvidence,): Promise<ReportBundleResult> {const projectSlug = resolveProjectSlug(projectDir, opts.logger);const collected = await collectBundle({@@ -95,6 +102,7 @@ async function collectFullBundle(],userStateFiles: collectBugReportLedgerFiles(opts.bugReportsDir ?? okBugReportsDir()),diagnosticReports,+ osTerminationEvidence,deps: { readDesktopEnv, readLanguage, logger: opts.logger },});try {@@ -136,6 +144,7 @@ export async function collectReportBundle(readDesktopEnv,readLanguage,resolveDiagnosticReports(),+ await collectOsTerminationEvidence(opts.osTerminationEvidenceDeps),);}const { zipPath, summary } = await collectStandardBundle({@@ -147,6 +156,10 @@ export async function collectReportBundle(shipItLogFiles: collectShipItLogFiles(opts.cachesDir ?? join(homedir(), 'Library', 'Caches')),bugReportLedgerFiles: collectBugReportLedgerFiles(opts.bugReportsDir ?? okBugReportsDir()),diagnosticReports: opts.level === 'full' ? resolveDiagnosticReports() : undefined,+ osTerminationEvidence:+ opts.level === 'full'+ ? await collectOsTerminationEvidence(opts.osTerminationEvidenceDeps)+ : undefined,logger: opts.logger,note: opts.note,extraFiles: opts.extraFiles,