dsh-session-sync 0.2.11 → 0.2.13
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 +1 -1
- package/CHANGELOG.md +18 -0
- package/README.es.md +2 -2
- package/README.hi.md +2 -2
- package/README.md +2 -2
- package/README.pt.md +2 -2
- package/README.zh.md +2 -2
- package/lib/engine.mjs +4 -1
- package/package.json +14 -14
package/ARCHITECTURE.md
CHANGED
|
@@ -52,7 +52,7 @@ The three-way merge compares `base` (merge base), `ours` (local), and `theirs` (
|
|
|
52
52
|
| `append-both` | both appended past base | keep ours + fork file for theirs |
|
|
53
53
|
| `diverged` | neither is a superset | keep ours + fork file for theirs |
|
|
54
54
|
|
|
55
|
-
Fork files are named `<basename>.remote-fork-<UTC
|
|
55
|
+
Fork files are named `<basename>.remote-fork-<UTC 14-digit yyyyMMddHHmmss>-<device8>` (`forkFileName` rejects any non-14-digit stamp, so both backends must strip the ISO separators `-`, `:`, and `T`); mirror and cleanup **never delete or overwrite** files matching that pattern, so both lineages always survive. When a conflicting session is live and has no open turn, the plugin also forks the session at the harness level and injects a persistent `user/message` notice into the child. The session-level mapping follows the host's real session-store layout `$DSH_HOME/sessions/<projectKey>/<sessionId>/<file>` — `projectKey` is derived from the session `cwd` (`_no-cwd` when absent) and `sessionId` is the host's `encodeSegment` form, which `lib/paths.mjs` decodes back (`~XXXX` escapes). Fork paths that do not fit that shape (or the legacy flat `<mirrorDir>/<sessionId>/<file>` form) are reported with a warning and never silently dropped; the fork files themselves are always preserved.
|
|
56
56
|
|
|
57
57
|
## Confirmation gate
|
|
58
58
|
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.2.13] - 2026-09-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Pin the `@deepseek-ai/dsh-*` dev/test dependencies to the published `0.1.5-rc.1` line and record `0.1.5-rc.1` in `dshWorkshop.compatibility.dshVersions`; the monthly Compat workflow now runs against `0.1.5-rc.1`. The peer range `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0` is unchanged, so no supported host line is dropped.
|
|
15
|
+
|
|
16
|
+
### Docs
|
|
17
|
+
|
|
18
|
+
- Refresh the five-language README compatibility baseline to `dsh-v0.1.5-rc.1` (verified 2026-09-10).
|
|
19
|
+
|
|
20
|
+
## [0.2.12] - 2026-09-09
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Generate the git-backend fork timestamp as strictly 14 digits: `lib/engine.mjs` stripped only `-` and `:` from `toISOString()` before slicing 14 characters, so the ISO `T` survived (`20260909T13523`), `forkFileName`'s `/^\d{14}$/` check failed, and every git-backend conflict fork silently fell back to the epoch stamp `19700101000000`. The stamp now removes `-`, `:` and `T` exactly like `lib/encrypted.mjs`, yielding a real `yyyyMMddHHmmss` UTC stamp; the encrypted backend was already correct and no other behavior changes. Regression tests assert a 14-digit non-epoch stamp on a real fork path plus the acceptance/fallback contract in `test/paths.test.mjs`.
|
|
25
|
+
|
|
8
26
|
## [0.2.11] - 2026-09-09
|
|
9
27
|
|
|
10
28
|
### Fixed
|
package/README.es.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
| Superficie | Estado |
|
|
28
28
|
|---|---|
|
|
29
|
-
| Harness | DeepSeek Harness `dsh-v0.1.5-
|
|
29
|
+
| Harness | DeepSeek Harness `dsh-v0.1.5-rc.1` (tag de GitHub, verificado el 2026-09-10: cadena completa de puertas + smoke de instalación de perfil). Línea de dependencias npm `0.1.5-rc.1`, peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0`. (adaptado el 2026-09-09): el sobre de sesión conserva su campo ignorable solo para compatibilidad de lectura de logs almacenados - Session.append aún no puede estamparlo, por lo que el comportamiento de la puerta no cambia. |
|
|
30
30
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
31
31
|
| Plataformas | Cualquier lugar donde `git` y DSH se ejecuten (espejo basado en git; sin código específico de plataforma) |
|
|
32
32
|
| Modelo | Los modelos solo texto funcionan plenamente; no se requiere visión ni capacidad extra |
|
|
@@ -180,7 +180,7 @@ Línea base: con `backend: git` (el predeterminado), los bytes de sesión se alm
|
|
|
180
180
|
|
|
181
181
|
```sh
|
|
182
182
|
pnpm install # node ^22.19 || >=24
|
|
183
|
-
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs contra los peers 0.1.
|
|
183
|
+
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs contra los peers 0.1.5-rc.1 publicados
|
|
184
184
|
pnpm test # node --test (12 archivos de test; la suite git del motor se omite sin git)
|
|
185
185
|
pnpm run verify:self-contained # las specs de dependencias resuelven desde el registro
|
|
186
186
|
pnpm run verify:artifacts # archivos publicados presentes + index.mjs importable
|
package/README.hi.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
| सतह | स्थिति |
|
|
28
28
|
|---|---|
|
|
29
|
-
| Harness | DeepSeek Harness `dsh-v0.1.5-
|
|
29
|
+
| Harness | DeepSeek Harness `dsh-v0.1.5-rc.1` (GitHub टैग, 2026-09-10 को सत्यापित: पूर्ण गेट श्रृंखला + प्रोफ़ाइल इंस्टॉल स्मोक)। npm निर्भरता-लाइन `0.1.5-rc.1`, peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0`। (2026-09-09 को अनुकूलित): सत्र लिफ़ाफ़ा अपना ignorable फ़ील्ड केवल संग्रहीत-लॉग पठन संगतता के लिए रखता है - Session.append अभी भी इसे स्टैम्प नहीं कर सकता, इसलिए गेट व्यवहार अपरिवर्तित है। |
|
|
30
30
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
31
31
|
| प्लेटफ़ॉर्म | जहाँ भी `git` और DSH चलते हैं (git-आधारित मिरर; कोई प्लेटफ़ॉर्म-विशिष्ट कोड नहीं) |
|
|
32
32
|
| मॉडल | केवल-टेक्स्ट मॉडल पूर्ण रूप से समर्थित; विज़न या अतिरिक्त क्षमता की आवश्यकता नहीं |
|
|
@@ -180,7 +180,7 @@ dsh --profile web --dump-config | grep -A2 'id: session-sync'
|
|
|
180
180
|
|
|
181
181
|
```sh
|
|
182
182
|
pnpm install # node ^22.19 || >=24
|
|
183
|
-
pnpm run typecheck && pnpm run typecheck:ci # प्रकाशित 0.1.
|
|
183
|
+
pnpm run typecheck && pnpm run typecheck:ci # प्रकाशित 0.1.5-rc.1 peers के विरुद्ध tsc --checkJs
|
|
184
184
|
pnpm test # node --test (12 टेस्ट फ़ाइलें; git इंजन सुइट बिना git के छोड़ी जाती है)
|
|
185
185
|
pnpm run verify:self-contained # निर्भरता spec रजिस्ट्री से हल होती हैं
|
|
186
186
|
pnpm run verify:artifacts # प्रकाशित फ़ाइलें उपस्थित + index.mjs import योग्य
|
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
| Surface | Status |
|
|
31
31
|
|---|---|
|
|
32
|
-
| Harness | DeepSeek Harness `dsh-v0.1.5-
|
|
32
|
+
| Harness | DeepSeek Harness `dsh-v0.1.5-rc.1` (GitHub tag, verified 2026-09-10: full gate chain + profile install smoke). npm dependency line `0.1.5-rc.1`, peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0`. (adapted 2026-09-09): the session envelope keeps its ignorable field for stored-log read compatibility only - Session.append still cannot stamp it, so audit-gate behavior is unchanged. |
|
|
33
33
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
34
34
|
| Platforms | Anywhere `git` and DSH run (git-based mirror; no platform-specific code) |
|
|
35
35
|
| Model | Text-only models fully supported; no vision or extra model capability required |
|
|
@@ -185,7 +185,7 @@ Baseline: with `backend: git` (the default), session bytes are stored unencrypte
|
|
|
185
185
|
|
|
186
186
|
```sh
|
|
187
187
|
pnpm install # node ^22.19 || >=24
|
|
188
|
-
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs against the published 0.1.
|
|
188
|
+
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs against the published 0.1.5-rc.1 peers
|
|
189
189
|
pnpm test # node --test (12 test files; the engine git suite skips without git)
|
|
190
190
|
pnpm run verify:self-contained # dependency specs resolve from the registry
|
|
191
191
|
pnpm run verify:artifacts # shipped files present + index.mjs importable
|
package/README.pt.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
| Superfície | Status |
|
|
28
28
|
|---|---|
|
|
29
|
-
| Harness | DeepSeek Harness `dsh-v0.1.5-
|
|
29
|
+
| Harness | DeepSeek Harness `dsh-v0.1.5-rc.1` (tag do GitHub, verificado em 2026-09-10: cadeia completa de portas + smoke de instalação do perfil). Linha de dependências npm `0.1.5-rc.1`, peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0`. (adaptado em 2026-09-09): o envelope de sessão mantém seu campo ignorable apenas para compatibilidade de leitura de logs armazenados - o Session.append ainda não consegue estampá-lo, então o comportamento da porta não muda. |
|
|
30
30
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
31
31
|
| Plataformas | Qualquer lugar onde `git` e o DSH rodem (espelho baseado em git; sem código específico de plataforma) |
|
|
32
32
|
| Modelo | Modelos somente texto são totalmente suportados; sem necessidade de visão ou capacidade extra |
|
|
@@ -180,7 +180,7 @@ Linha de base: com `backend: git` (o padrão), os bytes de sessão são armazena
|
|
|
180
180
|
|
|
181
181
|
```sh
|
|
182
182
|
pnpm install # node ^22.19 || >=24
|
|
183
|
-
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs contra os peers 0.1.
|
|
183
|
+
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs contra os peers 0.1.5-rc.1 publicados
|
|
184
184
|
pnpm test # node --test (12 arquivos de teste; a suíte git do motor é omitida sem git)
|
|
185
185
|
pnpm run verify:self-contained # as specs de dependência resolvem do registro
|
|
186
186
|
pnpm run verify:artifacts # arquivos publicados presentes + index.mjs importável
|
package/README.zh.md
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
| 项目 | 状态 |
|
|
30
30
|
|---|---|
|
|
31
|
-
| Harness | DeepSeek Harness `dsh-v0.1.5-
|
|
31
|
+
| Harness | DeepSeek Harness `dsh-v0.1.5-rc.1`(GitHub tag,2026-09-10 已核验:完整门控链 + profile 安装冒烟)。npm 依赖线 `0.1.5-rc.1`,peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0`。(2026-09-09 已适配):会话信封保留 ignorable 字段但仅用于存量日志读取兼容——Session.append 仍无法盖章,门控行为不变。 |
|
|
32
32
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
33
33
|
| 平台 | 任何能运行 `git` 和 DSH 的环境(基于 git 镜像;无平台特定代码) |
|
|
34
34
|
| 模型 | 纯文本模型即可完整支持;无需视觉或额外模型能力 |
|
|
@@ -182,7 +182,7 @@ dsh --profile web --dump-config | grep -A2 'id: session-sync'
|
|
|
182
182
|
|
|
183
183
|
```sh
|
|
184
184
|
pnpm install # node ^22.19 || >=24
|
|
185
|
-
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs,针对已发布的 0.1.
|
|
185
|
+
pnpm run typecheck && pnpm run typecheck:ci # tsc --checkJs,针对已发布的 0.1.5-rc.1 peers
|
|
186
186
|
pnpm test # node --test(12 个测试文件;git 引擎套件在无 git 时跳过)
|
|
187
187
|
pnpm run verify:self-contained # 依赖 spec 可从 registry 解析
|
|
188
188
|
pnpm run verify:artifacts # 发布文件齐全 + index.mjs 可 import
|
package/lib/engine.mjs
CHANGED
|
@@ -253,7 +253,10 @@ export class SyncEngine {
|
|
|
253
253
|
const { resolutions, summary } = planMerge(entries)
|
|
254
254
|
const forks = []
|
|
255
255
|
const now = new Date()
|
|
256
|
-
|
|
256
|
+
// 严格 14 位 UTC 戳(yyyyMMddHHmmss):与 lib/encrypted.mjs 同口径剔除 ISO
|
|
257
|
+
// 分隔符(`-`/`:`/`T`)后再截断。仅去掉 `-`/`:` 会留下 `T`,使
|
|
258
|
+
// forkFileName 的 /^\d{14}$/ 失配并静默回退到纪元戳。
|
|
259
|
+
const stamp = now.toISOString().replace(/[-:T]/gu, '').slice(0, 14)
|
|
257
260
|
for (const resolution of resolutions) {
|
|
258
261
|
if (resolution.adoptTheirs) {
|
|
259
262
|
await this.#deps.git.checkoutStage('theirs', resolution.path)
|
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.2.
|
|
4
|
+
"version": "0.2.13",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PerryLink/dsh-session-sync.git"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"credentials:none"
|
|
70
70
|
],
|
|
71
71
|
"compatibility": {
|
|
72
|
-
"dshVersions": ["0.1.2-rc.1","0.1.5-
|
|
72
|
+
"dshVersions": ["0.1.2-rc.1","0.1.5-rc.1"]
|
|
73
73
|
},
|
|
74
74
|
"capability": {
|
|
75
75
|
"id": "session-sync",
|
|
@@ -99,21 +99,21 @@
|
|
|
99
99
|
"zod": "^4.4.3"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@deepseek-ai/dsh-attachment": "0.1.5-
|
|
102
|
+
"@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
|
|
103
103
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
104
104
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
105
105
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
106
|
-
"@deepseek-ai/dsh-commands": "0.1.5-
|
|
107
|
-
"@deepseek-ai/dsh-llm": "0.1.5-
|
|
108
|
-
"@deepseek-ai/dsh-session": "0.1.5-
|
|
109
|
-
"@deepseek-ai/dsh-storage": "0.1.5-
|
|
110
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.5-
|
|
111
|
-
"@deepseek-ai/dsh-storage-json": "0.1.5-
|
|
112
|
-
"@deepseek-ai/dsh-subprocess": "0.1.5-
|
|
113
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.5-
|
|
114
|
-
"@deepseek-ai/dsh-tools": "0.1.5-
|
|
115
|
-
"@deepseek-ai/dsh-user-approval": "0.1.5-
|
|
116
|
-
"@deepseek-ai/dsh-user-questions": "0.1.5-
|
|
106
|
+
"@deepseek-ai/dsh-commands": "0.1.5-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-session": "0.1.5-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-storage": "0.1.5-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.5-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-storage-json": "0.1.5-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-tools": "0.1.5-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-user-approval": "0.1.5-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-user-questions": "0.1.5-rc.1",
|
|
117
117
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
118
118
|
"@types/node": "^22.19.0",
|
|
119
119
|
"oxlint": "0.18.1",
|