@zvec/zvec-grep 0.1.5 → 0.1.7

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 (358) hide show
  1. package/README.md +154 -236
  2. package/README_CN.md +142 -233
  3. package/dist/authorization/index.d.ts +7 -0
  4. package/dist/authorization/index.js +7 -0
  5. package/dist/authorization/index.js.map +1 -0
  6. package/dist/authorization/manager.d.ts +8 -0
  7. package/dist/authorization/manager.js +19 -0
  8. package/dist/authorization/manager.js.map +1 -0
  9. package/dist/authorization/operation.d.ts +7 -0
  10. package/dist/authorization/operation.js +50 -0
  11. package/dist/authorization/operation.js.map +1 -0
  12. package/dist/authorization/planner.d.ts +21 -0
  13. package/dist/authorization/planner.js +97 -0
  14. package/dist/authorization/planner.js.map +1 -0
  15. package/dist/authorization/prompt.d.ts +11 -0
  16. package/dist/authorization/prompt.js +62 -0
  17. package/dist/authorization/prompt.js.map +1 -0
  18. package/dist/authorization/store.d.ts +20 -0
  19. package/dist/authorization/store.js +251 -0
  20. package/dist/authorization/store.js.map +1 -0
  21. package/dist/authorization/target.d.ts +15 -0
  22. package/dist/authorization/target.js +49 -0
  23. package/dist/authorization/target.js.map +1 -0
  24. package/dist/authorization/types.d.ts +61 -0
  25. package/dist/authorization/types.js +2 -0
  26. package/dist/authorization/types.js.map +1 -0
  27. package/dist/cli/args.d.ts +1 -1
  28. package/dist/cli/args.js +338 -55
  29. package/dist/cli/args.js.map +1 -1
  30. package/dist/cli/auth.d.ts +21 -0
  31. package/dist/cli/auth.js +209 -0
  32. package/dist/cli/auth.js.map +1 -0
  33. package/dist/cli/commands.js +469 -625
  34. package/dist/cli/commands.js.map +1 -1
  35. package/dist/cli/errors.js +2 -2
  36. package/dist/cli/errors.js.map +1 -1
  37. package/dist/cli/format/context.d.ts +4 -0
  38. package/dist/cli/format/context.js +311 -44
  39. package/dist/cli/format/context.js.map +1 -1
  40. package/dist/cli/format/debug.js +12 -6
  41. package/dist/cli/format/debug.js.map +1 -1
  42. package/dist/cli/format/progress.d.ts +4 -0
  43. package/dist/cli/format/progress.js +219 -46
  44. package/dist/cli/format/progress.js.map +1 -1
  45. package/dist/cli/format/status.d.ts +79 -6
  46. package/dist/cli/format/status.js +341 -111
  47. package/dist/cli/format/status.js.map +1 -1
  48. package/dist/cli/help.js +395 -63
  49. package/dist/cli/help.js.map +1 -1
  50. package/dist/cli/index.d.ts +1 -1
  51. package/dist/cli/index.js +1 -1
  52. package/dist/cli/install.d.ts +4 -0
  53. package/dist/cli/install.js +963 -0
  54. package/dist/cli/install.js.map +1 -0
  55. package/dist/cli/managed-rg.d.ts +10 -0
  56. package/dist/cli/managed-rg.js +329 -0
  57. package/dist/cli/managed-rg.js.map +1 -0
  58. package/dist/cli/server-search.d.ts +3 -0
  59. package/dist/cli/server-search.js +12 -0
  60. package/dist/cli/server-search.js.map +1 -0
  61. package/dist/cli/types.d.ts +23 -6
  62. package/dist/cli/types.js.map +1 -1
  63. package/dist/client/daemon-client.d.ts +31 -0
  64. package/dist/client/daemon-client.js +203 -0
  65. package/dist/client/daemon-client.js.map +1 -0
  66. package/dist/client/mode-router.d.ts +9 -0
  67. package/dist/client/mode-router.js +28 -0
  68. package/dist/client/mode-router.js.map +1 -0
  69. package/dist/client/search-policy.d.ts +11 -0
  70. package/dist/client/search-policy.js +15 -0
  71. package/dist/client/search-policy.js.map +1 -0
  72. package/dist/daemon/backend.d.ts +77 -0
  73. package/dist/daemon/backend.js +1087 -0
  74. package/dist/daemon/backend.js.map +1 -0
  75. package/dist/daemon/change-set.d.ts +25 -0
  76. package/dist/daemon/change-set.js +101 -0
  77. package/dist/daemon/change-set.js.map +1 -0
  78. package/dist/daemon/config.d.ts +24 -0
  79. package/dist/daemon/config.js +88 -0
  80. package/dist/daemon/config.js.map +1 -0
  81. package/dist/daemon/errors.d.ts +5 -0
  82. package/dist/daemon/errors.js +11 -0
  83. package/dist/daemon/errors.js.map +1 -0
  84. package/dist/daemon/http-server.d.ts +30 -0
  85. package/dist/daemon/http-server.js +288 -0
  86. package/dist/daemon/http-server.js.map +1 -0
  87. package/dist/daemon/index-coordinator.d.ts +24 -0
  88. package/dist/daemon/index-coordinator.js +68 -0
  89. package/dist/daemon/index-coordinator.js.map +1 -0
  90. package/dist/daemon/job-scheduler.d.ts +70 -0
  91. package/dist/daemon/job-scheduler.js +366 -0
  92. package/dist/daemon/job-scheduler.js.map +1 -0
  93. package/dist/daemon/logger.d.ts +9 -0
  94. package/dist/daemon/logger.js +53 -0
  95. package/dist/daemon/logger.js.map +1 -0
  96. package/dist/daemon/model-pool.d.ts +45 -0
  97. package/dist/daemon/model-pool.js +187 -0
  98. package/dist/daemon/model-pool.js.map +1 -0
  99. package/dist/daemon/root-lease.d.ts +14 -0
  100. package/dist/daemon/root-lease.js +188 -0
  101. package/dist/daemon/root-lease.js.map +1 -0
  102. package/dist/daemon/root-runtime.d.ts +78 -0
  103. package/dist/daemon/root-runtime.js +333 -0
  104. package/dist/daemon/root-runtime.js.map +1 -0
  105. package/dist/daemon/runtime-manager.d.ts +46 -0
  106. package/dist/daemon/runtime-manager.js +246 -0
  107. package/dist/daemon/runtime-manager.js.map +1 -0
  108. package/dist/daemon/runtime.d.ts +12 -0
  109. package/dist/daemon/runtime.js +102 -0
  110. package/dist/daemon/runtime.js.map +1 -0
  111. package/dist/daemon/server-controller.d.ts +39 -0
  112. package/dist/daemon/server-controller.js +254 -0
  113. package/dist/daemon/server-controller.js.map +1 -0
  114. package/dist/daemon/watch-manager.d.ts +50 -0
  115. package/dist/daemon/watch-manager.js +293 -0
  116. package/dist/daemon/watch-manager.js.map +1 -0
  117. package/dist/daemon/workspace-read-session-cache.d.ts +31 -0
  118. package/dist/daemon/workspace-read-session-cache.js +115 -0
  119. package/dist/daemon/workspace-read-session-cache.js.map +1 -0
  120. package/dist/engine/code-formats.d.ts +3 -0
  121. package/dist/engine/code-formats.js +14 -0
  122. package/dist/engine/code-formats.js.map +1 -0
  123. package/dist/engine/config.d.ts +30 -8
  124. package/dist/engine/config.js +171 -45
  125. package/dist/engine/config.js.map +1 -1
  126. package/dist/engine/{errors/index.d.ts → errors.d.ts} +6 -1
  127. package/dist/engine/{errors/details.js → errors.js} +17 -4
  128. package/dist/engine/errors.js.map +1 -0
  129. package/dist/engine/extraction/code/adapter.d.ts +1 -1
  130. package/dist/engine/extraction/code/adapter.js +1 -1
  131. package/dist/engine/extraction/code/adapter.js.map +1 -1
  132. package/dist/engine/extraction/code/extractor.d.ts +5 -11
  133. package/dist/engine/extraction/code/extractor.js +116 -48
  134. package/dist/engine/extraction/code/extractor.js.map +1 -1
  135. package/dist/engine/extraction/code/families/c-family.js +1 -1
  136. package/dist/engine/extraction/code/families/c-family.js.map +1 -1
  137. package/dist/engine/extraction/code/families/js-ts.d.ts +1 -1
  138. package/dist/engine/extraction/code/families/metadata.d.ts +1 -1
  139. package/dist/engine/extraction/code/tree-sitter/grammar.js.map +1 -0
  140. package/dist/engine/extraction/code/tree-sitter/nodes.js.map +1 -0
  141. package/dist/engine/extraction/code/tree-sitter/parser.js.map +1 -0
  142. package/dist/engine/extraction/image/extractor.d.ts +5 -0
  143. package/dist/engine/extraction/image/extractor.js +35 -0
  144. package/dist/engine/extraction/image/extractor.js.map +1 -0
  145. package/dist/engine/extraction/index.d.ts +4 -44
  146. package/dist/engine/extraction/index.js +2 -280
  147. package/dist/engine/extraction/index.js.map +1 -1
  148. package/dist/engine/extraction/markdown/extractor.d.ts +5 -11
  149. package/dist/engine/extraction/markdown/extractor.js +38 -17
  150. package/dist/engine/extraction/markdown/extractor.js.map +1 -1
  151. package/dist/engine/extraction/runtime.d.ts +4 -0
  152. package/dist/engine/extraction/runtime.js +26 -0
  153. package/dist/engine/extraction/runtime.js.map +1 -0
  154. package/dist/engine/extraction/source.d.ts +18 -0
  155. package/dist/engine/extraction/source.js +22 -0
  156. package/dist/engine/extraction/source.js.map +1 -0
  157. package/dist/engine/extraction/text/extractor.d.ts +7 -0
  158. package/dist/engine/extraction/text/extractor.js +168 -0
  159. package/dist/engine/extraction/text/extractor.js.map +1 -0
  160. package/dist/engine/extraction/types.d.ts +4 -0
  161. package/dist/engine/{models → extraction}/types.js.map +1 -1
  162. package/dist/engine/extraction/vector-content.d.ts +5 -0
  163. package/dist/engine/extraction/vector-content.js +95 -0
  164. package/dist/engine/extraction/vector-content.js.map +1 -0
  165. package/dist/engine/file-size-policy.d.ts +6 -0
  166. package/dist/engine/file-size-policy.js +20 -0
  167. package/dist/engine/file-size-policy.js.map +1 -0
  168. package/dist/engine/file-type.d.ts +15 -0
  169. package/dist/engine/file-type.js +152 -0
  170. package/dist/engine/file-type.js.map +1 -0
  171. package/dist/engine/index-status.d.ts +9 -0
  172. package/dist/engine/index-status.js +38 -0
  173. package/dist/engine/index-status.js.map +1 -0
  174. package/dist/engine/manifest.d.ts +13 -0
  175. package/dist/engine/manifest.js +124 -0
  176. package/dist/engine/manifest.js.map +1 -0
  177. package/dist/engine/models/{providers/llama-cpp/embedding.d.ts → backends/llama-cpp.d.ts} +25 -20
  178. package/dist/engine/models/{providers/llama-cpp/embedding.js → backends/llama-cpp.js} +127 -106
  179. package/dist/engine/models/backends/llama-cpp.js.map +1 -0
  180. package/dist/engine/models/backends/model2vec-runtime.d.ts +63 -0
  181. package/dist/engine/models/backends/model2vec-runtime.js +112 -0
  182. package/dist/engine/models/backends/model2vec-runtime.js.map +1 -0
  183. package/dist/engine/models/backends/model2vec-tokenizer.d.ts +2 -0
  184. package/dist/engine/models/backends/model2vec-tokenizer.js +42 -0
  185. package/dist/engine/models/backends/model2vec-tokenizer.js.map +1 -0
  186. package/dist/engine/models/backends/model2vec-worker-pool.d.ts +25 -0
  187. package/dist/engine/models/backends/model2vec-worker-pool.js +264 -0
  188. package/dist/engine/models/backends/model2vec-worker-pool.js.map +1 -0
  189. package/dist/engine/models/backends/model2vec-worker.d.ts +1 -0
  190. package/dist/engine/models/backends/model2vec-worker.js +41 -0
  191. package/dist/engine/models/backends/model2vec-worker.js.map +1 -0
  192. package/dist/engine/models/backends/model2vec.d.ts +40 -0
  193. package/dist/engine/models/backends/model2vec.js +311 -0
  194. package/dist/engine/models/backends/model2vec.js.map +1 -0
  195. package/dist/engine/models/backends/qwen.d.ts +44 -0
  196. package/dist/engine/models/{providers/qwen/embedding.js → backends/qwen.js} +155 -94
  197. package/dist/engine/models/backends/qwen.js.map +1 -0
  198. package/dist/engine/models/backends/transformers-js.d.ts +87 -0
  199. package/dist/engine/models/backends/transformers-js.js +316 -0
  200. package/dist/engine/models/backends/transformers-js.js.map +1 -0
  201. package/dist/engine/models/catalog.d.ts +207 -23
  202. package/dist/engine/models/catalog.js +191 -25
  203. package/dist/engine/models/catalog.js.map +1 -1
  204. package/dist/engine/models/download-progress.d.ts +15 -0
  205. package/dist/engine/models/download-progress.js +48 -0
  206. package/dist/engine/models/download-progress.js.map +1 -0
  207. package/dist/engine/models/embeddings.d.ts +59 -18
  208. package/dist/engine/models/embeddings.js +52 -28
  209. package/dist/engine/models/embeddings.js.map +1 -1
  210. package/dist/engine/models/factory.d.ts +2 -5
  211. package/dist/engine/models/factory.js +41 -56
  212. package/dist/engine/models/factory.js.map +1 -1
  213. package/dist/engine/models/index.d.ts +4 -6
  214. package/dist/engine/models/index.js +4 -4
  215. package/dist/engine/models/index.js.map +1 -1
  216. package/dist/engine/models/ranking.d.ts +7 -3
  217. package/dist/engine/models/resolution.d.ts +8 -0
  218. package/dist/engine/models/resolution.js +22 -0
  219. package/dist/engine/models/resolution.js.map +1 -0
  220. package/dist/engine/pipeline/indexing/index.d.ts +9 -7
  221. package/dist/engine/pipeline/indexing/index.js +409 -165
  222. package/dist/engine/pipeline/indexing/index.js.map +1 -1
  223. package/dist/engine/pipeline/indexing/input-budget.d.ts +2 -0
  224. package/dist/engine/pipeline/indexing/input-budget.js +51 -0
  225. package/dist/engine/pipeline/indexing/input-budget.js.map +1 -0
  226. package/dist/engine/pipeline/indexing/root-paths.js +6 -6
  227. package/dist/engine/pipeline/indexing/root-paths.js.map +1 -1
  228. package/dist/engine/pipeline/indexing/scanner/index.d.ts +9 -2
  229. package/dist/engine/pipeline/indexing/scanner/index.js +291 -35
  230. package/dist/engine/pipeline/indexing/scanner/index.js.map +1 -1
  231. package/dist/engine/pipeline/search/index.d.ts +6 -6
  232. package/dist/engine/pipeline/search/index.js +8 -10
  233. package/dist/engine/pipeline/search/index.js.map +1 -1
  234. package/dist/engine/service/index.d.ts +3 -2
  235. package/dist/engine/service/index.js +1 -1
  236. package/dist/engine/service/index.js.map +1 -1
  237. package/dist/engine/service/root.d.ts +10 -12
  238. package/dist/engine/service/root.js +29 -25
  239. package/dist/engine/service/root.js.map +1 -1
  240. package/dist/engine/service/structure-enrichment.d.ts +1 -1
  241. package/dist/engine/service/structure-enrichment.js +20 -22
  242. package/dist/engine/service/structure-enrichment.js.map +1 -1
  243. package/dist/engine/service/types.d.ts +40 -38
  244. package/dist/engine/service/workspace-index.d.ts +26 -0
  245. package/dist/engine/service/workspace-index.js +157 -0
  246. package/dist/engine/service/workspace-index.js.map +1 -0
  247. package/dist/engine/service/zvec-grep.d.ts +12 -1
  248. package/dist/engine/service/zvec-grep.js +698 -489
  249. package/dist/engine/service/zvec-grep.js.map +1 -1
  250. package/dist/engine/storage/index.d.ts +30 -20
  251. package/dist/engine/storage/index.js +2 -1
  252. package/dist/engine/storage/index.js.map +1 -1
  253. package/dist/engine/storage/layout.d.ts +10 -0
  254. package/dist/engine/storage/layout.js +29 -0
  255. package/dist/engine/storage/layout.js.map +1 -0
  256. package/dist/engine/storage/zvec.d.ts +4 -67
  257. package/dist/engine/storage/zvec.js +115 -85
  258. package/dist/engine/storage/zvec.js.map +1 -1
  259. package/dist/engine/types.d.ts +29 -23
  260. package/dist/engine/types.js +1 -1
  261. package/dist/engine/types.js.map +1 -1
  262. package/dist/engine/utils/daemon-lease.d.ts +17 -0
  263. package/dist/engine/utils/daemon-lease.js +175 -0
  264. package/dist/engine/utils/daemon-lease.js.map +1 -0
  265. package/dist/engine/utils/file-selection.js +38 -1
  266. package/dist/engine/utils/file-selection.js.map +1 -1
  267. package/dist/engine/utils/lock.js +1 -1
  268. package/dist/engine/utils/lock.js.map +1 -1
  269. package/dist/index-progress.d.ts +10 -0
  270. package/dist/index-progress.js +159 -0
  271. package/dist/index-progress.js.map +1 -0
  272. package/dist/index.d.ts +4 -4
  273. package/dist/index.js +1 -1
  274. package/dist/index.js.map +1 -1
  275. package/dist/mcp/http-transport.d.ts +27 -0
  276. package/dist/mcp/http-transport.js +182 -0
  277. package/dist/mcp/http-transport.js.map +1 -0
  278. package/dist/mcp/input-normalization.d.ts +38 -0
  279. package/dist/mcp/input-normalization.js +104 -0
  280. package/dist/mcp/input-normalization.js.map +1 -0
  281. package/dist/mcp/progress-heartbeat.d.ts +17 -0
  282. package/dist/mcp/progress-heartbeat.js +46 -0
  283. package/dist/mcp/progress-heartbeat.js.map +1 -0
  284. package/dist/mcp/request-metadata.d.ts +2 -0
  285. package/dist/mcp/request-metadata.js +11 -0
  286. package/dist/mcp/request-metadata.js.map +1 -0
  287. package/dist/mcp/request-state.d.ts +40 -0
  288. package/dist/mcp/request-state.js +210 -0
  289. package/dist/mcp/request-state.js.map +1 -0
  290. package/dist/mcp/result-format.d.ts +13 -0
  291. package/dist/mcp/result-format.js +75 -0
  292. package/dist/mcp/result-format.js.map +1 -0
  293. package/dist/mcp/schemas.d.ts +672 -0
  294. package/dist/mcp/schemas.js +506 -0
  295. package/dist/mcp/schemas.js.map +1 -0
  296. package/dist/mcp/stdio-bridge.d.ts +9 -0
  297. package/dist/mcp/stdio-bridge.js +131 -0
  298. package/dist/mcp/stdio-bridge.js.map +1 -0
  299. package/dist/mcp/tools.d.ts +153 -0
  300. package/dist/mcp/tools.js +482 -0
  301. package/dist/mcp/tools.js.map +1 -0
  302. package/dist/mcp/toolset.d.ts +5 -0
  303. package/dist/mcp/toolset.js +12 -0
  304. package/dist/mcp/toolset.js.map +1 -0
  305. package/dist/observability/trace-context.d.ts +11 -0
  306. package/dist/observability/trace-context.js +138 -0
  307. package/dist/observability/trace-context.js.map +1 -0
  308. package/dist/prompts/zvec-grep-guidance.d.ts +2 -0
  309. package/dist/prompts/zvec-grep-guidance.js +9 -0
  310. package/dist/prompts/zvec-grep-guidance.js.map +1 -0
  311. package/docs/01-agents.md +132 -0
  312. package/docs/02-cli.md +239 -0
  313. package/docs/03-mcp.md +185 -0
  314. package/docs/04-pipeline.md +226 -0
  315. package/docs/05-architecture.md +86 -0
  316. package/docs/06-server.md +215 -0
  317. package/docs/07-embedding.md +182 -0
  318. package/docs/08-roadmap.md +85 -0
  319. package/docs/README.md +53 -0
  320. package/package.json +20 -11
  321. package/dist/cli/mcp.d.ts +0 -2
  322. package/dist/cli/mcp.js +0 -354
  323. package/dist/cli/mcp.js.map +0 -1
  324. package/dist/engine/collection/index.d.ts +0 -55
  325. package/dist/engine/collection/index.js +0 -710
  326. package/dist/engine/collection/index.js.map +0 -1
  327. package/dist/engine/errors/details.d.ts +0 -6
  328. package/dist/engine/errors/details.js.map +0 -1
  329. package/dist/engine/errors/index.js +0 -16
  330. package/dist/engine/errors/index.js.map +0 -1
  331. package/dist/engine/extraction/tree-sitter/grammar.js.map +0 -1
  332. package/dist/engine/extraction/tree-sitter/nodes.js.map +0 -1
  333. package/dist/engine/extraction/tree-sitter/parser.js.map +0 -1
  334. package/dist/engine/files/file-type.d.ts +0 -5
  335. package/dist/engine/files/file-type.js +0 -119
  336. package/dist/engine/files/file-type.js.map +0 -1
  337. package/dist/engine/models/providers/index.d.ts +0 -2
  338. package/dist/engine/models/providers/index.js +0 -3
  339. package/dist/engine/models/providers/index.js.map +0 -1
  340. package/dist/engine/models/providers/llama-cpp/embedding.js.map +0 -1
  341. package/dist/engine/models/providers/llama-cpp/index.d.ts +0 -1
  342. package/dist/engine/models/providers/llama-cpp/index.js +0 -2
  343. package/dist/engine/models/providers/llama-cpp/index.js.map +0 -1
  344. package/dist/engine/models/providers/qwen/embedding.d.ts +0 -42
  345. package/dist/engine/models/providers/qwen/embedding.js.map +0 -1
  346. package/dist/engine/models/providers/qwen/index.d.ts +0 -1
  347. package/dist/engine/models/providers/qwen/index.js +0 -2
  348. package/dist/engine/models/providers/qwen/index.js.map +0 -1
  349. package/dist/engine/models/types.d.ts +0 -30
  350. package/skills/zvec-grep/SKILL.md +0 -151
  351. package/skills/zvec-grep/agents/openai.yaml +0 -4
  352. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/grammar.d.ts +0 -0
  353. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/grammar.js +0 -0
  354. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/nodes.d.ts +0 -0
  355. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/nodes.js +0 -0
  356. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/parser.d.ts +0 -0
  357. /package/dist/engine/extraction/{tree-sitter → code/tree-sitter}/parser.js +0 -0
  358. /package/dist/engine/{models → extraction}/types.js +0 -0
@@ -0,0 +1,215 @@
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
+ ## Configure the mode
103
+
104
+ Choose a mode for one command:
105
+
106
+ ```bash
107
+ zg query --mode direct "root-local index discovery"
108
+ zg status --mode server --check-ready
109
+ ```
110
+
111
+ Set an environment default:
112
+
113
+ ```bash
114
+ export ZVEC_GREP_MODE=auto
115
+ ```
116
+
117
+ Or set `client.mode` in `~/.zvec-grep/config.json`:
118
+
119
+ ```json
120
+ {
121
+ "version": 1,
122
+ "client": {
123
+ "mode": "auto"
124
+ }
125
+ }
126
+ ```
127
+
128
+ An explicit `--mode` wins over the environment and global configuration.
129
+
130
+ ## Refresh behavior
131
+
132
+ The execution mode changes the default indexed-search refresh policy:
133
+
134
+ | Policy | Server | Direct |
135
+ | --- | --- | --- |
136
+ | Default | `background` | `off` |
137
+ | `--refresh background` | Return current results and schedule an update | Warn and behave as `off` |
138
+ | `--refresh wait` | Wait for a fresh index | Update and wait in the current process |
139
+ | `--refresh off` | Search without updating | Search without updating |
140
+
141
+ Server searches may return useful results with `freshness: possibly_stale`
142
+ while an update continues. Use the result immediately when it answers the
143
+ question; use `--refresh wait` only when the latest file state is required.
144
+
145
+ Watcher-reported path updates skip workspace-wide status scans. Because
146
+ file-system watchers can silently miss events, the Server schedules an hourly
147
+ full reconciliation probe; the next search uses it to scan the Workspace and
148
+ repair index drift.
149
+
150
+ ## Endpoint and toolset
151
+
152
+ The default endpoint is:
153
+
154
+ ```text
155
+ http://127.0.0.1:7999/mcp
156
+ ```
157
+
158
+ The Server only accepts loopback listen addresses. Change the loopback address
159
+ or port with:
160
+
161
+ ```bash
162
+ zg server on --listen 127.0.0.1:8999
163
+ ```
164
+
165
+ Set `ZVEC_GREP_SERVER_URL` when a client should use a non-default configured
166
+ endpoint.
167
+
168
+ The default `agent` MCP toolset exposes only `zvec_grep_search`. Use
169
+ `--mcp-toolset full` or `ZVEC_GREP_MCP_TOOLSET=full` to expose optional managed
170
+ rg together with the index and status tools. See [MCP](./03-mcp.md) for the tool
171
+ contract.
172
+
173
+ ## Bearer authentication
174
+
175
+ Authentication is disabled by default because the Server is loopback-only. To
176
+ require a token, provide at least 32 characters through the environment or a
177
+ file:
178
+
179
+ ```bash
180
+ export ZVEC_GREP_SERVER_TOKEN="replace-with-a-long-random-token"
181
+ zg server on
182
+ ```
183
+
184
+ ```bash
185
+ zg server on --token-file /secure/path/zvec-grep.token
186
+ ```
187
+
188
+ Clients can use `ZVEC_GREP_SERVER_TOKEN` or `ZVEC_GREP_SERVER_TOKEN_FILE`.
189
+ Supported Agent integrations can reference an environment-backed token:
190
+
191
+ ```bash
192
+ zg install \
193
+ --target codex \
194
+ --mcp-token-env ZVEC_GREP_SERVER_TOKEN \
195
+ --yes
196
+ ```
197
+
198
+ The MCP Bearer token protects the local Server. It does not configure an
199
+ Embedding provider or authorize remote data transfer.
200
+
201
+ ## Logs and state
202
+
203
+ The default daemon directory is `~/.zvec-grep/daemon/`. Its structured JSON
204
+ Lines log is written to:
205
+
206
+ ```text
207
+ ~/.zvec-grep/daemon/logs/server.log
208
+ ```
209
+
210
+ Credential, authorization, token, API-key, and query fields are filtered from
211
+ daemon log records. Repository identities are logged opaquely rather than as
212
+ raw paths where identity is sufficient.
213
+
214
+ Use `ZVEC_GREP_HOME` to relocate Server state. Check `zg server status` before
215
+ reading logs; routine searches do not need a status preflight.
@@ -0,0 +1,182 @@
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 on first use and cached under `~/.zvec-grep/models` by default.
19
+ Remote models avoid local inference but send disclosed query or workspace
20
+ content to the configured provider after authorization.
21
+
22
+ ## Quick selection
23
+
24
+ | Need | Start with | Why |
25
+ | --- | --- | --- |
26
+ | A fast first index for a code repository | `local/potion-code-16m-v2` | Small static Model2Vec model with a 1,024-token input limit |
27
+ | Fast English document retrieval | `local/potion-retrieval-32m` | Retrieval-tuned static model with 512-dimensional vectors |
28
+ | Fast multilingual document retrieval | `local/potion-multilingual-128m` | Static model trained for 101 languages with compact 256-dimensional vectors |
29
+ | A Transformer model specialized for code | `local/jina-embeddings-v2-base-code` | Code-oriented, multilingual, and long-context |
30
+ | General multilingual code and documents | `local/embeddinggemma-300m` | Broad language coverage in a local GGUF model |
31
+ | A smaller multilingual model | `local/multilingual-e5-small` | Compact 384-dimensional Transformer model |
32
+ | A lightweight English model | `local/all-minilm-l6-v2` | Small local model for short English text |
33
+ | Long English documents | `local/gte-modernbert-base` or `local/nomic-embed-text-v1.5` | 8,192-token local context |
34
+ | No local model runtime | `qwen/qwen3.7-text-embedding` | Managed text Embedding API |
35
+ | Text and image retrieval | `qwen/qwen3-vl-embedding` | Managed multimodal Embedding API |
36
+
37
+ The best model still depends on the repository and its real queries. Start with
38
+ the smallest model that covers the required languages and input length, then
39
+ compare representative results before committing to a larger model.
40
+
41
+ ## Supported models
42
+
43
+ The input limit applies to each extracted entity or fragment, not the entire
44
+ file.
45
+
46
+ | Model | Runtime | Max input tokens | Dimensions |
47
+ | --- | --- | ---: | ---: |
48
+ | `local/potion-code-16m-v2` | Model2Vec FP16 | 1,024 | 256 |
49
+ | `local/potion-retrieval-32m` | Model2Vec FP32 | 1,024 | 512 |
50
+ | `local/potion-multilingual-128m` | Model2Vec FP32 | 1,024 | 256 |
51
+ | `local/all-minilm-l6-v2` | ONNX Q4 | 256 | 384 |
52
+ | `local/bge-small-en-v1.5` | ONNX Q4 | 512 | 384 |
53
+ | `local/multilingual-e5-small` | ONNX Q8 | 512 | 384 |
54
+ | `local/jina-embeddings-v2-base-code` | ONNX Q8 | 8,192 | 768 |
55
+ | `local/gte-modernbert-base` | ONNX Q4 | 8,192 | 768 |
56
+ | `local/nomic-embed-text-v1.5` | ONNX Q4 | 8,192 | 768 |
57
+ | `local/embeddinggemma-300m` | GGUF Q8_0 | 2,048 | 768 |
58
+ | `local/qwen3-embedding-0.6b` | GGUF Q8_0 | 8,192 | 1,024 |
59
+ | `qwen/text-embedding-v4` | Remote text | 8,192 | 1,024 |
60
+ | `qwen/qwen3.7-text-embedding` | Remote text | 128,000 | 1,024 |
61
+ | `qwen/qwen3-vl-embedding` | Remote multimodal | 32,000 | 2,560 |
62
+
63
+ All catalog entries currently use cosine similarity. Exact model revisions are
64
+ pinned by zvec-grep so the same reference resolves consistently for a given
65
+ release.
66
+
67
+ ## Configure a default model
68
+
69
+ Set a default for new indexes:
70
+
71
+ ```bash
72
+ zg config model set local/potion-code-16m-v2 --default
73
+ zg index
74
+ ```
75
+
76
+ `ZVEC_GREP_EMBEDDING` provides a process-level default that takes priority over
77
+ the configured global default for new indexes:
78
+
79
+ ```bash
80
+ export ZVEC_GREP_EMBEDDING=local/potion-code-16m-v2
81
+ zg index
82
+ ```
83
+
84
+ An existing index always reuses its stored provider, model, dimensions, and
85
+ metric unless `--embedding` and `--rebuild` explicitly change them. `zg index`
86
+ forwards the current CLI environment default in server and auto modes; direct
87
+ MCP calls use the environment inherited by the daemon.
88
+
89
+ ## Local runtime and device
90
+
91
+ Select a device for local Transformer and GGUF models:
92
+
93
+ ```bash
94
+ zg index \
95
+ --embedding local/jina-embeddings-v2-base-code \
96
+ --device auto
97
+ ```
98
+
99
+ Supported values are `auto`, `cpu`, `metal`, `vulkan`, and `cuda`. Save a model
100
+ preference globally with:
101
+
102
+ ```bash
103
+ zg config model set local/jina-embeddings-v2-base-code --device metal
104
+ ```
105
+
106
+ The equivalent environment override is `ZVEC_GREP_DEVICE`. Model2Vec models
107
+ such as Potion use static vector lookup, so selecting a GPU does not improve
108
+ their runtime.
109
+
110
+ Override the download cache with `--model-cache` or `ZVEC_GREP_MODEL_CACHE`:
111
+
112
+ ```bash
113
+ zg index \
114
+ --embedding local/potion-code-16m-v2 \
115
+ --model-cache /path/to/model-cache
116
+ ```
117
+
118
+ ## Remote Embedding and authorization
119
+
120
+ Configure the Qwen provider credential and, optionally, a model endpoint:
121
+
122
+ ```bash
123
+ zg config provider set qwen --api-key "$DASHSCOPE_API_KEY"
124
+ zg config model set qwen/text-embedding-v4 --default
125
+ ```
126
+
127
+ One-off values can be passed directly or through `ZVEC_GREP_API_KEY` and
128
+ `ZVEC_GREP_ENDPOINT`:
129
+
130
+ ```bash
131
+ zg index \
132
+ --embedding qwen/text-embedding-v4 \
133
+ --api-key "$DASHSCOPE_API_KEY" \
134
+ --allow-remote
135
+ ```
136
+
137
+ Credentials configure access to a provider; they do not authorize data
138
+ transfer. `--allow-remote` authorizes Remote Embedding only for the current
139
+ command. To create a signed Workspace grant shared by the CLI and MCP server:
140
+
141
+ ```bash
142
+ zg auth grant \
143
+ --capability embedding \
144
+ --scope workspace \
145
+ --embedding qwen/text-embedding-v4
146
+
147
+ zg auth status
148
+ zg auth revoke
149
+ ```
150
+
151
+ Before granting access, confirm that the workspace content is permitted to be
152
+ sent to the selected provider and endpoint. MCP tool approval is separate from
153
+ this data authorization.
154
+
155
+ ## Input length and truncation
156
+
157
+ zvec-grep uses the selected model's input limit when it creates fragments, but
158
+ characters and tokens do not map one-to-one across languages. If an extracted
159
+ input still exceeds the model limit, the provider truncates it and the index
160
+ records the count.
161
+
162
+ Inspect the index after changing models or file scope:
163
+
164
+ ```bash
165
+ zg status
166
+ ```
167
+
168
+ Prefer a model with a larger input limit or narrow the indexed content when
169
+ `truncated_fragments` is unexpectedly high.
170
+
171
+ ## Change models
172
+
173
+ Vector spaces from different models are incompatible, even when their
174
+ dimensions match. Rebuild explicitly when changing models:
175
+
176
+ ```bash
177
+ zg index --rebuild --embedding local/jina-embeddings-v2-base-code
178
+ ```
179
+
180
+ Changing a remote endpoint also requires a rebuild because the endpoint is part
181
+ of the stored index schema. API key and local device changes affect runtime and
182
+ do not require rebuilding the vectors.
@@ -0,0 +1,85 @@
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 ADDED
@@ -0,0 +1,53 @@
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, 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).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zvec/zvec-grep",
3
- "version": "0.1.5",
4
- "description": "Agent-friendly hybrid code search with indexed context and managed ripgrep.",
3
+ "version": "0.1.7",
4
+ "description": "Agent-friendly hybrid workspace search across code and non-code content.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -31,8 +31,8 @@
31
31
  "README.md",
32
32
  "README_CN.md",
33
33
  "LICENSE",
34
- "dist",
35
- "skills/zvec-grep"
34
+ "docs",
35
+ "dist"
36
36
  ],
37
37
  "scripts": {
38
38
  "build": "tsc -p tsconfig.json",
@@ -41,17 +41,21 @@
41
41
  "lint": "eslint .",
42
42
  "prepack": "npm run build",
43
43
  "test:coverage": "npm run build && c8 --all --include=dist/**/*.js --check-coverage --lines=80 --statements=80 --functions=80 --branches=80 npm run test:all",
44
- "test:all": "node --test --test-concurrency=1 test/*.test.mjs test/unit/*.test.mjs test/integration/*.test.mjs test/e2e/*.test.mjs",
45
- "test:e2e": "npm run build && node --test --test-concurrency=1 test/e2e/*.test.mjs",
46
- "test:integration": "npm run build && node --test --test-concurrency=1 test/*.test.mjs test/integration/*.test.mjs",
44
+ "test:all": "npm run test:run:root && npm run test:run:unit && npm run test:run:integration && npm run test:run:e2e",
45
+ "test:e2e": "npm run build && npm run test:run:e2e",
46
+ "test:integration": "npm run build && npm run test:run:root && npm run test:run:integration",
47
47
  "test:package": "npm run build && node --test --test-concurrency=1 test/package/*.test.mjs",
48
- "test:unit": "npm run build && node --test test/unit/*.test.mjs",
48
+ "test:run:e2e": "node --test --test-concurrency=1 test/e2e/*.test.mjs",
49
+ "test:run:integration": "node --test --test-concurrency=1 test/integration/*.test.mjs",
50
+ "test:run:root": "node --test --test-concurrency=1 test/*.test.mjs",
51
+ "test:run:unit": "node --test --test-concurrency=1 test/unit/*.test.mjs test/unit/extraction/*.test.mjs test/unit/models/*.test.mjs",
52
+ "test:unit": "npm run build && npm run test:run:unit",
49
53
  "typecheck": "tsc -p tsconfig.json --noEmit",
50
- "workflow:check": "node scripts/check-workflows.mjs",
51
54
  "test": "npm run build && npm run test:all"
52
55
  },
53
56
  "devDependencies": {
54
57
  "@eslint/js": "^10.0.1",
58
+ "@modelcontextprotocol/conformance": "0.1.16",
55
59
  "@types/node": "^22.20.1",
56
60
  "c8": "^11.0.0",
57
61
  "eslint": "^10.7.0",
@@ -61,12 +65,17 @@
61
65
  "typescript-eslint": "^8.64.0"
62
66
  },
63
67
  "dependencies": {
64
- "@modelcontextprotocol/sdk": "^1.29.0",
68
+ "@huggingface/tokenizers": "^0.1.3",
69
+ "@huggingface/transformers": "^3.8.1",
70
+ "@modelcontextprotocol/client": "2.0.0",
71
+ "@modelcontextprotocol/core": "2.0.0",
72
+ "@modelcontextprotocol/node": "2.0.0",
73
+ "@modelcontextprotocol/server": "2.0.0",
65
74
  "@vscode/ripgrep": "^1.18.0",
66
75
  "@zvec/zvec": "^0.5.0",
67
76
  "tree-sitter-wasms": "^0.1.13",
68
77
  "web-tree-sitter": "^0.20.8",
69
- "zod": "^3.25.76"
78
+ "zod": "4.2.0"
70
79
  },
71
80
  "optionalDependencies": {
72
81
  "node-llama-cpp": "3.18.1"
package/dist/cli/mcp.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { type CreateZvecGrepOptions } from "../index.js";
2
- export declare function runMcpServer(options: CreateZvecGrepOptions): Promise<void>;