dsh-profile-gist-sync

把本机 DSH profile 的文本配置备份到不公开列出的 secret GitHub Gist,并在另一台机器上同步回来:设置页只有三个按钮(状态/上传/同步),另有 config_backup 工具;恢复是合并式的、可撤销;凭据库、二进制文件、锁文件与本机用量计数不进入备份,并在界面上逐项列明。需要带 gist 权限的 GitHub 令牌(DSH_GITHUB_TOKEN、GITHUB_TOKEN 或已登录的 gh CLI)。文件按原文上传、不做脱敏,写进 cordis.patch.yml 或 .npmrc 的密钥会进入 Gist,任何拿到链接的人都能读。

插件介绍

把本机 DSH profile 的文本配置备份到不公开列出的 secret GitHub Gist,并在另一台机器上同步回来:设置页只有三个按钮(状态/上传/同步),另有 config_backup 工具;恢复是合并式的、可撤销;凭据库、二进制文件、锁文件与本机用量计数不进入备份,并在界面上逐项列明。需要带 gist 权限的 GitHub 令牌(DSH_GITHUB_TOKEN、GITHUB_TOKEN 或已登录的 gh CLI)。文件按原文上传、不做脱敏,写进 cordis.patch.yml 或 .npmrc 的密钥会进入 Gist,任何拿到链接的人都能读。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:Meta-Virgo/dsh-profile-gist-sync

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。