前言¶
在 DeepSeek Harness(DSH)Web 客戶端中,如果要把某個會話變成可複製、可恢復的鏈接,需要讓瀏覽器地址欄攜帶會話 ID。dsh-session-deeplink 是用於這件事的 Web 客戶端插件。它通過 /?session=<id> 打開指定會話,並在切換會話時同步地址欄中的會話 ID。
這是什麼¶
dsh-session-deeplink 是 DeepSeek Harness Web 客戶端插件,用於通過 URL 直接訪問和分享 DSH 會話。它由 R3alloc 維護,許可證爲 MIT。
當前版本基於 DeepSeek Harness 0.1.0-rc.6 開發。DeepSeek Harness 目前仍處於開發者預覽階段,後續版本可能需要同步更新插件。
核心功能¶
下面列出已覈實的能力:
- 通過
/?session=<id>直接打開指定會話。 - 切換當前會話時,自動同步瀏覽器地址欄中的會話 ID。
- 保留 URL 中其他查詢參數和 fragment。
- 完全運行在瀏覽器端,不添加任何 host 服務。
安裝與啓用¶
日常安裝建議使用 npm 包,因爲 npm 包已經包含構建好的客戶端 bundle,不需要在安裝時執行構建代碼。
1、安裝到 web profile:
dsh plugin --profile web add dsh-session-deeplink
2、重啓 dsh web,然後打開任意會話。
3、瀏覽器地址會變爲:
http://127.0.0.1:3080/?session=session-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
只要該會話仍存在於 DSH 會話列表中,打開此 URL 就會恢復到同一會話。
從 GitHub 安裝¶
如果從 GitHub 安裝,可以使用:
dsh plugin --profile web add github:R3alloc/dsh-session-deeplink
pnpm 10 及以上版本可能要求先在對應 profile 的 pnpm-workspace.yaml 中明確授權構建,然後重新執行安裝命令:
allowBuilds:
dsh-session-deeplink: true
package.json 中可見的插件配置¶
從已覈實的 package.json 字段可以看到,該插件聲明爲 Web 客戶端插件,並指向 runtime 與 bundle patch:
{
"version": "0.1.1",
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"platform": "web",
"immediately": true,
"inject": [
"@deepseek-ai/dsh-client-runtime"
]
}
}
}
適用場景與注意¶
適合需要在 DSH Web 客戶端中通過 URL 打開、分享或固定會話鏈接的場景。
使用前注意:
- DSH 插件以當前 dsh 進程權限運行,安裝前應檢查源碼與許可證。
- 該插件描述爲完全運行在瀏覽器端,不添加任何 host 服務。
- pnpm 10 及以上版本可能要求先授權構建。
- DeepSeek Harness 仍處於開發者預覽階段,後續版本可能需要同步更新插件。
鏈接¶
GitHub:https://github.com/R3alloc/dsh-session-deeplink
目錄頁(按插件線索提供):https://www.skillhub.cn/plugins/R3alloc/dsh-session-deeplink