dsh-remote 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -834,7 +834,10 @@ export async function apply(ctx, config) {
|
|
|
834
834
|
if (!dp || typeof dp.capability !== 'function') return sendJson(res, 400, { ok: false, error: '本地目录选择器服务不可用(缺少 DSH directory-picker backend)' })
|
|
835
835
|
const cap = await Promise.resolve(dp.capability())
|
|
836
836
|
if (!cap || cap.kind !== 'native' || typeof cap.pick !== 'function') return sendJson(res, 400, { ok: false, error: '本地目录选择器不可用(当前为非原生/浏览后端,请在输入框手动填本地路径)' })
|
|
837
|
-
const
|
|
837
|
+
const pickAbort = new AbortController()
|
|
838
|
+
const signal = pickAbort.signal || null
|
|
839
|
+
const picked = await Promise.resolve(cap.pick(signal))
|
|
840
|
+
pickAbort.abort()
|
|
838
841
|
if (!picked || typeof picked !== 'string') return sendJson(res, 200, { ok: true, cancelled: true })
|
|
839
842
|
return sendJson(res, 200, { ok: true, path: picked })
|
|
840
843
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-remote",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Remote-work assistant for DeepSeek Harness: connect SSH (password or key), pick a remote workspace, operate on it with rw_pick_workspace / rw_list_dir / rw_read_file / rw_exec / rw_sync tools, and mirror it to a real local directory (SFTP) so the DSH native workspace can adopt it.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|