@kingsleyasher/dsh-knowledge-base 3.1.5 → 3.1.6

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/src/host/index.js CHANGED
@@ -1059,7 +1059,11 @@ let parsingService = null
1059
1059
  isConcurrencySafe: () => false,
1060
1060
  async execute(args) {
1061
1061
  // 与自检共用同一条路径:recover 的前置闸门在 drainRecoverTodo 里
1062
- return core.checkEntry(args ?? {})
1062
+ try {
1063
+ return await core.checkEntry(args ?? {})
1064
+ } catch (error) {
1065
+ return { ok: false, execution: 'error', quality: 'unknown', defects: [], reason: error.code || 'CHECK_FAILED', detail: error.message }
1066
+ }
1063
1067
  },
1064
1068
  },
1065
1069
  {