feat: upgrade dsh to 0.1.1-rc.2 with credentials migration (issue #38) - #41
Merged
FlashingChen merged 3 commits intoAug 27, 2026
Conversation
…roof banner (issue #38) - scripts/bundle-runtime.mjs: 0.1.0-rc.6 -> 0.1.1-rc.2 - resources/rt: lock/bump, manifest updated - add src/core/credentials-migration.ts (flat -> versioned, backups, string version fix) - diagnostics: add Credentials format field - IPC + preload + main: credentials status/migrate/openBackup handlers - renderer: banner + checks, migration flow - tests: credentials-migration.test.mjs (6 cases) - plan: plans/upgrade-dsh-0.1.1-rc.2.md
…ned migration, nd cleanup)
FlashingChen
deleted the
FlashingChen/he-value-for-version-in-users-coderstory-.dsh-.c
branch
August 27, 2026 06:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
上游 DeepSeek Harness 已升至
0.1.1-rc.2,dsh-credentials-local改为versioned格式(version: 1数字 +refs:)。旧 flat 文件在新版报unknown top-level key,新版version: "1"字符串在旧版报must be a string,形成两头不兼容(Issue #38)。本 PR 做什么
scripts/bundle-runtime.mjsDSH_VERSION 0.1.0-rc.6 → 0.1.1-rc.2,resources/rt+runtime-manifest.json已重打,Nodev24.10.0/ pnpm11.22.0不变src/core/credentials-migration.ts(复刻上游renderFlatLayoutMigration校验)detectCredentialsFormat/migrateFlat/fixVersionStringIssue/backupAndMigrate(先备份.bak-*再校验写入,幂等)diagnostics新增credentialsFormat,ipc新增credentials:status/migrate/open-backup三通道,main加来源校验 + 路径穿越校验renderer/index.html顶部黄色 banner +renderer.tscheckCredentialsMigration/doMigrateCredentials(flat→推荐迁移,unknown→提示手动检查,支持稍后)tests/credentials-migration.test.mjs6 用例,106/106通过防呆策略(与计划一致)
rt目录,不双版本;检测 flat→推荐横幅+备份+一键迁移,不静默不阻断flat定义:无version、无%|---|...指令、所有顶层 key 为合法credentialRef且值为非空字符串version: "1"字符串陷阱自动修正为数字1验证
npm run build✅tsc --noEmit0 错node --test106/106192.168.0.139:npm run build✅node --test106/106,dsh --profile web --dump-config504 行正常scripts/smoke-windows.mjs10 场景:missing/empty/flat→versioned/幂等/"1"字符串/单引号/损坏/多余key/回滚/诊断10/10resources/nd已清理至 tracked 9 文件计划文档
plans/upgrade-dsh-0.1.1-rc.2.md已更新为“已验证”Closes #38