# QQ-dsh bundle patch # # One insert row loads the bundle entry, which composes all four plugins. # Migration: remove the four standalone bundles (dsh-sansheng-liubu-mode / # dsh-sansheng-liubu-panel, dsh-brain, workspace-groups-remote, # dsh-better-chat) from the profile and add qq-dsh instead. Stored data is # kept: every component reads its own sidecars and settings namespaces. - insert: - id: qq-dsh name: 'qq-dsh' config: dshBrain: enabled: true baseUrl: https://your-memory-host/api/longmemory clientId: dsh-desktop skillsSyncEnabled: true workspaceGroupsRemote: {} # 自动覆盖 better-sidebar 的 shell 配置,指向本插件生成的 shell wrapper。 # wrapper 脚本在插件 apply() 时写入 ~/.dsh/remote-ssh/dsh-remote-shell[.cmd]: # - 远程工作区(cwd 含 .remote-ssh.json 且 keyPath 非空)→ ssh -tt 连远程 # - 本地工作区 → 照常启动本地 shell # 路径用 !!js 动态计算,适配不同平台和用户主目录。 - id: better-sidebar config: shell: !!js | (() => { var homedir = process.env.USERPROFILE || process.env.HOME || process.env.HOMEDRIVE + process.env.HOMEPATH; var isWin = process.platform === 'win32'; var sep = isWin ? '\\' : '/'; var dir = homedir + sep + '.dsh' + sep + 'remote-ssh'; return isWin ? dir + sep + 'dsh-remote-shell.cmd' : dir + sep + 'dsh-remote-shell'; })() # DSH 0.1.7-rc.2 起,侧边栏终端改由宿主原生的 `terminal-controller` # (@deepseek-ai/dsh-api-terminal-controller)管理,它只读自己的 `config.shell` # ({ path, name, args }),不再读 better-sidebar 的 shell 配置 —— 因此远程工作区 # 会静默打开本地 shell。这里把**同一个 wrapper** 也交给原生终端。 # 旧版 DSH 没有该 entry,patch 目标不存在时会被忽略(无害)。 - id: terminal-controller config: shell: !!js | (() => { var homedir = process.env.USERPROFILE || process.env.HOME || process.env.HOMEDRIVE + process.env.HOMEPATH; var isWin = process.platform === 'win32'; var sep = isWin ? '\\' : '/'; var dir = homedir + sep + '.dsh' + sep + 'remote-ssh'; return { path: isWin ? dir + sep + 'dsh-remote-shell.cmd' : dir + sep + 'dsh-remote-shell', name: 'Auto SSH / Local', args: [] }; })()