@vinaes/succ 1.3.19

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 (781) hide show
  1. package/LICENSE +87 -0
  2. package/README.md +588 -0
  3. package/agents/succ-checkpoint-manager.md +51 -0
  4. package/agents/succ-code-reviewer.md +181 -0
  5. package/agents/succ-context-optimizer.md +83 -0
  6. package/agents/succ-debug.md +224 -0
  7. package/agents/succ-decision-auditor.md +74 -0
  8. package/agents/succ-deep-search.md +41 -0
  9. package/agents/succ-diff-reviewer.md +123 -0
  10. package/agents/succ-explore.md +83 -0
  11. package/agents/succ-general.md +109 -0
  12. package/agents/succ-knowledge-indexer.md +45 -0
  13. package/agents/succ-knowledge-mapper.md +61 -0
  14. package/agents/succ-memory-curator.md +43 -0
  15. package/agents/succ-memory-health-monitor.md +55 -0
  16. package/agents/succ-pattern-detective.md +62 -0
  17. package/agents/succ-plan.md +172 -0
  18. package/agents/succ-quality-improvement-coach.md +63 -0
  19. package/agents/succ-readiness-improver.md +62 -0
  20. package/agents/succ-session-handoff-orchestrator.md +54 -0
  21. package/agents/succ-session-reviewer.md +46 -0
  22. package/agents/succ-style-tracker.md +73 -0
  23. package/dist/cli.d.ts +3 -0
  24. package/dist/cli.d.ts.map +1 -0
  25. package/dist/cli.js +749 -0
  26. package/dist/cli.js.map +1 -0
  27. package/dist/commands/agents-md.d.ts +16 -0
  28. package/dist/commands/agents-md.d.ts.map +1 -0
  29. package/dist/commands/agents-md.js +33 -0
  30. package/dist/commands/agents-md.js.map +1 -0
  31. package/dist/commands/analyze-agents.d.ts +20 -0
  32. package/dist/commands/analyze-agents.d.ts.map +1 -0
  33. package/dist/commands/analyze-agents.js +305 -0
  34. package/dist/commands/analyze-agents.js.map +1 -0
  35. package/dist/commands/analyze-helpers.d.ts +22 -0
  36. package/dist/commands/analyze-helpers.d.ts.map +1 -0
  37. package/dist/commands/analyze-helpers.js +38 -0
  38. package/dist/commands/analyze-helpers.js.map +1 -0
  39. package/dist/commands/analyze-profile.d.ts +53 -0
  40. package/dist/commands/analyze-profile.d.ts.map +1 -0
  41. package/dist/commands/analyze-profile.js +638 -0
  42. package/dist/commands/analyze-profile.js.map +1 -0
  43. package/dist/commands/analyze-recursive.d.ts +20 -0
  44. package/dist/commands/analyze-recursive.d.ts.map +1 -0
  45. package/dist/commands/analyze-recursive.js +326 -0
  46. package/dist/commands/analyze-recursive.js.map +1 -0
  47. package/dist/commands/analyze-utils.d.ts +83 -0
  48. package/dist/commands/analyze-utils.d.ts.map +1 -0
  49. package/dist/commands/analyze-utils.js +541 -0
  50. package/dist/commands/analyze-utils.js.map +1 -0
  51. package/dist/commands/analyze.d.ts +15 -0
  52. package/dist/commands/analyze.d.ts.map +1 -0
  53. package/dist/commands/analyze.js +265 -0
  54. package/dist/commands/analyze.js.map +1 -0
  55. package/dist/commands/backfill.d.ts +22 -0
  56. package/dist/commands/backfill.d.ts.map +1 -0
  57. package/dist/commands/backfill.js +62 -0
  58. package/dist/commands/backfill.js.map +1 -0
  59. package/dist/commands/benchmark-quality.d.ts +18 -0
  60. package/dist/commands/benchmark-quality.d.ts.map +1 -0
  61. package/dist/commands/benchmark-quality.js +316 -0
  62. package/dist/commands/benchmark-quality.js.map +1 -0
  63. package/dist/commands/benchmark-sqlite-vec.d.ts +12 -0
  64. package/dist/commands/benchmark-sqlite-vec.d.ts.map +1 -0
  65. package/dist/commands/benchmark-sqlite-vec.js +281 -0
  66. package/dist/commands/benchmark-sqlite-vec.js.map +1 -0
  67. package/dist/commands/benchmark.d.ts +57 -0
  68. package/dist/commands/benchmark.d.ts.map +1 -0
  69. package/dist/commands/benchmark.js +682 -0
  70. package/dist/commands/benchmark.js.map +1 -0
  71. package/dist/commands/chat.d.ts +14 -0
  72. package/dist/commands/chat.d.ts.map +1 -0
  73. package/dist/commands/chat.js +84 -0
  74. package/dist/commands/chat.js.map +1 -0
  75. package/dist/commands/checkpoint.d.ts +27 -0
  76. package/dist/commands/checkpoint.d.ts.map +1 -0
  77. package/dist/commands/checkpoint.js +181 -0
  78. package/dist/commands/checkpoint.js.map +1 -0
  79. package/dist/commands/clear.d.ts +9 -0
  80. package/dist/commands/clear.d.ts.map +1 -0
  81. package/dist/commands/clear.js +31 -0
  82. package/dist/commands/clear.js.map +1 -0
  83. package/dist/commands/config.d.ts +26 -0
  84. package/dist/commands/config.d.ts.map +1 -0
  85. package/dist/commands/config.js +247 -0
  86. package/dist/commands/config.js.map +1 -0
  87. package/dist/commands/consolidate.d.ts +21 -0
  88. package/dist/commands/consolidate.d.ts.map +1 -0
  89. package/dist/commands/consolidate.js +117 -0
  90. package/dist/commands/consolidate.js.map +1 -0
  91. package/dist/commands/daemon.d.ts +48 -0
  92. package/dist/commands/daemon.d.ts.map +1 -0
  93. package/dist/commands/daemon.js +218 -0
  94. package/dist/commands/daemon.js.map +1 -0
  95. package/dist/commands/embedding.d.ts +26 -0
  96. package/dist/commands/embedding.d.ts.map +1 -0
  97. package/dist/commands/embedding.js +168 -0
  98. package/dist/commands/embedding.js.map +1 -0
  99. package/dist/commands/graph.d.ts +20 -0
  100. package/dist/commands/graph.d.ts.map +1 -0
  101. package/dist/commands/graph.js +128 -0
  102. package/dist/commands/graph.js.map +1 -0
  103. package/dist/commands/index-code.d.ts +23 -0
  104. package/dist/commands/index-code.d.ts.map +1 -0
  105. package/dist/commands/index-code.js +218 -0
  106. package/dist/commands/index-code.js.map +1 -0
  107. package/dist/commands/index.d.ts +23 -0
  108. package/dist/commands/index.d.ts.map +1 -0
  109. package/dist/commands/index.js +217 -0
  110. package/dist/commands/index.js.map +1 -0
  111. package/dist/commands/init-templates.d.ts +21 -0
  112. package/dist/commands/init-templates.d.ts.map +1 -0
  113. package/dist/commands/init-templates.js +487 -0
  114. package/dist/commands/init-templates.js.map +1 -0
  115. package/dist/commands/init.d.ts +10 -0
  116. package/dist/commands/init.d.ts.map +1 -0
  117. package/dist/commands/init.js +865 -0
  118. package/dist/commands/init.js.map +1 -0
  119. package/dist/commands/memories.d.ts +47 -0
  120. package/dist/commands/memories.d.ts.map +1 -0
  121. package/dist/commands/memories.js +597 -0
  122. package/dist/commands/memories.js.map +1 -0
  123. package/dist/commands/migrate.d.ts +19 -0
  124. package/dist/commands/migrate.d.ts.map +1 -0
  125. package/dist/commands/migrate.js +154 -0
  126. package/dist/commands/migrate.js.map +1 -0
  127. package/dist/commands/prd.d.ts +46 -0
  128. package/dist/commands/prd.d.ts.map +1 -0
  129. package/dist/commands/prd.js +378 -0
  130. package/dist/commands/prd.js.map +1 -0
  131. package/dist/commands/precompute-context.d.ts +11 -0
  132. package/dist/commands/precompute-context.d.ts.map +1 -0
  133. package/dist/commands/precompute-context.js +12 -0
  134. package/dist/commands/precompute-context.js.map +1 -0
  135. package/dist/commands/progress.d.ts +16 -0
  136. package/dist/commands/progress.d.ts.map +1 -0
  137. package/dist/commands/progress.js +38 -0
  138. package/dist/commands/progress.js.map +1 -0
  139. package/dist/commands/reindex.d.ts +17 -0
  140. package/dist/commands/reindex.d.ts.map +1 -0
  141. package/dist/commands/reindex.js +83 -0
  142. package/dist/commands/reindex.js.map +1 -0
  143. package/dist/commands/retention.d.ts +19 -0
  144. package/dist/commands/retention.d.ts.map +1 -0
  145. package/dist/commands/retention.js +162 -0
  146. package/dist/commands/retention.js.map +1 -0
  147. package/dist/commands/score.d.ts +10 -0
  148. package/dist/commands/score.d.ts.map +1 -0
  149. package/dist/commands/score.js +28 -0
  150. package/dist/commands/score.js.map +1 -0
  151. package/dist/commands/search.d.ts +7 -0
  152. package/dist/commands/search.d.ts.map +1 -0
  153. package/dist/commands/search.js +89 -0
  154. package/dist/commands/search.js.map +1 -0
  155. package/dist/commands/session-summary.d.ts +15 -0
  156. package/dist/commands/session-summary.d.ts.map +1 -0
  157. package/dist/commands/session-summary.js +16 -0
  158. package/dist/commands/session-summary.js.map +1 -0
  159. package/dist/commands/setup.d.ts +6 -0
  160. package/dist/commands/setup.d.ts.map +1 -0
  161. package/dist/commands/setup.js +222 -0
  162. package/dist/commands/setup.js.map +1 -0
  163. package/dist/commands/soul.d.ts +9 -0
  164. package/dist/commands/soul.d.ts.map +1 -0
  165. package/dist/commands/soul.js +256 -0
  166. package/dist/commands/soul.js.map +1 -0
  167. package/dist/commands/stats.d.ts +18 -0
  168. package/dist/commands/stats.d.ts.map +1 -0
  169. package/dist/commands/stats.js +138 -0
  170. package/dist/commands/stats.js.map +1 -0
  171. package/dist/commands/status.d.ts +2 -0
  172. package/dist/commands/status.d.ts.map +1 -0
  173. package/dist/commands/status.js +145 -0
  174. package/dist/commands/status.js.map +1 -0
  175. package/dist/commands/train-bpe.d.ts +8 -0
  176. package/dist/commands/train-bpe.d.ts.map +1 -0
  177. package/dist/commands/train-bpe.js +35 -0
  178. package/dist/commands/train-bpe.js.map +1 -0
  179. package/dist/commands/watch.d.ts +22 -0
  180. package/dist/commands/watch.d.ts.map +1 -0
  181. package/dist/commands/watch.js +171 -0
  182. package/dist/commands/watch.js.map +1 -0
  183. package/dist/daemon/analyzer.d.ts +54 -0
  184. package/dist/daemon/analyzer.d.ts.map +1 -0
  185. package/dist/daemon/analyzer.js +362 -0
  186. package/dist/daemon/analyzer.js.map +1 -0
  187. package/dist/daemon/client.d.ts +87 -0
  188. package/dist/daemon/client.d.ts.map +1 -0
  189. package/dist/daemon/client.js +356 -0
  190. package/dist/daemon/client.js.map +1 -0
  191. package/dist/daemon/index.d.ts +12 -0
  192. package/dist/daemon/index.d.ts.map +1 -0
  193. package/dist/daemon/index.js +12 -0
  194. package/dist/daemon/index.js.map +1 -0
  195. package/dist/daemon/service.d.ts +51 -0
  196. package/dist/daemon/service.d.ts.map +1 -0
  197. package/dist/daemon/service.js +1203 -0
  198. package/dist/daemon/service.js.map +1 -0
  199. package/dist/daemon/session-processor.d.ts +85 -0
  200. package/dist/daemon/session-processor.d.ts.map +1 -0
  201. package/dist/daemon/session-processor.js +571 -0
  202. package/dist/daemon/session-processor.js.map +1 -0
  203. package/dist/daemon/sessions.d.ts +62 -0
  204. package/dist/daemon/sessions.d.ts.map +1 -0
  205. package/dist/daemon/sessions.js +192 -0
  206. package/dist/daemon/sessions.js.map +1 -0
  207. package/dist/daemon/watcher.d.ts +52 -0
  208. package/dist/daemon/watcher.d.ts.map +1 -0
  209. package/dist/daemon/watcher.js +363 -0
  210. package/dist/daemon/watcher.js.map +1 -0
  211. package/dist/lib/agents-md-generator.d.ts +33 -0
  212. package/dist/lib/agents-md-generator.d.ts.map +1 -0
  213. package/dist/lib/agents-md-generator.js +156 -0
  214. package/dist/lib/agents-md-generator.js.map +1 -0
  215. package/dist/lib/ai-readiness.d.ts +132 -0
  216. package/dist/lib/ai-readiness.d.ts.map +1 -0
  217. package/dist/lib/ai-readiness.js +702 -0
  218. package/dist/lib/ai-readiness.js.map +1 -0
  219. package/dist/lib/analyze-state.d.ts +34 -0
  220. package/dist/lib/analyze-state.d.ts.map +1 -0
  221. package/dist/lib/analyze-state.js +106 -0
  222. package/dist/lib/analyze-state.js.map +1 -0
  223. package/dist/lib/benchmark.d.ts +250 -0
  224. package/dist/lib/benchmark.d.ts.map +1 -0
  225. package/dist/lib/benchmark.js +778 -0
  226. package/dist/lib/benchmark.js.map +1 -0
  227. package/dist/lib/bm25.d.ts +114 -0
  228. package/dist/lib/bm25.d.ts.map +1 -0
  229. package/dist/lib/bm25.js +727 -0
  230. package/dist/lib/bm25.js.map +1 -0
  231. package/dist/lib/bpe.d.ts +70 -0
  232. package/dist/lib/bpe.d.ts.map +1 -0
  233. package/dist/lib/bpe.js +270 -0
  234. package/dist/lib/bpe.js.map +1 -0
  235. package/dist/lib/checkpoint.d.ts +124 -0
  236. package/dist/lib/checkpoint.d.ts.map +1 -0
  237. package/dist/lib/checkpoint.js +321 -0
  238. package/dist/lib/checkpoint.js.map +1 -0
  239. package/dist/lib/chunker.d.ts +47 -0
  240. package/dist/lib/chunker.d.ts.map +1 -0
  241. package/dist/lib/chunker.js +358 -0
  242. package/dist/lib/chunker.js.map +1 -0
  243. package/dist/lib/claude-ws-transport.d.ts +76 -0
  244. package/dist/lib/claude-ws-transport.d.ts.map +1 -0
  245. package/dist/lib/claude-ws-transport.js +487 -0
  246. package/dist/lib/claude-ws-transport.js.map +1 -0
  247. package/dist/lib/compact-briefing.d.ts +22 -0
  248. package/dist/lib/compact-briefing.d.ts.map +1 -0
  249. package/dist/lib/compact-briefing.js +180 -0
  250. package/dist/lib/compact-briefing.js.map +1 -0
  251. package/dist/lib/config-defaults.d.ts +41 -0
  252. package/dist/lib/config-defaults.d.ts.map +1 -0
  253. package/dist/lib/config-defaults.js +99 -0
  254. package/dist/lib/config-defaults.js.map +1 -0
  255. package/dist/lib/config-display.d.ts +16 -0
  256. package/dist/lib/config-display.d.ts.map +1 -0
  257. package/dist/lib/config-display.js +408 -0
  258. package/dist/lib/config-display.js.map +1 -0
  259. package/dist/lib/config-types.d.ts +601 -0
  260. package/dist/lib/config-types.d.ts.map +1 -0
  261. package/dist/lib/config-types.js +7 -0
  262. package/dist/lib/config-types.js.map +1 -0
  263. package/dist/lib/config-validation.d.ts +19 -0
  264. package/dist/lib/config-validation.d.ts.map +1 -0
  265. package/dist/lib/config-validation.js +136 -0
  266. package/dist/lib/config-validation.js.map +1 -0
  267. package/dist/lib/config.d.ts +143 -0
  268. package/dist/lib/config.d.ts.map +1 -0
  269. package/dist/lib/config.js +689 -0
  270. package/dist/lib/config.js.map +1 -0
  271. package/dist/lib/consolidate.d.ts +115 -0
  272. package/dist/lib/consolidate.d.ts.map +1 -0
  273. package/dist/lib/consolidate.js +600 -0
  274. package/dist/lib/consolidate.js.map +1 -0
  275. package/dist/lib/db/bm25-indexes.d.ts +58 -0
  276. package/dist/lib/db/bm25-indexes.d.ts.map +1 -0
  277. package/dist/lib/db/bm25-indexes.js +333 -0
  278. package/dist/lib/db/bm25-indexes.js.map +1 -0
  279. package/dist/lib/db/bpe.d.ts +18 -0
  280. package/dist/lib/db/bpe.d.ts.map +1 -0
  281. package/dist/lib/db/bpe.js +44 -0
  282. package/dist/lib/db/bpe.js.map +1 -0
  283. package/dist/lib/db/connection.d.ts +47 -0
  284. package/dist/lib/db/connection.d.ts.map +1 -0
  285. package/dist/lib/db/connection.js +114 -0
  286. package/dist/lib/db/connection.js.map +1 -0
  287. package/dist/lib/db/documents.d.ts +58 -0
  288. package/dist/lib/db/documents.d.ts.map +1 -0
  289. package/dist/lib/db/documents.js +374 -0
  290. package/dist/lib/db/documents.js.map +1 -0
  291. package/dist/lib/db/file-hash.d.ts +26 -0
  292. package/dist/lib/db/file-hash.d.ts.map +1 -0
  293. package/dist/lib/db/file-hash.js +56 -0
  294. package/dist/lib/db/file-hash.js.map +1 -0
  295. package/dist/lib/db/global-memories.d.ts +62 -0
  296. package/dist/lib/db/global-memories.d.ts.map +1 -0
  297. package/dist/lib/db/global-memories.js +173 -0
  298. package/dist/lib/db/global-memories.js.map +1 -0
  299. package/dist/lib/db/graph.d.ts +163 -0
  300. package/dist/lib/db/graph.d.ts.map +1 -0
  301. package/dist/lib/db/graph.js +488 -0
  302. package/dist/lib/db/graph.js.map +1 -0
  303. package/dist/lib/db/helpers.d.ts +13 -0
  304. package/dist/lib/db/helpers.d.ts.map +1 -0
  305. package/dist/lib/db/helpers.js +21 -0
  306. package/dist/lib/db/helpers.js.map +1 -0
  307. package/dist/lib/db/hybrid-search.d.ts +64 -0
  308. package/dist/lib/db/hybrid-search.d.ts.map +1 -0
  309. package/dist/lib/db/hybrid-search.js +549 -0
  310. package/dist/lib/db/hybrid-search.js.map +1 -0
  311. package/dist/lib/db/index.d.ts +23 -0
  312. package/dist/lib/db/index.d.ts.map +1 -0
  313. package/dist/lib/db/index.js +23 -0
  314. package/dist/lib/db/index.js.map +1 -0
  315. package/dist/lib/db/memories.d.ts +174 -0
  316. package/dist/lib/db/memories.d.ts.map +1 -0
  317. package/dist/lib/db/memories.js +866 -0
  318. package/dist/lib/db/memories.js.map +1 -0
  319. package/dist/lib/db/retention.d.ts +64 -0
  320. package/dist/lib/db/retention.d.ts.map +1 -0
  321. package/dist/lib/db/retention.js +115 -0
  322. package/dist/lib/db/retention.js.map +1 -0
  323. package/dist/lib/db/schema.d.ts +29 -0
  324. package/dist/lib/db/schema.d.ts.map +1 -0
  325. package/dist/lib/db/schema.js +832 -0
  326. package/dist/lib/db/schema.js.map +1 -0
  327. package/dist/lib/db/skills.d.ts +65 -0
  328. package/dist/lib/db/skills.d.ts.map +1 -0
  329. package/dist/lib/db/skills.js +119 -0
  330. package/dist/lib/db/skills.js.map +1 -0
  331. package/dist/lib/db/token-frequency.d.ts +34 -0
  332. package/dist/lib/db/token-frequency.d.ts.map +1 -0
  333. package/dist/lib/db/token-frequency.js +92 -0
  334. package/dist/lib/db/token-frequency.js.map +1 -0
  335. package/dist/lib/db/token-stats.d.ts +43 -0
  336. package/dist/lib/db/token-stats.d.ts.map +1 -0
  337. package/dist/lib/db/token-stats.js +59 -0
  338. package/dist/lib/db/token-stats.js.map +1 -0
  339. package/dist/lib/db/types.d.ts +57 -0
  340. package/dist/lib/db/types.d.ts.map +1 -0
  341. package/dist/lib/db/types.js +5 -0
  342. package/dist/lib/db/types.js.map +1 -0
  343. package/dist/lib/db/web-search-history.d.ts +22 -0
  344. package/dist/lib/db/web-search-history.d.ts.map +1 -0
  345. package/dist/lib/db/web-search-history.js +107 -0
  346. package/dist/lib/db/web-search-history.js.map +1 -0
  347. package/dist/lib/debug/state.d.ts +17 -0
  348. package/dist/lib/debug/state.d.ts.map +1 -0
  349. package/dist/lib/debug/state.js +131 -0
  350. package/dist/lib/debug/state.js.map +1 -0
  351. package/dist/lib/debug/types.d.ts +74 -0
  352. package/dist/lib/debug/types.d.ts.map +1 -0
  353. package/dist/lib/debug/types.js +85 -0
  354. package/dist/lib/debug/types.js.map +1 -0
  355. package/dist/lib/embedding-pool.d.ts +37 -0
  356. package/dist/lib/embedding-pool.d.ts.map +1 -0
  357. package/dist/lib/embedding-pool.js +159 -0
  358. package/dist/lib/embedding-pool.js.map +1 -0
  359. package/dist/lib/embedding-worker.d.ts +7 -0
  360. package/dist/lib/embedding-worker.d.ts.map +1 -0
  361. package/dist/lib/embedding-worker.js +49 -0
  362. package/dist/lib/embedding-worker.js.map +1 -0
  363. package/dist/lib/embeddings.d.ts +54 -0
  364. package/dist/lib/embeddings.d.ts.map +1 -0
  365. package/dist/lib/embeddings.js +437 -0
  366. package/dist/lib/embeddings.js.map +1 -0
  367. package/dist/lib/errors.d.ts +40 -0
  368. package/dist/lib/errors.d.ts.map +1 -0
  369. package/dist/lib/errors.js +66 -0
  370. package/dist/lib/errors.js.map +1 -0
  371. package/dist/lib/fault-logger.d.ts +35 -0
  372. package/dist/lib/fault-logger.d.ts.map +1 -0
  373. package/dist/lib/fault-logger.js +182 -0
  374. package/dist/lib/fault-logger.js.map +1 -0
  375. package/dist/lib/graph/centrality.d.ts +34 -0
  376. package/dist/lib/graph/centrality.d.ts.map +1 -0
  377. package/dist/lib/graph/centrality.js +76 -0
  378. package/dist/lib/graph/centrality.js.map +1 -0
  379. package/dist/lib/graph/cleanup.d.ts +36 -0
  380. package/dist/lib/graph/cleanup.d.ts.map +1 -0
  381. package/dist/lib/graph/cleanup.js +96 -0
  382. package/dist/lib/graph/cleanup.js.map +1 -0
  383. package/dist/lib/graph/community-detection.d.ts +61 -0
  384. package/dist/lib/graph/community-detection.d.ts.map +1 -0
  385. package/dist/lib/graph/community-detection.js +218 -0
  386. package/dist/lib/graph/community-detection.js.map +1 -0
  387. package/dist/lib/graph/contextual-proximity.d.ts +41 -0
  388. package/dist/lib/graph/contextual-proximity.d.ts.map +1 -0
  389. package/dist/lib/graph/contextual-proximity.js +125 -0
  390. package/dist/lib/graph/contextual-proximity.js.map +1 -0
  391. package/dist/lib/graph/llm-relations.d.ts +54 -0
  392. package/dist/lib/graph/llm-relations.d.ts.map +1 -0
  393. package/dist/lib/graph/llm-relations.js +265 -0
  394. package/dist/lib/graph/llm-relations.js.map +1 -0
  395. package/dist/lib/graph-export.d.ts +13 -0
  396. package/dist/lib/graph-export.d.ts.map +1 -0
  397. package/dist/lib/graph-export.js +637 -0
  398. package/dist/lib/graph-export.js.map +1 -0
  399. package/dist/lib/graph-scheduler.d.ts +7 -0
  400. package/dist/lib/graph-scheduler.d.ts.map +1 -0
  401. package/dist/lib/graph-scheduler.js +21 -0
  402. package/dist/lib/graph-scheduler.js.map +1 -0
  403. package/dist/lib/indexer.d.ts +36 -0
  404. package/dist/lib/indexer.d.ts.map +1 -0
  405. package/dist/lib/indexer.js +226 -0
  406. package/dist/lib/indexer.js.map +1 -0
  407. package/dist/lib/learning-delta.d.ts +35 -0
  408. package/dist/lib/learning-delta.d.ts.map +1 -0
  409. package/dist/lib/learning-delta.js +53 -0
  410. package/dist/lib/learning-delta.js.map +1 -0
  411. package/dist/lib/llm.d.ts +118 -0
  412. package/dist/lib/llm.d.ts.map +1 -0
  413. package/dist/lib/llm.js +439 -0
  414. package/dist/lib/llm.js.map +1 -0
  415. package/dist/lib/lock.d.ts +27 -0
  416. package/dist/lib/lock.d.ts.map +1 -0
  417. package/dist/lib/lock.js +143 -0
  418. package/dist/lib/lock.js.map +1 -0
  419. package/dist/lib/md-fetch.d.ts +61 -0
  420. package/dist/lib/md-fetch.d.ts.map +1 -0
  421. package/dist/lib/md-fetch.js +141 -0
  422. package/dist/lib/md-fetch.js.map +1 -0
  423. package/dist/lib/mmr.d.ts +29 -0
  424. package/dist/lib/mmr.d.ts.map +1 -0
  425. package/dist/lib/mmr.js +89 -0
  426. package/dist/lib/mmr.js.map +1 -0
  427. package/dist/lib/onboarding/ai-chat.d.ts +11 -0
  428. package/dist/lib/onboarding/ai-chat.d.ts.map +1 -0
  429. package/dist/lib/onboarding/ai-chat.js +85 -0
  430. package/dist/lib/onboarding/ai-chat.js.map +1 -0
  431. package/dist/lib/onboarding/index.d.ts +7 -0
  432. package/dist/lib/onboarding/index.d.ts.map +1 -0
  433. package/dist/lib/onboarding/index.js +7 -0
  434. package/dist/lib/onboarding/index.js.map +1 -0
  435. package/dist/lib/onboarding/wizard.d.ts +11 -0
  436. package/dist/lib/onboarding/wizard.d.ts.map +1 -0
  437. package/dist/lib/onboarding/wizard.js +104 -0
  438. package/dist/lib/onboarding/wizard.js.map +1 -0
  439. package/dist/lib/ort-provider.d.ts +27 -0
  440. package/dist/lib/ort-provider.d.ts.map +1 -0
  441. package/dist/lib/ort-provider.js +83 -0
  442. package/dist/lib/ort-provider.js.map +1 -0
  443. package/dist/lib/ort-session.d.ts +32 -0
  444. package/dist/lib/ort-session.d.ts.map +1 -0
  445. package/dist/lib/ort-session.js +227 -0
  446. package/dist/lib/ort-session.js.map +1 -0
  447. package/dist/lib/patterns.d.ts +43 -0
  448. package/dist/lib/patterns.d.ts.map +1 -0
  449. package/dist/lib/patterns.js +395 -0
  450. package/dist/lib/patterns.js.map +1 -0
  451. package/dist/lib/prd/codebase-context.d.ts +27 -0
  452. package/dist/lib/prd/codebase-context.d.ts.map +1 -0
  453. package/dist/lib/prd/codebase-context.js +420 -0
  454. package/dist/lib/prd/codebase-context.js.map +1 -0
  455. package/dist/lib/prd/context.d.ts +24 -0
  456. package/dist/lib/prd/context.d.ts.map +1 -0
  457. package/dist/lib/prd/context.js +68 -0
  458. package/dist/lib/prd/context.js.map +1 -0
  459. package/dist/lib/prd/executor.d.ts +52 -0
  460. package/dist/lib/prd/executor.d.ts.map +1 -0
  461. package/dist/lib/prd/executor.js +154 -0
  462. package/dist/lib/prd/executor.js.map +1 -0
  463. package/dist/lib/prd/export.d.ts +40 -0
  464. package/dist/lib/prd/export.d.ts.map +1 -0
  465. package/dist/lib/prd/export.js +511 -0
  466. package/dist/lib/prd/export.js.map +1 -0
  467. package/dist/lib/prd/gates.d.ts +30 -0
  468. package/dist/lib/prd/gates.d.ts.map +1 -0
  469. package/dist/lib/prd/gates.js +100 -0
  470. package/dist/lib/prd/gates.js.map +1 -0
  471. package/dist/lib/prd/generate.d.ts +56 -0
  472. package/dist/lib/prd/generate.d.ts.map +1 -0
  473. package/dist/lib/prd/generate.js +357 -0
  474. package/dist/lib/prd/generate.js.map +1 -0
  475. package/dist/lib/prd/parse.d.ts +21 -0
  476. package/dist/lib/prd/parse.d.ts.map +1 -0
  477. package/dist/lib/prd/parse.js +270 -0
  478. package/dist/lib/prd/parse.js.map +1 -0
  479. package/dist/lib/prd/prompt-builder.d.ts +18 -0
  480. package/dist/lib/prd/prompt-builder.d.ts.map +1 -0
  481. package/dist/lib/prd/prompt-builder.js +61 -0
  482. package/dist/lib/prd/prompt-builder.js.map +1 -0
  483. package/dist/lib/prd/runner.d.ts +54 -0
  484. package/dist/lib/prd/runner.d.ts.map +1 -0
  485. package/dist/lib/prd/runner.js +563 -0
  486. package/dist/lib/prd/runner.js.map +1 -0
  487. package/dist/lib/prd/scheduler.d.ts +27 -0
  488. package/dist/lib/prd/scheduler.d.ts.map +1 -0
  489. package/dist/lib/prd/scheduler.js +113 -0
  490. package/dist/lib/prd/scheduler.js.map +1 -0
  491. package/dist/lib/prd/state.d.ts +77 -0
  492. package/dist/lib/prd/state.d.ts.map +1 -0
  493. package/dist/lib/prd/state.js +253 -0
  494. package/dist/lib/prd/state.js.map +1 -0
  495. package/dist/lib/prd/team-runner.d.ts +48 -0
  496. package/dist/lib/prd/team-runner.d.ts.map +1 -0
  497. package/dist/lib/prd/team-runner.js +261 -0
  498. package/dist/lib/prd/team-runner.js.map +1 -0
  499. package/dist/lib/prd/types.d.ts +169 -0
  500. package/dist/lib/prd/types.d.ts.map +1 -0
  501. package/dist/lib/prd/types.js +143 -0
  502. package/dist/lib/prd/types.js.map +1 -0
  503. package/dist/lib/prd/worktree.d.ts +54 -0
  504. package/dist/lib/prd/worktree.d.ts.map +1 -0
  505. package/dist/lib/prd/worktree.js +255 -0
  506. package/dist/lib/prd/worktree.js.map +1 -0
  507. package/dist/lib/precompute-context.d.ts +48 -0
  508. package/dist/lib/precompute-context.d.ts.map +1 -0
  509. package/dist/lib/precompute-context.js +265 -0
  510. package/dist/lib/precompute-context.js.map +1 -0
  511. package/dist/lib/pricing.d.ts +60 -0
  512. package/dist/lib/pricing.d.ts.map +1 -0
  513. package/dist/lib/pricing.js +258 -0
  514. package/dist/lib/pricing.js.map +1 -0
  515. package/dist/lib/process-registry.d.ts +30 -0
  516. package/dist/lib/process-registry.d.ts.map +1 -0
  517. package/dist/lib/process-registry.js +92 -0
  518. package/dist/lib/process-registry.js.map +1 -0
  519. package/dist/lib/progress-log.d.ts +44 -0
  520. package/dist/lib/progress-log.d.ts.map +1 -0
  521. package/dist/lib/progress-log.js +58 -0
  522. package/dist/lib/progress-log.js.map +1 -0
  523. package/dist/lib/public-api.d.ts +56 -0
  524. package/dist/lib/public-api.d.ts.map +1 -0
  525. package/dist/lib/public-api.js +63 -0
  526. package/dist/lib/public-api.js.map +1 -0
  527. package/dist/lib/quality.d.ts +66 -0
  528. package/dist/lib/quality.d.ts.map +1 -0
  529. package/dist/lib/quality.js +486 -0
  530. package/dist/lib/quality.js.map +1 -0
  531. package/dist/lib/query-expansion.d.ts +16 -0
  532. package/dist/lib/query-expansion.d.ts.map +1 -0
  533. package/dist/lib/query-expansion.js +53 -0
  534. package/dist/lib/query-expansion.js.map +1 -0
  535. package/dist/lib/readiness.d.ts +35 -0
  536. package/dist/lib/readiness.d.ts.map +1 -0
  537. package/dist/lib/readiness.js +142 -0
  538. package/dist/lib/readiness.js.map +1 -0
  539. package/dist/lib/reference-embeddings.d.ts +39 -0
  540. package/dist/lib/reference-embeddings.d.ts.map +1 -0
  541. package/dist/lib/reference-embeddings.js +95 -0
  542. package/dist/lib/reference-embeddings.js.map +1 -0
  543. package/dist/lib/reflection-synthesizer.d.ts +27 -0
  544. package/dist/lib/reflection-synthesizer.d.ts.map +1 -0
  545. package/dist/lib/reflection-synthesizer.js +149 -0
  546. package/dist/lib/reflection-synthesizer.js.map +1 -0
  547. package/dist/lib/retention.d.ts +105 -0
  548. package/dist/lib/retention.d.ts.map +1 -0
  549. package/dist/lib/retention.js +246 -0
  550. package/dist/lib/retention.js.map +1 -0
  551. package/dist/lib/sensitive-filter.d.ts +34 -0
  552. package/dist/lib/sensitive-filter.d.ts.map +1 -0
  553. package/dist/lib/sensitive-filter.js +344 -0
  554. package/dist/lib/sensitive-filter.js.map +1 -0
  555. package/dist/lib/session-observations.d.ts +59 -0
  556. package/dist/lib/session-observations.d.ts.map +1 -0
  557. package/dist/lib/session-observations.js +128 -0
  558. package/dist/lib/session-observations.js.map +1 -0
  559. package/dist/lib/session-summary.d.ts +65 -0
  560. package/dist/lib/session-summary.d.ts.map +1 -0
  561. package/dist/lib/session-summary.js +344 -0
  562. package/dist/lib/session-summary.js.map +1 -0
  563. package/dist/lib/similarity-worker.d.ts +7 -0
  564. package/dist/lib/similarity-worker.d.ts.map +1 -0
  565. package/dist/lib/similarity-worker.js +36 -0
  566. package/dist/lib/similarity-worker.js.map +1 -0
  567. package/dist/lib/skills.d.ts +78 -0
  568. package/dist/lib/skills.d.ts.map +1 -0
  569. package/dist/lib/skills.js +439 -0
  570. package/dist/lib/skills.js.map +1 -0
  571. package/dist/lib/skyll-client.d.ts +59 -0
  572. package/dist/lib/skyll-client.d.ts.map +1 -0
  573. package/dist/lib/skyll-client.js +257 -0
  574. package/dist/lib/skyll-client.js.map +1 -0
  575. package/dist/lib/storage/backends/interface.d.ts +383 -0
  576. package/dist/lib/storage/backends/interface.d.ts.map +1 -0
  577. package/dist/lib/storage/backends/interface.js +12 -0
  578. package/dist/lib/storage/backends/interface.js.map +1 -0
  579. package/dist/lib/storage/backends/postgresql.d.ts +454 -0
  580. package/dist/lib/storage/backends/postgresql.d.ts.map +1 -0
  581. package/dist/lib/storage/backends/postgresql.js +2528 -0
  582. package/dist/lib/storage/backends/postgresql.js.map +1 -0
  583. package/dist/lib/storage/benchmark.d.ts +16 -0
  584. package/dist/lib/storage/benchmark.d.ts.map +1 -0
  585. package/dist/lib/storage/benchmark.js +219 -0
  586. package/dist/lib/storage/benchmark.js.map +1 -0
  587. package/dist/lib/storage/dispatcher-export.d.ts +108 -0
  588. package/dist/lib/storage/dispatcher-export.d.ts.map +1 -0
  589. package/dist/lib/storage/dispatcher-export.js +593 -0
  590. package/dist/lib/storage/dispatcher-export.js.map +1 -0
  591. package/dist/lib/storage/dispatcher.d.ts +468 -0
  592. package/dist/lib/storage/dispatcher.d.ts.map +1 -0
  593. package/dist/lib/storage/dispatcher.js +1926 -0
  594. package/dist/lib/storage/dispatcher.js.map +1 -0
  595. package/dist/lib/storage/index.d.ts +481 -0
  596. package/dist/lib/storage/index.d.ts.map +1 -0
  597. package/dist/lib/storage/index.js +727 -0
  598. package/dist/lib/storage/index.js.map +1 -0
  599. package/dist/lib/storage/migration/export-import.d.ts +133 -0
  600. package/dist/lib/storage/migration/export-import.d.ts.map +1 -0
  601. package/dist/lib/storage/migration/export-import.js +264 -0
  602. package/dist/lib/storage/migration/export-import.js.map +1 -0
  603. package/dist/lib/storage/types.d.ts +313 -0
  604. package/dist/lib/storage/types.d.ts.map +1 -0
  605. package/dist/lib/storage/types.js +30 -0
  606. package/dist/lib/storage/types.js.map +1 -0
  607. package/dist/lib/storage/vector/interface.d.ts +89 -0
  608. package/dist/lib/storage/vector/interface.d.ts.map +1 -0
  609. package/dist/lib/storage/vector/interface.js +10 -0
  610. package/dist/lib/storage/vector/interface.js.map +1 -0
  611. package/dist/lib/storage/vector/qdrant.d.ts +221 -0
  612. package/dist/lib/storage/vector/qdrant.d.ts.map +1 -0
  613. package/dist/lib/storage/vector/qdrant.js +880 -0
  614. package/dist/lib/storage/vector/qdrant.js.map +1 -0
  615. package/dist/lib/supersession.d.ts +26 -0
  616. package/dist/lib/supersession.d.ts.map +1 -0
  617. package/dist/lib/supersession.js +97 -0
  618. package/dist/lib/supersession.js.map +1 -0
  619. package/dist/lib/temporal.d.ts +140 -0
  620. package/dist/lib/temporal.d.ts.map +1 -0
  621. package/dist/lib/temporal.js +303 -0
  622. package/dist/lib/temporal.js.map +1 -0
  623. package/dist/lib/token-budget.d.ts +79 -0
  624. package/dist/lib/token-budget.d.ts.map +1 -0
  625. package/dist/lib/token-budget.js +146 -0
  626. package/dist/lib/token-budget.js.map +1 -0
  627. package/dist/lib/token-counter.d.ts +27 -0
  628. package/dist/lib/token-counter.d.ts.map +1 -0
  629. package/dist/lib/token-counter.js +52 -0
  630. package/dist/lib/token-counter.js.map +1 -0
  631. package/dist/lib/tree-sitter/chunker-ts.d.ts +24 -0
  632. package/dist/lib/tree-sitter/chunker-ts.d.ts.map +1 -0
  633. package/dist/lib/tree-sitter/chunker-ts.js +206 -0
  634. package/dist/lib/tree-sitter/chunker-ts.js.map +1 -0
  635. package/dist/lib/tree-sitter/extractor.d.ts +43 -0
  636. package/dist/lib/tree-sitter/extractor.d.ts.map +1 -0
  637. package/dist/lib/tree-sitter/extractor.js +297 -0
  638. package/dist/lib/tree-sitter/extractor.js.map +1 -0
  639. package/dist/lib/tree-sitter/index.d.ts +13 -0
  640. package/dist/lib/tree-sitter/index.d.ts.map +1 -0
  641. package/dist/lib/tree-sitter/index.js +14 -0
  642. package/dist/lib/tree-sitter/index.js.map +1 -0
  643. package/dist/lib/tree-sitter/parser.d.ts +70 -0
  644. package/dist/lib/tree-sitter/parser.d.ts.map +1 -0
  645. package/dist/lib/tree-sitter/parser.js +354 -0
  646. package/dist/lib/tree-sitter/parser.js.map +1 -0
  647. package/dist/lib/tree-sitter/public.d.ts +28 -0
  648. package/dist/lib/tree-sitter/public.d.ts.map +1 -0
  649. package/dist/lib/tree-sitter/public.js +50 -0
  650. package/dist/lib/tree-sitter/public.js.map +1 -0
  651. package/dist/lib/tree-sitter/queries.d.ts +28 -0
  652. package/dist/lib/tree-sitter/queries.d.ts.map +1 -0
  653. package/dist/lib/tree-sitter/queries.js +383 -0
  654. package/dist/lib/tree-sitter/queries.js.map +1 -0
  655. package/dist/lib/tree-sitter/types.d.ts +69 -0
  656. package/dist/lib/tree-sitter/types.d.ts.map +1 -0
  657. package/dist/lib/tree-sitter/types.js +131 -0
  658. package/dist/lib/tree-sitter/types.js.map +1 -0
  659. package/dist/lib/working-memory-pipeline.d.ts +118 -0
  660. package/dist/lib/working-memory-pipeline.d.ts.map +1 -0
  661. package/dist/lib/working-memory-pipeline.js +344 -0
  662. package/dist/lib/working-memory-pipeline.js.map +1 -0
  663. package/dist/mcp/helpers.d.ts +44 -0
  664. package/dist/mcp/helpers.d.ts.map +1 -0
  665. package/dist/mcp/helpers.js +244 -0
  666. package/dist/mcp/helpers.js.map +1 -0
  667. package/dist/mcp/index.d.ts +10 -0
  668. package/dist/mcp/index.d.ts.map +1 -0
  669. package/dist/mcp/index.js +15 -0
  670. package/dist/mcp/index.js.map +1 -0
  671. package/dist/mcp/resources.d.ts +12 -0
  672. package/dist/mcp/resources.d.ts.map +1 -0
  673. package/dist/mcp/resources.js +136 -0
  674. package/dist/mcp/resources.js.map +1 -0
  675. package/dist/mcp/server.d.ts +22 -0
  676. package/dist/mcp/server.d.ts.map +1 -0
  677. package/dist/mcp/server.js +131 -0
  678. package/dist/mcp/server.js.map +1 -0
  679. package/dist/mcp/tools/config.d.ts +10 -0
  680. package/dist/mcp/tools/config.d.ts.map +1 -0
  681. package/dist/mcp/tools/config.js +236 -0
  682. package/dist/mcp/tools/config.js.map +1 -0
  683. package/dist/mcp/tools/dead-end.d.ts +9 -0
  684. package/dist/mcp/tools/dead-end.d.ts.map +1 -0
  685. package/dist/mcp/tools/dead-end.js +137 -0
  686. package/dist/mcp/tools/dead-end.js.map +1 -0
  687. package/dist/mcp/tools/debug.d.ts +9 -0
  688. package/dist/mcp/tools/debug.d.ts.map +1 -0
  689. package/dist/mcp/tools/debug.js +387 -0
  690. package/dist/mcp/tools/debug.js.map +1 -0
  691. package/dist/mcp/tools/graph.d.ts +9 -0
  692. package/dist/mcp/tools/graph.d.ts.map +1 -0
  693. package/dist/mcp/tools/graph.js +337 -0
  694. package/dist/mcp/tools/graph.js.map +1 -0
  695. package/dist/mcp/tools/indexing.d.ts +12 -0
  696. package/dist/mcp/tools/indexing.d.ts.map +1 -0
  697. package/dist/mcp/tools/indexing.js +289 -0
  698. package/dist/mcp/tools/indexing.js.map +1 -0
  699. package/dist/mcp/tools/memory.d.ts +14 -0
  700. package/dist/mcp/tools/memory.d.ts.map +1 -0
  701. package/dist/mcp/tools/memory.js +1170 -0
  702. package/dist/mcp/tools/memory.js.map +1 -0
  703. package/dist/mcp/tools/prd.d.ts +12 -0
  704. package/dist/mcp/tools/prd.d.ts.map +1 -0
  705. package/dist/mcp/tools/prd.js +276 -0
  706. package/dist/mcp/tools/prd.js.map +1 -0
  707. package/dist/mcp/tools/search.d.ts +9 -0
  708. package/dist/mcp/tools/search.d.ts.map +1 -0
  709. package/dist/mcp/tools/search.js +279 -0
  710. package/dist/mcp/tools/search.js.map +1 -0
  711. package/dist/mcp/tools/status.d.ts +10 -0
  712. package/dist/mcp/tools/status.d.ts.map +1 -0
  713. package/dist/mcp/tools/status.js +296 -0
  714. package/dist/mcp/tools/status.js.map +1 -0
  715. package/dist/mcp/tools/web-fetch.d.ts +10 -0
  716. package/dist/mcp/tools/web-fetch.d.ts.map +1 -0
  717. package/dist/mcp/tools/web-fetch.js +107 -0
  718. package/dist/mcp/tools/web-fetch.js.map +1 -0
  719. package/dist/mcp/tools/web-search.d.ts +14 -0
  720. package/dist/mcp/tools/web-search.d.ts.map +1 -0
  721. package/dist/mcp/tools/web-search.js +427 -0
  722. package/dist/mcp/tools/web-search.js.map +1 -0
  723. package/dist/mcp/types.d.ts +16 -0
  724. package/dist/mcp/types.d.ts.map +1 -0
  725. package/dist/mcp/types.js +5 -0
  726. package/dist/mcp/types.js.map +1 -0
  727. package/dist/mcp-server.d.ts +9 -0
  728. package/dist/mcp-server.d.ts.map +1 -0
  729. package/dist/mcp-server.js +9 -0
  730. package/dist/mcp-server.js.map +1 -0
  731. package/dist/prompts/analyze.d.ts +21 -0
  732. package/dist/prompts/analyze.d.ts.map +1 -0
  733. package/dist/prompts/analyze.js +27 -0
  734. package/dist/prompts/analyze.js.map +1 -0
  735. package/dist/prompts/briefing.d.ts +27 -0
  736. package/dist/prompts/briefing.d.ts.map +1 -0
  737. package/dist/prompts/briefing.js +123 -0
  738. package/dist/prompts/briefing.js.map +1 -0
  739. package/dist/prompts/chat.d.ts +8 -0
  740. package/dist/prompts/chat.d.ts.map +1 -0
  741. package/dist/prompts/chat.js +39 -0
  742. package/dist/prompts/chat.js.map +1 -0
  743. package/dist/prompts/daemon.d.ts +16 -0
  744. package/dist/prompts/daemon.d.ts.map +1 -0
  745. package/dist/prompts/daemon.js +46 -0
  746. package/dist/prompts/daemon.js.map +1 -0
  747. package/dist/prompts/extraction.d.ts +13 -0
  748. package/dist/prompts/extraction.d.ts.map +1 -0
  749. package/dist/prompts/extraction.js +93 -0
  750. package/dist/prompts/extraction.js.map +1 -0
  751. package/dist/prompts/index.d.ts +17 -0
  752. package/dist/prompts/index.d.ts.map +1 -0
  753. package/dist/prompts/index.js +27 -0
  754. package/dist/prompts/index.js.map +1 -0
  755. package/dist/prompts/memory.d.ts +11 -0
  756. package/dist/prompts/memory.d.ts.map +1 -0
  757. package/dist/prompts/memory.js +23 -0
  758. package/dist/prompts/memory.js.map +1 -0
  759. package/dist/prompts/onboarding.d.ts +16 -0
  760. package/dist/prompts/onboarding.d.ts.map +1 -0
  761. package/dist/prompts/onboarding.js +183 -0
  762. package/dist/prompts/onboarding.js.map +1 -0
  763. package/dist/prompts/prd.d.ts +12 -0
  764. package/dist/prompts/prd.d.ts.map +1 -0
  765. package/dist/prompts/prd.js +211 -0
  766. package/dist/prompts/prd.js.map +1 -0
  767. package/dist/prompts/quality.d.ts +11 -0
  768. package/dist/prompts/quality.d.ts.map +1 -0
  769. package/dist/prompts/quality.js +11 -0
  770. package/dist/prompts/quality.js.map +1 -0
  771. package/dist/prompts/skills.d.ts +16 -0
  772. package/dist/prompts/skills.d.ts.map +1 -0
  773. package/dist/prompts/skills.js +30 -0
  774. package/dist/prompts/skills.js.map +1 -0
  775. package/hooks/succ-post-tool.cjs +227 -0
  776. package/hooks/succ-pre-tool.cjs +312 -0
  777. package/hooks/succ-session-end.cjs +85 -0
  778. package/hooks/succ-session-start.cjs +618 -0
  779. package/hooks/succ-stop-reflection.cjs +87 -0
  780. package/hooks/succ-user-prompt.cjs +220 -0
  781. package/package.json +128 -0
package/LICENSE ADDED
@@ -0,0 +1,87 @@
1
+ # Functional Source License, Version 1.1, Apache 2.0 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-Apache-2.0
6
+
7
+ ## Notice
8
+
9
+ Copyright 2025 Vinaes Code Ltd.
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others as a commercial cloud-hosted
34
+ service that is substantially similar to the functionality of the Software.
35
+
36
+ ### Patents
37
+
38
+ To the extent your use for a Permitted Purpose would necessarily infringe our
39
+ patents, the license grant above includes a license under our patents. If you
40
+ make a claim against any party that the Software infringes or contributes to
41
+ the infringement of any patent, then your patent license to the Software ends
42
+ immediately.
43
+
44
+ ### Redistribution
45
+
46
+ The Terms and Conditions apply to all copies, modifications and derivatives of
47
+ the Software.
48
+
49
+ If you redistribute any copies, modifications or derivatives of the Software,
50
+ you must include a copy of or a link to these Terms and Conditions and not
51
+ remove any copyright notices provided in or with the Software.
52
+
53
+ ### Disclaimer
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
56
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
57
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
58
+
59
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
60
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
61
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
62
+
63
+ ### Trademarks
64
+
65
+ Except for displaying the License Details and identifying us as the origin of
66
+ the Software, you have no right under these Terms and Conditions to use our
67
+ trademarks, trade names, service marks or product names.
68
+
69
+ ## Grant of Future License
70
+
71
+ We hereby irrevocably grant you an additional license to use the Software under
72
+ the Apache License, Version 2.0 that is effective on the second anniversary of
73
+ the date we make the Software available. On or after that date, you may use the
74
+ Software under the Apache License, Version 2.0, in which case the following
75
+ will apply:
76
+
77
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
78
+ this file except in compliance with the License.
79
+
80
+ You may obtain a copy of the License at
81
+
82
+ http://www.apache.org/licenses/LICENSE-2.0
83
+
84
+ Unless required by applicable law or agreed to in writing, software distributed
85
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
86
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
87
+ specific language governing permissions and limitations under the License.
package/README.md ADDED
@@ -0,0 +1,588 @@
1
+ <p align="center">
2
+ <img src="https://img.shields.io/badge/●%20succ-semantic%20memory-3fb950?style=for-the-badge&labelColor=0d1117" alt="succ">
3
+ <br/><br/>
4
+ <em>Semantic Understanding for Code Contexts</em>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/@vinaes/succ"><img src="https://img.shields.io/npm/v/@vinaes/succ?style=flat-square&color=3fb950" alt="npm"></a>
9
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-FSL--1.1-blue?style=flat-square" alt="license"></a>
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="#quick-start">Quick Start</a> •
14
+ <a href="#features">Features</a> •
15
+ <a href="#commands">Commands</a> •
16
+ <a href="#configuration">Configuration</a> •
17
+ <a href="#documentation">Docs</a>
18
+ </p>
19
+
20
+ ---
21
+
22
+ > Persistent semantic memory for any MCP-compatible AI editor. Remember decisions, learn from mistakes, never lose context.
23
+
24
+ ### Works with
25
+
26
+ | Editor | Setup |
27
+ |--------|-------|
28
+ | **Claude Code** | `succ init` (auto-configured) |
29
+ | **Cursor** | `succ setup cursor` |
30
+ | **Windsurf** | `succ setup windsurf` |
31
+ | **Continue.dev** | `succ setup continue` |
32
+
33
+ See [Editor Guides](docs/editors/index.md) for detailed setup.
34
+
35
+ ## Quick Start
36
+
37
+ ```bash
38
+ npm install -g @vinaes/succ
39
+ ```
40
+
41
+ ```bash
42
+ cd your-project
43
+ succ init
44
+ succ index
45
+ succ index-code
46
+ succ analyze
47
+ ```
48
+
49
+ > **That's it.** Claude Code now has persistent memory for your project.
50
+
51
+ ## Features
52
+
53
+ | Feature | Description |
54
+ |---------|-------------|
55
+ | **Hybrid Search** | Semantic embeddings + BM25 keyword matching with AST symbol boost |
56
+ | **AST Code Indexing** | Tree-sitter parsing for 21 languages — 13 with full symbol extraction, 8 grammar-only (Swift, Scala, Dart, Bash, Lua, Elixir, Haskell, SQL) |
57
+ | **Brain Vault** | Obsidian-compatible markdown knowledge base |
58
+ | **Persistent Memory** | Decisions, learnings, patterns across sessions |
59
+ | **Cross-Project** | Global memories shared between all projects |
60
+ | **Knowledge Graph** | Link memories, LLM-enriched relations, community detection, centrality |
61
+ | **MCP Native** | 30 tools — Claude uses succ tools directly |
62
+ | **Web Search** | Real-time web search via Perplexity Sonar (quick, quality, deep research) |
63
+ | **Skill Suggestions** | LLM-powered command discovery (opt-in, disabled by default) |
64
+ | **Web Fetch** | Fetch any URL as clean Markdown via md.succ.ai (Readability + Playwright) |
65
+ | **Working Memory** | Priority scoring, validity filtering, diversity, pinned memories |
66
+ | **Dead-End Tracking** | Record failed approaches to prevent retrying |
67
+ | **Debug Sessions** | Structured debugging with hypothesis testing, 13-language instrumentation |
68
+ | **PRD Pipeline** | Generate PRDs, parse into tasks, execute with quality gates |
69
+ | **Team Mode** | Parallel task execution with git worktrees |
70
+ | **Multi-Backend Storage** | SQLite, PostgreSQL, Qdrant — scale from laptop to cloud |
71
+
72
+ <details>
73
+ <summary>All features</summary>
74
+
75
+ - **AST Code Indexing** — Tree-sitter parsing for 21 languages (13 with full symbol extraction + 8 grammar-only); symbol-aware BM25 tokenization boosts function/class names in search results
76
+ - **Web Search** — Real-time search via Perplexity Sonar through OpenRouter (quick $1/MTok, quality $3-15/MTok, deep research); search history tracking with cost auditing
77
+ - **PRD Pipeline** — Generate PRDs from feature descriptions, parse into executable tasks, run with Claude Code agent, export workflow to Obsidian (Mermaid Gantt + dependency DAG)
78
+ - **Team Mode** — Parallel task execution using git worktrees; each worker gets an isolated checkout, results merge via cherry-pick
79
+ - **Quality Gates** — Auto-detected (TypeScript, Go, Python, Rust) or custom; run after each task to verify code quality
80
+ - **Graph Enrichment** — LLM-classified relations (implements, leads_to, contradicts...), contextual proximity, Label Propagation communities, degree centrality with recall boost
81
+ - **Dead-End Tracking** — Record failed approaches; auto-boosted in recall to prevent retrying
82
+ - **AGENTS.md Auto-Export** — Auto-generate editor instructions from decisions, patterns, dead-ends
83
+ - **Learning Delta** — Track knowledge growth per session (memories added, types, quality)
84
+ - **Confidence Retention** — Time-decay scoring with auto-cleanup of low-value memories
85
+ - **Safe Consolidation** — Soft-delete with undo support; no data loss on merge
86
+ - **Skill Discovery** — Auto-suggest relevant skills based on user prompt (opt-in, disabled by default)
87
+ - **Skyll Integration** — Access community skills from [Skyll registry](https://skyll.app) (requires skills.enabled = true)
88
+ - **Soul Document** — Define AI personality and values
89
+ - **Auto-Hooks** — Context injection at session start/end
90
+ - **Idle Reflections** — AI generates insights during idle time
91
+ - **Session Context** — Auto-generated briefings for next session
92
+ - **Sensitive Filter** — Detect and redact PII, API keys, secrets
93
+ - **Quality Scoring** — Local ONNX classification to filter noise
94
+ - **Token Savings** — Track RAG efficiency vs full files
95
+ - **Temporal Awareness** — Time decay, validity periods, point-in-time queries
96
+ - **Unified Daemon** — Single background process for watch, analyze, idle tracking
97
+ - **Watch Mode** — Auto-reindex on file changes via @parcel/watcher
98
+ - **Fast Analyze** — `--fast` mode with fewer agents and smaller context for quick onboarding
99
+ - **Incremental Analyze** — Git-based change detection, skip unchanged agents
100
+ - **Local LLM** — Ollama, LM Studio, llama.cpp support
101
+ - **Sleep Agent** — Offload heavy operations to local LLM
102
+ - **Checkpoints** — Backup and restore full succ state
103
+ - **AI-Readiness Score** — Measure project readiness for AI collaboration
104
+ - **Multiple LLM Backends** — Local (Ollama), OpenRouter, or Claude CLI
105
+ - **Storage Backends** — SQLite (default), PostgreSQL + pgvector, Qdrant
106
+ - **Data Migration** — Export/import JSON, migrate between backends
107
+
108
+ </details>
109
+
110
+ ## Claude Code Agents
111
+
112
+ succ ships with 20 specialized agents in `.claude/agents/` that run as subagents inside Claude Code:
113
+
114
+ | Agent | What it does |
115
+ |-------|-------------|
116
+ | `succ-explore` | Codebase exploration powered by semantic search |
117
+ | `succ-plan` | TDD-enforced implementation planning with red-green-refactor cycles |
118
+ | `succ-code-reviewer` | Full code review with OWASP Top 10 checklist — works with any language |
119
+ | `succ-diff-reviewer` | Fast pre-commit diff review for security, bugs, and regressions |
120
+ | `succ-deep-search` | Cross-search memories, brain vault, and code |
121
+ | `succ-memory-curator` | Consolidate, deduplicate, and clean up memories |
122
+ | `succ-memory-health-monitor` | Detect decayed, stale, or low-quality memories |
123
+ | `succ-pattern-detective` | Surface recurring patterns and anti-patterns from sessions |
124
+ | `succ-session-handoff-orchestrator` | Extract summary and briefing at session end |
125
+ | `succ-session-reviewer` | Review past sessions, extract missed learnings |
126
+ | `succ-decision-auditor` | Find contradictions and reversals in architectural decisions |
127
+ | `succ-knowledge-indexer` | Index documentation and code into the knowledge base |
128
+ | `succ-knowledge-mapper` | Maintain knowledge graph, find orphaned memories |
129
+ | `succ-checkpoint-manager` | Create and manage state backups |
130
+ | `succ-context-optimizer` | Optimize what gets preloaded at session start |
131
+ | `succ-quality-improvement-coach` | Analyze memory quality, suggest improvements |
132
+ | `succ-readiness-improver` | Actionable steps to improve AI-readiness score |
133
+ | `succ-general` | General-purpose agent with semantic search, web search, and all tools |
134
+ | `succ-debug` | Structured debugging — hypothesize, instrument, reproduce, fix with dead-end tracking |
135
+ | `succ-style-tracker` | Track communication style changes, update soul.md and brain vault |
136
+
137
+ Agents are auto-discovered by Claude Code from `.claude/agents/` and can be launched via the Task tool with `subagent_type`.
138
+
139
+ ## Commands
140
+
141
+ | Command | Description |
142
+ |---------|-------------|
143
+ | `succ init` | Interactive setup wizard |
144
+ | `succ setup <editor>` | Configure MCP for any editor |
145
+ | `succ analyze` | Generate brain vault with Claude agents |
146
+ | `succ index [path]` | Index files for semantic search |
147
+ | `succ search <query>` | Semantic search in brain vault |
148
+ | `succ remember <content>` | Save to memory |
149
+ | `succ memories` | List and search memories |
150
+ | `succ watch` | Watch for changes and auto-reindex |
151
+ | `succ daemon <action>` | Manage unified daemon |
152
+ | `succ prd generate` | Generate PRD from feature description |
153
+ | `succ prd run` | Execute PRD tasks with quality gates |
154
+ | `succ status` | Show index statistics |
155
+
156
+ <details>
157
+ <summary>All commands</summary>
158
+
159
+ | Command | Description |
160
+ |---------|-------------|
161
+ | `succ index-code [path]` | Index source code (AST chunking via tree-sitter) |
162
+ | `succ index --memories` | Re-embed all memories with current embedding model |
163
+ | `succ reindex` | Detect and fix stale/deleted index entries |
164
+ | `succ chat <query>` | RAG chat with context |
165
+ | `succ train-bpe` | Train BPE vocabulary from indexed code |
166
+ | `succ forget` | Delete memories |
167
+ | `succ graph <action>` | Knowledge graph: stats, auto-link, enrich, proximity, communities, centrality |
168
+ | `succ consolidate` | Merge duplicate memories (soft-delete with undo) |
169
+ | `succ agents-md` | Generate .claude/AGENTS.md from memories |
170
+ | `succ progress` | Show learning delta history |
171
+ | `succ retention` | Memory retention analysis and cleanup |
172
+ | `succ soul` | Generate personalized soul.md |
173
+ | `succ config` | Interactive configuration |
174
+ | `succ stats` | Show token savings statistics |
175
+ | `succ checkpoint <action>` | Create, restore, or list checkpoints |
176
+ | `succ score` | Show AI-readiness score |
177
+ | `succ prd parse <file>` | Parse PRD markdown into tasks |
178
+ | `succ prd list` | List all PRDs |
179
+ | `succ prd status [id]` | Show PRD status and tasks |
180
+ | `succ prd archive [id]` | Archive a PRD |
181
+ | `succ prd export [id]` | Export PRD workflow to Obsidian (Mermaid diagrams) |
182
+ | `succ clear` | Clear index and/or memories |
183
+ | `succ benchmark` | Run performance benchmarks |
184
+ | `succ migrate` | Migrate data between storage backends |
185
+
186
+ </details>
187
+
188
+ ### succ init
189
+
190
+ ```bash
191
+ succ init # Interactive mode
192
+ succ init --yes # Non-interactive (defaults)
193
+ succ init --force # Reinitialize existing project
194
+ ```
195
+
196
+ Creates `.succ/` structure, configures MCP server, sets up hooks.
197
+
198
+ ### succ analyze
199
+
200
+ ```bash
201
+ succ analyze # Run via Claude CLI (recommended)
202
+ succ analyze --fast # Fast mode (fewer agents, smaller context)
203
+ succ analyze --force # Force full re-analysis (skip incremental)
204
+ succ analyze --local # Use local LLM (Ollama, LM Studio)
205
+ succ analyze --openrouter # Use OpenRouter API
206
+ succ analyze --background # Run in background
207
+ ```
208
+
209
+ Generates brain vault structure:
210
+
211
+ ```
212
+ .succ/brain/
213
+ ├── CLAUDE.md # Navigation hub
214
+ ├── project/ # Project knowledge
215
+ │ ├── technical/ # Architecture, API, Conventions
216
+ │ ├── systems/ # Core systems/modules
217
+ │ ├── strategy/ # Project goals
218
+ │ └── features/ # Implemented features
219
+ ├── knowledge/ # Research notes
220
+ └── archive/ # Old/superseded
221
+ ```
222
+
223
+ ### succ watch
224
+
225
+ ```bash
226
+ succ watch # Start watch service (via daemon)
227
+ succ watch --ignore-code # Watch only docs
228
+ succ watch --status # Check watch service status
229
+ succ watch --stop # Stop watch service
230
+ ```
231
+
232
+ ### succ daemon
233
+
234
+ ```bash
235
+ succ daemon status # Show daemon status
236
+ succ daemon sessions # List active Claude Code sessions
237
+ succ daemon start # Start daemon manually
238
+ succ daemon stop # Stop daemon
239
+ succ daemon logs # Show recent logs
240
+ ```
241
+
242
+ ### succ prd
243
+
244
+ ```bash
245
+ succ prd generate "Add JWT authentication" # Generate PRD + parse tasks
246
+ succ prd run # Execute sequentially (default)
247
+ succ prd run --mode team # Execute in parallel (git worktrees)
248
+ succ prd run --mode team --concurrency 5 # Parallel with 5 workers
249
+ succ prd run --resume # Resume interrupted run
250
+ succ prd run --dry-run # Preview execution plan
251
+ succ prd status # Show latest PRD status
252
+ succ prd list # List all PRDs
253
+ succ prd export # Export latest PRD to Obsidian
254
+ succ prd export --all # Export all PRDs
255
+ succ prd export prd_abc123 # Export specific PRD
256
+ ```
257
+
258
+ Team mode runs independent tasks in parallel using git worktrees for isolation. Each worker gets its own checkout; results merge via cherry-pick. Quality gates (typecheck, test, lint, build) run automatically after each task.
259
+
260
+ Export generates Obsidian-compatible markdown with Mermaid diagrams (Gantt timeline, dependency DAG), per-task detail pages with gate results, and wiki-links between pages. Output goes to `.succ/brain/prd/`.
261
+
262
+ ## Configuration
263
+
264
+ No API key required. Uses local embeddings by default.
265
+
266
+ ```json
267
+ {
268
+ "llm": {
269
+ "embeddings": {
270
+ "mode": "local",
271
+ "model": "Xenova/all-MiniLM-L6-v2"
272
+ }
273
+ },
274
+ "chunk_size": 500,
275
+ "chunk_overlap": 50
276
+ }
277
+ ```
278
+
279
+ <details>
280
+ <summary>Embedding modes</summary>
281
+
282
+ **Local (default):**
283
+ ```json
284
+ {
285
+ "llm": { "embeddings": { "mode": "local" } }
286
+ }
287
+ ```
288
+
289
+ **Ollama (unified namespace):**
290
+ ```json
291
+ {
292
+ "llm": {
293
+ "embeddings": {
294
+ "mode": "api",
295
+ "model": "nomic-embed-text",
296
+ "api_url": "http://localhost:11434/v1/embeddings"
297
+ }
298
+ }
299
+ }
300
+ ```
301
+
302
+ **OpenRouter:**
303
+ ```json
304
+ {
305
+ "embedding_mode": "openrouter",
306
+ "openrouter_api_key": "sk-or-..."
307
+ }
308
+ ```
309
+
310
+ **MRL dimension override (Matryoshka models):**
311
+ ```json
312
+ {
313
+ "llm": {
314
+ "embeddings": {
315
+ "mode": "api",
316
+ "model": "nomic-embed-text-v1.5",
317
+ "api_url": "http://localhost:11434/v1/embeddings",
318
+ "dimensions": 256
319
+ }
320
+ }
321
+ }
322
+ ```
323
+
324
+ </details>
325
+
326
+ <details>
327
+ <summary>GPU acceleration</summary>
328
+
329
+ succ uses native ONNX Runtime for embedding inference with automatic GPU detection:
330
+
331
+ | Platform | Backend | GPUs |
332
+ |----------|---------|------|
333
+ | Windows | DirectML | AMD, Intel, NVIDIA |
334
+ | Linux | CUDA | NVIDIA |
335
+ | macOS | CoreML | Apple Silicon |
336
+ | Fallback | CPU | Any |
337
+
338
+ GPU is enabled by default. No manual configuration needed — the best available backend is auto-detected.
339
+
340
+ ```json
341
+ {
342
+ "gpu_enabled": true,
343
+ "gpu_device": "directml"
344
+ }
345
+ ```
346
+
347
+ Set `gpu_device` to override auto-detection: `cuda`, `directml`, `coreml`, or `cpu`.
348
+
349
+ </details>
350
+
351
+ <details>
352
+ <summary>Idle watcher</summary>
353
+
354
+ ```json
355
+ {
356
+ "idle_watcher": {
357
+ "enabled": true,
358
+ "idle_minutes": 2,
359
+ "check_interval": 30,
360
+ "min_conversation_length": 5
361
+ }
362
+ }
363
+ ```
364
+
365
+ </details>
366
+
367
+ <details>
368
+ <summary>Pre-commit review</summary>
369
+
370
+ Automatically run the `succ-diff-reviewer` agent before every git commit to catch security issues, bugs, and regressions:
371
+
372
+ ```json
373
+ {
374
+ "preCommitReview": true
375
+ }
376
+ ```
377
+
378
+ When enabled, Claude will run a diff review before each commit. Critical findings block the commit; high findings trigger a warning.
379
+
380
+ Disabled by default. Set via `succ config_set preCommitReview true`.
381
+
382
+ </details>
383
+
384
+ <details>
385
+ <summary>Sleep agent</summary>
386
+
387
+ Offload heavy operations to local LLM:
388
+
389
+ ```json
390
+ {
391
+ "idle_reflection": {
392
+ "sleep_agent": {
393
+ "enabled": true,
394
+ "mode": "local",
395
+ "model": "qwen2.5-coder:14b",
396
+ "api_url": "http://localhost:11434/v1"
397
+ }
398
+ }
399
+ }
400
+ ```
401
+
402
+ </details>
403
+
404
+ <details>
405
+ <summary>Storage backends</summary>
406
+
407
+ succ supports multiple storage backends for different deployment scenarios:
408
+
409
+ | Setup | Use Case | Requirements |
410
+ |-------|----------|--------------|
411
+ | SQLite + sqlite-vec | Local development (default) | None |
412
+ | PostgreSQL + pgvector | Production/cloud | PostgreSQL 15+ with pgvector |
413
+ | SQLite + Qdrant | Local + powerful vector search | Qdrant server |
414
+ | PostgreSQL + Qdrant | Full production scale | PostgreSQL + Qdrant |
415
+
416
+ **Example: PostgreSQL + pgvector**
417
+ ```json
418
+ {
419
+ "storage": {
420
+ "backend": "postgresql",
421
+ "postgresql": {
422
+ "connection_string": "postgresql://user:pass@localhost:5432/succ"
423
+ }
424
+ }
425
+ }
426
+ ```
427
+
428
+ **Example: PostgreSQL + Qdrant**
429
+ ```json
430
+ {
431
+ "storage": {
432
+ "backend": "postgresql",
433
+ "vector": "qdrant",
434
+ "postgresql": { "connection_string": "postgresql://..." },
435
+ "qdrant": { "url": "http://localhost:6333" }
436
+ }
437
+ }
438
+ ```
439
+
440
+ See [Storage Configuration](docs/configuration.md#storage-settings) for all options.
441
+
442
+ </details>
443
+
444
+ <details>
445
+ <summary>LLM Backend Configuration</summary>
446
+
447
+ succ supports multiple LLM backends for operations like analyze, idle reflection, and skill suggestions:
448
+
449
+ ```json
450
+ {
451
+ "llm": {
452
+ "type": "local",
453
+ "model": "qwen2.5:7b",
454
+ "local": {
455
+ "endpoint": "http://localhost:11434/v1/chat/completions"
456
+ },
457
+ "openrouter": {
458
+ "model": "anthropic/claude-3-haiku"
459
+ }
460
+ }
461
+ }
462
+ ```
463
+
464
+ | Key | Values | Default | Description |
465
+ |-----|--------|---------|-------------|
466
+ | `llm.type` | `local` / `openrouter` / `claude` | `local` | LLM provider |
467
+ | `llm.model` | string | per-type | Model name for the active type |
468
+ | `llm.transport` | `process` / `ws` / `http` | auto | How to talk to the backend |
469
+
470
+ **Transport** auto-selects based on type: `claude` uses `process` (or `ws` for persistent WebSocket), `local`/`openrouter` use `http`.
471
+
472
+ **WebSocket transport** (`transport: "ws"`) keeps a persistent connection to Claude CLI, avoiding process spawn overhead on repeated calls:
473
+
474
+ ```json
475
+ {
476
+ "llm": {
477
+ "type": "claude",
478
+ "model": "sonnet",
479
+ "transport": "ws"
480
+ }
481
+ }
482
+ ```
483
+
484
+ **Per-backend model overrides** for the fallback chain:
485
+
486
+ ```json
487
+ {
488
+ "llm": {
489
+ "type": "claude",
490
+ "model": "sonnet",
491
+ "transport": "ws",
492
+ "local": { "endpoint": "http://localhost:11434/v1/chat/completions", "model": "qwen2.5:7b" },
493
+ "openrouter": { "model": "anthropic/claude-3-haiku" }
494
+ }
495
+ }
496
+ ```
497
+
498
+ > Claude backend usage
499
+
500
+ The claude backend integrates with an existing, locally running Claude Code session and is intended only for in-session developer assistance by the same user, including tasks such as file analysis, documentation, indexing, and session summarization.
501
+
502
+ It is not supported for unattended background processing, cloud deployments, or multi-user scenarios. For automated, long-running, or cloud workloads, use the local or openrouter backends instead.
503
+
504
+ </details>
505
+
506
+ <details>
507
+ <summary>Retention policies</summary>
508
+
509
+ ```json
510
+ {
511
+ "retention": {
512
+ "enabled": true,
513
+ "decay_rate": 0.01,
514
+ "access_weight": 0.1,
515
+ "keep_threshold": 0.3,
516
+ "delete_threshold": 0.15
517
+ }
518
+ }
519
+ ```
520
+
521
+ </details>
522
+
523
+ ## Hybrid Search
524
+
525
+ Combines semantic embeddings with BM25 keyword search. Code search includes AST symbol boost, regex post-filtering, and symbol type filtering (function, method, class, interface, type_alias). Three output modes: `full` (code blocks), `lean` (file+lines), `signatures` (symbol names only).
526
+
527
+ | Aspect | Documents | Code |
528
+ |--------|-----------|------|
529
+ | Tokenizer | Markdown-aware + stemming | Naming convention splitter + AST symbol boost |
530
+ | Stemming | Yes | No |
531
+ | Stop words | Filtered | Kept |
532
+ | Segmentation | Standard | Ronin + BPE |
533
+ | Symbol metadata | N/A | function, class, interface names via tree-sitter |
534
+
535
+ Code tokenizer handles all naming conventions:
536
+
537
+ | Convention | Example | Tokens |
538
+ |------------|---------|--------|
539
+ | camelCase | `getUserName` | get, user, name |
540
+ | PascalCase | `UserService` | user, service |
541
+ | snake_case | `get_user_name` | get, user, name |
542
+ | SCREAMING_SNAKE | `MAX_RETRY_COUNT` | max, retry, count |
543
+
544
+ ## Memory System
545
+
546
+ **Local memory** — stored in `.succ/succ.db`, project-specific.
547
+
548
+ **Global memory** — stored in `~/.succ/global.db`, shared across projects.
549
+
550
+ ```bash
551
+ succ remember "User prefers TypeScript" --global
552
+ succ memories --global
553
+ ```
554
+
555
+ ## Architecture
556
+
557
+ ```
558
+ your-project/
559
+ ├── .claude/
560
+ │ └── settings.json # Claude Code hooks config
561
+ └── .succ/
562
+ ├── brain/ # Obsidian-compatible vault
563
+ ├── hooks/ # Hook scripts
564
+ ├── config.json # Project configuration
565
+ ├── soul.md # AI personality
566
+ └── succ.db # Vector database
567
+
568
+ ~/.succ/
569
+ ├── global.db # Global memories
570
+ └── config.json # Global configuration
571
+ ```
572
+
573
+ ## Documentation
574
+
575
+ - [Configuration Reference](docs/configuration.md) — All config options with examples
576
+ - [PRD Pipeline](docs/prd.md) — Generate, execute, and verify tasks with quality gates
577
+ - [Storage Backends](docs/storage.md) — SQLite, PostgreSQL, Qdrant setup and benchmarks
578
+ - [Benchmarks](docs/benchmarks.md) — Performance and accuracy metrics
579
+ - [Temporal Awareness](docs/temporal.md) — Time decay, validity periods
580
+ - [Ollama Setup](docs/ollama.md) — Recommended local LLM setup
581
+ - [llama.cpp GPU](docs/llama-cpp.md) — GPU-accelerated embeddings
582
+ - [MCP Integration](docs/mcp.md) — Claude Code tools and resources
583
+ - [Troubleshooting](docs/troubleshooting.md) — Common issues and fixes
584
+ - [Development](docs/development.md) — Contributing and testing
585
+
586
+ ## License
587
+
588
+ [FSL-1.1-Apache-2.0](LICENSE) — Free to use, modify, self-host. Commercial cloud hosting restricted until Apache 2.0 date.