A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Merge remote-tracking branch 'origin/dev' into feat/613-office-documents
Fei241198dbe68cae1e
diff --cc app/electron-builder.ymlindex 3b144b98,ad185c2a..057fd90b--- a/app/electron-builder.yml+++ b/app/electron-builder.yml@@@ -8,18 -8,11 +8,20 @@@ files- package.json- src/**- assets/**-# The Host runs pnpm as a separate Node process to install plugins, so it must be a plain file.+# The Host runs pnpm as a separate Node process to install plugins, and the Office payload's+# plain Node runs the LibreOffice Kit CLI: both must be plain files outside the asar.asarUnpack:- node_modules/pnpm/**+ - node_modules/@deepseek-ai/libreoffice-kit/**+ # Automatic unpacking misses versioned Linux libraries such as libvips-cpp.so.8.18.7.+ - node_modules/@img/sharp*/**+# The Office payload that scripts/prepare-runtime.mjs writes in beforePack (see package.json's+# `runtime` script). build/ is not in `files`, so nothing of it lands inside the asar.+extraResources:+ - from: build/runtime/primary-runtime+ to: primary-runtime+ - from: build/runtime/office-skills+ to: office-skills# node-pty, sharp and koffi ship prebuilt binaries for each platform. A rebuild would compile# node-pty from source and needs a C++ toolchain.npmRebuild: falsediff --cc app/package.jsonindex 18a41af4,3553e7ce..3a64a8e6--- a/app/package.json+++ b/app/package.json@@@ -16,7 -16,7 +16,8 @@@"pack": "electron-builder --dir --publish never","dist": "electron-builder --publish never","check-packed": "node scripts/check-packed.mjs",+ "runtime": "node scripts/prepare-runtime.mjs",+ "check-lifecycle": "node scripts/check-lifecycle.mjs","shot": "node scripts/shot.mjs","icon": "node scripts/icon.mjs","test": "node --test \"test/*.test.mjs\""diff --cc app/scripts/check-packed.mjsindex a58fa1ea,328c5df3..15b976ed--- a/app/scripts/check-packed.mjs+++ b/app/scripts/check-packed.mjs@@@ -28,27 -30,12 +30,31 @@@ if (!existsSync(executable))process.exit(2)}+// The Office payload sits next to the asar as extraResources, and the LibreOffice Kit CLI is a+// plain file in the unpacked tree; without them the app's Office skills and tools cannot run.+{+ const resources = process.platform === 'darwin' ? join(dirname(executable), '..', 'Resources') : join(dirname(executable), 'resources')+ const windows = process.platform === 'win32'+ const required = [+ 'primary-runtime/runtime.json',+ join('primary-runtime', 'dependencies', 'python', ...(windows ? ['python.exe'] : ['bin', 'python3'])),+ join('primary-runtime', 'dependencies', 'node', 'bin', windows ? 'node.exe' : 'node'),+ join('office-skills', 'office', 'SKILL.md'),+ join('app.asar.unpacked', 'node_modules', '@deepseek-ai', 'libreoffice-kit', 'lib', 'cli.js'),+ ]+ const missing = required.filter((entry) => !existsSync(join(resources, entry)))+ if (missing.length > 0) {+ console.error(`check-packed: FAILED: missing from ${resources}:\n ${missing.join('\n ')}`)+ process.exit(1)+ }+}+const work = realpathSync.native(mkdtempSync(join(realpathSync.native(tmpdir()), 'ds-bot-packed-')))mkdirSync(join(work, 'home'))+ mkdirSync(join(work, 'shell'))+ // CDP cannot answer the native first-close dialog. The notice has its own tests; this check+ // exercises hiding and reopening a window after the user has acknowledged it.+ writeFileSync(join(work, 'shell', 'tray-close-acknowledged'), '')const children = []function stopChildren() {