dsh-remote 1.1.1 → 1.2.0

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/routes-fs.js CHANGED
@@ -6,8 +6,11 @@
6
6
  // same mirror binding as rw_* tools and never fall back to the active machine.
7
7
  // URLSearchParams already decodes query paths. Another decoding pass corrupts
8
8
  // literal percent characters and names containing sequences such as `%2F`.
9
- import { lstatSync, mkdirSync } from 'node:fs'
9
+ import { mkdirSync } from 'node:fs'
10
10
  import path from 'node:path'
11
+ import { mirrorDownloadTarget, assertDownloadHasNoSymlinks } from './mirror-paths.js'
12
+ export { mirrorDownloadTarget } from './mirror-paths.js'
13
+ import { createLocalCopyRoutes, localCopyInfo } from './local-copy.js'
11
14
  import {
12
15
  normalizeRemotePath, joinRemotePath, remoteDirname, mkdirRemoteDirs, toDisplayPath,
13
16
  } from './paths.js'
@@ -15,34 +18,6 @@ import { requestSessionHint } from './binding.js'
15
18
  import { captureRemoteFile, atomicRemoteWrite, remoteRevision, missingRemoteFile } from './remote-write.js'
16
19
  import { listDirStructured, listRemoteDrives, removeRemoteTree, previewRemoteFile } from './remote-fs.js'
17
20
 
18
- const unsafeDownload = () => Object.assign(new Error('The download destination must be a regular file inside this workspace mirror'), { httpStatus: 403 })
19
-
20
- // Remote POSIX names may contain backslashes that become separators on a
21
- // Windows host. Resolve in each filesystem's own grammar, never by prefix.
22
- export function mirrorDownloadTarget(base, workspace, remote, localPath = path) {
23
- const remotePath = /^(?:[a-z]:[\\/]|\\\\)/i.test(workspace) ? path.win32 : path.posix
24
- const relative = remotePath.relative(normalizeRemotePath(workspace), normalizeRemotePath(remote))
25
- if (!relative || remotePath.isAbsolute(relative) || relative.split(remotePath.sep).some(part => part === '..') || relative.includes('\0')) throw unsafeDownload()
26
- const parts = relative.split(remotePath.sep)
27
- // This local-only record determines the session's remote identity.
28
- if (parts.length === 1 && (localPath.sep === '\\' ? parts[0].toLowerCase() : parts[0]) === '.dsh-remote-meta.json') throw unsafeDownload()
29
- if (localPath.sep === '\\' && parts.some(part => /[<>:"|?*\\\x00-\x1f]/.test(part) || /[. ]$/.test(part) || /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(part))) throw unsafeDownload()
30
- const root = localPath.resolve(base), target = localPath.resolve(root, ...parts)
31
- const within = localPath.relative(root, target)
32
- if (!within || localPath.isAbsolute(within) || within.split(localPath.sep).some(part => part === '..')) throw unsafeDownload()
33
- return target
34
- }
35
-
36
- function assertDownloadHasNoSymlinks(base, target) {
37
- const root = path.resolve(base)
38
- let current = root
39
- for (const segment of ['', ...path.relative(root, target).split(path.sep)]) {
40
- if (segment) current = path.join(current, segment)
41
- try { if (lstatSync(current).isSymbolicLink()) throw unsafeDownload() }
42
- catch (error) { if (error.code !== 'ENOENT') throw error }
43
- }
44
- }
45
-
46
21
  export function createFsRoutes({
47
22
  sendJson,
48
23
  readBody,
@@ -63,24 +38,25 @@ export function createFsRoutes({
63
38
  }
64
39
  }
65
40
 
66
- const checkExpectedRevision = (body, snapshot) => {
41
+ const checkExpectedRevision = (body, snapshot, local = false) => {
67
42
  if (body.expectedRevision != null) {
68
43
  if (typeof body.expectedRevision !== 'string' || !/^[a-f0-9]{64}$/.test(body.expectedRevision)) {
69
44
  throw Object.assign(new Error('expectedRevision must be a SHA-256 revision returned by a complete file preview'), { httpStatus: 400 })
70
45
  }
71
46
  if (!snapshot.stat || !snapshot.bytes || remoteRevision(snapshot.bytes) !== body.expectedRevision) {
72
- throw Object.assign(new Error('远端文件已变化,已放弃保存。请重新读取并比较后重试。'), { httpStatus: 409, code: 'REMOTE_FILE_CONFLICT' })
47
+ throw Object.assign(new Error(local ? '本地文件已变化,已放弃保存。请重新读取并比较后重试。' : '远端文件已变化,已放弃保存。请重新读取并比较后重试。'), { httpStatus: 409, code: 'REMOTE_FILE_CONFLICT' })
73
48
  }
74
49
  }
75
50
  if (body.expectedMtime != null) {
76
51
  if (!Number.isFinite(Number(body.expectedMtime))) throw Object.assign(new Error('expectedMtime must be a finite timestamp'), { httpStatus: 400 })
77
52
  if (!snapshot.stat || snapshot.stat.mtime !== Number(body.expectedMtime)) {
78
- throw Object.assign(new Error('远端文件已变化,已放弃保存。请重新读取并比较后重试。'), { httpStatus: 409, code: 'REMOTE_FILE_CONFLICT' })
53
+ throw Object.assign(new Error(local ? '本地文件已变化,已放弃保存。请重新读取并比较后重试。' : '远端文件已变化,已放弃保存。请重新读取并比较后重试。'), { httpStatus: 409, code: 'REMOTE_FILE_CONFLICT' })
79
54
  }
80
55
  }
81
56
  }
82
57
 
83
58
  return [
59
+ ...createLocalCopyRoutes({ sendJson, readBody, resolveRequestBinding, config, audit, onRemoteMutation }),
84
60
  {
85
61
  kind: 'exact',
86
62
  path: '/dsh-remote/ls',
@@ -97,7 +73,7 @@ export function createFsRoutes({
97
73
  try { body = JSON.parse((await readBody(req)) || '{}') } catch { body = {} }
98
74
  }
99
75
  const hint = requestSessionHint(req, body)
100
- const b = await bindOrReply(req, res, hint)
76
+ const b = await bindOrReply(req, res, { ...body, ...hint })
101
77
  if (!b) return
102
78
  // Identity echo (external-switch defense): name the machine this
103
79
  // listing is answered for, straight from the pool's target — the
@@ -117,7 +93,7 @@ export function createFsRoutes({
117
93
  : (body.path ? String(body.path) : (b.ws || ''))
118
94
  const canon = normalizeRemotePath(raw)
119
95
  const win = b.pool.platform === 'windows'
120
- if (canon === '/' || raw === '' || raw === '/') {
96
+ if (!b.local && (canon === '/' || raw === '' || raw === '/')) {
121
97
  if (win || b.pool.platform !== 'posix') {
122
98
  const drives = await listRemoteDrives(b.pool)
123
99
  if (drives.length) return sendJson(res, 200, { path: '', platform: 'windows', items: drives, bound: b.bound, machine })
@@ -139,7 +115,7 @@ export function createFsRoutes({
139
115
  machine,
140
116
  })
141
117
  } catch (err) {
142
- return sendJson(res, 500, { error: String((err && err.message) || err) })
118
+ return sendJson(res, err.httpStatus || 500, { error: String((err && err.message) || err) })
143
119
  }
144
120
  },
145
121
  },
@@ -179,7 +155,16 @@ export function createFsRoutes({
179
155
  })
180
156
  return sendJson(res, 200, preview)
181
157
  } catch (err) {
182
- return sendJson(res, 500, { ok: false, error: 'read failed: ' + ((err && err.message) || err) })
158
+ if (missingRemoteFile(err)) {
159
+ if (b.local) return sendJson(res, 404, { ok: false, source: 'local', path: target, code: 'LOCAL_FILE_NOT_FOUND', error: '本地项目中不存在此文件。' })
160
+ const localCopy = await localCopyInfo(b, target)
161
+ return sendJson(res, 404, { ok: false, source: 'remote', path: target,
162
+ code: localCopy ? 'REMOTE_FILE_MISSING_LOCAL_COPY' : 'REMOTE_FILE_NOT_FOUND',
163
+ error: localCopy ? '远端不存在此文件。本地镜像有同名副本,但尚未确认上传;可只读查看后显式上传。' : '远端不存在此文件。',
164
+ ...(localCopy ? { localCopy } : {}),
165
+ })
166
+ }
167
+ return sendJson(res, err.httpStatus || 500, { ok: false, error: 'read failed: ' + ((err && err.message) || err) })
183
168
  }
184
169
  } catch (err) {
185
170
  return sendJson(res, 500, { ok: false, error: String((err && err.message) || err) })
@@ -199,12 +184,12 @@ export function createFsRoutes({
199
184
  if (!b) return
200
185
  const sftp = await b.pool.sftp()
201
186
  const before = await captureRemoteFile(sftp, p, { read: body.expectedRevision != null, maxReadBytes: 2 * 1024 * 1024 })
202
- checkExpectedRevision(body, before)
187
+ checkExpectedRevision(body, before, b.local)
203
188
  const buf = encodeText(String(body.content ?? ''), body.encoding || config.encoding)
204
189
  if (!before.stat) await mkdirRemoteDirs(sftp, remoteDirname(p))
205
190
  await atomicRemoteWrite(sftp, before, buf)
206
- audit('write', `write ${p}`, 0, b)
207
- onRemoteMutation()
191
+ if (!b.local) audit('write', `write ${p}`, 0, b)
192
+ if (!b.local) onRemoteMutation()
208
193
  const st2 = await sftp.stat(p).catch(() => null)
209
194
  return sendJson(res, 200, { ok: true, bytes: buf.byteLength, mtime: st2 ? st2.mtime : Math.floor(Date.now() / 1000), revision: remoteRevision(buf) })
210
195
  } catch (err) {
@@ -222,13 +207,15 @@ export function createFsRoutes({
222
207
  const op = String(body.op || '')
223
208
  const b = await bindOrReply(req, res, body)
224
209
  if (!b) return
210
+ if (b.local && op === 'download') return sendJson(res, 400, { ok: false, error: 'Local files are already on this host; no mirror download is needed' })
225
211
  const sftp = await b.pool.sftp()
226
212
  if (op === 'mkdir') {
227
213
  const p = normalizeRemotePath(String(body.path || ''))
228
214
  if (!p || p === '/') return sendJson(res, 400, { ok: false, error: 'path required' })
229
- await mkdirRemoteDirs(sftp, p)
230
- audit('mkdir', `mkdir ${p}`, 0, b)
231
- onRemoteMutation()
215
+ if (b.local) await b.pool.mkdirTree(p)
216
+ else await mkdirRemoteDirs(sftp, p)
217
+ if (!b.local) audit('mkdir', `mkdir ${p}`, 0, b)
218
+ if (!b.local) onRemoteMutation()
232
219
  return sendJson(res, 200, { ok: true })
233
220
  }
234
221
  if (op === 'rename') {
@@ -236,8 +223,8 @@ export function createFsRoutes({
236
223
  const d = normalizeRemotePath(String(body.dest || ''))
237
224
  if (!p || !d) return sendJson(res, 400, { ok: false, error: 'path and dest required' })
238
225
  await sftp.rename(p, d)
239
- audit('move', `move ${p} → ${d}`, 0, b)
240
- onRemoteMutation()
226
+ if (!b.local) audit('move', `move ${p} → ${d}`, 0, b)
227
+ if (!b.local) onRemoteMutation()
241
228
  return sendJson(res, 200, { ok: true })
242
229
  }
243
230
  if (op === 'remove') {
@@ -246,12 +233,13 @@ export function createFsRoutes({
246
233
  const st = await sftp.stat(p).catch(() => null)
247
234
  if (!st) return sendJson(res, 404, { ok: false, error: 'not found' })
248
235
  if (st.isDirectory && st.isDirectory()) {
249
- await removeRemoteTree(sftp, p)
236
+ if (b.local) await b.pool.removeTree(p)
237
+ else await removeRemoteTree(sftp, p)
250
238
  } else {
251
239
  await sftp.unlink(p)
252
240
  }
253
- audit('remove', `remove ${p}`, 0, b)
254
- onRemoteMutation()
241
+ if (!b.local) audit('remove', `remove ${p}`, 0, b)
242
+ if (!b.local) onRemoteMutation()
255
243
  return sendJson(res, 200, { ok: true })
256
244
  }
257
245
  if (op === 'write' || op === 'append') {
@@ -261,13 +249,13 @@ export function createFsRoutes({
261
249
  read: op === 'append' || body.expectedRevision != null,
262
250
  maxReadBytes: config.maxFileBytes > 0 ? Math.min(config.maxFileBytes, 2 * 1024 * 1024) : 2 * 1024 * 1024,
263
251
  })
264
- checkExpectedRevision(body, before)
252
+ checkExpectedRevision(body, before, b.local)
265
253
  const content = op === 'append' && before.bytes ? decodeBuf(before.bytes, body.encoding || config.encoding) : ''
266
254
  const buf = encodeText(content + String(body.content ?? ''), body.encoding || config.encoding)
267
255
  if (op === 'write' && !before.stat) await mkdirRemoteDirs(sftp, remoteDirname(p))
268
256
  await atomicRemoteWrite(sftp, before, buf)
269
- audit(op, `${op} ${p}`, 0, b)
270
- onRemoteMutation()
257
+ if (!b.local) audit(op, `${op} ${p}`, 0, b)
258
+ if (!b.local) onRemoteMutation()
271
259
  return sendJson(res, 200, { ok: true, bytes: buf.byteLength, revision: remoteRevision(buf) })
272
260
  }
273
261
  if (op === 'download') {
@@ -286,7 +274,7 @@ export function createFsRoutes({
286
274
  assertDownloadHasNoSymlinks(base, local)
287
275
  mkdirSync(path.dirname(local), { recursive: true })
288
276
  await sftp.fastGet(p, local)
289
- audit('download', `download ${p}`, 0, b)
277
+ if (!b.local) audit('download', `download ${p}`, 0, b)
290
278
  return sendJson(res, 200, { ok: true, bytes: st.size, local })
291
279
  }
292
280
  return sendJson(res, 400, { ok: false, error: 'unknown op' })
@@ -101,6 +101,22 @@ export function buildSftpSurface(sftp, { commandTimeoutMs, onTimeout }) {
101
101
  setstat: (p, attrs) => withTimeout((d, a, cb) => sftp.setstat(d, a, cb))(P(p), attrs),
102
102
  readFile: (p) => withTimeout((d, cb) => sftp.readFile(d, cb))(P(p)),
103
103
  writeFile: (p, data, options) => withTimeout((d, data2, cb) => options ? sftp.writeFile(d, data2, options, cb) : sftp.writeFile(d, data2, cb))(P(p), data),
104
+ // Recovery publishing must reserve the destination on the SERVER. Never
105
+ // replace an existing file, including one created by a concurrent request.
106
+ createFileExclusive: async (p, data) => {
107
+ let created = false
108
+ try {
109
+ await withTimeout((d, bytes, cb) => {
110
+ sftp.open(d, 'wx', { mode: 0o600 }, (error, handle) => {
111
+ if (error) { error.exclusiveOpenFailed = true; return cb(error) }
112
+ created = true
113
+ sftp.write(handle, bytes, 0, bytes.length, 0, writeError => {
114
+ sftp.close(handle, closeError => cb(writeError || closeError))
115
+ })
116
+ })
117
+ })(P(p), data)
118
+ } catch (error) { error.exclusiveFileCreated = created; throw error }
119
+ },
104
120
  fastGet: (p, lp) => withTimeout((d, l, cb) => sftp.fastGet(d, l, cb))(P(p), lp),
105
121
  fastPut: (lp, p) => withTimeout((l, d, cb) => sftp.fastPut(l, d, cb))(lp, P(p)),
106
122
  // Range read for oversized previews: never downloads the whole file.
package/lib/telemetry.js CHANGED
@@ -22,8 +22,9 @@
22
22
  import { createHmac, randomUUID } from 'node:crypto'
23
23
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'
24
24
  import path from 'node:path'
25
+ import { setTimeout as delay } from 'node:timers/promises'
25
26
 
26
- /** 上报端点(CloudBase HTTP 访问服务)。改域名只需改这一行。
27
+ /** 上报端点(Cloudflare Worker)。改域名只需改这一行。
27
28
  * 可用 `DSH_REMOTE_HEARTBEAT_URL` 覆盖——存在的理由不是"让用户改"
28
29
  * (默认行为不该需要配置),而是:① 测试必须能把它重定向掉,
29
30
  * 否则跑一次 npm test 就会往生产统计里灌假装机(发生过);
@@ -48,8 +49,8 @@ const TIMEOUT_MS = 15000
48
49
  /** 启动后延迟多久再发:避开启动高峰(插件树/路由/服务都在抢事件循环)。
49
50
  * 仍不 await——延迟是为了让心跳真的成功,不是为了让用户等待。 */
50
51
  const STARTUP_DELAY_MS = 3000
51
- /** 两次上报之间的最小间隔(同一天内重复启动不再上报)。 */
52
- const MIN_INTERVAL_MS = 6 * 60 * 60 * 1000
52
+ /** 每 15 分钟检查是否跨日或需要重试;成功后当天不再发送。 */
53
+ const CHECK_INTERVAL_MS = 15 * 60 * 1000
53
54
 
54
55
  /** 安装身份的进程内缓存,**按身份文件路径分键**。
55
56
  * ★ 不能只用一个全局变量:同一进程内出现第二个 DSH_HOME(隔离沙箱、
@@ -88,8 +89,11 @@ export function pseudonym(home) {
88
89
  return createHmac('sha256', SALT).update(installId(home)).digest('hex').slice(0, 32)
89
90
  }
90
91
 
91
- /** 是否到该上报了(进程内节流,避免每次工具调用都发)。 */
92
- let lastSentAt = 0
92
+ /** 与服务端一致,按北京时间分日;隔离不同 DSH_HOME 的节流和并发状态。 */
93
+ const reports = new Map()
94
+ function heartbeatDay() {
95
+ return new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString().slice(0, 10)
96
+ }
93
97
 
94
98
  /** 是否处于测试进程。
95
99
  *
@@ -119,21 +123,20 @@ export function inTestProcess() {
119
123
  * 且**不导出给业务代码**(导出名带下划线前缀,见文件末尾)。
120
124
  */
121
125
  async function deliver(home, version, options = {}) {
122
- const now = Date.now()
123
- if (now - lastSentAt < MIN_INTERVAL_MS) return false
124
-
125
- const delayMs = options.delayMs === undefined ? STARTUP_DELAY_MS : Math.max(0, options.delayMs)
126
- // 先占位,防止并发触发重复上报(本插件是单进程,够用)
127
- lastSentAt = now
126
+ const key = path.resolve(home)
127
+ const previous = reports.get(key)
128
+ if (previous?.pending || previous?.day === heartbeatDay()) return false
129
+ const allowed = () => !options.signal?.aborted && (!options.allowed || options.allowed())
130
+ const state = { pending: true }
131
+ reports.set(key, state)
128
132
  try {
129
- if (delayMs) await new Promise((r) => {
130
- // ★ 这里**不能 unref**。曾经 unref 过延迟定时器,结果是:await 一个已
131
- // unref 的定时器不会让事件循环保活,当进程恰好没有别的 pending 句柄时
132
- // Node 会**直接退出**,心跳一次都发不出去(CI 上稳定复现:本地因为其它
133
- // 测试还留着句柄而侥幸变绿)。延迟是为了让心跳成功,就必须让它把进程
134
- // 留住这几秒;插件真实运行时也不可能因为多等 3s 影响用户。
135
- setTimeout(r, delayMs)
136
- })
133
+ if (!allowed()) return false
134
+ const delayMs = options.delayMs === undefined ? STARTUP_DELAY_MS : Math.max(0, options.delayMs)
135
+ // 短启动延迟保活,卸载时可取消;周期检查本身不保持进程存活。
136
+ if (delayMs) await delay(delayMs, undefined, { signal: options.signal })
137
+ // 延迟期间用户可能已关闭统计或卸载插件,外呼前重新检查。
138
+ if (!allowed()) return false
139
+ const day = heartbeatDay()
137
140
  const body = JSON.stringify({
138
141
  idHash: pseudonym(home),
139
142
  version: String(version || '0.0.0'),
@@ -144,21 +147,25 @@ async function deliver(home, version, options = {}) {
144
147
  const controller = new AbortController()
145
148
  const timer = setTimeout(() => controller.abort(), TIMEOUT_MS)
146
149
  try {
147
- await fetch(heartbeatUrl(), {
150
+ const response = await fetch(heartbeatUrl(), {
148
151
  method: 'POST',
149
152
  headers: { 'content-type': 'application/json' },
150
153
  body,
151
- signal: controller.signal,
154
+ signal: options.signal ? AbortSignal.any([controller.signal, options.signal]) : controller.signal,
152
155
  })
156
+ if (!response.ok) return false
157
+ state.day = day
153
158
  } finally {
154
159
  clearTimeout(timer)
155
160
  }
156
161
  return true
157
162
  } catch {
158
163
  // 网络不可达 / 端点变更 / 被拦截:一律忽略。
159
- // 允许下次重试:回滚节流,避免一次失败就把身份静默六个小时。
160
- lastSentAt = 0
161
164
  return false
165
+ } finally {
166
+ state.pending = false
167
+ // 只有服务端确认成功才占用当天额度;失败由周期检查低频重试。
168
+ if (!state.day && reports.get(key) === state) reports.delete(key)
162
169
  }
163
170
  }
164
171
 
@@ -169,7 +176,7 @@ async function deliver(home, version, options = {}) {
169
176
  * @param version - 运行中的插件版本(用 LOADED_VERSION,即真正在跑的代码版本)。
170
177
  * @param options.delayMs - 发送前延迟(默认 {@link STARTUP_DELAY_MS});
171
178
  * 避开启动高峰。测试可传 0。
172
- * @returns 是否真的发出了请求(仅用于测试与自检)。
179
+ * @returns 是否收到成功响应(仅用于测试与自检)。
173
180
  */
174
181
  export async function sendHeartbeat(home, version, options = {}) {
175
182
  // 测试进程一律不外呼:统计数据的可信度比"测试里能验证外呼"重要得多。
@@ -177,9 +184,38 @@ export async function sendHeartbeat(home, version, options = {}) {
177
184
  return deliver(home, version, options)
178
185
  }
179
186
 
187
+ /** 注册启动和运行期间的安装心跳;返回卸载清理函数。后台运行也属于本口径。 */
188
+ function heartbeatLoop(home, version, { allowed = () => true, send = sendHeartbeat } = {}) {
189
+ const controller = new AbortController()
190
+ let stopped = false
191
+ const tick = async (startup = false) => {
192
+ try {
193
+ if (stopped || !allowed()) return
194
+ await send(home, version, {
195
+ delayMs: startup ? STARTUP_DELAY_MS : 0,
196
+ allowed: () => !stopped && allowed(),
197
+ signal: controller.signal,
198
+ })
199
+ } catch { /* 旁路故障永不影响宿主,也不产生未处理的 rejection。 */ }
200
+ }
201
+ void tick(true)
202
+ const timer = setInterval(() => { void tick() }, CHECK_INTERVAL_MS)
203
+ timer.unref?.()
204
+ return () => {
205
+ stopped = true
206
+ clearInterval(timer)
207
+ controller.abort()
208
+ }
209
+ }
210
+
211
+ export function startHeartbeat(home, version, options) {
212
+ if (inTestProcess()) return () => {}
213
+ return heartbeatLoop(home, version, options)
214
+ }
215
+
180
216
  /** 清空节流与缓存(仅测试用)。 */
181
217
  export function _resetForTest() {
182
- lastSentAt = 0
218
+ reports.clear()
183
219
  idCache.clear()
184
220
  }
185
221
 
@@ -245,3 +281,6 @@ export function installIdPath(home) {
245
281
  * 而不是来自这个函数——它只是把守卫那道门打开给测试用。
246
282
  */
247
283
  export const _deliverForTest = deliver
284
+
285
+ // 测试注入发送函数,验证生命周期时不访问生产端点。
286
+ export const _startHeartbeatLoopForTest = heartbeatLoop
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-remote",
3
- "version": "1.1.1",
4
- "description": "Remote SSH development for DeepSeek Harness: optional IDE layout, remote file and content search, native editor and terminal tabs, Git diffs, and agent tools with compiler diagnostics.",
3
+ "version": "1.2.0",
4
+ "description": "SSH remote workspaces for DeepSeek Harness: parallel projects across hosts, remote file browsing and editing, recursive search, terminals, Git diffs, and workspace-bound Agent tools to edit, build and test remotely. Optional IDE layout.",
5
5
  "license": "MIT",
6
6
  "author": "flymysql <flyphp@outlook.com>",
7
7
  "homepage": "https://flymysql.github.io/dsh-remote/",
@@ -102,6 +102,6 @@
102
102
  "test:coverage": "node scripts/coverage-union.mjs",
103
103
  "test:coverage:gate": "node scripts/coverage-union.mjs --gate 70 --file-gate 60"
104
104
  },
105
- "readme": "[English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md) · **中文**\n\n# dsh-remote\n\n[![npm version](https://img.shields.io/npm/v/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dw/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dm/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![license](https://img.shields.io/github/license/flymysql/dsh-remote)](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n[![dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-7a3ef3)](https://github.com/topics/dsh-plugin)\n\n由 [@flymysql](https://github.com/flymysql) 维护 · [主页](https://flymysql.github.io/dsh-remote/) · [用量统计](https://flymysql.github.io/dsh-remote/stats/) · [博客](https://gitpull.cn) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [Issue](https://github.com/flymysql/dsh-remote/issues) · [English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md)\n\n在 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 中,把 SSH 主机变成日常开发工作区:浏览远程文件、编辑代码、运行终端,让 Agent 在同一远端完成任务。多个工作区可并行连接不同主机。\n\n**IDE 模式:左侧文件,中间编辑器,右侧原生 Agent 会话。** 可调整栏宽;窄屏切换文件、编辑器与会话。切回普通布局保留任务和未保存编辑。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-ide.png\" alt=\"DSH 远程工作区 IDE 模式:远程文件树、代码编辑器和原生 Agent 会话三栏\" width=\"1200\"/>\n\n## 安装\n\n```bash\ndsh plugin --profile web add dsh-remote\n```\n\n安装或升级后,重启 DSH Web 并刷新页面。自动更新状态在设置 → 远程工作区 → 插件偏好中查看。\n\n## 3 步开始\n\n1. **配置主机**:设置 → 远程工作区,编辑 SSH 配置或保存主机凭据;打开设置会自动检查连通性,无需手动“连接”。\n2. **创建工作区**:添加工作区 → 远程,选择主机与目录。每个工作区独立绑定主机,设置页不选目录或“当前远程机”。\n3. **开始开发**:打开工作区文件或切换 IDE 模式,在远端编辑、搜索、运行命令并与 Agent 协作。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workspace-picker-browse.png\" alt=\"选择远程目录:固定路径与确认栏,目录列表占据弹窗主要区域\" width=\"720\"/>\n\n## 日常开发\n\n### 搜索远端文件与内容\n\n文件、目录和内容递归搜索,无需先展开目录或同步镜像。默认界面只显示搜索范围与进度摘要;按需展开搜索选项、扫描详情,支持大小写、忽略项、停止与重试。点击结果进入目录或文件对应行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-search-results.png\" alt=\"简洁远程搜索:名称搜索结果包含嵌套目录与文件\" width=\"675\"/>\n\n### 查看远端 Git 改动\n\n分别查看工作区和已暂存 diff,筛选文件,点击改动行定位源码。面板只读,不提交或修改暂存区。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-git.png\" alt=\"远端 Git 工作区与已暂存改动、文件列表和源码 diff\" width=\"675\"/>\n\n### 在远端运行终端\n\n终端进入当前会话的远程目录;像素鱼欢迎图后接真实 SSH shell。已保存凭据可自动应答,支持多终端并行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-terminal.png\" alt=\"DSH 远程终端:像素鱼欢迎图与实际 SSH 命令输出\" width=\"1000\"/>\n\n### 与 Agent 一起修改和构建\n\n工具卡展示已应用改动、实际退出码和构建输出,编译诊断可跳转源码。编辑器保存会检测远端冲突、保留 CRLF,并保护保存期间继续输入的内容。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-applied-diff.png\" alt=\"Agent 远程编辑成功后的已应用 diff、路径与增删行数\" width=\"485\"/>\n\n## 兼容与边界\n\n- 主要面向 **DSH Web 0.2.x**;0.2.2 需要 **Node.js ≥24.9**。旧版宿主回退、Desktop/TUI 与 Agent diff 差异见[兼容说明](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md#dsh-版本兼容性)。\n- 文件栏直接访问远端;镜像按需同步。草稿在当前页面内存,崩溃或强制退出仍可能丢失。\n- 不提供远端语言服务、扩展宿主或调试器。Agent 使用配置的 SSH 身份执行命令,请只配置可信主机。\n\n## 文档与社区\n\n[完整工具与配置参考](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md) · [排障](https://github.com/flymysql/dsh-remote/blob/main/docs/troubleshooting.md) · [升级指南](https://github.com/flymysql/dsh-remote/blob/main/docs/migration-1.0.md) · [更新记录](https://github.com/flymysql/dsh-remote/blob/main/CHANGELOG.md)\n\n[主页](https://flymysql.github.io/dsh-remote/) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [反馈问题](https://github.com/flymysql/dsh-remote/issues) · [贡献指南](https://github.com/flymysql/dsh-remote/blob/main/CONTRIBUTING.md) · [贡献者与致谢](#贡献者与致谢)\n\n由 [@flymysql](https://github.com/flymysql) 与社区共同维护 · [MIT](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n\n### 贡献者与致谢\n\n感谢每一位让这个项目更好的朋友(头像可点进主页;按提交数排序,机器人不计):\n\n<p align=\"left\">\n <a href=\"https://github.com/flymysql\"><img src=\"https://avatars.githubusercontent.com/u/37113068?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@flymysql\" title=\"@flymysql\" /></a>\n <a href=\"https://github.com/baiseraku\"><img src=\"https://avatars.githubusercontent.com/u/139727690?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@baiseraku\" title=\"@baiseraku\" /></a>\n <a href=\"https://github.com/glzhangzhi\"><img src=\"https://avatars.githubusercontent.com/u/36995275?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@glzhangzhi\" title=\"@glzhangzhi\" /></a>\n <a href=\"https://github.com/hjwsm1989\"><img src=\"https://avatars.githubusercontent.com/u/1067541?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@hjwsm1989\" title=\"@hjwsm1989\" /></a>\n <a href=\"https://github.com/j10ha0\"><img src=\"https://avatars.githubusercontent.com/u/72346906?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@j10ha0\" title=\"@j10ha0\" /></a>\n <a href=\"https://github.com/FoolishWiser\"><img src=\"https://avatars.githubusercontent.com/u/104308087?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FoolishWiser\" title=\"@FoolishWiser\" /></a>\n <a href=\"https://github.com/kakaa-nju\"><img src=\"https://avatars.githubusercontent.com/u/79886619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@kakaa-nju\" title=\"@kakaa-nju\" /></a>\n <a href=\"https://github.com/4FMTWRV\"><img src=\"https://avatars.githubusercontent.com/u/190457700?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@4FMTWRV\" title=\"@4FMTWRV\" /></a>\n <a href=\"https://github.com/dahaipeng\"><img src=\"https://avatars.githubusercontent.com/u/25660610?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@dahaipeng\" title=\"@dahaipeng\" /></a>\n <a href=\"https://github.com/davidlin2k\"><img src=\"https://avatars.githubusercontent.com/u/17074619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@davidlin2k\" title=\"@davidlin2k\" /></a>\n <a href=\"https://github.com/FlintyLemming\"><img src=\"https://avatars.githubusercontent.com/u/19165511?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FlintyLemming\" title=\"@FlintyLemming\" /></a>\n <a href=\"https://github.com/GDWhisper\"><img src=\"https://avatars.githubusercontent.com/u/129148123?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@GDWhisper\" title=\"@GDWhisper\" /></a>\n <a href=\"https://github.com/YiHui-Liu\"><img src=\"https://avatars.githubusercontent.com/u/30190271?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@YiHui-Liu\" title=\"@YiHui-Liu\" /></a>\n <a href=\"https://github.com/Minggle\"><img src=\"https://avatars.githubusercontent.com/u/35053182?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@Minggle\" title=\"@Minggle\" /></a>\n <a href=\"https://github.com/nekomona\"><img src=\"https://avatars.githubusercontent.com/u/25474483?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@nekomona\" title=\"@nekomona\" /></a>\n <a href=\"https://github.com/shis23\"><img src=\"https://avatars.githubusercontent.com/u/189869650?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@shis23\" title=\"@shis23\" /></a>\n</p>\n\n<details>\n<summary>贡献记录与早期贡献者</summary>\n\n近期的亮点贡献(欢迎随时加入这个名单):\n\n| 贡献者 | 做了什么 |\n| --- | --- |\n| [@baiseraku](https://github.com/baiseraku) | 整个 dsh-tui 适配层([#92](https://github.com/flymysql/dsh-remote/pull/92))+ 底栏机器名修正([#98](https://github.com/flymysql/dsh-remote/pull/98)) |\n| [@hjwsm1989](https://github.com/hjwsm1989) | 远程 .md 渲染连环两道:memo 守卫([#102](https://github.com/flymysql/dsh-remote/pull/102))+ labels 契约([#107](https://github.com/flymysql/dsh-remote/pull/107)) |\n| [@shis23](https://github.com/shis23) | rw_sync 路径映射纠偏 + SFTP 超时韧性([#105](https://github.com/flymysql/dsh-remote/pull/105)) |\n| [@davidlin2k](https://github.com/davidlin2k) | 无凭据机器走用户自有 ssh([#100](https://github.com/flymysql/dsh-remote/pull/100)) |\n| [@GDWhisper](https://github.com/GDWhisper) | 目录补全逐字符重连修复([#42](https://github.com/flymysql/dsh-remote/pull/42),issue #41) |\n| [@glzhangzhi](https://github.com/glzhangzhi) | 多远端会话的连接池隔离(issue #25 的主体修复) |\n\n早期已合并 PR 的贡献者(考古名单):\n\n\n\n[@dahaipeng](https://github.com/dahaipeng) (#31) ·\n[@YiHui-Liu](https://github.com/YiHui-Liu) (#28) ·\n[@nekomona](https://github.com/nekomona) (#24) ·\n[@zhz1667](https://github.com/zhz1667) (#43) ·\n[FoolishWiser](https://github.com/FoolishWiser) (#17) ·\n[@jace1cch](https://github.com/jace1cch) (#16) ·\n[@Minggle](https://github.com/Minggle) (#10) ·\n[4FMTWRV](https://github.com/4FMTWRV) (#6) ·\n[glzhangzhi](https://github.com/glzhangzhi)(per-session SSH 连接池修复)\n\n> 名单随版本更新;头像墙之外的每一份 issue 报告、复现步骤、根因线索同样珍贵——\n> 本仓库近半修复的起点都是一条写清楚的 issue。\n\n</details>\n",
105
+ "readme": "[English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md) · **中文**\n\n# dsh-remote\n\n[![npm version](https://img.shields.io/npm/v/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dw/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dm/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![license](https://img.shields.io/github/license/flymysql/dsh-remote)](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n[![dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-7a3ef3)](https://github.com/topics/dsh-plugin)\n\n由 [@flymysql](https://github.com/flymysql) 维护 · [主页](https://flymysql.github.io/dsh-remote/) · [用量统计](https://flymysql.github.io/dsh-remote/stats/) · [博客](https://gitpull.cn) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [Issue](https://github.com/flymysql/dsh-remote/issues) · [English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md)\n\n![dsh-remote —— 远程项目,完整上下文](https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workspace-overview.png)\n\n在 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 中,把 SSH 主机变成日常开发工作区:管理多主机项目,浏览和编辑远程文件、递归搜索文件与内容、使用终端并查看 Git 差异;让 Agent 在所属远程工作区中读写文件、执行命令、构建和测试。多个工作区可独立并行。\n\n可按习惯使用普通布局,或切换 **IDE 三栏布局**,并排查看远程文件、编辑器与原生 Agent 会话;切换时保留任务和未保存编辑。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-ide.png\" alt=\"DSH 远程工作区 IDE 模式:远程文件树、代码编辑器和原生 Agent 会话三栏\" width=\"1200\"/>\n\n## 安装\n\n```bash\ndsh plugin --profile web add dsh-remote\n```\n\n安装或升级后,重启 DSH Web 并刷新页面。自动更新状态在设置 → 远程工作区 → 插件偏好中查看。\n\n## 3 步开始\n\n1. **配置主机**:设置 → 远程工作区,编辑 SSH 配置或保存主机凭据;打开设置会自动检查连通性,无需手动“连接”。\n2. **创建工作区**:添加工作区 → 远程,选择主机与目录。每个工作区独立绑定主机,设置页不选目录或“当前远程机”。\n3. **开始开发**:打开工作区文件或切换 IDE 模式,文件打开即可编辑并显示语法高亮,在远端搜索、运行命令并与 Agent 协作。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workspace-picker-browse.png\" alt=\"选择远程目录:固定路径与确认栏,目录列表占据弹窗主要区域\" width=\"720\"/>\n\n## 本地工作区也能用\n\n打开普通本地项目后,点击 **IDE 模式** 或 **工作区文件**,即可使用同一套文件树、高亮编辑、递归搜索、Git 差异与本地终端。无需配置 SSH;Agent 继续使用宿主原生文件和命令工具,多个本地、远程项目可并行工作。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-local.png\" alt=\"本地工作区:文件搜索、高亮编辑和原生 Agent 会话,Agent 已实际完成本地构建\" width=\"1200\"/>\n\n## 日常开发\n\n### 搜索远端文件与内容\n\n文件、目录和内容递归搜索,无需先展开目录或同步镜像。默认界面只显示搜索范围与进度摘要;按需展开搜索选项、扫描详情,支持大小写、忽略项、停止与重试。点击结果进入目录或文件对应行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-search-results.png\" alt=\"简洁远程搜索:名称搜索结果包含嵌套目录与文件\" width=\"675\"/>\n\n### 查看远端 Git 改动\n\n分别查看工作区和已暂存 diff,筛选文件,点击改动行定位源码。面板只读,不提交或修改暂存区。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-git.png\" alt=\"远端 Git 工作区与已暂存改动、文件列表和源码 diff\" width=\"675\"/>\n\n### 在远端运行终端\n\n终端进入当前会话的远程目录;像素鱼欢迎图后接真实 SSH shell。已保存凭据可自动应答,支持多终端并行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-terminal.png\" alt=\"DSH 远程终端:像素鱼欢迎图与实际 SSH 命令输出\" width=\"1000\"/>\n\n### 与 Agent 一起修改和构建\n\n工具卡展示已应用改动、实际退出码和构建输出,编译诊断可跳转源码。编辑器保存会检测远端冲突、保留 CRLF,并保护保存期间继续输入的内容。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-applied-diff.png\" alt=\"Agent 远程编辑成功后的已应用 diff、路径与增删行数\" width=\"485\"/>\n\n## 兼容与边界\n\n- 主要面向 **DSH Web 0.2.x**;0.2.2 需要 **Node.js ≥24.9**。旧版宿主回退、Desktop/TUI 与 Agent diff 差异见[兼容说明](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md#dsh-版本兼容性)。\n- 文件栏直接访问远端;镜像按需同步。草稿在当前页面内存,崩溃或强制退出仍可能丢失。\n- 不提供远端语言服务、扩展宿主或调试器。Agent 使用配置的 SSH 身份执行命令,请只配置可信主机。\n\n## 文档与社区\n\n[完整工具与配置参考](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md) · [排障](https://github.com/flymysql/dsh-remote/blob/main/docs/troubleshooting.md) · [升级指南](https://github.com/flymysql/dsh-remote/blob/main/docs/migration-1.0.md) · [更新记录](https://github.com/flymysql/dsh-remote/blob/main/CHANGELOG.md)\n\n[主页](https://flymysql.github.io/dsh-remote/) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [反馈问题](https://github.com/flymysql/dsh-remote/issues) · [贡献指南](https://github.com/flymysql/dsh-remote/blob/main/CONTRIBUTING.md) · [贡献者与致谢](#贡献者与致谢)\n\n由 [@flymysql](https://github.com/flymysql) 与社区共同维护 · [MIT](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n\n### 贡献者与致谢\n\n感谢每一位让这个项目更好的朋友(头像可点进主页;按提交数排序,机器人不计):\n\n<p align=\"left\">\n <a href=\"https://github.com/flymysql\"><img src=\"https://avatars.githubusercontent.com/u/37113068?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@flymysql\" title=\"@flymysql\" /></a>\n <a href=\"https://github.com/baiseraku\"><img src=\"https://avatars.githubusercontent.com/u/139727690?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@baiseraku\" title=\"@baiseraku\" /></a>\n <a href=\"https://github.com/glzhangzhi\"><img src=\"https://avatars.githubusercontent.com/u/36995275?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@glzhangzhi\" title=\"@glzhangzhi\" /></a>\n <a href=\"https://github.com/hjwsm1989\"><img src=\"https://avatars.githubusercontent.com/u/1067541?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@hjwsm1989\" title=\"@hjwsm1989\" /></a>\n <a href=\"https://github.com/j10ha0\"><img src=\"https://avatars.githubusercontent.com/u/72346906?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@j10ha0\" title=\"@j10ha0\" /></a>\n <a href=\"https://github.com/FoolishWiser\"><img src=\"https://avatars.githubusercontent.com/u/104308087?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FoolishWiser\" title=\"@FoolishWiser\" /></a>\n <a href=\"https://github.com/kakaa-nju\"><img src=\"https://avatars.githubusercontent.com/u/79886619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@kakaa-nju\" title=\"@kakaa-nju\" /></a>\n <a href=\"https://github.com/4FMTWRV\"><img src=\"https://avatars.githubusercontent.com/u/190457700?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@4FMTWRV\" title=\"@4FMTWRV\" /></a>\n <a href=\"https://github.com/dahaipeng\"><img src=\"https://avatars.githubusercontent.com/u/25660610?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@dahaipeng\" title=\"@dahaipeng\" /></a>\n <a href=\"https://github.com/davidlin2k\"><img src=\"https://avatars.githubusercontent.com/u/17074619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@davidlin2k\" title=\"@davidlin2k\" /></a>\n <a href=\"https://github.com/FlintyLemming\"><img src=\"https://avatars.githubusercontent.com/u/19165511?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FlintyLemming\" title=\"@FlintyLemming\" /></a>\n <a href=\"https://github.com/GDWhisper\"><img src=\"https://avatars.githubusercontent.com/u/129148123?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@GDWhisper\" title=\"@GDWhisper\" /></a>\n <a href=\"https://github.com/YiHui-Liu\"><img src=\"https://avatars.githubusercontent.com/u/30190271?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@YiHui-Liu\" title=\"@YiHui-Liu\" /></a>\n <a href=\"https://github.com/Minggle\"><img src=\"https://avatars.githubusercontent.com/u/35053182?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@Minggle\" title=\"@Minggle\" /></a>\n <a href=\"https://github.com/nekomona\"><img src=\"https://avatars.githubusercontent.com/u/25474483?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@nekomona\" title=\"@nekomona\" /></a>\n <a href=\"https://github.com/shis23\"><img src=\"https://avatars.githubusercontent.com/u/189869650?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@shis23\" title=\"@shis23\" /></a>\n</p>\n\n<details>\n<summary>贡献记录与早期贡献者</summary>\n\n近期的亮点贡献(欢迎随时加入这个名单):\n\n| 贡献者 | 做了什么 |\n| --- | --- |\n| [@baiseraku](https://github.com/baiseraku) | 整个 dsh-tui 适配层([#92](https://github.com/flymysql/dsh-remote/pull/92))+ 底栏机器名修正([#98](https://github.com/flymysql/dsh-remote/pull/98)) |\n| [@hjwsm1989](https://github.com/hjwsm1989) | 远程 .md 渲染连环两道:memo 守卫([#102](https://github.com/flymysql/dsh-remote/pull/102))+ labels 契约([#107](https://github.com/flymysql/dsh-remote/pull/107)) |\n| [@shis23](https://github.com/shis23) | rw_sync 路径映射纠偏 + SFTP 超时韧性([#105](https://github.com/flymysql/dsh-remote/pull/105)) |\n| [@davidlin2k](https://github.com/davidlin2k) | 无凭据机器走用户自有 ssh([#100](https://github.com/flymysql/dsh-remote/pull/100)) |\n| [@GDWhisper](https://github.com/GDWhisper) | 目录补全逐字符重连修复([#42](https://github.com/flymysql/dsh-remote/pull/42),issue #41) |\n| [@glzhangzhi](https://github.com/glzhangzhi) | 多远端会话的连接池隔离(issue #25 的主体修复) |\n\n早期已合并 PR 的贡献者(考古名单):\n\n\n\n[@dahaipeng](https://github.com/dahaipeng) (#31) ·\n[@YiHui-Liu](https://github.com/YiHui-Liu) (#28) ·\n[@nekomona](https://github.com/nekomona) (#24) ·\n[@zhz1667](https://github.com/zhz1667) (#43) ·\n[FoolishWiser](https://github.com/FoolishWiser) (#17) ·\n[@jace1cch](https://github.com/jace1cch) (#16) ·\n[@Minggle](https://github.com/Minggle) (#10) ·\n[4FMTWRV](https://github.com/4FMTWRV) (#6) ·\n[glzhangzhi](https://github.com/glzhangzhi)(per-session SSH 连接池修复)\n\n> 名单随版本更新;头像墙之外的每一份 issue 报告、复现步骤、根因线索同样珍贵——\n> 本仓库近半修复的起点都是一条写清楚的 issue。\n\n</details>\n",
106
106
  "readmeFilename": "README.md"
107
107
  }