@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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Global-scope `cleo.db` — consolidated **nexus** domain (10 tables).
2
+ * Global-scope `cleo.db` — consolidated **nexus registry/identity** domain (6 tables).
3
3
  *
4
4
  * Part of the consolidated GLOBAL-scope `cleo.db` target shape authored for
5
5
  * SG-DB-SUBSTRATE-V2 (saga T11242, epic T11245/E2, task T11361). Target-shape
@@ -8,16 +8,25 @@
8
8
  * UNPREFIXED / partially-prefixed names until the exodus migration (T11248)
9
9
  * swaps the substrate to this shape.
10
10
  *
11
+ * ## Nexus code-graph residency move (ADR-090 · T11539 — REMOVED from here)
12
+ *
13
+ * The four per-project code/knowledge-graph tables — `nexus_nodes`,
14
+ * `nexus_relations`, `nexus_contracts`, `nexus_code_index` (ADR-090 "Category A")
15
+ * — were REMOVED from this GLOBAL module and now reside in PROJECT scope
16
+ * (`../cleo-project/nexus-graph.ts`, T11538), dropping the `project_id` column
17
+ * (scope is implicit in which project's `.cleo/cleo.db` is open). This reduces
18
+ * the nexus GLOBAL table count from 10 → 6. The six tables retained here are the
19
+ * genuinely-global "Category B" registry/identity tables (see below). Exodus
20
+ * routes the four graph tables to PROJECT scope per
21
+ * `../exodus/table-name-map.ts` (`NEXUS_GRAPH_PROJECT_TABLES`).
22
+ *
11
23
  * ## Idempotent prefixer (AC1)
12
24
  *
13
- * Five source tables already carry the recognized `nexus_` prefix and are NOT
14
- * double-prefixed: `nexus_audit_log` · `nexus_schema_meta` · `nexus_nodes` ·
15
- * `nexus_relations` · `nexus_contracts`. The remaining five bare tables gain the
16
- * domain prefix at exodus: `project_registry` → `nexus_project_registry` ·
17
- * `project_id_aliases` → `nexus_project_id_aliases` · `user_profile` →
18
- * `nexus_user_profile` · `sigils` → `nexus_sigils` · `code_index` →
19
- * `nexus_code_index` (the relocated tree-sitter symbol index, formerly in
20
- * `nexus.db` alongside the registry).
25
+ * The six retained tables: `nexus_audit_log` · `nexus_schema_meta` already carry
26
+ * the recognized `nexus_` prefix and are NOT double-prefixed. The remaining four
27
+ * bare tables gain the domain prefix at exodus: `project_registry`
28
+ * `nexus_project_registry` · `project_id_aliases` → `nexus_project_id_aliases` ·
29
+ * `user_profile` → `nexus_user_profile` · `sigils` → `nexus_sigils`.
21
30
  *
22
31
  * ## E10 typing applied
23
32
  *
@@ -27,13 +36,11 @@
27
36
  * (the 4 Date non-conformers in §4). They become canonical `text` ISO8601;
28
37
  * the matching `CHECK (col GLOB 'YYYY-MM-DD*')` ships as raw DDL at exodus.
29
38
  * - **§5b enum-like bare TEXT → `{ enum }`:** `nexus_sigils.role` →
30
- * `{ enum: SIGIL_ROLES }` and `nexus_code_index.kind`
31
- * `{ enum: CODE_INDEX_KINDS }`. The const arrays below are minted in-module
32
- * (no cross-package contracts const exists for either) per §5b — the CHECK
33
- * list derives from the identifier, never a hand-typed literal.
34
- * - **§3a already-conformant booleans:** `nexus_nodes.{is_exported,is_external}`
35
- * and `nexus_code_index.exported` keep `{ mode:'boolean' }`; only the SQL
36
- * `CHECK (col IN (0,1))` is added at exodus.
39
+ * `{ enum: SIGIL_ROLES }`. The const array below is minted in-module (no
40
+ * cross-package contracts const exists) per §5b the CHECK list derives from
41
+ * the identifier, never a hand-typed literal. (`nexus_code_index.kind`
42
+ * `{ enum: CODE_INDEX_KINDS }` moved with the graph tables to
43
+ * `../cleo-project/nexus-graph.ts`.)
37
44
  *
38
45
  * ## FK reconciliation to single-file Pattern A (AC4)
39
46
  *
@@ -41,22 +48,23 @@
41
48
  * every cross-table reference; none crossed file boundaries via a real
42
49
  * `.references()`. Under the consolidated GLOBAL `cleo.db` they remain plain
43
50
  * `text` soft FKs:
44
- * - intra-nexus refs (`nexus_nodes.project_id` → `nexus_project_registry`,
45
- * `nexus_relations.{source_id,target_id}` → `nexus_nodes`, `parent_id`)
46
- * stay soft because the source never declared them as enforced FKs and the
47
- * graph stores unresolved external specifiers in the same column.
51
+ * - `nexus_project_id_aliases.canonical_id` → `nexus_project_registry` and
52
+ * `nexus_audit_log.project_id` → `nexus_project_registry` stay soft because
53
+ * the source never declared them as enforced FKs.
48
54
  * - cross-domain refs (`nexus_audit_log.session_id` → project-scope
49
55
  * `tasks_sessions`, `nexus_user_profile.derived_from_message_id` →
50
56
  * `conduit_session_messages`) point at the PROJECT-scope `cleo.db`, so they
51
57
  * CANNOT be native FKs — they remain soft TEXT, resolved by the nexus
52
58
  * accessor. No ATTACH; no cross-file FK.
53
59
  *
54
- * @task T11361
55
- * @epic T11245
60
+ * @task T11361 · T11539 (nexus graph residency removal)
61
+ * @epic T11245 · T11535 (nexus residency)
56
62
  * @saga T11242
63
+ * @see ../cleo-project/nexus-graph.ts (the PROJECT-scope home of the 4 graph tables)
57
64
  * @see docs/migration/sqlite-schema-canonical.md §1 (D1″ · global counts) · §4 · §5b
58
65
  * @see docs/migration/sqlite-schema-columns.json (per-column affinity SSoT)
59
66
  * @see ../nexus-schema.ts · ../code-index.ts (the runtime source modules)
67
+ * @see cleo docs fetch adr-090-nexus-graph-residency-split
60
68
  */
61
69
  /**
62
70
  * Legal `nexus_sigils.role` values — the `.cant` agent role taxonomy.
@@ -73,20 +81,6 @@
73
81
  export declare const SIGIL_ROLES: readonly ["", "orchestrator", "lead", "worker", "subagent", "specialist", "validator"];
74
82
  /** TypeScript union derived from {@link SIGIL_ROLES}. */
75
83
  export type SigilRole = (typeof SIGIL_ROLES)[number];
76
- /**
77
- * Legal `nexus_code_index.kind` values — tree-sitter symbol capture kinds.
78
- *
79
- * E10 §5b: `code_index.kind` was bare `text('kind')`. The legal set is the
80
- * symbol-kind taxonomy documented on the source column (the tree-sitter capture
81
- * groups): structural / module / callable / type-hierarchy / value-level
82
- * constructs. Kept as an in-module const so the exodus CHECK derives from this
83
- * identifier rather than a hand-typed literal.
84
- *
85
- * @task T11361
86
- */
87
- export declare const CODE_INDEX_KINDS: readonly ["function", "method", "class", "interface", "type", "enum", "variable", "constant", "module", "import", "export", "struct", "trait", "impl"];
88
- /** TypeScript union derived from {@link CODE_INDEX_KINDS}. */
89
- export type CodeIndexKind = (typeof CODE_INDEX_KINDS)[number];
90
84
  /**
91
85
  * `nexus_project_registry` — central registry of all CLEO projects known to the
92
86
  * Nexus (one row per project). Bare `project_registry` → `nexus_project_registry`
@@ -678,68 +672,12 @@ export declare const nexusAuditLog: import("drizzle-orm/sqlite-core").SQLiteTabl
678
672
  * @task T11361 (target shape) · T5365 (original)
679
673
  */
680
674
  export declare const nexusSchemaMeta: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
681
- name: "nexus_schema_meta";
682
- schema: undefined;
683
- columns: {
684
- key: import("drizzle-orm/sqlite-core").SQLiteColumn<{
685
- name: string;
686
- tableName: "nexus_schema_meta";
687
- dataType: "string";
688
- data: string;
689
- driverParam: string;
690
- notNull: true;
691
- hasDefault: false;
692
- isPrimaryKey: true;
693
- isAutoincrement: false;
694
- hasRuntimeDefault: false;
695
- enumValues: [string, ...string[]];
696
- baseColumn: never;
697
- identity: undefined;
698
- generated: undefined;
699
- }, {}>;
700
- value: import("drizzle-orm/sqlite-core").SQLiteColumn<{
701
- name: string;
702
- tableName: "nexus_schema_meta";
703
- dataType: "string";
704
- data: string;
705
- driverParam: string;
706
- notNull: true;
707
- hasDefault: false;
708
- isPrimaryKey: false;
709
- isAutoincrement: false;
710
- hasRuntimeDefault: false;
711
- enumValues: [string, ...string[]];
712
- baseColumn: never;
713
- identity: undefined;
714
- generated: undefined;
715
- }, {}>;
716
- };
717
- dialect: "sqlite";
718
- }>;
719
- /**
720
- * All node kind values — matches `GraphNodeKind` in `@cleocode/contracts`.
721
- * Kept as a const tuple for the Drizzle enum column. Ordering intentional:
722
- * structural → module → callable → type → value-level → language-specific →
723
- * graph-level → legacy.
724
- *
725
- * @task T11361 (target shape) · T529 (original)
726
- */
727
- export declare const NEXUS_NODE_KINDS: readonly ["file", "folder", "module", "namespace", "function", "method", "constructor", "class", "interface", "struct", "trait", "impl", "type_alias", "enum", "property", "constant", "variable", "static", "record", "delegate", "macro", "union", "typedef", "annotation", "template", "community", "process", "route", "tool", "section", "import", "export", "type"];
728
- /** TypeScript type derived from {@link NEXUS_NODE_KINDS}. */
729
- export type NexusNodeKind = (typeof NEXUS_NODE_KINDS)[number];
730
- /**
731
- * `nexus_nodes` — one row per symbol or structural element in the code
732
- * intelligence graph. Already domain-prefixed.
733
- *
734
- * @task T11361 (target shape) · T529 (original)
735
- */
736
- export declare const nexusNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
737
- name: "nexus_nodes";
675
+ name: string;
738
676
  schema: undefined;
739
677
  columns: {
740
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
678
+ readonly key: import("drizzle-orm/sqlite-core").SQLiteColumn<{
741
679
  name: string;
742
- tableName: "nexus_nodes";
680
+ tableName: string;
743
681
  dataType: "string";
744
682
  data: string;
745
683
  driverParam: string;
@@ -753,929 +691,9 @@ export declare const nexusNodes: import("drizzle-orm/sqlite-core").SQLiteTableWi
753
691
  identity: undefined;
754
692
  generated: undefined;
755
693
  }, {}>;
756
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
757
- name: string;
758
- tableName: "nexus_nodes";
759
- dataType: "string";
760
- data: string;
761
- driverParam: string;
762
- notNull: true;
763
- hasDefault: false;
764
- isPrimaryKey: false;
765
- isAutoincrement: false;
766
- hasRuntimeDefault: false;
767
- enumValues: [string, ...string[]];
768
- baseColumn: never;
769
- identity: undefined;
770
- generated: undefined;
771
- }, {}>;
772
- kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
773
- name: string;
774
- tableName: "nexus_nodes";
775
- dataType: "string enum";
776
- data: "function" | "file" | "enum" | "folder" | "module" | "namespace" | "method" | "constructor" | "class" | "interface" | "struct" | "trait" | "impl" | "type_alias" | "property" | "constant" | "variable" | "static" | "record" | "delegate" | "macro" | "union" | "typedef" | "annotation" | "template" | "community" | "process" | "route" | "tool" | "section" | "import" | "export" | "type";
777
- driverParam: string;
778
- notNull: true;
779
- hasDefault: false;
780
- isPrimaryKey: false;
781
- isAutoincrement: false;
782
- hasRuntimeDefault: false;
783
- enumValues: ["file", "folder", "module", "namespace", "function", "method", "constructor", "class", "interface", "struct", "trait", "impl", "type_alias", "enum", "property", "constant", "variable", "static", "record", "delegate", "macro", "union", "typedef", "annotation", "template", "community", "process", "route", "tool", "section", "import", "export", "type"];
784
- baseColumn: never;
785
- identity: undefined;
786
- generated: undefined;
787
- }, {}>;
788
- label: import("drizzle-orm/sqlite-core").SQLiteColumn<{
789
- name: string;
790
- tableName: "nexus_nodes";
791
- dataType: "string";
792
- data: string;
793
- driverParam: string;
794
- notNull: true;
795
- hasDefault: false;
796
- isPrimaryKey: false;
797
- isAutoincrement: false;
798
- hasRuntimeDefault: false;
799
- enumValues: [string, ...string[]];
800
- baseColumn: never;
801
- identity: undefined;
802
- generated: undefined;
803
- }, {}>;
804
- name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
805
- name: string;
806
- tableName: "nexus_nodes";
807
- dataType: "string";
808
- data: string;
809
- driverParam: string;
810
- notNull: false;
811
- hasDefault: false;
812
- isPrimaryKey: false;
813
- isAutoincrement: false;
814
- hasRuntimeDefault: false;
815
- enumValues: [string, ...string[]];
816
- baseColumn: never;
817
- identity: undefined;
818
- generated: undefined;
819
- }, {}>;
820
- filePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
821
- name: string;
822
- tableName: "nexus_nodes";
823
- dataType: "string";
824
- data: string;
825
- driverParam: string;
826
- notNull: false;
827
- hasDefault: false;
828
- isPrimaryKey: false;
829
- isAutoincrement: false;
830
- hasRuntimeDefault: false;
831
- enumValues: [string, ...string[]];
832
- baseColumn: never;
833
- identity: undefined;
834
- generated: undefined;
835
- }, {}>;
836
- startLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
837
- name: string;
838
- tableName: "nexus_nodes";
839
- dataType: "number int53";
840
- data: number;
841
- driverParam: number;
842
- notNull: false;
843
- hasDefault: false;
844
- isPrimaryKey: false;
845
- isAutoincrement: false;
846
- hasRuntimeDefault: false;
847
- enumValues: undefined;
848
- baseColumn: never;
849
- identity: undefined;
850
- generated: undefined;
851
- }, {}>;
852
- endLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
853
- name: string;
854
- tableName: "nexus_nodes";
855
- dataType: "number int53";
856
- data: number;
857
- driverParam: number;
858
- notNull: false;
859
- hasDefault: false;
860
- isPrimaryKey: false;
861
- isAutoincrement: false;
862
- hasRuntimeDefault: false;
863
- enumValues: undefined;
864
- baseColumn: never;
865
- identity: undefined;
866
- generated: undefined;
867
- }, {}>;
868
- language: import("drizzle-orm/sqlite-core").SQLiteColumn<{
869
- name: string;
870
- tableName: "nexus_nodes";
871
- dataType: "string";
872
- data: string;
873
- driverParam: string;
874
- notNull: false;
875
- hasDefault: false;
876
- isPrimaryKey: false;
877
- isAutoincrement: false;
878
- hasRuntimeDefault: false;
879
- enumValues: [string, ...string[]];
880
- baseColumn: never;
881
- identity: undefined;
882
- generated: undefined;
883
- }, {}>;
884
- isExported: import("drizzle-orm/sqlite-core").SQLiteColumn<{
885
- name: string;
886
- tableName: "nexus_nodes";
887
- dataType: "boolean";
888
- data: boolean;
889
- driverParam: number;
890
- notNull: true;
891
- hasDefault: true;
892
- isPrimaryKey: false;
893
- isAutoincrement: false;
894
- hasRuntimeDefault: false;
895
- enumValues: undefined;
896
- baseColumn: never;
897
- identity: undefined;
898
- generated: undefined;
899
- }, {}>;
900
- parentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
901
- name: string;
902
- tableName: "nexus_nodes";
903
- dataType: "string";
904
- data: string;
905
- driverParam: string;
906
- notNull: false;
907
- hasDefault: false;
908
- isPrimaryKey: false;
909
- isAutoincrement: false;
910
- hasRuntimeDefault: false;
911
- enumValues: [string, ...string[]];
912
- baseColumn: never;
913
- identity: undefined;
914
- generated: undefined;
915
- }, {}>;
916
- parametersJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
917
- name: string;
918
- tableName: "nexus_nodes";
919
- dataType: "string";
920
- data: string;
921
- driverParam: string;
922
- notNull: false;
923
- hasDefault: false;
924
- isPrimaryKey: false;
925
- isAutoincrement: false;
926
- hasRuntimeDefault: false;
927
- enumValues: [string, ...string[]];
928
- baseColumn: never;
929
- identity: undefined;
930
- generated: undefined;
931
- }, {}>;
932
- returnType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
933
- name: string;
934
- tableName: "nexus_nodes";
935
- dataType: "string";
936
- data: string;
937
- driverParam: string;
938
- notNull: false;
939
- hasDefault: false;
940
- isPrimaryKey: false;
941
- isAutoincrement: false;
942
- hasRuntimeDefault: false;
943
- enumValues: [string, ...string[]];
944
- baseColumn: never;
945
- identity: undefined;
946
- generated: undefined;
947
- }, {}>;
948
- docSummary: import("drizzle-orm/sqlite-core").SQLiteColumn<{
949
- name: string;
950
- tableName: "nexus_nodes";
951
- dataType: "string";
952
- data: string;
953
- driverParam: string;
954
- notNull: false;
955
- hasDefault: false;
956
- isPrimaryKey: false;
957
- isAutoincrement: false;
958
- hasRuntimeDefault: false;
959
- enumValues: [string, ...string[]];
960
- baseColumn: never;
961
- identity: undefined;
962
- generated: undefined;
963
- }, {}>;
964
- communityId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
965
- name: string;
966
- tableName: "nexus_nodes";
967
- dataType: "string";
968
- data: string;
969
- driverParam: string;
970
- notNull: false;
971
- hasDefault: false;
972
- isPrimaryKey: false;
973
- isAutoincrement: false;
974
- hasRuntimeDefault: false;
975
- enumValues: [string, ...string[]];
976
- baseColumn: never;
977
- identity: undefined;
978
- generated: undefined;
979
- }, {}>;
980
- metaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
981
- name: string;
982
- tableName: "nexus_nodes";
983
- dataType: "string";
984
- data: string;
985
- driverParam: string;
986
- notNull: false;
987
- hasDefault: false;
988
- isPrimaryKey: false;
989
- isAutoincrement: false;
990
- hasRuntimeDefault: false;
991
- enumValues: [string, ...string[]];
992
- baseColumn: never;
993
- identity: undefined;
994
- generated: undefined;
995
- }, {}>;
996
- isExternal: import("drizzle-orm/sqlite-core").SQLiteColumn<{
997
- name: string;
998
- tableName: "nexus_nodes";
999
- dataType: "boolean";
1000
- data: boolean;
1001
- driverParam: number;
1002
- notNull: true;
1003
- hasDefault: true;
1004
- isPrimaryKey: false;
1005
- isAutoincrement: false;
1006
- hasRuntimeDefault: false;
1007
- enumValues: undefined;
1008
- baseColumn: never;
1009
- identity: undefined;
1010
- generated: undefined;
1011
- }, {}>;
1012
- indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1013
- name: string;
1014
- tableName: "nexus_nodes";
1015
- dataType: "string";
1016
- data: string;
1017
- driverParam: string;
1018
- notNull: true;
1019
- hasDefault: true;
1020
- isPrimaryKey: false;
1021
- isAutoincrement: false;
1022
- hasRuntimeDefault: false;
1023
- enumValues: [string, ...string[]];
1024
- baseColumn: never;
1025
- identity: undefined;
1026
- generated: undefined;
1027
- }, {}>;
1028
- };
1029
- dialect: "sqlite";
1030
- }>;
1031
- /**
1032
- * All relation type values — matches `GraphRelationType` in `@cleocode/contracts`.
1033
- *
1034
- * @task T11361 (target shape) · T529 (original)
1035
- */
1036
- export declare const NEXUS_RELATION_TYPES: readonly ["contains", "defines", "imports", "accesses", "calls", "extends", "implements", "method_overrides", "method_implements", "has_method", "has_property", "member_of", "step_in_process", "handles_route", "fetches", "handles_tool", "entry_point_of", "wraps", "queries", "documents", "applies_to", "co_changed", "co_cited_in_task"];
1037
- /** TypeScript type derived from {@link NEXUS_RELATION_TYPES}. */
1038
- export type NexusRelationType = (typeof NEXUS_RELATION_TYPES)[number];
1039
- /**
1040
- * `nexus_relations` — one row per directed graph edge. Already domain-prefixed.
1041
- *
1042
- * @task T11361 (target shape) · T529 (original)
1043
- */
1044
- export declare const nexusRelations: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1045
- name: "nexus_relations";
1046
- schema: undefined;
1047
- columns: {
1048
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1049
- name: string;
1050
- tableName: "nexus_relations";
1051
- dataType: "string";
1052
- data: string;
1053
- driverParam: string;
1054
- notNull: true;
1055
- hasDefault: false;
1056
- isPrimaryKey: true;
1057
- isAutoincrement: false;
1058
- hasRuntimeDefault: false;
1059
- enumValues: [string, ...string[]];
1060
- baseColumn: never;
1061
- identity: undefined;
1062
- generated: undefined;
1063
- }, {}>;
1064
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1065
- name: string;
1066
- tableName: "nexus_relations";
1067
- dataType: "string";
1068
- data: string;
1069
- driverParam: string;
1070
- notNull: true;
1071
- hasDefault: false;
1072
- isPrimaryKey: false;
1073
- isAutoincrement: false;
1074
- hasRuntimeDefault: false;
1075
- enumValues: [string, ...string[]];
1076
- baseColumn: never;
1077
- identity: undefined;
1078
- generated: undefined;
1079
- }, {}>;
1080
- sourceId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1081
- name: string;
1082
- tableName: "nexus_relations";
1083
- dataType: "string";
1084
- data: string;
1085
- driverParam: string;
1086
- notNull: true;
1087
- hasDefault: false;
1088
- isPrimaryKey: false;
1089
- isAutoincrement: false;
1090
- hasRuntimeDefault: false;
1091
- enumValues: [string, ...string[]];
1092
- baseColumn: never;
1093
- identity: undefined;
1094
- generated: undefined;
1095
- }, {}>;
1096
- targetId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1097
- name: string;
1098
- tableName: "nexus_relations";
1099
- dataType: "string";
1100
- data: string;
1101
- driverParam: string;
1102
- notNull: true;
1103
- hasDefault: false;
1104
- isPrimaryKey: false;
1105
- isAutoincrement: false;
1106
- hasRuntimeDefault: false;
1107
- enumValues: [string, ...string[]];
1108
- baseColumn: never;
1109
- identity: undefined;
1110
- generated: undefined;
1111
- }, {}>;
1112
- type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1113
- name: string;
1114
- tableName: "nexus_relations";
1115
- dataType: "string enum";
1116
- data: "contains" | "defines" | "imports" | "accesses" | "calls" | "extends" | "implements" | "method_overrides" | "method_implements" | "has_method" | "has_property" | "member_of" | "step_in_process" | "handles_route" | "fetches" | "handles_tool" | "entry_point_of" | "wraps" | "queries" | "documents" | "applies_to" | "co_changed" | "co_cited_in_task";
1117
- driverParam: string;
1118
- notNull: true;
1119
- hasDefault: false;
1120
- isPrimaryKey: false;
1121
- isAutoincrement: false;
1122
- hasRuntimeDefault: false;
1123
- enumValues: ["contains", "defines", "imports", "accesses", "calls", "extends", "implements", "method_overrides", "method_implements", "has_method", "has_property", "member_of", "step_in_process", "handles_route", "fetches", "handles_tool", "entry_point_of", "wraps", "queries", "documents", "applies_to", "co_changed", "co_cited_in_task"];
1124
- baseColumn: never;
1125
- identity: undefined;
1126
- generated: undefined;
1127
- }, {}>;
1128
- confidence: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1129
- name: string;
1130
- tableName: "nexus_relations";
1131
- dataType: "number double";
1132
- data: number;
1133
- driverParam: number;
1134
- notNull: true;
1135
- hasDefault: false;
1136
- isPrimaryKey: false;
1137
- isAutoincrement: false;
1138
- hasRuntimeDefault: false;
1139
- enumValues: undefined;
1140
- baseColumn: never;
1141
- identity: undefined;
1142
- generated: undefined;
1143
- }, {}>;
1144
- reason: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1145
- name: string;
1146
- tableName: "nexus_relations";
1147
- dataType: "string";
1148
- data: string;
1149
- driverParam: string;
1150
- notNull: false;
1151
- hasDefault: false;
1152
- isPrimaryKey: false;
1153
- isAutoincrement: false;
1154
- hasRuntimeDefault: false;
1155
- enumValues: [string, ...string[]];
1156
- baseColumn: never;
1157
- identity: undefined;
1158
- generated: undefined;
1159
- }, {}>;
1160
- step: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1161
- name: string;
1162
- tableName: "nexus_relations";
1163
- dataType: "number int53";
1164
- data: number;
1165
- driverParam: number;
1166
- notNull: false;
1167
- hasDefault: false;
1168
- isPrimaryKey: false;
1169
- isAutoincrement: false;
1170
- hasRuntimeDefault: false;
1171
- enumValues: undefined;
1172
- baseColumn: never;
1173
- identity: undefined;
1174
- generated: undefined;
1175
- }, {}>;
1176
- indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1177
- name: string;
1178
- tableName: "nexus_relations";
1179
- dataType: "string";
1180
- data: string;
1181
- driverParam: string;
1182
- notNull: true;
1183
- hasDefault: true;
1184
- isPrimaryKey: false;
1185
- isAutoincrement: false;
1186
- hasRuntimeDefault: false;
1187
- enumValues: [string, ...string[]];
1188
- baseColumn: never;
1189
- identity: undefined;
1190
- generated: undefined;
1191
- }, {}>;
1192
- weight: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1193
- name: string;
1194
- tableName: "nexus_relations";
1195
- dataType: "number double";
1196
- data: number;
1197
- driverParam: number;
1198
- notNull: false;
1199
- hasDefault: true;
1200
- isPrimaryKey: false;
1201
- isAutoincrement: false;
1202
- hasRuntimeDefault: false;
1203
- enumValues: undefined;
1204
- baseColumn: never;
1205
- identity: undefined;
1206
- generated: undefined;
1207
- }, {}>;
1208
- lastAccessedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1209
- name: string;
1210
- tableName: "nexus_relations";
1211
- dataType: "string";
1212
- data: string;
1213
- driverParam: string;
1214
- notNull: false;
1215
- hasDefault: false;
1216
- isPrimaryKey: false;
1217
- isAutoincrement: false;
1218
- hasRuntimeDefault: false;
1219
- enumValues: [string, ...string[]];
1220
- baseColumn: never;
1221
- identity: undefined;
1222
- generated: undefined;
1223
- }, {}>;
1224
- coAccessedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1225
- name: string;
1226
- tableName: "nexus_relations";
1227
- dataType: "number int53";
1228
- data: number;
1229
- driverParam: number;
1230
- notNull: false;
1231
- hasDefault: true;
1232
- isPrimaryKey: false;
1233
- isAutoincrement: false;
1234
- hasRuntimeDefault: false;
1235
- enumValues: undefined;
1236
- baseColumn: never;
1237
- identity: undefined;
1238
- generated: undefined;
1239
- }, {}>;
1240
- };
1241
- dialect: "sqlite";
1242
- }>;
1243
- /**
1244
- * All contract type values for cross-project API extraction.
1245
- *
1246
- * @task T11361 (target shape) · T1065 (original)
1247
- */
1248
- export declare const NEXUS_CONTRACT_TYPES: readonly ["http", "grpc", "topic"];
1249
- /** TypeScript type derived from {@link NEXUS_CONTRACT_TYPES}. */
1250
- export type NexusContractType = (typeof NEXUS_CONTRACT_TYPES)[number];
1251
- /**
1252
- * `nexus_contracts` — cross-project HTTP/gRPC/topic contract registry. Already
1253
- * domain-prefixed.
1254
- *
1255
- * @task T11361 (target shape) · T1065 (original)
1256
- */
1257
- export declare const nexusContracts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1258
- name: "nexus_contracts";
1259
- schema: undefined;
1260
- columns: {
1261
- contractId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1262
- name: string;
1263
- tableName: "nexus_contracts";
1264
- dataType: "string";
1265
- data: string;
1266
- driverParam: string;
1267
- notNull: true;
1268
- hasDefault: false;
1269
- isPrimaryKey: true;
1270
- isAutoincrement: false;
1271
- hasRuntimeDefault: false;
1272
- enumValues: [string, ...string[]];
1273
- baseColumn: never;
1274
- identity: undefined;
1275
- generated: undefined;
1276
- }, {}>;
1277
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1278
- name: string;
1279
- tableName: "nexus_contracts";
1280
- dataType: "string";
1281
- data: string;
1282
- driverParam: string;
1283
- notNull: true;
1284
- hasDefault: false;
1285
- isPrimaryKey: false;
1286
- isAutoincrement: false;
1287
- hasRuntimeDefault: false;
1288
- enumValues: [string, ...string[]];
1289
- baseColumn: never;
1290
- identity: undefined;
1291
- generated: undefined;
1292
- }, {}>;
1293
- type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1294
- name: string;
1295
- tableName: "nexus_contracts";
1296
- dataType: "string enum";
1297
- data: "http" | "grpc" | "topic";
1298
- driverParam: string;
1299
- notNull: true;
1300
- hasDefault: false;
1301
- isPrimaryKey: false;
1302
- isAutoincrement: false;
1303
- hasRuntimeDefault: false;
1304
- enumValues: ["http", "grpc", "topic"];
1305
- baseColumn: never;
1306
- identity: undefined;
1307
- generated: undefined;
1308
- }, {}>;
1309
- path: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1310
- name: string;
1311
- tableName: "nexus_contracts";
1312
- dataType: "string";
1313
- data: string;
1314
- driverParam: string;
1315
- notNull: true;
1316
- hasDefault: false;
1317
- isPrimaryKey: false;
1318
- isAutoincrement: false;
1319
- hasRuntimeDefault: false;
1320
- enumValues: [string, ...string[]];
1321
- baseColumn: never;
1322
- identity: undefined;
1323
- generated: undefined;
1324
- }, {}>;
1325
- method: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1326
- name: string;
1327
- tableName: "nexus_contracts";
1328
- dataType: "string";
1329
- data: string;
1330
- driverParam: string;
1331
- notNull: false;
1332
- hasDefault: false;
1333
- isPrimaryKey: false;
1334
- isAutoincrement: false;
1335
- hasRuntimeDefault: false;
1336
- enumValues: [string, ...string[]];
1337
- baseColumn: never;
1338
- identity: undefined;
1339
- generated: undefined;
1340
- }, {}>;
1341
- requestSchemaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1342
- name: string;
1343
- tableName: "nexus_contracts";
1344
- dataType: "string";
1345
- data: string;
1346
- driverParam: string;
1347
- notNull: true;
1348
- hasDefault: true;
1349
- isPrimaryKey: false;
1350
- isAutoincrement: false;
1351
- hasRuntimeDefault: false;
1352
- enumValues: [string, ...string[]];
1353
- baseColumn: never;
1354
- identity: undefined;
1355
- generated: undefined;
1356
- }, {}>;
1357
- responseSchemaJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1358
- name: string;
1359
- tableName: "nexus_contracts";
1360
- dataType: "string";
1361
- data: string;
1362
- driverParam: string;
1363
- notNull: true;
1364
- hasDefault: true;
1365
- isPrimaryKey: false;
1366
- isAutoincrement: false;
1367
- hasRuntimeDefault: false;
1368
- enumValues: [string, ...string[]];
1369
- baseColumn: never;
1370
- identity: undefined;
1371
- generated: undefined;
1372
- }, {}>;
1373
- sourceSymbolId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1374
- name: string;
1375
- tableName: "nexus_contracts";
1376
- dataType: "string";
1377
- data: string;
1378
- driverParam: string;
1379
- notNull: false;
1380
- hasDefault: false;
1381
- isPrimaryKey: false;
1382
- isAutoincrement: false;
1383
- hasRuntimeDefault: false;
1384
- enumValues: [string, ...string[]];
1385
- baseColumn: never;
1386
- identity: undefined;
1387
- generated: undefined;
1388
- }, {}>;
1389
- routeNodeId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1390
- name: string;
1391
- tableName: "nexus_contracts";
1392
- dataType: "string";
1393
- data: string;
1394
- driverParam: string;
1395
- notNull: false;
1396
- hasDefault: false;
1397
- isPrimaryKey: false;
1398
- isAutoincrement: false;
1399
- hasRuntimeDefault: false;
1400
- enumValues: [string, ...string[]];
1401
- baseColumn: never;
1402
- identity: undefined;
1403
- generated: undefined;
1404
- }, {}>;
1405
- confidence: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1406
- name: string;
1407
- tableName: "nexus_contracts";
1408
- dataType: "number double";
1409
- data: number;
1410
- driverParam: number;
1411
- notNull: true;
1412
- hasDefault: true;
1413
- isPrimaryKey: false;
1414
- isAutoincrement: false;
1415
- hasRuntimeDefault: false;
1416
- enumValues: undefined;
1417
- baseColumn: never;
1418
- identity: undefined;
1419
- generated: undefined;
1420
- }, {}>;
1421
- description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1422
- name: string;
1423
- tableName: "nexus_contracts";
1424
- dataType: "string";
1425
- data: string;
1426
- driverParam: string;
1427
- notNull: false;
1428
- hasDefault: false;
1429
- isPrimaryKey: false;
1430
- isAutoincrement: false;
1431
- hasRuntimeDefault: false;
1432
- enumValues: [string, ...string[]];
1433
- baseColumn: never;
1434
- identity: undefined;
1435
- generated: undefined;
1436
- }, {}>;
1437
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1438
- name: string;
1439
- tableName: "nexus_contracts";
1440
- dataType: "string";
1441
- data: string;
1442
- driverParam: string;
1443
- notNull: true;
1444
- hasDefault: true;
1445
- isPrimaryKey: false;
1446
- isAutoincrement: false;
1447
- hasRuntimeDefault: false;
1448
- enumValues: [string, ...string[]];
1449
- baseColumn: never;
1450
- identity: undefined;
1451
- generated: undefined;
1452
- }, {}>;
1453
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1454
- name: string;
1455
- tableName: "nexus_contracts";
1456
- dataType: "string";
1457
- data: string;
1458
- driverParam: string;
1459
- notNull: true;
1460
- hasDefault: true;
1461
- isPrimaryKey: false;
1462
- isAutoincrement: false;
1463
- hasRuntimeDefault: false;
1464
- enumValues: [string, ...string[]];
1465
- baseColumn: never;
1466
- identity: undefined;
1467
- generated: undefined;
1468
- }, {}>;
1469
- };
1470
- dialect: "sqlite";
1471
- }>;
1472
- /**
1473
- * `nexus_code_index` — persistent index of code symbols extracted by
1474
- * tree-sitter (one row per symbol per file). Bare `code_index` →
1475
- * `nexus_code_index` under the AC1 idempotent prefixer (the relocated
1476
- * code-intelligence index that lived in `nexus.db` alongside the registry).
1477
- *
1478
- * @task T11361 (target shape) · original `code-index.ts`
1479
- */
1480
- export declare const nexusCodeIndex: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1481
- name: "nexus_code_index";
1482
- schema: undefined;
1483
- columns: {
1484
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1485
- name: string;
1486
- tableName: "nexus_code_index";
1487
- dataType: "string";
1488
- data: string;
1489
- driverParam: string;
1490
- notNull: true;
1491
- hasDefault: false;
1492
- isPrimaryKey: true;
1493
- isAutoincrement: false;
1494
- hasRuntimeDefault: false;
1495
- enumValues: [string, ...string[]];
1496
- baseColumn: never;
1497
- identity: undefined;
1498
- generated: undefined;
1499
- }, {}>;
1500
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1501
- name: string;
1502
- tableName: "nexus_code_index";
1503
- dataType: "string";
1504
- data: string;
1505
- driverParam: string;
1506
- notNull: true;
1507
- hasDefault: false;
1508
- isPrimaryKey: false;
1509
- isAutoincrement: false;
1510
- hasRuntimeDefault: false;
1511
- enumValues: [string, ...string[]];
1512
- baseColumn: never;
1513
- identity: undefined;
1514
- generated: undefined;
1515
- }, {}>;
1516
- filePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1517
- name: string;
1518
- tableName: "nexus_code_index";
1519
- dataType: "string";
1520
- data: string;
1521
- driverParam: string;
1522
- notNull: true;
1523
- hasDefault: false;
1524
- isPrimaryKey: false;
1525
- isAutoincrement: false;
1526
- hasRuntimeDefault: false;
1527
- enumValues: [string, ...string[]];
1528
- baseColumn: never;
1529
- identity: undefined;
1530
- generated: undefined;
1531
- }, {}>;
1532
- symbolName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1533
- name: string;
1534
- tableName: "nexus_code_index";
1535
- dataType: "string";
1536
- data: string;
1537
- driverParam: string;
1538
- notNull: true;
1539
- hasDefault: false;
1540
- isPrimaryKey: false;
1541
- isAutoincrement: false;
1542
- hasRuntimeDefault: false;
1543
- enumValues: [string, ...string[]];
1544
- baseColumn: never;
1545
- identity: undefined;
1546
- generated: undefined;
1547
- }, {}>;
1548
- kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1549
- name: string;
1550
- tableName: "nexus_code_index";
1551
- dataType: "string enum";
1552
- data: "function" | "enum" | "module" | "method" | "class" | "interface" | "struct" | "trait" | "impl" | "constant" | "variable" | "import" | "export" | "type";
1553
- driverParam: string;
1554
- notNull: true;
1555
- hasDefault: false;
1556
- isPrimaryKey: false;
1557
- isAutoincrement: false;
1558
- hasRuntimeDefault: false;
1559
- enumValues: ["function", "method", "class", "interface", "type", "enum", "variable", "constant", "module", "import", "export", "struct", "trait", "impl"];
1560
- baseColumn: never;
1561
- identity: undefined;
1562
- generated: undefined;
1563
- }, {}>;
1564
- startLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1565
- name: string;
1566
- tableName: "nexus_code_index";
1567
- dataType: "number int53";
1568
- data: number;
1569
- driverParam: number;
1570
- notNull: true;
1571
- hasDefault: false;
1572
- isPrimaryKey: false;
1573
- isAutoincrement: false;
1574
- hasRuntimeDefault: false;
1575
- enumValues: undefined;
1576
- baseColumn: never;
1577
- identity: undefined;
1578
- generated: undefined;
1579
- }, {}>;
1580
- endLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1581
- name: string;
1582
- tableName: "nexus_code_index";
1583
- dataType: "number int53";
1584
- data: number;
1585
- driverParam: number;
1586
- notNull: true;
1587
- hasDefault: false;
1588
- isPrimaryKey: false;
1589
- isAutoincrement: false;
1590
- hasRuntimeDefault: false;
1591
- enumValues: undefined;
1592
- baseColumn: never;
1593
- identity: undefined;
1594
- generated: undefined;
1595
- }, {}>;
1596
- language: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1597
- name: string;
1598
- tableName: "nexus_code_index";
1599
- dataType: "string";
1600
- data: string;
1601
- driverParam: string;
1602
- notNull: true;
1603
- hasDefault: false;
1604
- isPrimaryKey: false;
1605
- isAutoincrement: false;
1606
- hasRuntimeDefault: false;
1607
- enumValues: [string, ...string[]];
1608
- baseColumn: never;
1609
- identity: undefined;
1610
- generated: undefined;
1611
- }, {}>;
1612
- exported: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1613
- name: string;
1614
- tableName: "nexus_code_index";
1615
- dataType: "boolean";
1616
- data: boolean;
1617
- driverParam: number;
1618
- notNull: false;
1619
- hasDefault: true;
1620
- isPrimaryKey: false;
1621
- isAutoincrement: false;
1622
- hasRuntimeDefault: false;
1623
- enumValues: undefined;
1624
- baseColumn: never;
1625
- identity: undefined;
1626
- generated: undefined;
1627
- }, {}>;
1628
- parent: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1629
- name: string;
1630
- tableName: "nexus_code_index";
1631
- dataType: "string";
1632
- data: string;
1633
- driverParam: string;
1634
- notNull: false;
1635
- hasDefault: false;
1636
- isPrimaryKey: false;
1637
- isAutoincrement: false;
1638
- hasRuntimeDefault: false;
1639
- enumValues: [string, ...string[]];
1640
- baseColumn: never;
1641
- identity: undefined;
1642
- generated: undefined;
1643
- }, {}>;
1644
- returnType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1645
- name: string;
1646
- tableName: "nexus_code_index";
1647
- dataType: "string";
1648
- data: string;
1649
- driverParam: string;
1650
- notNull: false;
1651
- hasDefault: false;
1652
- isPrimaryKey: false;
1653
- isAutoincrement: false;
1654
- hasRuntimeDefault: false;
1655
- enumValues: [string, ...string[]];
1656
- baseColumn: never;
1657
- identity: undefined;
1658
- generated: undefined;
1659
- }, {}>;
1660
- docSummary: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1661
- name: string;
1662
- tableName: "nexus_code_index";
1663
- dataType: "string";
1664
- data: string;
1665
- driverParam: string;
1666
- notNull: false;
1667
- hasDefault: false;
1668
- isPrimaryKey: false;
1669
- isAutoincrement: false;
1670
- hasRuntimeDefault: false;
1671
- enumValues: [string, ...string[]];
1672
- baseColumn: never;
1673
- identity: undefined;
1674
- generated: undefined;
1675
- }, {}>;
1676
- indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
694
+ readonly value: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1677
695
  name: string;
1678
- tableName: "nexus_code_index";
696
+ tableName: string;
1679
697
  dataType: "string";
1680
698
  data: string;
1681
699
  driverParam: string;
@@ -1919,7 +937,7 @@ export declare const nexusSigils: import("drizzle-orm/sqlite-core").SQLiteTableW
1919
937
  name: string;
1920
938
  tableName: "nexus_sigils";
1921
939
  dataType: "string enum";
1922
- data: "" | "orchestrator" | "validator" | "lead" | "worker" | "subagent" | "specialist";
940
+ data: "" | "orchestrator" | "lead" | "worker" | "subagent" | "specialist" | "validator";
1923
941
  driverParam: string;
1924
942
  notNull: true;
1925
943
  hasDefault: true;
@@ -2014,22 +1032,6 @@ export type NewNexusAuditLogRow = typeof nexusAuditLog.$inferInsert;
2014
1032
  export type NexusSchemaMetaRow = typeof nexusSchemaMeta.$inferSelect;
2015
1033
  /** Row type for `nexus_schema_meta` INSERT (target shape). */
2016
1034
  export type NewNexusSchemaMetaRow = typeof nexusSchemaMeta.$inferInsert;
2017
- /** Row type for `nexus_nodes` SELECT (target shape). */
2018
- export type NexusNodeRow = typeof nexusNodes.$inferSelect;
2019
- /** Row type for `nexus_nodes` INSERT (target shape). */
2020
- export type NewNexusNodeRow = typeof nexusNodes.$inferInsert;
2021
- /** Row type for `nexus_relations` SELECT (target shape). */
2022
- export type NexusRelationRow = typeof nexusRelations.$inferSelect;
2023
- /** Row type for `nexus_relations` INSERT (target shape). */
2024
- export type NewNexusRelationRow = typeof nexusRelations.$inferInsert;
2025
- /** Row type for `nexus_contracts` SELECT (target shape). */
2026
- export type NexusContractRow = typeof nexusContracts.$inferSelect;
2027
- /** Row type for `nexus_contracts` INSERT (target shape). */
2028
- export type NewNexusContractRow = typeof nexusContracts.$inferInsert;
2029
- /** Row type for `nexus_code_index` SELECT (target shape). */
2030
- export type NexusCodeIndexRow = typeof nexusCodeIndex.$inferSelect;
2031
- /** Row type for `nexus_code_index` INSERT (target shape). */
2032
- export type NewNexusCodeIndexRow = typeof nexusCodeIndex.$inferInsert;
2033
1035
  /** Row type for `nexus_user_profile` SELECT (target shape). */
2034
1036
  export type NexusUserProfileRow = typeof nexusUserProfile.$inferSelect;
2035
1037
  /** Row type for `nexus_user_profile` INSERT (target shape). */