@artenx/dshb 0.1.31 → 0.1.32
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/core/index.js +6 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/sync/coordinator.d.ts +2 -2
- package/lib/core/sync/coordinator.js +23 -6
- package/lib/core/sync/coordinator.js.map +1 -1
- package/lib/core/sync/internal-routes.d.ts +1 -1
- package/lib/core/sync/internal-routes.js +80 -4
- package/lib/core/sync/internal-routes.js.map +1 -1
- package/lib/core/sync/offline-archive.d.ts +1 -1
- package/lib/core/sync/offline-archive.js +1 -1
- package/lib/core/sync/offline-routes.js +1 -1
- package/lib/core/sync/protocol.d.ts +2 -2
- package/lib/core/sync/protocol.js +4 -1
- package/lib/core/sync/protocol.js.map +1 -1
- package/lib/core/sync/remote-helper.js +107 -76
- package/lib/core/sync/remote-helper.js.map +1 -1
- package/lib/core/sync/routes.d.ts +1 -1
- package/lib/core/sync/session-routes.d.ts +1 -1
- package/lib/core/sync/session-routes.js +1 -1
- package/lib/core/sync/session-sync.d.ts +2 -2
- package/lib/core/sync/session-sync.js +2 -2
- package/lib/core/sync/ssh-transport.d.ts +1 -1
- package/lib/core/sync/ssh-transport.js +100 -2
- package/lib/core/sync/ssh-transport.js.map +1 -1
- package/lib/{protocol-KaWZArY8.d.ts → protocol-DJ0zyVlB.d.ts} +5 -2
- package/lib/{session-sync-Zfo1Q-qT.d.ts → session-sync-BuOJvFxK.d.ts} +54 -2
- package/lib/{session-sync-BQt3HXkp.js → session-sync-CIqjuWkh.js} +455 -48
- package/lib/session-sync-CIqjuWkh.js.map +1 -0
- package/lib/{ssh-transport-Cfb_nwkY.d.ts → ssh-transport-B2oNDs0D.d.ts} +14 -4
- package/package.json +1 -1
- package/lib/session-sync-BQt3HXkp.js.map +0 -1
|
@@ -2,8 +2,8 @@ import { a as SyncPeer } from "./model-BP7Gw1yk.js";
|
|
|
2
2
|
import { i as SyncNodeManifest, t as SyncNodeApplyResult } from "./node-sync-3Z9QLz2n.js";
|
|
3
3
|
import { SyncPeerManager, SyncPeerSecrets } from "./core/sync/peer-manager.js";
|
|
4
4
|
import { r as SyncHostKeyChallenges, t as SyncHostKeyChallengeError } from "./host-key-C5afhAUd.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { d as SyncFrame } from "./protocol-DJ0zyVlB.js";
|
|
6
|
+
import { a as SyncSessionBundle, d as SyncSessionManifest, i as SyncSessionApplyResult, l as SyncSessionEventPrefix, p as SyncSessionObject } from "./session-sync-BuOJvFxK.js";
|
|
7
7
|
import { Client, ClientChannel, ConnectConfig } from "ssh2";
|
|
8
8
|
//#region src/core/sync/ssh-transport.d.ts
|
|
9
9
|
type SyncSshErrorCategory = 'auth' | 'network' | 'hostkey' | 'timeout' | 'helper' | 'protocol';
|
|
@@ -54,12 +54,22 @@ declare class SyncSshTransport {
|
|
|
54
54
|
applyNodeManifest(peerId: string, records: SyncNodeManifest['records'], sourceName: string): Promise<SyncNodeApplyResult>;
|
|
55
55
|
fetchSessionBundle(peerId: string): Promise<SyncSessionBundle>;
|
|
56
56
|
fetchSessionManifest(peerId: string): Promise<SyncSessionManifest>;
|
|
57
|
-
fetchSessionEntries(peerId: string, keys: readonly string[], manifestDigest: string, prefixes?: readonly SyncSessionEventPrefix[]): Promise<SyncSessionBundle>;
|
|
57
|
+
fetchSessionEntries(peerId: string, keys: readonly string[], manifestDigest: string, prefixes?: readonly SyncSessionEventPrefix[], deferredObjects?: boolean): Promise<SyncSessionBundle>;
|
|
58
58
|
applySessionBundle(peerId: string, bundle: SyncSessionBundle, sourceName: string): Promise<SyncSessionApplyResult>;
|
|
59
59
|
trustObservedHostKey(peerId: string): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* 拉取带外对象流:响应以帧流形式逐块 yield,调用方(收件箱)边收边落盘,
|
|
62
|
+
* 内存 O(单帧)。会话在流结束/出错时关闭(生成器 finally)。
|
|
63
|
+
*/
|
|
64
|
+
fetchSessionObjects(peerId: string, objects: readonly SyncSessionObject[]): AsyncGenerator<Uint8Array>;
|
|
65
|
+
/**
|
|
66
|
+
* 推送带外对象流:把帧流按 1MB 分块写入请求体,逐块经 SSH 发送;
|
|
67
|
+
* 对端流式落盘收件箱后返回 JSON 摘要。
|
|
68
|
+
*/
|
|
69
|
+
pushSessionObjects(peerId: string, frames: AsyncIterable<Uint8Array>): Promise<void>;
|
|
60
70
|
private fetchDataOperation;
|
|
61
71
|
private requestHandshake;
|
|
62
72
|
}
|
|
63
73
|
//#endregion
|
|
64
74
|
export { SyncSshProbeError as a, buildSyncSshConnectConfig as c, SyncSshErrorCategory as i, SyncRemoteNodeManifest as n, SyncSshSession as o, SyncSessionDeltaPrefixError as r, SyncSshTransport as s, SyncRemoteHandshake as t };
|
|
65
|
-
//# sourceMappingURL=ssh-transport-
|
|
75
|
+
//# sourceMappingURL=ssh-transport-B2oNDs0D.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artenx/dshb",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "Routes DSH filesystem, shell, subprocess, and PTY operations to local, SSH, and Docker execution nodes, with a node registry, an authentication gate, a mobile-aware management UI, and per-workspace custom project instructions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|