@artenx/dshb 0.1.42 → 0.1.43
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/client.js +135 -103
- package/lib/client.js.map +1 -1
- package/lib/core/routes.d.ts +1 -1
- package/lib/core/sync/coordinator.d.ts +5 -5
- package/lib/core/sync/coordinator.js +7 -2
- package/lib/core/sync/coordinator.js.map +1 -1
- package/lib/core/sync/host-key.d.ts +1 -1
- package/lib/core/sync/internal-routes.d.ts +3 -3
- package/lib/core/sync/model.d.ts +1 -1
- package/lib/core/sync/model.js +3 -0
- package/lib/core/sync/model.js.map +1 -1
- package/lib/core/sync/node-sync.d.ts +1 -1
- package/lib/core/sync/offline-archive.d.ts +4 -4
- package/lib/core/sync/peer-manager.d.ts +2 -2
- package/lib/core/sync/peer-manager.js +1 -0
- package/lib/core/sync/peer-manager.js.map +1 -1
- package/lib/core/sync/routes.d.ts +1 -1
- package/lib/core/sync/session-journal.d.ts +1 -1
- package/lib/core/sync/session-routes.d.ts +1 -1
- package/lib/core/sync/session-sync.d.ts +1 -1
- package/lib/core/sync/ssh-transport.d.ts +1 -1
- package/lib/core/sync/stores.d.ts +1 -1
- package/lib/core/workspaces.d.ts +1 -1
- package/lib/{host-key-CjO13Ds4.d.ts → host-key-DeHqgO7s.d.ts} +2 -2
- package/lib/{model-CX2TlH2E.d.ts → model-qtM3rcyA.d.ts} +3 -1
- package/lib/{node-sync-qnJ7u0TU.d.ts → node-sync-CJZl2FCE.d.ts} +3 -3
- package/lib/{session-journal-ftjZuIxo.d.ts → session-journal-BwrCnkk4.d.ts} +2 -2
- package/lib/{session-sync-AlV-M72t.d.ts → session-sync-Celc4x_B.d.ts} +5 -5
- package/lib/{ssh-transport-a3qXoscG.d.ts → ssh-transport-DLXkPpxT.d.ts} +5 -5
- package/lib/{stores-BwQLabuJ.d.ts → stores-NzEbaGQ3.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as parseRemoteProbeOutput, a as SyncRemoteProbe, c as SyncRemoteProbeProfile, d as SyncSshErrorCategory, f as SyncSshProbeError, g as buildSyncSshConnectConfig, h as buildRemoteProbeScript, i as SyncRemoteNodeManifest, l as SyncRemoteProbeResult, m as SyncSshTransport, n as REMOTE_PROBE_END_MARKER, o as SyncRemoteProbeDraft, p as SyncSshSession, r as SyncRemoteHandshake, s as SyncRemoteProbeHandshake, t as REMOTE_PROBE_BEGIN_MARKER, u as SyncSessionDeltaPrefixError } from "../../ssh-transport-
|
|
1
|
+
import { _ as parseRemoteProbeOutput, a as SyncRemoteProbe, c as SyncRemoteProbeProfile, d as SyncSshErrorCategory, f as SyncSshProbeError, g as buildSyncSshConnectConfig, h as buildRemoteProbeScript, i as SyncRemoteNodeManifest, l as SyncRemoteProbeResult, m as SyncSshTransport, n as REMOTE_PROBE_END_MARKER, o as SyncRemoteProbeDraft, p as SyncSshSession, r as SyncRemoteHandshake, s as SyncRemoteProbeHandshake, t as REMOTE_PROBE_BEGIN_MARKER, u as SyncSessionDeltaPrefixError } from "../../ssh-transport-DLXkPpxT.js";
|
|
2
2
|
export { REMOTE_PROBE_BEGIN_MARKER, REMOTE_PROBE_END_MARKER, SyncRemoteHandshake, SyncRemoteNodeManifest, SyncRemoteProbe, SyncRemoteProbeDraft, SyncRemoteProbeHandshake, SyncRemoteProbeProfile, SyncRemoteProbeResult, SyncSessionDeltaPrefixError, SyncSshErrorCategory, SyncSshProbeError, SyncSshSession, SyncSshTransport, buildRemoteProbeScript, buildSyncSshConnectConfig, parseRemoteProbeOutput };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as HlcSnapshot } from "../../revision-C9sOlDZ6.js";
|
|
2
|
-
import { n as SyncStateStore, r as getOrCreateSyncInstanceId, t as SyncPeerStore } from "../../stores-
|
|
2
|
+
import { n as SyncStateStore, r as getOrCreateSyncInstanceId, t as SyncPeerStore } from "../../stores-NzEbaGQ3.js";
|
|
3
3
|
export { type HlcSnapshot, SyncPeerStore, SyncStateStore, getOrCreateSyncInstanceId };
|
package/lib/core/workspaces.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as NodeRegistry } from "../node-registry-BTnnM5-k.js";
|
|
2
2
|
import { r as WorkspaceBindingsStore } from "../workspace-bindings-CsB0TIJB.js";
|
|
3
|
-
import { s as SyncNodeService } from "../node-sync-
|
|
3
|
+
import { s as SyncNodeService } from "../node-sync-CJZl2FCE.js";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
//#region src/core/workspaces.d.ts
|
|
6
6
|
declare function registerWorkspaceRoutes(ctx: Context, registry: NodeRegistry, bindings: WorkspaceBindingsStore, syncNodes?: SyncNodeService): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as SyncPeer } from "./model-
|
|
1
|
+
import { u as SyncPeer } from "./model-qtM3rcyA.js";
|
|
2
2
|
//#region src/core/sync/host-key.d.ts
|
|
3
3
|
type SyncHostKeyDecision = 'trusted' | 'untrusted' | 'changed';
|
|
4
4
|
declare class SyncHostKeyChallengeError extends Error {
|
|
@@ -27,4 +27,4 @@ declare class SyncHostKeyChallenges {
|
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
29
|
export { inspectSyncHostKey as a, SyncHostKeyDecision as i, SyncHostKeyChallengeExpiredError as n, isOpenSshFingerprint as o, SyncHostKeyChallenges as r, opensshFingerprintFromSha256Hex as s, SyncHostKeyChallengeError as t };
|
|
30
|
-
//# sourceMappingURL=host-key-
|
|
30
|
+
//# sourceMappingURL=host-key-DeHqgO7s.d.ts.map
|
|
@@ -23,6 +23,8 @@ interface SyncPeer {
|
|
|
23
23
|
direction: SyncDirection;
|
|
24
24
|
schedule: SyncSchedule;
|
|
25
25
|
mode: SyncMode;
|
|
26
|
+
/** 同步工作节点配置;仅元数据同步可关闭(全量会话同步依赖节点配置)。缺省 true。 */
|
|
27
|
+
syncNodes?: boolean;
|
|
26
28
|
syncSessions: boolean;
|
|
27
29
|
selection?: SyncSelection;
|
|
28
30
|
enabled: boolean;
|
|
@@ -165,4 +167,4 @@ declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
|
165
167
|
declare function isNonNegativeSafeInteger(value: unknown): value is number;
|
|
166
168
|
//#endregion
|
|
167
169
|
export { parseSyncPeer as C, syncWorkspaceKey as D, syncRecordKey as E, isRecord as S, parseSyncSelection as T, SyncSessionArchive as _, SyncDirection as a, SyncWorkspaceOrigin as b, SyncMode as c, SyncPeerDraft as d, SyncPeerProgress as f, SyncSelection as g, SyncSchedule as h, SyncCatalogWorkspace as i, SyncOrigin as l, SyncRecordMetadata as m, SyncCatalogNode as n, SyncEntityKind as o, SyncProvenance as p, SyncCatalogSession as r, SyncImportMethod as s, SyncCatalog as t, SyncPeer as u, SyncState as v, parseSyncPeerDraft as w, isNonNegativeSafeInteger as x, SyncWorkspaceMapping as y };
|
|
168
|
-
//# sourceMappingURL=model-
|
|
170
|
+
//# sourceMappingURL=model-qtM3rcyA.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as NodeSsh, o as NodeRegistry, r as NodeDocker, s as NodeSecrets } from "./node-registry-BTnnM5-k.js";
|
|
2
2
|
import { r as WorkspaceBindingsStore } from "./workspace-bindings-CsB0TIJB.js";
|
|
3
|
-
import { m as SyncRecordMetadata, s as SyncImportMethod } from "./model-
|
|
4
|
-
import { n as SyncStateStore } from "./stores-
|
|
3
|
+
import { m as SyncRecordMetadata, s as SyncImportMethod } from "./model-qtM3rcyA.js";
|
|
4
|
+
import { n as SyncStateStore } from "./stores-NzEbaGQ3.js";
|
|
5
5
|
//#region src/core/sync/node-sync.d.ts
|
|
6
6
|
interface SyncNodeProfile {
|
|
7
7
|
name: string;
|
|
@@ -86,4 +86,4 @@ declare class SyncNodeService {
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
export { SyncNodeManifestError as a, SyncNodeView as c, SyncNodeManifest as i, SyncNodeEntry as n, SyncNodeProfile as o, SyncNodeInUseError as r, SyncNodeService as s, SyncNodeApplyResult as t };
|
|
89
|
-
//# sourceMappingURL=node-sync-
|
|
89
|
+
//# sourceMappingURL=node-sync-CJZl2FCE.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as SyncImportMethod } from "./model-
|
|
1
|
+
import { s as SyncImportMethod } from "./model-qtM3rcyA.js";
|
|
2
2
|
//#region src/core/sync/session-journal.d.ts
|
|
3
3
|
declare class SyncSessionJournalStore {
|
|
4
4
|
private readonly home;
|
|
@@ -45,4 +45,4 @@ declare class SyncSessionJournalStore {
|
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
47
|
export { SyncSessionJournalStore as t };
|
|
48
|
-
//# sourceMappingURL=session-journal-
|
|
48
|
+
//# sourceMappingURL=session-journal-BwrCnkk4.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { o as NodeRegistry } from "./node-registry-BTnnM5-k.js";
|
|
2
2
|
import { r as WorkspaceBindingsStore } from "./workspace-bindings-CsB0TIJB.js";
|
|
3
3
|
import { r as SyncRevision } from "./revision-C9sOlDZ6.js";
|
|
4
|
-
import { _ as SyncSessionArchive, i as SyncCatalogWorkspace, l as SyncOrigin, m as SyncRecordMetadata, r as SyncCatalogSession, s as SyncImportMethod } from "./model-
|
|
5
|
-
import { n as SyncStateStore } from "./stores-
|
|
6
|
-
import { s as SyncNodeService } from "./node-sync-
|
|
4
|
+
import { _ as SyncSessionArchive, i as SyncCatalogWorkspace, l as SyncOrigin, m as SyncRecordMetadata, r as SyncCatalogSession, s as SyncImportMethod } from "./model-qtM3rcyA.js";
|
|
5
|
+
import { n as SyncStateStore } from "./stores-NzEbaGQ3.js";
|
|
6
|
+
import { s as SyncNodeService } from "./node-sync-CJZl2FCE.js";
|
|
7
7
|
import { S as BrandedNumber, _ as FileAttachmentRef, a as SystemPromptUpdate, b as TypertResource, c as ToolSchema, d as Message, f as SystemMessage, g as ToolCallId, i as LlmFailure, l as AssistantMessage, m as UserMessage, n as LlmCallConfig, o as TokenUsage, p as ToolResultMessage, r as LlmCallConfigAdapterDefaults, s as ToolHistory, t as AssistantStreamRecord, u as DeveloperMessage, v as ImageAttachmentRef, x as Branded, y as TypertLookup } from "./index-VF8bcBeX.js";
|
|
8
8
|
import { a as SessionInstructionSnapshotStore, s as WorkspaceInstructionStore } from "./workspace-instructions-C_ViytzA.js";
|
|
9
|
-
import { t as SyncSessionJournalStore } from "./session-journal-
|
|
9
|
+
import { t as SyncSessionJournalStore } from "./session-journal-BwrCnkk4.js";
|
|
10
10
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
11
11
|
//#region ../../node_modules/@deepseek-ai/dsh-scope/lib/types/index.d.ts
|
|
12
12
|
declare const ScopedBrand: unique symbol;
|
|
@@ -1377,4 +1377,4 @@ declare class SyncSessionService {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
//#endregion
|
|
1379
1379
|
export { sessionEventListDigest as C, validateSyncSessionManifest as D, validateSyncSessionBundle as E, planSessionTransfers as S, validateObjectPayload as T, SyncSessionWorkspace as _, SyncSessionBundle as a, makeSyncSessionBundle as b, SyncSessionEventDelta as c, SyncSessionManifest as d, SyncSessionManifestEntry as f, SyncSessionTransferPlan as g, SyncSessionService as h, SyncSessionApplyResult as i, SyncSessionEventPrefix as l, SyncSessionObjectInbox as m, SyncObjectInboxWriter as n, SyncSessionEntry as o, SyncSessionObject as p, SyncSessionApplyOptions as r, SyncSessionError as s, ExportObjectCache as t, SyncSessionInstructionSnapshot as u, WorkspaceRegistryLike as v, syncSessionEntryKey as w, makeSyncSessionManifest as x, estimateJsonBytes as y };
|
|
1380
|
-
//# sourceMappingURL=session-sync-
|
|
1380
|
+
//# sourceMappingURL=session-sync-Celc4x_B.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as SyncCatalog, u as SyncPeer } from "./model-
|
|
2
|
-
import { i as SyncNodeManifest, t as SyncNodeApplyResult } from "./node-sync-
|
|
1
|
+
import { t as SyncCatalog, u as SyncPeer } from "./model-qtM3rcyA.js";
|
|
2
|
+
import { i as SyncNodeManifest, t as SyncNodeApplyResult } from "./node-sync-CJZl2FCE.js";
|
|
3
3
|
import { SyncPeerManager, SyncPeerSecrets } from "./core/sync/peer-manager.js";
|
|
4
|
-
import { r as SyncHostKeyChallenges, t as SyncHostKeyChallengeError } from "./host-key-
|
|
4
|
+
import { r as SyncHostKeyChallenges, t as SyncHostKeyChallengeError } from "./host-key-DeHqgO7s.js";
|
|
5
5
|
import { f as SyncFrame } from "./protocol-DyPDIJWa.js";
|
|
6
|
-
import { a as SyncSessionBundle, d as SyncSessionManifest, i as SyncSessionApplyResult, l as SyncSessionEventPrefix, p as SyncSessionObject } from "./session-sync-
|
|
6
|
+
import { a as SyncSessionBundle, d as SyncSessionManifest, i as SyncSessionApplyResult, l as SyncSessionEventPrefix, p as SyncSessionObject } from "./session-sync-Celc4x_B.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';
|
|
@@ -138,4 +138,4 @@ declare class SyncRemoteProbe {
|
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
export { parseRemoteProbeOutput as _, SyncRemoteProbe as a, SyncRemoteProbeProfile as c, SyncSshErrorCategory as d, SyncSshProbeError as f, buildSyncSshConnectConfig as g, buildRemoteProbeScript as h, SyncRemoteNodeManifest as i, SyncRemoteProbeResult as l, SyncSshTransport as m, REMOTE_PROBE_END_MARKER as n, SyncRemoteProbeDraft as o, SyncSshSession as p, SyncRemoteHandshake as r, SyncRemoteProbeHandshake as s, REMOTE_PROBE_BEGIN_MARKER as t, SyncSessionDeltaPrefixError as u };
|
|
141
|
-
//# sourceMappingURL=ssh-transport-
|
|
141
|
+
//# sourceMappingURL=ssh-transport-DLXkPpxT.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as SyncRevision } from "./revision-C9sOlDZ6.js";
|
|
2
|
-
import { d as SyncPeerDraft, u as SyncPeer, v as SyncState } from "./model-
|
|
2
|
+
import { d as SyncPeerDraft, u as SyncPeer, v as SyncState } from "./model-qtM3rcyA.js";
|
|
3
3
|
//#region src/core/sync/stores.d.ts
|
|
4
4
|
declare function getOrCreateSyncInstanceId(home?: string): string;
|
|
5
5
|
declare class SyncPeerStore {
|
|
@@ -28,4 +28,4 @@ declare class SyncStateStore {
|
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SyncStateStore as n, getOrCreateSyncInstanceId as r, SyncPeerStore as t };
|
|
31
|
-
//# sourceMappingURL=stores-
|
|
31
|
+
//# sourceMappingURL=stores-NzEbaGQ3.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.43",
|
|
4
4
|
"description": "让 DSH 变成随时可用的多设备 Agent 工作台,支持将远程节点添加到本地 DSH,并像操作本地内容一样访问远程节点,包括会话环境、文件目录、终端等。支持在安装了本插件的多个 DSH 实例间同步数据。若部署在云服务器,Web 端访问支持登录认证。真正实现远程节点本地化操作。最新版本已支持 DSH 桌面端。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|