dsh-session-sync 0.2.29 → 0.2.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.
- package/ARCHITECTURE.md +0 -0
- package/CHANGELOG.md +12 -0
- package/LICENSE +0 -0
- package/README-es.md +148 -109
- package/README-hi.md +148 -109
- package/README-pt.md +148 -109
- package/README-zh.md +148 -109
- package/README.md +150 -110
- package/SECURITY.md +0 -0
- package/THIRD_PARTY_NOTICES.md +0 -0
- package/cordis.patch.yml +0 -0
- package/index.mjs +0 -0
- package/lib/age.mjs +0 -0
- package/lib/backend.mjs +0 -0
- package/lib/constants.mjs +0 -0
- package/lib/domain.mjs +0 -0
- package/lib/encrypted.mjs +0 -0
- package/lib/engine.mjs +0 -0
- package/lib/errors.mjs +0 -0
- package/lib/gate.mjs +0 -0
- package/lib/git.mjs +0 -0
- package/lib/merge.mjs +0 -0
- package/lib/mirror.mjs +2 -2
- package/lib/paths.mjs +0 -0
- package/lib/render.mjs +0 -0
- package/lib/sanitize.mjs +0 -0
- package/lib/status.mjs +0 -0
- package/package.json +2 -2
- package/types.d.ts +0 -0
package/THIRD_PARTY_NOTICES.md
CHANGED
|
File without changes
|
package/cordis.patch.yml
CHANGED
|
File without changes
|
package/index.mjs
CHANGED
|
File without changes
|
package/lib/age.mjs
CHANGED
|
File without changes
|
package/lib/backend.mjs
CHANGED
|
File without changes
|
package/lib/constants.mjs
CHANGED
|
File without changes
|
package/lib/domain.mjs
CHANGED
|
File without changes
|
package/lib/encrypted.mjs
CHANGED
|
File without changes
|
package/lib/engine.mjs
CHANGED
|
File without changes
|
package/lib/errors.mjs
CHANGED
|
File without changes
|
package/lib/gate.mjs
CHANGED
|
File without changes
|
package/lib/git.mjs
CHANGED
|
File without changes
|
package/lib/merge.mjs
CHANGED
|
File without changes
|
package/lib/mirror.mjs
CHANGED
|
@@ -104,7 +104,7 @@ async function writeSourceSnapshot(repoDir, sourcePaths) {
|
|
|
104
104
|
* 宿主私有会话产物(租约/迁移暂存,HOST_ARTIFACT_NAME_RE)既不复制、也不删除:
|
|
105
105
|
* 它们是运行时状态,同步它们只会把某设备的瞬时状态变成另一侧的删除/噪音。
|
|
106
106
|
* @param {object} deps - {sessionRoot, repoDir, mirrorDir, forkNameRe?}。
|
|
107
|
-
* @returns {Promise<{mirrored: number, unchanged: number, skippedLinks: string[], deleted: string[], forkedPreserved: string[], hostArtifactsSkipped: number, hostArtifactsPreserved: string[]}>}
|
|
107
|
+
* @returns {Promise<{mirrored: number, unchanged: number, skippedLinks: string[], deleted: string[], remotePreserved: string[], snapshotUnknown: boolean, forkedPreserved: string[], hostArtifactsSkipped: number, hostArtifactsPreserved: string[]}>}
|
|
108
108
|
*/
|
|
109
109
|
export async function mirrorSessionRoot(deps) {
|
|
110
110
|
const forkRe = deps.forkNameRe ?? FORK_NAME_RE
|
|
@@ -274,7 +274,7 @@ export async function restoreSessionRoot(deps) {
|
|
|
274
274
|
try {
|
|
275
275
|
entries = await fs.readdir(deps.mirrorRoot, { recursive: true, withFileTypes: true })
|
|
276
276
|
} catch {
|
|
277
|
-
return { restored: 0, unchanged: 0, skipped: 0 }
|
|
277
|
+
return { restored: 0, unchanged: 0, skipped: 0, tracked: 0 }
|
|
278
278
|
}
|
|
279
279
|
let restored = 0
|
|
280
280
|
let unchanged = 0
|
package/lib/paths.mjs
CHANGED
|
File without changes
|
package/lib/render.mjs
CHANGED
|
File without changes
|
package/lib/sanitize.mjs
CHANGED
|
File without changes
|
package/lib/status.mjs
CHANGED
|
File without changes
|
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.31",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PerryLink/dsh-session-sync.git"
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"zod": "
|
|
114
|
+
"zod": "4.4.3"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
|
package/types.d.ts
CHANGED
|
File without changes
|