@bruc3van/dsh-doctor 0.5.8 → 0.6.0
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/README.en.md +15 -10
- package/README.md +15 -10
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/behavior.md +16 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/config-rules.json +36 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/manifest.json +20 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/packages.json +83 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/services.json +28 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.2-rc.1/symbols.json +134 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/behavior.md +26 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/config-rules.json +36 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/manifest.json +19 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/packages.json +101 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/services.json +28 -0
- package/migrations/dsh-v0.1.1-rc.2__dsh-v0.1.5-rc.2/symbols.json +134 -0
- package/package.json +2 -2
- package/skills/dsh-plugin-upgrade/SKILL.md +18 -18
- package/skills/dsh-plugin-upgrade/evals/evals.json +15 -15
- package/skills/dsh-plugin-upgrade/evals/trigger-evals.json +13 -13
- package/skills/dsh-plugin-upgrade/references/compatibility-strategy.md +7 -7
- package/skills/dsh-plugin-upgrade/references/migration-map.md +16 -1
- package/skills/dsh-plugin-upgrade/references/source-investigation.md +1 -1
- package/skills/dsh-plugin-upgrade/references/verification.md +1 -1
- package/src/cli.mjs +4 -4
- package/src/doctor.mjs +23 -2
- package/src/i18n.mjs +2 -0
- package/src/migrate.mjs +1 -1
package/src/i18n.mjs
CHANGED
|
@@ -60,6 +60,7 @@ const ZH_MESSAGES = {
|
|
|
60
60
|
INVALID_HARNESS_ROOT: () => '指定的 Harness 根目录不是有效的源码工作区。',
|
|
61
61
|
INVALID_WORKSPACE_MANIFEST: () => '已忽略一个无效的 Harness workspace 包清单。',
|
|
62
62
|
HARNESS_INSTALLATION_UNKNOWN: () => '无法定位这个 DSH Home 当前使用的 DSH 安装。',
|
|
63
|
+
DSH_CLI_NOT_RUNNABLE: () => '解析到的 DSH CLI 命令无法执行。',
|
|
63
64
|
INVALID_DEPENDENCY_MAP: item => `${captured(item.message, /^(\S+) must be/) ?? '依赖字段'}必须是“包名到版本范围”的对象。`,
|
|
64
65
|
INVALID_CLIENT_DECLARATION: item => `${item.package} 的 dsh.client 声明无效。`,
|
|
65
66
|
INVALID_CLIENT_PLATFORM: item => `${item.package} 的 dsh.client.platform 必须是字符串。`,
|
|
@@ -134,6 +135,7 @@ const ZH_SUGGESTIONS = {
|
|
|
134
135
|
INVALID_HARNESS_ROOT: () => '诊断源码工作区时,请把 DeepSeek Harness 仓库根目录传给 --harness-root。',
|
|
135
136
|
INVALID_WORKSPACE_MANIFEST: () => '修复该 workspace 包清单后,Doctor 才能把它纳入兼容性检查。',
|
|
136
137
|
HARNESS_INSTALLATION_UNKNOWN: () => '若使用源码工作区,请通过 --harness-root 明确指定;若使用独立 CLI,请通过 --dsh-command 指定。',
|
|
138
|
+
DSH_CLI_NOT_RUNNABLE: () => '重新安装该命令背后的 DSH 包,或通过 --dsh-command 指向一个可用的 dsh 可执行文件。',
|
|
137
139
|
INVALID_DEPENDENCY_MAP: () => '管理或启动 profile 前,请先修复这个依赖字段。',
|
|
138
140
|
INVALID_CLIENT_DECLARATION: update,
|
|
139
141
|
INVALID_CLIENT_PLATFORM: update,
|
package/src/migrate.mjs
CHANGED
|
@@ -391,7 +391,7 @@ function analysisInputs(root) {
|
|
|
391
391
|
export function analyzeMigration(pluginRoot = process.cwd(), options = {}) {
|
|
392
392
|
const root = resolve(pluginRoot)
|
|
393
393
|
if (!statSync(root).isDirectory()) throw new Error(`plugin root is not a directory: ${root}`)
|
|
394
|
-
const catalog = loadMigration(options.from ?? 'dsh-v0.1.1-rc.2', options.to ?? 'dsh-v0.1.
|
|
394
|
+
const catalog = loadMigration(options.from ?? 'dsh-v0.1.1-rc.2', options.to ?? 'dsh-v0.1.5-rc.2')
|
|
395
395
|
const actualTarget = actualTargetVersion(catalog, options.targetVersion)
|
|
396
396
|
const harness = verifyHarnessCheckout(catalog, options.harnessRoot)
|
|
397
397
|
const manifest = readManifest(root)
|