dsh-remote-vs 0.30.0 → 0.31.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.
Files changed (40) hide show
  1. package/README.en.md +40 -18
  2. package/README.md +32 -17
  3. package/THIRD-PARTY-NOTICES.md +6 -6
  4. package/cordis.patch.yml +31 -76
  5. package/lib/client.js +61 -9
  6. package/lib/index.js +25 -3
  7. package/lib/p2-router-fs.js +15 -1
  8. package/lib/types/client/WorkspacesView.d.ts +2 -0
  9. package/lib/types/client/composer.d.ts +8 -1
  10. package/lib/types/client/selection-popup.d.ts +1 -1
  11. package/lib/types/client/ui.d.ts +7 -4
  12. package/lib/types/p2/router-fs.d.ts +9 -1
  13. package/lib/types/p2/worlds.d.ts +23 -0
  14. package/lib/{worlds-CRRZMZhg.js → worlds-BdxLeKul.js} +49 -1
  15. package/package.json +46 -46
  16. package/src/client/DirectoryFlow.tsx +8 -0
  17. package/src/client/EditorPane.tsx +5 -1
  18. package/src/client/HostsView.tsx +2 -0
  19. package/src/client/RemoteExplorer.tsx +11 -2
  20. package/src/client/RemoteRoot.tsx +1 -0
  21. package/src/client/SettingsHosts.tsx +1 -0
  22. package/src/client/WorkspaceWizard.tsx +1 -0
  23. package/src/client/WorkspacesView.tsx +21 -1
  24. package/src/client/composer.ts +8 -1
  25. package/src/client/scm/DiffView.tsx +5 -2
  26. package/src/client/selection-popup.ts +1 -1
  27. package/src/client/ui.tsx +9 -7
  28. package/src/client/vsc/vsc.css +55 -3
  29. package/src/index.ts +31 -0
  30. package/src/p2/router-fs.ts +29 -1
  31. package/src/p2/worlds.ts +68 -1
  32. package/src/routes.ts +19 -13
  33. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.helper.json +20 -0
  34. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz +4 -0
  35. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz.sha256 +1 -0
  36. package/vendor/dsh-remote-helpers/pkg-sea-bare-import.patch +30 -0
  37. package/vendor/dsh-remote-helpers/ssh-helper-runtime-deps.patch +4 -3
  38. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.helper.json +0 -19
  39. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz +0 -4
  40. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz.sha256 +0 -1
package/src/client/ui.tsx CHANGED
@@ -22,9 +22,12 @@ export const inputStyle: CSSProperties = {
22
22
 
23
23
  /**
24
24
  * Native dropdown that follows the DSH theme in BOTH states: the closed box
25
- * uses the translucent surface, while the open option popup (which Chrome
26
- * renders from `color-scheme`, ignoring translucent backgrounds) gets
27
- * explicit Canvas colors + a declared scheme so dark theme stays readable.
25
+ * uses the translucent surface, while the open option popup is painted by the
26
+ * browser from each option's own colors. Themed through the `.rvs-dropdown`
27
+ * class (vsc.css) — `Canvas`/`CanvasText` used to resolve against the page
28
+ * scheme, which DSH never switches, so the dark theme kept a white list.
29
+ * `color-scheme` is deliberately NOT set here: an inline `light dark` would
30
+ * override the class's per-theme value.
28
31
  */
29
32
  export const selectStyle: CSSProperties = {
30
33
  background: 'rgba(127,127,127,.12)',
@@ -35,13 +38,12 @@ export const selectStyle: CSSProperties = {
35
38
  fontSize: 12,
36
39
  fontFamily: 'inherit',
37
40
  outline: 'none',
38
- colorScheme: 'light dark',
39
41
  }
40
42
 
41
- /** Option rows of the open popup: explicit theme-following colors. */
43
+ /** Option rows of the open popup: opaque, theme-following, measured ≥7:1. */
42
44
  export const optionStyle: CSSProperties = {
43
- backgroundColor: 'Canvas',
44
- color: 'CanvasText',
45
+ backgroundColor: 'var(--rvs-option-bg, Canvas)',
46
+ color: 'var(--rvs-option-fg, CanvasText)',
45
47
  }
46
48
 
47
49
  export const btnStyle: CSSProperties = {
@@ -12,6 +12,54 @@
12
12
  * scheme gets the GitHub-Light set from the `body:not(...)` block below).
13
13
  */
14
14
 
15
+ /**
16
+ * Native `<select>` popups are painted by the browser from each `<option>`'s
17
+ * own computed colors. `Canvas`/`CanvasText` resolve against the PAGE's
18
+ * `color-scheme`, and DSH never switches that — it marks the theme on <body>
19
+ * (`body[data-ds-dark-theme]`) — so the open list stayed white in dark mode
20
+ * while the closed control was dark.
21
+ *
22
+ * The tokens live on <body>, NOT on `.rvs-root`, because the plugin also
23
+ * renders selects on the host Settings page (Remote hosts), outside the
24
+ * Workbench root. Values are OPAQUE on purpose — a popup cannot composite a
25
+ * translucent surface over the page — and measured with the WCAG formula:
26
+ * light #1f1f1f on #ffffff ≈ 15.7:1
27
+ * dark #cccccc on #3c3c3c ≈ 7.1:1
28
+ */
29
+ body {
30
+ --rvs-option-bg: #ffffff;
31
+ --rvs-option-fg: #1f1f1f;
32
+ }
33
+
34
+ body[data-ds-dark-theme] {
35
+ --rvs-option-bg: #3c3c3c;
36
+ --rvs-option-fg: #cccccc;
37
+ }
38
+
39
+ /**
40
+ * Selects whose popup needs theming: `.rvs-select` is the workbench's own
41
+ * dropdown, `.rvs-dropdown` marks the inline-styled native selects (Settings,
42
+ * host forms, workspace wizard). `color-scheme` is stated per theme so the
43
+ * popup's own chrome (scrollbar, focus ring) follows it too — `light dark`
44
+ * kept the UA on the page scheme, which never turns dark.
45
+ */
46
+ .rvs-select,
47
+ .rvs-dropdown {
48
+ color-scheme: light;
49
+ }
50
+
51
+ body[data-ds-dark-theme] .rvs-select,
52
+ body[data-ds-dark-theme] .rvs-dropdown {
53
+ color-scheme: dark;
54
+ }
55
+
56
+ .rvs-select option,
57
+ .rvs-dropdown option {
58
+ background-color: var(--rvs-option-bg);
59
+ color: var(--rvs-option-fg);
60
+ }
61
+
62
+
15
63
  .rvs-root {
16
64
  --rvs-fg: var(--dsw-alias-label-primary, #e6e6e6);
17
65
  --rvs-fg2: var(--dsw-alias-label-secondary, #b9b9b9);
@@ -1000,12 +1048,16 @@ body:not([data-ds-dark-theme]) .rvs-fi {
1000
1048
  font: inherit;
1001
1049
  font-size: 12px;
1002
1050
  outline: none;
1003
- color-scheme: light dark;
1051
+ color-scheme: light;
1052
+ }
1053
+
1054
+ body[data-ds-dark-theme] .rvs-select {
1055
+ color-scheme: dark;
1004
1056
  }
1005
1057
 
1006
1058
  .rvs-select option {
1007
- background: Canvas;
1008
- color: CanvasText;
1059
+ background-color: var(--rvs-option-bg);
1060
+ color: var(--rvs-option-fg);
1009
1061
  }
1010
1062
 
1011
1063
  /* ------------------------------------------------- conversation-view mount */
package/src/index.ts CHANGED
@@ -334,6 +334,37 @@ export function apply(ctx: Context, config?: ResolvedConfig): void {
334
334
  })
335
335
  ctx.effect(() => () => { changes.dispose() }, 'dsh-remote-vs: changes ledger')
336
336
 
337
+ /**
338
+ * DSH's own sidebar can delete a Workspace. That is the user removing it
339
+ * outright, so the remote binding that named it must go too (tombstoned by
340
+ * `removeWorkspace`, keeping sessions readable). The REVERSE direction is
341
+ * deliberately asymmetric: unbinding from this plugin keeps the native
342
+ * Workspace record and only adds a fail-closed tombstone — the user asked for
343
+ * exactly that, so a tombstone never vanishes from DSH's workspace list.
344
+ *
345
+ * `domain/changed` is a host-internal event, hence the structural cast: it is
346
+ * not part of this plugin's inject surface, and a host without it simply keeps
347
+ * the old behaviour (the deletion stays local).
348
+ */
349
+ try {
350
+ (ctx as unknown as {
351
+ on(event: string, handler: (change: { domain?: string; table?: string; operation?: string; key?: string }) => void): void
352
+ }).on('domain/changed', (change) => {
353
+ try {
354
+ if (change.domain !== 'workspace' || change.table !== 'workspaces') return
355
+ if (change.operation !== 'deleted' || typeof change.key !== 'string') return
356
+ const removed = worlds.forgetNativeWorkspace(change.key)
357
+ if (removed !== undefined) {
358
+ ctx.logger.info(`[remote-vs] native workspace deleted: binding ${removed} unbound`)
359
+ }
360
+ } catch {
361
+ // A cascade failure must never break the host's domain notification.
362
+ }
363
+ })
364
+ } catch {
365
+ // Ignore: a host without the event keeps the deletion local.
366
+ }
367
+
337
368
  /**
338
369
  * Local port forwards (`ssh -L`) — resident listeners with their own
339
370
  * lifecycle, on purpose.
@@ -15,6 +15,7 @@ import type {
15
15
  FsPathInfo,
16
16
  FsTarget,
17
17
  FsVersion,
18
+ FsWriteBytesOutcome,
18
19
  FsWriteIntent,
19
20
  FsWriteOutcome,
20
21
  } from '@deepseek-ai/dsh-fs'
@@ -225,8 +226,16 @@ export default class TransparentFileSystem extends FileSystem {
225
226
  if (pw.kind !== cw.kind) return false
226
227
  if (pw.kind === 'local') return this.localFs.contains(parent, child)
227
228
  if (pw.id !== (cw as Extract<WorldRoute, { kind: 'remote' }>).id) return false
228
- // Same remote binding: containment by remote path order.
229
+ // Same remote binding: let the remote provider answer. Comparing process
230
+ // paths here assumed both sides keep the same spelling, and since alpha.3
231
+ // the binding ROOT commits the alias spelling (the workspace record needs a
232
+ // path that exists on the Host) while its children stay remote-spelled —
233
+ // that pair shares no prefix. The provider owns its target identity, so its
234
+ // own containment is the correct answer; the path compare stays as the
235
+ // fallback for a provider view that is not cached yet.
229
236
  try {
237
+ const remoteFs = this.remote.cachedFs(pw.alias)
238
+ if (remoteFs !== undefined) return remoteFs.contains(parent, child)
230
239
  const left = this.processPath(parent)
231
240
  const right = this.processPath(child)
232
241
  return right === left || right.startsWith(left.endsWith('/') ? left : `${left}/`)
@@ -311,6 +320,25 @@ export default class TransparentFileSystem extends FileSystem {
311
320
  return fs.writeText(target, content, expected, signal, this.remote.rewritePolicy(sandboxPolicy, world))
312
321
  }
313
322
 
323
+ /**
324
+ * alpha.3's `FileSystem` gained verbatim byte writes. The base class rejects
325
+ * them, so a router that only forwards text silently turned every remote byte
326
+ * write (document-preview renders, attachment materialization) into a
327
+ * capability regression. Delegate like `writeText`; a provider from an older
328
+ * generation still fails as a typed `FsError` instead of a `TypeError`.
329
+ */
330
+ async writeBytes(
331
+ target: FsTarget,
332
+ data: Uint8Array,
333
+ expected?: FsWriteIntent,
334
+ signal?: AbortSignal,
335
+ sandboxPolicy?: SandboxExecutionPolicy,
336
+ ): Promise<FsWriteBytesOutcome> {
337
+ const { fs, world } = await this.backendOf(target)
338
+ if (typeof fs.writeBytes !== 'function') throw this.unsupportedRemote('writing bytes')
339
+ return fs.writeBytes(target, data, expected, signal, this.remote.rewritePolicy(sandboxPolicy, world))
340
+ }
341
+
314
342
  async editText(
315
343
  target: FsTarget,
316
344
  edit: FsEditRequest,
package/src/p2/worlds.ts CHANGED
@@ -94,6 +94,12 @@ export class RemoteWorlds {
94
94
  */
95
95
  private readonly dialingRpc = new Map<string, Promise<RpcConnection>>()
96
96
  private readonly fsViews = new Map<string, Promise<FsView>>()
97
+ /**
98
+ * Native Workspace registration id -> alias dir, refreshed by every
99
+ * `syncWorkspaces()`. DSH reports a sidebar workspace deletion by its own id,
100
+ * which carries no path, so this is the only way back to the binding.
101
+ */
102
+ private readonly nativeWorkspaces = new Map<string, string>()
97
103
  private readonly fsReady = new Map<string, FsView>()
98
104
  private readonly procs = new Map<string, SshProcRuntime>()
99
105
  /** Consecutive dial failures per alias; while the cooldown is set, no dial is attempted. */
@@ -306,6 +312,15 @@ export class RemoteWorlds {
306
312
  */
307
313
  toSessionPath(route: Extract<WorldRoute, { kind: 'remote' }>, remoteAbsPath: string): string {
308
314
  if (!this.underRemoteBase(route, remoteAbsPath)) return remoteAbsPath
315
+ // alpha.3: a Session's cwd is now validated by the HOST filesystem when the
316
+ // Session is attached to (and indexed under) a Workspace — dsh-workspace
317
+ // realpaths the header spelling and requires it to equal the workspace
318
+ // record path. A remote spelling can never pass that local check, so the
319
+ // ROOT of a binding is always committed with its alias spelling (a real
320
+ // local directory, and exactly what the workspace record holds). Deeper
321
+ // remote paths keep the historical rule: they are only ever reached through
322
+ // this cwd, so their spelling does not become a workspace path.
323
+ if (remoteAbsPath === this.remoteRoot(route)) return route.aliasPath
309
324
  let routed: WorldRoute
310
325
  try {
311
326
  routed = this.routeDir(remoteAbsPath)
@@ -318,9 +333,15 @@ export class RemoteWorlds {
318
333
  return this.toAliasPath(route, remoteAbsPath)
319
334
  }
320
335
 
336
+ /** One binding's remote root, without a trailing slash (except `/` itself). */
337
+ private remoteRoot(route: Extract<WorldRoute, { kind: 'remote' }>): string {
338
+ const root = route.remotePath
339
+ return root.endsWith('/') && root !== '/' ? root.slice(0, -1) : root
340
+ }
341
+
321
342
  /** Inverse of {@link toRemotePath}: the alias spelling of a remote path. */
322
343
  toAliasPath(route: Extract<WorldRoute, { kind: 'remote' }>, remoteAbsPath: string): string {
323
- const base = route.remotePath.endsWith('/') && route.remotePath !== '/' ? route.remotePath.slice(0, -1) : route.remotePath
344
+ const base = this.remoteRoot(route)
324
345
  if (!this.containsRemote(base, remoteAbsPath)) return remoteAbsPath
325
346
  if (remoteAbsPath === base) return route.aliasPath
326
347
  // `containsRemote` already guarded the boundary, so the remainder is a
@@ -390,6 +411,7 @@ export class RemoteWorlds {
390
411
  | {
391
412
  resolveByPath(path: string): Promise<unknown>
392
413
  create(path: string, title?: string): Promise<unknown>
414
+ list?(): readonly { id: unknown; path: string; title?: string }[]
393
415
  }
394
416
  | undefined
395
417
  for (const binding of bindings) {
@@ -434,6 +456,51 @@ export class RemoteWorlds {
434
456
  }
435
457
  }
436
458
  }
459
+ // Remember which NATIVE Workspace record stands for which alias dir. This
460
+ // is the reverse mapping the deletion cascade needs: DSH reports a native
461
+ // workspace deletion by its own id, which is not our binding id.
462
+ this.nativeWorkspaces.clear()
463
+ if (registry === undefined || typeof registry.list !== 'function') return
464
+ let registered: readonly { id: unknown; path: string }[]
465
+ try {
466
+ registered = registry.list()
467
+ } catch {
468
+ return
469
+ }
470
+ for (const workspace of registered) {
471
+ try {
472
+ if (!this.contains(aliasRoot(), workspace.path)) continue
473
+ this.nativeWorkspaces.set(String(workspace.id), workspace.path)
474
+ } catch {
475
+ // Ignore one unreadable record; the rest still index.
476
+ }
477
+ }
478
+ }
479
+
480
+ /**
481
+ * A native Workspace under the alias root was deleted by the user (DSH's own
482
+ * sidebar): its binding follows — unbind + tombstone.
483
+ *
484
+ * The reverse direction is deliberately NOT symmetric: unbinding from this
485
+ * plugin keeps the native Workspace record (the user asked for exactly that —
486
+ * the workspace stays listed and only a fail-closed tombstone is added), while
487
+ * deleting the Workspace in DSH's sidebar is the user removing it outright, so
488
+ * the binding that named it goes with it. Without this, a deleted native
489
+ * workspace left a binding routing into an alias dir nobody can reach.
490
+ *
491
+ * @param nativeId - DSH's Workspace registration id.
492
+ * @returns the binding id that was removed, when one matched.
493
+ */
494
+ forgetNativeWorkspace(nativeId: string): string | undefined {
495
+ const path = this.nativeWorkspaces.get(nativeId)
496
+ if (path === undefined) return undefined
497
+ this.nativeWorkspaces.delete(nativeId)
498
+ if (!this.contains(aliasRoot(), path)) return undefined
499
+ const basename = path.replace(/[\\/]+$/u, '').split(/[\\/]/u).pop() ?? ''
500
+ if (basename === '') return undefined
501
+ const known = this.deps.store.listWorkspaces().some(binding => binding.id === basename)
502
+ if (!known) return undefined
503
+ return this.deps.store.removeWorkspace(basename) ? basename : undefined
437
504
  }
438
505
 
439
506
  // ------------------------------------------------------------ remote contexts
package/src/routes.ts CHANGED
@@ -586,18 +586,21 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
586
586
  // their listeners would keep the local ports bound until the Host
587
587
  // restarts. Close them BEFORE the connection they ride on goes away.
588
588
  forwards?.stopAlias(alias)
589
- pool.forget(alias)
590
- monitor.forget(alias)
591
- forgetProcesses(alias)
592
- void worlds.dropHost(alias).catch(() => undefined)
593
- if (!store.remove(alias)) {
594
- writeJson(res, 404, { error: `unknown host alias: ${alias}` })
595
- return
596
- }
597
- void worlds.syncWorkspaces().catch(() => undefined)
598
- writeJson(res, 200, { ok: true })
599
- return
600
- }
589
+ pool.forget(alias)
590
+ monitor.forget(alias)
591
+ forgetProcesses(alias)
592
+ void worlds.dropHost(alias).catch(() => undefined)
593
+ if (!store.remove(alias)) {
594
+ writeJson(res, 404, { error: `unknown host alias: ${alias}` })
595
+ return
596
+ }
597
+ // Awaited: the cascade removed this host's bindings, so the sync pass
598
+ // prunes their native Workspace registrations before we report success
599
+ // (the sidebar row is gone when the client refreshes its list).
600
+ await worlds.syncWorkspaces().catch(() => undefined)
601
+ writeJson(res, 200, { ok: true })
602
+ return
603
+ }
601
604
  const read = await readBodyOrError<Record<string, unknown>>(req, res, { objectOnly: true })
602
605
  if (!read.ok) return
603
606
  const body = read.body
@@ -1341,7 +1344,10 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
1341
1344
  writeJson(res, 404, { error: `unknown workspace id: ${id}` })
1342
1345
  return
1343
1346
  }
1344
- void worlds.syncWorkspaces().catch(() => undefined)
1347
+ // Awaited so the response means "unbound": the sync pass prunes the
1348
+ // stale native Workspace registration (see worlds.syncWorkspaces), so
1349
+ // the sidebar row is already gone when the client refreshes.
1350
+ await worlds.syncWorkspaces().catch(() => undefined)
1345
1351
  writeJson(res, 200, { ok: true })
1346
1352
  },
1347
1353
  },
@@ -0,0 +1,20 @@
1
+ {
2
+ "kind": "executable",
3
+ "version": "0.2.3-alpha.3",
4
+ "platform": "linux-x64",
5
+ "target": "node24-linux-x64",
6
+ "tarball": "dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz",
7
+ "tarballSha256": "5429ff8e390a5ac29e5aa72bfd7c3dea2bbb5b03335e4210bb56d0e82572e4f0",
8
+ "binarySha256": "be00e22ad38269645ff638c4853bb5100b2ed9660d2dfd49a6f4aca1c5b5d46a",
9
+ "protocol": 3,
10
+ "nodeVersion": "v24.23.0",
11
+ "glibcCeiling": "2.35",
12
+ "builtAt": "2026-12-01T10:20:32+08:00",
13
+ "builtOn": "WSL2 Ubuntu-22.04 (glibc 2.35), build host node v24.21.0 / pkg-embedded node v24.23.0, pnpm 11.28.5, tag dsh-v0.2.3-alpha.3 (841f76d3c51966375ebed9b25512ebce4ac02079)",
14
+ "sourcePatch": [
15
+ "glibc-ceiling.patch",
16
+ "ssh-helper-runtime-deps.patch",
17
+ "pkg-sea-bare-import.patch"
18
+ ],
19
+ "notes": "Protocol 3 (generation G3: adds fs.writeBytes, 8 MiB per call, on top of G2 fs.patch/fs.delete/fs.move). Three upstream tag defects needed source patches: (1) @deepseek-ai/dsh-error is a required peer of dsh-llm/dsh-sandbox/dsh-subprocess/dsh-win32-process but missing from packages/ssh/ssh-helper-runtime dependencies -> verifyRuntimeClosure aborts; (2) @deepseek-ai/dsh-fs-patch is a dependency of dsh-fs-local but compileRuntime() only builds packages listed in that manifest, so its lib/ never existed -> handshake ERR_MODULE_NOT_FOUND; (3) 0.2.3-alpha.3 adds @deepseek-ai/dsh-attachment as a required peer of dsh-ptc-runtime, also missing from the manifest -> closure gate aborts. All three are fixed by ssh-helper-runtime-deps.patch (3 added dependencies). One build-environment defect also needed a patch: @yao-pkg/pkg 6.21.0 SEA resolves a bare import made from a file OUTSIDE the snapshot starting at the mount point (/snapshot/node_modules), while the payload is stored at /snapshot/<project>/.../staging/node_modules; 0.2.3-alpha.3's new scoped-repl PTC evaluates programs as real files, so verify-ssh-helper-artifact failed native-flock with ERR_MODULE_NOT_FOUND (the rc.4 generation ran PTC in-process and never hit this). pkg-sea-bare-import.patch starts that lookup at the packaged entrypoint's directory instead; apply it to node_modules/@yao-pkg/pkg/prelude/sea-bootstrap.bundle.js after pnpm install (it is a dependency patch, not a repo source patch). glibc ceiling relaxed from upstream 2.28 to 2.35 because there is no docker for the manylinux pty recompile and the fleet glibc is 2.35. Official 8-check suite passed (verify-ssh-helper-artifact --archive=... --sandbox=required): executable-handshake, guarded-files-and-streams, managed-process-output, process-cancellation, native-pty, native-flock, embedded-ptc-and-deadline, sandbox-enforcement. pkg 6.21.0 resolves the latest Node 24.x from nodejs.org at build time; on 2026-12-01 that was v24.23.0 (the rc.4 build on 2026-11-18 had v24.22.3)."
20
+ }
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz
3
+ size: 47497147 bytes
4
+ sha256: 5429ff8e390a5ac29e5aa72bfd7c3dea2bbb5b03335e4210bb56d0e82572e4f0
@@ -0,0 +1 @@
1
+ 5429ff8e390a5ac29e5aa72bfd7c3dea2bbb5b03335e4210bb56d0e82572e4f0 dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz
@@ -0,0 +1,30 @@
1
+ --- a/node_modules/@yao-pkg/pkg/prelude/sea-bootstrap.bundle.js
2
+ +++ b/node_modules/@yao-pkg/pkg/prelude/sea-bootstrap.bundle.js
3
+ @@ -2992,6 +2992,18 @@
4
+ }
5
+ return null;
6
+ }
7
+ + // DSH local-build fix: pkg's SEA manifest stores provider paths below the
8
+ + // snapshot mount (e.g. /snapshot/<project>/.../staging/node_modules), so a
9
+ + // bare import from a file outside the snapshot must start package lookup at
10
+ + // the packaged entrypoint's directory instead of the mount point.
11
+ + function resolvePackageStartDir(mountPoint) {
12
+ + const argv1 = process.argv[1];
13
+ + if (typeof argv1 === 'string' && argv1.length > mountPoint.length + 1 && argv1.startsWith(mountPoint + '/')) {
14
+ + const slash = argv1.lastIndexOf('/');
15
+ + if (slash > mountPoint.length) return argv1.slice(0, slash);
16
+ + }
17
+ + return mountPoint;
18
+ + }
19
+ function resolveBareSpecifier(specifier, context, nextResolve) {
20
+ if (isNodeBuiltin(specifier)) {
21
+ return nextResolve(specifier, context);
22
+ @@ -3027,7 +3039,7 @@
23
+ if (!mp) continue;
24
+ const result = resolvePackageInVFS(
25
+ vfs,
26
+ - mp,
27
+ + resolvePackageStartDir(mp),
28
+ packageName,
29
+ packageSubpath,
30
+ context
@@ -1,14 +1,15 @@
1
1
  diff --git a/packages/ssh/ssh-helper-runtime/package.json b/packages/ssh/ssh-helper-runtime/package.json
2
- index f58eabc2..34dd09c8 100644
2
+ index c311088e..b2ee6501 100644
3
3
  --- a/packages/ssh/ssh-helper-runtime/package.json
4
4
  +++ b/packages/ssh/ssh-helper-runtime/package.json
5
- @@ -62,6 +62,8 @@
5
+ @@ -62,6 +62,9 @@
6
6
  "@deepseek-ai/dsh-util-values": "workspace:*",
7
7
  "@deepseek-ai/dsh-win32-process": "workspace:*",
8
8
  "@deepseek-ai/node-addon-system": "workspace:~",
9
9
  - "@deepseek-ai/schemastery": "workspace:~"
10
10
  + "@deepseek-ai/schemastery": "workspace:~",
11
11
  + "@deepseek-ai/dsh-error": "workspace:*",
12
- + "@deepseek-ai/dsh-fs-patch": "workspace:*"
12
+ + "@deepseek-ai/dsh-fs-patch": "workspace:*",
13
+ + "@deepseek-ai/dsh-attachment": "workspace:*"
13
14
  }
14
15
  }
@@ -1,19 +0,0 @@
1
- {
2
- "kind": "executable",
3
- "version": "0.2.2-rc.4",
4
- "platform": "linux-x64",
5
- "target": "node24-linux-x64",
6
- "tarball": "dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz",
7
- "tarballSha256": "05c50b383b1f0b5c5673d7ef962cb0ab36774b40e2beb523ffef0ce92b075705",
8
- "binarySha256": "8b400153e7071825402faf76ed7dd50deb0c81babd9f961307e18a278dcf27e1",
9
- "protocol": 3,
10
- "nodeVersion": "v24.22.3",
11
- "glibcCeiling": "2.35",
12
- "builtAt": "2026-11-18T14:21:26+08:00",
13
- "builtOn": "WSL2 Ubuntu-22.04 (glibc 2.35), build host node v24.21.0 / pkg-embedded node v24.22.3, pnpm 11.28.5, tag dsh-v0.2.2-rc.4 (3f321d32bfe382212a8ed8785c1d47a5a300aa23)",
14
- "sourcePatch": [
15
- "glibc-ceiling.patch",
16
- "ssh-helper-runtime-deps.patch"
17
- ],
18
- "notes": "Protocol 3 (generation G2: fs.patch/fs.delete/fs.move present). Two upstream tag defects required source patches: (1) @deepseek-ai/dsh-error is a required peer of dsh-llm/dsh-sandbox/dsh-subprocess/dsh-win32-process but missing from packages/ssh/ssh-helper-runtime dependencies -> verifyRuntimeClosure aborts; (2) @deepseek-ai/dsh-fs-patch is a dependency of dsh-fs-local but compileRuntime() only builds packages listed in that manifest, so its lib/ never existed -> probeHelper handshake ERR_MODULE_NOT_FOUND. Both fixed by ssh-helper-runtime-deps.patch (2 added dependencies). glibc ceiling relaxed from upstream 2.28 to 2.35 because there is no docker for the manylinux pty recompile and the fleet glibc is 2.35. Official 8-check suite passed (verify-ssh-helper-artifact --archive=... --sandbox=required): executable-handshake, guarded-files-and-streams, managed-process-output, process-cancellation, native-pty, native-flock, embedded-ptc-and-deadline, sandbox-enforcement."
19
- }
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz
3
- size: 47234718 bytes
4
- sha256: 05c50b383b1f0b5c5673d7ef962cb0ab36774b40e2beb523ffef0ce92b075705
@@ -1 +0,0 @@
1
- 05c50b383b1f0b5c5673d7ef962cb0ab36774b40e2beb523ffef0ce92b075705 dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz