@artenx/dshb 0.1.37 → 0.1.39
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 +1 -1
- package/lib/core/sync/internal-routes.d.ts +1 -1
- package/lib/core/sync/internal-routes.js +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/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 +1 -1
- package/lib/core/sync/session-sync.js +1 -1
- package/lib/core/sync/ssh-transport.d.ts +1 -1
- package/lib/core/workspace-instruction-context.d.ts +1 -1
- package/lib/core/workspace-instruction-routes.d.ts +1 -1
- package/lib/core/workspace-instructions.d.ts +1 -1
- package/lib/core/workspace-instructions.js +33 -1
- package/lib/core/workspace-instructions.js.map +1 -1
- package/lib/{session-sync-CQWx3lW9.js → session-sync-BBCm_ou2.js} +25 -9
- package/lib/session-sync-BBCm_ou2.js.map +1 -0
- package/lib/{session-sync-DrKShc5c.d.ts → session-sync-Bw0cZ4oa.d.ts} +5 -3
- package/lib/{ssh-transport-BxPWfu9X.d.ts → ssh-transport-COZe0BDr.d.ts} +2 -2
- package/lib/{workspace-instructions-DirYYiku.d.ts → workspace-instructions-C_ViytzA.d.ts} +19 -1
- package/package.json +2 -2
- package/lib/session-sync-CQWx3lW9.js.map +0 -1
|
@@ -5,7 +5,7 @@ import { d as SyncSessionArchive, i as SyncOrigin, l as SyncRecordMetadata, r as
|
|
|
5
5
|
import { n as SyncStateStore } from "./stores-puyTC075.js";
|
|
6
6
|
import { s as SyncNodeService } from "./node-sync-C3Ym-HDu.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
|
-
import { a as SessionInstructionSnapshotStore } from "./workspace-instructions-
|
|
8
|
+
import { a as SessionInstructionSnapshotStore, s as WorkspaceInstructionStore } from "./workspace-instructions-C_ViytzA.js";
|
|
9
9
|
import { t as SyncSessionJournalStore } from "./session-journal-VE_1tA2-.js";
|
|
10
10
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
11
11
|
//#region ../../node_modules/@deepseek-ai/dsh-scope/lib/types/index.d.ts
|
|
@@ -1303,7 +1303,9 @@ declare class SyncSessionService {
|
|
|
1303
1303
|
private manifestPayloadCacheBytes;
|
|
1304
1304
|
/** 带外对象收件箱:对象流 RPC 的落盘暂存区,apply 水合后删除。 */
|
|
1305
1305
|
readonly objectInbox: SyncSessionObjectInbox;
|
|
1306
|
-
|
|
1306
|
+
/** 工作区级指令存储:导入采纳写入,驱动该工作区新会话的指令注入。 */
|
|
1307
|
+
readonly workspaceInstructions: WorkspaceInstructionStore;
|
|
1308
|
+
constructor(state: SyncStateStore, nodes: SyncNodeService, registry: NodeRegistry, bindings: WorkspaceBindingsStore, getWorkspaces: () => WorkspaceRegistryLike | undefined, getPersistence: () => SessionPersistenceLike | undefined, getAttachments: () => AttachmentStoreLike | undefined, getSpills: () => SpillStoreLike | undefined, instructions: SessionInstructionSnapshotStore, journal?: SyncSessionJournalStore, now?: () => number, home?: string, workspaceInstructions?: WorkspaceInstructionStore);
|
|
1307
1309
|
exportBundle(): Promise<SyncSessionBundle>;
|
|
1308
1310
|
exportManifest(): Promise<SyncSessionManifest>;
|
|
1309
1311
|
exportEntries(keys: readonly string[], manifestDigest?: string, prefixes?: readonly SyncSessionEventPrefix[], options?: {
|
|
@@ -1369,4 +1371,4 @@ declare class SyncSessionService {
|
|
|
1369
1371
|
}
|
|
1370
1372
|
//#endregion
|
|
1371
1373
|
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 };
|
|
1372
|
-
//# sourceMappingURL=session-sync-
|
|
1374
|
+
//# sourceMappingURL=session-sync-Bw0cZ4oa.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { i as SyncNodeManifest, t as SyncNodeApplyResult } from "./node-sync-C3Y
|
|
|
3
3
|
import { SyncPeerManager, SyncPeerSecrets } from "./core/sync/peer-manager.js";
|
|
4
4
|
import { r as SyncHostKeyChallenges, t as SyncHostKeyChallengeError } from "./host-key-CSnpIrjq.js";
|
|
5
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-
|
|
6
|
+
import { a as SyncSessionBundle, d as SyncSessionManifest, i as SyncSessionApplyResult, l as SyncSessionEventPrefix, p as SyncSessionObject } from "./session-sync-Bw0cZ4oa.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';
|
|
@@ -119,4 +119,4 @@ declare class SyncRemoteProbe {
|
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
121
|
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 };
|
|
122
|
-
//# sourceMappingURL=ssh-transport-
|
|
122
|
+
//# sourceMappingURL=ssh-transport-COZe0BDr.d.ts.map
|
|
@@ -29,6 +29,8 @@ declare class InstructionSizeError extends Error {
|
|
|
29
29
|
declare class WorkspaceInstructionStore {
|
|
30
30
|
private data;
|
|
31
31
|
private loaded;
|
|
32
|
+
private readonly home;
|
|
33
|
+
constructor(home?: string);
|
|
32
34
|
private file;
|
|
33
35
|
private load;
|
|
34
36
|
private save;
|
|
@@ -39,6 +41,17 @@ declare class WorkspaceInstructionStore {
|
|
|
39
41
|
expectedRevision: number;
|
|
40
42
|
}): WorkspaceInstructionRecord;
|
|
41
43
|
clear(workspaceId: string, expectedRevision: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* 同步导入采纳:以对端快照的修订恢复工作区指令。
|
|
46
|
+
* 本地缺失或本地修订更低(对端编辑过)时采纳;本地同版或更新时保留本地。
|
|
47
|
+
* revision 直接采用对端计数,使两端的指令修订序列保持同一根。
|
|
48
|
+
*/
|
|
49
|
+
restoreWorkspace(input: {
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
text: string;
|
|
52
|
+
revision: number;
|
|
53
|
+
capturedAt?: string;
|
|
54
|
+
}): WorkspaceInstructionRecord | undefined;
|
|
42
55
|
removeByWorkspace(workspaceId: string): void;
|
|
43
56
|
}
|
|
44
57
|
declare class SessionInstructionSnapshotStore {
|
|
@@ -60,10 +73,15 @@ declare class SessionInstructionSnapshotStore {
|
|
|
60
73
|
parentSnapshot: SessionInstructionSnapshot;
|
|
61
74
|
}): SessionInstructionSnapshot;
|
|
62
75
|
restore(snapshot: SessionInstructionSnapshot): SessionInstructionSnapshot;
|
|
76
|
+
/**
|
|
77
|
+
* 同步导入采纳:以对端快照的修订恢复工作区指令。
|
|
78
|
+
* 本地缺失或本地修订更低(对端编辑过)时采纳;本地同版或更新时保留本地。
|
|
79
|
+
* revision 直接采用对端计数,使两端的指令修订序列保持同一根。
|
|
80
|
+
*/
|
|
63
81
|
remove(sessionId: string): void;
|
|
64
82
|
}
|
|
65
83
|
declare function sharedWorkspaceInstructionStore(): WorkspaceInstructionStore;
|
|
66
84
|
declare function sharedSessionInstructionSnapshotStore(): SessionInstructionSnapshotStore;
|
|
67
85
|
//#endregion
|
|
68
86
|
export { SessionInstructionSnapshotStore as a, sharedSessionInstructionSnapshotStore as c, SessionInstructionSnapshot as i, sharedWorkspaceInstructionStore as l, InstructionConflictError as n, WorkspaceInstructionRecord as o, InstructionSizeError as r, WorkspaceInstructionStore as s, INSTRUCTION_MAX_BYTES as t };
|
|
69
|
-
//# sourceMappingURL=workspace-instructions-
|
|
87
|
+
//# sourceMappingURL=workspace-instructions-C_ViytzA.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artenx/dshb",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.39",
|
|
4
|
+
"description": "让 DSH 变成随时可用的多设备 Agent 工作台,支持将远程节点添加到本地 DSH,并像操作本地内容一样访问远程节点,包括会话环境、文件目录、终端等。支持在安装了本插件的多个 DSH 实例间同步数据。若部署在云服务器,Web 端访问支持登录认证。真正实现远程节点本地化操作。最新版本已支持 DSH 桌面端。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|