From c381557a1eaab8a2c4f511ac507871bd68ad0e51 Mon Sep 17 00:00:00 2001 From: Fisfzy <132756998+Fisfzy@users.noreply.github.com> Date: Sun, 23 Aug 2026 01:24:20 +0800 Subject: [PATCH] feat(catalog): add ego-browser to built-in tab catalog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Register ego-browser as a recommended TAB plugin in the built-in catalog (Side card settings → 侧边栏内容 → add-tab modal). Entry follows the PluginEntry contract: unique id @dsh-external/ego-browser, GitHub URL, localized description (zh+en added to locales.ts), and an install script that starts at cd ~/.dsh and uses the dsh plugin CLI. The plugin registers a sidebar tab for the agent browser as an optional peer of better-sidebar (tab when present, floating bubble when not). --- src/client/locales.ts | 2 ++ src/client/plugins-tabs.ts | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/client/locales.ts b/src/client/locales.ts index e868552..d4e29df 100644 --- a/src/client/locales.ts +++ b/src/client/locales.ts @@ -337,6 +337,7 @@ export const zh = { pluginTurnReviewDesc: '对「刚刚这一回合」的 diff 做 Approve / Request changes 的人闸门:只审上一回合,不 fork 会话;文件按主会话/子代理/未归因分组,按文件勾选打回 + 可选评语,点文件先看回合开始快照 vs 现在的 diff。不是 /rewind', pluginVideoPreviewDesc: '在 better-sidebar 编辑器内联预览视频文件(.mp4/.webm/.mov/.mkv/.avi 等),自带支持 HTTP Range(206)的 /video 宿主路由,可拖动进度条、不受 20MB mediaLimit 限制', pluginDocsPanelDesc: 'DSH 侧边栏里的「全局文档」:全局 Markdown 笔记,任何工作区随时可读——列表点选阅读、悬浮大纲跳转、Chrome / VS Code 外部打开、代码复制,目录可配置(默认 ~/.dsh/docs)', + pluginEgoBrowserDesc: '把 CitroLabs/ego-lite 接进 DeepSeek Harness 的 agent 浏览器:32 个 ego_* 工具驱动真实 Chromium,侧边栏原生「ego 浏览器」Tab 实时观察 agent 逛的每个页面,可直接点击/拖拽/输入接管;装 better-sidebar 时自动注册 Tab,没装则退回浮动浮窗', } /** The en dictionary (key-set-equal to zh, enforced by the type annotation). */ @@ -667,6 +668,7 @@ export const en: Record = { pluginTurnReviewDesc: 'A human gate on the just-finished turn: Approve / Request changes per path with an optional comment; paths grouped by main session / subagent / unattributed; inline snapshot-vs-now diff before you decide. No fork, no /rewind', pluginVideoPreviewDesc: 'Inline video preview (.mp4/.webm/.mov/.mkv/.avi etc.) for the better-sidebar editor, backed by a dedicated /video host route with HTTP Range (206) support — scrubbing works and files are not capped by the 20MB mediaLimit', pluginDocsPanelDesc: 'Global docs in the DSH sidebar: read your own Markdown notes from any workspace — a file list, an outline, open in Chrome / VS Code, and copy buttons; the docs directory is configurable (default ~/.dsh/docs)', + pluginEgoBrowserDesc: 'The agent browser for DeepSeek Harness: 32 ego_* tools drive a real Chromium, with a native sidebar "ego browser" tab giving a live view of every page the agent visits — you can click, drag, and type to take over. Registers the tab automatically when better-sidebar is present, otherwise falls back to a floating bubble', } /** diff --git a/src/client/plugins-tabs.ts b/src/client/plugins-tabs.ts index a1747c4..4ff8bab 100644 --- a/src/client/plugins-tabs.ts +++ b/src/client/plugins-tabs.ts @@ -24,6 +24,15 @@ export const builtinTabPlugins: readonly PluginEntry[] = [ // 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: 'ego-browser Agent 浏览器', + 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-better-sidebar && dsh plugin --profile web add git+https://github.com/Fisfzy/ego-browser.git', + }, { id: 'dsh-docs-panel', name: 'dsh-docs-panel 全局文档',