@zvec/zvec-grep 0.2.2 → 0.3.0-rc.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.
Files changed (415) hide show
  1. package/README.md +87 -252
  2. package/bin/zg.exe +3 -0
  3. package/install.cjs +510 -0
  4. package/package.json +22 -72
  5. package/platforms.json +92 -0
  6. package/plugins.cjs +183 -0
  7. package/README_CN.md +0 -239
  8. package/dist/authorization/index.d.ts +0 -7
  9. package/dist/authorization/index.js +0 -7
  10. package/dist/authorization/index.js.map +0 -1
  11. package/dist/authorization/manager.d.ts +0 -8
  12. package/dist/authorization/manager.js +0 -19
  13. package/dist/authorization/manager.js.map +0 -1
  14. package/dist/authorization/operation.d.ts +0 -7
  15. package/dist/authorization/operation.js +0 -50
  16. package/dist/authorization/operation.js.map +0 -1
  17. package/dist/authorization/planner.d.ts +0 -21
  18. package/dist/authorization/planner.js +0 -97
  19. package/dist/authorization/planner.js.map +0 -1
  20. package/dist/authorization/prompt.d.ts +0 -12
  21. package/dist/authorization/prompt.js +0 -63
  22. package/dist/authorization/prompt.js.map +0 -1
  23. package/dist/authorization/store.d.ts +0 -20
  24. package/dist/authorization/store.js +0 -251
  25. package/dist/authorization/store.js.map +0 -1
  26. package/dist/authorization/target.d.ts +0 -15
  27. package/dist/authorization/target.js +0 -49
  28. package/dist/authorization/target.js.map +0 -1
  29. package/dist/authorization/types.d.ts +0 -61
  30. package/dist/authorization/types.js +0 -2
  31. package/dist/authorization/types.js.map +0 -1
  32. package/dist/cli/args.d.ts +0 -5
  33. package/dist/cli/args.js +0 -1210
  34. package/dist/cli/args.js.map +0 -1
  35. package/dist/cli/auth.d.ts +0 -21
  36. package/dist/cli/auth.js +0 -209
  37. package/dist/cli/auth.js.map +0 -1
  38. package/dist/cli/commands.d.ts +0 -4
  39. package/dist/cli/commands.js +0 -742
  40. package/dist/cli/commands.js.map +0 -1
  41. package/dist/cli/errors.d.ts +0 -9
  42. package/dist/cli/errors.js +0 -131
  43. package/dist/cli/errors.js.map +0 -1
  44. package/dist/cli/format/context.d.ts +0 -9
  45. package/dist/cli/format/context.js +0 -786
  46. package/dist/cli/format/context.js.map +0 -1
  47. package/dist/cli/format/debug.d.ts +0 -4
  48. package/dist/cli/format/debug.js +0 -60
  49. package/dist/cli/format/debug.js.map +0 -1
  50. package/dist/cli/format/highlight.d.ts +0 -3
  51. package/dist/cli/format/highlight.js +0 -106
  52. package/dist/cli/format/highlight.js.map +0 -1
  53. package/dist/cli/format/progress.d.ts +0 -13
  54. package/dist/cli/format/progress.js +0 -290
  55. package/dist/cli/format/progress.js.map +0 -1
  56. package/dist/cli/format/range.d.ts +0 -3
  57. package/dist/cli/format/range.js +0 -24
  58. package/dist/cli/format/range.js.map +0 -1
  59. package/dist/cli/format/status.d.ts +0 -83
  60. package/dist/cli/format/status.js +0 -530
  61. package/dist/cli/format/status.js.map +0 -1
  62. package/dist/cli/help.d.ts +0 -1
  63. package/dist/cli/help.js +0 -528
  64. package/dist/cli/help.js.map +0 -1
  65. package/dist/cli/index.d.ts +0 -2
  66. package/dist/cli/index.js +0 -34
  67. package/dist/cli/index.js.map +0 -1
  68. package/dist/cli/install.d.ts +0 -4
  69. package/dist/cli/install.js +0 -1661
  70. package/dist/cli/install.js.map +0 -1
  71. package/dist/cli/managed-rg.d.ts +0 -10
  72. package/dist/cli/managed-rg.js +0 -337
  73. package/dist/cli/managed-rg.js.map +0 -1
  74. package/dist/cli/server-search.d.ts +0 -3
  75. package/dist/cli/server-search.js +0 -12
  76. package/dist/cli/server-search.js.map +0 -1
  77. package/dist/cli/types.d.ts +0 -87
  78. package/dist/cli/types.js +0 -10
  79. package/dist/cli/types.js.map +0 -1
  80. package/dist/cli/version.d.ts +0 -1
  81. package/dist/cli/version.js +0 -13
  82. package/dist/cli/version.js.map +0 -1
  83. package/dist/client/daemon-client.d.ts +0 -31
  84. package/dist/client/daemon-client.js +0 -203
  85. package/dist/client/daemon-client.js.map +0 -1
  86. package/dist/client/mode-router.d.ts +0 -9
  87. package/dist/client/mode-router.js +0 -28
  88. package/dist/client/mode-router.js.map +0 -1
  89. package/dist/client/search-policy.d.ts +0 -11
  90. package/dist/client/search-policy.js +0 -15
  91. package/dist/client/search-policy.js.map +0 -1
  92. package/dist/daemon/backend.d.ts +0 -78
  93. package/dist/daemon/backend.js +0 -1089
  94. package/dist/daemon/backend.js.map +0 -1
  95. package/dist/daemon/change-set.d.ts +0 -30
  96. package/dist/daemon/change-set.js +0 -163
  97. package/dist/daemon/change-set.js.map +0 -1
  98. package/dist/daemon/config.d.ts +0 -27
  99. package/dist/daemon/config.js +0 -107
  100. package/dist/daemon/config.js.map +0 -1
  101. package/dist/daemon/errors.d.ts +0 -5
  102. package/dist/daemon/errors.js +0 -11
  103. package/dist/daemon/errors.js.map +0 -1
  104. package/dist/daemon/http-server.d.ts +0 -30
  105. package/dist/daemon/http-server.js +0 -288
  106. package/dist/daemon/http-server.js.map +0 -1
  107. package/dist/daemon/index-coordinator.d.ts +0 -22
  108. package/dist/daemon/index-coordinator.js +0 -55
  109. package/dist/daemon/index-coordinator.js.map +0 -1
  110. package/dist/daemon/job-scheduler.d.ts +0 -73
  111. package/dist/daemon/job-scheduler.js +0 -434
  112. package/dist/daemon/job-scheduler.js.map +0 -1
  113. package/dist/daemon/logger.d.ts +0 -9
  114. package/dist/daemon/logger.js +0 -53
  115. package/dist/daemon/logger.js.map +0 -1
  116. package/dist/daemon/model-pool.d.ts +0 -45
  117. package/dist/daemon/model-pool.js +0 -187
  118. package/dist/daemon/model-pool.js.map +0 -1
  119. package/dist/daemon/root-lease.d.ts +0 -14
  120. package/dist/daemon/root-lease.js +0 -197
  121. package/dist/daemon/root-lease.js.map +0 -1
  122. package/dist/daemon/root-runtime.d.ts +0 -80
  123. package/dist/daemon/root-runtime.js +0 -340
  124. package/dist/daemon/root-runtime.js.map +0 -1
  125. package/dist/daemon/runtime-manager.d.ts +0 -47
  126. package/dist/daemon/runtime-manager.js +0 -252
  127. package/dist/daemon/runtime-manager.js.map +0 -1
  128. package/dist/daemon/runtime.d.ts +0 -12
  129. package/dist/daemon/runtime.js +0 -104
  130. package/dist/daemon/runtime.js.map +0 -1
  131. package/dist/daemon/server-controller.d.ts +0 -38
  132. package/dist/daemon/server-controller.js +0 -327
  133. package/dist/daemon/server-controller.js.map +0 -1
  134. package/dist/daemon/watch-manager.d.ts +0 -55
  135. package/dist/daemon/watch-manager.js +0 -347
  136. package/dist/daemon/watch-manager.js.map +0 -1
  137. package/dist/daemon/workspace-read-session-cache.d.ts +0 -31
  138. package/dist/daemon/workspace-read-session-cache.js +0 -115
  139. package/dist/daemon/workspace-read-session-cache.js.map +0 -1
  140. package/dist/engine/code-formats.d.ts +0 -3
  141. package/dist/engine/code-formats.js +0 -14
  142. package/dist/engine/code-formats.js.map +0 -1
  143. package/dist/engine/config.d.ts +0 -50
  144. package/dist/engine/config.js +0 -321
  145. package/dist/engine/config.js.map +0 -1
  146. package/dist/engine/errors.d.ts +0 -20
  147. package/dist/engine/errors.js +0 -51
  148. package/dist/engine/errors.js.map +0 -1
  149. package/dist/engine/extraction/code/adapter.d.ts +0 -19
  150. package/dist/engine/extraction/code/adapter.js +0 -24
  151. package/dist/engine/extraction/code/adapter.js.map +0 -1
  152. package/dist/engine/extraction/code/extractor.d.ts +0 -13
  153. package/dist/engine/extraction/code/extractor.js +0 -696
  154. package/dist/engine/extraction/code/extractor.js.map +0 -1
  155. package/dist/engine/extraction/code/families/c-family.d.ts +0 -2
  156. package/dist/engine/extraction/code/families/c-family.js +0 -122
  157. package/dist/engine/extraction/code/families/c-family.js.map +0 -1
  158. package/dist/engine/extraction/code/families/js-ts.d.ts +0 -12
  159. package/dist/engine/extraction/code/families/js-ts.js +0 -118
  160. package/dist/engine/extraction/code/families/js-ts.js.map +0 -1
  161. package/dist/engine/extraction/code/families/metadata.d.ts +0 -8
  162. package/dist/engine/extraction/code/families/metadata.js +0 -86
  163. package/dist/engine/extraction/code/families/metadata.js.map +0 -1
  164. package/dist/engine/extraction/code/families/name-field.d.ts +0 -3
  165. package/dist/engine/extraction/code/families/name-field.js +0 -22
  166. package/dist/engine/extraction/code/families/name-field.js.map +0 -1
  167. package/dist/engine/extraction/code/languages/c.d.ts +0 -1
  168. package/dist/engine/extraction/code/languages/c.js +0 -12
  169. package/dist/engine/extraction/code/languages/c.js.map +0 -1
  170. package/dist/engine/extraction/code/languages/cpp.d.ts +0 -1
  171. package/dist/engine/extraction/code/languages/cpp.js +0 -18
  172. package/dist/engine/extraction/code/languages/cpp.js.map +0 -1
  173. package/dist/engine/extraction/code/languages/go.d.ts +0 -2
  174. package/dist/engine/extraction/code/languages/go.js +0 -70
  175. package/dist/engine/extraction/code/languages/go.js.map +0 -1
  176. package/dist/engine/extraction/code/languages/java.d.ts +0 -1
  177. package/dist/engine/extraction/code/languages/java.js +0 -17
  178. package/dist/engine/extraction/code/languages/java.js.map +0 -1
  179. package/dist/engine/extraction/code/languages/javascript.d.ts +0 -2
  180. package/dist/engine/extraction/code/languages/javascript.js +0 -23
  181. package/dist/engine/extraction/code/languages/javascript.js.map +0 -1
  182. package/dist/engine/extraction/code/languages/python.d.ts +0 -2
  183. package/dist/engine/extraction/code/languages/python.js +0 -52
  184. package/dist/engine/extraction/code/languages/python.js.map +0 -1
  185. package/dist/engine/extraction/code/languages/rust.d.ts +0 -2
  186. package/dist/engine/extraction/code/languages/rust.js +0 -25
  187. package/dist/engine/extraction/code/languages/rust.js.map +0 -1
  188. package/dist/engine/extraction/code/languages/typescript.d.ts +0 -2
  189. package/dist/engine/extraction/code/languages/typescript.js +0 -37
  190. package/dist/engine/extraction/code/languages/typescript.js.map +0 -1
  191. package/dist/engine/extraction/code/tree-sitter/grammar.d.ts +0 -4
  192. package/dist/engine/extraction/code/tree-sitter/grammar.js +0 -49
  193. package/dist/engine/extraction/code/tree-sitter/grammar.js.map +0 -1
  194. package/dist/engine/extraction/code/tree-sitter/nodes.d.ts +0 -3
  195. package/dist/engine/extraction/code/tree-sitter/nodes.js +0 -27
  196. package/dist/engine/extraction/code/tree-sitter/nodes.js.map +0 -1
  197. package/dist/engine/extraction/code/tree-sitter/parser.d.ts +0 -2
  198. package/dist/engine/extraction/code/tree-sitter/parser.js +0 -31
  199. package/dist/engine/extraction/code/tree-sitter/parser.js.map +0 -1
  200. package/dist/engine/extraction/ids.d.ts +0 -1
  201. package/dist/engine/extraction/ids.js +0 -5
  202. package/dist/engine/extraction/ids.js.map +0 -1
  203. package/dist/engine/extraction/image/extractor.d.ts +0 -5
  204. package/dist/engine/extraction/image/extractor.js +0 -35
  205. package/dist/engine/extraction/image/extractor.js.map +0 -1
  206. package/dist/engine/extraction/index.d.ts +0 -4
  207. package/dist/engine/extraction/index.js +0 -3
  208. package/dist/engine/extraction/index.js.map +0 -1
  209. package/dist/engine/extraction/markdown/extractor.d.ts +0 -7
  210. package/dist/engine/extraction/markdown/extractor.js +0 -362
  211. package/dist/engine/extraction/markdown/extractor.js.map +0 -1
  212. package/dist/engine/extraction/runtime.d.ts +0 -9
  213. package/dist/engine/extraction/runtime.js +0 -37
  214. package/dist/engine/extraction/runtime.js.map +0 -1
  215. package/dist/engine/extraction/source.d.ts +0 -18
  216. package/dist/engine/extraction/source.js +0 -22
  217. package/dist/engine/extraction/source.js.map +0 -1
  218. package/dist/engine/extraction/text/extractor.d.ts +0 -7
  219. package/dist/engine/extraction/text/extractor.js +0 -168
  220. package/dist/engine/extraction/text/extractor.js.map +0 -1
  221. package/dist/engine/extraction/types.d.ts +0 -4
  222. package/dist/engine/extraction/types.js +0 -2
  223. package/dist/engine/extraction/types.js.map +0 -1
  224. package/dist/engine/extraction/vector-content.d.ts +0 -5
  225. package/dist/engine/extraction/vector-content.js +0 -83
  226. package/dist/engine/extraction/vector-content.js.map +0 -1
  227. package/dist/engine/file-size-policy.d.ts +0 -6
  228. package/dist/engine/file-size-policy.js +0 -20
  229. package/dist/engine/file-size-policy.js.map +0 -1
  230. package/dist/engine/file-type.d.ts +0 -15
  231. package/dist/engine/file-type.js +0 -152
  232. package/dist/engine/file-type.js.map +0 -1
  233. package/dist/engine/index-status.d.ts +0 -9
  234. package/dist/engine/index-status.js +0 -38
  235. package/dist/engine/index-status.js.map +0 -1
  236. package/dist/engine/manifest.d.ts +0 -13
  237. package/dist/engine/manifest.js +0 -124
  238. package/dist/engine/manifest.js.map +0 -1
  239. package/dist/engine/models/artifact-cache-lock.d.ts +0 -16
  240. package/dist/engine/models/artifact-cache-lock.js +0 -228
  241. package/dist/engine/models/artifact-cache-lock.js.map +0 -1
  242. package/dist/engine/models/artifact-downloader.d.ts +0 -77
  243. package/dist/engine/models/artifact-downloader.js +0 -766
  244. package/dist/engine/models/artifact-downloader.js.map +0 -1
  245. package/dist/engine/models/backends/llama-cpp.d.ts +0 -99
  246. package/dist/engine/models/backends/llama-cpp.js +0 -573
  247. package/dist/engine/models/backends/llama-cpp.js.map +0 -1
  248. package/dist/engine/models/backends/model2vec-runtime.d.ts +0 -63
  249. package/dist/engine/models/backends/model2vec-runtime.js +0 -112
  250. package/dist/engine/models/backends/model2vec-runtime.js.map +0 -1
  251. package/dist/engine/models/backends/model2vec-tokenizer.d.ts +0 -2
  252. package/dist/engine/models/backends/model2vec-tokenizer.js +0 -42
  253. package/dist/engine/models/backends/model2vec-tokenizer.js.map +0 -1
  254. package/dist/engine/models/backends/model2vec-worker-pool.d.ts +0 -25
  255. package/dist/engine/models/backends/model2vec-worker-pool.js +0 -264
  256. package/dist/engine/models/backends/model2vec-worker-pool.js.map +0 -1
  257. package/dist/engine/models/backends/model2vec-worker.d.ts +0 -1
  258. package/dist/engine/models/backends/model2vec-worker.js +0 -41
  259. package/dist/engine/models/backends/model2vec-worker.js.map +0 -1
  260. package/dist/engine/models/backends/model2vec.d.ts +0 -38
  261. package/dist/engine/models/backends/model2vec.js +0 -344
  262. package/dist/engine/models/backends/model2vec.js.map +0 -1
  263. package/dist/engine/models/backends/qwen.d.ts +0 -44
  264. package/dist/engine/models/backends/qwen.js +0 -411
  265. package/dist/engine/models/backends/qwen.js.map +0 -1
  266. package/dist/engine/models/backends/transformers-js.d.ts +0 -87
  267. package/dist/engine/models/backends/transformers-js.js +0 -360
  268. package/dist/engine/models/backends/transformers-js.js.map +0 -1
  269. package/dist/engine/models/catalog.d.ts +0 -490
  270. package/dist/engine/models/catalog.js +0 -522
  271. package/dist/engine/models/catalog.js.map +0 -1
  272. package/dist/engine/models/download-progress.d.ts +0 -16
  273. package/dist/engine/models/download-progress.js +0 -47
  274. package/dist/engine/models/download-progress.js.map +0 -1
  275. package/dist/engine/models/embeddings.d.ts +0 -69
  276. package/dist/engine/models/embeddings.js +0 -125
  277. package/dist/engine/models/embeddings.js.map +0 -1
  278. package/dist/engine/models/factory.d.ts +0 -2
  279. package/dist/engine/models/factory.js +0 -51
  280. package/dist/engine/models/factory.js.map +0 -1
  281. package/dist/engine/models/index.d.ts +0 -4
  282. package/dist/engine/models/index.js +0 -5
  283. package/dist/engine/models/index.js.map +0 -1
  284. package/dist/engine/models/ranking.d.ts +0 -19
  285. package/dist/engine/models/ranking.js +0 -2
  286. package/dist/engine/models/ranking.js.map +0 -1
  287. package/dist/engine/models/resolution.d.ts +0 -8
  288. package/dist/engine/models/resolution.js +0 -22
  289. package/dist/engine/models/resolution.js.map +0 -1
  290. package/dist/engine/pipeline/indexing/index.d.ts +0 -14
  291. package/dist/engine/pipeline/indexing/index.js +0 -1217
  292. package/dist/engine/pipeline/indexing/index.js.map +0 -1
  293. package/dist/engine/pipeline/indexing/input-budget.d.ts +0 -2
  294. package/dist/engine/pipeline/indexing/input-budget.js +0 -51
  295. package/dist/engine/pipeline/indexing/input-budget.js.map +0 -1
  296. package/dist/engine/pipeline/indexing/root-paths.d.ts +0 -7
  297. package/dist/engine/pipeline/indexing/root-paths.js +0 -148
  298. package/dist/engine/pipeline/indexing/root-paths.js.map +0 -1
  299. package/dist/engine/pipeline/indexing/scanner/index.d.ts +0 -14
  300. package/dist/engine/pipeline/indexing/scanner/index.js +0 -776
  301. package/dist/engine/pipeline/indexing/scanner/index.js.map +0 -1
  302. package/dist/engine/pipeline/search/index.d.ts +0 -12
  303. package/dist/engine/pipeline/search/index.js +0 -811
  304. package/dist/engine/pipeline/search/index.js.map +0 -1
  305. package/dist/engine/service/index.d.ts +0 -3
  306. package/dist/engine/service/index.js +0 -2
  307. package/dist/engine/service/index.js.map +0 -1
  308. package/dist/engine/service/lexical.d.ts +0 -28
  309. package/dist/engine/service/lexical.js +0 -446
  310. package/dist/engine/service/lexical.js.map +0 -1
  311. package/dist/engine/service/root.d.ts +0 -15
  312. package/dist/engine/service/root.js +0 -57
  313. package/dist/engine/service/root.js.map +0 -1
  314. package/dist/engine/service/structure-enrichment.d.ts +0 -8
  315. package/dist/engine/service/structure-enrichment.js +0 -178
  316. package/dist/engine/service/structure-enrichment.js.map +0 -1
  317. package/dist/engine/service/types.d.ts +0 -210
  318. package/dist/engine/service/types.js +0 -2
  319. package/dist/engine/service/types.js.map +0 -1
  320. package/dist/engine/service/workspace-index.d.ts +0 -26
  321. package/dist/engine/service/workspace-index.js +0 -157
  322. package/dist/engine/service/workspace-index.js.map +0 -1
  323. package/dist/engine/service/zvec-grep.d.ts +0 -13
  324. package/dist/engine/service/zvec-grep.js +0 -1393
  325. package/dist/engine/service/zvec-grep.js.map +0 -1
  326. package/dist/engine/storage/index.d.ts +0 -53
  327. package/dist/engine/storage/index.js +0 -3
  328. package/dist/engine/storage/index.js.map +0 -1
  329. package/dist/engine/storage/layout.d.ts +0 -10
  330. package/dist/engine/storage/layout.js +0 -29
  331. package/dist/engine/storage/layout.js.map +0 -1
  332. package/dist/engine/storage/zvec.d.ts +0 -4
  333. package/dist/engine/storage/zvec.js +0 -976
  334. package/dist/engine/storage/zvec.js.map +0 -1
  335. package/dist/engine/types.d.ts +0 -303
  336. package/dist/engine/types.js +0 -14
  337. package/dist/engine/types.js.map +0 -1
  338. package/dist/engine/utils/atomic-file.d.ts +0 -3
  339. package/dist/engine/utils/atomic-file.js +0 -39
  340. package/dist/engine/utils/atomic-file.js.map +0 -1
  341. package/dist/engine/utils/daemon-lease.d.ts +0 -17
  342. package/dist/engine/utils/daemon-lease.js +0 -175
  343. package/dist/engine/utils/daemon-lease.js.map +0 -1
  344. package/dist/engine/utils/file-selection.d.ts +0 -10
  345. package/dist/engine/utils/file-selection.js +0 -157
  346. package/dist/engine/utils/file-selection.js.map +0 -1
  347. package/dist/engine/utils/glob.d.ts +0 -9
  348. package/dist/engine/utils/glob.js +0 -208
  349. package/dist/engine/utils/glob.js.map +0 -1
  350. package/dist/engine/utils/hash.d.ts +0 -2
  351. package/dist/engine/utils/hash.js +0 -8
  352. package/dist/engine/utils/hash.js.map +0 -1
  353. package/dist/engine/utils/json.d.ts +0 -8
  354. package/dist/engine/utils/json.js +0 -83
  355. package/dist/engine/utils/json.js.map +0 -1
  356. package/dist/engine/utils/lock.d.ts +0 -19
  357. package/dist/engine/utils/lock.js +0 -254
  358. package/dist/engine/utils/lock.js.map +0 -1
  359. package/dist/engine/utils/path.d.ts +0 -4
  360. package/dist/engine/utils/path.js +0 -18
  361. package/dist/engine/utils/path.js.map +0 -1
  362. package/dist/engine/utils/timing.d.ts +0 -19
  363. package/dist/engine/utils/timing.js +0 -87
  364. package/dist/engine/utils/timing.js.map +0 -1
  365. package/dist/index-progress.d.ts +0 -10
  366. package/dist/index-progress.js +0 -159
  367. package/dist/index-progress.js.map +0 -1
  368. package/dist/index.d.ts +0 -6
  369. package/dist/index.js +0 -4
  370. package/dist/index.js.map +0 -1
  371. package/dist/mcp/http-transport.d.ts +0 -27
  372. package/dist/mcp/http-transport.js +0 -182
  373. package/dist/mcp/http-transport.js.map +0 -1
  374. package/dist/mcp/input-normalization.d.ts +0 -38
  375. package/dist/mcp/input-normalization.js +0 -104
  376. package/dist/mcp/input-normalization.js.map +0 -1
  377. package/dist/mcp/progress-heartbeat.d.ts +0 -17
  378. package/dist/mcp/progress-heartbeat.js +0 -46
  379. package/dist/mcp/progress-heartbeat.js.map +0 -1
  380. package/dist/mcp/request-metadata.d.ts +0 -2
  381. package/dist/mcp/request-metadata.js +0 -11
  382. package/dist/mcp/request-metadata.js.map +0 -1
  383. package/dist/mcp/request-state.d.ts +0 -40
  384. package/dist/mcp/request-state.js +0 -210
  385. package/dist/mcp/request-state.js.map +0 -1
  386. package/dist/mcp/result-format.d.ts +0 -13
  387. package/dist/mcp/result-format.js +0 -75
  388. package/dist/mcp/result-format.js.map +0 -1
  389. package/dist/mcp/schemas.d.ts +0 -668
  390. package/dist/mcp/schemas.js +0 -512
  391. package/dist/mcp/schemas.js.map +0 -1
  392. package/dist/mcp/stdio-bridge.d.ts +0 -15
  393. package/dist/mcp/stdio-bridge.js +0 -190
  394. package/dist/mcp/stdio-bridge.js.map +0 -1
  395. package/dist/mcp/tools.d.ts +0 -153
  396. package/dist/mcp/tools.js +0 -488
  397. package/dist/mcp/tools.js.map +0 -1
  398. package/dist/mcp/toolset.d.ts +0 -5
  399. package/dist/mcp/toolset.js +0 -12
  400. package/dist/mcp/toolset.js.map +0 -1
  401. package/dist/observability/trace-context.d.ts +0 -11
  402. package/dist/observability/trace-context.js +0 -138
  403. package/dist/observability/trace-context.js.map +0 -1
  404. package/dist/prompts/zvec-grep-guidance.d.ts +0 -2
  405. package/dist/prompts/zvec-grep-guidance.js +0 -9
  406. package/dist/prompts/zvec-grep-guidance.js.map +0 -1
  407. package/docs/01-agents.md +0 -209
  408. package/docs/02-cli.md +0 -247
  409. package/docs/03-mcp.md +0 -185
  410. package/docs/04-pipeline.md +0 -226
  411. package/docs/05-architecture.md +0 -86
  412. package/docs/06-server.md +0 -233
  413. package/docs/07-embedding.md +0 -209
  414. package/docs/08-roadmap.md +0 -85
  415. package/docs/README.md +0 -53
package/docs/06-server.md DELETED
@@ -1,233 +0,0 @@
1
- # Server and execution modes
2
-
3
- [Documentation](./README.md) · [Agents](./01-agents.md) ·
4
- [CLI](./02-cli.md) · [MCP](./03-mcp.md) · [Pipeline](./04-pipeline.md) ·
5
- [Architecture](./05-architecture.md) · [Server](./06-server.md) ·
6
- [Embedding](./07-embedding.md) · [Roadmap](./08-roadmap.md)
7
-
8
- The zvec-grep Server is a local daemon shared by agents and terminal commands.
9
- It keeps the MCP endpoint available, coordinates active Workspace runtimes,
10
- supports background index refresh, and can reuse loaded Embedding models across
11
- requests.
12
-
13
- You do not need the Server for every use of zg. Exact managed ripgrep and
14
- indexed operations can also run directly in the current process.
15
-
16
- ## Choose an execution mode
17
-
18
- Indexed CLI commands accept `--mode auto|server|direct`.
19
-
20
- | Mode | Use it when | Behavior |
21
- | --- | --- | --- |
22
- | `auto` | Almost all terminal use | Use a ready Server; otherwise run Direct before submitting the operation |
23
- | `server` | A script requires the daemon, shared state, or background refresh | Require the Server and fail if it is unavailable |
24
- | `direct` | One-off use, CI, foreground debugging, or no daemon is desired | Run entirely in the current process |
25
-
26
- `auto` is the default and the recommended mode for people. It does not start a
27
- missing Server; it simply chooses the Server when one is already ready.
28
-
29
- Use Server mode when:
30
-
31
- - an Agent connects through MCP;
32
- - indexed searches happen repeatedly across sessions;
33
- - background refresh should keep an active Workspace current;
34
- - multiple requests can benefit from a shared loaded model;
35
- - operational tooling needs an explicit ready/not-ready contract.
36
-
37
- Use Direct mode when:
38
-
39
- - a command is an isolated one-off operation;
40
- - a CI job should not leave a daemon running;
41
- - you want foreground failures and resource lifetime tied to one process.
42
-
43
- Managed `zg query --rg` does not need an index or loaded Embedding model. It
44
- runs locally regardless of whether a Server is available.
45
-
46
- ## Agent setup
47
-
48
- `zg install` configures the selected Agent and starts the Server when possible:
49
-
50
- ```bash
51
- zg install
52
- ```
53
-
54
- Most Agent users therefore never need to run `zg server on` manually. Restart
55
- the Agent or open a new session after installation so it discovers the MCP
56
- endpoint.
57
-
58
- Set `ZVEC_GREP_INSTALL_SKIP_SERVER=1` only when another process manager will
59
- start the Server separately.
60
-
61
- See [Agent integrations](./01-agents.md) for managed configuration and
62
- [MCP](./03-mcp.md) for the exposed tools.
63
-
64
- ## Server lifecycle
65
-
66
- Start the background daemon:
67
-
68
- ```bash
69
- zg server on
70
- ```
71
-
72
- Inspect process readiness, endpoint, PID, and MCP toolset:
73
-
74
- ```bash
75
- zg server status
76
- zg server status --check-ready
77
- ```
78
-
79
- `--check-ready` preserves normal output and exits non-zero unless the Server is
80
- ready, making it suitable for scripts and health checks.
81
-
82
- Stop the daemon gracefully:
83
-
84
- ```bash
85
- zg server off
86
- ```
87
-
88
- Run it in the foreground for logs or process supervision:
89
-
90
- ```bash
91
- zg server run
92
- ```
93
-
94
- Only one Server instance can own a given zvec-grep home. If a running Server
95
- uses the wrong MCP toolset, stop it before restarting with the new profile:
96
-
97
- ```bash
98
- zg server off
99
- zg server on --mcp-toolset full
100
- ```
101
-
102
- The Server releases a Workspace watcher and its lightweight runtime after four
103
- hours without a client request or a relevant file-system change. Periodic
104
- reconciliation does not extend this idle deadline. To select another timeout,
105
- set the number of seconds before starting or restarting the Server:
106
-
107
- ```bash
108
- export ZVEC_GREP_WATCHER_IDLE_TIMEOUT_SECONDS=7200
109
- zg server off
110
- zg server on
111
- ```
112
-
113
- Set the value to `0` to keep activated watchers until the Server stops.
114
-
115
- ## Configure the mode
116
-
117
- Choose a mode for one command:
118
-
119
- ```bash
120
- zg query --mode direct "root-local index discovery"
121
- zg status --mode server --check-ready
122
- ```
123
-
124
- Set an environment default:
125
-
126
- ```bash
127
- export ZVEC_GREP_MODE=auto
128
- ```
129
-
130
- Or set `client.mode` in `~/.zvec-grep/config.json`:
131
-
132
- ```json
133
- {
134
- "version": 1,
135
- "client": {
136
- "mode": "auto"
137
- }
138
- }
139
- ```
140
-
141
- An explicit `--mode` wins over the environment and global configuration.
142
-
143
- ## Refresh behavior
144
-
145
- The execution mode changes the default indexed-search refresh policy:
146
-
147
- | Policy | Server | Direct |
148
- | --- | --- | --- |
149
- | Default | `background` | `off` |
150
- | `--refresh background` | Return current results and schedule an update | Warn and behave as `off` |
151
- | `--refresh wait` | Wait for a fresh index | Update and wait in the current process |
152
- | `--refresh off` | Search without updating | Search without updating |
153
-
154
- Server searches return `freshness: possibly_stale` only with evidence of index
155
- drift. The first refresh after activation may use this conservative status; an
156
- hourly reconciliation remains `fresh` until its probe finds a mismatch. Use
157
- `--refresh wait` only when the latest file state is required.
158
-
159
- Watcher-reported path updates skip workspace-wide status scans. Because
160
- file-system watchers can silently miss events, the Server schedules an hourly
161
- full reconciliation probe; the next search uses it to scan the Workspace and
162
- repair index drift.
163
-
164
- Large bursts of exact watcher events are compacted into directory-scoped
165
- updates. A full reconciliation is reserved for watcher errors, missing event
166
- paths, resume drift, and other cases where events may have been lost.
167
-
168
- ## Endpoint and toolset
169
-
170
- The default endpoint is:
171
-
172
- ```text
173
- http://127.0.0.1:7999/mcp
174
- ```
175
-
176
- The Server only accepts loopback listen addresses. Change the loopback address
177
- or port with:
178
-
179
- ```bash
180
- zg server on --listen 127.0.0.1:8999
181
- ```
182
-
183
- Set `ZVEC_GREP_SERVER_URL` when a client should use a non-default configured
184
- endpoint.
185
-
186
- The default `agent` MCP toolset exposes only `zvec_grep_search`. Use
187
- `--mcp-toolset full` or `ZVEC_GREP_MCP_TOOLSET=full` to expose optional managed
188
- rg together with the index and status tools. See [MCP](./03-mcp.md) for the tool
189
- contract.
190
-
191
- ## Bearer authentication
192
-
193
- Authentication is disabled by default because the Server is loopback-only. To
194
- require a token, provide at least 32 characters through the environment or a
195
- file:
196
-
197
- ```bash
198
- export ZVEC_GREP_SERVER_TOKEN="replace-with-a-long-random-token"
199
- zg server on
200
- ```
201
-
202
- ```bash
203
- zg server on --token-file /secure/path/zvec-grep.token
204
- ```
205
-
206
- Clients can use `ZVEC_GREP_SERVER_TOKEN` or `ZVEC_GREP_SERVER_TOKEN_FILE`.
207
- Supported Agent integrations can reference an environment-backed token:
208
-
209
- ```bash
210
- zg install \
211
- --target codex \
212
- --mcp-token-env ZVEC_GREP_SERVER_TOKEN \
213
- --yes
214
- ```
215
-
216
- The MCP Bearer token protects the local Server. It does not configure an
217
- Embedding provider or authorize remote data transfer.
218
-
219
- ## Logs and state
220
-
221
- The default daemon directory is `~/.zvec-grep/daemon/`. Its structured JSON
222
- Lines log is written to:
223
-
224
- ```text
225
- ~/.zvec-grep/daemon/logs/server.log
226
- ```
227
-
228
- Credential, authorization, token, API-key, and query fields are filtered from
229
- daemon log records. Repository identities are logged opaquely rather than as
230
- raw paths where identity is sufficient.
231
-
232
- Use `ZVEC_GREP_HOME` to relocate Server state. Check `zg server status` before
233
- reading logs; routine searches do not need a status preflight.
@@ -1,209 +0,0 @@
1
- # Embedding models
2
-
3
- [Documentation](./README.md) · [Agents](./01-agents.md) ·
4
- [CLI](./02-cli.md) · [MCP](./03-mcp.md) · [Pipeline](./04-pipeline.md) ·
5
- [Architecture](./05-architecture.md) · [Server](./06-server.md) ·
6
- [Embedding](./07-embedding.md) · [Roadmap](./08-roadmap.md)
7
-
8
- The Embedding model determines the vector representation used by indexed
9
- search. It affects language coverage, memory use, index size, input length, and
10
- indexing speed. A new index needs an explicit model, an environment default, or
11
- a configured default:
12
-
13
- ```bash
14
- zg index --embedding local/potion-code-16m-v2
15
- ```
16
-
17
- Local models keep workspace content and query text on the machine. Their files
18
- are downloaded from Hugging Face on first use and cached under
19
- `~/.zvec-grep/models` by default. If a pinned Hugging Face artifact cannot be
20
- downloaded, zvec-grep automatically falls back to its pinned, integrity-checked
21
- ModelScope copy. A complete ModelScope snapshot is reused on later runs without
22
- retrying Hugging Face. ModelScope downloads use a separate `modelscope` cache
23
- subdirectory.
24
-
25
- Remote models avoid local inference but send disclosed query or workspace
26
- content to the configured provider after authorization.
27
-
28
- ## Quick selection
29
-
30
- | Need | Start with | Why |
31
- | --- | --- | --- |
32
- | A fast first index for a code repository | `local/potion-code-16m-v2` | Small static Model2Vec model with a 1,024-token input limit |
33
- | Fast English document retrieval | `local/potion-retrieval-32m` | Retrieval-tuned static model with 512-dimensional vectors |
34
- | Fast multilingual document retrieval | `local/potion-multilingual-128m` | Static model trained for 101 languages with compact 256-dimensional vectors |
35
- | A Transformer model specialized for code | `local/jina-embeddings-v2-base-code` | Code-oriented, multilingual, and long-context |
36
- | General multilingual code and documents | `local/embeddinggemma-300m` | Broad language coverage in a local GGUF model |
37
- | A smaller multilingual model | `local/multilingual-e5-small` | Compact 384-dimensional Transformer model |
38
- | A lightweight English model | `local/all-minilm-l6-v2` | Small local model for short English text |
39
- | Long English documents | `local/gte-modernbert-base` or `local/nomic-embed-text-v1.5` | 8,192-token local context |
40
- | No local model runtime | `qwen/qwen3.7-text-embedding` | Managed text Embedding API |
41
- | Text and image retrieval | `qwen/qwen3-vl-embedding` | Managed multimodal Embedding API |
42
-
43
- The best model still depends on the repository and its real queries. Start with
44
- the smallest model that covers the required languages and input length, then
45
- compare representative results before committing to a larger model.
46
-
47
- ## Supported models
48
-
49
- The input limit applies to each extracted entity or fragment, not the entire
50
- file.
51
-
52
- | Model | Runtime | Max input tokens | Dimensions |
53
- | --- | --- | ---: | ---: |
54
- | `local/potion-code-16m-v2` | Model2Vec FP16 | 1,024 | 256 |
55
- | `local/potion-retrieval-32m` | Model2Vec FP32 | 1,024 | 512 |
56
- | `local/potion-multilingual-128m` | Model2Vec FP32 | 1,024 | 256 |
57
- | `local/all-minilm-l6-v2` | ONNX Q4 | 256 | 384 |
58
- | `local/bge-small-en-v1.5` | ONNX Q4 | 512 | 384 |
59
- | `local/multilingual-e5-small` | ONNX Q8 | 512 | 384 |
60
- | `local/jina-embeddings-v2-base-code` | ONNX Q8 | 8,192 | 768 |
61
- | `local/gte-modernbert-base` | ONNX Q4 | 8,192 | 768 |
62
- | `local/nomic-embed-text-v1.5` | ONNX Q4 | 8,192 | 768 |
63
- | `local/embeddinggemma-300m` | GGUF Q8_0 | 2,048 | 768 |
64
- | `local/qwen3-embedding-0.6b` | GGUF Q8_0 | 8,192 | 1,024 |
65
- | `qwen/text-embedding-v4` | Remote text | 8,192 | 1,024 |
66
- | `qwen/qwen3.7-text-embedding` | Remote text | 128,000 | 1,024 |
67
- | `qwen/qwen3-vl-embedding` | Remote multimodal | 32,000 | 2,560 |
68
-
69
- All catalog entries currently use cosine similarity. Exact model revisions are
70
- pinned by zvec-grep so the same reference resolves consistently for a given
71
- release.
72
-
73
- ## Configure a default model
74
-
75
- Set a default for new indexes:
76
-
77
- ```bash
78
- zg config model set local/potion-code-16m-v2 --default
79
- zg index
80
- ```
81
-
82
- `ZVEC_GREP_EMBEDDING` provides a process-level default that takes priority over
83
- the configured global default for new indexes:
84
-
85
- ```bash
86
- export ZVEC_GREP_EMBEDDING=local/potion-code-16m-v2
87
- zg index
88
- ```
89
-
90
- An existing index always reuses its stored provider, model, dimensions, and
91
- metric unless `--embedding` and `--rebuild` explicitly change them. `zg index`
92
- forwards the current CLI environment default in server and auto modes; direct
93
- MCP calls use the environment inherited by the daemon.
94
-
95
- ## Local runtime and device
96
-
97
- Select a device for local Transformer and GGUF models:
98
-
99
- ```bash
100
- zg index \
101
- --embedding local/jina-embeddings-v2-base-code \
102
- --device auto
103
- ```
104
-
105
- Supported values are `auto`, `cpu`, `metal`, `vulkan`, and `cuda`. Save a model
106
- preference globally with:
107
-
108
- ```bash
109
- zg config model set local/jina-embeddings-v2-base-code --device metal
110
- ```
111
-
112
- The equivalent environment override is `ZVEC_GREP_DEVICE`. Model2Vec models
113
- such as Potion use static vector lookup, so selecting a GPU does not improve
114
- their runtime.
115
-
116
- Override the download cache with `--model-cache` or `ZVEC_GREP_MODEL_CACHE`:
117
-
118
- ```bash
119
- zg index \
120
- --embedding local/potion-code-16m-v2 \
121
- --model-cache /path/to/model-cache
122
- ```
123
-
124
- ## Remote Embedding and authorization
125
-
126
- Configure the Qwen provider credential and, optionally, a model endpoint:
127
-
128
- ```bash
129
- zg config provider set qwen --api-key "$DASHSCOPE_API_KEY"
130
- zg config model set qwen/text-embedding-v4 --default
131
- ```
132
-
133
- One-off values can be passed directly or through `ZVEC_GREP_API_KEY` and
134
- `ZVEC_GREP_ENDPOINT`:
135
-
136
- ```bash
137
- zg index \
138
- --embedding qwen/text-embedding-v4 \
139
- --api-key "$DASHSCOPE_API_KEY" \
140
- --allow-remote
141
- ```
142
-
143
- Credentials configure access to a provider; they do not authorize data
144
- transfer. `--allow-remote` authorizes Remote Embedding only for the current
145
- command. To create a signed Workspace grant shared by the CLI and MCP server:
146
-
147
- ```bash
148
- zg auth grant \
149
- --capability embedding \
150
- --scope workspace \
151
- --embedding qwen/text-embedding-v4
152
-
153
- zg auth status
154
- zg auth revoke
155
- ```
156
-
157
- Before granting access, confirm that the workspace content is permitted to be
158
- sent to the selected provider and endpoint. MCP tool approval is separate from
159
- this data authorization.
160
-
161
- When Qoder CLI reports that it has no handler for `elicitation/create`, or
162
- declines or cancels without displaying the form, the `AGENTS.md` guidance
163
- installed by `zg install --target qoder` uses the exact `AskUserQuestion` tool
164
- as a compatibility path. It offers workspace approval, local FTS only, or
165
- cancel.
166
-
167
- Qoder IDE uses the exact native tool name `ask_user_question`. Because Qoder IDE
168
- does not provide a supported global Rules location, the installer does not
169
- write equivalent IDE guidance. In stdio mode, the zvec-grep bridge instead
170
- turns a missing `elicitation/create` handler into an actionable error directing
171
- the top-level IDE agent to present the same choices with `ask_user_question`.
172
- This path still requires an end-to-end smoke test in a real Qoder IDE session.
173
-
174
- Either path runs the Workspace grant only after explicit approval and retries
175
- the original MCP search once. Choosing local FTS instead removes
176
- vector-producing query routes, sets `autoUpdate` to `false`, and keeps retrieval
177
- local without refreshing the remote-embedding index; a headless session never
178
- grants access automatically. Neither question tool should collect a token, API
179
- key, or password. `--allow-remote` is not a substitute for this path because it
180
- authorizes only the current CLI command, not a later MCP retry.
181
-
182
- ## Input length and truncation
183
-
184
- zvec-grep uses the selected model's input limit when it creates fragments, but
185
- characters and tokens do not map one-to-one across languages. If an extracted
186
- input still exceeds the model limit, the provider truncates it and the index
187
- records the count.
188
-
189
- Inspect the index after changing models or file scope:
190
-
191
- ```bash
192
- zg status
193
- ```
194
-
195
- Prefer a model with a larger input limit or narrow the indexed content when
196
- `truncated_fragments` is unexpectedly high.
197
-
198
- ## Change models
199
-
200
- Vector spaces from different models are incompatible, even when their
201
- dimensions match. Rebuild explicitly when changing models:
202
-
203
- ```bash
204
- zg index --rebuild --embedding local/jina-embeddings-v2-base-code
205
- ```
206
-
207
- Changing a remote endpoint also requires a rebuild because the endpoint is part
208
- of the stored index schema. API key and local device changes affect runtime and
209
- do not require rebuilding the vectors.
@@ -1,85 +0,0 @@
1
- # Roadmap
2
-
3
- [Documentation](./README.md) · [Agents](./01-agents.md) ·
4
- [CLI](./02-cli.md) · [MCP](./03-mcp.md) · [Pipeline](./04-pipeline.md) ·
5
- [Architecture](./05-architecture.md) · [Server](./06-server.md) ·
6
- [Embedding](./07-embedding.md) · [Roadmap](./08-roadmap.md)
7
-
8
- zvec-grep is under active development. The destination is one dependable,
9
- local-first search layer that people and agents can use without choosing among
10
- separate retrieval tools. This roadmap describes direction, not promised dates;
11
- priorities may change as we learn from real workloads.
12
-
13
- ## Now — make the public preview dependable
14
-
15
- - Make installation, updates, and removal reliable across current platforms and
16
- agent integrations.
17
- - Harden incremental indexing, freshness, Server recovery, and concurrent
18
- workspace access.
19
- - Establish reproducible search-quality, performance, and agent-context
20
- evaluation.
21
- - Stabilize the CLI, MCP contracts, configuration, diagnostics, and index
22
- compatibility policy before a stable release.
23
-
24
- ## Product direction
25
-
26
- The following four directions are part of the product vision, not optional
27
- experiments. Their sequencing may change, but each is required for zg to become
28
- the search layer we want it to be.
29
-
30
- ### 1. Search more data formats, natively
31
-
32
- - Make PDF, PowerPoint (`.ppt` and `.pptx`), HTML, images, and other multimodal
33
- documents first-class searchable inputs.
34
- - Add format-aware extraction that preserves useful structure, layout, metadata,
35
- and relationships instead of flattening every file into plain text.
36
- - Combine text extraction, OCR, vision-language understanding, and multimodal
37
- Embedding where each format benefits from them.
38
- - Use format- and content-aware retrieval so zg can choose a smarter strategy
39
- for each query and source.
40
-
41
- ### 2. Strengthen retrieval
42
-
43
- - Add knowledge-graph construction and graph retrieval to complement BM25,
44
- vector search, and managed ripgrep.
45
- - Expand multi-route hybrid retrieval across lexical, vector, graph, structural,
46
- and metadata signals.
47
- - Improve query planning so people and agents can express intent without
48
- manually choosing retrieval routes.
49
- - Improve fusion, reranking, evaluation, and explainability while keeping the
50
- returned context compact.
51
-
52
- ### 3. Make zg more out of the box
53
-
54
- - Provide a local GUI for search, workspace management, indexing, model setup,
55
- permissions, and diagnostics.
56
- - Support more installation paths beyond npm, including platform-native package
57
- managers and installers where appropriate.
58
- - Make first-run setup, Agent discovery, model selection, updates, and recovery
59
- increasingly automatic with useful defaults.
60
- - Preserve CLI and configuration control for advanced users while removing it
61
- from the critical path for everyone else.
62
-
63
- ### 4. Reach every platform, from PC to mobile
64
-
65
- - Deliver a consistent experience across macOS, Windows, and Linux desktops.
66
- - Extend the local search layer to iOS and Android instead of treating mobile as
67
- a remote client to a required cloud service.
68
- - Adapt indexing, storage, and model execution to the memory, power, and lifecycle
69
- constraints of mobile devices.
70
- - Keep the same local-first trust and permission model across desktop and mobile.
71
-
72
- ## Guardrails
73
-
74
- - Local-first remains the default; remote content transfer always requires
75
- explicit authorization.
76
- - zg should hide retrieval-tool choice from users without hiding useful control.
77
- - Better recall must not come at the cost of noisy, oversized agent context.
78
- - A hosted service must never be required for the core local workflow.
79
-
80
- ## Help shape the roadmap
81
-
82
- Priorities should come from real use. Open a
83
- [GitHub issue](https://github.com/zvec-ai/zvec-grep/issues) to describe a
84
- workflow, limitation, or result that matters to you. Contributions are welcome;
85
- see the [Contributing Guide](../CONTRIBUTING.md).
package/docs/README.md DELETED
@@ -1,53 +0,0 @@
1
- # zvec-grep documentation
2
-
3
- **zg** is one local-first search layer for people and agents. These guides go
4
- beyond the short path in the project [README](../README.md) and explain how to
5
- connect an agent, shape an index, search it, and control the underlying
6
- interfaces.
7
-
8
- > [!IMPORTANT]
9
- > zvec-grep is a work in progress. Commands and configuration may change before
10
- > the first stable release.
11
-
12
- ## Start here
13
-
14
- | I want to… | Read |
15
- | --- | --- |
16
- | Connect Codex, Claude Code, Qwen Code, Cursor, or OpenCode | [Agent integrations](./01-agents.md) |
17
- | Use zg directly from a terminal | [CLI guide](./02-cli.md) |
18
- | Understand the tools exposed to an agent | [MCP guide](./03-mcp.md) |
19
- | Understand indexing, updates, and search routes | [Retrieval pipeline](./04-pipeline.md) |
20
- | See how the components and trust boundaries fit together | [Architecture](./05-architecture.md) |
21
- | Choose between Auto, Server, and Direct execution | [Server and execution modes](./06-server.md) |
22
- | Choose and configure an Embedding model | [Embedding models](./07-embedding.md) |
23
- | See what is stable now and what comes next | [Roadmap](./08-roadmap.md) |
24
-
25
- ## Recommended paths
26
-
27
- If you primarily use an agent, start with [Agent integrations](./01-agents.md),
28
- then read the [MCP guide](./03-mcp.md) and
29
- [Retrieval pipeline](./04-pipeline.md). The [Server guide](./06-server.md)
30
- explains the daemon that connects them.
31
-
32
- If you primarily use the terminal, start with the [CLI guide](./02-cli.md), then
33
- read the [Retrieval pipeline](./04-pipeline.md). Use the
34
- [Embedding guide](./07-embedding.md) when creating a new index. The default
35
- `auto` execution mode is explained in
36
- [Server and execution modes](./06-server.md).
37
-
38
- For the whole-system mental model and trust boundaries, read
39
- [Architecture](./05-architecture.md).
40
-
41
- The [Roadmap](./08-roadmap.md) tracks the path from work in progress to a stable
42
- release.
43
-
44
- The CLI remains the source of truth for flags in the installed version:
45
-
46
- ```bash
47
- zg help
48
- zg help query
49
- zg help index
50
- ```
51
-
52
- For development setup and pull request conventions, see
53
- [CONTRIBUTING.md](../CONTRIBUTING.md).