dsh-session-sync 0.1.4 → 0.2.1
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/ARCHITECTURE.md +4 -1
- package/CHANGELOG.md +18 -0
- package/README.es.md +61 -37
- package/README.hi.md +61 -37
- package/README.md +65 -37
- package/README.pt.md +61 -37
- package/README.zh.md +63 -37
- package/cordis.patch.yml +9 -2
- package/index.mjs +107 -7
- package/lib/age.mjs +77 -0
- package/lib/backend.mjs +57 -0
- package/lib/constants.mjs +18 -1
- package/lib/encrypted.mjs +523 -0
- package/lib/errors.mjs +12 -2
- package/lib/git.mjs +38 -0
- package/lib/render.mjs +8 -4
- package/package.json +27 -21
- package/types.d.ts +11 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-sync",
|
|
3
3
|
"description": "Cross-device sync for DeepSeek Harness sessions: a dedicated git mirror of the session store, append-only three-way merge with keep-both + fork conflict resolution, /sync command, sync_pull/sync_push/sync_status tools, and configurable auto push/pull",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PerryLink/dsh-session-sync.git"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
],
|
|
71
71
|
"compatibility": {
|
|
72
72
|
"dshVersions": [
|
|
73
|
-
"0.1.
|
|
73
|
+
"0.1.2-alpha.3"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"capability": {
|
|
@@ -87,36 +87,38 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
90
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
91
|
+
"@deepseek-ai/dsh-commands": ">=0.1.0-rc.8 <0.2.0",
|
|
91
92
|
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
92
93
|
"@deepseek-ai/dsh-storage": ">=0.1.0-rc.8 <0.2.0",
|
|
93
94
|
"@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.8 <0.2.0",
|
|
94
95
|
"@deepseek-ai/dsh-storage-json": ">=0.1.0-rc.8 <0.2.0",
|
|
96
|
+
"@deepseek-ai/dsh-subprocess": ">=0.1.0-rc.8 <0.2.0",
|
|
95
97
|
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
|
|
96
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
98
|
+
"@deepseek-ai/schemastery": "^3.18.2"
|
|
97
99
|
},
|
|
98
100
|
"dependencies": {
|
|
99
|
-
"typescript": "^5.9.0",
|
|
100
101
|
"zod": "^4.4.3"
|
|
101
102
|
},
|
|
102
|
-
"devDependencies": {
|
|
103
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
103
|
+
"devDependencies": {"@deepseek-ai/dsh-attachment": "0.1.2-alpha.3",
|
|
104
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
104
105
|
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
105
106
|
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
106
|
-
"@deepseek-ai/dsh-commands": "0.1.
|
|
107
|
-
"@deepseek-ai/dsh-llm": "0.1.
|
|
108
|
-
"@deepseek-ai/dsh-session": "0.1.
|
|
109
|
-
"@deepseek-ai/dsh-storage": "0.1.
|
|
110
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.
|
|
111
|
-
"@deepseek-ai/dsh-storage-json": "0.1.
|
|
112
|
-
"@deepseek-ai/dsh-subprocess": "0.1.
|
|
113
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.
|
|
114
|
-
"@deepseek-ai/dsh-tools": "0.1.
|
|
115
|
-
"@deepseek-ai/dsh-user-approval": "0.1.
|
|
116
|
-
"@deepseek-ai/dsh-user-questions": "0.1.
|
|
117
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
107
|
+
"@deepseek-ai/dsh-commands": "0.1.2-alpha.3",
|
|
108
|
+
"@deepseek-ai/dsh-llm": "0.1.2-alpha.3",
|
|
109
|
+
"@deepseek-ai/dsh-session": "0.1.2-alpha.3",
|
|
110
|
+
"@deepseek-ai/dsh-storage": "0.1.2-alpha.3",
|
|
111
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.2-alpha.3",
|
|
112
|
+
"@deepseek-ai/dsh-storage-json": "0.1.2-alpha.3",
|
|
113
|
+
"@deepseek-ai/dsh-subprocess": "0.1.2-alpha.3",
|
|
114
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.2-alpha.3",
|
|
115
|
+
"@deepseek-ai/dsh-tools": "0.1.2-alpha.3",
|
|
116
|
+
"@deepseek-ai/dsh-user-approval": "0.1.2-alpha.3",
|
|
117
|
+
"@deepseek-ai/dsh-user-questions": "0.1.2-alpha.3",
|
|
118
|
+
"@deepseek-ai/schemastery": "^3.18.2",
|
|
118
119
|
"@types/node": "^22.19.0",
|
|
119
|
-
"oxlint": "0.18.1"
|
|
120
|
+
"oxlint": "0.18.1",
|
|
121
|
+
"typescript": "^5.9.0"
|
|
120
122
|
},
|
|
121
123
|
"scripts": {
|
|
122
124
|
"typecheck": "tsc -p tsconfig.check.json",
|
|
@@ -147,5 +149,9 @@
|
|
|
147
149
|
"publishConfig": {
|
|
148
150
|
"access": "public"
|
|
149
151
|
},
|
|
150
|
-
"license": "Apache-2.0"
|
|
152
|
+
"license": "Apache-2.0",
|
|
153
|
+
"funding": {
|
|
154
|
+
"type": "individual",
|
|
155
|
+
"url": "https://github.com/sponsors/PerryLink"
|
|
156
|
+
}
|
|
151
157
|
}
|
package/types.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ declare module '@deepseek-ai/dsh-session' {
|
|
|
51
51
|
export interface Config {
|
|
52
52
|
/** 总开关;false 时命令、工具、监听器与自动模式全部卸载。 */
|
|
53
53
|
enabled?: boolean
|
|
54
|
-
/**
|
|
55
|
-
backend?: 'git'
|
|
54
|
+
/** 同步后端词汇;`git` 明文、`encrypted` age 加密的 git;对象存储为预留占位(配置即响亮失败)。 */
|
|
55
|
+
backend?: 'git' | 'encrypted'
|
|
56
56
|
/** 会话存储根;空 = $DSH_HOME/sessions(两者皆缺加载期响亮失败)。 */
|
|
57
57
|
sessionRoot?: string
|
|
58
58
|
/** 同步 git 工作树根;空 = $DSH_HOME/dsh-session-sync/repo。 */
|
|
@@ -63,6 +63,12 @@ export interface Config {
|
|
|
63
63
|
branch?: string
|
|
64
64
|
/** git 可执行路径(默认 'git')。 */
|
|
65
65
|
gitBin?: string
|
|
66
|
+
/** age 可执行路径(默认 'age';backend: encrypted 时探测,缺失降级明文)。 */
|
|
67
|
+
ageBin?: string
|
|
68
|
+
/** age 收件人(公钥/身份串;空 = 无法加密,降级明文)。 */
|
|
69
|
+
ageRecipient?: string
|
|
70
|
+
/** age 身份文件路径(无口令私钥;空 = 无法解密,降级明文)。 */
|
|
71
|
+
ageIdentity?: string
|
|
66
72
|
/** 挂载时自动拉取一次(配置即授权,不再确认)。 */
|
|
67
73
|
autoPullOnStart?: boolean
|
|
68
74
|
/** 每个 turn/end 后自动推送(配置即授权,不再确认)。 */
|
|
@@ -105,6 +111,7 @@ export interface StatusValue {
|
|
|
105
111
|
lastPushAt?: number
|
|
106
112
|
lastError?: string
|
|
107
113
|
error?: string
|
|
114
|
+
warnings?: string[]
|
|
108
115
|
}
|
|
109
116
|
|
|
110
117
|
/** sync_pull 工具规范结果。 */
|
|
@@ -118,6 +125,7 @@ export interface PullValue {
|
|
|
118
125
|
forks?: string[]
|
|
119
126
|
head?: string
|
|
120
127
|
error?: string
|
|
128
|
+
warnings?: string[]
|
|
121
129
|
}
|
|
122
130
|
|
|
123
131
|
/** sync_push 工具规范结果。 */
|
|
@@ -129,4 +137,5 @@ export interface PushValue {
|
|
|
129
137
|
deleted?: number
|
|
130
138
|
remote?: string
|
|
131
139
|
error?: string
|
|
140
|
+
warnings?: string[]
|
|
132
141
|
}
|