@dongfangw/study-kit 0.2.1 → 0.3.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 +11 -1
- package/lib/client.js +1 -0
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/indexBuild.d.ts +23 -0
- package/lib/indexBuild.d.ts.map +1 -0
- package/lib/indexBuild.js +167 -0
- package/lib/indexBuild.js.map +1 -0
- package/lib/tools.d.ts +19 -0
- package/lib/tools.d.ts.map +1 -1
- package/lib/tools.js +116 -2
- package/lib/tools.js.map +1 -1
- package/lib/types/client/prose.d.ts.map +1 -1
- package/package.json +2 -2
- package/skills/aero-concept-qa/SKILL.md +17 -0
- package/skills/kb-organize/SKILL.md +12 -0
|
@@ -56,6 +56,18 @@ npx @dongfangw/library-core catalog "<资料目录>"
|
|
|
56
56
|
|
|
57
57
|
两条都通过后,刷新学伴的「我的库」,新库即出现;打开任意一篇检查公式与图片。
|
|
58
58
|
|
|
59
|
+
## 4.5 检索索引(不用管,但知道它在做什么)
|
|
60
|
+
|
|
61
|
+
打开资料面板时会**自动**在工作区根建 `<工作区>/.kb-index/kb-index.json`(后台线程,不卡界面),
|
|
62
|
+
`kb_search` 从此返回「命中 N **块**」(节标题 + 行范围 + 命中词)而不是「命中 N **处**」。
|
|
63
|
+
记了新笔记又搜不到时,说一句「把索引更新一下」即可(`kb_index` 工具)。
|
|
64
|
+
|
|
65
|
+
两件让索引更准的小事(都免费):
|
|
66
|
+
|
|
67
|
+
- **每篇正文第一行写标题**(`= 标题` / `# 标题`)。索引拿它当节名——文件名是「笔记1」也不会认错。
|
|
68
|
+
- 需要精确定位的关键词,写在正文头部的 `:kb-keywords: 词1;词2` 里;清单里加
|
|
69
|
+
`keywords: { field: kb-keywords }` 后这些词会进检索词表。
|
|
70
|
+
|
|
59
71
|
## 5. 多库:工作区清单
|
|
60
72
|
|
|
61
73
|
若想一次挂多个库,在工作区根放 `libraries.yaml`(**本地文件,不进 git**):
|