causantic 0.2.0

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 (706) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +332 -0
  3. package/config.schema.json +254 -0
  4. package/dist/cli/commands/archive.d.ts +4 -0
  5. package/dist/cli/commands/archive.d.ts.map +1 -0
  6. package/dist/cli/commands/archive.js +76 -0
  7. package/dist/cli/commands/archive.js.map +1 -0
  8. package/dist/cli/commands/benchmark-collection.d.ts +8 -0
  9. package/dist/cli/commands/benchmark-collection.d.ts.map +1 -0
  10. package/dist/cli/commands/benchmark-collection.js +146 -0
  11. package/dist/cli/commands/benchmark-collection.js.map +1 -0
  12. package/dist/cli/commands/config.d.ts +3 -0
  13. package/dist/cli/commands/config.d.ts.map +1 -0
  14. package/dist/cli/commands/config.js +69 -0
  15. package/dist/cli/commands/config.js.map +1 -0
  16. package/dist/cli/commands/dashboard.d.ts +3 -0
  17. package/dist/cli/commands/dashboard.d.ts.map +1 -0
  18. package/dist/cli/commands/dashboard.js +12 -0
  19. package/dist/cli/commands/dashboard.js.map +1 -0
  20. package/dist/cli/commands/encryption.d.ts +3 -0
  21. package/dist/cli/commands/encryption.d.ts.map +1 -0
  22. package/dist/cli/commands/encryption.js +207 -0
  23. package/dist/cli/commands/encryption.js.map +1 -0
  24. package/dist/cli/commands/hook.d.ts +3 -0
  25. package/dist/cli/commands/hook.d.ts.map +1 -0
  26. package/dist/cli/commands/hook.js +35 -0
  27. package/dist/cli/commands/hook.js.map +1 -0
  28. package/dist/cli/commands/ingest.d.ts +4 -0
  29. package/dist/cli/commands/ingest.d.ts.map +1 -0
  30. package/dist/cli/commands/ingest.js +31 -0
  31. package/dist/cli/commands/ingest.js.map +1 -0
  32. package/dist/cli/commands/init.d.ts +3 -0
  33. package/dist/cli/commands/init.d.ts.map +1 -0
  34. package/dist/cli/commands/init.js +680 -0
  35. package/dist/cli/commands/init.js.map +1 -0
  36. package/dist/cli/commands/maintenance.d.ts +3 -0
  37. package/dist/cli/commands/maintenance.d.ts.map +1 -0
  38. package/dist/cli/commands/maintenance.js +67 -0
  39. package/dist/cli/commands/maintenance.js.map +1 -0
  40. package/dist/cli/commands/search.d.ts +3 -0
  41. package/dist/cli/commands/search.d.ts.map +1 -0
  42. package/dist/cli/commands/search.js +16 -0
  43. package/dist/cli/commands/search.js.map +1 -0
  44. package/dist/cli/commands/serve.d.ts +3 -0
  45. package/dist/cli/commands/serve.d.ts.map +1 -0
  46. package/dist/cli/commands/serve.js +19 -0
  47. package/dist/cli/commands/serve.js.map +1 -0
  48. package/dist/cli/commands/stats.d.ts +4 -0
  49. package/dist/cli/commands/stats.d.ts.map +1 -0
  50. package/dist/cli/commands/stats.js +49 -0
  51. package/dist/cli/commands/stats.js.map +1 -0
  52. package/dist/cli/commands/uninstall.d.ts +3 -0
  53. package/dist/cli/commands/uninstall.d.ts.map +1 -0
  54. package/dist/cli/commands/uninstall.js +10 -0
  55. package/dist/cli/commands/uninstall.js.map +1 -0
  56. package/dist/cli/index.d.ts +8 -0
  57. package/dist/cli/index.d.ts.map +1 -0
  58. package/dist/cli/index.js +86 -0
  59. package/dist/cli/index.js.map +1 -0
  60. package/dist/cli/skill-templates.d.ts +19 -0
  61. package/dist/cli/skill-templates.d.ts.map +1 -0
  62. package/dist/cli/skill-templates.js +1128 -0
  63. package/dist/cli/skill-templates.js.map +1 -0
  64. package/dist/cli/types.d.ts +10 -0
  65. package/dist/cli/types.d.ts.map +1 -0
  66. package/dist/cli/types.js +5 -0
  67. package/dist/cli/types.js.map +1 -0
  68. package/dist/cli/uninstall.d.ts +66 -0
  69. package/dist/cli/uninstall.d.ts.map +1 -0
  70. package/dist/cli/uninstall.js +490 -0
  71. package/dist/cli/uninstall.js.map +1 -0
  72. package/dist/cli/utils.d.ts +26 -0
  73. package/dist/cli/utils.d.ts.map +1 -0
  74. package/dist/cli/utils.js +105 -0
  75. package/dist/cli/utils.js.map +1 -0
  76. package/dist/clusters/cluster-manager.d.ts +96 -0
  77. package/dist/clusters/cluster-manager.d.ts.map +1 -0
  78. package/dist/clusters/cluster-manager.js +321 -0
  79. package/dist/clusters/cluster-manager.js.map +1 -0
  80. package/dist/clusters/cluster-refresh.d.ts +56 -0
  81. package/dist/clusters/cluster-refresh.d.ts.map +1 -0
  82. package/dist/clusters/cluster-refresh.js +187 -0
  83. package/dist/clusters/cluster-refresh.js.map +1 -0
  84. package/dist/clusters/hdbscan/cluster-extraction.d.ts +26 -0
  85. package/dist/clusters/hdbscan/cluster-extraction.d.ts.map +1 -0
  86. package/dist/clusters/hdbscan/cluster-extraction.js +232 -0
  87. package/dist/clusters/hdbscan/cluster-extraction.js.map +1 -0
  88. package/dist/clusters/hdbscan/core-distance-worker.d.ts +6 -0
  89. package/dist/clusters/hdbscan/core-distance-worker.d.ts.map +1 -0
  90. package/dist/clusters/hdbscan/core-distance-worker.js +54 -0
  91. package/dist/clusters/hdbscan/core-distance-worker.js.map +1 -0
  92. package/dist/clusters/hdbscan/core-distance.d.ts +26 -0
  93. package/dist/clusters/hdbscan/core-distance.d.ts.map +1 -0
  94. package/dist/clusters/hdbscan/core-distance.js +94 -0
  95. package/dist/clusters/hdbscan/core-distance.js.map +1 -0
  96. package/dist/clusters/hdbscan/distance-cache.d.ts +46 -0
  97. package/dist/clusters/hdbscan/distance-cache.d.ts.map +1 -0
  98. package/dist/clusters/hdbscan/distance-cache.js +84 -0
  99. package/dist/clusters/hdbscan/distance-cache.js.map +1 -0
  100. package/dist/clusters/hdbscan/hierarchy.d.ts +34 -0
  101. package/dist/clusters/hdbscan/hierarchy.d.ts.map +1 -0
  102. package/dist/clusters/hdbscan/hierarchy.js +442 -0
  103. package/dist/clusters/hdbscan/hierarchy.js.map +1 -0
  104. package/dist/clusters/hdbscan/incremental.d.ts +30 -0
  105. package/dist/clusters/hdbscan/incremental.d.ts.map +1 -0
  106. package/dist/clusters/hdbscan/incremental.js +130 -0
  107. package/dist/clusters/hdbscan/incremental.js.map +1 -0
  108. package/dist/clusters/hdbscan/kd-tree.d.ts +51 -0
  109. package/dist/clusters/hdbscan/kd-tree.d.ts.map +1 -0
  110. package/dist/clusters/hdbscan/kd-tree.js +130 -0
  111. package/dist/clusters/hdbscan/kd-tree.js.map +1 -0
  112. package/dist/clusters/hdbscan/min-heap.d.ts +62 -0
  113. package/dist/clusters/hdbscan/min-heap.d.ts.map +1 -0
  114. package/dist/clusters/hdbscan/min-heap.js +139 -0
  115. package/dist/clusters/hdbscan/min-heap.js.map +1 -0
  116. package/dist/clusters/hdbscan/mst.d.ts +20 -0
  117. package/dist/clusters/hdbscan/mst.d.ts.map +1 -0
  118. package/dist/clusters/hdbscan/mst.js +77 -0
  119. package/dist/clusters/hdbscan/mst.js.map +1 -0
  120. package/dist/clusters/hdbscan/probabilities.d.ts +37 -0
  121. package/dist/clusters/hdbscan/probabilities.d.ts.map +1 -0
  122. package/dist/clusters/hdbscan/probabilities.js +149 -0
  123. package/dist/clusters/hdbscan/probabilities.js.map +1 -0
  124. package/dist/clusters/hdbscan/types.d.ts +123 -0
  125. package/dist/clusters/hdbscan/types.d.ts.map +1 -0
  126. package/dist/clusters/hdbscan/types.js +5 -0
  127. package/dist/clusters/hdbscan/types.js.map +1 -0
  128. package/dist/clusters/hdbscan/union-find.d.ts +51 -0
  129. package/dist/clusters/hdbscan/union-find.d.ts.map +1 -0
  130. package/dist/clusters/hdbscan/union-find.js +115 -0
  131. package/dist/clusters/hdbscan/union-find.js.map +1 -0
  132. package/dist/clusters/hdbscan.d.ts +71 -0
  133. package/dist/clusters/hdbscan.d.ts.map +1 -0
  134. package/dist/clusters/hdbscan.js +283 -0
  135. package/dist/clusters/hdbscan.js.map +1 -0
  136. package/dist/clusters/index.d.ts +8 -0
  137. package/dist/clusters/index.d.ts.map +1 -0
  138. package/dist/clusters/index.js +8 -0
  139. package/dist/clusters/index.js.map +1 -0
  140. package/dist/config/index.d.ts +6 -0
  141. package/dist/config/index.d.ts.map +1 -0
  142. package/dist/config/index.js +6 -0
  143. package/dist/config/index.js.map +1 -0
  144. package/dist/config/loader.d.ts +105 -0
  145. package/dist/config/loader.d.ts.map +1 -0
  146. package/dist/config/loader.js +339 -0
  147. package/dist/config/loader.js.map +1 -0
  148. package/dist/config/memory-config.d.ts +109 -0
  149. package/dist/config/memory-config.d.ts.map +1 -0
  150. package/dist/config/memory-config.js +182 -0
  151. package/dist/config/memory-config.js.map +1 -0
  152. package/dist/core/benchmark-types.d.ts +62 -0
  153. package/dist/core/benchmark-types.d.ts.map +1 -0
  154. package/dist/core/benchmark-types.js +11 -0
  155. package/dist/core/benchmark-types.js.map +1 -0
  156. package/dist/core/decay-types.d.ts +111 -0
  157. package/dist/core/decay-types.d.ts.map +1 -0
  158. package/dist/core/decay-types.js +30 -0
  159. package/dist/core/decay-types.js.map +1 -0
  160. package/dist/core/index.d.ts +11 -0
  161. package/dist/core/index.d.ts.map +1 -0
  162. package/dist/core/index.js +9 -0
  163. package/dist/core/index.js.map +1 -0
  164. package/dist/core/lexical-features.d.ts +34 -0
  165. package/dist/core/lexical-features.d.ts.map +1 -0
  166. package/dist/core/lexical-features.js +155 -0
  167. package/dist/core/lexical-features.js.map +1 -0
  168. package/dist/dashboard/client/assets/index-CMUKy4f9.css +1 -0
  169. package/dist/dashboard/client/assets/index-esv8TpCN.js +168 -0
  170. package/dist/dashboard/client/index.html +14 -0
  171. package/dist/dashboard/middleware/async-handler.d.ts +11 -0
  172. package/dist/dashboard/middleware/async-handler.d.ts.map +1 -0
  173. package/dist/dashboard/middleware/async-handler.js +12 -0
  174. package/dist/dashboard/middleware/async-handler.js.map +1 -0
  175. package/dist/dashboard/middleware/error-handler.d.ts +9 -0
  176. package/dist/dashboard/middleware/error-handler.d.ts.map +1 -0
  177. package/dist/dashboard/middleware/error-handler.js +14 -0
  178. package/dist/dashboard/middleware/error-handler.js.map +1 -0
  179. package/dist/dashboard/routes/benchmark-collection.d.ts +11 -0
  180. package/dist/dashboard/routes/benchmark-collection.d.ts.map +1 -0
  181. package/dist/dashboard/routes/benchmark-collection.js +49 -0
  182. package/dist/dashboard/routes/benchmark-collection.js.map +1 -0
  183. package/dist/dashboard/routes/chunks.d.ts +3 -0
  184. package/dist/dashboard/routes/chunks.d.ts.map +1 -0
  185. package/dist/dashboard/routes/chunks.js +25 -0
  186. package/dist/dashboard/routes/chunks.js.map +1 -0
  187. package/dist/dashboard/routes/clusters.d.ts +3 -0
  188. package/dist/dashboard/routes/clusters.d.ts.map +1 -0
  189. package/dist/dashboard/routes/clusters.js +28 -0
  190. package/dist/dashboard/routes/clusters.js.map +1 -0
  191. package/dist/dashboard/routes/edges.d.ts +3 -0
  192. package/dist/dashboard/routes/edges.d.ts.map +1 -0
  193. package/dist/dashboard/routes/edges.js +32 -0
  194. package/dist/dashboard/routes/edges.js.map +1 -0
  195. package/dist/dashboard/routes/graph.d.ts +3 -0
  196. package/dist/dashboard/routes/graph.d.ts.map +1 -0
  197. package/dist/dashboard/routes/graph.js +158 -0
  198. package/dist/dashboard/routes/graph.js.map +1 -0
  199. package/dist/dashboard/routes/projects.d.ts +3 -0
  200. package/dist/dashboard/routes/projects.d.ts.map +1 -0
  201. package/dist/dashboard/routes/projects.js +9 -0
  202. package/dist/dashboard/routes/projects.js.map +1 -0
  203. package/dist/dashboard/routes/search.d.ts +3 -0
  204. package/dist/dashboard/routes/search.d.ts.map +1 -0
  205. package/dist/dashboard/routes/search.js +105 -0
  206. package/dist/dashboard/routes/search.js.map +1 -0
  207. package/dist/dashboard/routes/sessions.d.ts +3 -0
  208. package/dist/dashboard/routes/sessions.d.ts.map +1 -0
  209. package/dist/dashboard/routes/sessions.js +16 -0
  210. package/dist/dashboard/routes/sessions.js.map +1 -0
  211. package/dist/dashboard/routes/stats.d.ts +3 -0
  212. package/dist/dashboard/routes/stats.d.ts.map +1 -0
  213. package/dist/dashboard/routes/stats.js +38 -0
  214. package/dist/dashboard/routes/stats.js.map +1 -0
  215. package/dist/dashboard/server.d.ts +3 -0
  216. package/dist/dashboard/server.d.ts.map +1 -0
  217. package/dist/dashboard/server.js +85 -0
  218. package/dist/dashboard/server.js.map +1 -0
  219. package/dist/eval/annotation-schema.d.ts +41 -0
  220. package/dist/eval/annotation-schema.d.ts.map +1 -0
  221. package/dist/eval/annotation-schema.js +171 -0
  222. package/dist/eval/annotation-schema.js.map +1 -0
  223. package/dist/eval/benchmark-runner.d.ts +15 -0
  224. package/dist/eval/benchmark-runner.d.ts.map +1 -0
  225. package/dist/eval/benchmark-runner.js +93 -0
  226. package/dist/eval/benchmark-runner.js.map +1 -0
  227. package/dist/eval/cluster-evaluator.d.ts +39 -0
  228. package/dist/eval/cluster-evaluator.d.ts.map +1 -0
  229. package/dist/eval/cluster-evaluator.js +51 -0
  230. package/dist/eval/cluster-evaluator.js.map +1 -0
  231. package/dist/eval/code-nl-alignment.d.ts +25 -0
  232. package/dist/eval/code-nl-alignment.d.ts.map +1 -0
  233. package/dist/eval/code-nl-alignment.js +49 -0
  234. package/dist/eval/code-nl-alignment.js.map +1 -0
  235. package/dist/eval/collection-benchmark/graph-value.d.ts +16 -0
  236. package/dist/eval/collection-benchmark/graph-value.d.ts.map +1 -0
  237. package/dist/eval/collection-benchmark/graph-value.js +162 -0
  238. package/dist/eval/collection-benchmark/graph-value.js.map +1 -0
  239. package/dist/eval/collection-benchmark/health.d.ts +12 -0
  240. package/dist/eval/collection-benchmark/health.d.ts.map +1 -0
  241. package/dist/eval/collection-benchmark/health.js +246 -0
  242. package/dist/eval/collection-benchmark/health.js.map +1 -0
  243. package/dist/eval/collection-benchmark/history.d.ts +27 -0
  244. package/dist/eval/collection-benchmark/history.d.ts.map +1 -0
  245. package/dist/eval/collection-benchmark/history.js +134 -0
  246. package/dist/eval/collection-benchmark/history.js.map +1 -0
  247. package/dist/eval/collection-benchmark/latency.d.ts +16 -0
  248. package/dist/eval/collection-benchmark/latency.d.ts.map +1 -0
  249. package/dist/eval/collection-benchmark/latency.js +115 -0
  250. package/dist/eval/collection-benchmark/latency.js.map +1 -0
  251. package/dist/eval/collection-benchmark/reporter.d.ts +18 -0
  252. package/dist/eval/collection-benchmark/reporter.d.ts.map +1 -0
  253. package/dist/eval/collection-benchmark/reporter.js +244 -0
  254. package/dist/eval/collection-benchmark/reporter.js.map +1 -0
  255. package/dist/eval/collection-benchmark/retrieval.d.ts +15 -0
  256. package/dist/eval/collection-benchmark/retrieval.d.ts.map +1 -0
  257. package/dist/eval/collection-benchmark/retrieval.js +203 -0
  258. package/dist/eval/collection-benchmark/retrieval.js.map +1 -0
  259. package/dist/eval/collection-benchmark/runner.d.ts +20 -0
  260. package/dist/eval/collection-benchmark/runner.d.ts.map +1 -0
  261. package/dist/eval/collection-benchmark/runner.js +189 -0
  262. package/dist/eval/collection-benchmark/runner.js.map +1 -0
  263. package/dist/eval/collection-benchmark/sampler.d.ts +18 -0
  264. package/dist/eval/collection-benchmark/sampler.d.ts.map +1 -0
  265. package/dist/eval/collection-benchmark/sampler.js +186 -0
  266. package/dist/eval/collection-benchmark/sampler.js.map +1 -0
  267. package/dist/eval/collection-benchmark/tuning.d.ts +12 -0
  268. package/dist/eval/collection-benchmark/tuning.d.ts.map +1 -0
  269. package/dist/eval/collection-benchmark/tuning.js +222 -0
  270. package/dist/eval/collection-benchmark/tuning.js.map +1 -0
  271. package/dist/eval/collection-benchmark/types.d.ts +183 -0
  272. package/dist/eval/collection-benchmark/types.d.ts.map +1 -0
  273. package/dist/eval/collection-benchmark/types.js +7 -0
  274. package/dist/eval/collection-benchmark/types.js.map +1 -0
  275. package/dist/eval/context-window-test.d.ts +34 -0
  276. package/dist/eval/context-window-test.d.ts.map +1 -0
  277. package/dist/eval/context-window-test.js +59 -0
  278. package/dist/eval/context-window-test.js.map +1 -0
  279. package/dist/eval/corpus-builder.d.ts +33 -0
  280. package/dist/eval/corpus-builder.d.ts.map +1 -0
  281. package/dist/eval/corpus-builder.js +88 -0
  282. package/dist/eval/corpus-builder.js.map +1 -0
  283. package/dist/eval/experiments/boilerplate-filter.d.ts +26 -0
  284. package/dist/eval/experiments/boilerplate-filter.d.ts.map +1 -0
  285. package/dist/eval/experiments/boilerplate-filter.js +95 -0
  286. package/dist/eval/experiments/boilerplate-filter.js.map +1 -0
  287. package/dist/eval/experiments/cluster-threshold/index.d.ts +6 -0
  288. package/dist/eval/experiments/cluster-threshold/index.d.ts.map +1 -0
  289. package/dist/eval/experiments/cluster-threshold/index.js +5 -0
  290. package/dist/eval/experiments/cluster-threshold/index.js.map +1 -0
  291. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.d.ts +58 -0
  292. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.d.ts.map +1 -0
  293. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js +246 -0
  294. package/dist/eval/experiments/cluster-threshold/run-threshold-sweep.js.map +1 -0
  295. package/dist/eval/experiments/code-focused-mode.d.ts +20 -0
  296. package/dist/eval/experiments/code-focused-mode.d.ts.map +1 -0
  297. package/dist/eval/experiments/code-focused-mode.js +66 -0
  298. package/dist/eval/experiments/code-focused-mode.js.map +1 -0
  299. package/dist/eval/experiments/edge-decay/decay-curves.d.ts +59 -0
  300. package/dist/eval/experiments/edge-decay/decay-curves.d.ts.map +1 -0
  301. package/dist/eval/experiments/edge-decay/decay-curves.js +124 -0
  302. package/dist/eval/experiments/edge-decay/decay-curves.js.map +1 -0
  303. package/dist/eval/experiments/edge-decay/index.d.ts +13 -0
  304. package/dist/eval/experiments/edge-decay/index.d.ts.map +1 -0
  305. package/dist/eval/experiments/edge-decay/index.js +16 -0
  306. package/dist/eval/experiments/edge-decay/index.js.map +1 -0
  307. package/dist/eval/experiments/edge-decay/presets.d.ts +52 -0
  308. package/dist/eval/experiments/edge-decay/presets.d.ts.map +1 -0
  309. package/dist/eval/experiments/edge-decay/presets.js +234 -0
  310. package/dist/eval/experiments/edge-decay/presets.js.map +1 -0
  311. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts +34 -0
  312. package/dist/eval/experiments/edge-decay/reference-extractor.d.ts.map +1 -0
  313. package/dist/eval/experiments/edge-decay/reference-extractor.js +353 -0
  314. package/dist/eval/experiments/edge-decay/reference-extractor.js.map +1 -0
  315. package/dist/eval/experiments/edge-decay/reference-types.d.ts +131 -0
  316. package/dist/eval/experiments/edge-decay/reference-types.d.ts.map +1 -0
  317. package/dist/eval/experiments/edge-decay/reference-types.js +5 -0
  318. package/dist/eval/experiments/edge-decay/reference-types.js.map +1 -0
  319. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts +64 -0
  320. package/dist/eval/experiments/edge-decay/retrieval-ranking.d.ts.map +1 -0
  321. package/dist/eval/experiments/edge-decay/retrieval-ranking.js +565 -0
  322. package/dist/eval/experiments/edge-decay/retrieval-ranking.js.map +1 -0
  323. package/dist/eval/experiments/edge-decay/run-experiments.d.ts +25 -0
  324. package/dist/eval/experiments/edge-decay/run-experiments.d.ts.map +1 -0
  325. package/dist/eval/experiments/edge-decay/run-experiments.js +229 -0
  326. package/dist/eval/experiments/edge-decay/run-experiments.js.map +1 -0
  327. package/dist/eval/experiments/edge-decay/simulate.d.ts +42 -0
  328. package/dist/eval/experiments/edge-decay/simulate.d.ts.map +1 -0
  329. package/dist/eval/experiments/edge-decay/simulate.js +232 -0
  330. package/dist/eval/experiments/edge-decay/simulate.js.map +1 -0
  331. package/dist/eval/experiments/edge-decay/types.d.ts +10 -0
  332. package/dist/eval/experiments/edge-decay/types.d.ts.map +1 -0
  333. package/dist/eval/experiments/edge-decay/types.js +9 -0
  334. package/dist/eval/experiments/edge-decay/types.js.map +1 -0
  335. package/dist/eval/experiments/hdbscan-sweep.d.ts +19 -0
  336. package/dist/eval/experiments/hdbscan-sweep.d.ts.map +1 -0
  337. package/dist/eval/experiments/hdbscan-sweep.js +71 -0
  338. package/dist/eval/experiments/hdbscan-sweep.js.map +1 -0
  339. package/dist/eval/experiments/single-model-run.d.ts +54 -0
  340. package/dist/eval/experiments/single-model-run.d.ts.map +1 -0
  341. package/dist/eval/experiments/single-model-run.js +120 -0
  342. package/dist/eval/experiments/single-model-run.js.map +1 -0
  343. package/dist/eval/experiments/thinking-ablation.d.ts +21 -0
  344. package/dist/eval/experiments/thinking-ablation.d.ts.map +1 -0
  345. package/dist/eval/experiments/thinking-ablation.js +68 -0
  346. package/dist/eval/experiments/thinking-ablation.js.map +1 -0
  347. package/dist/eval/experiments/topic-continuity/embedding-classifier.d.ts +55 -0
  348. package/dist/eval/experiments/topic-continuity/embedding-classifier.d.ts.map +1 -0
  349. package/dist/eval/experiments/topic-continuity/embedding-classifier.js +126 -0
  350. package/dist/eval/experiments/topic-continuity/embedding-classifier.js.map +1 -0
  351. package/dist/eval/experiments/topic-continuity/hybrid-classifier.d.ts +68 -0
  352. package/dist/eval/experiments/topic-continuity/hybrid-classifier.d.ts.map +1 -0
  353. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js +175 -0
  354. package/dist/eval/experiments/topic-continuity/hybrid-classifier.js.map +1 -0
  355. package/dist/eval/experiments/topic-continuity/index.d.ts +13 -0
  356. package/dist/eval/experiments/topic-continuity/index.d.ts.map +1 -0
  357. package/dist/eval/experiments/topic-continuity/index.js +17 -0
  358. package/dist/eval/experiments/topic-continuity/index.js.map +1 -0
  359. package/dist/eval/experiments/topic-continuity/labeler.d.ts +42 -0
  360. package/dist/eval/experiments/topic-continuity/labeler.d.ts.map +1 -0
  361. package/dist/eval/experiments/topic-continuity/labeler.js +253 -0
  362. package/dist/eval/experiments/topic-continuity/labeler.js.map +1 -0
  363. package/dist/eval/experiments/topic-continuity/lexical-features.d.ts +26 -0
  364. package/dist/eval/experiments/topic-continuity/lexical-features.d.ts.map +1 -0
  365. package/dist/eval/experiments/topic-continuity/lexical-features.js +58 -0
  366. package/dist/eval/experiments/topic-continuity/lexical-features.js.map +1 -0
  367. package/dist/eval/experiments/topic-continuity/run-experiment.d.ts +40 -0
  368. package/dist/eval/experiments/topic-continuity/run-experiment.d.ts.map +1 -0
  369. package/dist/eval/experiments/topic-continuity/run-experiment.js +379 -0
  370. package/dist/eval/experiments/topic-continuity/run-experiment.js.map +1 -0
  371. package/dist/eval/experiments/topic-continuity/types.d.ts +146 -0
  372. package/dist/eval/experiments/topic-continuity/types.d.ts.map +1 -0
  373. package/dist/eval/experiments/topic-continuity/types.js +9 -0
  374. package/dist/eval/experiments/topic-continuity/types.js.map +1 -0
  375. package/dist/eval/experiments/truncation.d.ts +21 -0
  376. package/dist/eval/experiments/truncation.d.ts.map +1 -0
  377. package/dist/eval/experiments/truncation.js +59 -0
  378. package/dist/eval/experiments/truncation.js.map +1 -0
  379. package/dist/eval/experiments/types.d.ts +37 -0
  380. package/dist/eval/experiments/types.d.ts.map +1 -0
  381. package/dist/eval/experiments/types.js +13 -0
  382. package/dist/eval/experiments/types.js.map +1 -0
  383. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts +10 -0
  384. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.d.ts.map +1 -0
  385. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js +229 -0
  386. package/dist/eval/experiments/vector-decay-shapes/curve-shapes-experiment.js.map +1 -0
  387. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts +12 -0
  388. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.d.ts.map +1 -0
  389. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js +316 -0
  390. package/dist/eval/experiments/vector-decay-shapes/graph-range-experiment.js.map +1 -0
  391. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts +19 -0
  392. package/dist/eval/experiments/vector-decay-shapes/hop-decay.d.ts.map +1 -0
  393. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js +127 -0
  394. package/dist/eval/experiments/vector-decay-shapes/hop-decay.js.map +1 -0
  395. package/dist/eval/experiments/vector-decay-shapes/index.d.ts +11 -0
  396. package/dist/eval/experiments/vector-decay-shapes/index.d.ts.map +1 -0
  397. package/dist/eval/experiments/vector-decay-shapes/index.js +11 -0
  398. package/dist/eval/experiments/vector-decay-shapes/index.js.map +1 -0
  399. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts +14 -0
  400. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.d.ts.map +1 -0
  401. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js +274 -0
  402. package/dist/eval/experiments/vector-decay-shapes/path-traversal-experiment.js.map +1 -0
  403. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts +36 -0
  404. package/dist/eval/experiments/vector-decay-shapes/presets.d.ts.map +1 -0
  405. package/dist/eval/experiments/vector-decay-shapes/presets.js +157 -0
  406. package/dist/eval/experiments/vector-decay-shapes/presets.js.map +1 -0
  407. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts +20 -0
  408. package/dist/eval/experiments/vector-decay-shapes/run-experiment.d.ts.map +1 -0
  409. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js +504 -0
  410. package/dist/eval/experiments/vector-decay-shapes/run-experiment.js.map +1 -0
  411. package/dist/eval/experiments/vector-decay-shapes/types.d.ts +111 -0
  412. package/dist/eval/experiments/vector-decay-shapes/types.d.ts.map +1 -0
  413. package/dist/eval/experiments/vector-decay-shapes/types.js +15 -0
  414. package/dist/eval/experiments/vector-decay-shapes/types.js.map +1 -0
  415. package/dist/eval/experiments/vector-decay-sweep/index.d.ts +7 -0
  416. package/dist/eval/experiments/vector-decay-sweep/index.d.ts.map +1 -0
  417. package/dist/eval/experiments/vector-decay-sweep/index.js +7 -0
  418. package/dist/eval/experiments/vector-decay-sweep/index.js.map +1 -0
  419. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts +30 -0
  420. package/dist/eval/experiments/vector-decay-sweep/run-sweep.d.ts.map +1 -0
  421. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js +378 -0
  422. package/dist/eval/experiments/vector-decay-sweep/run-sweep.js.map +1 -0
  423. package/dist/eval/experiments/vector-decay-sweep/types.d.ts +109 -0
  424. package/dist/eval/experiments/vector-decay-sweep/types.d.ts.map +1 -0
  425. package/dist/eval/experiments/vector-decay-sweep/types.js +16 -0
  426. package/dist/eval/experiments/vector-decay-sweep/types.js.map +1 -0
  427. package/dist/eval/metrics.d.ts +45 -0
  428. package/dist/eval/metrics.d.ts.map +1 -0
  429. package/dist/eval/metrics.js +134 -0
  430. package/dist/eval/metrics.js.map +1 -0
  431. package/dist/hooks/claudemd-generator.d.ts +62 -0
  432. package/dist/hooks/claudemd-generator.d.ts.map +1 -0
  433. package/dist/hooks/claudemd-generator.js +220 -0
  434. package/dist/hooks/claudemd-generator.js.map +1 -0
  435. package/dist/hooks/hook-utils.d.ts +84 -0
  436. package/dist/hooks/hook-utils.d.ts.map +1 -0
  437. package/dist/hooks/hook-utils.js +187 -0
  438. package/dist/hooks/hook-utils.js.map +1 -0
  439. package/dist/hooks/index.d.ts +12 -0
  440. package/dist/hooks/index.d.ts.map +1 -0
  441. package/dist/hooks/index.js +12 -0
  442. package/dist/hooks/index.js.map +1 -0
  443. package/dist/hooks/pre-compact.d.ts +58 -0
  444. package/dist/hooks/pre-compact.d.ts.map +1 -0
  445. package/dist/hooks/pre-compact.js +127 -0
  446. package/dist/hooks/pre-compact.js.map +1 -0
  447. package/dist/hooks/session-start.d.ts +62 -0
  448. package/dist/hooks/session-start.d.ts.map +1 -0
  449. package/dist/hooks/session-start.js +249 -0
  450. package/dist/hooks/session-start.js.map +1 -0
  451. package/dist/index.d.ts +22 -0
  452. package/dist/index.d.ts.map +1 -0
  453. package/dist/index.js +29 -0
  454. package/dist/index.js.map +1 -0
  455. package/dist/ingest/batch-ingest.d.ts +94 -0
  456. package/dist/ingest/batch-ingest.d.ts.map +1 -0
  457. package/dist/ingest/batch-ingest.js +167 -0
  458. package/dist/ingest/batch-ingest.js.map +1 -0
  459. package/dist/ingest/brief-debrief-detector.d.ts +74 -0
  460. package/dist/ingest/brief-debrief-detector.d.ts.map +1 -0
  461. package/dist/ingest/brief-debrief-detector.js +253 -0
  462. package/dist/ingest/brief-debrief-detector.js.map +1 -0
  463. package/dist/ingest/cross-session-linker.d.ts +39 -0
  464. package/dist/ingest/cross-session-linker.d.ts.map +1 -0
  465. package/dist/ingest/cross-session-linker.js +103 -0
  466. package/dist/ingest/cross-session-linker.js.map +1 -0
  467. package/dist/ingest/edge-creator.d.ts +62 -0
  468. package/dist/ingest/edge-creator.d.ts.map +1 -0
  469. package/dist/ingest/edge-creator.js +186 -0
  470. package/dist/ingest/edge-creator.js.map +1 -0
  471. package/dist/ingest/edge-detector.d.ts +37 -0
  472. package/dist/ingest/edge-detector.d.ts.map +1 -0
  473. package/dist/ingest/edge-detector.js +234 -0
  474. package/dist/ingest/edge-detector.js.map +1 -0
  475. package/dist/ingest/index.d.ts +14 -0
  476. package/dist/ingest/index.d.ts.map +1 -0
  477. package/dist/ingest/index.js +14 -0
  478. package/dist/ingest/index.js.map +1 -0
  479. package/dist/ingest/ingest-session.d.ts +83 -0
  480. package/dist/ingest/ingest-session.d.ts.map +1 -0
  481. package/dist/ingest/ingest-session.js +415 -0
  482. package/dist/ingest/ingest-session.js.map +1 -0
  483. package/dist/maintenance/index.d.ts +5 -0
  484. package/dist/maintenance/index.d.ts.map +1 -0
  485. package/dist/maintenance/index.js +5 -0
  486. package/dist/maintenance/index.js.map +1 -0
  487. package/dist/maintenance/scheduler.d.ts +79 -0
  488. package/dist/maintenance/scheduler.d.ts.map +1 -0
  489. package/dist/maintenance/scheduler.js +362 -0
  490. package/dist/maintenance/scheduler.js.map +1 -0
  491. package/dist/maintenance/tasks/cleanup-vectors.d.ts +10 -0
  492. package/dist/maintenance/tasks/cleanup-vectors.d.ts.map +1 -0
  493. package/dist/maintenance/tasks/cleanup-vectors.js +23 -0
  494. package/dist/maintenance/tasks/cleanup-vectors.js.map +1 -0
  495. package/dist/maintenance/tasks/index.d.ts +9 -0
  496. package/dist/maintenance/tasks/index.d.ts.map +1 -0
  497. package/dist/maintenance/tasks/index.js +9 -0
  498. package/dist/maintenance/tasks/index.js.map +1 -0
  499. package/dist/maintenance/tasks/prune-graph.d.ts +12 -0
  500. package/dist/maintenance/tasks/prune-graph.d.ts.map +1 -0
  501. package/dist/maintenance/tasks/prune-graph.js +23 -0
  502. package/dist/maintenance/tasks/prune-graph.js.map +1 -0
  503. package/dist/maintenance/tasks/scan-projects.d.ts +12 -0
  504. package/dist/maintenance/tasks/scan-projects.d.ts.map +1 -0
  505. package/dist/maintenance/tasks/scan-projects.js +31 -0
  506. package/dist/maintenance/tasks/scan-projects.js.map +1 -0
  507. package/dist/maintenance/tasks/update-clusters.d.ts +12 -0
  508. package/dist/maintenance/tasks/update-clusters.d.ts.map +1 -0
  509. package/dist/maintenance/tasks/update-clusters.js +41 -0
  510. package/dist/maintenance/tasks/update-clusters.js.map +1 -0
  511. package/dist/maintenance/tasks/vacuum.d.ts +10 -0
  512. package/dist/maintenance/tasks/vacuum.d.ts.map +1 -0
  513. package/dist/maintenance/tasks/vacuum.js +23 -0
  514. package/dist/maintenance/tasks/vacuum.js.map +1 -0
  515. package/dist/mcp/index.d.ts +7 -0
  516. package/dist/mcp/index.d.ts.map +1 -0
  517. package/dist/mcp/index.js +8 -0
  518. package/dist/mcp/index.js.map +1 -0
  519. package/dist/mcp/server.d.ts +90 -0
  520. package/dist/mcp/server.d.ts.map +1 -0
  521. package/dist/mcp/server.js +395 -0
  522. package/dist/mcp/server.js.map +1 -0
  523. package/dist/mcp/tools.d.ts +52 -0
  524. package/dist/mcp/tools.d.ts.map +1 -0
  525. package/dist/mcp/tools.js +292 -0
  526. package/dist/mcp/tools.js.map +1 -0
  527. package/dist/models/device-detector.d.ts +32 -0
  528. package/dist/models/device-detector.d.ts.map +1 -0
  529. package/dist/models/device-detector.js +123 -0
  530. package/dist/models/device-detector.js.map +1 -0
  531. package/dist/models/embedder.d.ts +60 -0
  532. package/dist/models/embedder.d.ts.map +1 -0
  533. package/dist/models/embedder.js +171 -0
  534. package/dist/models/embedder.js.map +1 -0
  535. package/dist/models/model-registry.d.ts +25 -0
  536. package/dist/models/model-registry.d.ts.map +1 -0
  537. package/dist/models/model-registry.js +56 -0
  538. package/dist/models/model-registry.js.map +1 -0
  539. package/dist/parser/chunker.d.ts +74 -0
  540. package/dist/parser/chunker.d.ts.map +1 -0
  541. package/dist/parser/chunker.js +330 -0
  542. package/dist/parser/chunker.js.map +1 -0
  543. package/dist/parser/session-reader.d.ts +75 -0
  544. package/dist/parser/session-reader.d.ts.map +1 -0
  545. package/dist/parser/session-reader.js +198 -0
  546. package/dist/parser/session-reader.js.map +1 -0
  547. package/dist/parser/turn-assembler.d.ts +18 -0
  548. package/dist/parser/turn-assembler.d.ts.map +1 -0
  549. package/dist/parser/turn-assembler.js +150 -0
  550. package/dist/parser/turn-assembler.js.map +1 -0
  551. package/dist/parser/types.d.ts +124 -0
  552. package/dist/parser/types.d.ts.map +1 -0
  553. package/dist/parser/types.js +8 -0
  554. package/dist/parser/types.js.map +1 -0
  555. package/dist/report/reporter.d.ts +18 -0
  556. package/dist/report/reporter.d.ts.map +1 -0
  557. package/dist/report/reporter.js +121 -0
  558. package/dist/report/reporter.js.map +1 -0
  559. package/dist/retrieval/cluster-expander.d.ts +30 -0
  560. package/dist/retrieval/cluster-expander.d.ts.map +1 -0
  561. package/dist/retrieval/cluster-expander.js +87 -0
  562. package/dist/retrieval/cluster-expander.js.map +1 -0
  563. package/dist/retrieval/context-assembler.d.ts +89 -0
  564. package/dist/retrieval/context-assembler.d.ts.map +1 -0
  565. package/dist/retrieval/context-assembler.js +313 -0
  566. package/dist/retrieval/context-assembler.js.map +1 -0
  567. package/dist/retrieval/index.d.ts +12 -0
  568. package/dist/retrieval/index.d.ts.map +1 -0
  569. package/dist/retrieval/index.js +12 -0
  570. package/dist/retrieval/index.js.map +1 -0
  571. package/dist/retrieval/rrf.d.ts +25 -0
  572. package/dist/retrieval/rrf.d.ts.map +1 -0
  573. package/dist/retrieval/rrf.js +56 -0
  574. package/dist/retrieval/rrf.js.map +1 -0
  575. package/dist/retrieval/session-reconstructor.d.ts +79 -0
  576. package/dist/retrieval/session-reconstructor.d.ts.map +1 -0
  577. package/dist/retrieval/session-reconstructor.js +173 -0
  578. package/dist/retrieval/session-reconstructor.js.map +1 -0
  579. package/dist/retrieval/traverser.d.ts +66 -0
  580. package/dist/retrieval/traverser.d.ts.map +1 -0
  581. package/dist/retrieval/traverser.js +160 -0
  582. package/dist/retrieval/traverser.js.map +1 -0
  583. package/dist/storage/archive.d.ts +81 -0
  584. package/dist/storage/archive.d.ts.map +1 -0
  585. package/dist/storage/archive.js +204 -0
  586. package/dist/storage/archive.js.map +1 -0
  587. package/dist/storage/audit-log.d.ts +29 -0
  588. package/dist/storage/audit-log.d.ts.map +1 -0
  589. package/dist/storage/audit-log.js +69 -0
  590. package/dist/storage/audit-log.js.map +1 -0
  591. package/dist/storage/checkpoint-store.d.ts +38 -0
  592. package/dist/storage/checkpoint-store.d.ts.map +1 -0
  593. package/dist/storage/checkpoint-store.js +76 -0
  594. package/dist/storage/checkpoint-store.js.map +1 -0
  595. package/dist/storage/chunk-store.d.ts +111 -0
  596. package/dist/storage/chunk-store.d.ts.map +1 -0
  597. package/dist/storage/chunk-store.js +298 -0
  598. package/dist/storage/chunk-store.js.map +1 -0
  599. package/dist/storage/clock-store.d.ts +80 -0
  600. package/dist/storage/clock-store.d.ts.map +1 -0
  601. package/dist/storage/clock-store.js +155 -0
  602. package/dist/storage/clock-store.js.map +1 -0
  603. package/dist/storage/cluster-store.d.ts +63 -0
  604. package/dist/storage/cluster-store.d.ts.map +1 -0
  605. package/dist/storage/cluster-store.js +219 -0
  606. package/dist/storage/cluster-store.js.map +1 -0
  607. package/dist/storage/db.d.ts +57 -0
  608. package/dist/storage/db.d.ts.map +1 -0
  609. package/dist/storage/db.js +249 -0
  610. package/dist/storage/db.js.map +1 -0
  611. package/dist/storage/decay.d.ts +125 -0
  612. package/dist/storage/decay.d.ts.map +1 -0
  613. package/dist/storage/decay.js +276 -0
  614. package/dist/storage/decay.js.map +1 -0
  615. package/dist/storage/edge-store.d.ts +75 -0
  616. package/dist/storage/edge-store.d.ts.map +1 -0
  617. package/dist/storage/edge-store.js +259 -0
  618. package/dist/storage/edge-store.js.map +1 -0
  619. package/dist/storage/embedding-cache.d.ts +51 -0
  620. package/dist/storage/embedding-cache.d.ts.map +1 -0
  621. package/dist/storage/embedding-cache.js +155 -0
  622. package/dist/storage/embedding-cache.js.map +1 -0
  623. package/dist/storage/encryption.d.ts +55 -0
  624. package/dist/storage/encryption.d.ts.map +1 -0
  625. package/dist/storage/encryption.js +130 -0
  626. package/dist/storage/encryption.js.map +1 -0
  627. package/dist/storage/index.d.ts +15 -0
  628. package/dist/storage/index.d.ts.map +1 -0
  629. package/dist/storage/index.js +20 -0
  630. package/dist/storage/index.js.map +1 -0
  631. package/dist/storage/keyword-store.d.ts +25 -0
  632. package/dist/storage/keyword-store.d.ts.map +1 -0
  633. package/dist/storage/keyword-store.js +104 -0
  634. package/dist/storage/keyword-store.js.map +1 -0
  635. package/dist/storage/migrations.d.ts +12 -0
  636. package/dist/storage/migrations.d.ts.map +1 -0
  637. package/dist/storage/migrations.js +345 -0
  638. package/dist/storage/migrations.js.map +1 -0
  639. package/dist/storage/pruner.d.ts +111 -0
  640. package/dist/storage/pruner.d.ts.map +1 -0
  641. package/dist/storage/pruner.js +280 -0
  642. package/dist/storage/pruner.js.map +1 -0
  643. package/dist/storage/schema-loader.d.ts +18 -0
  644. package/dist/storage/schema-loader.d.ts.map +1 -0
  645. package/dist/storage/schema-loader.js +62 -0
  646. package/dist/storage/schema-loader.js.map +1 -0
  647. package/dist/storage/schema.sql +133 -0
  648. package/dist/storage/types.d.ts +278 -0
  649. package/dist/storage/types.d.ts.map +1 -0
  650. package/dist/storage/types.js +14 -0
  651. package/dist/storage/types.js.map +1 -0
  652. package/dist/storage/vector-store.d.ts +213 -0
  653. package/dist/storage/vector-store.d.ts.map +1 -0
  654. package/dist/storage/vector-store.js +440 -0
  655. package/dist/storage/vector-store.js.map +1 -0
  656. package/dist/temporal/clock-compactor.d.ts +65 -0
  657. package/dist/temporal/clock-compactor.d.ts.map +1 -0
  658. package/dist/temporal/clock-compactor.js +157 -0
  659. package/dist/temporal/clock-compactor.js.map +1 -0
  660. package/dist/temporal/index.d.ts +6 -0
  661. package/dist/temporal/index.d.ts.map +1 -0
  662. package/dist/temporal/index.js +6 -0
  663. package/dist/temporal/index.js.map +1 -0
  664. package/dist/temporal/vector-clock.d.ts +143 -0
  665. package/dist/temporal/vector-clock.d.ts.map +1 -0
  666. package/dist/temporal/vector-clock.js +231 -0
  667. package/dist/temporal/vector-clock.js.map +1 -0
  668. package/dist/utils/angular-distance.d.ts +31 -0
  669. package/dist/utils/angular-distance.d.ts.map +1 -0
  670. package/dist/utils/angular-distance.js +61 -0
  671. package/dist/utils/angular-distance.js.map +1 -0
  672. package/dist/utils/array-utils.d.ts +28 -0
  673. package/dist/utils/array-utils.d.ts.map +1 -0
  674. package/dist/utils/array-utils.js +67 -0
  675. package/dist/utils/array-utils.js.map +1 -0
  676. package/dist/utils/embedding-utils.d.ts +25 -0
  677. package/dist/utils/embedding-utils.d.ts.map +1 -0
  678. package/dist/utils/embedding-utils.js +30 -0
  679. package/dist/utils/embedding-utils.js.map +1 -0
  680. package/dist/utils/errors.d.ts +143 -0
  681. package/dist/utils/errors.d.ts.map +1 -0
  682. package/dist/utils/errors.js +220 -0
  683. package/dist/utils/errors.js.map +1 -0
  684. package/dist/utils/keychain.d.ts +43 -0
  685. package/dist/utils/keychain.d.ts.map +1 -0
  686. package/dist/utils/keychain.js +82 -0
  687. package/dist/utils/keychain.js.map +1 -0
  688. package/dist/utils/logger.d.ts +50 -0
  689. package/dist/utils/logger.d.ts.map +1 -0
  690. package/dist/utils/logger.js +104 -0
  691. package/dist/utils/logger.js.map +1 -0
  692. package/dist/utils/secret-store.d.ts +110 -0
  693. package/dist/utils/secret-store.d.ts.map +1 -0
  694. package/dist/utils/secret-store.js +340 -0
  695. package/dist/utils/secret-store.js.map +1 -0
  696. package/dist/utils/secure-buffer.d.ts +66 -0
  697. package/dist/utils/secure-buffer.d.ts.map +1 -0
  698. package/dist/utils/secure-buffer.js +104 -0
  699. package/dist/utils/secure-buffer.js.map +1 -0
  700. package/dist/utils/token-counter.d.ts +13 -0
  701. package/dist/utils/token-counter.d.ts.map +1 -0
  702. package/dist/utils/token-counter.js +18 -0
  703. package/dist/utils/token-counter.js.map +1 -0
  704. package/package.json +110 -0
  705. package/src/dashboard/client/package-lock.json +3045 -0
  706. package/src/dashboard/client/package.json +30 -0
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2024-2026 Entrolution
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19
+ OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,332 @@
1
+ # Causantic
2
+
3
+ [![npm version](https://img.shields.io/npm/v/causantic)](https://www.npmjs.com/package/causantic)
4
+ [![CI](https://github.com/Entrolution/causantic/actions/workflows/ci.yml/badge.svg)](https://github.com/Entrolution/causantic/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](https://nodejs.org)
7
+ [![TypeScript](https://img.shields.io/badge/TypeScript-native-blue)](https://www.typescriptlang.org/)
8
+
9
+ **Long-term memory for Claude Code — local-first, graph-augmented, self-benchmarking.**
10
+
11
+ No cloud. No API keys. No data leaves your machine. Runs entirely on your hardware with optional per-chunk encryption.
12
+
13
+ <p align="center">
14
+ <strong>4.65× the relevant context</strong> vs semantic embedding alone<br/>
15
+ <sub>Median 4.54× across 492 queries · Range 3.60× – 5.87×</sub>
16
+ </p>
17
+
18
+ ## Quick Start
19
+
20
+ ```bash
21
+ # Install
22
+ npm install causantic
23
+
24
+ # Initialize (creates dirs, configures MCP, offers to import sessions)
25
+ npx causantic init
26
+
27
+ # Query memory
28
+ npx causantic recall "authentication flow"
29
+
30
+ # Launch the dashboard
31
+ npx causantic dashboard
32
+ ```
33
+
34
+ ## Who Is This For?
35
+
36
+ Developers using Claude Code who want their AI assistant to **remember across sessions**. When you switch projects, return after a weekend, or need context from three sessions ago, Causantic retrieves the right history automatically.
37
+
38
+ ## Why Causantic?
39
+
40
+ Most AI memory systems use vector embeddings for similarity search. Causantic does too — but adds a **causal graph** that tracks *relationships* between memory chunks, **BM25 keyword search** for exact matches, and **HDBSCAN clustering** for topic expansion. The result:
41
+
42
+ | | Vector Search Only | Causantic |
43
+ |---|---|---|
44
+ | **Finds similar content** | Yes | Yes |
45
+ | **Finds lexically relevant content** | No | Yes (BM25 keyword search) |
46
+ | **Finds related context** | No | Yes (causal edges) |
47
+ | **Finds topically related context** | No | Yes (cluster expansion) |
48
+ | **Temporal awareness** | Wall-clock decay | Logical hop decay |
49
+ | **Context retrieval** | 1× | **4.65×** |
50
+ | **Handles project switches** | Breaks continuity | Preserves causality |
51
+ | **Bidirectional queries** | Forward only | Backward + Forward |
52
+
53
+ ### How It Compares
54
+
55
+ | System | Local-First | Temporal Decay | Graph Structure | Self-Benchmarking | Hop-Based Distance |
56
+ |--------|:-----------:|:--------------:|:--------------:|:-----------------:|:------------------:|
57
+ | **Causantic** | **Yes** | **Hop-based** | **9-type causal** | **Yes** | **Yes** |
58
+ | Mem0 | No (Cloud) | None | Paid add-on | No | No |
59
+ | Cognee | Self-hostable | None | Triplet extraction | No | No |
60
+ | Letta/MemGPT | Self-hostable | Summarization | None | No | No |
61
+ | Zep | Enterprise | Bi-temporal | Temporal KG | No | No |
62
+ | GraphRAG | Self-hostable | Static corpus | Hierarchical | No | No |
63
+
64
+ See [Landscape Analysis](docs/research/approach/landscape-analysis.md) for detailed per-system analysis.
65
+
66
+ ## Key Differentiators
67
+
68
+ **1. Local-First with Encryption**
69
+ All data stays on your machine. Optional per-chunk encryption (ChaCha20-Poly1305) with keys stored in your system keychain. No cloud dependency.
70
+
71
+ **2. Hybrid BM25 + Vector Search**
72
+ Vector search finds chunks that *look similar*. BM25 keyword search finds chunks with *exact lexical matches* — function names, error codes, CLI flags. Both run in parallel and fuse via Reciprocal Rank Fusion (RRF).
73
+
74
+ **3. Causal Graphs with 9 Evidence-Weighted Edge Types**
75
+ Chunks are connected by file-path references, code entities, explicit backreferences, error fragments, topic continuity, and more. Each edge type has an empirically determined weight. The graph finds chunks that are *causally related* — not just similar.
76
+
77
+ **4. Hop-Based Decay with Direction-Specific Curves**
78
+ Returning to a project after a weekend shouldn't make yesterday's work seem "old." Distance is measured in logical D-T-D hops, not elapsed time. Backward edges (dies@10 hops, 1.35× MRR vs exponential) and forward edges (5-hop hold, dies@20, 3.71× MRR) use different decay profiles.
79
+
80
+ **5. HDBSCAN Cluster-Guided Expansion**
81
+ Topic clusters group semantically related chunks. During retrieval, results expand through cluster siblings — surfacing context that neither vector nor keyword search found independently. Native TypeScript implementation (130× faster than hdbscan-ts).
82
+
83
+ **6. Self-Benchmarking Suite**
84
+ Measure how well your memory system is working with built-in benchmarks. Health, retrieval quality, graph value, and latency — scored and tracked over time with specific tuning recommendations.
85
+
86
+ ## Architecture
87
+
88
+ ```
89
+ ┌─────────────────────────────────────────────────────────────────┐
90
+ │ Claude Code Session │
91
+ └─────────────────────────────┬───────────────────────────────────┘
92
+
93
+
94
+ ┌─────────────────────────────────────────────────────────────────┐
95
+ │ Hook System │
96
+ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
97
+ │ │session-start │ │ pre-compact │ │ claudemd-generator │ │
98
+ │ └──────────────┘ └──────────────┘ └──────────────────────┘ │
99
+ └─────────────────────────────┬───────────────────────────────────┘
100
+
101
+
102
+ ┌─────────────────────────────────────────────────────────────────┐
103
+ │ Ingestion Pipeline │
104
+ │ ┌──────────┐ ┌──────────┐ ┌────────────┐ ┌──────────────┐ │
105
+ │ │ Parser │→ │ Chunker │→ │ Embedder │→ │ Edge Creator │ │
106
+ │ └──────────┘ └──────────┘ └────────────┘ └──────────────┘ │
107
+ └─────────────────────────────┬───────────────────────────────────┘
108
+
109
+
110
+ ┌─────────────────────────────────────────────────────────────────┐
111
+ │ Storage Layer │
112
+ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
113
+ │ │ SQLite │ │ LanceDB │ │ Vector Clocks │ │
114
+ │ │ (chunks, │ │ (embeddings) │ │ (logical time) │ │
115
+ │ │ edges, FTS5)│ │ │ │ │ │
116
+ │ └──────────────┘ └──────────────┘ └──────────────────────┘ │
117
+ └─────────────────────────────┬───────────────────────────────────┘
118
+
119
+
120
+ ┌─────────────────────────────────────────────────────────────────┐
121
+ │ Retrieval System │
122
+ │ ┌──────────┐ ┌──────────┐ │
123
+ │ │ Vector │ │ Keyword │ (parallel) │
124
+ │ │ Search │ │ (BM25) │ │
125
+ │ └────┬─────┘ └────┬─────┘ │
126
+ │ └──────┬──────┘ │
127
+ │ ▼ │
128
+ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
129
+ │ │ RRF Fusion │→ │ Cluster │→ │ Graph Traversal │ │
130
+ │ │ │ │ Expansion │ │ + Context Assembly │ │
131
+ │ └──────────────┘ └──────────────┘ └──────────────────────┘ │
132
+ └─────────────────────────────┬───────────────────────────────────┘
133
+
134
+
135
+ ┌─────────────────────────────────────────────────────────────────┐
136
+ │ MCP Server │
137
+ │ ┌────────┐ ┌────────┐ ┌─────────┐ ┌───────────┐ ┌───────────┐ │
138
+ │ │ recall │ │explain │ │ predict │ │list- │ │list- │ │
139
+ │ │ │ │ │ │ │ │projects │ │sessions │ │
140
+ │ └────────┘ └────────┘ └─────────┘ └───────────┘ └───────────┘ │
141
+ │ ┌─────────────┐ │
142
+ │ │ reconstruct │ │
143
+ │ └─────────────┘ │
144
+ └─────────────────────────────┬───────────────────────────────────┘
145
+
146
+
147
+ ┌─────────────────────────────────────────────────────────────────┐
148
+ │ Web Dashboard │
149
+ │ ┌──────────┐ ┌────────┐ ┌───────────┐ ┌──────────┐ ┌────────┐ │
150
+ │ │ Overview │ │ Search │ │ Graph │ │ Clusters │ │Projects│ │
151
+ │ │ │ │ │ │ Explorer │ │ │ │ │ │
152
+ │ └──────────┘ └────────┘ └───────────┘ └──────────┘ └────────┘ │
153
+ └─────────────────────────────────────────────────────────────────┘
154
+ ```
155
+
156
+ ## MCP Tools
157
+
158
+ The MCP server exposes six tools:
159
+
160
+ | Tool | Description |
161
+ |------|-------------|
162
+ | `recall` | Semantic search with graph-augmented retrieval. Supports `range` (short/long) and `project` filtering. |
163
+ | `explain` | Long-range historical context for complex questions. Default: long-range retrieval. |
164
+ | `predict` | Proactive suggestions based on current context. |
165
+ | `list-projects` | Discover available projects with chunk counts and date ranges. |
166
+ | `list-sessions` | Browse sessions for a project with time filtering. |
167
+ | `reconstruct` | Rebuild session context chronologically — "what did I work on yesterday?" |
168
+
169
+ ### Claude Code Integration
170
+
171
+ Add to your Claude Code MCP configuration:
172
+
173
+ ```json
174
+ {
175
+ "mcpServers": {
176
+ "memory": {
177
+ "command": "npx",
178
+ "args": ["causantic", "serve"]
179
+ }
180
+ }
181
+ }
182
+ ```
183
+
184
+ Or run `npx causantic init` to configure automatically.
185
+
186
+ ## Skills
187
+
188
+ Causantic installs 11 Claude Code slash commands (via `npx causantic init`) for natural-language interaction with memory:
189
+
190
+ | Skill | Description |
191
+ |-------|-------------|
192
+ | `/causantic-recall [query]` | Look up context from past sessions |
193
+ | `/causantic-explain [topic]` | Understand history behind decisions |
194
+ | `/causantic-predict` | Surface relevant past context proactively |
195
+ | `/causantic-resume` | Resume interrupted work — start-of-session briefing |
196
+ | `/causantic-debug [error]` | Search for prior encounters with an error (auto-extracts from conversation if no argument) |
197
+ | `/causantic-context [area]` | Deep dive into a codebase area's history and decisions |
198
+ | `/causantic-crossref [pattern]` | Search across all projects for reusable patterns |
199
+ | `/causantic-retro [scope]` | Retrospective analysis across past sessions |
200
+ | `/causantic-cleanup` | Memory-informed codebase review and cleanup plan |
201
+ | `/causantic-list-projects` | Discover available projects in memory |
202
+ | `/causantic-reconstruct [time]` | Reconstruct session context by time range |
203
+
204
+ Skills are installed to `~/.claude/skills/causantic-*/` and work as slash commands in Claude Code. They orchestrate the MCP tools above with structured prompts tailored to each use case.
205
+
206
+ ## Dashboard
207
+
208
+ Explore your memory visually:
209
+
210
+ ```bash
211
+ npx causantic dashboard
212
+ ```
213
+
214
+ Opens at [http://localhost:3333](http://localhost:3333) with 5 pages: Overview (collection stats), Search (query memory), Graph Explorer (D3.js visualization), Clusters (topic browser), and Projects (per-project breakdowns).
215
+
216
+ See [Dashboard Guide](docs/guides/dashboard.md).
217
+
218
+ ## Benchmarking
219
+
220
+ Measure how well your memory system is working:
221
+
222
+ ```bash
223
+ # Quick health check (~1 second)
224
+ npx causantic benchmark-collection --quick
225
+
226
+ # Standard benchmark (~30 seconds)
227
+ npx causantic benchmark-collection
228
+
229
+ # Full benchmark with graph value and latency (~2-5 minutes)
230
+ npx causantic benchmark-collection --full
231
+ ```
232
+
233
+ Scores health (20%), retrieval quality (35%), graph value (30%), and latency (15%) — with specific tuning recommendations. Track improvements over time with `--history`.
234
+
235
+ See [Benchmarking Guide](docs/guides/benchmarking.md).
236
+
237
+ ## Configuration
238
+
239
+ Create `causantic.config.json` in your project root:
240
+
241
+ ```json
242
+ {
243
+ "$schema": "https://raw.githubusercontent.com/Entrolution/causantic/main/config.schema.json",
244
+ "decay": {
245
+ "backward": {
246
+ "type": "linear",
247
+ "diesAtHops": 10
248
+ },
249
+ "forward": {
250
+ "type": "delayed-linear",
251
+ "holdHops": 5,
252
+ "diesAtHops": 20
253
+ }
254
+ },
255
+ "clustering": {
256
+ "threshold": 0.10,
257
+ "minClusterSize": 4
258
+ }
259
+ }
260
+ ```
261
+
262
+ See [Configuration Reference](docs/reference/configuration.md) for all options.
263
+
264
+ ## Security
265
+
266
+ - **Per-chunk encryption**: ChaCha20-Poly1305 with keys stored in your system keychain
267
+ - **Local-only storage**: SQLite + LanceDB on your filesystem, no cloud sync
268
+ - **Embedding vector protection**: Encrypted vectors prevent semantic reconstruction
269
+
270
+ See [Security Guide](docs/guides/security.md).
271
+
272
+ ## Documentation
273
+
274
+ - [Getting Started](docs/getting-started/installation.md) — Installation and setup
275
+ - [User Guides](docs/guides/) — Dashboard, benchmarking, integration, security, maintenance
276
+ - [CLI Reference](docs/reference/cli-commands.md) — All commands and options
277
+ - [MCP Tools Reference](docs/reference/mcp-tools.md) — Tool schemas and usage
278
+ - [Configuration Reference](docs/reference/configuration.md) — All configuration options
279
+ - [Research Documentation](docs/research/) — Experiment results and design decisions
280
+ - [Design Decision Log](docs/research/decisions.md) — Why things are the way they are
281
+
282
+ ## Research
283
+
284
+ Built on rigorous experimentation across 75 sessions and 492 queries:
285
+
286
+ | Experiment | Result | Comparison |
287
+ |------------|--------|------------|
288
+ | Graph Traversal | **4.65×** context | vs vector-only |
289
+ | Forward Decay | **3.71×** MRR | vs time-based decay |
290
+ | Backward Decay | **1.35×** MRR | vs time-based decay |
291
+ | Topic Detection | 0.998 AUC | near-perfect accuracy |
292
+ | Clustering | F1=0.940 | 100% precision |
293
+ | Thinking Block Removal | +0.063 AUC | embedding quality improvement |
294
+
295
+ See [Research Documentation](docs/research/) for detailed findings, and the [Design Decision Log](docs/research/decisions.md) for the story of how each decision was made.
296
+
297
+ ### The Role of Entropy
298
+
299
+ The name reflects how **discrimination degrades along causal paths** — the same way information diffuses with each causal jump.
300
+
301
+ Chunks close to your query point are sharply ranked: the graph can clearly distinguish what's most relevant. But as traversal moves outward, edge weights multiply — and since each weight is < 1, the products converge toward zero. You progressively lose the ability to discriminate between distant nodes. This is entropy flowing along causal lines.
302
+
303
+ This isn't a limitation — it's the design. The loss of discriminating power:
304
+
305
+ - **Prevents unbounded graph growth**: distant, low-discrimination regions naturally fade rather than accumulating indefinitely
306
+ - **Keeps memory current**: the graph evolves with your usage of Claude — recent causal paths retain sharp discrimination while older paths gracefully compress
307
+ - **Mirrors how relevance actually works**: the further a piece of context is from your current work (in causal hops, not wall-clock time), the less precisely it needs to be ranked
308
+
309
+ The result is **natural causal compression** — a graph that stays focused on what matters without manual pruning or arbitrary cutoffs.
310
+
311
+ See [The Role of Entropy](docs/research/approach/role-of-entropy.md) for the full explanation.
312
+
313
+ ## Maintenance
314
+
315
+ ```bash
316
+ # Run specific maintenance task
317
+ npx causantic maintenance run prune-graph
318
+
319
+ # Check maintenance status
320
+ npx causantic maintenance status
321
+
322
+ # Run as background daemon
323
+ npx causantic maintenance daemon
324
+ ```
325
+
326
+ ## Contributing
327
+
328
+ Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) before submitting PRs.
329
+
330
+ ## Changelog
331
+
332
+ See [CHANGELOG.md](CHANGELOG.md) for version history.
@@ -0,0 +1,254 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/Entrolution/causantic/main/config.schema.json",
4
+ "title": "Causantic Configuration",
5
+ "description": "Configuration schema for Causantic",
6
+ "type": "object",
7
+ "properties": {
8
+ "decay": {
9
+ "type": "object",
10
+ "description": "Temporal decay settings for graph edges",
11
+ "properties": {
12
+ "backward": {
13
+ "type": "object",
14
+ "description": "Decay for backward (historical) edges",
15
+ "properties": {
16
+ "type": {
17
+ "type": "string",
18
+ "enum": ["linear", "exponential", "delayed-linear"],
19
+ "default": "linear",
20
+ "description": "Decay curve type"
21
+ },
22
+ "diesAtHops": {
23
+ "type": "integer",
24
+ "minimum": 1,
25
+ "maximum": 100,
26
+ "default": 10,
27
+ "description": "Number of hops at which weight reaches zero"
28
+ },
29
+ "holdHops": {
30
+ "type": "integer",
31
+ "minimum": 0,
32
+ "maximum": 50,
33
+ "default": 0,
34
+ "description": "Number of hops to hold at full weight (for delayed types)"
35
+ }
36
+ },
37
+ "additionalProperties": false
38
+ },
39
+ "forward": {
40
+ "type": "object",
41
+ "description": "Decay for forward (predictive) edges",
42
+ "properties": {
43
+ "type": {
44
+ "type": "string",
45
+ "enum": ["linear", "exponential", "delayed-linear"],
46
+ "default": "delayed-linear",
47
+ "description": "Decay curve type"
48
+ },
49
+ "diesAtHops": {
50
+ "type": "integer",
51
+ "minimum": 1,
52
+ "maximum": 100,
53
+ "default": 20,
54
+ "description": "Number of hops at which weight reaches zero"
55
+ },
56
+ "holdHops": {
57
+ "type": "integer",
58
+ "minimum": 0,
59
+ "maximum": 50,
60
+ "default": 5,
61
+ "description": "Number of hops to hold at full weight (for delayed types)"
62
+ }
63
+ },
64
+ "additionalProperties": false
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "clustering": {
70
+ "type": "object",
71
+ "description": "HDBSCAN clustering settings",
72
+ "properties": {
73
+ "threshold": {
74
+ "type": "number",
75
+ "minimum": 0.01,
76
+ "maximum": 0.5,
77
+ "default": 0.10,
78
+ "description": "Angular distance threshold for cluster assignment"
79
+ },
80
+ "minClusterSize": {
81
+ "type": "integer",
82
+ "minimum": 2,
83
+ "maximum": 100,
84
+ "default": 4,
85
+ "description": "Minimum points required to form a cluster"
86
+ }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "traversal": {
91
+ "type": "object",
92
+ "description": "Graph traversal settings",
93
+ "properties": {
94
+ "maxDepth": {
95
+ "type": "integer",
96
+ "minimum": 1,
97
+ "maximum": 50,
98
+ "default": 15,
99
+ "description": "Maximum traversal depth from seed nodes"
100
+ },
101
+ "minWeight": {
102
+ "type": "number",
103
+ "minimum": 0,
104
+ "maximum": 1,
105
+ "default": 0.01,
106
+ "description": "Minimum edge weight to continue traversal"
107
+ },
108
+ "directHitBoost": {
109
+ "type": "number",
110
+ "minimum": 0,
111
+ "maximum": 10,
112
+ "default": 1.5,
113
+ "description": "Score multiplier for direct search hits (vector/keyword/cluster)"
114
+ },
115
+ "graphAgreementBoost": {
116
+ "type": "number",
117
+ "minimum": 0,
118
+ "maximum": 10,
119
+ "default": 2.0,
120
+ "description": "Score boost multiplier when a chunk is found by both vector search and graph traversal"
121
+ }
122
+ },
123
+ "additionalProperties": false
124
+ },
125
+ "tokens": {
126
+ "type": "object",
127
+ "description": "Token budget settings",
128
+ "properties": {
129
+ "claudeMdBudget": {
130
+ "type": "integer",
131
+ "minimum": 100,
132
+ "maximum": 10000,
133
+ "default": 500,
134
+ "description": "Token budget for CLAUDE.md memory section"
135
+ },
136
+ "mcpMaxResponse": {
137
+ "type": "integer",
138
+ "minimum": 500,
139
+ "maximum": 50000,
140
+ "default": 2000,
141
+ "description": "Maximum tokens for MCP tool responses"
142
+ }
143
+ },
144
+ "additionalProperties": false
145
+ },
146
+ "storage": {
147
+ "type": "object",
148
+ "description": "Storage paths",
149
+ "properties": {
150
+ "dbPath": {
151
+ "type": "string",
152
+ "default": "~/.causantic/memory.db",
153
+ "description": "Path to SQLite database file (~ expands to home)"
154
+ },
155
+ "vectorPath": {
156
+ "type": "string",
157
+ "default": "~/.causantic/vectors",
158
+ "description": "Path to LanceDB vector store directory"
159
+ }
160
+ },
161
+ "additionalProperties": false
162
+ },
163
+ "llm": {
164
+ "type": "object",
165
+ "description": "LLM settings for optional features",
166
+ "properties": {
167
+ "clusterRefreshModel": {
168
+ "type": "string",
169
+ "default": "claude-3-haiku-20240307",
170
+ "description": "Model to use for cluster description refresh"
171
+ },
172
+ "refreshRateLimitPerMin": {
173
+ "type": "integer",
174
+ "minimum": 1,
175
+ "maximum": 1000,
176
+ "default": 30,
177
+ "description": "Rate limit for LLM refresh calls per minute"
178
+ }
179
+ },
180
+ "additionalProperties": false
181
+ },
182
+ "encryption": {
183
+ "type": "object",
184
+ "description": "Database encryption settings",
185
+ "properties": {
186
+ "enabled": {
187
+ "type": "boolean",
188
+ "default": false,
189
+ "description": "Enable database encryption at rest"
190
+ },
191
+ "cipher": {
192
+ "type": "string",
193
+ "enum": ["chacha20", "sqlcipher"],
194
+ "default": "chacha20",
195
+ "description": "Encryption cipher (chacha20 is 2-3x faster on ARM)"
196
+ },
197
+ "keySource": {
198
+ "type": "string",
199
+ "enum": ["keychain", "env", "prompt"],
200
+ "default": "keychain",
201
+ "description": "Where to get encryption key: keychain (OS secret store), env (CAUSANTIC_DB_KEY), prompt (CLI only)"
202
+ },
203
+ "auditLog": {
204
+ "type": "boolean",
205
+ "default": false,
206
+ "description": "Log database access attempts to ~/.causantic/audit.log"
207
+ }
208
+ },
209
+ "additionalProperties": false
210
+ },
211
+ "vectors": {
212
+ "type": "object",
213
+ "description": "Vector storage settings",
214
+ "properties": {
215
+ "ttlDays": {
216
+ "type": "integer",
217
+ "minimum": 1,
218
+ "maximum": 3650,
219
+ "default": 90,
220
+ "description": "TTL in days for vectors. Vectors accessed within this period are kept."
221
+ }
222
+ },
223
+ "additionalProperties": false
224
+ },
225
+ "embedding": {
226
+ "type": "object",
227
+ "description": "Embedding inference settings",
228
+ "properties": {
229
+ "device": {
230
+ "type": "string",
231
+ "enum": ["auto", "coreml", "cuda", "cpu", "wasm"],
232
+ "default": "auto",
233
+ "description": "Device for embedding inference. 'auto' detects hardware capabilities."
234
+ }
235
+ },
236
+ "additionalProperties": false
237
+ },
238
+ "maintenance": {
239
+ "type": "object",
240
+ "description": "Maintenance schedule settings",
241
+ "properties": {
242
+ "clusterHour": {
243
+ "type": "integer",
244
+ "minimum": 0,
245
+ "maximum": 23,
246
+ "default": 2,
247
+ "description": "Hour of day (0-23) to run reclustering. Prune and cleanup run 1h and 1.5h after."
248
+ }
249
+ },
250
+ "additionalProperties": false
251
+ }
252
+ },
253
+ "additionalProperties": false
254
+ }
@@ -0,0 +1,4 @@
1
+ import type { Command } from '../types.js';
2
+ export declare const exportCommand: Command;
3
+ export declare const importCommand: Command;
4
+ //# sourceMappingURL=archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/archive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,aAAa,EAAE,OAuC3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAsC3B,CAAC"}