@hyzyn/dsh-safe 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/lib/wrap.js +8 -0
  2. package/package.json +1 -1
package/lib/wrap.js CHANGED
@@ -117,6 +117,14 @@ export async function runWrapped(options) {
117
117
  return code
118
118
  }
119
119
  if (!dryRun) persistFailure(invocation.profile, stderr)
120
+ // 重复挂载(同一 id 被多个 bundle/行挂载)发生在 include 挂载阶段,
121
+ // 早于 profile 层 disabled 覆盖的合并——禁用行管不住它,隔离无效。
122
+ // 直接给针对性指引并透传,不做无效的"禁用+重试"。
123
+ if (stderr.includes('duplicate loader entry id')) {
124
+ log(t('repairDuplicate'))
125
+ log(t('explainHint'))
126
+ return code
127
+ }
120
128
  const known = collectKnownRows(invocation.profile)
121
129
  const report = parseFailureReport(stderr)
122
130
  let hits = matchFailures(report, known)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyzyn/dsh-safe",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "dsh 启动保险丝:社区插件不兼容导致 dsh 启动失败时,自动禁用坏插件并重试",
5
5
  "type": "module",
6
6
  "license": "MIT",