dsh-hot-search 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -49,7 +49,7 @@ dsh --dump-config | Select-String hot-search
49
49
  | `excludeDirs` | 见 `src/config.mjs` | 目录名排除表(精确匹配;`.` 开头的一律跳过) |
50
50
  | `maxFileSize` | `2 MiB` | 单文件超过就不入索引 |
51
51
  | `maxIndexedBytes` | `64 MiB` | 每个根的总预算,防止大库吃满内存 |
52
- | `refreshIntervalMs` | `120000` | 索引陈旧后自动重建的检查间隔;`0` = 不自动重建 |
52
+ | `refreshIntervalMs` | `120000` | 索引陈旧后自动重建的检查间隔;`0` = 不自动重建。**本 bundle 的 `cordis.patch.yml` 显式设成了 `60000`**,所以装完 `--dump-config` 看到的是 60 秒 |
53
53
  | `fuzzyMaxErrors` | `0` | 模糊匹配容错字数;`0` = 按词长自动(`len//4`,短于 4 字不自动容错) |
54
54
  | `watch` | `true` | FFF finder 是否文件监视(长驻进程建议开) |
55
55
  | `stateDir` | `""` | frecency/历史库的**根**目录;空 = `$DSH_HOME/hot-search`,再退化到系统 cache |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-hot-search",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Resident hot search for DSH: FFF-backed fuzzy filename + indexed grep + CJK typo-tolerant content search, all in the host process (no per-query process spawn).",
6
6
  "main": "src/index.mjs",
package/src/config.mjs CHANGED
@@ -16,7 +16,7 @@ export const configSchema = Schema.object({
16
16
  ).default([]),
17
17
  /** 进入行索引的扩展名。 */
18
18
  extensions: Schema.array(Schema.string()).default([".md", ".txt", ".markdown"]),
19
- /** 目录名排除表(前缀/精确匹配)。 */
19
+ /** 目录名排除表(与目录名精确匹配;`.` 开头的目录另行一律跳过)。 */
20
20
  excludeDirs: Schema.array(Schema.string()).default([
21
21
  ".obsidian", ".trash", ".git", ".github", "node_modules",
22
22
  ".dsh-tools", ".dsh", "__pycache__", ".venv", "venv", "dist", "build",