前言¶
DSH 的理念是「一切皆插件」,但 DSH Web 在窄屏下仍會保留桌面佈局:左側 rail 佔位,目錄與會話區共用橫向空間,手機上看起來比較侷促。
dsh-mobile-shell 是面向這個場景的外殼插件:窄屏(< 1024px)下隱藏左側 rail,目錄變爲側滑抽屜,會話區獨佔全寬。
這是什麼¶
一句話定位:dsh-mobile-shell 是 DeepSeek Harness Web 的移動端外殼插件,用於改善窄屏下的目錄、會話、設置面板和插件市場體驗。
當前已覈實資料中的版本爲 v0.1.8,許可證爲 MIT。倉庫地址爲:
https://github.com/Yui-Little/dsh-mobile-shell
安裝命令中的 owner 爲 Yui-Little;已覈實資料中未見獨立的維護者字段。
核心能力¶
窄屏佈局¶
插件在窄屏下調整 DSH Web 的佈局:
- 隱藏左側 rail
- 目錄變爲約 280px 的 overlay 側滑抽屜
- 會話區獨佔視口寬度
- 移動端狀態欄適配,避開攝像頭位置
- 會話頭部重排
設置面板與插件市場¶
設置面板改爲近全寬底部 sheet。
插件內還包含內置插件市場,支持:
- 分類篩選
- 按更新時間排序
- 按 Star 排序
- GitHub 風格 README 彈窗
- 一鍵安裝觸發
dsh plugin add - 安裝完成後自動熱加載
已覈實資料明確說明:市場內一鍵安裝不保證穩定成功,推薦複製倉庫鏈接後直接用 dsh 命令安裝。
會話狀態與推理參數¶
會話頭部新增 Status 標籤頁,展示:
- 輪數
- 步數
- 耗時
- TTFT
- 緩存命中
- token 用量
對於自定義 provider 模型,插件還添加 Reasoning Effort 配置,可選值爲:
off / low / high / xhigh / max
其他移動端增強¶
已覈實特性還包括:
- 聊天字號調節
- Enter 換行
- 附件摺疊
- 會話行三點菜單
- 中英雙語
寬屏下,該插件與未安裝時完全一致。
安裝與啓用¶
安裝命令:
dsh plugin --profile web add github:Yui-Little/dsh-mobile-shell
已覈實資料說明倉庫自帶構建產物,安裝後即熱加載生效,無需重啓。
本地開發可使用:
dsh plugin --profile web add link:/path/to/dsh-mobile-shell
構建與驗證¶
從源碼本地構建:
pnpm install
pnpm build
驗證:
pnpm verify
dsh --profile web --dump-config
pnpm verify 用於類型檢查;dsh --profile web --dump-config 應出現插件層。
典型用法¶
下面是已覈實用法中的可復現步驟:
1、安裝插件:
dsh plugin --profile web add github:Yui-Little/dsh-mobile-shell
2、在窄屏(< 1024px)下打開 DSH Web:
- 左側 rail 隱藏
- 目錄以側滑抽屜打開
- 會話區使用全寬
- 設置面板以底部 sheet 展示
3、在寬屏(≥ 1024px)下打開:
- 佈局與未安裝時一致
4、如果本地開發:
dsh plugin --profile web add link:/path/to/dsh-mobile-shell
pnpm install
pnpm build
pnpm verify
dsh --profile web --dump-config
適用場景與注意¶
適合:
- 在手機上使用 DSH Web
- 在窄屏瀏覽器中使用 DSH Web
- 希望目錄側滑、設置面板底部化、會話區全寬
- 希望看到會話狀態指標
- 希望爲自定義 provider 模型配置 Reasoning Effort
注意:
- 插件以當前
dsh進程權限運行,安裝前應檢查源碼與許可證 - 需要
:has()選擇器,已覈實兼容範圍爲 Chromium 105+ prefers-reduced-motion: reduce下自動禁用動畫- 市場內一鍵安裝不保證穩定成功,推薦用
dsh命令安裝 - 許可證爲 MIT
- 已覈實資料提到方案引用
mexiaosqwq/dsh-web-mobile(MIT)
鏈接¶
目錄頁 URL 未出現在已覈實資料中,因此不在此列出。
GitHub 倉庫:
https://github.com/Yui-Little/dsh-mobile-shell