PerryLink/dsh-session-sync ↗★ 13

dsh-session-sync

提供基于 Git 的跨设备会话同步与合并 适合需要在多台设备间无缝同步会话状态并解决冲突的用户。

套件
dsh-session-sync
相容性
待驗證
Harness 依賴範圍
>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0
Cordis 依賴範圍
^4.0.3
版本
0.2.20
授權
Apache-2.0
最近更新
2026年9月25日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-session-sync

Configuration

All tunables are Schemastery Config fields (changeable from cordis.yml). An id-targeted override replaces the whole row — restate every key you need. cordis.patch.yml documents each key inline.

KeyDefaultMeaning
enabledtrueMaster switch; false unregisters the command, tools, listeners, and auto modes
backendgitSync backend: git (plaintext mirror) or encrypted (age-encrypted mirror content)
sessionRoot''Session store root; empty = $DSH_HOME/sessions (both missing fails load)
repoDir''Sync worktree root; empty = $DSH_HOME/dsh-session-sync/repo
remote''Remote address (required before pull/push; status/diff work without one)
branchmainRemote branch name
gitBingitgit executable path
ageBinageage executable path (probed for backend: encrypted; missing degrades to plaintext)
ageRecipient''age recipient (public key or identity string); empty = cannot encrypt, degrades to plaintext
ageIdentity''Path to a passphrase-less age secret key for decryption; empty = cannot decrypt, degrades to plaintext
autoPullOnStartfalsePull once when the plugin mounts (config is the grant; no re-confirm)
autoPushOnTurnEndfalsePush after every closed turn
pullIntervalMinutes0Periodic pull every N minutes (0 = off, max 10080)
confirmViaautoConfirmation channel: auto (userQuestions first, then approval), userQuestions, approval
graceMs10000Grace period for git kills (ms)
commandTimeoutMs120000Per-command timeout (ms)
maxOutputBytes262144Per-stream collected-output cap (bytes)
commitNamedsh-session-syncCommit author name
commitEmaildsh-session-sync@localhostCommit author email
registerCommandtrueRegister the /sync command
registerToolstrueRegister the sync_* tools when the tools service is present

Example override in your profile patch:

- insert:
    - id: session-sync
      name: dsh-session-sync
      config:
        remote: git@github.com:you/your-dsh-sessions.git
        branch: main
        autoPushOnTurnEnd: true
        pullIntervalMinutes: 30
        confirmVia: userQuestions