@cleocode/core 2026.5.133 → 2026.6.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 (560) hide show
  1. package/binaries/README.md +49 -27
  2. package/dist/agents/{agent-registry.d.ts → agent-capacity-tracker.d.ts} +2 -2
  3. package/dist/agents/agent-capacity-tracker.d.ts.map +1 -0
  4. package/dist/agents/{agent-registry.js → agent-capacity-tracker.js} +2 -2
  5. package/dist/agents/agent-capacity-tracker.js.map +1 -0
  6. package/dist/agents/index.d.ts +1 -1
  7. package/dist/agents/index.d.ts.map +1 -1
  8. package/dist/agents/index.js +4 -2
  9. package/dist/agents/index.js.map +1 -1
  10. package/dist/agents/seed-install.d.ts +1 -1
  11. package/dist/agents/seed-install.d.ts.map +1 -1
  12. package/dist/agents/seed-install.js +42 -36
  13. package/dist/agents/seed-install.js.map +1 -1
  14. package/dist/caamp-export.d.ts +18 -0
  15. package/dist/caamp-export.d.ts.map +1 -0
  16. package/dist/caamp-export.js +18 -0
  17. package/dist/caamp-export.js.map +1 -0
  18. package/dist/conduit/local-transport.d.ts +1 -1
  19. package/dist/conduit/local-transport.d.ts.map +1 -1
  20. package/dist/conduit/local-transport.js +69 -43
  21. package/dist/conduit/local-transport.js.map +1 -1
  22. package/dist/dispatch/mutate-projection.d.ts.map +1 -1
  23. package/dist/dispatch/mutate-projection.js +11 -0
  24. package/dist/dispatch/mutate-projection.js.map +1 -1
  25. package/dist/docs/docs-read-model.d.ts +7 -0
  26. package/dist/docs/docs-read-model.d.ts.map +1 -1
  27. package/dist/docs/docs-read-model.js +5 -0
  28. package/dist/docs/docs-read-model.js.map +1 -1
  29. package/dist/docs/supersede.d.ts.map +1 -1
  30. package/dist/docs/supersede.js +12 -7
  31. package/dist/docs/supersede.js.map +1 -1
  32. package/dist/doctor/db-substrate.d.ts.map +1 -1
  33. package/dist/doctor/db-substrate.js +10 -9
  34. package/dist/doctor/db-substrate.js.map +1 -1
  35. package/dist/git-shim-export.d.ts +18 -0
  36. package/dist/git-shim-export.d.ts.map +1 -0
  37. package/dist/git-shim-export.js +18 -0
  38. package/dist/git-shim-export.js.map +1 -0
  39. package/dist/hooks/payload-schemas.d.ts +2 -2
  40. package/dist/init.d.ts.map +1 -1
  41. package/dist/init.js +39 -32
  42. package/dist/init.js.map +1 -1
  43. package/dist/internal.d.ts +11 -3
  44. package/dist/internal.d.ts.map +1 -1
  45. package/dist/internal.js +14 -5
  46. package/dist/internal.js.map +1 -1
  47. package/dist/lafs-export.d.ts +18 -0
  48. package/dist/lafs-export.d.ts.map +1 -0
  49. package/dist/lafs-export.js +18 -0
  50. package/dist/lafs-export.js.map +1 -0
  51. package/dist/lifecycle/effective-stage.js +1 -1
  52. package/dist/lifecycle/index.js +1 -1
  53. package/dist/lifecycle/index.js.map +1 -1
  54. package/dist/lifecycle/rollup.js +1 -1
  55. package/dist/llm/credential-pool.d.ts +17 -0
  56. package/dist/llm/credential-pool.d.ts.map +1 -1
  57. package/dist/llm/credential-pool.js +40 -1
  58. package/dist/llm/credential-pool.js.map +1 -1
  59. package/dist/llm/plugin-facade.d.ts.map +1 -1
  60. package/dist/llm/plugin-facade.js +11 -19
  61. package/dist/llm/plugin-facade.js.map +1 -1
  62. package/dist/llm/role-executor.d.ts +8 -0
  63. package/dist/llm/role-executor.d.ts.map +1 -1
  64. package/dist/llm/role-executor.js +96 -4
  65. package/dist/llm/role-executor.js.map +1 -1
  66. package/dist/llm/role-resolver.d.ts.map +1 -1
  67. package/dist/llm/role-resolver.js +56 -1
  68. package/dist/llm/role-resolver.js.map +1 -1
  69. package/dist/llm/transports/codex-oauth-headers.d.ts +51 -0
  70. package/dist/llm/transports/codex-oauth-headers.d.ts.map +1 -0
  71. package/dist/llm/transports/codex-oauth-headers.js +89 -0
  72. package/dist/llm/transports/codex-oauth-headers.js.map +1 -0
  73. package/dist/memory/claude-mem-migration.d.ts.map +1 -1
  74. package/dist/memory/claude-mem-migration.js +1 -3
  75. package/dist/memory/claude-mem-migration.js.map +1 -1
  76. package/dist/memory/decisions.d.ts.map +1 -1
  77. package/dist/memory/decisions.js +77 -23
  78. package/dist/memory/decisions.js.map +1 -1
  79. package/dist/memory/graph-memory-bridge.d.ts.map +1 -1
  80. package/dist/memory/graph-memory-bridge.js +12 -6
  81. package/dist/memory/graph-memory-bridge.js.map +1 -1
  82. package/dist/memory/learnings.d.ts +2 -2
  83. package/dist/memory/nexus-plasticity.d.ts +21 -9
  84. package/dist/memory/nexus-plasticity.d.ts.map +1 -1
  85. package/dist/memory/nexus-plasticity.js +44 -22
  86. package/dist/memory/nexus-plasticity.js.map +1 -1
  87. package/dist/memory/patterns.d.ts +2 -2
  88. package/dist/memory/redaction.d.ts +19 -3
  89. package/dist/memory/redaction.d.ts.map +1 -1
  90. package/dist/memory/redaction.js +22 -94
  91. package/dist/memory/redaction.js.map +1 -1
  92. package/dist/metrics/token-service.d.ts +8 -2
  93. package/dist/metrics/token-service.d.ts.map +1 -1
  94. package/dist/metrics/token-service.js +1 -1
  95. package/dist/metrics/token-service.js.map +1 -1
  96. package/dist/nexus/analyze-orchestrator.d.ts.map +1 -1
  97. package/dist/nexus/analyze-orchestrator.js +6 -8
  98. package/dist/nexus/analyze-orchestrator.js.map +1 -1
  99. package/dist/nexus/api-extractors/http-extractor.d.ts.map +1 -1
  100. package/dist/nexus/api-extractors/http-extractor.js +3 -3
  101. package/dist/nexus/api-extractors/http-extractor.js.map +1 -1
  102. package/dist/nexus/clusters.d.ts.map +1 -1
  103. package/dist/nexus/clusters.js +3 -2
  104. package/dist/nexus/clusters.js.map +1 -1
  105. package/dist/nexus/context.d.ts.map +1 -1
  106. package/dist/nexus/context.js +10 -16
  107. package/dist/nexus/context.js.map +1 -1
  108. package/dist/nexus/diff.d.ts.map +1 -1
  109. package/dist/nexus/diff.js +6 -4
  110. package/dist/nexus/diff.js.map +1 -1
  111. package/dist/nexus/export.d.ts.map +1 -1
  112. package/dist/nexus/export.js +7 -4
  113. package/dist/nexus/export.js.map +1 -1
  114. package/dist/nexus/flows.d.ts.map +1 -1
  115. package/dist/nexus/flows.js +3 -1
  116. package/dist/nexus/flows.js.map +1 -1
  117. package/dist/nexus/impact.d.ts +1 -1
  118. package/dist/nexus/impact.d.ts.map +1 -1
  119. package/dist/nexus/impact.js +31 -17
  120. package/dist/nexus/impact.js.map +1 -1
  121. package/dist/nexus/living-brain.d.ts.map +1 -1
  122. package/dist/nexus/living-brain.js +27 -15
  123. package/dist/nexus/living-brain.js.map +1 -1
  124. package/dist/nexus/nexus-bridge.d.ts.map +1 -1
  125. package/dist/nexus/nexus-bridge.js +28 -29
  126. package/dist/nexus/nexus-bridge.js.map +1 -1
  127. package/dist/nexus/plasticity-queries.d.ts +4 -2
  128. package/dist/nexus/plasticity-queries.d.ts.map +1 -1
  129. package/dist/nexus/plasticity-queries.js +27 -15
  130. package/dist/nexus/plasticity-queries.js.map +1 -1
  131. package/dist/nexus/query.d.ts.map +1 -1
  132. package/dist/nexus/query.js +6 -2
  133. package/dist/nexus/query.js.map +1 -1
  134. package/dist/nexus/registry.d.ts.map +1 -1
  135. package/dist/nexus/registry.js +65 -30
  136. package/dist/nexus/registry.js.map +1 -1
  137. package/dist/nexus/route-analysis.d.ts +3 -2
  138. package/dist/nexus/route-analysis.d.ts.map +1 -1
  139. package/dist/nexus/route-analysis.js +11 -10
  140. package/dist/nexus/route-analysis.js.map +1 -1
  141. package/dist/nexus/sigil.d.ts.map +1 -1
  142. package/dist/nexus/sigil.js +60 -13
  143. package/dist/nexus/sigil.js.map +1 -1
  144. package/dist/nexus/user-profile.d.ts +2 -1
  145. package/dist/nexus/user-profile.d.ts.map +1 -1
  146. package/dist/nexus/user-profile.js +8 -4
  147. package/dist/nexus/user-profile.js.map +1 -1
  148. package/dist/orchestrate/index.d.ts +1 -1
  149. package/dist/orchestrate/index.d.ts.map +1 -1
  150. package/dist/orchestrate/index.js +1 -1
  151. package/dist/orchestrate/index.js.map +1 -1
  152. package/dist/orchestrate/plan.d.ts +3 -3
  153. package/dist/orchestrate/plan.d.ts.map +1 -1
  154. package/dist/orchestrate/plan.js +7 -7
  155. package/dist/orchestrate/plan.js.map +1 -1
  156. package/dist/orchestrate/spawn-ops.js +2 -2
  157. package/dist/orchestrate/spawn-ops.js.map +1 -1
  158. package/dist/orchestration/classify.d.ts +2 -2
  159. package/dist/orchestration/classify.js +3 -3
  160. package/dist/orchestration/classify.js.map +1 -1
  161. package/dist/orchestration/validate-spawn.d.ts.map +1 -1
  162. package/dist/orchestration/validate-spawn.js +5 -5
  163. package/dist/orchestration/validate-spawn.js.map +1 -1
  164. package/dist/paths-export.d.ts +18 -0
  165. package/dist/paths-export.d.ts.map +1 -0
  166. package/dist/paths-export.js +18 -0
  167. package/dist/paths-export.js.map +1 -0
  168. package/dist/paths.d.ts.map +1 -1
  169. package/dist/paths.js +24 -11
  170. package/dist/paths.js.map +1 -1
  171. package/dist/playbooks/index.d.ts +1 -0
  172. package/dist/playbooks/index.d.ts.map +1 -1
  173. package/dist/playbooks/index.js +4 -0
  174. package/dist/playbooks/index.js.map +1 -1
  175. package/dist/playbooks/skill-node-executor.d.ts +155 -0
  176. package/dist/playbooks/skill-node-executor.d.ts.map +1 -0
  177. package/dist/playbooks/skill-node-executor.js +156 -0
  178. package/dist/playbooks/skill-node-executor.js.map +1 -0
  179. package/dist/repair.d.ts +3 -7
  180. package/dist/repair.d.ts.map +1 -1
  181. package/dist/repair.js +5 -43
  182. package/dist/repair.js.map +1 -1
  183. package/dist/sagas/migrate-containment.js +7 -7
  184. package/dist/sagas/migrate-containment.js.map +1 -1
  185. package/dist/scaffold/ensure-dirs.d.ts +8 -2
  186. package/dist/scaffold/ensure-dirs.d.ts.map +1 -1
  187. package/dist/scaffold/ensure-dirs.js +24 -11
  188. package/dist/scaffold/ensure-dirs.js.map +1 -1
  189. package/dist/scaffold/project-detection.d.ts +5 -1
  190. package/dist/scaffold/project-detection.d.ts.map +1 -1
  191. package/dist/scaffold/project-detection.js +9 -5
  192. package/dist/scaffold/project-detection.js.map +1 -1
  193. package/dist/sentient/hygiene-scan.js +6 -6
  194. package/dist/sentient/hygiene-scan.js.map +1 -1
  195. package/dist/sentient/proposal-dedup.js +2 -2
  196. package/dist/sentient/proposal-rate-limiter.js +1 -1
  197. package/dist/sentient/propose-tick.js +5 -5
  198. package/dist/sentient/propose-tick.js.map +1 -1
  199. package/dist/sentient/stage-drift-tick.js +3 -3
  200. package/dist/sentient/stage-drift-tick.js.map +1 -1
  201. package/dist/sequence/index.d.ts.map +1 -1
  202. package/dist/sequence/index.js +6 -2
  203. package/dist/sequence/index.js.map +1 -1
  204. package/dist/setup/sections/verification.js +2 -2
  205. package/dist/setup/sections/verification.js.map +1 -1
  206. package/dist/shutdown.d.ts +81 -0
  207. package/dist/shutdown.d.ts.map +1 -0
  208. package/dist/shutdown.js +105 -0
  209. package/dist/shutdown.js.map +1 -0
  210. package/dist/skills/index.d.ts +2 -0
  211. package/dist/skills/index.d.ts.map +1 -1
  212. package/dist/skills/index.js +1 -0
  213. package/dist/skills/index.js.map +1 -1
  214. package/dist/skills/skill-executor-adapter.d.ts +136 -0
  215. package/dist/skills/skill-executor-adapter.d.ts.map +1 -0
  216. package/dist/skills/skill-executor-adapter.js +137 -0
  217. package/dist/skills/skill-executor-adapter.js.map +1 -0
  218. package/dist/skills/usage-recorder.d.ts.map +1 -1
  219. package/dist/skills/usage-recorder.js +30 -0
  220. package/dist/skills/usage-recorder.js.map +1 -1
  221. package/dist/skills-export.d.ts +23 -0
  222. package/dist/skills-export.d.ts.map +1 -0
  223. package/dist/skills-export.js +23 -0
  224. package/dist/skills-export.js.map +1 -0
  225. package/dist/stats/index.d.ts.map +1 -1
  226. package/dist/stats/index.js +8 -3
  227. package/dist/stats/index.js.map +1 -1
  228. package/dist/store/agent-doctor.d.ts +3 -3
  229. package/dist/store/agent-doctor.d.ts.map +1 -1
  230. package/dist/store/agent-doctor.js +18 -13
  231. package/dist/store/agent-doctor.js.map +1 -1
  232. package/dist/store/agent-install.d.ts +6 -5
  233. package/dist/store/agent-install.d.ts.map +1 -1
  234. package/dist/store/agent-install.js +20 -16
  235. package/dist/store/agent-install.js.map +1 -1
  236. package/dist/store/agent-registry-accessor.d.ts +66 -28
  237. package/dist/store/agent-registry-accessor.d.ts.map +1 -1
  238. package/dist/store/agent-registry-accessor.js +248 -167
  239. package/dist/store/agent-registry-accessor.js.map +1 -1
  240. package/dist/store/agent-registry-store.d.ts +242 -0
  241. package/dist/store/agent-registry-store.d.ts.map +1 -0
  242. package/dist/store/agent-registry-store.js +501 -0
  243. package/dist/store/agent-registry-store.js.map +1 -0
  244. package/dist/store/agent-resolver.d.ts +8 -8
  245. package/dist/store/agent-resolver.d.ts.map +1 -1
  246. package/dist/store/agent-resolver.js +19 -17
  247. package/dist/store/agent-resolver.js.map +1 -1
  248. package/dist/store/backup-pack.d.ts.map +1 -1
  249. package/dist/store/backup-pack.js +24 -8
  250. package/dist/store/backup-pack.js.map +1 -1
  251. package/dist/store/conduit-sqlite.d.ts +181 -74
  252. package/dist/store/conduit-sqlite.d.ts.map +1 -1
  253. package/dist/store/conduit-sqlite.js +307 -528
  254. package/dist/store/conduit-sqlite.js.map +1 -1
  255. package/dist/store/cross-db-cleanup.d.ts +5 -5
  256. package/dist/store/cross-db-cleanup.d.ts.map +1 -1
  257. package/dist/store/cross-db-cleanup.js +12 -10
  258. package/dist/store/cross-db-cleanup.js.map +1 -1
  259. package/dist/store/data-accessor.d.ts +4 -4
  260. package/dist/store/data-accessor.js +5 -5
  261. package/dist/store/data-accessor.js.map +1 -1
  262. package/dist/store/data-safety-central.d.ts +83 -1
  263. package/dist/store/data-safety-central.d.ts.map +1 -1
  264. package/dist/store/data-safety-central.js +257 -0
  265. package/dist/store/data-safety-central.js.map +1 -1
  266. package/dist/store/db-helpers.d.ts +8 -2
  267. package/dist/store/db-helpers.d.ts.map +1 -1
  268. package/dist/store/db-helpers.js +6 -2
  269. package/dist/store/db-helpers.js.map +1 -1
  270. package/dist/store/dual-scope-db.d.ts +46 -4
  271. package/dist/store/dual-scope-db.d.ts.map +1 -1
  272. package/dist/store/dual-scope-db.js +103 -9
  273. package/dist/store/dual-scope-db.js.map +1 -1
  274. package/dist/store/exodus/__fixtures__/representative-fixture.d.ts +116 -0
  275. package/dist/store/exodus/__fixtures__/representative-fixture.d.ts.map +1 -0
  276. package/dist/store/exodus/__fixtures__/representative-fixture.js +274 -0
  277. package/dist/store/exodus/__fixtures__/representative-fixture.js.map +1 -0
  278. package/dist/store/exodus/index.d.ts +18 -0
  279. package/dist/store/exodus/index.d.ts.map +1 -0
  280. package/dist/store/exodus/index.js +18 -0
  281. package/dist/store/exodus/index.js.map +1 -0
  282. package/dist/store/exodus/migrate.d.ts +160 -0
  283. package/dist/store/exodus/migrate.d.ts.map +1 -0
  284. package/dist/store/exodus/migrate.js +1220 -0
  285. package/dist/store/exodus/migrate.js.map +1 -0
  286. package/dist/store/exodus/on-open.d.ts +189 -0
  287. package/dist/store/exodus/on-open.d.ts.map +1 -0
  288. package/dist/store/exodus/on-open.js +464 -0
  289. package/dist/store/exodus/on-open.js.map +1 -0
  290. package/dist/store/exodus/plan.d.ts +44 -0
  291. package/dist/store/exodus/plan.d.ts.map +1 -0
  292. package/dist/store/exodus/plan.js +178 -0
  293. package/dist/store/exodus/plan.js.map +1 -0
  294. package/dist/store/exodus/status.d.ts +22 -0
  295. package/dist/store/exodus/status.d.ts.map +1 -0
  296. package/dist/store/exodus/status.js +88 -0
  297. package/dist/store/exodus/status.js.map +1 -0
  298. package/dist/store/exodus/table-name-map.d.ts +173 -0
  299. package/dist/store/exodus/table-name-map.d.ts.map +1 -0
  300. package/dist/store/exodus/table-name-map.js +660 -0
  301. package/dist/store/exodus/table-name-map.js.map +1 -0
  302. package/dist/store/exodus/types.d.ts +169 -0
  303. package/dist/store/exodus/types.d.ts.map +1 -0
  304. package/dist/store/exodus/types.js +21 -0
  305. package/dist/store/exodus/types.js.map +1 -0
  306. package/dist/store/exodus/verify-migration.d.ts +72 -0
  307. package/dist/store/exodus/verify-migration.d.ts.map +1 -0
  308. package/dist/store/exodus/verify-migration.js +678 -0
  309. package/dist/store/exodus/verify-migration.js.map +1 -0
  310. package/dist/store/exodus/verify.d.ts +58 -0
  311. package/dist/store/exodus/verify.d.ts.map +1 -0
  312. package/dist/store/exodus/verify.js +74 -0
  313. package/dist/store/exodus/verify.js.map +1 -0
  314. package/dist/store/index.d.ts +2 -3
  315. package/dist/store/index.d.ts.map +1 -1
  316. package/dist/store/index.js +2 -3
  317. package/dist/store/index.js.map +1 -1
  318. package/dist/store/memory-accessor.d.ts +31 -0
  319. package/dist/store/memory-accessor.d.ts.map +1 -1
  320. package/dist/store/memory-accessor.js +38 -0
  321. package/dist/store/memory-accessor.js.map +1 -1
  322. package/dist/store/memory-sqlite.d.ts +86 -13
  323. package/dist/store/memory-sqlite.d.ts.map +1 -1
  324. package/dist/store/memory-sqlite.js +326 -528
  325. package/dist/store/memory-sqlite.js.map +1 -1
  326. package/dist/store/migrate-signaldock-to-conduit.d.ts +1 -1
  327. package/dist/store/migrate-signaldock-to-conduit.d.ts.map +1 -1
  328. package/dist/store/migrate-signaldock-to-conduit.js +126 -35
  329. package/dist/store/migrate-signaldock-to-conduit.js.map +1 -1
  330. package/dist/store/migration-manager.d.ts +49 -0
  331. package/dist/store/migration-manager.d.ts.map +1 -1
  332. package/dist/store/migration-manager.js +167 -67
  333. package/dist/store/migration-manager.js.map +1 -1
  334. package/dist/store/migration-sqlite.d.ts +1 -1
  335. package/dist/store/migration-sqlite.d.ts.map +1 -1
  336. package/dist/store/migration-sqlite.js +32 -3
  337. package/dist/store/migration-sqlite.js.map +1 -1
  338. package/dist/store/nexus-sqlite.d.ts +152 -29
  339. package/dist/store/nexus-sqlite.d.ts.map +1 -1
  340. package/dist/store/nexus-sqlite.js +496 -177
  341. package/dist/store/nexus-sqlite.js.map +1 -1
  342. package/dist/store/nexus-validation-schemas.d.ts +32 -32
  343. package/dist/store/open-cleo-db.d.ts +37 -40
  344. package/dist/store/open-cleo-db.d.ts.map +1 -1
  345. package/dist/store/open-cleo-db.js +76 -153
  346. package/dist/store/open-cleo-db.js.map +1 -1
  347. package/dist/store/role-accessors-impl.d.ts +4 -4
  348. package/dist/store/role-accessors-impl.d.ts.map +1 -1
  349. package/dist/store/role-accessors-impl.js +18 -15
  350. package/dist/store/role-accessors-impl.js.map +1 -1
  351. package/dist/store/schema/{signaldock-schema.d.ts → agent-registry-schema.d.ts} +15 -5
  352. package/dist/store/schema/agent-registry-schema.d.ts.map +1 -0
  353. package/dist/store/schema/{signaldock-schema.js → agent-registry-schema.js} +15 -5
  354. package/dist/store/schema/agent-registry-schema.js.map +1 -0
  355. package/dist/store/schema/agent-schema.d.ts +1 -1
  356. package/dist/store/schema/agent-schema.js +4 -4
  357. package/dist/store/schema/agent-schema.js.map +1 -1
  358. package/dist/store/schema/attachments.d.ts +1 -1
  359. package/dist/store/schema/audit.d.ts +15 -5
  360. package/dist/store/schema/audit.d.ts.map +1 -1
  361. package/dist/store/schema/audit.js +12 -2
  362. package/dist/store/schema/audit.js.map +1 -1
  363. package/dist/store/schema/background-jobs.d.ts +1 -1
  364. package/dist/store/schema/cleo-global/{signaldock.d.ts → agent-registry.d.ts} +277 -271
  365. package/dist/store/schema/cleo-global/agent-registry.d.ts.map +1 -0
  366. package/dist/store/schema/cleo-global/{signaldock.js → agent-registry.js} +136 -125
  367. package/dist/store/schema/cleo-global/agent-registry.js.map +1 -0
  368. package/dist/store/schema/cleo-global/index.d.ts +29 -22
  369. package/dist/store/schema/cleo-global/index.d.ts.map +1 -1
  370. package/dist/store/schema/cleo-global/index.js +29 -22
  371. package/dist/store/schema/cleo-global/index.js.map +1 -1
  372. package/dist/store/schema/cleo-global/nexus.d.ts +36 -1034
  373. package/dist/store/schema/cleo-global/nexus.d.ts.map +1 -1
  374. package/dist/store/schema/cleo-global/nexus.js +32 -337
  375. package/dist/store/schema/cleo-global/nexus.js.map +1 -1
  376. package/dist/store/schema/cleo-global/skills.d.ts +16 -0
  377. package/dist/store/schema/cleo-global/skills.d.ts.map +1 -1
  378. package/dist/store/schema/cleo-global/skills.js +11 -0
  379. package/dist/store/schema/cleo-global/skills.js.map +1 -1
  380. package/dist/store/schema/{cleo-project → cleo-global}/telemetry.d.ts +33 -17
  381. package/dist/store/schema/cleo-global/telemetry.d.ts.map +1 -0
  382. package/dist/store/schema/{cleo-project → cleo-global}/telemetry.js +30 -18
  383. package/dist/store/schema/cleo-global/telemetry.js.map +1 -0
  384. package/dist/store/schema/cleo-project/audit.d.ts +8 -8
  385. package/dist/store/schema/cleo-project/audit.d.ts.map +1 -1
  386. package/dist/store/schema/cleo-project/audit.js +2 -6
  387. package/dist/store/schema/cleo-project/audit.js.map +1 -1
  388. package/dist/store/schema/cleo-project/docs.d.ts +1 -1
  389. package/dist/store/schema/cleo-project/index.d.ts +29 -12
  390. package/dist/store/schema/cleo-project/index.d.ts.map +1 -1
  391. package/dist/store/schema/cleo-project/index.js +29 -12
  392. package/dist/store/schema/cleo-project/index.js.map +1 -1
  393. package/dist/store/schema/cleo-project/lifecycle.d.ts +2 -2
  394. package/dist/store/schema/cleo-project/nexus-graph.d.ts +1067 -0
  395. package/dist/store/schema/cleo-project/nexus-graph.d.ts.map +1 -0
  396. package/dist/store/schema/cleo-project/nexus-graph.js +407 -0
  397. package/dist/store/schema/cleo-project/nexus-graph.js.map +1 -0
  398. package/dist/store/schema/cleo-project/provenance-orphans.d.ts +385 -0
  399. package/dist/store/schema/cleo-project/provenance-orphans.d.ts.map +1 -0
  400. package/dist/store/schema/cleo-project/provenance-orphans.js +142 -0
  401. package/dist/store/schema/cleo-project/provenance-orphans.js.map +1 -0
  402. package/dist/store/schema/cleo-project/provenance-rest.d.ts +1 -1
  403. package/dist/store/schema/cleo-project/runtime.d.ts +1 -1
  404. package/dist/store/schema/cleo-project/tasks-core-batch2.d.ts +1 -1
  405. package/dist/store/schema/cleo-project/tasks-core.d.ts +3 -3
  406. package/dist/store/schema/cleo-shared/brain.d.ts +711 -494
  407. package/dist/store/schema/cleo-shared/brain.d.ts.map +1 -1
  408. package/dist/store/schema/cleo-shared/brain.js +215 -134
  409. package/dist/store/schema/cleo-shared/brain.js.map +1 -1
  410. package/dist/store/schema/conduit-schema.d.ts +63 -51
  411. package/dist/store/schema/conduit-schema.d.ts.map +1 -1
  412. package/dist/store/schema/conduit-schema.js +23 -11
  413. package/dist/store/schema/conduit-schema.js.map +1 -1
  414. package/dist/store/schema/goal.d.ts +3 -2
  415. package/dist/store/schema/goal.d.ts.map +1 -1
  416. package/dist/store/schema/goal.js +3 -2
  417. package/dist/store/schema/goal.js.map +1 -1
  418. package/dist/store/schema/index.d.ts +1 -0
  419. package/dist/store/schema/index.d.ts.map +1 -1
  420. package/dist/store/schema/index.js +1 -0
  421. package/dist/store/schema/index.js.map +1 -1
  422. package/dist/store/schema/lifecycle.d.ts +2 -2
  423. package/dist/store/schema/memory-schema.d.ts +2 -2
  424. package/dist/store/schema/nexus-schema.d.ts +174 -115
  425. package/dist/store/schema/nexus-schema.d.ts.map +1 -1
  426. package/dist/store/schema/nexus-schema.js +175 -55
  427. package/dist/store/schema/nexus-schema.js.map +1 -1
  428. package/dist/store/schema/provenance/releases.d.ts +1 -1
  429. package/dist/store/schema/schema-utils.d.ts +78 -0
  430. package/dist/store/schema/schema-utils.d.ts.map +1 -0
  431. package/dist/store/schema/schema-utils.js +49 -0
  432. package/dist/store/schema/schema-utils.js.map +1 -0
  433. package/dist/store/schema/skills-schema.d.ts +81 -44
  434. package/dist/store/schema/skills-schema.d.ts.map +1 -1
  435. package/dist/store/schema/skills-schema.js +49 -16
  436. package/dist/store/schema/skills-schema.js.map +1 -1
  437. package/dist/store/schema/tasks.d.ts +3 -3
  438. package/dist/store/skills-db.d.ts +90 -50
  439. package/dist/store/skills-db.d.ts.map +1 -1
  440. package/dist/store/skills-db.js +132 -146
  441. package/dist/store/skills-db.js.map +1 -1
  442. package/dist/store/sqlite-backup.d.ts +2 -2
  443. package/dist/store/sqlite-backup.d.ts.map +1 -1
  444. package/dist/store/sqlite-backup.js +11 -10
  445. package/dist/store/sqlite-backup.js.map +1 -1
  446. package/dist/store/sqlite-data-accessor.d.ts.map +1 -1
  447. package/dist/store/sqlite-data-accessor.js +25 -18
  448. package/dist/store/sqlite-data-accessor.js.map +1 -1
  449. package/dist/store/sqlite.d.ts +72 -12
  450. package/dist/store/sqlite.d.ts.map +1 -1
  451. package/dist/store/sqlite.js +153 -89
  452. package/dist/store/sqlite.js.map +1 -1
  453. package/dist/store/tasks-schema.d.ts +4 -0
  454. package/dist/store/tasks-schema.d.ts.map +1 -1
  455. package/dist/store/tasks-schema.js +60 -0
  456. package/dist/store/tasks-schema.js.map +1 -1
  457. package/dist/store/tasks-sqlite.d.ts +2 -2
  458. package/dist/store/tasks-sqlite.d.ts.map +1 -1
  459. package/dist/store/tasks-sqlite.js +10 -5
  460. package/dist/store/tasks-sqlite.js.map +1 -1
  461. package/dist/store/umbrella-data-accessor.d.ts +17 -6
  462. package/dist/store/umbrella-data-accessor.d.ts.map +1 -1
  463. package/dist/store/umbrella-data-accessor.js +8 -8
  464. package/dist/store/umbrella-data-accessor.js.map +1 -1
  465. package/dist/store/validation-schemas.d.ts +241 -208
  466. package/dist/store/validation-schemas.d.ts.map +1 -1
  467. package/dist/system/health.d.ts.map +1 -1
  468. package/dist/system/health.js +11 -6
  469. package/dist/system/health.js.map +1 -1
  470. package/dist/system/project-health.d.ts.map +1 -1
  471. package/dist/system/project-health.js +58 -12
  472. package/dist/system/project-health.js.map +1 -1
  473. package/dist/tasks/add.d.ts +8 -0
  474. package/dist/tasks/add.d.ts.map +1 -1
  475. package/dist/tasks/add.js +101 -0
  476. package/dist/tasks/add.js.map +1 -1
  477. package/dist/tasks/cancelled-child-waiver-audit.d.ts +47 -0
  478. package/dist/tasks/cancelled-child-waiver-audit.d.ts.map +1 -0
  479. package/dist/tasks/cancelled-child-waiver-audit.js +34 -0
  480. package/dist/tasks/cancelled-child-waiver-audit.js.map +1 -0
  481. package/dist/tasks/complete.d.ts +22 -2
  482. package/dist/tasks/complete.d.ts.map +1 -1
  483. package/dist/tasks/complete.js +71 -6
  484. package/dist/tasks/complete.js.map +1 -1
  485. package/dist/tasks/compute-task-view.js +1 -1
  486. package/dist/tasks/session-scope.d.ts +5 -0
  487. package/dist/tasks/session-scope.d.ts.map +1 -1
  488. package/dist/tasks/session-scope.js +4 -0
  489. package/dist/tasks/session-scope.js.map +1 -1
  490. package/dist/tools/guard.d.ts +71 -1
  491. package/dist/tools/guard.d.ts.map +1 -1
  492. package/dist/tools/guard.js +73 -1
  493. package/dist/tools/guard.js.map +1 -1
  494. package/dist/tools/index.d.ts +21 -0
  495. package/dist/tools/index.d.ts.map +1 -1
  496. package/dist/tools/index.js +25 -0
  497. package/dist/tools/index.js.map +1 -1
  498. package/dist/upgrade.d.ts.map +1 -1
  499. package/dist/upgrade.js +22 -13
  500. package/dist/upgrade.js.map +1 -1
  501. package/dist/workgraph/containment.js +18 -18
  502. package/dist/workgraph/relations.js +2 -2
  503. package/dist/worktree/list.d.ts +1 -1
  504. package/dist/worktree/list.d.ts.map +1 -1
  505. package/dist/worktree/list.js +19 -21
  506. package/dist/worktree/list.js.map +1 -1
  507. package/dist/worktree-export.d.ts +18 -0
  508. package/dist/worktree-export.d.ts.map +1 -0
  509. package/dist/worktree-export.js +18 -0
  510. package/dist/worktree-export.js.map +1 -0
  511. package/migrations/drizzle-agent-registry/20260412000000_initial-global-agent-registry/migration.sql +29 -0
  512. package/migrations/drizzle-brain/20260601000001_t11522-brain-task-observations/migration.sql +28 -0
  513. package/migrations/drizzle-brain/20260601000002_t11522-inline-only-brain-tables/migration.sql +75 -0
  514. package/migrations/drizzle-cleo-global/20260531000001_t11363-consolidation-cleo-global/migration.sql +49 -144
  515. package/migrations/drizzle-cleo-global/20260531000001_t11363-consolidation-cleo-global/snapshot.json +8 -8
  516. package/migrations/drizzle-cleo-global/20260531000002_t11546-brain-usage-log/migration.sql +16 -0
  517. package/migrations/drizzle-cleo-global/20260601000001_t11544-skills-usage-project-id/migration.sql +12 -0
  518. package/migrations/drizzle-cleo-global/20260602000001_t11622-agent-registry-rename/migration.sql +80 -0
  519. package/migrations/drizzle-cleo-project/20260531000001_t11363-consolidation-cleo-project/migration.sql +26 -167
  520. package/migrations/drizzle-cleo-project/20260531000001_t11363-consolidation-cleo-project/snapshot.json +8 -8
  521. package/migrations/drizzle-cleo-project/20260531000002_t11546-brain-usage-log/migration.sql +21 -0
  522. package/migrations/drizzle-cleo-project/20260601000001_t11549-agent-credentials-brain-release-links/migration.sql +49 -0
  523. package/migrations/drizzle-cleo-project/20260601000002_t11538-project-nexus-graph/migration.sql +140 -0
  524. package/migrations/drizzle-cleo-project/20260602000002_t11649-token-usage-transport-mcp/migration.sql +146 -0
  525. package/migrations/drizzle-conduit/20260601000003_t11523-conduit-inline-schema/migration.sql +82 -0
  526. package/migrations/drizzle-nexus/20260421200001_t1165-baseline-reset/migration.sql +26 -8
  527. package/migrations/drizzle-nexus/20260601000001_t11545-nexus-relation-weights-partition/migration.sql +97 -0
  528. package/package.json +43 -11
  529. package/scripts/install-supervisor-binary.mjs +50 -201
  530. package/scripts/napi-binary-picker.mjs +267 -0
  531. package/dist/agents/agent-registry.d.ts.map +0 -1
  532. package/dist/agents/agent-registry.js.map +0 -1
  533. package/dist/store/data-safety.d.ts +0 -92
  534. package/dist/store/data-safety.d.ts.map +0 -1
  535. package/dist/store/data-safety.js +0 -274
  536. package/dist/store/data-safety.js.map +0 -1
  537. package/dist/store/schema/cleo-global/signaldock.d.ts.map +0 -1
  538. package/dist/store/schema/cleo-global/signaldock.js.map +0 -1
  539. package/dist/store/schema/cleo-project/telemetry.d.ts.map +0 -1
  540. package/dist/store/schema/cleo-project/telemetry.js.map +0 -1
  541. package/dist/store/schema/signaldock-schema.d.ts.map +0 -1
  542. package/dist/store/schema/signaldock-schema.js.map +0 -1
  543. package/dist/store/signaldock-sqlite.d.ts +0 -173
  544. package/dist/store/signaldock-sqlite.d.ts.map +0 -1
  545. package/dist/store/signaldock-sqlite.js +0 -445
  546. package/dist/store/signaldock-sqlite.js.map +0 -1
  547. package/migrations/drizzle-nexus/20260318205558_initial/migration.sql +0 -46
  548. package/migrations/drizzle-nexus/20260412000001_t529-nexus-graph-tables/migration.sql +0 -49
  549. package/migrations/drizzle-nexus/20260415000001_t622-project-registry-paths/migration.sql +0 -12
  550. package/migrations/drizzle-nexus/20260419000001_t998-nexus-plasticity/migration.sql +0 -13
  551. package/migrations/drizzle-nexus/20260423052640_t1077-add-user-profile-table/migration.sql +0 -16
  552. package/migrations/drizzle-nexus/20260423052640_t1077-add-user-profile-table/snapshot.json +0 -1531
  553. package/migrations/drizzle-nexus/20260424140538_t1148-add-sigils-table/migration.sql +0 -13
  554. package/migrations/drizzle-nexus/20260424140538_t1148-add-sigils-table/snapshot.json +0 -1652
  555. package/migrations/drizzle-nexus/20260504000001_t1839-fts5-nexus-symbols/migration.sql +0 -68
  556. package/migrations/drizzle-nexus/20260507135519_t9163-nexus-is-external/migration.sql +0 -20
  557. package/migrations/drizzle-nexus/20260507135519_t9163-nexus-is-external/snapshot.json +0 -1652
  558. package/migrations/drizzle-nexus/20260526222449_t11025-project-id-aliases/migration.sql +0 -16
  559. package/migrations/drizzle-signaldock/20260412000000_initial-global-signaldock/migration.sql +0 -209
  560. package/migrations/drizzle-signaldock/20260412000000_initial-global-signaldock/snapshot.json +0 -2060
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nexus-graph.d.ts","sourceRoot":"","sources":["../../../../src/store/schema/cleo-project/nexus-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAWH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,2WA2CnB,CAAC;AAEX,6DAA6D;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,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nF,MAAM,MAAM,iBAAiB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC;AACnE,sFAAsF;AACtF,MAAM,MAAM,oBAAoB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC"}
@@ -0,0 +1,407 @@
1
+ /**
2
+ * Project-scope `cleo.db` — consolidated **nexus code-graph** domain (4 tables).
3
+ *
4
+ * ## Residency move (ADR-090 · T11538 — residency step 1)
5
+ *
6
+ * The four per-project code/knowledge-graph tables — `nexus_nodes`,
7
+ * `nexus_relations`, `nexus_contracts`, `nexus_code_index` (ADR-090 "Category A")
8
+ * — wrongly lived in the GLOBAL-scope `cleo.db` (`../cleo-global/nexus.ts`),
9
+ * each carrying a redundant `project_id text NOT NULL` soft FK to
10
+ * `nexus_project_registry`. Per ADR-090 §2.1 they MUST reside in the consolidated
11
+ * PROJECT-scope `cleo.db` (`<projectRoot>/.cleo/cleo.db`) so that `.cleo/`
12
+ * becomes the complete portable living brain (tasks + memory + conduit + docs +
13
+ * code-graph).
14
+ *
15
+ * This module authors that **target shape** for the PROJECT scope. It is
16
+ * purely ADDITIVE: it DEFINES the four tables (minus `project_id`) so the
17
+ * type-checker and the project-scope schema barrel see them. It does NOT yet
18
+ * remove the global copies, move data, or rewire the live accessor — those are:
19
+ * - T11539: remove the four tables from `cleo-global/nexus.ts` + the
20
+ * extract-by-project data move (nexus global table count 10 → 6).
21
+ * - T11545: partition the Hebbian plasticity columns out of `nexus_relations`
22
+ * into the sibling `nexus_relation_weights` table (ADR-090 §5.3). That table
23
+ * also belongs in THIS module and MUST land with the move, not after — until
24
+ * then the plasticity columns (`weight`, `last_accessed_at`,
25
+ * `co_accessed_count`) stay inline on `nexus_relations` as they are in the
26
+ * global source.
27
+ *
28
+ * ## `project_id` DROPPED (ADR-090 §2.1)
29
+ *
30
+ * The `project_id` column is REMOVED from all four tables — scope is now
31
+ * implicit in which project's `.cleo/cleo.db` is open. Consequently every
32
+ * `idx_*_project*` index that LED with `project_id` is dropped or collapsed:
33
+ * - `idx_nexus_nodes_project` → dropped.
34
+ * - `idx_nexus_nodes_project_kind(project_id, kind)` → collapses to the
35
+ * already-present `idx_nexus_nodes_kind(kind)`.
36
+ * - `idx_nexus_nodes_project_file(project_id, file_path)` → collapses to the
37
+ * already-present `idx_nexus_nodes_file(file_path)`.
38
+ * - `idx_nexus_relations_project` → dropped;
39
+ * `idx_nexus_relations_project_type(project_id, type)` → collapses to
40
+ * `idx_nexus_relations_type(type)`.
41
+ * - `idx_nexus_contracts_project` → dropped;
42
+ * `idx_nexus_contracts_project_type(project_id, type)` → collapses to
43
+ * `idx_nexus_contracts_type(type)`.
44
+ * - `idx_nexus_code_index_project` → dropped.
45
+ * Every other column, index, and intra-graph soft FK is preserved BYTE-FOR-BYTE
46
+ * from the global source.
47
+ *
48
+ * ## FK reconciliation — intra-scope soft FKs preserved (ADR-090 §2.1)
49
+ *
50
+ * All graph references are intra-scope (within the same project DB) and stay
51
+ * plain `text` soft FKs exactly as in the global source — the graph stores
52
+ * unresolved external module specifiers in the same columns, so they were never
53
+ * enforced FKs:
54
+ * - `nexus_relations.{source_id,target_id}` → `nexus_nodes.id`.
55
+ * - `nexus_nodes.{parent_id,community_id}` → `nexus_nodes.id`.
56
+ * - `nexus_contracts.{source_symbol_id,route_node_id}` → `nexus_nodes.id`.
57
+ * Post-split these tables hold NO machine-specific absolute paths and NO
58
+ * cross-scope refs, so they are move-safe (ADR-090 §4 portability).
59
+ *
60
+ * ## E10 typing — inherited unchanged from the global source
61
+ *
62
+ * The enum const arrays ({@link NEXUS_NODE_KINDS}, {@link NEXUS_RELATION_TYPES},
63
+ * {@link NEXUS_CONTRACT_TYPES}, {@link CODE_INDEX_KINDS}) and typed booleans
64
+ * (`is_exported`, `is_external`, `exported` with `{ mode: 'boolean' }`) are
65
+ * re-minted here verbatim to keep this scope module self-contained, mirroring
66
+ * how `../cleo-global/nexus.ts` mints them in-module (no cross-package
67
+ * contracts SSoT exists for these). The two barrels live in DISJOINT Drizzle
68
+ * namespaces (`CleoProjectSchemaTypes` vs `CleoGlobalSchemaTypes` in
69
+ * `store/dual-scope-db.ts`), so the duplicated identifiers never collide.
70
+ *
71
+ * @task T11538
72
+ * @epic T11535
73
+ * @saga T11242
74
+ * @see ../cleo-global/nexus.ts (the GLOBAL source these four tables move OUT of)
75
+ * @see docs/migration/sqlite-schema-canonical.md §4 · §5b
76
+ * @see cleo docs fetch adr-090-nexus-graph-residency-split
77
+ */
78
+ import { sql } from 'drizzle-orm';
79
+ import { index, integer, real, sqliteTable, text } from 'drizzle-orm/sqlite-core';
80
+ // ---------------------------------------------------------------------------
81
+ // E10 §5b — enum const arrays minted in-module (no cross-package contracts SSoT).
82
+ // Mirrors ../cleo-global/nexus.ts verbatim; values are the SSoT for the exodus
83
+ // `CHECK (col IN (...))` lists derived from these identifiers.
84
+ // ---------------------------------------------------------------------------
85
+ /**
86
+ * All node kind values — matches `GraphNodeKind` in `@cleocode/contracts`.
87
+ * Kept as a const tuple for the Drizzle enum column. Ordering intentional:
88
+ * structural → module → callable → type → value-level → language-specific →
89
+ * graph-level → legacy.
90
+ *
91
+ * @task T11538 (project-scope target shape) · T529 (original)
92
+ */
93
+ export const NEXUS_NODE_KINDS = [
94
+ // Structural
95
+ 'file',
96
+ 'folder',
97
+ // Module-level
98
+ 'module',
99
+ 'namespace',
100
+ // Callable
101
+ 'function',
102
+ 'method',
103
+ 'constructor',
104
+ // Type hierarchy
105
+ 'class',
106
+ 'interface',
107
+ 'struct',
108
+ 'trait',
109
+ 'impl',
110
+ 'type_alias',
111
+ 'enum',
112
+ // Value-level
113
+ 'property',
114
+ 'constant',
115
+ 'variable',
116
+ 'static',
117
+ 'record',
118
+ 'delegate',
119
+ // Language-specific constructs
120
+ 'macro',
121
+ 'union',
122
+ 'typedef',
123
+ 'annotation',
124
+ 'template',
125
+ // Graph-level (synthetic nodes from analysis phases)
126
+ 'community',
127
+ 'process',
128
+ 'route',
129
+ // External references
130
+ 'tool',
131
+ 'section',
132
+ // Legacy (kept for T506 compatibility)
133
+ 'import',
134
+ 'export',
135
+ 'type',
136
+ ];
137
+ /**
138
+ * All relation type values — matches `GraphRelationType` in `@cleocode/contracts`.
139
+ *
140
+ * @task T11538 (project-scope target shape) · T529 (original)
141
+ */
142
+ export const NEXUS_RELATION_TYPES = [
143
+ // Structural
144
+ 'contains',
145
+ // Definition / usage
146
+ 'defines',
147
+ 'imports',
148
+ 'accesses',
149
+ // Callable
150
+ 'calls',
151
+ // Type hierarchy
152
+ 'extends',
153
+ 'implements',
154
+ 'method_overrides',
155
+ 'method_implements',
156
+ // Class structure
157
+ 'has_method',
158
+ 'has_property',
159
+ // Graph-level (synthetic, from analysis phases)
160
+ 'member_of',
161
+ 'step_in_process',
162
+ // Web / API
163
+ 'handles_route',
164
+ 'fetches',
165
+ // Tool / agent
166
+ 'handles_tool',
167
+ 'entry_point_of',
168
+ // Wrapping / delegation
169
+ 'wraps',
170
+ // Data access
171
+ 'queries',
172
+ // Cross-graph (brain link)
173
+ 'documents',
174
+ 'applies_to',
175
+ // Plasticity co-access relations (T998)
176
+ 'co_changed',
177
+ 'co_cited_in_task',
178
+ ];
179
+ /**
180
+ * All contract type values for cross-project API extraction.
181
+ *
182
+ * @task T11538 (project-scope target shape) · T1065 (original)
183
+ */
184
+ export const NEXUS_CONTRACT_TYPES = ['http', 'grpc', 'topic'];
185
+ /**
186
+ * Legal `nexus_code_index.kind` values — tree-sitter symbol capture kinds.
187
+ *
188
+ * E10 §5b: `code_index.kind` was bare `text('kind')`. The legal set is the
189
+ * symbol-kind taxonomy documented on the source column (the tree-sitter capture
190
+ * groups): structural / module / callable / type-hierarchy / value-level
191
+ * constructs. Kept as an in-module const so the exodus CHECK derives from this
192
+ * identifier rather than a hand-typed literal.
193
+ *
194
+ * @task T11538 (project-scope target shape) · T11361 (global source)
195
+ */
196
+ export const CODE_INDEX_KINDS = [
197
+ 'function',
198
+ 'method',
199
+ 'class',
200
+ 'interface',
201
+ 'type',
202
+ 'enum',
203
+ 'variable',
204
+ 'constant',
205
+ 'module',
206
+ 'import',
207
+ 'export',
208
+ 'struct',
209
+ 'trait',
210
+ 'impl',
211
+ ];
212
+ // ---------------------------------------------------------------------------
213
+ // Code-intelligence graph (4 tables · project scope · no project_id)
214
+ // ---------------------------------------------------------------------------
215
+ /**
216
+ * `nexus_nodes` — one row per symbol or structural element in the code
217
+ * intelligence graph. PROJECT-scope: `project_id` dropped (ADR-090 §2.1) —
218
+ * scope is implicit in the owning `.cleo/cleo.db`.
219
+ *
220
+ * @task T11538 (project-scope target shape) · T11361 (global source) · T529 (original)
221
+ */
222
+ export const nexusNodes = sqliteTable('nexus_nodes', {
223
+ /** Stable node ID (`<filePath>::<name>` / `<filePath>` / `community:<n>` / `process:<slug>`). */
224
+ id: text('id').primaryKey(),
225
+ /** Node kind from {@link NEXUS_NODE_KINDS} (E10 §5a — already enum-typed). */
226
+ kind: text('kind', { enum: NEXUS_NODE_KINDS }).notNull(),
227
+ /** Human-readable display label. */
228
+ label: text('label').notNull(),
229
+ /** Symbol name as it appears in source; NULL for file/folder nodes. */
230
+ name: text('name'),
231
+ /** File path relative to project root; NULL for community/process nodes. */
232
+ filePath: text('file_path'),
233
+ /** Start line (1-based); NULL for structural nodes. */
234
+ startLine: integer('start_line'),
235
+ /** End line (1-based); NULL for structural nodes. */
236
+ endLine: integer('end_line'),
237
+ /** Source language (typescript, python, go, rust, …). */
238
+ language: text('language'),
239
+ /** Whether the symbol is publicly exported (E10 §3a — typed boolean). */
240
+ isExported: integer('is_exported', { mode: 'boolean' }).notNull().default(false),
241
+ /** Parent node id for nested symbols (intra-nexus soft FK → nexus_nodes.id). */
242
+ parentId: text('parent_id'),
243
+ /** JSON array of parameter name strings (serialized TEXT). */
244
+ parametersJson: text('parameters_json'),
245
+ /** Return-type annotation text. */
246
+ returnType: text('return_type'),
247
+ /** First line of the leading TSDoc/JSDoc comment. */
248
+ docSummary: text('doc_summary'),
249
+ /** Community membership id (soft FK → the community node's nexus_nodes.id). */
250
+ communityId: text('community_id'),
251
+ /** JSON blob for kind-specific metadata (serialized TEXT). */
252
+ metaJson: text('meta_json'),
253
+ /** Whether this node is an external/unresolved module (E10 §3a — typed boolean). */
254
+ isExternal: integer('is_external', { mode: 'boolean' }).notNull().default(false),
255
+ /** ISO-8601 UTC last-indexed instant (canonical TEXT, §4). */
256
+ indexedAt: text('indexed_at').notNull().default(sql `(datetime('now'))`),
257
+ }, (table) => [
258
+ index('idx_nexus_nodes_kind').on(table.kind),
259
+ index('idx_nexus_nodes_file').on(table.filePath),
260
+ index('idx_nexus_nodes_name').on(table.name),
261
+ index('idx_nexus_nodes_community').on(table.communityId),
262
+ index('idx_nexus_nodes_parent').on(table.parentId),
263
+ index('idx_nexus_nodes_exported').on(table.isExported),
264
+ index('idx_nexus_nodes_is_external').on(table.isExternal),
265
+ ]);
266
+ /**
267
+ * `nexus_relations` — one row per directed graph edge. PROJECT-scope:
268
+ * `project_id` dropped (ADR-090 §2.1). The Hebbian plasticity columns
269
+ * (`weight`, `last_accessed_at`, `co_accessed_count`) were PARTITIONED out into
270
+ * the sibling {@link nexusRelationWeights} table by T11545 (ADR-090 §5.3).
271
+ *
272
+ * @task T11545 (plasticity partition) · T11538 (project-scope target shape) · T11361 (global source) · T529 (original)
273
+ */
274
+ export const nexusRelations = sqliteTable('nexus_relations', {
275
+ /** UUID v4 row identifier. */
276
+ id: text('id').primaryKey(),
277
+ /** Source node id (intra-nexus soft FK → nexus_nodes.id). */
278
+ sourceId: text('source_id').notNull(),
279
+ /** Target node id or raw module specifier (intra-nexus soft FK → nexus_nodes.id). */
280
+ targetId: text('target_id').notNull(),
281
+ /** Semantic relation type from {@link NEXUS_RELATION_TYPES} (E10 §5a). */
282
+ type: text('type', { enum: NEXUS_RELATION_TYPES }).notNull(),
283
+ /** Extractor confidence [0.0, 1.0]. */
284
+ confidence: real('confidence').notNull(),
285
+ /** Human-readable note explaining why this relation was emitted. */
286
+ reason: text('reason'),
287
+ /** Step index within an execution flow (for step_in_process relations). */
288
+ step: integer('step'),
289
+ /** ISO-8601 UTC last-indexed instant (canonical TEXT, §4). */
290
+ indexedAt: text('indexed_at').notNull().default(sql `(datetime('now'))`),
291
+ // T998 plasticity columns (`weight`, `last_accessed_at`, `co_accessed_count`)
292
+ // PARTITIONED out into the sibling `nexus_relation_weights` table by T11545
293
+ // (ADR-090 §5.3). See {@link nexusRelationWeights}.
294
+ }, (table) => [
295
+ index('idx_nexus_relations_source').on(table.sourceId),
296
+ index('idx_nexus_relations_target').on(table.targetId),
297
+ index('idx_nexus_relations_type').on(table.type),
298
+ index('idx_nexus_relations_source_type').on(table.sourceId, table.type),
299
+ index('idx_nexus_relations_target_type').on(table.targetId, table.type),
300
+ index('idx_nexus_relations_confidence').on(table.confidence),
301
+ ]);
302
+ /**
303
+ * `nexus_relation_weights` — plasticity weights for `nexus_relations` edges
304
+ * (Hebbian co-access, T998). PROJECT-scope sibling 1:1 table keyed by
305
+ * `relation_id`, partitioned out of `nexus_relations` by T11545 (ADR-090 §5.3)
306
+ * to keep the read-mostly structural graph row narrow and isolate the
307
+ * write-heavy plasticity hot path.
308
+ *
309
+ * A relation has at most one weights row; rows are created lazily on the first
310
+ * co-access strengthening event (UPSERT in `nexus-plasticity.ts`), so absence
311
+ * means "never strengthened" (treat as weight 0.0). `relation_id` is an
312
+ * intra-scope soft FK to `nexus_relations.id` (symmetric with the graph's
313
+ * soft-FK convention — no DB-level FK). Move-safe (no absolute paths, no
314
+ * cross-scope refs) per ADR-090 §4.
315
+ *
316
+ * @task T11545 (project-scope target shape) · T998 (original plasticity columns)
317
+ * @epic T11535
318
+ */
319
+ export const nexusRelationWeights = sqliteTable('nexus_relation_weights', {
320
+ /** Soft FK → `nexus_relations.id` (intra-scope). Primary key (1:1). */
321
+ relationId: text('relation_id').primaryKey(),
322
+ /** Plasticity weight in [0.0, 1.0] (T998 Hebbian co-access strengthening). */
323
+ weight: real('weight').notNull().default(0.0),
324
+ /** ISO-8601 UTC last co-access strengthening instant; NULL until first strengthen. */
325
+ lastAccessedAt: text('last_accessed_at'),
326
+ /** Number of co-access strengthening events. */
327
+ coAccessedCount: integer('co_accessed_count').notNull().default(0),
328
+ }, (table) => [
329
+ index('idx_nexus_relation_weights_last_accessed').on(table.lastAccessedAt),
330
+ index('idx_nexus_relation_weights_weight').on(table.weight),
331
+ ]);
332
+ /**
333
+ * `nexus_contracts` — HTTP/gRPC/topic contract registry extracted from the
334
+ * project's code. PROJECT-scope: `project_id` dropped (ADR-090 §2.1).
335
+ *
336
+ * @task T11538 (project-scope target shape) · T11361 (global source) · T1065 (original)
337
+ */
338
+ export const nexusContracts = sqliteTable('nexus_contracts', {
339
+ /** Unique contract id. Primary key. */
340
+ contractId: text('contract_id').primaryKey(),
341
+ /** Contract type from {@link NEXUS_CONTRACT_TYPES} (E10 §5a). */
342
+ type: text('type', { enum: NEXUS_CONTRACT_TYPES }).notNull(),
343
+ /** Path or endpoint identifier. */
344
+ path: text('path').notNull(),
345
+ /** HTTP/gRPC method; NULL for topics. */
346
+ method: text('method'),
347
+ /** Request schema as JSON string (serialized TEXT). */
348
+ requestSchemaJson: text('request_schema_json').notNull().default('{}'),
349
+ /** Response schema as JSON string (serialized TEXT). */
350
+ responseSchemaJson: text('response_schema_json').notNull().default('{}'),
351
+ /** Source symbol id (soft FK → nexus_nodes.id). */
352
+ sourceSymbolId: text('source_symbol_id'),
353
+ /** Route node id (soft FK → nexus_nodes.id). */
354
+ routeNodeId: text('route_node_id'),
355
+ /** Extraction confidence [0..1]. */
356
+ confidence: real('confidence').notNull().default(1.0),
357
+ /** Human-readable description. */
358
+ description: text('description'),
359
+ /** ISO-8601 UTC creation instant (canonical TEXT, §4). */
360
+ createdAt: text('created_at').notNull().default(sql `(datetime('now'))`),
361
+ /** ISO-8601 UTC last-update instant (canonical TEXT, §4). */
362
+ updatedAt: text('updated_at').notNull().default(sql `(datetime('now'))`),
363
+ }, (table) => [
364
+ index('idx_nexus_contracts_type').on(table.type),
365
+ index('idx_nexus_contracts_path').on(table.path),
366
+ index('idx_nexus_contracts_method').on(table.method),
367
+ index('idx_nexus_contracts_source_symbol').on(table.sourceSymbolId),
368
+ index('idx_nexus_contracts_created').on(table.createdAt),
369
+ ]);
370
+ /**
371
+ * `nexus_code_index` — persistent index of code symbols extracted by
372
+ * tree-sitter (one row per symbol per file). PROJECT-scope: `project_id`
373
+ * dropped (ADR-090 §2.1).
374
+ *
375
+ * @task T11538 (project-scope target shape) · T11361 (global source)
376
+ */
377
+ export const nexusCodeIndex = sqliteTable('nexus_code_index', {
378
+ /** Stable row identifier (UUID v4). Primary key. */
379
+ id: text('id').primaryKey(),
380
+ /** Relative file path within the project root. */
381
+ filePath: text('file_path').notNull(),
382
+ /** Symbol name as extracted from the AST. */
383
+ symbolName: text('symbol_name').notNull(),
384
+ /** Symbol kind from {@link CODE_INDEX_KINDS} (E10 §5b — was bare TEXT). */
385
+ kind: text('kind', { enum: CODE_INDEX_KINDS }).notNull(),
386
+ /** Start line in the source file (1-based). */
387
+ startLine: integer('start_line').notNull(),
388
+ /** End line in the source file (1-based). */
389
+ endLine: integer('end_line').notNull(),
390
+ /** Source language detected from the file extension. */
391
+ language: text('language').notNull(),
392
+ /** Whether the symbol has an `export` modifier (E10 §3a — typed boolean). */
393
+ exported: integer('exported', { mode: 'boolean' }).default(false),
394
+ /** Parent symbol name for nested declarations; NULL at module scope. */
395
+ parent: text('parent'),
396
+ /** Return-type annotation extracted from the declaration. */
397
+ returnType: text('return_type'),
398
+ /** First line of the leading JSDoc/docstring comment. */
399
+ docSummary: text('doc_summary'),
400
+ /** ISO-8601 UTC last-indexed instant (canonical TEXT, §4). */
401
+ indexedAt: text('indexed_at').notNull(),
402
+ }, (table) => [
403
+ index('idx_nexus_code_index_file').on(table.filePath),
404
+ index('idx_nexus_code_index_symbol').on(table.symbolName),
405
+ index('idx_nexus_code_index_kind').on(table.kind),
406
+ ]);
407
+ //# sourceMappingURL=nexus-graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nexus-graph.js","sourceRoot":"","sources":["../../../../src/store/schema/cleo-project/nexus-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAElF,8EAA8E;AAC9E,kFAAkF;AAClF,+EAA+E;AAC/E,+DAA+D;AAC/D,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,aAAa;IACb,MAAM;IACN,QAAQ;IACR,eAAe;IACf,QAAQ;IACR,WAAW;IACX,WAAW;IACX,UAAU;IACV,QAAQ;IACR,aAAa;IACb,iBAAiB;IACjB,OAAO;IACP,WAAW;IACX,QAAQ;IACR,OAAO;IACP,MAAM;IACN,YAAY;IACZ,MAAM;IACN,cAAc;IACd,UAAU;IACV,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,+BAA+B;IAC/B,OAAO;IACP,OAAO;IACP,SAAS;IACT,YAAY;IACZ,UAAU;IACV,qDAAqD;IACrD,WAAW;IACX,SAAS;IACT,OAAO;IACP,sBAAsB;IACtB,MAAM;IACN,SAAS;IACT,uCAAuC;IACvC,QAAQ;IACR,QAAQ;IACR,MAAM;CACE,CAAC;AAKX;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,aAAa;IACb,UAAU;IACV,qBAAqB;IACrB,SAAS;IACT,SAAS;IACT,UAAU;IACV,WAAW;IACX,OAAO;IACP,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,YAAY;IACZ,cAAc;IACd,gDAAgD;IAChD,WAAW;IACX,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