dsh-remote-vs 0.29.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.
- package/README.en.md +53 -20
- package/README.md +41 -19
- package/THIRD-PARTY-NOTICES.md +6 -6
- package/cordis.patch.yml +31 -76
- package/lib/client.js +319 -91
- package/lib/index.js +845 -129
- package/lib/p2-router-fs.js +15 -1
- package/lib/types/changes/recorder.d.ts +65 -10
- package/lib/types/changes/status.d.ts +48 -3
- package/lib/types/client/ConnectionsSection.d.ts +73 -0
- package/lib/types/client/WorkspacesView.d.ts +2 -0
- package/lib/types/client/api.d.ts +41 -2
- package/lib/types/client/composer.d.ts +8 -1
- package/lib/types/client/scm/actions.d.ts +25 -1
- package/lib/types/client/selection-popup.d.ts +1 -1
- package/lib/types/client/ui.d.ts +7 -4
- package/lib/types/p2/helper-rpc.d.ts +48 -0
- package/lib/types/p2/router-fs.d.ts +9 -1
- package/lib/types/p2/worlds.d.ts +51 -0
- package/lib/types/pool.d.ts +245 -10
- package/lib/types/protocol.d.ts +96 -0
- package/lib/{worlds-RG8K5eom.js → worlds-BdxLeKul.js} +134 -7
- package/package.json +46 -46
- package/src/changes/recorder.ts +151 -15
- package/src/changes/status.ts +59 -4
- package/src/client/ConnectionsSection.tsx +359 -0
- package/src/client/DirectoryFlow.tsx +8 -0
- package/src/client/EditorPane.tsx +5 -1
- package/src/client/HostsView.tsx +2 -0
- package/src/client/MonitorView.tsx +14 -0
- package/src/client/RemoteExplorer.tsx +11 -2
- package/src/client/RemoteRoot.tsx +1 -0
- package/src/client/SettingsHosts.tsx +1 -0
- package/src/client/WorkspaceWizard.tsx +1 -0
- package/src/client/WorkspacesView.tsx +21 -1
- package/src/client/api.ts +72 -4
- package/src/client/composer.ts +8 -1
- package/src/client/i18n.ts +50 -2
- package/src/client/scm/DiffView.tsx +5 -2
- package/src/client/scm/actions.ts +63 -12
- package/src/client/selection-popup.ts +1 -1
- package/src/client/ui.tsx +9 -7
- package/src/client/vsc/vsc.css +231 -3
- package/src/index.ts +31 -0
- package/src/p2/helper-rpc.ts +73 -5
- package/src/p2/router-fs.ts +29 -1
- package/src/p2/worlds.ts +116 -1
- package/src/pool.ts +736 -111
- package/src/protocol.ts +100 -0
- package/src/routes.ts +85 -13
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.helper.json +20 -0
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz +4 -0
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz.sha256 +1 -0
- package/vendor/dsh-remote-helpers/pkg-sea-bare-import.patch +30 -0
- package/vendor/dsh-remote-helpers/ssh-helper-runtime-deps.patch +4 -3
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.helper.json +0 -19
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz +0 -4
- package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz.sha256 +0 -1
package/src/protocol.ts
CHANGED
|
@@ -34,6 +34,8 @@ export const REMOTE_API = {
|
|
|
34
34
|
viewSettings: '/api/dsh-remote/view-settings',
|
|
35
35
|
/** Profile-wide proxy default (per-host overrides live on the host rows). */
|
|
36
36
|
proxySettings: '/api/dsh-remote/proxy-settings',
|
|
37
|
+
/** Live SSH pool shape per host: connections, channels, slot occupancy. */
|
|
38
|
+
connections: '/api/dsh-remote/connections',
|
|
37
39
|
/** Current working directory of one live session (click resolution helper). */
|
|
38
40
|
sessionCwd: '/api/dsh-remote/session-cwd',
|
|
39
41
|
/** What one live session changed on its remote host (the review panel). */
|
|
@@ -335,6 +337,104 @@ export interface RemoteConnectionStatus {
|
|
|
335
337
|
configured?: EgressInfo
|
|
336
338
|
}
|
|
337
339
|
|
|
340
|
+
/** One pool connection kind: whether it is dialed, and how many channels ride it. */
|
|
341
|
+
export interface RemotePoolLane {
|
|
342
|
+
/**
|
|
343
|
+
* The connection is fully dialed. A dial still in flight is NOT open (the pool
|
|
344
|
+
* creates its bookkeeping entry before the Client exists), and every lane is
|
|
345
|
+
* always present: a kind that is not dialed reports `false` here with zero
|
|
346
|
+
* channels and zero rounds, so "not in use" is a value, not a missing field.
|
|
347
|
+
*/
|
|
348
|
+
open: boolean
|
|
349
|
+
/** Channels currently open on this connection (exec sessions, SFTP sessions, PTY, tunnels). */
|
|
350
|
+
channels: number
|
|
351
|
+
/** Rounds currently pinned to it (an operation in flight keeps the connection alive). */
|
|
352
|
+
held: number
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** Channel-slot occupancy of one budget: what is running and what is waiting behind it. */
|
|
356
|
+
export interface RemotePoolSlots {
|
|
357
|
+
/** Operations holding a channel right now. */
|
|
358
|
+
active: number
|
|
359
|
+
/** Operations queued for one (they fail after a bounded wait). */
|
|
360
|
+
queued: number
|
|
361
|
+
/** How many may run at once. */
|
|
362
|
+
limit: number
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Live SSH pool shape of one host.
|
|
367
|
+
*
|
|
368
|
+
* Read-only diagnostics for the monitor page: "why is this slow" is usually one
|
|
369
|
+
* of three answers — too few connections (everything shares one TCP), the channel
|
|
370
|
+
* budget is full, or a queue has built up behind a stalled operation. Each is a
|
|
371
|
+
* number here, so the page can show the answer instead of a hunch.
|
|
372
|
+
*/
|
|
373
|
+
export interface RemoteHostPoolStats {
|
|
374
|
+
alias: string
|
|
375
|
+
/** The four connection classes the pool can hold for one host. */
|
|
376
|
+
connections: {
|
|
377
|
+
/** Everything that is not isolated: exec, git, monitor, helper, agent tools. */
|
|
378
|
+
shared: RemotePoolLane
|
|
379
|
+
/** Interactive terminals (their own connection). */
|
|
380
|
+
pty: RemotePoolLane
|
|
381
|
+
/** Local port forwards (their own connection). */
|
|
382
|
+
forward: RemotePoolLane
|
|
383
|
+
/** File operations: browse, read, write, upload, download (their own connection). */
|
|
384
|
+
sftp: RemotePoolLane
|
|
385
|
+
/**
|
|
386
|
+
* The SSH helper (p2 transport: the file/Git fast path).
|
|
387
|
+
*
|
|
388
|
+
* Optional because the helper dials from `p2/worlds.ts`, not from the pool: a
|
|
389
|
+
* Host that cannot report it (or has no helper deployed) omits the key rather
|
|
390
|
+
* than claiming "closed". When present, `channels` is the helper's own session
|
|
391
|
+
* and `held` counts the RPC calls in flight — a helper that is saturated shows
|
|
392
|
+
* up here instead of looking like an idle connection.
|
|
393
|
+
*/
|
|
394
|
+
helper?: RemotePoolLane
|
|
395
|
+
}
|
|
396
|
+
/** Channel budget of the shared connection (exec sessions, plus SFTP that fell back). */
|
|
397
|
+
slots: RemotePoolSlots
|
|
398
|
+
/** Channel budget of the dedicated SFTP connection (absent while it is not used). */
|
|
399
|
+
sftpSlots?: RemotePoolSlots
|
|
400
|
+
/**
|
|
401
|
+
* Channel budget of the NETWORK-verb lane (git fetch/pull/push/sync).
|
|
402
|
+
*
|
|
403
|
+
* These verbs can hold a channel for the whole network timeout (20 minutes by
|
|
404
|
+
* default), so they get their own small budget instead of eating the shared
|
|
405
|
+
* exec slots. Absent while no network verb is running and none is queued.
|
|
406
|
+
*/
|
|
407
|
+
netSlots?: RemotePoolSlots
|
|
408
|
+
/**
|
|
409
|
+
* Channel budget of the GIT-COMMAND lane (git status / diff / log, the session
|
|
410
|
+
* ledger's own scans, and the SCM panel's local writes such as commit / stage).
|
|
411
|
+
*
|
|
412
|
+
* A repository-wide `git status` is the longest single command the plugin runs
|
|
413
|
+
* outside the network verbs (300 s by default, 30 min at the ceiling) and it
|
|
414
|
+
* shares the connection with monitoring, the process panel and agent tools. Its
|
|
415
|
+
* own budget keeps a slow command from spending the exec slots those poll on.
|
|
416
|
+
* Absent while no git command is running and none is queued.
|
|
417
|
+
*/
|
|
418
|
+
gitSlots?: RemotePoolSlots
|
|
419
|
+
/** Route the shared connection was opened through, when it is open. */
|
|
420
|
+
egress?: EgressInfo
|
|
421
|
+
/**
|
|
422
|
+
* File operations are riding the SHARED connection right now, because the host
|
|
423
|
+
* refused one of its own.
|
|
424
|
+
*
|
|
425
|
+
* Sticky until a dedicated connection succeeds again or the host is edited. It
|
|
426
|
+
* is diagnostic, not an error: the files still work, they just lost the
|
|
427
|
+
* isolation (and a browse refresh can queue behind exec again), which is
|
|
428
|
+
* exactly the thing a user staring at the monitor page cannot see otherwise.
|
|
429
|
+
*/
|
|
430
|
+
sftpFallback?: boolean
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/** Response of {@link REMOTE_API.connections}. */
|
|
434
|
+
export interface RemotePoolStatsResult {
|
|
435
|
+
hosts: RemoteHostPoolStats[]
|
|
436
|
+
}
|
|
437
|
+
|
|
338
438
|
/** Remote OS probe outcome. */
|
|
339
439
|
export interface RemoteProbe {
|
|
340
440
|
alias: string
|
package/src/routes.ts
CHANGED
|
@@ -62,6 +62,25 @@ function bodyAliasOf(value: unknown): string | null {
|
|
|
62
62
|
return typeof alias === 'string' && alias !== '' ? alias : null
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Which channel budget an exec request asks for, from the two accepted spellings.
|
|
67
|
+
*
|
|
68
|
+
* `lane` is the current field (`'network'` for fetch/pull/push, `'git'` for git
|
|
69
|
+
* commands — reads and local writes alike) and `network: true` is the flag from
|
|
70
|
+
* before the git budget existed — kept because a browser tab can run an OLD client
|
|
71
|
+
* bundle against this host. An explicit `lane` wins when both are sent, and
|
|
72
|
+
* anything else (a typo, `'exec'`, a number) is IGNORED so a bad value can never
|
|
73
|
+
* move traffic onto a smaller budget than the caller meant.
|
|
74
|
+
*
|
|
75
|
+
* An empty object means "no lane": the command spends the shared exec budget,
|
|
76
|
+
* which is what every caller that predates the lanes gets.
|
|
77
|
+
*/
|
|
78
|
+
function execLaneOf(body: { lane?: unknown; network?: unknown }): { lane?: 'network' | 'git' } {
|
|
79
|
+
if (body.lane === 'network' || body.lane === 'git') return { lane: body.lane }
|
|
80
|
+
if (body.network === true) return { lane: 'network' }
|
|
81
|
+
return {}
|
|
82
|
+
}
|
|
83
|
+
|
|
65
84
|
/**
|
|
66
85
|
* A caller mistake the route can name: well-formed HTTP, unusable payload.
|
|
67
86
|
*
|
|
@@ -567,18 +586,21 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
567
586
|
// their listeners would keep the local ports bound until the Host
|
|
568
587
|
// restarts. Close them BEFORE the connection they ride on goes away.
|
|
569
588
|
forwards?.stopAlias(alias)
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
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
|
+
}
|
|
582
604
|
const read = await readBodyOrError<Record<string, unknown>>(req, res, { objectOnly: true })
|
|
583
605
|
if (!read.ok) return
|
|
584
606
|
const body = read.body
|
|
@@ -629,6 +651,41 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
629
651
|
writeJson(res, 200, { connections: pool.status() })
|
|
630
652
|
},
|
|
631
653
|
},
|
|
654
|
+
// ------------------------------------------------------ pool shape
|
|
655
|
+
// The live pool per host: the four connection lanes, their open channels and
|
|
656
|
+
// the two channel budgets. Same contract as `status` (read-only, dial-free) —
|
|
657
|
+
// it answers "why is this slow" with numbers instead of a hunch, which is
|
|
658
|
+
// what the monitor page needs.
|
|
659
|
+
{
|
|
660
|
+
kind: 'exact',
|
|
661
|
+
path: REMOTE_API.connections,
|
|
662
|
+
handler: async (req, res) => {
|
|
663
|
+
if (!isLoopbackRequest(req)) {
|
|
664
|
+
writeJson(res, 403, { error: 'forbidden: loopback-only' })
|
|
665
|
+
return
|
|
666
|
+
}
|
|
667
|
+
if (req.method !== 'GET') {
|
|
668
|
+
writeJson(res, 405, { error: `method not allowed: ${req.method}` })
|
|
669
|
+
return
|
|
670
|
+
}
|
|
671
|
+
try {
|
|
672
|
+
const hosts = pool.stats()
|
|
673
|
+
// The helper owns the fifth lane but dials outside the pool, so its
|
|
674
|
+
// record is merged in here. A host without one keeps the key absent —
|
|
675
|
+
// "cannot say" must not read as "closed". `helperLane` never dials
|
|
676
|
+
// (see its docstring), so a monitor poll cannot bring a helper up.
|
|
677
|
+
await Promise.all(hosts.map(async host => {
|
|
678
|
+
// One host whose record misbehaves must not cost the whole page its
|
|
679
|
+
// data: the diagnostic value of the other hosts is the point.
|
|
680
|
+
const lane = await worlds.helperLane(host.alias).catch(() => undefined)
|
|
681
|
+
if (lane !== undefined) host.connections.helper = lane
|
|
682
|
+
}))
|
|
683
|
+
writeJson(res, 200, { hosts })
|
|
684
|
+
} catch (error) {
|
|
685
|
+
writeRouteError(res, error)
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
},
|
|
632
689
|
// ------------------------------------------------------------- test
|
|
633
690
|
{
|
|
634
691
|
kind: 'exact',
|
|
@@ -700,6 +757,8 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
700
757
|
alias?: unknown
|
|
701
758
|
command?: unknown
|
|
702
759
|
timeoutMs?: unknown
|
|
760
|
+
network?: unknown
|
|
761
|
+
lane?: unknown
|
|
703
762
|
}>(req, res, { objectOnly: true })
|
|
704
763
|
if (!read.ok) return
|
|
705
764
|
const body = read.body
|
|
@@ -708,6 +767,9 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
708
767
|
return
|
|
709
768
|
}
|
|
710
769
|
const timeoutMs = clampExecTimeout(body.timeoutMs)
|
|
770
|
+
// `lane` (network verbs / git commands) with the older `network: true`
|
|
771
|
+
// flag still honoured — see `execLaneOf`.
|
|
772
|
+
const lane = execLaneOf(body)
|
|
711
773
|
/** The client closed the request: its response is never read. */
|
|
712
774
|
let clientGone = false
|
|
713
775
|
/** The client asked to stop: kill the remote even if the read is still opening. */
|
|
@@ -740,6 +802,7 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
740
802
|
try {
|
|
741
803
|
const result = await pool.exec(body.alias, body.command, {
|
|
742
804
|
...(timeoutMs === undefined ? {} : { timeoutMs }),
|
|
805
|
+
...lane,
|
|
743
806
|
onCancel: (handle) => {
|
|
744
807
|
cancel = handle
|
|
745
808
|
if (cancelRequested && !cancelSent) {
|
|
@@ -774,6 +837,8 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
774
837
|
alias?: unknown
|
|
775
838
|
command?: unknown
|
|
776
839
|
timeoutMs?: unknown
|
|
840
|
+
network?: unknown
|
|
841
|
+
lane?: unknown
|
|
777
842
|
}>(req, res, { objectOnly: true })
|
|
778
843
|
if (!read.ok) return
|
|
779
844
|
const body = read.body
|
|
@@ -782,6 +847,9 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
782
847
|
return
|
|
783
848
|
}
|
|
784
849
|
const timeoutMs = clampExecTimeout(body.timeoutMs)
|
|
850
|
+
// Same resolution as the unary route: `lane` first, `network: true` for
|
|
851
|
+
// older clients (`execLaneOf`), nothing means the exec budget.
|
|
852
|
+
const lane = execLaneOf(body)
|
|
785
853
|
res.writeHead(200, {
|
|
786
854
|
'Content-Type': 'text/event-stream; charset=utf-8',
|
|
787
855
|
'Cache-Control': 'no-cache, no-transform',
|
|
@@ -862,6 +930,7 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
862
930
|
try {
|
|
863
931
|
const result = await pool.exec(body.alias, body.command, {
|
|
864
932
|
...(timeoutMs === undefined ? {} : { timeoutMs }),
|
|
933
|
+
...lane,
|
|
865
934
|
onData: (stream, text) => {
|
|
866
935
|
if (outputClosed || sent >= FORWARD_CAP) return
|
|
867
936
|
sent += Buffer.byteLength(text, 'utf8')
|
|
@@ -1275,7 +1344,10 @@ export function makeRoutes(deps: RemoteRoutesDeps): {
|
|
|
1275
1344
|
writeJson(res, 404, { error: `unknown workspace id: ${id}` })
|
|
1276
1345
|
return
|
|
1277
1346
|
}
|
|
1278
|
-
|
|
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)
|
|
1279
1351
|
writeJson(res, 200, { ok: true })
|
|
1280
1352
|
},
|
|
1281
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 @@
|
|
|
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
|
|
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,
|
|
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 +0,0 @@
|
|
|
1
|
-
05c50b383b1f0b5c5673d7ef962cb0ab36774b40e2beb523ffef0ce92b075705 dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz
|