@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.
@@ -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 { validateSyncSessionManifest as S, makeSyncSessionManifest as _, SyncSessionError as a, syncSessionEntryKey as b, SyncSessionInstructionSnapshot as c, SyncSessionObject as d, SyncSessionService as f, makeSyncSessionBundle as g, WorkspaceRegistryLike as h, SyncSessionEntry as i, SyncSessionManifest as l, SyncSessionWorkspace as m, SyncSessionApplyResult as n, SyncSessionEventDelta as o, SyncSessionTransferPlan as p, SyncSessionBundle as r, SyncSessionEventPrefix as s, SyncSessionApplyOptions as t, SyncSessionManifestEntry as u, planSessionTransfers as v, validateSyncSessionBundle as x, sessionEventListDigest as y };
1304
- //# sourceMappingURL=session-sync-C2j2rk9K.d.ts.map
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 { l as SyncSessionManifest, n as SyncSessionApplyResult, r as SyncSessionBundle, s as SyncSessionEventPrefix } from "./session-sync-C2j2rk9K.js";
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-uK9Ep0yp.d.ts.map
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.30",
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",