Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Unify application names under DS Bot

Fei2411e28856ad4fa6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d943241b..0afc791c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -126,8 +126,8 @@ jobs:
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
- name: DeepSeek-Bot-win-x64
- path: app/dist-pack/DeepSeek-Bot-*-win-x64.exe
+ name: DS-Bot-win-x64
+ path: app/dist-pack/DS-Bot-*-win-x64.exe
retention-days: 7
if-no-files-found: error
compression-level: 0
@@ -138,7 +138,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name }}
run: |
- installer="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-win-x64.exe"
+ installer="dist-pack/DS-Bot-$(node -p "require('./package.json').version")-win-x64.exe"
gh release upload "$TAG" "$installer" "$installer.blockmap" dist-pack/latest.yml --clobber
app-macos:
@@ -169,8 +169,8 @@ jobs:
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
- name: DeepSeek-Bot-mac-${{ matrix.arch }}
- path: app/dist-pack/DeepSeek-Bot-*-mac-${{ matrix.arch }}.zip
+ name: DS-Bot-mac-${{ matrix.arch }}
+ path: app/dist-pack/DS-Bot-*-mac-${{ matrix.arch }}.zip
retention-days: 7
if-no-files-found: error
compression-level: 0
@@ -180,8 +180,9 @@ jobs:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name }}
run: |
- zip="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
- gh release upload "$TAG" "$zip" --clobber
+ zip="dist-pack/DS-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
+ legacy="$(node scripts/legacy-release-assets.mjs "$zip")"
+ gh release upload "$TAG" "$zip" "$legacy" --clobber
app-linux:
name: Desktop app packages (Linux x64)
@@ -209,15 +210,15 @@ jobs:
# The dry run never uploads, so it checks here that every file the release attaches exists.
run: |
version="$(node -p "require('./package.json').version")"
- ls -l "dist-pack/DeepSeek-Bot-$version-linux-x86_64.AppImage" "dist-pack/DeepSeek-Bot-$version-linux-amd64.deb" dist-pack/latest-linux.yml
+ ls -l "dist-pack/DS-Bot-$version-linux-x86_64.AppImage" "dist-pack/DS-Bot-$version-linux-amd64.deb" dist-pack/latest-linux.yml
- name: Keep the packages for real-device checks
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
- name: DeepSeek-Bot-linux-x64
+ name: DS-Bot-linux-x64
path: |
- app/dist-pack/DeepSeek-Bot-*-linux-x86_64.AppImage
- app/dist-pack/DeepSeek-Bot-*-linux-amd64.deb
+ app/dist-pack/DS-Bot-*-linux-x86_64.AppImage
+ app/dist-pack/DS-Bot-*-linux-amd64.deb
retention-days: 7
if-no-files-found: error
compression-level: 0
@@ -229,4 +230,5 @@ jobs:
# The AppImage carries its block map inside the file, so there is no .blockmap to attach.
run: |
version="$(node -p "require('./package.json').version")"
- gh release upload "$TAG" "dist-pack/DeepSeek-Bot-$version-linux-x86_64.AppImage" "dist-pack/DeepSeek-Bot-$version-linux-amd64.deb" dist-pack/latest-linux.yml --clobber
+ legacy="$(node scripts/legacy-release-assets.mjs "dist-pack/DS-Bot-$version-linux-amd64.deb")"
+ gh release upload "$TAG" "dist-pack/DS-Bot-$version-linux-x86_64.AppImage" "dist-pack/DS-Bot-$version-linux-amd64.deb" "$legacy" dist-pack/latest-linux.yml --clobber
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e09ac116..da3890a9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -115,12 +115,12 @@ jobs:
$ErrorActionPreference = 'Stop'
function Find-Entry($root) {
Get-ChildItem "$root\Software\Microsoft\Windows\CurrentVersion\Uninstall" |
- Where-Object { (Get-ItemProperty $_.PSPath).DisplayName -like 'DeepSeek Bot*' }
+ Where-Object { (Get-ItemProperty $_.PSPath).DisplayName -like 'DS Bot*' }
}
- $installer = Get-Item dist-pack/DeepSeek-Bot-*-win-x64.exe
+ $installer = Get-Item dist-pack/DS-Bot-*-win-x64.exe
Start-Process -FilePath $installer.FullName -ArgumentList '/S' -Wait
- $dir = Join-Path $env:LOCALAPPDATA 'Programs\DeepSeek Bot'
- $exe = Join-Path $dir 'DeepSeek Bot.exe'
+ $dir = Join-Path $env:LOCALAPPDATA 'Programs\DS Bot'
+ $exe = Join-Path $dir 'DS Bot.exe'
if (-not (Test-Path $exe)) { throw "The installer did not put the app in $dir" }
$entry = Find-Entry 'HKCU:'
if (-not $entry) { throw 'No uninstall entry for the current user' }
@@ -148,20 +148,20 @@ jobs:
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
- $exe = Join-Path $env:LOCALAPPDATA 'Programs\DeepSeek Bot\DeepSeek Bot.exe'
+ $exe = Join-Path $env:LOCALAPPDATA 'Programs\DS Bot\DS Bot.exe'
node scripts/check-update.mjs $exe dist-next
if ($LASTEXITCODE -ne 0) { throw 'The installed app did not take the update' }
# The installer goes on after the app has quit.
function Installed-Version {
Get-ChildItem 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall' |
ForEach-Object { Get-ItemProperty $_.PSPath } |
- Where-Object { $_.DisplayName -like 'DeepSeek Bot*' } |
+ Where-Object { $_.DisplayName -like 'DS Bot*' } |
Select-Object -ExpandProperty DisplayVersion
}
$deadline = (Get-Date).AddSeconds(240)
while ((Installed-Version) -ne $env:NEXT_VERSION -and (Get-Date) -lt $deadline) { Start-Sleep -Seconds 3 }
if ((Installed-Version) -ne $env:NEXT_VERSION) { throw "The installed version is $(Installed-Version), not $env:NEXT_VERSION" }
- while ((Get-Process | Where-Object { $_.Path -like '*deepseek-bot-updater*' }) -and (Get-Date) -lt $deadline) { Start-Sleep -Seconds 2 }
+ while ((Get-Process | Where-Object { $_.Path -like '*dsbot-updater*' }) -and (Get-Date) -lt $deadline) { Start-Sleep -Seconds 2 }
node scripts/check-packed.mjs $exe
if ($LASTEXITCODE -ne 0) { throw 'The updated app failed its check' }
@@ -171,18 +171,18 @@ jobs:
$ErrorActionPreference = 'Stop'
function Find-Entry($root) {
Get-ChildItem "$root\Software\Microsoft\Windows\CurrentVersion\Uninstall" |
- Where-Object { (Get-ItemProperty $_.PSPath).DisplayName -like 'DeepSeek Bot*' }
+ Where-Object { (Get-ItemProperty $_.PSPath).DisplayName -like 'DS Bot*' }
}
- $dir = Join-Path $env:LOCALAPPDATA 'Programs\DeepSeek Bot'
- $exe = Join-Path $dir 'DeepSeek Bot.exe'
+ $dir = Join-Path $env:LOCALAPPDATA 'Programs\DS Bot'
+ $exe = Join-Path $dir 'DS Bot.exe'
# The uninstaller removes the program only: the data location and the app's own data stay.
- $kept = foreach ($folder in (Join-Path $HOME '.ds-bot'), (Join-Path $env:APPDATA 'DeepSeek Bot')) {
+ $kept = foreach ($folder in (Join-Path $HOME '.ds-bot'), (Join-Path $env:APPDATA 'DS Bot')) {
New-Item -ItemType Directory -Force $folder | Out-Null
$file = Join-Path $folder 'kept.txt'
Set-Content $file 'kept'
$file
}
- $uninstaller = Join-Path $dir 'Uninstall DeepSeek Bot.exe'
+ $uninstaller = Join-Path $dir 'Uninstall DS Bot.exe'
Start-Process -FilePath $uninstaller -ArgumentList '/currentuser', '/S' -Wait
# The uninstaller goes on from a copy in the temp folder, so wait for its result.
$deadline = (Get-Date).AddSeconds(120)
@@ -219,16 +219,16 @@ jobs:
CSC_FOR_PULL_REQUEST: 'true'
- name: Check the zip
run: |
- zip="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
+ zip="dist-pack/DS-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
test -f "$zip"
- name: Check the packaged app
run: node scripts/check-packed.mjs
- name: Install from the zip and check
run: |
- zip="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
+ zip="dist-pack/DS-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.zip"
ditto -x -k "$zip" /Applications
- app="/Applications/DeepSeek Bot.app"
- exe="$app/Contents/MacOS/DeepSeek Bot"
+ app="/Applications/DS Bot.app"
+ exe="$app/Contents/MacOS/DS Bot"
codesign --verify --deep --strict "$app"
file "$exe"
expected="${{ matrix.arch }}"
@@ -257,8 +257,8 @@ jobs:
- name: Check the packages
run: |
version="$(node -p "require('./package.json').version")"
- test -f "dist-pack/DeepSeek-Bot-$version-linux-x86_64.AppImage"
- test -f "dist-pack/DeepSeek-Bot-$version-linux-amd64.deb"
+ test -f "dist-pack/DS-Bot-$version-linux-x86_64.AppImage"
+ test -f "dist-pack/DS-Bot-$version-linux-amd64.deb"
test -f dist-pack/latest-linux.yml
# An AppImage mounts through FUSE 2, and Ubuntu 24.04's AppArmor blocks the unprivileged
# user namespaces that Chromium's sandbox needs; a throwaway runner may lift that.
@@ -273,12 +273,12 @@ jobs:
- name: Install the deb and check
run: |
version="$(node -p "require('./package.json').version")"
- sudo apt-get install -y "./dist-pack/DeepSeek-Bot-$version-linux-amd64.deb"
- test -f /usr/share/applications/deepseek-bot.desktop
- xvfb-run -a node scripts/check-packed.mjs "/opt/DeepSeek Bot/deepseek-bot"
+ sudo apt-get install -y "./dist-pack/DS-Bot-$version-linux-amd64.deb"
+ test -f /usr/share/applications/dsbot.desktop
+ xvfb-run -a node scripts/check-packed.mjs "/opt/DS Bot/dsbot"
# A deb cannot update itself: it points at the release page, as on macOS.
- name: The deb's app hears of a new version
- run: xvfb-run -a node scripts/check-update.mjs "/opt/DeepSeek Bot/deepseek-bot" 99.0.0
+ run: xvfb-run -a node scripts/check-update.mjs "/opt/DS Bot/dsbot" 99.0.0
# The update builds the app a second time, so it runs only for changes to the app or the
# workflows. The AppImage downloads the new one and replaces itself as it quits.
- name: Does the change touch the app?
@@ -296,16 +296,16 @@ jobs:
if: steps.scope.outputs.update == 'true'
run: |
tmp="$(mktemp -d)"
- cp dist-pack/DeepSeek-Bot-*-linux-x86_64.AppImage "$tmp/deepseek-bot.AppImage"
- chmod +x "$tmp/deepseek-bot.AppImage"
- xvfb-run -a node scripts/check-update.mjs "$tmp/deepseek-bot.AppImage" dist-next
- pkill -f "$tmp/deepseek-bot" || true
- next="$(ls dist-next/DeepSeek-Bot-*-linux-x86_64.AppImage)"
- test "$(sha512sum "$tmp/deepseek-bot.AppImage" | cut -d' ' -f1)" = "$(sha512sum "$next" | cut -d' ' -f1)"
+ cp dist-pack/DS-Bot-*-linux-x86_64.AppImage "$tmp/dsbot.AppImage"
+ chmod +x "$tmp/dsbot.AppImage"
+ xvfb-run -a node scripts/check-update.mjs "$tmp/dsbot.AppImage" dist-next
+ pkill -f "$tmp/dsbot" || true
+ next="$(ls dist-next/DS-Bot-*-linux-x86_64.AppImage)"
+ test "$(sha512sum "$tmp/dsbot.AppImage" | cut -d' ' -f1)" = "$(sha512sum "$next" | cut -d' ' -f1)"
- name: Uninstall
run: |
- sudo apt-get remove -y deepseek-bot
- test ! -e "/opt/DeepSeek Bot/deepseek-bot"
+ sudo apt-get remove -y dsbot
+ test ! -e "/opt/DS Bot/dsbot"
docker:
name: Docker startup and data migration
diff --git a/README.md b/README.md
index 1f1feaab..57c84d36 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,9 @@ DS Bot is a bot plugin for [DeepSeek Harness](https://github.com/deepseek-ai/dee
The desktop app brings its own DSH, so you don't need to install DSH first. Download it from [Releases](https://github.com/Fei2411/DS-Bot/releases):
-- Windows (x64): `DeepSeek-Bot-<version>-win-x64.exe`. Run it; it installs for your user only, without administrator rights. If Windows shows "Windows protected your PC", select **More info** → **Run anyway**.
-- macOS: `DeepSeek-Bot-<version>-mac-arm64.zip` for an Apple chip, `DeepSeek-Bot-<version>-mac-x64.zip` for Intel. Safari unzips it by itself; drag **DeepSeek Bot** into **Applications** and open it. When macOS says it cannot check the app, open **System Settings** → **Privacy & Security** and select **Open Anyway**.
-- Linux (x64): `DeepSeek-Bot-<version>-linux-x86_64.AppImage` runs on every distribution — make it executable and open it. It mounts through FUSE 2, which you may need to install first (`sudo apt install libfuse2t64` on Ubuntu 24.04+, `sudo dnf install fuse-libs` on Fedora, `sudo pacman -S fuse2` on Arch). On Ubuntu 24.04 and later an AppImage can refuse to start (Ubuntu restricts the sandbox it needs); the `DeepSeek-Bot-<version>-linux-amd64.deb` on Debian/Ubuntu does not have this problem and adds a menu entry.
+- Windows (x64): `DS-Bot-<version>-win-x64.exe`. Run it; it installs for your user only, without administrator rights. If Windows shows "Windows protected your PC", select **More info** → **Run anyway**.
+- macOS: `DS-Bot-<version>-mac-arm64.zip` for an Apple chip, `DS-Bot-<version>-mac-x64.zip` for Intel. Safari unzips it by itself; drag **DS Bot** into **Applications** and open it. When macOS says it cannot check the app, open **System Settings** → **Privacy & Security** and select **Open Anyway**.
+- Linux (x64): `DS-Bot-<version>-linux-x86_64.AppImage` runs on every distribution — make it executable and open it. It mounts through FUSE 2, which you may need to install first (`sudo apt install libfuse2t64` on Ubuntu 24.04+, `sudo dnf install fuse-libs` on Fedora, `sudo pacman -S fuse2` on Arch). On Ubuntu 24.04 and later an AppImage can refuse to start (Ubuntu restricts the sandbox it needs); the `DS-Bot-<version>-linux-amd64.deb` on Debian/Ubuntu does not have this problem and adds a menu entry.
At the first start the app asks where to keep its data and the Bots' files, and offers to copy a Bot team from your DSH (it only reads your DSH). Set up a model in its settings. The Windows app and the Linux AppImage update themselves; the macOS app and the Linux deb tell you when a new version is ready to download.
diff --git a/README.zh.md b/README.zh.md
index 50482b18..f261173f 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -21,9 +21,9 @@ DS Bot 是一个基于 [DeepSeek Harness](https://github.com/deepseek-ai/deepsee
桌面应用自带 dsh,不用先装 dsh。在 [Releases](https://github.com/Fei2411/DS-Bot/releases) 里下载:
-- Windows(x64):`DeepSeek-Bot-<版本>-win-x64.exe`。运行它即可安装,只装给当前用户,不要管理员权限。如果提示“Windows 已保护你的电脑”,点 **更多信息** → **仍要运行**。
-- macOS:Apple 芯片下载 `DeepSeek-Bot-<版本>-mac-arm64.zip`,Intel 下载 `DeepSeek-Bot-<版本>-mac-x64.zip`。Safari 会自动解压;把 **DeepSeek Bot** 拖进 **应用程序**,再打开。如果提示无法检查这个 App,打开 **系统设置** → **隐私与安全性**,点 **仍要打开**。
-- Linux(x64):`DeepSeek-Bot-<版本>-linux-x86_64.AppImage` 通用于所有发行版——加上可执行权限后打开即可。它通过 FUSE 2 挂载,可能需要先安装(Ubuntu 24.04+ 用 `sudo apt install libfuse2t64`,Fedora 用 `sudo dnf install fuse-libs`,Arch 用 `sudo pacman -S fuse2`)。Ubuntu 24.04 及以后版本会限制 AppImage 需要的沙箱,AppImage 可能因此拒绝启动;Debian/Ubuntu 上的 `DeepSeek-Bot-<版本>-linux-amd64.deb` 没有这个问题,还会加菜单项。
+- Windows(x64):`DS-Bot-<版本>-win-x64.exe`。运行它即可安装,只装给当前用户,不要管理员权限。如果提示“Windows 已保护你的电脑”,点 **更多信息** → **仍要运行**。
+- macOS:Apple 芯片下载 `DS-Bot-<版本>-mac-arm64.zip`,Intel 下载 `DS-Bot-<版本>-mac-x64.zip`。Safari 会自动解压;把 **DS Bot** 拖进 **应用程序**,再打开。如果提示无法检查这个 App,打开 **系统设置** → **隐私与安全性**,点 **仍要打开**。
+- Linux(x64):`DS-Bot-<版本>-linux-x86_64.AppImage` 通用于所有发行版——加上可执行权限后打开即可。它通过 FUSE 2 挂载,可能需要先安装(Ubuntu 24.04+ 用 `sudo apt install libfuse2t64`,Fedora 用 `sudo dnf install fuse-libs`,Arch 用 `sudo pacman -S fuse2`)。Ubuntu 24.04 及以后版本会限制 AppImage 需要的沙箱,AppImage 可能因此拒绝启动;Debian/Ubuntu 上的 `DS-Bot-<版本>-linux-amd64.deb` 没有这个问题,还会加菜单项。
第一次打开时,App 会问数据和 Bot 的文件放在哪里,并可以从你的 dsh 复制 Bot 团队(只读取你的 dsh,不改它)。在 App 的设置里配好模型就能用。Windows 版和 Linux 的 AppImage 会自动更新;macOS 版和 Linux 的 deb 有新版本时会提示你下载。
diff --git a/app/README.md b/app/README.md
index af0a497e..bc3b820a 100644
--- a/app/README.md
+++ b/app/README.md
@@ -20,10 +20,10 @@ npm installs `ds-bot` from `../ds-bot` as a copy of its package files (`install-
|---|---|---|
| `DS_BOT_HOME` | The data location: the `DSH_HOME` of the app. When it is set, the app asks nothing at its first start and imports nothing | The folder chosen at the first start |
| `DS_BOT_WORKSPACE` | With `DS_BOT_HOME`: the team workspace | `bot/workspace` in the data location |
-| `DS_BOT_SHELL_DATA` | The app's own data (window, Chromium storage, the Bot browsers' logins, `locations.json`) | Electron's `userData` (Windows: `%APPDATA%\DeepSeek Bot`; macOS: `~/Library/Application Support/DeepSeek Bot`) |
+| `DS_BOT_SHELL_DATA` | The app's own data (window, Chromium storage, the Bot browsers' logins, `locations.json`) | Electron's `userData` (Windows: `%APPDATA%\DS Bot`; macOS: `~/Library/Application Support/DS Bot`) |
| `DS_BOT_UPDATE_URL` | Windows and a Linux AppImage: a folder URL with `latest.yml` / `latest-linux.yml` and the installer. macOS and a Linux deb: a URL returning a JSON list like GitHub's `releases` API; a release counts only when this machine's package is attached. Prereleases count only for prerelease installs (see [Updates](#updates)). With `DS_BOT_HOME`, the app checks only when this is set | The newest GitHub release |
-On macOS, Electron's default `userData` directory for `productName` "DeepSeek Bot" is `~/Library/Application Support/DeepSeek Bot`.
+Existing installations keep their shell data, browser logins and saved locations in place. New installations use the DS Bot directory. A saved team workspace keeps its path; only a new workspace defaults to `~/DS Bot`.
## Run from source (Windows)
@@ -41,7 +41,7 @@ Use `.\start.ps1 -DataRoot <folder>` for a different data root (relative paths a
## First start and import
-At its first start the app asks, in system dialogs, for the data location (`~/.ds-bot` by default) and the team workspace (`~/DeepSeek Bot`), and keeps the answer in `locations.json` in its own data. Neither folder may be inside the other or inside the user's DSH data.
+At its first start the app asks, in system dialogs, for the data location (`~/.ds-bot` by default) and the team workspace (`~/DS Bot`), and keeps the answer in `locations.json` in its own data. Neither folder may be inside the other or inside the user's DSH data.
Both change later in DS Bot's Settings > General > Locations. The plugin moves the team workspace and tells the app, which writes it into `locations.json`. The app names the user's DSH data to the plugin (`DS_BOT_USER_DSH_HOME`), so that neither the team workspace nor a Bot's folder can be set there. The data location moves through the app (`src/move-data.mjs`): the new folder must be empty or new and apart from the old data, the team workspace, the user's DSH data and the program folder. The app stops the Host, copies the data (without the team's lock) into a staging folder beside the new one, renames it to the new folder once it is whole, writes `locations.json` and starts again. A failed or interrupted copy leaves the old location in use and removes the staging folder; the old folder always stays. A run on throwaway folders (`DS_BOT_HOME`) keeps its data location.
@@ -59,7 +59,7 @@ The Host's profile `ds-bot` is in `profiles/ds-bot` in the data location. It sta
| `@deepseek-ai/dsh-web-app` | DSH's Web front end, which the window shows, and the host services that it and ds-bot use |
| `ds-bot` | The Bot team |
-At every start the Host puts these three bundles at the head of the profile's bundle list. Settings for one machine go into the profile's `cordis.patch.yml`, as in DSH. A profile from an earlier build that lists `deepseek-bot-engine` gets `@deepseek-ai/dsh-web-app` in its place.
+At every start the Host puts these three bundles at the head of the profile's bundle list. Settings for one machine go into the profile's `cordis.patch.yml`, as in DSH. A profile from an earlier build that lists `dsbot-engine` gets `@deepseek-ai/dsh-web-app` in its place.
## Check a change
@@ -81,19 +81,19 @@ Never point `DS_BOT_HOME` at `~/.dsh` or at the data of an app that you use.
```sh
npm run pack # the app without an installer: dist-pack/win-unpacked/ (Windows), dist-pack/mac*/ (macOS), dist-pack/linux-unpacked/ (Linux)
-npm run dist # the installer: dist-pack/DeepSeek-Bot-<version>-win-x64.exe (Windows), a .zip (macOS), an .AppImage and a .deb (Linux)
+npm run dist # the installer: dist-pack/DS-Bot-<version>-win-x64.exe (Windows), a .zip (macOS), an .AppImage and a .deb (Linux)
npm run check-packed # starts the packaged app on throwaway folders with the mock model, chats once, closes it
```
-macOS produces one zip per architecture. Build arm64 on an Apple chip Mac and x64 on an Intel Mac, or under Rosetta with an x64 Node that also ran `npm ci`. Do not cross-build: it packages native modules from `node_modules`; a combined build put 12 arm64-only native modules in its x64 app. `scripts/before-pack.mjs` stops a build whose architecture is not the one of the Node that runs it. The app is ad-hoc signed so downloaded copies are sealed. It ships as a zip, not a dmg: macOS 26 calls a downloaded unsigned dmg damaged and does not open it, and an ad-hoc signature on the dmg does not help (#351). Safari unzips the download; move DeepSeek Bot to Applications. On first open, use System Settings → Privacy & Security → Open Anyway. Do not disable Gatekeeper.
+macOS produces one zip per architecture. Build arm64 on an Apple chip Mac and x64 on an Intel Mac, or under Rosetta with an x64 Node that also ran `npm ci`. Do not cross-build: it packages native modules from `node_modules`; a combined build put 12 arm64-only native modules in its x64 app. `scripts/before-pack.mjs` stops a build whose architecture is not the one of the Node that runs it. The app is ad-hoc signed so downloaded copies are sealed. It ships as a zip, not a dmg: macOS 26 calls a downloaded unsigned dmg damaged and does not open it, and an ad-hoc signature on the dmg does not help (#351). Safari unzips the download; move DS Bot to Applications. On first open, use System Settings → Privacy & Security → Open Anyway. Do not disable Gatekeeper.
`check-packed` takes another executable as its first argument, and a file for a screenshot of the window as its second. It runs an app that lies inside this checkout from a copy in its throwaway folder: from inside the checkout, Node would find a module that the package left out in the checkout's own `node_modules`.
electron-builder packs only the packages that it finds through `dependencies` and `optionalDependencies`. The DSH packages ask for many packages as peers, which npm installs but electron-builder would leave out, so `package.json` lists them as dependencies. `npm test` fails when one is missing and names it.
-The Windows installer installs for the current user only, without administrator rights, by default into `%LOCALAPPDATA%\Programs\DeepSeek Bot` (`build/installer.nsh` skips the page that asks for all users or only for the current one). The uninstaller removes the program and keeps the data location and the app's own data. CI builds the Windows installer on every pull request, checks the packaged app, then installs it, checks the installed app and uninstalls it. For a change to `app/` or the workflows, it also updates the installed app before the uninstall (see [Updates](#updates)).
+The Windows installer installs for the current user only, without administrator rights, by default into `%LOCALAPPDATA%\Programs\DS Bot` (`build/installer.nsh` skips the page that asks for all users or only for the current one). The uninstaller removes the program and keeps the data location and the app's own data. CI builds the Windows installer on every pull request, checks the packaged app, then installs it, checks the installed app and uninstalls it. For a change to `app/` or the workflows, it also updates the installed app before the uninstall (see [Updates](#updates)).
-Linux gets one AppImage for every distribution — it runs on any glibc system, updates itself, and needs no per-distribution packages — and a deb for Debian/Ubuntu, built in the same `npm run dist`. An AppImage mounts through FUSE 2 (`libfuse2t64` on Ubuntu 24.04+/Debian 13+, `libfuse2` on Ubuntu 22.04, `fuse-libs` on Fedora, `fuse2` on Arch; `--appimage-extract-and-run` works without it). Ubuntu 24.04 and later restrict the unprivileged user namespaces that Chromium's sandbox needs, so an AppImage can refuse to start there ("The SUID sandbox helper binary was found, but is not configured correctly"): the deb does not have this problem, since its post-install sets `chrome-sandbox` up (electron-builder 26 also writes an AppArmor profile). The binary and the deb's menu entry are `deepseek-bot` (`executableName`); the deb installs into `/opt/DeepSeek Bot`. CI builds the Linux packages on every pull request, checks the AppImage's self-update on a throwaway copy, and installs, checks, update-checks and removes the deb.
+Linux gets one AppImage for every distribution — it runs on any glibc system, updates itself, and needs no per-distribution packages — and a deb for Debian/Ubuntu, built in the same `npm run dist`. An AppImage mounts through FUSE 2 (`libfuse2t64` on Ubuntu 24.04+/Debian 13+, `libfuse2` on Ubuntu 22.04, `fuse-libs` on Fedora, `fuse2` on Arch; `--appimage-extract-and-run` works without it). Ubuntu 24.04 and later restrict the unprivileged user namespaces that Chromium's sandbox needs, so an AppImage can refuse to start there ("The SUID sandbox helper binary was found, but is not configured correctly"): the deb does not have this problem, since its post-install sets `chrome-sandbox` up (electron-builder 26 also writes an AppArmor profile). The binary and the deb's menu entry are `dsbot` (`executableName`); the deb installs into `/opt/DS Bot`. CI builds the Linux packages on every pull request, checks the AppImage's self-update on a throwaway copy, and installs, checks, update-checks and removes the deb.
## Updates
@@ -109,11 +109,11 @@ On throwaway folders (`DS_BOT_HOME`) the app checks for updates only from `DS_BO
```sh
npx electron-builder --publish never -c.extraMetadata.version=<next version> -c.directories.output=dist-next # the feed
-node scripts/check-update.mjs "dist-pack/win-unpacked/DeepSeek Bot.exe" dist-next --kill # Windows
-node scripts/check-update.mjs ./deepseek-bot.AppImage dist-next --kill # a Linux AppImage (latest-linux.yml)
+node scripts/check-update.mjs "dist-pack/win-unpacked/DS Bot.exe" dist-next --kill # Windows
+node scripts/check-update.mjs ./dsbot.AppImage dist-next --kill # a Linux AppImage (latest-linux.yml)
```
-It serves the feed folder, starts the app on throwaway folders and waits until the app has downloaded the update and checked its sha512. Then it ends the app the way the tray's Quit ends it, so that the app installs the update as it quits; with `--kill` it ends the app, so that nothing is installed. On your own machine use `--kill`: the installer would install into `%LOCALAPPDATA%\Programs\DeepSeek Bot`, and an AppImage replaces itself. The download stays in `%LOCALAPPDATA%\deepseek-bot-updater` (`~/.cache/deepseek-bot-updater` on Linux). CI runs it without `--kill` on its installed app, then checks that the installed version is the new one and that the updated app passes `check-packed`; for an AppImage it checks that the file is the new one.
+It serves the feed folder, starts the app on throwaway folders and waits until the app has downloaded the update and checked its sha512. Then it ends the app the way the tray's Quit ends it, so that the app installs the update as it quits; with `--kill` it ends the app, so that nothing is installed. On your own machine use `--kill`: the installer would install into `%LOCALAPPDATA%\Programs\DS Bot`, and an AppImage replaces itself. The download stays in `%LOCALAPPDATA%\dsbot-updater` (`~/.cache/dsbot-updater` on Linux). CI runs it without `--kill` on its installed app, then checks that the installed version is the new one and that the updated app passes `check-packed`; for an AppImage it checks that the file is the new one.
On macOS and for a Linux deb, pass the app executable and a version to mock a newer release:
@@ -125,7 +125,7 @@ The script serves a releases list with one release of that version that has this
## The tray and quitting
-The app builds a system tray icon on Windows, macOS and Linux (`src/shell.mjs`, `src/tray.mjs`); the icon is the app's own whale (`assets/tray.*`, drawn by `npm run icon`). The menu holds "Open DeepSeek Bot" and "Quit DeepSeek Bot". Whether the icon is visible belongs to the desktop: on Linux, GNOME and KDE draw it only with a tray extension.
+The app builds a system tray icon on Windows, macOS and Linux (`src/shell.mjs`, `src/tray.mjs`); the icon is the app's own whale (`assets/tray.*`, drawn by `npm run icon`). The menu holds "Open DS Bot" and "Quit DS Bot". Whether the icon is visible belongs to the desktop: on Linux, GNOME and KDE draw it only with a tray extension.
Closing the window hides it: the Host and the Bots go on working, and the Bot browsers' tabs stay. Starting the app again brings the window back, because the second copy hands itself to the one that runs. When the window is gone for good, the tray's Open builds a new one that talks to the Host that runs: it loads the Host's plain address, and the cookie of the first load still carries the session, so neither the launch token nor a second Host is needed.
@@ -159,7 +159,7 @@ The launch URL of the Host is good for one use only. When the first load never c
| `src/import.mjs` | The import of a Bot team from the user's DSH |
| `src/move-data.mjs` | The move of the data location: which folders can take it, and the copy through a staging folder |
| `src/updates.mjs` | The self-updates (Windows installer, Linux AppImage) and the release-page checks (macOS, Linux deb) |
-| `engine/` | On hold, not installed: the bundle `deepseek-bot-engine` for the app's own window in `ui/` |
+| `engine/` | On hold, not installed: the bundle `dsbot-engine` for the app's own window in `ui/` |
| `test/` | `npm test`: the composition of the profile, the dependencies that the package needs, and the window and the tray (the main process runs there with the Electron parts as test doubles, in `test/helpers/`) |
| `ui/` | On hold, not built or packaged: the app's own window. React, built with Vite (`vite.config.js`) into `ui/dist`. It draws the plugin's own Bot views from `../ds-bot/src/client/` (sidebar, chat rows, docks, dialogs and their stylesheets) and puts its own Markdown in place of DSH's. It uses ds-bot's `api/bot` channel and its live feed `api/bot/feed` |
| `assets/` | The app icon: `icon.svg`, `icon.png` (1024 px) and `icon.ico` (Windows, 16 to 256 px), and the tray marks: `tray.ico` (Windows), `tray.png` (Linux) and `trayTemplate.png` with its `@2x` (macOS). `npm run icon` (`scripts/icon.mjs`) draws them again from the Main Bot's whale in `../ds-bot` |
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index 2863a62e..0ba4a418 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -1,7 +1,7 @@
-appId: io.github.fei2411.deepseekbot
-productName: DeepSeek Bot
+appId: io.github.fei2411.dsbot
+productName: DS Bot
copyright: Copyright 2026 Fei2411 and the DS Bot contributors
-artifactName: DeepSeek-Bot-${version}-${os}-${arch}.${ext}
+artifactName: DS-Bot-${version}-${os}-${arch}.${ext}
directories:
output: dist-pack
files:
@@ -35,6 +35,8 @@ win:
arch: [x64]
icon: assets/icon.ico
nsis:
+ # Preserve the GUID derived from the legacy appId so installed copies upgrade in place.
+ guid: 32c46dfc-ed78-5d41-85a4-a3c7f083f2e0
oneClick: false
perMachine: false
allowElevation: false
@@ -53,7 +55,7 @@ mac:
# Without this key macOS registers no Local Network entry for the app and
# blocks LAN connections from tool processes outright ("No route to host").
extendInfo:
- NSLocalNetworkUsageDescription: DeepSeek Bot runs commands that connect to devices on your local network.
+ NSLocalNetworkUsageDescription: DS Bot runs commands that connect to devices on your local network.
linux:
# One AppImage runs on every distribution and updates itself; the deb is for Debian/Ubuntu,
# where it avoids Ubuntu 24.04's AppArmor question of an AppImage and adds a menu entry.
@@ -64,13 +66,16 @@ linux:
arch: [x64]
# The binary and the deb's menu entry take this name; productName has a space, which a
# terminal command should not have.
- executableName: deepseek-bot
+ executableName: dsbot
# A deb needs a maintainer; package.json's author has no email, so it goes here.
maintainer: Fei2411 <https://github.com/Fei2411>
# Links the running window to the menu entry (WM_CLASS = app id).
syncDesktopName: true
icon: assets/icon.png
category: Utility
+# Let apt replace the legacy deb instead of leaving two installed applications.
+deb:
+ fpm: ['--replaces', 'deepseek-bot', '--conflicts', 'deepseek-bot'] # legacy package
# Where the installed app looks for updates (app-update.yml in the package). The build writes
# latest.yml beside the installer; the release workflow attaches both to the GitHub release,
# so the build itself never publishes (--publish never).
diff --git a/app/engine/cordis.patch.yml b/app/engine/cordis.patch.yml
index c0a43694..a9384465 100644
--- a/app/engine/cordis.patch.yml
+++ b/app/engine/cordis.patch.yml
@@ -35,7 +35,7 @@
# This package's own plugin (index.js): the launch-token exchange.
- id: engine-index
- name: deepseek-bot-engine
+ name: dsbot-engine
- id: api-remotes
name: '@deepseek-ai/dsh-api-remotes'
diff --git a/app/engine/index.js b/app/engine/index.js
index be5473b8..38d6b7cd 100644
--- a/app/engine/index.js
+++ b/app/engine/index.js
@@ -1,7 +1,7 @@
// The engine's index: the app shell opens the Host's launch URL here and trades its token for the Host
// cookie. The window's page comes from the shell, so the index serves nothing else.
-export const name = 'deepseek-bot-engine'
+export const name = 'dsbot-engine'
export const inject = ['webServer', 'connection']
export function apply(ctx) {
@@ -15,5 +15,5 @@ export function apply(ctx) {
if (!ctx.connection.authorizeIndex(req, res)) return
res.writeHead(204, { 'cache-control': 'no-store' })
res.end()
- }), 'deepseek-bot-engine: launch-token exchange')
+ }), 'dsbot-engine: launch-token exchange')
}
diff --git a/app/engine/package.json b/app/engine/package.json
index 05eb44c8..9a7b7d36 100644
--- a/app/engine/package.json
+++ b/app/engine/package.json
@@ -1,8 +1,8 @@
{
- "name": "deepseek-bot-engine",
+ "name": "dsbot-engine",
"version": "0.2.1",
"private": true,
- "description": "The engine layer of the DeepSeek Bot desktop app profile: transport, host services and the Bot agent preset over dsh-base, without the DSH Web front end.",
+ "description": "The engine layer of the DS Bot desktop app profile: transport, host services and the Bot agent preset over dsh-base, without the DSH Web front end.",
"license": "Apache-2.0",
"type": "module",
"main": "index.js",
diff --git a/app/package-lock.json b/app/package-lock.json
index e158d180..64af6ef1 100644
--- a/app/package-lock.json
+++ b/app/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "deepseek-bot",
+ "name": "dsbot",
"version": "0.2.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "deepseek-bot",
+ "name": "dsbot",
"version": "0.2.4",
"license": "Apache-2.0",
"dependencies": {
diff --git a/app/package.json b/app/package.json
index c8de7c39..e27ad437 100644
--- a/app/package.json
+++ b/app/package.json
@@ -1,12 +1,12 @@
{
- "name": "deepseek-bot",
- "productName": "DeepSeek Bot",
+ "name": "dsbot",
+ "productName": "DS Bot",
"version": "0.2.4",
"private": true,
- "description": "DeepSeek Bot desktop app: the ds-bot team on its own pinned DeepSeek Harness.",
+ "description": "DS Bot desktop app: the ds-bot team on its own pinned DeepSeek Harness.",
"author": "Fei2411",
"homepage": "https://github.com/Fei2411/DS-Bot",
- "desktopName": "deepseek-bot.desktop",
+ "desktopName": "dsbot.desktop",
"license": "Apache-2.0",
"type": "module",
"main": "src/main.mjs",
diff --git a/app/scripts/check-lifecycle.mjs b/app/scripts/check-lifecycle.mjs
index 0839f943..d9ef198b 100644
--- a/app/scripts/check-lifecycle.mjs
+++ b/app/scripts/check-lifecycle.mjs
@@ -93,7 +93,7 @@ try {
if (!first.ready) fail('the window did not start')
if (first.visible !== true) fail('the window is not on the screen')
if (!first.url?.startsWith('http://127.0.0.1:')) fail(`the window did not reach the Host: ${String(first.url)}`)
- if (first.title !== 'DeepSeek Bot') fail(`the page did not load: ${String(first.title)}`)
+ if (first.title !== 'DS Bot') fail(`the page did not load: ${String(first.title)}`)
if (first.hasTray !== true) fail('the tray is not there')
console.log('check-lifecycle: the window shows the Host and the tray is there')
diff --git a/app/scripts/check-packed.mjs b/app/scripts/check-packed.mjs
index fdb971fc..b5fb0408 100644
--- a/app/scripts/check-packed.mjs
+++ b/app/scripts/check-packed.mjs
@@ -18,11 +18,11 @@ const executable = given || packedExecutable()
function packedExecutable() {
const out = join(root, 'dist-pack')
- if (process.platform === 'win32') return join(out, 'win-unpacked', 'DeepSeek Bot.exe')
+ if (process.platform === 'win32') return join(out, 'win-unpacked', 'DS Bot.exe')
// executableName in electron-builder.yml.
- if (process.platform === 'linux') return join(out, 'linux-unpacked', 'deepseek-bot')
+ if (process.platform === 'linux') return join(out, 'linux-unpacked', 'dsbot')
const dir = ['mac-arm64', 'mac'].find(name => existsSync(join(out, name))) ?? 'mac'
- return join(out, dir, 'DeepSeek Bot.app', 'Contents', 'MacOS', 'DeepSeek Bot')
+ return join(out, dir, 'DS Bot.app', 'Contents', 'MacOS', 'DS Bot')
}
if (!existsSync(executable)) {
diff --git a/app/scripts/check-update.mjs b/app/scripts/check-update.mjs
index 3b6d83c8..caade5d5 100644
--- a/app/scripts/check-update.mjs
+++ b/app/scripts/check-update.mjs
@@ -18,8 +18,8 @@ const manifest = process.platform === 'linux' ? 'latest-linux.yml' : 'latest.yml
// The asset the fake release lists: what this install's update check waits for. The deb's file
// name uses the Debian architecture (x64 → amd64).
const asset = mac
- ? version => `DeepSeek-Bot-${version}-mac-${process.arch}.zip`
- : version => `DeepSeek-Bot-${version}-linux-${{ x64: 'amd64' }[process.arch] ?? process.arch}.deb`
+ ? version => `DS-Bot-${version}-mac-${process.arch}.zip`
+ : version => `DS-Bot-${version}-linux-${{ x64: 'amd64' }[process.arch] ?? process.arch}.deb`
if (!executable || !source || !existsSync(executable)
|| (releasePage ? mode !== undefined : !existsSync(join(source, manifest)))) {
console.error(`check-update: usage: ${releasePage
@@ -127,10 +127,10 @@ try {
stream.setEncoding('utf8')
stream.on('data', (chunk) => { output += chunk; process.stdout.write(chunk) })
}
- const updateLine = `DeepSeek Bot: update ${String(version)} ${releasePage ? 'available' : 'downloaded'}`
+ const updateLine = `DS Bot: update ${String(version)} ${releasePage ? 'available' : 'downloaded'}`
const end = Date.now() + (releasePage ? 3 : 5) * 60_000
while (!output.includes(updateLine)) {
- if (releasePage ? /DeepSeek Bot: update check failed/u.test(output) : /DeepSeek Bot: update failed/u.test(output)) {
+ if (releasePage ? /DS Bot: update check failed/u.test(output) : /DS Bot: update failed/u.test(output)) {
throw new Error('the app reported a failed update')
}
if (app.exitCode !== null) {
diff --git a/app/scripts/legacy-release-assets.mjs b/app/scripts/legacy-release-assets.mjs
new file mode 100644
index 00000000..c06479c2
--- /dev/null
+++ b/app/scripts/legacy-release-assets.mjs
@@ -0,0 +1,13 @@
+// Released macOS and deb clients require the legacy asset name before showing an update.
+// Publish an alias of the new payload as well; all normal downloads use DS-Bot-*.
+import { copyFileSync } from 'node:fs'
+import { basename, dirname, join } from 'node:path'
+import { LEGACY_ARTIFACT_PREFIX } from '../src/legacy.mjs'
+
+for (const file of process.argv.slice(2)) {
+ const name = basename(file)
+ if (!/^DS-Bot-.+-(?:mac-(?:arm64|x64)\.zip|linux-amd64\.deb)$/u.test(name)) throw new Error(`Unsupported release alias: ${name}`)
+ const alias = join(dirname(file), name.replace(/^DS-Bot/u, LEGACY_ARTIFACT_PREFIX))
+ copyFileSync(file, alias)
+ console.log(alias)
+}
diff --git a/app/src/background-notice.mjs b/app/src/background-notice.mjs
index 0c7cbbc0..219139d0 100644
--- a/app/src/background-notice.mjs
+++ b/app/src/background-notice.mjs
@@ -57,7 +57,7 @@ export class BackgroundNotice {
async #ask(hide) {
try {
const { response } = await this.#show({
- type: 'info', title: 'DeepSeek Bot', message: this.#message,
+ type: 'info', title: 'DS Bot', message: this.#message,
buttons: [this.#confirm], defaultId: 0, cancelId: -1, noLink: true,
})
// A cancelled box leaves the window where it is.
@@ -67,11 +67,11 @@ export class BackgroundNotice {
mkdirSync(dirname(this.#marker), { recursive: true })
writeFileSync(this.#marker, '')
} catch (error) {
- this.#log.warn(`DeepSeek Bot: the tray notice was not remembered: ${error instanceof Error ? error.message : String(error)}`)
+ this.#log.warn(`DS Bot: the tray notice was not remembered: ${error instanceof Error ? error.message : String(error)}`)
}
hide()
} catch (error) {
- this.#log.warn(`DeepSeek Bot: the tray notice could not be shown: ${error instanceof Error ? error.message : String(error)}`)
+ this.#log.warn(`DS Bot: the tray notice could not be shown: ${error instanceof Error ? error.message : String(error)}`)
} finally {
this.#pending = false
}
diff --git a/app/src/bot-browser.mjs b/app/src/bot-browser.mjs
index 63b5b6bd..aad1db80 100644
--- a/app/src/bot-browser.mjs
+++ b/app/src/bot-browser.mjs
@@ -39,7 +39,7 @@ export function requestAllowed(value, origin) {
}
const keyOf = (key) => {
- if (typeof key !== 'string' || key.length === 0 || key.length > KEY_MAX) throw new Error('DeepSeek Bot: a browser storage key is required')
+ if (typeof key !== 'string' || key.length === 0 || key.length > KEY_MAX) throw new Error('DS Bot: a browser storage key is required')
return key
}
@@ -85,10 +85,10 @@ export class BotBrowserGuests {
/** Close a lease's guest; its partition's storage stays. */
async release(owner, id) {
- if (typeof id !== 'string') throw new Error('DeepSeek Bot: invalid browser lease')
+ if (typeof id !== 'string') throw new Error('DS Bot: invalid browser lease')
const lease = this.#leases.get(id)
if (lease === undefined) return
- if (lease.owner !== owner) throw new Error('DeepSeek Bot: the browser lease belongs to another window')
+ if (lease.owner !== owner) throw new Error('DS Bot: the browser lease belongs to another window')
this.#leases.delete(id)
const guest = lease.guest
if (guest !== undefined && !guest.isDestroyed()) {
diff --git a/app/src/first-run.mjs b/app/src/first-run.mjs
index 4a604954..62e7897b 100644
--- a/app/src/first-run.mjs
+++ b/app/src/first-run.mjs
@@ -9,66 +9,66 @@ import { installFolder } from './move-data.mjs'
const TEXT = {
en: {
- welcome: 'Welcome to DeepSeek Bot',
+ welcome: 'Welcome to DS Bot',
places: (data, workspace) => `Data: ${data}\nTeam workspace: ${workspace}`,
start: 'Start', change: 'Change…',
- pickData: 'Folder for DeepSeek Bot data', pickWorkspace: 'Folder for the team workspace',
+ pickData: 'Folder for DS Bot data', pickWorkspace: 'Folder for the team workspace',
dataInWorkspace: 'The data folder cannot be inside the team workspace.',
workspaceInData: 'The team workspace cannot be inside the data folder.',
inDsh: home => `Choose a folder outside the DeepSeek Harness data (${home}).`,
inProgram: 'Choose a folder outside the program folder: uninstalling removes it.',
- pickMove: 'New folder for DeepSeek Bot data',
+ pickMove: 'New folder for DS Bot data',
moveDrive: 'Choose a folder, not a whole drive.',
moveNested: 'Choose a folder outside the current data folder.',
moveWorkspace: 'The data folder and the team workspace cannot hold each other.',
moveNotEmpty: 'Choose an empty folder or a new one.',
- moveConfirm: to => `Move DeepSeek Bot's data to ${to}?`,
- moveDetail: from => `DeepSeek Bot copies its data there and starts again. ${from} stays as it is; you can delete it once everything works.`,
+ moveConfirm: to => `Move DS Bot's data to ${to}?`,
+ moveDetail: from => `DS Bot copies its data there and starts again. ${from} stays as it is; you can delete it once everything works.`,
move: 'Move and restart', cancel: 'Cancel',
- moving: 'Copying DeepSeek Bot\'s data…',
- starting: 'Starting DeepSeek Bot…',
+ moving: 'Copying DS Bot\'s data…',
+ starting: 'Starting DS Bot…',
moveInUse: 'Another DeepSeek Harness is using this data, so it was not moved. Close it, then try again.',
- moveFailed: message => `The data could not be copied: ${message}\n\nDeepSeek Bot goes on with its data where it was.`,
- found: (bots, rooms) => `DeepSeek Harness has a Bot team: ${bots} Bot${bots === 1 ? '' : 's'}${rooms > 0 ? `, ${rooms} group${rooms === 1 ? '' : 's'}` : ''}. Copy it into DeepSeek Bot?`,
+ moveFailed: message => `The data could not be copied: ${message}\n\nDS Bot goes on with its data where it was.`,
+ found: (bots, rooms) => `DeepSeek Harness has a Bot team: ${bots} Bot${bots === 1 ? '' : 's'}${rooms > 0 ? `, ${rooms} group${rooms === 1 ? '' : 's'}` : ''}. Copy it into DS Bot?`,
foundDetail: home => `The copy takes the Bots, groups, memories, chats, files, keys and model settings. Nothing in ${home} changes, and the two teams do not stay in step.`,
copy: 'Copy', skip: 'Do not copy',
inUse: 'DeepSeek Harness is using this team. Close it, then try again.', retry: 'Try again',
- newer: count => `${count} chat${count === 1 ? ' was' : 's were'} written by a newer DeepSeek Harness than this DeepSeek Bot can read. Update DeepSeek Bot, then start it again to copy the team.`,
+ newer: count => `${count} chat${count === 1 ? ' was' : 's were'} written by a newer DeepSeek Harness than this DS Bot can read. Update DS Bot, then start it again to copy the team.`,
quit: 'Quit', startEmpty: 'Start without the team',
- whichModels: 'Which model settings should DeepSeek Bot use?',
- failed: message => `The team could not be copied: ${message}\n\nDeepSeek Bot starts with a new team. The team in DeepSeek Harness is unchanged.`,
- notStarted: 'DeepSeek Bot could not start.',
+ whichModels: 'Which model settings should DS Bot use?',
+ failed: message => `The team could not be copied: ${message}\n\nDS Bot starts with a new team. The team in DeepSeek Harness is unchanged.`,
+ notStarted: 'DS Bot could not start.',
},
zh: {
- welcome: '欢迎使用 DeepSeek Bot',
+ welcome: '欢迎使用 DS Bot',
places: (data, workspace) => `数据:${data}\n总工作区:${workspace}`,
start: '开始使用', change: '更改位置…',
- pickData: '选择 DeepSeek Bot 的数据文件夹', pickWorkspace: '选择总工作区的文件夹',
+ pickData: '选择 DS Bot 的数据文件夹', pickWorkspace: '选择总工作区的文件夹',
dataInWorkspace: '数据文件夹不能放在总工作区里面。',
workspaceInData: '总工作区不能放在数据文件夹里面。',
inDsh: home => `请选择 DeepSeek Harness 数据(${home})以外的文件夹。`,
inProgram: '请选择程序文件夹以外的位置:卸载时会删掉程序文件夹。',
- pickMove: '选择 DeepSeek Bot 数据的新文件夹',
+ pickMove: '选择 DS Bot 数据的新文件夹',
moveDrive: '请选择一个文件夹,不要选整个磁盘。',
moveNested: '请选择现在的数据文件夹以外的位置。',
moveWorkspace: '数据文件夹和总工作区不能互相包含。',
moveNotEmpty: '请选择一个空文件夹,或者新建一个。',
- moveConfirm: to => `把 DeepSeek Bot 的数据移到 ${to} 吗?`,
- moveDetail: from => `DeepSeek Bot 会把数据复制过去,然后重新启动。${from} 会原样保留,确认一切正常后可以自己删掉。`,
+ moveConfirm: to => `把 DS Bot 的数据移到 ${to} 吗?`,
+ moveDetail: from => `DS Bot 会把数据复制过去,然后重新启动。${from} 会原样保留,确认一切正常后可以自己删掉。`,
move: '移动并重启', cancel: '取消',
- moving: '正在复制 DeepSeek Bot 的数据…',
- starting: '正在启动 DeepSeek Bot…',
+ moving: '正在复制 DS Bot 的数据…',
+ starting: '正在启动 DS Bot…',
moveInUse: '另一个 DeepSeek Harness 正在使用这份数据,所以没有移动。请先关掉它,再重试。',
- moveFailed: message => `数据没有复制成功:${message}\n\nDeepSeek Bot 会继续使用原来位置的数据。`,
- found: (bots, rooms) => `DeepSeek Harness 里有一个 Bot 团队:${bots} 个 Bot${rooms > 0 ? `、${rooms} 个群` : ''}。要复制到 DeepSeek Bot 吗?`,
+ moveFailed: message => `数据没有复制成功:${message}\n\nDS Bot 会继续使用原来位置的数据。`,
+ found: (bots, rooms) => `DeepSeek Harness 里有一个 Bot 团队:${bots} 个 Bot${rooms > 0 ? `、${rooms} 个群` : ''}。要复制到 DS Bot 吗?`,
foundDetail: home => `会复制 Bot、群、记忆、对话、文件、密钥和模型设置。${home} 里的内容不会改变;复制以后两个团队各自独立。`,
copy: '复制', skip: '不复制',
inUse: 'DeepSeek Harness 正在使用这个团队。请先关掉它,再重试。', retry: '重试',
- newer: count => `有 ${count} 段对话是更新版本的 DeepSeek Harness 写的,这个版本的 DeepSeek Bot 读不了。请先更新 DeepSeek Bot,再打开它来复制团队。`,
+ newer: count => `有 ${count} 段对话是更新版本的 DeepSeek Harness 写的,这个版本的 DS Bot 读不了。请先更新 DS Bot,再打开它来复制团队。`,
quit: '退出', startEmpty: '不带团队开始',
- whichModels: 'DeepSeek Bot 用哪一份模型设置?',
- failed: message => `团队没有复制成功:${message}\n\nDeepSeek Bot 会用一个新团队开始。DeepSeek Harness 里的团队没有变化。`,
- notStarted: 'DeepSeek Bot 没能启动。',
+ whichModels: 'DS Bot 用哪一份模型设置?',
+ failed: message => `团队没有复制成功:${message}\n\nDS Bot 会用一个新团队开始。DeepSeek Harness 里的团队没有变化。`,
+ notStarted: 'DS Bot 没能启动。',
},
}
export const localeText = table => (app.getLocale().toLowerCase().startsWith('zh') ? table.zh : table.en)
@@ -81,7 +81,7 @@ const locationsFile = () => join(app.getPath('userData'), 'locations.json')
class Quit extends Error {}
async function ask(options, signal) {
- const { response } = await dialog.showMessageBox({ title: 'DeepSeek Bot', noLink: true, ...options, signal })
+ const { response } = await dialog.showMessageBox({ title: 'DS Bot', noLink: true, ...options, signal })
// A quit that arrived while a synchronous macOS box was open gets to run first.
await new Promise(resolve => setImmediate(resolve))
if (signal.aborted) throw new Quit()
@@ -164,7 +164,7 @@ export async function chooseLocations(signal) {
}
const t = text()
let dataDir = join(homedir(), '.ds-bot')
- let workspace = join(homedir(), 'DeepSeek Bot')
+ let workspace = join(homedir(), 'DS Bot')
try {
for (;;) {
const choice = await ask({ type: 'info', message: t.welcome, detail: t.places(dataDir, workspace), buttons: [t.start, t.change, t.quit], defaultId: 0, cancelId: 2 }, signal)
diff --git a/app/src/host-port.mjs b/app/src/host-port.mjs
index 25fcdb33..21894bf4 100644
--- a/app/src/host-port.mjs
+++ b/app/src/host-port.mjs
@@ -30,7 +30,7 @@ const saved = (file) => {
export async function hostPort(file) {
const kept = saved(file)
const port = (kept === undefined ? undefined : await free(kept)) ?? await free(0)
- if (port === undefined) throw new Error('DeepSeek Bot: no free port on 127.0.0.1')
+ if (port === undefined) throw new Error('DS Bot: no free port on 127.0.0.1')
if (port !== kept) {
mkdirSync(dirname(file), { recursive: true })
writeFileSync(file, `${JSON.stringify({ port })}\n`)
diff --git a/app/src/import.mjs b/app/src/import.mjs
index e4802196..68ab5d81 100644
--- a/app/src/import.mjs
+++ b/app/src/import.mjs
@@ -62,7 +62,7 @@ function modelProfiles(from) {
patch = parse(readFileSync(file, 'utf8'))
} catch (error) {
// An unreadable profile has no model settings to copy; the team is still there.
- console.warn(`DeepSeek Bot: skipped the model settings in ${file}: ${error instanceof Error ? error.message : String(error)}`)
+ console.warn(`DS Bot: skipped the model settings in ${file}: ${error instanceof Error ? error.message : String(error)}`)
return []
}
const rows = Array.isArray(patch) ? patch.filter(row => MODEL_ROWS.includes(row?.id)) : []
@@ -186,7 +186,7 @@ export async function importTeam({ from, to, workspace, profile, dsh, signal })
if (existsSync(join(oldBot, 'workspace'))) {
// Bots that ran npm or pnpm there leave links, some of them to nothing.
const skipped = await copyTree(join(oldBot, 'workspace'), workspace, { force: false, skip: true, signal })
- if (skipped.length > 0) console.warn('DeepSeek Bot: the import skipped what it could not read in the old team workspace:', skipped)
+ if (skipped.length > 0) console.warn('DS Bot: the import skipped what it could not read in the old team workspace:', skipped)
}
signal?.throwIfAborted()
const keys = []
diff --git a/app/src/legacy.mjs b/app/src/legacy.mjs
new file mode 100644
index 00000000..6088312f
--- /dev/null
+++ b/app/src/legacy.mjs
@@ -0,0 +1,30 @@
+// Compatibility identifiers are kept here so released installs can upgrade in place.
+import { existsSync, mkdirSync } from 'node:fs'
+import { join } from 'node:path'
+
+export const PRODUCT_NAME = 'DS Bot'
+export const APP_ID = 'io.github.fei2411.dsbot'
+export const LEGACY_PRODUCT_NAME = 'DeepSeek Bot'
+export const LEGACY_ENGINE = 'deepseek-bot-engine'
+export const LEGACY_ARTIFACT_PREFIX = 'DeepSeek-Bot'
+
+/** Keep the shell data and Chromium encryption identity of an existing installation. */
+export function configureIdentity(app, { env = process.env, platform = process.platform, exists = existsSync, mkdir = mkdirSync } = {}) {
+ const current = app.getPath('userData')
+ const explicit = env.DS_BOT_SHELL_DATA
+ // An explicitly isolated run must never discover an installed application.
+ const legacy = explicit || env.DS_BOT_HOME ? undefined : join(app.getPath('appData'), LEGACY_PRODUCT_NAME)
+ const reuse = legacy !== undefined && exists(legacy) && !exists(join(current, 'locations.json'))
+ const userData = explicit || (reuse ? legacy : current)
+ mkdir(userData, { recursive: true })
+ app.setPath('userData', userData)
+ app.setPath('sessionData', userData)
+ if (platform === 'win32') app.setAppUserModelId(APP_ID)
+ // Electron 44 captures this name for OSCrypt before ready. Restore the visible name
+ // before creating menus or windows; the captured keychain identity stays unchanged.
+ if (reuse && platform !== 'win32') {
+ app.setName(LEGACY_PRODUCT_NAME)
+ app.once('ready', () => { app.setName(PRODUCT_NAME) })
+ }
+ return { userData, legacy: reuse }
+}
diff --git a/app/src/main.mjs b/app/src/main.mjs
index 43d7bbe3..5c7b1e43 100644
--- a/app/src/main.mjs
+++ b/app/src/main.mjs
@@ -18,6 +18,7 @@ import { parseCookieFile } from './cookie-parse.mjs'
import { downloadSaver } from './downloads.mjs'
import { canonicalExecPath } from './canonical-path.mjs'
import { chooseLocations, localeText, programFolder, saveLocations, text } from './first-run.mjs'
+import { configureIdentity } from './legacy.mjs'
import { hostPort } from './host-port.mjs'
import { HostProcess } from './host-process.mjs'
import { copySessions, findTeam, importTeam, teamInUse, userDshHome } from './import.mjs'
@@ -59,7 +60,7 @@ const iconFile = join(assets, process.platform === 'win32' ? 'icon.ico' : 'icon.
const trayIconFile = () => join(assets, process.platform === 'win32' ? 'tray.ico' : process.platform === 'darwin' ? 'trayTemplate.png' : 'tray.png')
// Windows 11 draws Mica behind the page; mica.css lets it through the sidebar.
const mica = micaAvailable(process.platform, release())
-if (process.env.DS_BOT_SHELL_DATA) app.setPath('userData', process.env.DS_BOT_SHELL_DATA)
+configureIdentity(app)
let mainWindow
let host
@@ -283,7 +284,7 @@ async function start() {
ipcMain.handle(IPC.browserImportLive, async (event, sourceId, close) => {
assertWindow(event)
const source = (await listSources()).find((item) => item.id === sourceId)
- if (!source) throw new Error('DeepSeek Bot: an unknown browser profile')
+ if (!source) throw new Error('DS Bot: an unknown browser profile')
let outcome
try {
outcome = await importFromBrowser(source, { close: close === true })
@@ -300,9 +301,9 @@ async function start() {
})
ipcMain.handle(IPC.browserImportApply, async (event, key, id) => {
assertWindow(event)
- if (typeof key !== 'string' || !key.startsWith('bot:')) throw new Error('DeepSeek Bot: a Bot storage key is required')
+ if (typeof key !== 'string' || !key.startsWith('bot:')) throw new Error('DS Bot: a Bot storage key is required')
const pending = cookieImports.take(typeof id === 'string' ? id : '')
- if (!pending) throw new Error('DeepSeek Bot: this import is no longer pending')
+ if (!pending) throw new Error('DS Bot: this import is no longer pending')
const storage = session.fromPartition(partitionOf(key))
return applyCookies(storage, pending.cookies)
})
@@ -373,14 +374,14 @@ async function start() {
// without the copied Sessions' folders, so the old team's folders are not offered as projects.
// Before that, the app's own DSH reads every chat of the team once: a newer DSH can write
// records that this one refuses while the log format stays the same. Such a chat stops the
-// copy, as a newer log format does; 'quit' means the user updates DeepSeek Bot first, and
+// copy, as a newer log format does; 'quit' means the user updates DS Bot first, and
// 'stopped' that the app quit during the copy.
async function copyTeam(where, newHost, newCheck, signal) {
const unreadable = await checkTeam(where, newCheck, signal)
if (signal.aborted) return 'stopped'
if (unreadable > 0) {
const t = text()
- const { response } = await dialog.showMessageBox({ type: 'warning', title: 'DeepSeek Bot', noLink: true, message: t.newer(unreadable), buttons: [t.quit, t.startEmpty], defaultId: 0, cancelId: 0, signal })
+ const { response } = await dialog.showMessageBox({ type: 'warning', title: 'DS Bot', noLink: true, message: t.newer(unreadable), buttons: [t.quit, t.startEmpty], defaultId: 0, cancelId: 0, signal })
if (signal.aborted) return 'stopped'
if (response === 0) return 'quit'
saveLocations(where)
@@ -397,11 +398,11 @@ async function copyTeam(where, newHost, newCheck, signal) {
await warm.stop()
host = undefined
const summary = await importTeam({ ...where.import, to: where.dataDir, workspace: where.workspace, dsh: getDshRuntimeVersion(), signal })
- console.log(`DeepSeek Bot: copied ${String(summary.bots)} Bots and ${String(summary.sessions)} Sessions from ${summary.from}`)
+ console.log(`DS Bot: copied ${String(summary.bots)} Bots and ${String(summary.sessions)} Sessions from ${summary.from}`)
} catch (error) {
if (signal.aborted) return 'stopped'
console.error(error)
- await dialog.showMessageBox({ type: 'warning', title: 'DeepSeek Bot', message: text().failed(error instanceof Error ? error.message : String(error)), signal })
+ await dialog.showMessageBox({ type: 'warning', title: 'DS Bot', message: text().failed(error instanceof Error ? error.message : String(error)), signal })
if (signal.aborted) return 'stopped'
} finally {
signal.removeEventListener('abort', stopWarm)
@@ -431,14 +432,14 @@ async function checkTeam(where, newCheck, signal) {
try {
signal.throwIfAborted()
const { unreadable } = await check.start()
- if (unreadable.length > 0) console.warn(`DeepSeek Bot: this DSH cannot read ${unreadable.join(', ')}`)
+ if (unreadable.length > 0) console.warn(`DS Bot: this DSH cannot read ${unreadable.join(', ')}`)
return unreadable.length
} finally {
signal.removeEventListener('abort', stop)
await check.stop()
}
} catch (error) {
- if (!signal.aborted) console.error('DeepSeek Bot: the chats were not checked before the copy:', error)
+ if (!signal.aborted) console.error('DS Bot: the chats were not checked before the copy:', error)
return 0
} finally {
mainWindow?.setProgressBar(-1)
@@ -461,13 +462,13 @@ async function moveData(workspace) {
for (const current of new Set([workspace, places.workspace])) {
const problem = moveProblem({ from: places.dataDir, to, workspace: current, dshHome, program: app.isPackaged ? programFolder() : undefined })
if (problem === undefined) continue
- await dialog.showMessageBox(owner, { type: 'warning', title: 'DeepSeek Bot', message: problem === 'dsh' ? t.inDsh(dshHome) : t[MOVE_PROBLEMS[problem]], buttons: ['OK'] })
+ await dialog.showMessageBox(owner, { type: 'warning', title: 'DS Bot', message: problem === 'dsh' ? t.inDsh(dshHome) : t[MOVE_PROBLEMS[problem]], buttons: ['OK'] })
return true
}
return false
}
if (await refused()) return false
- const { response } = await dialog.showMessageBox(owner, { type: 'question', title: 'DeepSeek Bot', noLink: true, message: t.moveConfirm(to), detail: t.moveDetail(places.dataDir), buttons: [t.move, t.cancel], defaultId: 0, cancelId: 1 })
+ const { response } = await dialog.showMessageBox(owner, { type: 'question', title: 'DS Bot', noLink: true, message: t.moveConfirm(to), detail: t.moveDetail(places.dataDir), buttons: [t.move, t.cancel], defaultId: 0, cancelId: 1 })
if (response !== 0 || stopping || await refused()) return false
const signal = copyAbort.signal
copying = (async () => {
@@ -481,7 +482,7 @@ async function moveData(workspace) {
}
// Another DSH on the same data would go on writing while the copy is made.
if (teamInUse(places.dataDir)) {
- await dialog.showMessageBox({ type: 'warning', title: 'DeepSeek Bot', message: t.moveInUse })
+ await dialog.showMessageBox({ type: 'warning', title: 'DS Bot', message: t.moveInUse })
app.relaunch()
return
}
@@ -498,7 +499,7 @@ async function moveData(workspace) {
} catch (error) {
if (signal.aborted) return
console.error(error)
- await dialog.showMessageBox({ type: 'warning', title: 'DeepSeek Bot', message: t.moveFailed(error instanceof Error ? error.message : String(error)) })
+ await dialog.showMessageBox({ type: 'warning', title: 'DS Bot', message: t.moveFailed(error instanceof Error ? error.message : String(error)) })
} finally {
mainWindow?.setProgressBar(-1)
}
@@ -531,7 +532,7 @@ function startUpdates() {
const debArch = { x64: 'amd64', arm64: 'arm64' }[process.arch] ?? process.arch
return watchReleases({
current: app.getVersion(), arch: process.arch, feed, ask: throwaway ? undefined : (version) => downloadPrompt.prompt(version), open: url => electronShell.openExternal(url),
- asset: version => `DeepSeek-Bot-${version}-linux-${debArch}.deb`,
+ asset: version => `DS-Bot-${version}-linux-${debArch}.deb`,
})
}
if (process.platform === 'win32' || process.platform === 'linux') {
@@ -555,7 +556,7 @@ async function askRestartNow(version) {
// After a failed start, fail() installs the update itself.
if (failed) return false
const t = localeText(UPDATE_TEXT)
- const options = { type: 'info', title: 'DeepSeek Bot', message: t.ready(version), detail: t.readyDetail, buttons: [t.restart, t.later], defaultId: 0, cancelId: 1, noLink: true }
+ const options = { type: 'info', title: 'DS Bot', message: t.ready(version), detail: t.readyDetail, buttons: [t.restart, t.later], defaultId: 0, cancelId: 1, noLink: true }
const { response } = await (mainWindow ? dialog.showMessageBox(mainWindow, options) : dialog.showMessageBox(options))
return response === 0
}
@@ -563,7 +564,7 @@ async function askRestartNow(version) {
async function askDownloadNow(version) {
if (failed) return false
const t = localeText(UPDATE_TEXT)
- const options = { type: 'info', title: 'DeepSeek Bot', message: t.available(version), detail: t.availableDetail, buttons: [t.download, t.later], defaultId: 0, cancelId: 1, noLink: true }
+ const options = { type: 'info', title: 'DS Bot', message: t.available(version), detail: t.availableDetail, buttons: [t.download, t.later], defaultId: 0, cancelId: 1, noLink: true }
const { response } = await (mainWindow ? dialog.showMessageBox(mainWindow, options) : dialog.showMessageBox(options))
return response === 0
}
@@ -594,7 +595,7 @@ function createWindow() {
// The window never squeezes the chat: RAIL_WIDTH + MIN_CHAT from ds-bot's
// src/client/frame-layout.js is the avatar rail plus the smallest chat column.
width: 1320, height: 860, minWidth: 508, minHeight: 480,
- title: 'DeepSeek Bot', show: false, icon: iconFile,
+ title: 'DS Bot', show: false, icon: iconFile,
backgroundColor: mica ? '#00000000' : dark ? '#1b1b1c' : '#ffffff',
// Frameless as in DSH Desktop: the caption buttons overlay the page's band. They keep the
// sidebar's colors until the page sends the colors of the surface under them.
@@ -766,7 +767,7 @@ function setMenu() {
function assertWindow(event) {
const contents = mainWindow?.webContents
if (contents === undefined || event.sender !== contents || event.senderFrame !== contents.mainFrame
- || !event.senderFrame.url.startsWith(`${origin}/`)) throw new Error('DeepSeek Bot: rejected IPC from an unknown page')
+ || !event.senderFrame.url.startsWith(`${origin}/`)) throw new Error('DS Bot: rejected IPC from an unknown page')
}
function fromWindow(event) {
@@ -786,7 +787,7 @@ async function fail(error) {
const throwaway = Boolean(process.env.DS_BOT_HOME)
const t = localeText(UPDATE_TEXT)
const next = found ? `\n\n${found.page ? t.onFailurePage(found.version) : t.onFailure(found.version)}` : ''
- dialog.showErrorBox('DeepSeek Bot', `${text().notStarted}\n\n${error instanceof Error ? error.message : String(error)}${next}`)
+ dialog.showErrorBox('DS Bot', `${text().notStarted}\n\n${error instanceof Error ? error.message : String(error)}${next}`)
if (found?.page) {
if (!throwaway) await electronShell.openExternal(found.page)
app.quit()
diff --git a/app/src/preload.cjs b/app/src/preload.cjs
index 7868b061..72e37d74 100644
--- a/app/src/preload.cjs
+++ b/app/src/preload.cjs
@@ -38,13 +38,13 @@ function browserBridge() {
const viewListeners = new Set()
ipcRenderer.on('ds-bot:browser-view-changed', (_event, change) => {
for (const listener of [...viewListeners]) {
- try { listener(change) } catch (error) { console.error('DeepSeek Bot: a browser view listener failed', error) }
+ try { listener(change) } catch (error) { console.error('DS Bot: a browser view listener failed', error) }
}
})
ipcRenderer.on('ds-bot:browser-open-requested', (_event, request) => {
if (typeof request?.lease !== 'string' || typeof request.url !== 'string') return
for (const listener of [...(listeners.get(request.lease) ?? [])]) {
- try { listener(request.url) } catch (error) { console.error('DeepSeek Bot: a browser link handler failed', error) }
+ try { listener(request.url) } catch (error) { console.error('DS Bot: a browser link handler failed', error) }
}
})
return {
@@ -86,7 +86,7 @@ function updatesBridge() {
const listeners = new Set()
ipcRenderer.on('ds-bot:app-update-changed', (_event, state) => {
for (const listener of [...listeners]) {
- try { listener(state) } catch (error) { console.error('DeepSeek Bot: an update state handler failed', error) }
+ try { listener(state) } catch (error) { console.error('DS Bot: an update state handler failed', error) }
}
})
return {
diff --git a/app/src/profile.mjs b/app/src/profile.mjs
index 8a054640..7c62c81e 100644
--- a/app/src/profile.mjs
+++ b/app/src/profile.mjs
@@ -1,5 +1,6 @@
// The app's own DSH profile: its name, its bundles and its installation.
import { fileURLToPath } from 'node:url'
+import { LEGACY_ENGINE } from './legacy.mjs'
import { initProfile, loadProfileDirectory, readProfileManifest, resolveProfileDir, writeProfileBundles } from '@deepseek-ai/dsh-app-boot'
export const PROFILE = 'ds-bot'
@@ -11,7 +12,7 @@ export const BUNDLES = ['@deepseek-ai/dsh-base', '@deepseek-ai/dsh-web-app', '@d
export const CHECK_PROFILE = 'import-check'
export const CHECK_BUNDLES = ['@deepseek-ai/dsh-base', '@deepseek-ai/dsh-web-app']
// Bundles that earlier builds of the app put in its profile: the engine layer of its own window (../engine).
-const RETIRED_BUNDLES = ['deepseek-bot-engine']
+const RETIRED_BUNDLES = [LEGACY_ENGINE, 'dsbot-engine']
// The app's own manifest is the installation: DSH imports plugins only from the installation's dependency
// graph, resolves bundles there first, and keeps the bundles it names as direct dependencies from removal.
export const INSTALL_ANCHOR = fileURLToPath(new URL('../package.json', import.meta.url))
diff --git a/app/src/session-check.mjs b/app/src/session-check.mjs
index 395b104c..ca27c4ca 100644
--- a/app/src/session-check.mjs
+++ b/app/src/session-check.mjs
@@ -19,7 +19,7 @@ export async function unreadableSessions(persistence, ids) {
}
} catch (error) {
if (error?.name === 'SessionFormatUnsupportedError') unreadable.push(id)
- else console.warn(`DeepSeek Bot: could not read ${id} while checking the team: ${error instanceof Error ? error.message : String(error)}`)
+ else console.warn(`DS Bot: could not read ${id} while checking the team: ${error instanceof Error ? error.message : String(error)}`)
}
}
return unreadable
diff --git a/app/src/shell.mjs b/app/src/shell.mjs
index 1760f7a9..48da1880 100644
--- a/app/src/shell.mjs
+++ b/app/src/shell.mjs
@@ -7,21 +7,21 @@ import { createTray } from './tray.mjs'
export const SHELL_TEXT = {
en: {
- tooltip: 'DeepSeek Bot',
- open: 'Open DeepSeek Bot',
- quit: 'Quit DeepSeek Bot',
- notice: 'DeepSeek Bot keeps running in the system tray. Its Bots go on working while the window is closed.',
+ tooltip: 'DS Bot',
+ open: 'Open DS Bot',
+ quit: 'Quit DS Bot',
+ notice: 'DS Bot keeps running in the system tray. Its Bots go on working while the window is closed.',
noticeConfirm: 'OK',
- fallback: 'The system tray is not available, so DeepSeek Bot cannot stay in the background. Do you want to end it?',
+ fallback: 'The system tray is not available, so DS Bot cannot stay in the background. Do you want to end it?',
cancel: 'Cancel',
},
zh: {
- tooltip: 'DeepSeek Bot',
- open: '打开 DeepSeek Bot',
- quit: '退出 DeepSeek Bot',
- notice: 'DeepSeek Bot 会留在系统托盘里继续运行,关掉窗口时 Bot 们照常工作。',
+ tooltip: 'DS Bot',
+ open: '打开 DS Bot',
+ quit: '退出 DS Bot',
+ notice: 'DS Bot 会留在系统托盘里继续运行,关掉窗口时 Bot 们照常工作。',
noticeConfirm: '好',
- fallback: '系统托盘不可用,DeepSeek Bot 不能留在后台。要结束它吗?',
+ fallback: '系统托盘不可用,DS Bot 不能留在后台。要结束它吗?',
cancel: '取消',
},
}
@@ -138,7 +138,7 @@ export function createShell(options) {
} catch (error) {
// Without a tray the window stays where the user can reach it; the app never vanishes.
tray = undefined
- log.warn(`DeepSeek Bot: the system tray is not available: ${error instanceof Error ? error.message : String(error)}`)
+ log.warn(`DS Bot: the system tray is not available: ${error instanceof Error ? error.message : String(error)}`)
}
}
@@ -150,12 +150,12 @@ export function createShell(options) {
const t = text()
try {
const { response } = await options.fallback.show({
- type: 'question', title: 'DeepSeek Bot', message: t.fallback,
+ type: 'question', title: 'DS Bot', message: t.fallback,
buttons: [t.quit, t.cancel], defaultId: 1, cancelId: 1, noLink: true,
})
if (response === 0) { quit(); return }
} catch (error) {
- log.warn(`DeepSeek Bot: the fallback quit could not be asked: ${error instanceof Error ? error.message : String(error)}`)
+ log.warn(`DS Bot: the fallback quit could not be asked: ${error instanceof Error ? error.message : String(error)}`)
}
// The window stays in the task bar, where the user can reach it.
target.minimize()
diff --git a/app/src/tray.mjs b/app/src/tray.mjs
index e17caf44..46de7b20 100644
--- a/app/src/tray.mjs
+++ b/app/src/tray.mjs
@@ -35,7 +35,7 @@ export function createTray({ Tray, Menu, platform, image, tooltip, open, quit, l
dispose() {
if (disposed) return
disposed = true
- try { tray.destroy() } catch (error) { log.warn(`DeepSeek Bot: the tray icon did not go away: ${error instanceof Error ? error.message : String(error)}`) }
+ try { tray.destroy() } catch (error) { log.warn(`DS Bot: the tray icon did not go away: ${error instanceof Error ? error.message : String(error)}`) }
},
}
}
diff --git a/app/src/update-prompt.mjs b/app/src/update-prompt.mjs
index 3d0f38c9..82abc8b3 100644
--- a/app/src/update-prompt.mjs
+++ b/app/src/update-prompt.mjs
@@ -16,7 +16,7 @@ export function createDeferredPrompt({ ask, shown, onYes, log = console }) {
const prompt = async (version) => {
if (!shown()) {
waiting = version
- log.info(`DeepSeek Bot: the update ${version} waits for the window`)
+ log.info(`DS Bot: the update ${version} waits for the window`)
return false
}
return ask(version)
@@ -30,7 +30,7 @@ export function createDeferredPrompt({ ask, shown, onYes, log = console }) {
// to do the work itself.
if (await ask(version)) await onYes?.(version)
} catch (error) {
- log.error(`DeepSeek Bot: the update ${version} could not be asked: ${error instanceof Error ? error.message : String(error)}`)
+ log.error(`DS Bot: the update ${version} could not be asked: ${error instanceof Error ? error.message : String(error)}`)
}
}
return { prompt, flush, waiting: () => waiting }
diff --git a/app/src/updates.mjs b/app/src/updates.mjs
index d6960b22..9de999d7 100644
--- a/app/src/updates.mjs
+++ b/app/src/updates.mjs
@@ -3,24 +3,24 @@
export const UPDATE_TEXT = {
en: {
- ready: version => `DeepSeek Bot ${version} is ready to install.`,
+ ready: version => `DS Bot ${version} is ready to install.`,
readyDetail: 'Restart now to update, or it is installed the next time you quit.',
restart: 'Restart now', later: 'Later',
- onFailure: version => `DeepSeek Bot ${version} is installed when its download is done, and then DeepSeek Bot opens again.`,
- available: version => `DeepSeek Bot ${version} is available.`,
- availableDetail: 'This version cannot update itself. Download the new version from its release page, then replace DeepSeek Bot in Applications.',
+ onFailure: version => `DS Bot ${version} is installed when its download is done, and then DS Bot opens again.`,
+ available: version => `DS Bot ${version} is available.`,
+ availableDetail: 'This version cannot update itself. Download the new version from its release page, then replace DS Bot in Applications.',
download: 'Download',
- onFailurePage: version => `DeepSeek Bot ${version} is available. After this box, its download page opens.`,
+ onFailurePage: version => `DS Bot ${version} is available. After this box, its download page opens.`,
},
zh: {
- ready: version => `DeepSeek Bot ${version} 已经下载好。`,
+ ready: version => `DS Bot ${version} 已经下载好。`,
readyDetail: '现在重启就能更新;不重启的话,下次退出时安装。',
restart: '立即重启', later: '稍后',
- onFailure: version => `DeepSeek Bot ${version} 下载完会自动安装,然后重新打开。`,
- available: version => `DeepSeek Bot ${version} 已经发布。`,
- availableDetail: '这个版本不能自己更新。请到发布页下载新版,再用它替换「应用程序」里的 DeepSeek Bot。',
+ onFailure: version => `DS Bot ${version} 下载完会自动安装,然后重新打开。`,
+ available: version => `DS Bot ${version} 已经发布。`,
+ availableDetail: '这个版本不能自己更新。请到发布页下载新版,再用它替换「应用程序」里的 DS Bot。',
download: '下载',
- onFailurePage: version => `DeepSeek Bot ${version} 已经发布。关掉这个对话框后,会打开它的下载页面。`,
+ onFailurePage: version => `DS Bot ${version} 已经发布。关掉这个对话框后,会打开它的下载页面。`,
},
}
@@ -87,7 +87,7 @@ function stateHolder(log) {
set: (next) => {
state = next
for (const listener of [...listeners]) {
- try { listener(next) } catch (error) { log.error(`DeepSeek Bot: an update state listener failed: ${error instanceof Error ? error.message : String(error)}`) }
+ try { listener(next) } catch (error) { log.error(`DS Bot: an update state listener failed: ${error instanceof Error ? error.message : String(error)}`) }
}
},
subscribe: (listener) => {
@@ -100,7 +100,7 @@ function stateHolder(log) {
// `asset` names the release asset of this install (default: the macOS zip); a release without
// it does not count.
export function watchReleases({ current, arch, fetch = globalThis.fetch, ask, open, feed = RELEASES_URL, log = console, asset }) {
- const assetName = asset ?? (version => `DeepSeek-Bot-${version}-mac-${arch}.zip`)
+ const assetName = asset ?? (version => `DS-Bot-${version}-mac-${arch}.zip`)
let asked
let latest = Promise.resolve(null)
const holder = stateHolder(log)
@@ -109,16 +109,16 @@ export function watchReleases({ current, arch, fetch = globalThis.fetch, ask, op
latest = (async () => {
try {
const response = await fetch(feed, {
- headers: { accept: 'application/vnd.github+json', 'user-agent': `DeepSeek-Bot/${current}` },
+ headers: { accept: 'application/vnd.github+json', 'user-agent': `DS-Bot/${current}` },
})
if (!response.ok) {
- log.error(`DeepSeek Bot: update check failed: HTTP ${String(response.status)}`)
+ log.error(`DS Bot: update check failed: HTTP ${String(response.status)}`)
holder.set({ phase: 'failed' })
return null
}
const releases = await response.json()
if (!Array.isArray(releases)) {
- log.error('DeepSeek Bot: update check failed: releases response is not an array')
+ log.error('DS Bot: update check failed: releases response is not an array')
holder.set({ phase: 'failed' })
return null
}
@@ -132,7 +132,7 @@ export function watchReleases({ current, arch, fetch = globalThis.fetch, ask, op
if (!isNewer(version, current)) continue
if (!Array.isArray(release.assets) || !release.assets.some(entry => entry?.name === assetName(version))) continue
if (!isHttpsPage(release.html_url)) {
- log.error('DeepSeek Bot: update check failed: release page URL is not HTTPS')
+ log.error('DS Bot: update check failed: release page URL is not HTTPS')
continue
}
if (found === undefined || isNewer(version, found.version)) found = { version, page: release.html_url }
@@ -141,17 +141,17 @@ export function watchReleases({ current, arch, fetch = globalThis.fetch, ask, op
holder.set({ phase: 'current' })
return null
}
- log.info(`DeepSeek Bot: update ${found.version} available`)
+ log.info(`DS Bot: update ${found.version} available`)
if (ask !== undefined && asked !== found.version) {
asked = found.version
void Promise.resolve().then(() => ask(found.version))
.then(yes => (yes ? open(found.page) : undefined))
- .catch((error) => { log.error(`DeepSeek Bot: update ${found.version} not opened: ${error instanceof Error ? error.message : String(error)}`) })
+ .catch((error) => { log.error(`DS Bot: update ${found.version} not opened: ${error instanceof Error ? error.message : String(error)}`) })
}
holder.set({ phase: 'available', version: found.version, page: found.page })
return found
} catch (error) {
- log.error(`DeepSeek Bot: update check failed: ${error instanceof Error ? error.message : String(error)}`)
+ log.error(`DS Bot: update check failed: ${error instanceof Error ? error.message : String(error)}`)
holder.set({ phase: 'failed' })
return null
}
@@ -200,16 +200,16 @@ export function watchUpdates({ updater, beforeInstall, ask, feed, log = console
updater.on('update-not-available', () => { holder.set({ phase: 'current' }) })
updater.on('update-available', (info) => { holder.set({ phase: 'downloading', version: info?.version }) })
updater.on('update-downloaded', ({ version }) => {
- log.info(`DeepSeek Bot: update ${version} downloaded`)
+ log.info(`DS Bot: update ${version} downloaded`)
holder.set({ phase: 'downloaded', version })
if (ask === undefined || asked === version) return
asked = version
void ask(version).then(now => (now ? install() : undefined))
- .catch((error) => { log.error(`DeepSeek Bot: update ${version} not installed: ${error instanceof Error ? error.message : String(error)}`) })
+ .catch((error) => { log.error(`DS Bot: update ${version} not installed: ${error instanceof Error ? error.message : String(error)}`) })
})
// A downloaded update stays ready: a later failed check does not hide it.
updater.on('error', (error) => {
- log.error(`DeepSeek Bot: update failed: ${error instanceof Error ? error.message : String(error)}`)
+ log.error(`DS Bot: update failed: ${error instanceof Error ? error.message : String(error)}`)
if (holder.state().phase !== 'downloaded') holder.set({ phase: 'failed' })
})
let latest = Promise.resolve(null)
diff --git a/app/test/electron/lifecycle-main.mjs b/app/test/electron/lifecycle-main.mjs
index 51ba7af3..f90f07b3 100644
--- a/app/test/electron/lifecycle-main.mjs
+++ b/app/test/electron/lifecycle-main.mjs
@@ -32,7 +32,7 @@ const host = createServer((request, response) => {
}
if ((request.headers.cookie ?? '').includes(cookie)) {
response.writeHead(200, { 'content-type': 'text/html' })
- response.end('<!doctype html><title>DeepSeek Bot</title><h1 id="ready">ready</h1>')
+ response.end('<!doctype html><title>DS Bot</title><h1 id="ready">ready</h1>')
return
}
response.writeHead(401).end('unauthorized')
@@ -42,7 +42,7 @@ let mainWindow
const shell = createShell({
electron: { app, Menu, Tray, powerMonitor },
platform: process.platform,
- messages: () => ({ tooltip: 'DeepSeek Bot', open: 'Open DeepSeek Bot', quit: 'Quit DeepSeek Bot', notice: 'The app goes on.', noticeConfirm: 'OK' }),
+ messages: () => ({ tooltip: 'DS Bot', open: 'Open DS Bot', quit: 'Quit DS Bot', notice: 'The app goes on.', noticeConfirm: 'OK' }),
trayImage: () => {
const file = join(assets, process.platform === 'win32' ? 'tray.ico' : process.platform === 'darwin' ? 'trayTemplate.png' : 'tray.png')
const image = nativeImage.createFromPath(file)
diff --git a/app/test/helpers/fake-electron.mjs b/app/test/helpers/fake-electron.mjs
index c7f17c55..623278b9 100644
--- a/app/test/helpers/fake-electron.mjs
+++ b/app/test/helpers/fake-electron.mjs
@@ -13,7 +13,7 @@ export const paths = {
root,
userData: join(root, 'userData'),
downloads: join(root, 'downloads'),
- exe: join(root, 'DeepSeek Bot.exe'),
+ exe: join(root, 'DS Bot.exe'),
// The folder of the app itself: the Host's pnpm lives in it.
appPath: join(root, 'app'),
}
@@ -100,7 +100,7 @@ class FakeWebContents extends EventEmitter {
this.mainFrame = {}
this.isDestroyed = () => this.win.destroyed
this.getURL = () => this.win.url
- this.getTitle = () => 'DeepSeek Bot'
+ this.getTitle = () => 'DS Bot'
this.send = () => {}
this.setWindowOpenHandler = () => {}
this.insertCSS = async () => {}
@@ -112,12 +112,14 @@ class FakeWebContents extends EventEmitter {
class FakeApp extends EventEmitter {
constructor() {
super()
- this.name = 'DeepSeek Bot'
+ this.name = 'DS Bot'
this.getVersion = () => '0.2.2'
this.getLocale = () => 'en-US'
this.getPath = (name) => paths[name] ?? join(root, String(name))
this.getAppPath = () => paths.appPath
this.setPath = (name, value) => { state.paths[name] = value }
+ this.setName = (name) => { this.name = name }
+ this.setAppUserModelId = (id) => { state.appId = id }
// The app starts a tick later, so that a test has its say before the app begins.
this.whenReady = () => new Promise((done) => { setImmediate(done) })
this.requestSingleInstanceLock = () => true
diff --git a/app/test/import.test.mjs b/app/test/import.test.mjs
index 18fa9b0f..7f9527cb 100644
--- a/app/test/import.test.mjs
+++ b/app/test/import.test.mjs
@@ -76,7 +76,7 @@ function newHome(root) {
const to = join(root, 'ds-bot')
write(join(to, 'bot', 'state.json'), JSON.stringify({ version: 1, mainBotIds: [], bots: {}, rooms: {} }))
write(join(to, 'profiles', 'ds-bot', 'cordis.patch.yml'), '- id: llm-pi-ai\n config:\n providers: {}\n- id: webserver\n config:\n port: 0\n')
- const workspace = join(root, 'DeepSeek Bot')
+ const workspace = join(root, 'DS Bot')
write(join(workspace, 'kept.txt'), 'new kept')
return { to, workspace }
}
diff --git a/app/test/legacy-identity.test.mjs b/app/test/legacy-identity.test.mjs
new file mode 100644
index 00000000..cd877f80
--- /dev/null
+++ b/app/test/legacy-identity.test.mjs
@@ -0,0 +1,100 @@
+import assert from 'node:assert/strict'
+import { EventEmitter } from 'node:events'
+import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+import { spawnSync } from 'node:child_process'
+import { test } from 'node:test'
+import { parse } from 'yaml'
+import { UUID } from 'builder-util-runtime'
+import { APP_ID, configureIdentity, LEGACY_ARTIFACT_PREFIX, LEGACY_PRODUCT_NAME } from '../src/legacy.mjs'
+
+function fixture({ saved = [], packaged = true } = {}) {
+ const app = new EventEmitter()
+ const appData = join(tmpdir(), 'dsbot-identity-fixture')
+ const current = join(appData, 'DS Bot')
+ const legacy = join(appData, LEGACY_PRODUCT_NAME)
+ const paths = { appData, userData: current }
+ const names = []
+ Object.assign(app, {
+ isPackaged: packaged,
+ getPath: name => paths[name],
+ setPath: (name, value) => { paths[name] = value },
+ setName: name => names.push(name),
+ setAppUserModelId: id => { app.id = id },
+ })
+ const exists = path => saved.includes(path)
+ return { app, paths, names, current, legacy, exists }
+}
+
+for (const platform of ['win32', 'darwin', 'linux']) {
+ test(`${platform}: an existing installation keeps its shell data and encryption identity`, () => {
+ const f = fixture()
+ let created
+ const options = { env: {}, platform, mkdir: path => { created = path }, exists: path => path === f.legacy }
+ assert.deepEqual(configureIdentity(f.app, options), { userData: f.legacy, legacy: true })
+ assert.equal(f.paths.sessionData, f.legacy)
+ assert.equal(created, f.legacy)
+ if (platform === 'win32') {
+ assert.equal(f.app.id, APP_ID)
+ assert.deepEqual(f.names, [])
+ } else {
+ assert.deepEqual(f.names, [LEGACY_PRODUCT_NAME])
+ f.app.emit('ready')
+ assert.deepEqual(f.names, [LEGACY_PRODUCT_NAME, 'DS Bot'])
+ }
+ })
+}
+
+test('a fresh installation uses the new shell directory', () => {
+ const f = fixture()
+ assert.deepEqual(configureIdentity(f.app, { env: {}, platform: 'linux', mkdir: () => {}, exists: f.exists }), { userData: f.current, legacy: false })
+ assert.deepEqual(f.names, [])
+})
+
+test('an already configured new installation wins when both directories exist', () => {
+ const f = fixture()
+ const existing = [f.legacy, join(f.current, 'locations.json')]
+ assert.equal(configureIdentity(f.app, { env: {}, mkdir: () => {}, exists: path => existing.includes(path) }).userData, f.current)
+})
+
+test('an explicit shell directory never probes installed user data', () => {
+ const f = fixture()
+ const explicit = join(tmpdir(), 'dsbot-custom-shell')
+ assert.equal(configureIdentity(f.app, { env: { DS_BOT_SHELL_DATA: explicit }, mkdir: () => {}, exists: () => { throw new Error('must not probe') } }).userData, explicit)
+ assert.equal(f.paths.sessionData, explicit)
+})
+
+test('an isolated data run never probes an installed application', () => {
+ const f = fixture({ packaged: false })
+ assert.equal(configureIdentity(f.app, { env: { DS_BOT_HOME: '/tmp/dsbot-test-data' }, mkdir: () => {}, exists: () => { throw new Error('must not probe') } }).userData, f.current)
+})
+
+test('a source installation also keeps its existing shell data', () => {
+ const f = fixture({ packaged: false })
+ assert.equal(configureIdentity(f.app, { env: {}, mkdir: () => {}, exists: path => path === f.legacy }).userData, f.legacy)
+})
+
+for (const suffix of ['mac-arm64.zip', 'mac-x64.zip', 'linux-amd64.deb']) {
+ test(`old update clients receive the identical DS Bot payload: ${suffix}`, () => {
+ const root = mkdtempSync(join(tmpdir(), 'dsbot-release-alias-'))
+ try {
+ const source = join(root, `DS-Bot-1.2.3-${suffix}`)
+ const payload = Buffer.from('new DS Bot package')
+ writeFileSync(source, payload)
+ const result = spawnSync(process.execPath, ['scripts/legacy-release-assets.mjs', source], { cwd: new URL('../', import.meta.url), encoding: 'utf8' })
+ assert.equal(result.status, 0, result.stderr)
+ const alias = join(root, `${LEGACY_ARTIFACT_PREFIX}-1.2.3-${suffix}`)
+ assert.deepEqual(readFileSync(alias), payload)
+ assert.equal(existsSync(source), true)
+ } finally { rmSync(root, { recursive: true, force: true }) }
+ })
+}
+
+
+test('renaming the Windows application preserves the published installer GUID', () => {
+ const config = parse(readFileSync(new URL('../electron-builder.yml', import.meta.url), 'utf8'))
+ const published = UUID.v5('io.github.fei2411.deepseekbot', UUID.parse('50e065bc-3134-11e6-9bab-38c9862bdaf3'))
+ assert.equal(config.appId, APP_ID)
+ assert.equal(config.nsis.guid, published)
+})
diff --git a/app/test/main-menu-fallback.test.mjs b/app/test/main-menu-fallback.test.mjs
index 0b0ffefe..f5e0dc49 100644
--- a/app/test/main-menu-fallback.test.mjs
+++ b/app/test/main-menu-fallback.test.mjs
@@ -22,7 +22,7 @@ test('the application menu of macOS carries a Quit when there is no tray', async
assert.equal(state.tray, undefined, 'there is no tray')
const items = state.menus.at(-1).template[0].submenu
const quit = items.at(-1)
- assert.equal(quit.label, 'Quit DeepSeek Bot', 'the menu ends the app')
+ assert.equal(quit.label, 'Quit DS Bot', 'the menu ends the app')
assert.equal(typeof quit.click, 'function', 'the entry works')
quit.click()
await waitFor(() => state.quits > 0, 'end the app')
diff --git a/app/test/main-menu.test.mjs b/app/test/main-menu.test.mjs
index 7cd2fc6e..fa583d0e 100644
--- a/app/test/main-menu.test.mjs
+++ b/app/test/main-menu.test.mjs
@@ -18,10 +18,10 @@ test('the application menu of macOS has no Quit', async () => {
await waitFor(() => state.tray !== undefined, 'build the tray')
const menu = state.menus.at(-1).template
const items = menu[0].submenu
- assert.equal(menu[0].label, 'DeepSeek Bot', 'the menu of the app')
+ assert.equal(menu[0].label, 'DS Bot', 'the menu of the app')
assert.equal(items.some(item => item.role === 'quit'), false, 'no Quit of its own')
assert.equal(items.some(item => item.accelerator === 'CmdOrCtrl+Q' || item.accelerator === 'Command+Q'), false, 'no shortcut for it')
- assert.equal(items.some(item => item.label === 'Quit DeepSeek Bot'), false, 'no entry for it')
+ assert.equal(items.some(item => item.label === 'Quit DS Bot'), false, 'no entry for it')
// The menu keeps the rest of macOS: about, services and the hiding of the app.
const roles = items.map(item => item.role).filter(Boolean)
for (const role of ['about', 'services', 'hide', 'hideOthers', 'unhide']) assert.ok(roles.includes(role), `the menu keeps ${role}`)
diff --git a/app/test/main.test.mjs b/app/test/main.test.mjs
index db2cdf9d..a10bd8bf 100644
--- a/app/test/main.test.mjs
+++ b/app/test/main.test.mjs
@@ -15,7 +15,7 @@ before(async () => { await startApp() })
test('the app starts with a window and a tray', async () => {
await waitFor(() => state.windows.length > 0, 'open the window')
await waitFor(() => state.tray !== undefined, 'build the tray')
- assert.equal(state.tray.tooltip, 'DeepSeek Bot')
+ assert.equal(state.tray.tooltip, 'DS Bot')
assert.equal(state.quits, 0, 'the app goes on')
})
diff --git a/app/test/move-data.test.mjs b/app/test/move-data.test.mjs
index 88a3b78d..a0031bdc 100644
--- a/app/test/move-data.test.mjs
+++ b/app/test/move-data.test.mjs
@@ -60,8 +60,8 @@ test('the new data location is an empty or new folder apart from the data, the t
})
test('the program folder is the whole app bundle on macOS', () => {
- assert.equal(installFolder('/Applications/DeepSeek Bot.app/Contents/MacOS/DeepSeek Bot', 'darwin'), '/Applications/DeepSeek Bot.app')
- assert.equal(installFolder(join('C:', 'Programs', 'DeepSeek Bot', 'DeepSeek Bot.exe'), 'win32'), join('C:', 'Programs', 'DeepSeek Bot'))
+ assert.equal(installFolder('/Applications/DS Bot.app/Contents/MacOS/DS Bot', 'darwin'), '/Applications/DS Bot.app')
+ assert.equal(installFolder(join('C:', 'Programs', 'DS Bot', 'DS Bot.exe'), 'win32'), join('C:', 'Programs', 'DS Bot'))
})
test('the data is copied whole, without the lock and the temporary folders, and the old folder stays', async (t) => {
diff --git a/app/test/profile.test.mjs b/app/test/profile.test.mjs
index 6c977423..8a884a2c 100644
--- a/app/test/profile.test.mjs
+++ b/app/test/profile.test.mjs
@@ -1,3 +1,4 @@
+import { LEGACY_ENGINE } from '../src/legacy.mjs'
import assert from 'node:assert/strict'
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
@@ -50,7 +51,7 @@ describe('claimBundles', () => {
const read = () => JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8'))
test('puts the app bundles first, keeps the user bundles and drops the retired ones', () => {
- write(['@deepseek-ai/dsh-base', 'deepseek-bot-engine', 'ds-bot', 'a-plugin'])
+ write(['@deepseek-ai/dsh-base', LEGACY_ENGINE, 'dsbot-engine', 'ds-bot', 'a-plugin'])
claimBundles(dir)
assert.deepEqual(read().dsh.profile.bundles, [...BUNDLES, 'a-plugin'])
assert.deepEqual(read().dependencies, { 'a-plugin': '1.0.0' })
diff --git a/app/test/shell.test.mjs b/app/test/shell.test.mjs
index aae8baad..f70e28b5 100644
--- a/app/test/shell.test.mjs
+++ b/app/test/shell.test.mjs
@@ -62,7 +62,7 @@ function harness({ platform = 'win32', trayFails = false, busy = false, ready =
},
platform,
messages: () => ({
- tooltip: 'DeepSeek Bot', open: 'Open', quit: 'Quit', notice: 'The app goes on.', noticeConfirm: 'OK',
+ tooltip: 'DS Bot', open: 'Open', quit: 'Quit', notice: 'The app goes on.', noticeConfirm: 'OK',
fallback: 'The system tray is not available, so the app cannot stay in the background. Do you want to end it?', cancel: 'Cancel',
}),
trayImage: () => {
diff --git a/app/test/tray.test.mjs b/app/test/tray.test.mjs
index bedc58b8..16b65b58 100644
--- a/app/test/tray.test.mjs
+++ b/app/test/tray.test.mjs
@@ -16,7 +16,7 @@ function harness({ platform = 'win32' } = {}) {
}
const calls = { open: 0, quit: 0 }
const tray = createTray({
- Tray, Menu, platform, image: { empty: false }, tooltip: 'DeepSeek Bot',
+ Tray, Menu, platform, image: { empty: false }, tooltip: 'DS Bot',
open: { label: 'Open', run: () => { calls.open += 1 } },
quit: { label: 'Quit', run: () => { calls.quit += 1 } },
log: { warn: () => {} },
@@ -28,7 +28,7 @@ describe('the tray', () => {
test('the icon carries the tooltip and a menu with Open and Quit', () => {
const app = harness()
assert.equal(app.trays.length, 1)
- assert.equal(app.trays[0].tooltip, 'DeepSeek Bot')
+ assert.equal(app.trays[0].tooltip, 'DS Bot')
assert.deepEqual(app.menus[0].map(item => item.label ?? 'separator'), ['Open', 'separator', 'Quit'])
})
diff --git a/app/test/updates.test.mjs b/app/test/updates.test.mjs
index 6aa47e87..1b2d8dab 100644
--- a/app/test/updates.test.mjs
+++ b/app/test/updates.test.mjs
@@ -45,7 +45,7 @@ const release = (version, options = {}) => {
html_url: options.page ?? `https://github.com/Fei2411/DS-Bot/releases/tag/v${version}`,
draft: options.draft ?? false,
prerelease: options.prerelease ?? false,
- assets: options.assets ?? [{ name: `DeepSeek-Bot-${version}-mac-${arch}.zip` }],
+ assets: options.assets ?? [{ name: `DS-Bot-${version}-mac-${arch}.zip` }],
}
}
@@ -85,7 +85,7 @@ describe('watchReleases', () => {
assert.equal(await updates.latest(), null)
assert.deepEqual(calls[0], {
url: RELEASES_URL,
- options: { headers: { accept: 'application/vnd.github+json', 'user-agent': 'DeepSeek-Bot/0.1.7' } },
+ options: { headers: { accept: 'application/vnd.github+json', 'user-agent': 'DS-Bot/0.1.7' } },
})
const feed = 'http://127.0.0.1:8080/'
@@ -168,10 +168,10 @@ describe('watchReleases', () => {
test('logs failed requests, invalid JSON, and non-HTTPS release pages without throwing', async (t) => {
const cases = [
- [async () => releaseResponse({}, 403), 'DeepSeek Bot: update check failed: HTTP 403'],
- [async () => { throw new Error('offline') }, 'DeepSeek Bot: update check failed: offline'],
- [async () => ({ ok: true, status: 200, json: async () => { throw new Error('bad JSON') } }), 'DeepSeek Bot: update check failed: bad JSON'],
- [async () => releaseResponse([release('0.1.9', { page: 'http://github.com/Fei2411/DS-Bot' })]), 'DeepSeek Bot: update check failed: release page URL is not HTTPS'],
+ [async () => releaseResponse({}, 403), 'DS Bot: update check failed: HTTP 403'],
+ [async () => { throw new Error('offline') }, 'DS Bot: update check failed: offline'],
+ [async () => ({ ok: true, status: 200, json: async () => { throw new Error('bad JSON') } }), 'DS Bot: update check failed: bad JSON'],
+ [async () => releaseResponse([release('0.1.9', { page: 'http://github.com/Fei2411/DS-Bot' })]), 'DS Bot: update check failed: release page URL is not HTTPS'],
]
for (const [fetch, message] of cases) {
const log = quietLog()
@@ -189,7 +189,7 @@ describe('watchReleases', () => {
})
t.after(updates.stop)
assert.equal(await updates.latest(), null)
- assert.deepEqual(log.lines, ['DeepSeek Bot: update check failed: releases response is not an array'])
+ assert.deepEqual(log.lines, ['DS Bot: update check failed: releases response is not an array'])
})
test('waits for the matching-architecture zip before asking', async (t) => {
@@ -221,7 +221,7 @@ describe('watchReleases', () => {
test('a given asset replaces the mac zip: the deb of a Linux install', async (t) => {
const page = 'https://github.com/Fei2411/DS-Bot/releases/tag/v0.1.9'
// The deb's file name uses the Debian architecture (x64 → amd64).
- const deb = version => `DeepSeek-Bot-${version}-linux-amd64.deb`
+ const deb = version => `DS-Bot-${version}-linux-amd64.deb`
// A release with only the mac zip does not count for a deb install.
const misses = watchReleases({
current: '0.1.7', arch: 'x64', asset: deb,
@@ -232,7 +232,7 @@ describe('watchReleases', () => {
const hits = watchReleases({
current: '0.1.7', arch: 'x64', asset: deb,
- fetch: async () => releaseResponse([release('0.1.9', { page, assets: [{ name: 'DeepSeek-Bot-0.1.9-linux-amd64.deb' }] })]),
+ fetch: async () => releaseResponse([release('0.1.9', { page, assets: [{ name: 'DS-Bot-0.1.9-linux-amd64.deb' }] })]),
log: quietLog(),
})
t.after(hits.stop)
@@ -296,7 +296,7 @@ describe('watchReleases', () => {
t.after(updates.stop)
await updates.latest()
await sleep(20)
- assert.deepEqual(log.lines, ['DeepSeek Bot: update 0.1.9 available', 'DeepSeek Bot: update 0.1.9 not opened: dialog failed'])
+ assert.deepEqual(log.lines, ['DS Bot: update 0.1.9 available', 'DS Bot: update 0.1.9 not opened: dialog failed'])
assert.deepEqual(unhandled, [])
})
@@ -433,7 +433,7 @@ describe('watchUpdates', () => {
await sleep(20)
assert.deepEqual(updater.installs, [])
assert.equal(stopped, false)
- assert.deepEqual(log.lines, ['DeepSeek Bot: update 0.1.9 downloaded'])
+ assert.deepEqual(log.lines, ['DS Bot: update 0.1.9 downloaded'])
}
})
@@ -444,7 +444,7 @@ describe('watchUpdates', () => {
const updates = watchUpdates({ updater, beforeInstall: async () => {}, log })
t.after(updates.stop)
assert.equal(await updates.latest(), null)
- assert.deepEqual(log.lines, ['DeepSeek Bot: update failed: offline'])
+ assert.deepEqual(log.lines, ['DS Bot: update failed: offline'])
})
test('tells what the newest check found and whether its download finished', async (t) => {
diff --git a/app/ui/index.html b/app/ui/index.html
index add4e574..5b76c400 100644
--- a/app/ui/index.html
+++ b/app/ui/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; connect-src 'self'">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>DeepSeek Bot</title>
+<title>DS Bot</title>
</head>
<body>
<div id="root"></div>
diff --git a/docs/dev/release-checklist.md b/docs/dev/release-checklist.md
index 4e5b1618..72693ff7 100644
--- a/docs/dev/release-checklist.md
+++ b/docs/dev/release-checklist.md
@@ -9,7 +9,7 @@ CI 只跑单元测试和 Linux 上的测试台。窗口外框、输入法、高
- Windows 10 / 11 x64,或 macOS(Apple 芯片)。
- 官方的 DSH Desktop,版本和 README 里写的一致(现在是 `0.2.1-rc.4`)。只从 DeepSeek Harness 官方渠道下载。
- 要发的包:在 `ds-bot/` 里运行 `npm pack`,得到 `ds-bot-<版本>.tgz`。
-- 桌面应用的安装包:在 `app/` 里运行 `npm run dist`,得到 `app/dist-pack/DeepSeek-Bot-<版本>-win-x64.exe`。`app/package.json` 和 `ds-bot/package.json` 的版本号要一样。
+- 桌面应用的安装包:在 `app/` 里运行 `npm run dist`,得到 `app/dist-pack/DS-Bot-<版本>-win-x64.exe`。`app/package.json` 和 `ds-bot/package.json` 的版本号要一样。
- 也可以用发版工作流的试运行:在 GitHub 的 Actions 里选 Release → Run workflow,勾着 dry run 运行。跑完后在这次运行的页面下载 Windows 安装包和两个 Mac 的 zip(保留 7 天)。它们和 Release 里的文件在同样的 runner 上、用同样的方法打包,不发布任何东西。
- 一个能用的模型(DeepSeek API key 或账号)。测试里要填的密钥都用**假值**。
- 想保留现有数据,先备份数据目录:Windows 是 `C:\Users\<用户名>\.dsh\`,macOS 是 `~/.dsh/`。最好用一台没有自己团队数据的机器或账户来测。
@@ -145,9 +145,9 @@ DSH Desktop 和桌面应用各做一遍。
| # | 步骤 | 期望 | 结果 |
|---|---|---|---|
-| 12.1 | 运行安装包,选安装位置,安装 | 不要管理员权限;只装给当前用户;开始菜单里有 DeepSeek Bot | |
+| 12.1 | 运行安装包,选安装位置,安装 | 不要管理员权限;只装给当前用户;开始菜单里有 DS Bot | |
| 12.2 | 第一次打开:选数据位置和总工作区;有 DSH 团队时选复制 | 团队、对话、模型设置都在;DSH 里原来的团队不变 | |
-| 12.3 | 给一个 Bot 发消息;再打开设置 → 关于 DS Bot | 收到回复;DS Bot 一行写「随 DeepSeek Bot 应用一起更新。」 | |
+| 12.3 | 给一个 Bot 发消息;再打开设置 → 关于 DS Bot | 收到回复;DS Bot 一行写「随 DS Bot 应用一起更新。」 | |
| 12.4 | 看窗口:拖标题栏,双击标题栏,点最小化、最大化、关闭;切换浅色和深色 | 没有系统边框;拖得动,双击会最大化,最大化后顶部没有缝;三个按钮都能用,底色和下面的界面一样;Windows 11 上侧栏透出 Mica,Windows 10 上标题栏和侧栏同色 | |
| 12.5 | 按 `Ctrl+Alt+B` | 侧栏收起,再按一次展开 | |
| 12.6 | 设置 → 通用 →「位置」:把总工作区换到另一个文件夹,给 Bot 发消息;再把数据位置换到一个空文件夹 | 总工作区换完,Bot 的下一轮在新文件夹里;数据复制完 App 自己重启,团队和对话都在,「位置」里是新的数据位置,旧文件夹还在 | |
@@ -161,8 +161,8 @@ DSH Desktop 和桌面应用各做一遍。
| # | 步骤 | 期望 | 结果 |
|---|---|---|---|
| 13.1 | 发布 Release,等工作流传完文件 | Release 里有 arm64 和 x64 两个 zip | |
-| 13.2 | 用 Safari 从 Release 页下载这台 Mac 的 zip(Safari 会自动解压),把 DeepSeek Bot 拖到「应用程序」,第一次打开 | Gatekeeper 拦下,不说「已损坏」;到「系统设置 → 隐私与安全性」点「仍要打开」后能打开 | |
-| 13.3 | 第一次打开:选数据位置和总工作区;有 DSH 团队时选复制;给一个 Bot 发消息 | 团队、对话、模型设置都在;收到回复;关于页写「随 DeepSeek Bot 应用一起更新。」 | |
+| 13.2 | 用 Safari 从 Release 页下载这台 Mac 的 zip(Safari 会自动解压),把 DS Bot 拖到「应用程序」,第一次打开 | Gatekeeper 拦下,不说「已损坏」;到「系统设置 → 隐私与安全性」点「仍要打开」后能打开 | |
+| 13.3 | 第一次打开:选数据位置和总工作区;有 DSH 团队时选复制;给一个 Bot 发消息 | 团队、对话、模型设置都在;收到回复;关于页写「随 DS Bot 应用一起更新。」 | |
| 13.4 | 设置 → 通用 →「位置」:把总工作区换到另一个文件夹,给 Bot 发消息;再把数据位置换到一个空文件夹 | 总工作区换完,Bot 的下一轮在新文件夹里;数据复制完 App 自己重启,团队和对话都在,「位置」里是新的数据位置,旧文件夹还在 | |
| 13.5 | 关闭窗口 | 应用退出,Dock 里不留着 | |
| 13.6 | 装上一个发布版本的 App 并打开,等新版提示后点「下载」 | 打开这次 Release 的发布页;应用不自己安装新版 | |
diff --git a/docs/plans/2026-10-16-desktop-app.md b/docs/plans/2026-10-16-desktop-app.md
index b7b8a7b3..19b776dc 100644
--- a/docs/plans/2026-10-16-desktop-app.md
+++ b/docs/plans/2026-10-16-desktop-app.md
@@ -36,7 +36,7 @@
### 托盘和退出
-- Windows、macOS、Linux 都有常驻的系统托盘图标,图标是应用自己的鲸鱼。托盘菜单是「打开 DeepSeek Bot」和「退出 DeepSeek Bot」。
+- Windows、macOS、Linux 都有常驻的系统托盘图标,图标是应用自己的鲸鱼。托盘菜单是「打开 DS Bot」和「退出 DS Bot」。
- 关掉窗口不是退出:窗口藏起来,引擎和 Bot 照常工作,Bot 浏览器的标签页也还在。再打开一次应用,窗口回到桌面上(单实例锁把第二次启动交给已经在跑的那一个)。
- 窗口真的不在了的时候(渲染进程没了之类),托盘的「打开」重新建一个窗口,接着现在跑着的引擎:地址还是引擎的本机地址,第一次加载换来的 cookie 还在,不用启动第二个引擎,也不用再用一次启动用的令牌。
- 所有窗口都关掉不会退出应用。托盘里的「退出」是唯一的正常退出入口。
@@ -57,24 +57,24 @@
- 安装包锁定一个 DSH 版本,只跟 DSH 的 rc 版本,不跟 alpha 版本。现在是 0.2.1-rc.4。
- 锁定版要跟上 DSH Desktop 提供的 rc 版本:同一个会话格式版本里,新版 DSH 能写入旧版不认识、必须拒绝的记录,这样的对话导入后在应用里打不开。
-- DSH 的修复和新功能,跟着 DeepSeek Bot 的新版本一起到用户手里。
+- DSH 的修复和新功能,跟着 DS Bot 的新版本一起到用户手里。
### 数据
- 数据位置就是桌面应用的 `DSH_HOME`,默认 `~/.ds-bot`。profile、会话、团队数据、模型设置和密钥都在这里。
-- 壳自己的数据(窗口、浏览器存储)放在系统给应用的目录里。
+- 壳自己的数据(窗口、浏览器存储)放在系统给应用的目录里。新安装使用 DS Bot 目录;已有安装继续使用原目录和浏览器加密身份,保留登录、偏好、端口和已选位置,不搬动用户文件。
- 桌面应用不写用户 DSH 的 `~/.dsh`,导入时只读。
### 首次启动和导入
-- 首次启动分别选数据位置(默认 `~/.ds-bot`)和总工作区(默认 `~/DeepSeek Bot`),以后能在设置里改(见下面「改位置」)。两个位置不能一个在另一个里面,也不能在用户 DSH 的数据里。用的是系统对话框。
+- 首次启动分别选数据位置(默认 `~/.ds-bot`)和总工作区(默认 `~/DS Bot`),以后能在设置里改(见下面「改位置」)。两个位置不能一个在另一个里面,也不能在用户 DSH 的数据里。用的是系统对话框。
- 发现用户 DSH 里已有团队时,问要不要导入,只在首次启动问一次。导入复制 Bot、群、记忆、会话、附件、模型设置和密钥,旧位置一个字节都不改。导入以后两个团队各走各的,不同步。
- DSH 正在用这个团队时,请用户先关掉。
- 引擎先在新数据位置启动一次再复制,这样 DSH 不会把旧团队的文件夹当成自己的项目。
- 旧团队工作文件夹里的文件复制到新的总工作区,不覆盖已有的文件。
- 模型设置只取 profile 里模型的那几行(DeepSeek API 和账号、其他服务商、默认模型、预设)。几个 profile 都有时让用户选一份。DSH 里另外配的 MCP、技能和 DSH Agent 不导入。
- 导入后,每个 Bot 和群在下一个回合前换到新的一段(新工作文件夹),旧段只当历史读,照常能看、能搜。以后搬工作文件夹也一样。
-- 用户 DSH 写的会话格式比锁定版新时,停下来请用户先更新 DeepSeek Bot。
+- 用户 DSH 写的会话格式比锁定版新时,停下来请用户先更新 DS Bot。
- 复制之前,用锁定版把团队的每段对话读一遍:同一个格式版本里,新版 DSH 也能写入锁定版必须拒绝的记录。读的是数据位置里一份临时副本,用一个不带 `ds-bot` 的 DSH profile(只有 `dsh-base`、`dsh-web-app`),读完删掉。有新版 DSH 写的对话时,和格式版本新一样停下来,按钮是「退出 / 不带团队开始」;选退出的话,下次打开重新问位置和导入。文件损坏的对话不拦:用户自己的 DSH 也打不开它们。检查本身跑不起来时照常复制。
- 首次启动没走完就退出时什么都不记,下次打开从头再问:关掉欢迎框或选「退出」、在对话框开着时退出、复制途中关掉窗口都算。复制会停在安全的地方,不留下半个团队,下次能重新复制。
@@ -97,13 +97,13 @@
### 安装和更新
-- 应用标识(appId)是 `io.github.fei2411.deepseekbot`,以后不改:Windows 靠它认出这个应用和它的更新,macOS 用它当应用标识。
-- Windows(x64):安装向导,可以改程序位置,装完可以直接运行。只给当前用户安装:不问「为所有用户还是只为我」,不要管理员权限,默认装在 `%LOCALAPPDATA%\Programs\DeepSeek Bot`。卸载不删数据位置。
+- 应用标识(appId)是 `io.github.fei2411.dsbot`。Windows 安装器的 GUID 保持已发布版本的值,改程序名后仍覆盖原安装,并更新快捷方式和卸载入口。
+- Windows(x64):安装向导,可以改程序位置,装完可以直接运行。只给当前用户安装:不问「为所有用户还是只为我」,不要管理员权限,默认装在 `%LOCALAPPDATA%\Programs\DS Bot`。卸载不删数据位置。
- Windows 自动更新:后台下载,校验 sha512,下载完在窗口里提示重启以更新;不重启的话,下次退出时装上。
- 启动时查一次 GitHub 上最新的 Release,之后每 4 小时查一次。Release 里的 `latest.yml` 写着安装包的文件名和 sha512。
- 提示是窗口上的系统对话框:「立即重启」先停掉引擎再装;「稍后」等下次退出。
- 引擎起不来时也能更新:检查在引擎启动前开始(首次启动的导入之后)。启动失败时,错误框里说有新版本,关掉错误框后等下载完,装上并重新打开。
- - 应用里的 ds-bot 和 DSH 随应用一起更新:插件不自己查这两项的更新,关于页写「随 DeepSeek Bot 应用一起更新」。
+ - 应用里的 ds-bot 和 DSH 随应用一起更新:插件不自己查这两项的更新,关于页写「随 DS Bot 应用一起更新」。
- 发版:发布 Release 时,工作流打 Windows 安装包,把它、它的 `.blockmap` 和 `latest.yml` 传到 Release。应用和 ds-bot 用同一个版本号,Release 的标签就是这个版本号。
- macOS(Apple 芯片和 Intel):zip;不能自动更新,有新版时提示下载。不用 dmg:macOS 26 上下载的未签名 dmg 显示「已损坏」,打不开。
- 安装包带着锁定的 DSH 装上的全部文件,不按 profile 删减。
@@ -136,7 +136,7 @@
- 2026-10-17:Bot 详情要显示轮数、tok/s、缓存命中和上下文;DSH 的右侧栏和「经典 Agent 模式」暂时不做,PR #279。
- 2026-10-17:Bot 详情显示轮数、tok/s、缓存命中和上下文,PR #287。
- 2026-10-17:引擎的 profile 换成桌面应用自己的组合,不再加载 DSH 的网页前端,PR #291。
-- 2026-10-18:应用标识定为 `io.github.fei2411.deepseekbot`;Windows 只给当前用户安装,更新下载完提示重启;安装包不按 profile 删减 DSH 的文件,PR #303。
+- 2026-10-18:固定应用身份;Windows 只给当前用户安装,更新下载完提示重启;安装包不按 profile 删减 DSH 的文件,PR #303。
- 2026-10-18:设置里加「模型」页,服务商和 key 存在 DSH 里,PR #319。
- 2026-10-18:自己的界面先停下,窗口换回 DSH 的网页前端和系统标题栏;引擎的 profile 换回 `dsh-base`、`dsh-web-app`、`ds-bot`,PR #323。
- 2026-10-18:首次启动选两个位置、从用户 DSH 导入团队的细节,PR #324。
@@ -152,3 +152,5 @@
- 2026-10-20:窗口改为加载引擎的本机地址,不再用 `dsh-app://app`:DSH 的账号登录把页面地址当作浏览器登录完回来的地址,只接受本机 http 地址。DSH 打开的登录窗口交给系统浏览器,Issue #376。弹出对话框时标题栏一起变暗。
- 2026-10-23:应用里接上 Bot 浏览器:应用自己提供 webview 桥,每个 Bot 的登录存在壳自己的数据里,删掉 Bot 时一起清掉,Issue #449。
- 2026-10-25:关掉窗口只是藏起来,应用留在系统托盘;托盘的「打开」找回窗口,「退出」是唯一的正常退出入口,Issue #500。
+
+- 2026-11-01:程序、可执行文件和安装包统一使用 DS Bot / dsbot;保留已有安装、数据、浏览器加密身份和旧客户端更新入口的兼容。
diff --git a/docs/plans/2026-10-21-linux-app-package.md b/docs/plans/2026-10-21-linux-app-package.md
index 318cc1bd..f4873571 100644
--- a/docs/plans/2026-10-21-linux-app-package.md
+++ b/docs/plans/2026-10-21-linux-app-package.md
@@ -17,10 +17,12 @@
- 不选 Flatpak/Snap:应用要在宿主机跑 pnpm 装插件、用 node-pty 开真实终端、读 `~/.dsh` 导入团队,与沙箱直接冲突(`flatpak-spawn --host` 等于拆空沙箱;Snap 的 classic 限制要商店特批,非 Ubuntu 发行版也普遍抵触)。先例:IPFS Desktop 因 confinement 问题弃用 Snap,主推 AppImage。
- 已知坑写进 README:AppImage 需要 FUSE 2(Ubuntu 24.04+/Debian 13+ 装 `libfuse2t64`);Ubuntu 24.04+ 的 AppArmor 限制非特权 user namespace,会拦 AppImage 里的 Chromium 沙箱——deb 无此问题(post-install 设好 `chrome-sandbox`,electron-builder 26 起自动生成 AppArmor profile)。
- 只出 x64;arm64 留到有 `linux/arm64` 预编译链(node-pty 等)确认后的后续工作。
-- 二进制与菜单项名 `deepseek-bot`(`executableName`),deb 装进 `/opt/DeepSeek Bot`。
+- 二进制与菜单项名 `dsbot`(`executableName`),deb 装进 `/opt/DS Bot`。
## CI
- `test.yml` 加 `app-package-linux`:构建、xvfb 下 `check-packed`、deb 安装/检查/更新提醒/卸载、AppImage 自更新端到端(退出后文件 sha512 等于新版)。runner 上 `sysctl kernel.apparmor_restrict_unprivileged_userns=0` 并装 `libfuse2t64`(一次性的抛弃环境,安全代价可接受)。
- `release.yml` 加 `app-linux` job:把 AppImage(含 `.blockmap`)、deb 和 `latest-linux.yml` 挂到 release。
- `result` 汇总 job 的 `needs` 同步加 `app-package-linux`。
+
+- 2026-11-01:程序与包名改为 dsbot;deb 声明替换并冲突于旧包,安装新包时由包管理器移除旧程序,用户数据保留。
diff --git a/ds-bot/client.js b/ds-bot/client.js
index 9b175630..8168b9de 100644
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@ -297,7 +297,7 @@ var ZH = {
Rename: "重命名",
"Add instructions in Bot settings": "在 Bot 设置里添加说明",
"No scheduled tasks yet. To add one, tell the Bot in its chat what to do and when.": "还没有定时任务。要添加,在对话里告诉 Bot 做什么、什么时候做。",
- "The browser is in DSH Desktop and the DeepSeek Bot app.": "浏览器在 DSH 桌面版和 DeepSeek Bot 应用里。",
+ "The browser is in DSH Desktop and the DS Bot app.": "浏览器在 DSH 桌面版和 DS Bot 应用里。",
"New tab": "新标签页",
"Close tab": "关闭标签页",
"Open {title}": "打开 {title}",
@@ -975,7 +975,7 @@ var ZH = {
"{version} is available": "{version} 已发布",
"Installed from a local folder; update it there.": "从本地文件夹安装,请在那里更新。",
"Updates are not offered for this install.": "这种安装方式不提供更新。",
- "Updates come with the DeepSeek Bot app.": "随 DeepSeek Bot 应用一起更新。",
+ "Updates come with the DS Bot app.": "随 DS Bot 应用一起更新。",
Links: "链接",
"Source code": "源代码",
"Release notes": "发布说明",
@@ -16266,7 +16266,7 @@ function botHint(update) {
if (update.phase === "updated") return t("DS Bot {version} is installed.", { version: update.installed ?? update.latest });
if (update.phase === "failed") return t("The update did not finish: {reason}", { reason: hostText(update.error ?? "") });
if (update.available) return t("DS Bot {version} is available", { version: update.latest });
- if (update.source === "app") return t("Updates come with the DeepSeek Bot app.");
+ if (update.source === "app") return t("Updates come with the DS Bot app.");
if (update.enabled === false) return t("Update checks are off.");
if (update.source === "path") return t("Installed from a local folder; update it there.");
if (!update.checkedAt) return null;
@@ -17499,7 +17499,7 @@ function BrowserCards({ bot, sessionId, roster, actions, useBrowserTabs, useBrow
actions.browserEnsure?.(bot.id);
}, [bot.id]);
if (roster.browser !== true || !actions.browserShow) {
- return (0, import_react47.createElement)("div", { className: "bt-muted" }, t("The browser is in DSH Desktop and the DeepSeek Bot app."));
+ return (0, import_react47.createElement)("div", { className: "bt-muted" }, t("The browser is in DSH Desktop and the DS Bot app."));
}
if (state.ids.length === 0) {
return (0, import_react47.createElement)(
diff --git a/ds-bot/src/client/about.js b/ds-bot/src/client/about.js
index 6dc05e26..7f5d6dbd 100644
--- a/ds-bot/src/client/about.js
+++ b/ds-bot/src/client/about.js
@@ -21,7 +21,7 @@ function botHint(update) {
if (update.phase === 'updated') return t('DS Bot {version} is installed.', { version: update.installed ?? update.latest })
if (update.phase === 'failed') return t('The update did not finish: {reason}', { reason: hostText(update.error ?? '') })
if (update.available) return t('DS Bot {version} is available', { version: update.latest })
- if (update.source === 'app') return t('Updates come with the DeepSeek Bot app.')
+ if (update.source === 'app') return t('Updates come with the DS Bot app.')
if (update.enabled === false) return t('Update checks are off.')
if (update.source === 'path') return t('Installed from a local folder; update it there.')
if (!update.checkedAt) return null
diff --git a/ds-bot/src/client/details-drawer.js b/ds-bot/src/client/details-drawer.js
index 76c8c048..9c94bdb4 100644
--- a/ds-bot/src/client/details-drawer.js
+++ b/ds-bot/src/client/details-drawer.js
@@ -74,7 +74,7 @@ function BrowserCards({ bot, sessionId, roster, actions, useBrowserTabs, useBrow
const pages = useBrowserPages(map => map)
useEffect(() => { actions.browserEnsure?.(bot.id) }, [bot.id])
if (roster.browser !== true || !actions.browserShow) {
- return h('div', { className: 'bt-muted' }, t('The browser is in DSH Desktop and the DeepSeek Bot app.'))
+ return h('div', { className: 'bt-muted' }, t('The browser is in DSH Desktop and the DS Bot app.'))
}
if (state.ids.length === 0) {
return h('div', { className: 'bt-browser-empty-mark' },
diff --git a/ds-bot/src/client/i18n.js b/ds-bot/src/client/i18n.js
index 6b1a6162..c4c0dcbf 100644
--- a/ds-bot/src/client/i18n.js
+++ b/ds-bot/src/client/i18n.js
@@ -264,7 +264,7 @@ const ZH = {
Rename: '重命名',
'Add instructions in Bot settings': '在 Bot 设置里添加说明',
'No scheduled tasks yet. To add one, tell the Bot in its chat what to do and when.': '还没有定时任务。要添加,在对话里告诉 Bot 做什么、什么时候做。',
- 'The browser is in DSH Desktop and the DeepSeek Bot app.': '浏览器在 DSH 桌面版和 DeepSeek Bot 应用里。',
+ 'The browser is in DSH Desktop and the DS Bot app.': '浏览器在 DSH 桌面版和 DS Bot 应用里。',
'New tab': '新标签页',
'Close tab': '关闭标签页',
'Open {title}': '打开 {title}',
@@ -928,7 +928,7 @@ const ZH = {
'{version} is available': '{version} 已发布',
'Installed from a local folder; update it there.': '从本地文件夹安装,请在那里更新。',
'Updates are not offered for this install.': '这种安装方式不提供更新。',
- 'Updates come with the DeepSeek Bot app.': '随 DeepSeek Bot 应用一起更新。',
+ 'Updates come with the DS Bot app.': '随 DS Bot 应用一起更新。',
Links: '链接',
'Source code': '源代码',
'Release notes': '发布说明',
diff --git a/ds-bot/src/client/index.js b/ds-bot/src/client/index.js
index d0375368..db0d84be 100644
--- a/ds-bot/src/client/index.js
+++ b/ds-bot/src/client/index.js
@@ -268,7 +268,7 @@ export function apply(ctx) {
}, 'ds-bot: app update status')
}
- // The DeepSeek Bot app's own updater; its state goes beside the host's answer as ownApp,
+ // The DS Bot app's own updater; its state goes beside the host's answer as ownApp,
// which the About row turns into the app's update state and buttons.
const ownAppUpdates = globalThis.dsBotApp?.updates ?? null
if (ownAppUpdates?.state && ownAppUpdates.subscribe) {
diff --git a/ds-bot/src/host/browser.js b/ds-bot/src/host/browser.js
index b8f82beb..a2ebebbe 100644
--- a/ds-bot/src/host/browser.js
+++ b/ds-bot/src/host/browser.js
@@ -232,7 +232,7 @@ export function pageText(page, { from = 0, size = TEXT_PAGE, itemsMax = ITEMS_MA
return lines.join('\n')
}
-export const NO_BROWSER = 'Your browser panel is not open. It exists only in the desktop apps (DSH Desktop and DeepSeek Bot): ask the user to click your name at the top of your chat, open the browser from there, and load the page.'
+export const NO_BROWSER = 'Your browser panel is not open. It exists only in the desktop apps (DSH Desktop and DS Bot): ask the user to click your name at the top of your chat, open the browser from there, and load the page.'
export const NO_PAGE = 'Your browser panel has no page open yet. Ask the user to load the page there first.'
const OPEN_MAX = 64
diff --git a/ds-bot/test/about.test.js b/ds-bot/test/about.test.js
index 278c4339..3b748558 100644
--- a/ds-bot/test/about.test.js
+++ b/ds-bot/test/about.test.js
@@ -82,7 +82,7 @@ test('the six app update states set the DS Bot row\'s hint and button', () => {
test('without an app update state the row keeps today\'s text and no button', () => {
for (const ownApp of [undefined, null, 'checking', {}]) {
const view = page({ source: 'app', ownApp })
- assert.equal(view.hint, 'Updates come with the DeepSeek Bot app.')
+ assert.equal(view.hint, 'Updates come with the DS Bot app.')
assert.deepEqual(view.buttons, [])
}
})
diff --git a/ds-bot/test/blocking-question.test.js b/ds-bot/test/blocking-question.test.js
index ab789d8e..56c8b628 100644
--- a/ds-bot/test/blocking-question.test.js
+++ b/ds-bot/test/blocking-question.test.js
@@ -154,7 +154,7 @@ test('the guard refuses the blocking question tool in Bot Sessions only', async
assert.equal(guard('read', 'writer'), undefined)
})
-// FeiZhuLulu/DeepSeek-Bot#77: a new Bot told never to use a question tool was opened
+// FeiZhuLulu/DS-Bot#77: a new Bot told never to use a question tool was opened
// with "use ask_user", and a model that picked dsh's ask_user_question for it held the
// Bot until the card was answered, with other Bots' messages queued behind it.
test('a new Bot that rules out question tools opens without one and cannot block on dsh\'s', async (t) => {
diff --git a/ds-bot/test/memory.test.js b/ds-bot/test/memory.test.js
index a318d841..837f3cf1 100644
--- a/ds-bot/test/memory.test.js
+++ b/ds-bot/test/memory.test.js
@@ -49,7 +49,7 @@ test('a request names one entry by its text, or by a part only it has', () => {
test('keys are refused, while paths, names, and links are kept', () => {
for (const key of ['sk-' + 'abcdefghijklmnopqrstuv', 'ghp_abcdefghijklmnopqrstuvwxyz12', 'AKIA' + 'ABCDEFGHIJKLMNOP', 'token aB3dE5gH7jK9mN1pQ3sT5vW7yZ9bC1dE3f']) assert.equal(looksLikeKey(key), true, key)
- for (const fine of ['The repo is ~/repos/deepseek-bot/ds-bot/src/host', 'Doc: https://docs.example.com/d/aB3dE5gH7jK9mN1pQ3sT5vW7yZ9bC1dE3f/edit', 'Uses deepseek-v4-flash for drafts', '用户喜欢简短的回答']) assert.equal(looksLikeKey(fine), false, fine)
+ for (const fine of ['The repo is ~/repos/dsbot/ds-bot/src/host', 'Doc: https://docs.example.com/d/aB3dE5gH7jK9mN1pQ3sT5vW7yZ9bC1dE3f/edit', 'Uses deepseek-v4-flash for drafts', '用户喜欢简短的回答']) assert.equal(looksLikeKey(fine), false, fine)
// Passwords given as such, and ID or card numbers, are secrets too.
for (const secret of ['测试服务器的 root 密码是 hunter2-prod', 'The root password is hunter2', 'pwd: x', '身份证号 330106199001011234', 'card 6222 0212 3456 7890', 'the password for root is hunter2', 'The user\'s ATM PIN is 1234', 'passcode is 654321', '验证码是 123456', 'the CVV is 123', 'staging password remains hunter2', 'root 的密码还是 hunter2', 'the db password was changed to s3cret', 'card 6222-0212-3456-7890', 'Amex 3714-496353-98431', '身份证 330106-19900101-1234', 'I use hunter2 as my password', 'Use 654321 for the PIN', 'The user uses s3cret as the staging root password', '我的密码用 hunter2', '我用 hunter2 当密码', '用 abc123 作为服务器密码', 'I use correct horse battery staple as my password', 'Use six five four three two one for the PIN', '我用 correct horse battery staple 当密码', 'The user\'s SSN is 123-45-6789', 'passport number is A12345678', '护照号E12345678', 'driver\'s license D1234567']) assert.equal(looksSecret(secret), true, secret)
for (const fine of ['用户不想把密码存进记忆', 'Trip on 2026-11-15, back 2026-11-17', 'The user keeps passwords in a password manager, which is 1Password', '用户的密码管理器是 1Password', 'The user pins the sidebar', 'Pin the tab, it is handy', 'The user uses 1Password for passwords', 'Uses Bitwarden as the password manager', 'Use the PIN pad on the left', '密码用 1Password 管理', '密码不能告诉用户', '密码用于登录', '用 1Password 作为密码管理器', 'Uses Tab for the password field', 'The user uses Vim for editing and Rust for work', 'The user\'s passport expires 2027-05-01', 'Passport renewed 2026-11-15, flight 2026-11-17', 'ID card photo, call 138 0013 8000', '密码不能明文保存因为不安全', 'Off 2026-11-15 2026-11-17', '电话 138-0013-8000', '手机 138 0013 8000 是工作号', 'Issue https://x.test/a/1234567890123456789']) assert.equal(looksSecret(fine), false, fine)
diff --git a/ds-bot/test/update.test.js b/ds-bot/test/update.test.js
index 53118d9f..127c6e32 100644
--- a/ds-bot/test/update.test.js
+++ b/ds-bot/test/update.test.js
@@ -121,9 +121,9 @@ test('a versioned GitHub install follows the latest release tag and keeps its pa
test('a versioned GitHub install follows the release to the repository\'s current address', async () => {
const { rt, installs } = start({
- source: 'github:old-owner/DeepSeek-Bot#v0.1.0&path:/ds-bot',
+ source: 'github:old-owner/retired-dsbot#v0.1.0&path:/ds-bot',
answers: {
- 'https://api.github.com/repos/old-owner/DeepSeek-Bot/releases/latest': {
+ 'https://api.github.com/repos/old-owner/retired-dsbot/releases/latest': {
tag_name: 'v9.1.0',
html_url: 'https://github.com/Fei2411/DS-Bot/releases/tag/v9.1.0',
},
diff --git a/mobile/App.tsx b/mobile/App.tsx
index ec59281c..cceb1b0c 100644
--- a/mobile/App.tsx
+++ b/mobile/App.tsx
@@ -6,7 +6,7 @@ export default function App() {
const color = dark ? '#f2f2f2' : '#1a1a1a';
return (
<View style={[styles.screen, { backgroundColor: dark ? '#111' : '#fff' }]}>
- <Text style={[styles.title, { color }]}>DeepSeek Bot</Text>
+ <Text style={[styles.title, { color }]}>DS Bot</Text>
<Text style={[styles.hint, { color }]}>Pair with your computer to reach your Bot team.</Text>
<StatusBar style="auto" />
</View>
diff --git a/mobile/README.md b/mobile/README.md
index d9d4ebd6..4f796ee1 100644
--- a/mobile/README.md
+++ b/mobile/README.md
@@ -1,6 +1,6 @@
-# DeepSeek Bot mobile
+# DS Bot mobile
-The DeepSeek Bot app for iOS and Android. It controls the Bot team that runs on your computer; nothing runs on the phone. The design is in [docs/plans/2026-10-24-mobile-app.md](../docs/plans/2026-10-24-mobile-app.md).
+The DS Bot app for iOS and Android. It controls the Bot team that runs on your computer; nothing runs on the phone. The design is in [docs/plans/2026-10-24-mobile-app.md](../docs/plans/2026-10-24-mobile-app.md).
This is the first skeleton: it opens one screen and does not connect yet.
diff --git a/mobile/app.json b/mobile/app.json
index a1fb4e4b..a42d0f21 100644
--- a/mobile/app.json
+++ b/mobile/app.json
@@ -1,14 +1,14 @@
{
"expo": {
- "name": "DeepSeek Bot",
- "slug": "deepseek-bot",
+ "name": "DS Bot",
+ "slug": "dsbot",
"version": "0.1.0",
"orientation": "default",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
"ios": {
"supportsTablet": true,
- "bundleIdentifier": "io.github.fei2411.deepseekbot"
+ "bundleIdentifier": "io.github.fei2411.dsbot"
},
"android": {
"adaptiveIcon": {
@@ -18,7 +18,7 @@
"monochromeImage": "./assets/android-icon-monochrome.png"
},
"predictiveBackGestureEnabled": false,
- "package": "io.github.fei2411.deepseekbot"
+ "package": "io.github.fei2411.dsbot"
},
"scheme": "dsbot"
}
diff --git a/mobile/package-lock.json b/mobile/package-lock.json
index 67f85c38..61989713 100644
--- a/mobile/package-lock.json
+++ b/mobile/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "deepseek-bot-mobile",
+ "name": "dsbot-mobile",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "deepseek-bot-mobile",
+ "name": "dsbot-mobile",
"version": "0.1.0",
"license": "Apache-2.0",
"dependencies": {
diff --git a/mobile/package.json b/mobile/package.json
index 48702ac1..ea454330 100644
--- a/mobile/package.json
+++ b/mobile/package.json
@@ -1,5 +1,5 @@
{
- "name": "deepseek-bot-mobile",
+ "name": "dsbot-mobile",
"version": "0.1.0",
"main": "index.ts",
"dependencies": {
diff --git a/scripts/scan.mjs b/scripts/scan.mjs
index 3863e7f5..624703cc 100644
--- a/scripts/scan.mjs
+++ b/scripts/scan.mjs
@@ -26,7 +26,7 @@ const LOOK_FILES = /(^|\/)(src\/client\/(inks|characters|mark|themes|styles)\.js
const NOT_PUBLIC = /(^|[\s(`'"]|\.\.\/)(spec|research|backup|shots|attachments|workspace)\/|\.dsh-home/
// Migration code and its tests must name the legacy ids (old package name, old theme and
// color keys) to move saved data over; there, and on lines that say "legacy" (旧版), old names stay.
-const LEGACY_FILES = /(^|\/)(src\/client\/storage\.js|test\/legacy[\w-]*\.test\.js)$/
+const LEGACY_FILES = /(^|\/)(src\/client\/storage\.js|src\/legacy\.mjs|test\/legacy[\w-]*\.test\.(?:js|mjs))$/
const extra = extraPatterns()
@@ -56,6 +56,7 @@ const TEXT_RULES = [
{ id: 'third-party-logo', level: MUST, re: /WhaleLogo|favicon\.svg/g, notFiles: /(^|\/)test\// },
{ id: 'vendor-name', level: KEEP, re: new RegExp(VENDORS.source, 'gi'), notFiles: LOOK_FILES, summary: true },
// Former names of the project and the package.
+ { id: 'retired-product-name', level: MUST, re: /deepseek[-_ ]?bot/gi, legacyOk: true, notFiles: /^CHANGELOG(?:\.[a-z]+)?\.md$/ },
{ id: 'old-project-name', level: MUST, re: /DSH Bot\b/g, legacyOk: true },
{ id: 'old-package-name', level: MUST, re: /\bdsh-bot\b/g, legacyOk: true },
{ id: 'legacy-name-in-migration', level: KEEP, re: /\bdsh-bot\b|DeepSeek Bot\b/gi, onlyLegacy: true, summary: true },
diff --git a/start.ps1 b/start.ps1
index ba4485c3..dd11df3d 100644
--- a/start.ps1
+++ b/start.ps1
@@ -86,8 +86,8 @@ try {
[void][IO.Directory]::CreateDirectory($path)
}
Write-Host "Persistent data: $DataRoot"
- if ($PrepareOnly) { Write-Host 'Ready. Run start.ps1 to open DeepSeek Bot.'; return }
- Write-Host 'Starting DeepSeek Bot. Configure model providers in Settings; close the window to stop.'
+ if ($PrepareOnly) { Write-Host 'Ready. Run start.ps1 to open DS Bot.'; return }
+ Write-Host 'Starting DS Bot. Configure model providers in Settings; close the window to stop.'
Invoke-Npm $appDir @('start')
} finally {
foreach ($name in $envNames) {