The fork was pinned at upstream v0.18.0. That is the entire reason the window
ran TWO sidebars and TWO near-identical panel toggles: DSH 2.0.10 ships its own
right sidebar (@deepseek-ai/dsh-client-ui-sidebar-right), and upstream only
adopted it in v0.19.0-alpha.1 — which arrived after our fork point. v0.19.1 is
also the one upstream line whose support range actually matches our host
(engines.dsh >=0.1.5-rc.1, 14 DSH peers ^0.1.5-rc.1, host = 0.1.5-rc.2), so it
is the only tag the host's startup precheck accepts.
What upstream v0.18.0 → v0.19.1 brings
- src/client/native/{index,surface,tab-adapter}.tsx: every tab the plugin can
draw becomes an OFFICIAL native tab type + body, and an external plugin's
descriptor registered later gets its native type too. This is what retires
the fork's own right panel — and with it the duplicate toggle cluster
(`toggleCluster` is gone from v0.19.1).
- native tab-chip icons via the `sidebar.right.pane.tab.title` seat, coloured
built-in tab icons, file/folder glyphs from DSH's own `FileTypeIcon`.
- guide descriptions (DSH renders them while the guide lists <= 4 entries),
tab bodies that fill the panel, and the 0.1.5-rc.2 adaptation work we were
carrying by hand (peer/devDep pinning, primitives' transitive devDeps).
How the sync was done
Rebuilt the tree from the v0.19.1 tag rather than resolving 53 conflicted
files: our v0.18.0 delta was measured first and is only (a) one mechanical
rename `dsh-better-sidebar` -> `dsh-apes-sidebar` and (b) ten real edits. So:
tag tree + rename (scoped: code/config/scripts/tests/README, while the 46
historical docs/plans records and switch.sh's upstream package name stay
untouched) + re-applied deltas + our apes module.
Fork deltas re-applied on the new base
- src/client/apes/ (icons / locales / tabs): the three apes:* information-layer
tabs (agents / apps / profile), registered through the same BetterSidebarService
as the builtins — which is exactly why they now ride upstream's native adapter
into the official sidebar for free.
- identity: package.json (name/version 1.2.0/description/forkedFrom), dsh.plugin.json
(id/version), SIDEBAR_SERVICE_VERSION 1.2.0, README fork notice,
docs/external-plugin-guide.md.
- scripts/switch.sh + the pnpm switch* scripts (apes <-> upstream two-line switch).
- tests/apes-tabs.spec.ts (unescaped: it starts from the v0.19.1 base).
Dropped
- the Phase A native-registration spike (`apes/native-tabs.tsx` + its spec): it
re-derived by hand exactly what upstream's native layer already does — the
hand-written bridge is dead weight now, and v0.19.1's own e2e/jsdom lanes
cover the same seat contract far better.
- the unused apesProfileGuideDesc key and the two package.json.bak.* backups.
Verified on the new base: typecheck clean; build clean; 1351 passed / 9 skipped
(128 files), up from 1255 on the old base.
154 lines
7.8 KiB
TypeScript
154 lines
7.8 KiB
TypeScript
/**
|
|
* The built-in catalog of TAB-registration plugins (sidebar pages),
|
|
* shown in the "add tab plugin" modal (Side card settings → 侧边栏内容 grid
|
|
* → the dashed card). Adding an entry: append one object here (unique
|
|
* `id` = npm package name, `name` / `description` = i18n-friendly (add a
|
|
* `pluginXxxName` / `pluginXxxDesc` key in locales.ts), `url` = GitHub repo,
|
|
* `install` = the full one-line install script — it starts with `cd ~/.dsh`
|
|
* so the install runs with the DSH home as the working directory). Data
|
|
* integrity is guarded by `tests/plugin-list.spec.ts`.
|
|
*/
|
|
import { t } from './locales.ts'
|
|
import type { PluginEntry } from './plugins-shared.ts'
|
|
|
|
/** Tab-registration plugins (alphabetical order). */
|
|
export const builtinTabPlugins: readonly PluginEntry[] = [
|
|
{
|
|
id: '@dsh-external/dsh-sentinel',
|
|
name: () => t('pluginSentinelName'),
|
|
url: 'https://github.com/fuhefei/dsh-sentinel',
|
|
description: () => t('pluginSentinelDesc'),
|
|
// The official one-line bundle-channel install (git source, build
|
|
// artifacts committed — no build step needed). The `github:…` form is
|
|
// the upstream's documented command, `cd ~/.dsh` keeps the profile
|
|
// context consistent with the other entries.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add "github:fuhefei/dsh-sentinel#v0.7.0"',
|
|
},
|
|
{
|
|
id: '@dsh-external/ego-browser',
|
|
name: () => t('pluginEgoBrowserName'),
|
|
url: 'https://github.com/Fisfzy/ego-browser',
|
|
description: () => t('pluginEgoBrowserDesc'),
|
|
// Registers a sidebar tab for the agent browser; optional peer of
|
|
// better-sidebar (auto-tab when present, floating bubble when not).
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add git+https://github.com/Fisfzy/ego-browser.git',
|
|
},
|
|
{
|
|
id: 'dsh-better-overleaf',
|
|
name: () => t('pluginBetterOverleafName'),
|
|
url: 'https://github.com/Hoemr/dsh-better-overleaf',
|
|
description: () => t('pluginBetterOverleafDesc'),
|
|
// Published on npm; peer-depends on dsh-apes-sidebar (Overleaf tab),
|
|
// so the install line installs the prerequisite first.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-better-overleaf',
|
|
},
|
|
{
|
|
id: 'dsh-docs-panel',
|
|
name: () => t('pluginDocsPanelName'),
|
|
url: 'https://github.com/mlosun/dsh-docs-panel',
|
|
description: () => t('pluginDocsPanelDesc'),
|
|
// dsh-docs-panel hard-depends on dsh-apes-sidebar (required peer), so
|
|
// the install line installs the prerequisite first, then the plugin.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-docs-panel',
|
|
},
|
|
{
|
|
id: 'dsh-flowglass',
|
|
name: () => t('pluginFlowglassName'),
|
|
url: 'https://github.com/Iwctwbh/dsh-flowglass',
|
|
description: () => t('pluginFlowglassDesc'),
|
|
// Flowglass keeps its standalone drawer as a fallback and registers the
|
|
// native tab automatically when better-sidebar is present.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-flowglass',
|
|
},
|
|
{
|
|
id: 'dsh-git-forge',
|
|
name: () => t('pluginGitForgeName'),
|
|
url: 'https://github.com/thirsty5034/dsh-git-forge',
|
|
description: () => t('pluginGitForgeDesc'),
|
|
// Peer-depends on dsh-apes-sidebar (Git Forge tab). Install the
|
|
// prerequisite first; package is GitHub-sourced until npm publish.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add "dsh-git-forge@github:thirsty5034/dsh-git-forge"',
|
|
},
|
|
{
|
|
id: 'dsh-git-remotes',
|
|
name: () => t('pluginGitRemotesName'),
|
|
url: 'https://github.com/yq04/dsh-git-remotes',
|
|
description: () => t('pluginGitRemotesDesc'),
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add git+https://github.com/yq04/dsh-git-remotes.git',
|
|
},
|
|
{
|
|
id: 'dsh-github-workbench',
|
|
name: () => t('pluginGithubWorkbenchName'),
|
|
url: 'https://github.com/meyaomiao/dsh-github-workbench',
|
|
description: () => t('pluginGithubWorkbenchDesc'),
|
|
// Full GitHub workbench tab: remote repo tree + Issues/PRs/Actions tabs
|
|
// with write support (create/comment/merge/re-run). lib/ is committed,
|
|
// so the pinned github:-form install works without a local build.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add "github:meyaomiao/dsh-github-workbench#v0.1.0"',
|
|
},
|
|
{
|
|
id: 'dsh-sidebar-qa',
|
|
name: () => t('pluginSidebarQaName'),
|
|
url: 'https://github.com/ChenRuoT/dsh-sidebar-qa',
|
|
description: () => t('pluginSidebarQaDesc'),
|
|
// dsh-sidebar-qa hard-depends on dsh-apes-sidebar (required peer), so
|
|
// the install line installs the prerequisite first, then the plugin.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add git+https://github.com/ChenRuoT/dsh-sidebar-qa.git',
|
|
},
|
|
{
|
|
id: 'dsh-sidenote',
|
|
name: () => t('pluginSidenoteName'),
|
|
url: 'https://github.com/g-yixuan/dsh-sidenote',
|
|
description: () => t('pluginSidenoteDesc'),
|
|
// dsh-sidenote hard-depends on dsh-apes-sidebar (required peer), so
|
|
// the install line installs the prerequisite first, then the plugin.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-sidenote',
|
|
},
|
|
{
|
|
id: 'dsh-server-deck',
|
|
name: () => t('pluginServerDeckName'),
|
|
url: 'https://github.com/meyaomiao/DSH-server-deck',
|
|
description: () => t('pluginServerDeckDesc'),
|
|
// Published on npm; dual-mount like flowglass — registers the native
|
|
// "Servers" tab when better-sidebar is present, standalone drawer
|
|
// otherwise. Install the prerequisite first.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-server-deck@latest',
|
|
},
|
|
{
|
|
id: 'dsh-suhuang-scroll',
|
|
name: () => t('pluginSuhuangScrollName'),
|
|
url: 'https://github.com/YZDame/dsh-suhuang-scroll',
|
|
description: () => t('pluginSuhuangScrollDesc'),
|
|
// Suhuang Scroll is a DSH Web plugin whose runtime console registers in
|
|
// better-sidebar. Install the sidebar prerequisite before the npm package.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add dsh-suhuang-scroll',
|
|
},
|
|
{
|
|
id: 'dsh-ssh-tunnel',
|
|
name: () => t('pluginSshTunnelName'),
|
|
url: 'https://github.com/thirsty5034/dsh-ssh-tunnel',
|
|
description: () => t('pluginSshTunnelDesc'),
|
|
// Peer-depends on dsh-apes-sidebar (SSH Tunnel tab + center terminal/SFTP).
|
|
// Install the prerequisite first; package is GitHub-sourced until npm publish.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add "dsh-ssh-tunnel@github:thirsty5034/dsh-ssh-tunnel"',
|
|
},
|
|
{
|
|
id: 'dsh-turn-review',
|
|
name: () => t('pluginTurnReviewName'),
|
|
url: 'https://github.com/yq04/dsh-turn-review',
|
|
description: () => t('pluginTurnReviewDesc'),
|
|
// Needs dsh-apes-sidebar (optional peer) for the tab; no model tools.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add git+https://github.com/yq04/dsh-turn-review.git',
|
|
},
|
|
{
|
|
id: 'dsh-bilingual-reader',
|
|
name: () => t('pluginBilingualReaderName'),
|
|
url: 'https://github.com/Johnblur/dsh-bilingual-reader',
|
|
description: () => t('pluginBilingualReaderDesc'),
|
|
// Bilingual paper reading: a native-PDF tab with LLM selection translation,
|
|
// isolated from the main conversation context. Hard-depends on the
|
|
// better-sidebar tab service, so install the prerequisite first.
|
|
install: 'cd ~/.dsh && dsh plugin --profile web add dsh-apes-sidebar && dsh plugin --profile web add github:Johnblur/dsh-bilingual-reader',
|
|
},
|
|
]
|