@artenx/dshb 0.1.30 → 0.1.31
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 +1 -1
- package/lib/core/sync/coordinator.d.ts +2 -2
- package/lib/core/sync/coordinator.js +90 -45
- 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 +3 -3
- 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.js +1 -1
- package/lib/core/sync/protocol.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 +4 -4
- package/lib/core/sync/ssh-transport.js.map +1 -1
- package/lib/{session-sync-C0uoizyB.js → session-sync-BQt3HXkp.js} +100 -33
- package/lib/session-sync-BQt3HXkp.js.map +1 -0
- package/lib/{session-sync-C2j2rk9K.d.ts → session-sync-Zfo1Q-qT.d.ts} +12 -2
- package/lib/{ssh-transport-uK9Ep0yp.d.ts → ssh-transport-Cfb_nwkY.d.ts} +2 -2
- package/package.json +1 -1
- package/lib/session-sync-C0uoizyB.js.map +0 -1
|
@@ -1135,6 +1135,15 @@ interface SyncSessionApplyOptions {
|
|
|
1135
1135
|
importedVia?: SyncImportMethod;
|
|
1136
1136
|
allowSameInstance?: boolean;
|
|
1137
1137
|
}
|
|
1138
|
+
interface ExportObjectCacheEntry {
|
|
1139
|
+
object: SyncSessionObject;
|
|
1140
|
+
}
|
|
1141
|
+
declare class ExportObjectCache {
|
|
1142
|
+
private readonly entries;
|
|
1143
|
+
private bytes;
|
|
1144
|
+
get(key: string): ExportObjectCacheEntry | undefined;
|
|
1145
|
+
set(key: string, entry: ExportObjectCacheEntry): void;
|
|
1146
|
+
}
|
|
1138
1147
|
interface SyncSessionTransferPlan {
|
|
1139
1148
|
toLocal: SyncSessionEntry[];
|
|
1140
1149
|
toRemote: SyncSessionEntry[];
|
|
@@ -1229,6 +1238,7 @@ interface SpillStoreLike {
|
|
|
1229
1238
|
}): Promise<SpillTransferReference['ref']>;
|
|
1230
1239
|
}
|
|
1231
1240
|
declare function sessionEventListDigest(events: readonly SessionEvent[]): string;
|
|
1241
|
+
declare function estimateJsonBytes(value: unknown, limit: number): number | undefined;
|
|
1232
1242
|
declare function planSessionTransfers(direction: 'pull' | 'bidirectional', localEntries: readonly SyncSessionEntry[], remoteEntries: readonly SyncSessionEntry[]): SyncSessionTransferPlan;
|
|
1233
1243
|
declare function validateSyncSessionBundle(value: unknown): SyncSessionBundle;
|
|
1234
1244
|
declare function makeSyncSessionBundle(instanceId: string, entries: SyncSessionEntry[], skipped?: Array<{
|
|
@@ -1300,5 +1310,5 @@ declare class SyncSessionService {
|
|
|
1300
1310
|
private serializeMutation;
|
|
1301
1311
|
}
|
|
1302
1312
|
//#endregion
|
|
1303
|
-
export {
|
|
1304
|
-
//# sourceMappingURL=session-sync-
|
|
1313
|
+
export { validateSyncSessionBundle as C, syncSessionEntryKey as S, estimateJsonBytes as _, SyncSessionEntry as a, planSessionTransfers as b, SyncSessionEventPrefix as c, SyncSessionManifestEntry as d, SyncSessionObject as f, WorkspaceRegistryLike as g, SyncSessionWorkspace as h, SyncSessionBundle as i, SyncSessionInstructionSnapshot as l, SyncSessionTransferPlan as m, SyncSessionApplyOptions as n, SyncSessionError as o, SyncSessionService as p, SyncSessionApplyResult as r, SyncSessionEventDelta as s, ExportObjectCache as t, SyncSessionManifest as u, makeSyncSessionBundle as v, validateSyncSessionManifest as w, sessionEventListDigest as x, makeSyncSessionManifest as y };
|
|
1314
|
+
//# sourceMappingURL=session-sync-Zfo1Q-qT.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { i as SyncNodeManifest, t as SyncNodeApplyResult } from "./node-sync-3Z9
|
|
|
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
5
|
import { c as SyncFrame } from "./protocol-KaWZArY8.js";
|
|
6
|
-
import {
|
|
6
|
+
import { c as SyncSessionEventPrefix, i as SyncSessionBundle, r as SyncSessionApplyResult, u as SyncSessionManifest } from "./session-sync-Zfo1Q-qT.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';
|
|
@@ -62,4 +62,4 @@ declare class SyncSshTransport {
|
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
64
|
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-
|
|
65
|
+
//# sourceMappingURL=ssh-transport-Cfb_nwkY.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.31",
|
|
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",
|