dsh-sweeper 1.5.19 → 1.5.20
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 +1 -0
- package/lib/index.js +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -278,6 +278,7 @@ node test/browser/check.mjs # 需要本机有 Chrome/Edge,或 CHROME=<p
|
|
|
278
278
|
## 边界与自保
|
|
279
279
|
|
|
280
280
|
- **工具的遍历上限会说出来**:模型自己找文件时走到 400 个条目上限会收到一句「只看了前 400 个」,不会把「没扫完」当成「没有」。
|
|
281
|
+
- **页面读的字段,路由一定发**:新增 `test/route-fields.mjs`,从 `lib/client.js` 抽出所有 `review.*` 字段,逐条核对 `/review` 的响应里确实有——本轮就是它抓到 `hintsCapped` 只写进了提示词、没写进响应。
|
|
281
282
|
- **回收站不会为了报一个数字去扫整棵树**:清单损坏的批次靠数文件来报数量,数到 2,000 个就停,页面写「至少 2,000 个文件」,而不是让每次刷新都遍历几万个文件。
|
|
282
283
|
- **清单外文件太多时会说「至少」**:模型复核的清单外文件最多收集 160 个、提交 80 个;命中上限时页面写「清单外文件至少 N 个……磁盘上还有更多没有列出来」,提示词里也会告诉模型这份清单不完整。
|
|
283
284
|
- **清理大目录不会越来越慢**:一次清理每搬一个文件只追加一行 `journal.jsonl`(而不是重写整份清单),搬完再折成一份 `manifest.json`;批次跑到一半崩溃时,`journal.jsonl` 仍是完整的记录,列表和恢复都认得它。
|
package/lib/index.js
CHANGED
|
@@ -561,6 +561,7 @@ export function apply(ctx, config = {}) {
|
|
|
561
561
|
skipped: out.skipped,
|
|
562
562
|
hintsTotal: out.hintsTotal || 0,
|
|
563
563
|
hintsSkipped: out.hintsSkipped || 0,
|
|
564
|
+
hintsCapped: out.hintsCapped === true,
|
|
564
565
|
note: out.verdict && out.verdict.note ? out.verdict.note : '',
|
|
565
566
|
auto: plan.auto.map((it) => ({ key: it.key, path: it.path, size: it.size })),
|
|
566
567
|
autoBytes: plan.auto.reduce((n, it) => n + (it.size || 0), 0),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-sweeper",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "清理对话留下的临时文件与垃圾,释放磁盘空间;只报告,清理进回收站可恢复 (cleanup junk files conversations leave on disk, free up space)",
|
|
6
6
|
"keywords": [
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"contract": "node test/contract.mjs",
|
|
70
70
|
"messages": "node test/messages.mjs",
|
|
71
71
|
"listing": "node test/market-listing.mjs",
|
|
72
|
-
"shots": "node test/screenshots.mjs"
|
|
72
|
+
"shots": "node test/screenshots.mjs",
|
|
73
|
+
"fields": "node test/route-fields.mjs"
|
|
73
74
|
}
|
|
74
75
|
}
|