dsh-sweeper 1.5.1 → 1.5.3
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.md +3 -0
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -303,6 +303,9 @@ node test/browser/check.mjs # 需要本机有 Chrome/Edge,或 CHROME=<p
|
|
|
303
303
|
- **上限会说出来**:模型复核只发送前 100 条候选、80 个清单外文件,每段对话只发送前 40 个;页面会把
|
|
304
304
|
没发送的条数写在行内和结果卡片上,而不是让人以为整份报告都被看过一遍。只有清单外文件、没有候选时
|
|
305
305
|
也会照常问模型——「没有候选」不等于「没有东西可看」。
|
|
306
|
+
- **动过盘就作废缓存**:任何一次「移入回收站」都会让已发布的报告和深度清理的预演
|
|
307
|
+
立刻失效(下一次读取重新扫描),所以页面不会指着已经进回收站的文件让你再点一次。
|
|
308
|
+
这条由 `test/bookkeeping.mjs` 守着:每个搬文件的调用后面都必须跟着失效逻辑。
|
|
306
309
|
- **后台重启之后**:DSH 重启会让宿主忘掉正在跑的深度分析。页面不会假装还在分析——连续三次轮询
|
|
307
310
|
失败或后台回 `job: null` 就标成「已中断」,说明原因,并让你重新估算或重跑。
|
|
308
311
|
- **盘上文件变了之后**:报告、扫描中的 epoch、深度计划三份缓存一起失效,所以模型刚清理掉的文件不会在
|
package/lib/index.js
CHANGED
|
@@ -531,6 +531,7 @@ export function apply(ctx, config = {}) {
|
|
|
531
531
|
const sizeOf = new Map(report.items.map((it) => [it.key, it.size || 0]))
|
|
532
532
|
if (plan.auto.length && body.autoDelete !== false) {
|
|
533
533
|
const result = await quarantine(plan.auto, { note: 'model review' })
|
|
534
|
+
noteDiskChanged()
|
|
534
535
|
moved = result.moved || []
|
|
535
536
|
failed = result.failed || []
|
|
536
537
|
batch = result.batch
|