@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,18 +1,25 @@
1
1
  /**
2
2
  * SQLite store via drizzle-orm/node-sqlite + node:sqlite (DatabaseSync).
3
3
  *
4
- * Zero native npm dependencies, 100% cross-platform (Windows/Linux/macOS).
5
- * File-backed SQLite with WAL mode for multi-process concurrent access.
6
- * Database stored at .cleo/tasks.db.
4
+ * ## E6-L1 thin-facade migration (T11521)
7
5
  *
8
- * Architecture: node:sqlite provides the synchronous file-backed SQLite engine,
9
- * wrapped via drizzle-orm/node-sqlite for a fully synchronous interface. All
10
- * writes go directly to disk through SQLite's native WAL mechanism -- no
11
- * saveToFile() pattern needed.
6
+ * `getDb()` and `getNativeTasksDb()` are now thin facades that delegate the
7
+ * database open to {@link openDualScopeDb}('project', cwd) the canonical
8
+ * dual-scope chokepoint introduced by E3/E4 (T11512/T11517). This ensures:
9
+ *
10
+ * - Every tasks.db open flows through the single pragma SSoT (ADR-068/069).
11
+ * - The worktree-isolation guard (T9806) fires consistently on all opens.
12
+ * - DB Open Guard Gate 3 (`scripts/lint-no-direct-db-open.mjs`) stays green.
13
+ *
14
+ * The legacy tables (`tasks`, `sessions`, `schema_meta`, …) are still created
15
+ * by `runMigrations` (drizzle-tasks folder) inside the shared `cleo.db` file
16
+ * during the E3→E6 transition period, co-existing with the new `tasks_tasks`
17
+ * prefix tables from the consolidated schema. E6-L7/L8 will remove them.
12
18
  *
13
19
  * @epic T4454
14
20
  * @task T4817 - node:sqlite engine migration (ADR-006, ADR-010)
15
21
  * @task T4810 - Data loss prevention guards
22
+ * @task T11521 - E6-L1: route getDb through openDualScopeDb (SG-DB-SUBSTRATE-V2)
16
23
  */
17
24
  import type { NodeSQLiteDatabase } from 'drizzle-orm/node-sqlite';
18
25
  export { type DatabaseSync, openNativeDatabase } from './sqlite-native.js';
@@ -21,13 +28,30 @@ import * as schema from './tasks-schema.js';
21
28
  /** Schema version for newly created databases. Single source of truth. */
22
29
  export declare const SQLITE_SCHEMA_VERSION = "2.0.0";
23
30
  /**
24
- * Get the path to the SQLite database file.
31
+ * Get the path to the SQLite database file that {@link getDb} opens.
32
+ *
33
+ * ## E6-L1 (T11521)
34
+ *
35
+ * After the dual-scope migration, `getDb()` opens the consolidated project
36
+ * `cleo.db` via {@link openDualScopeDb}. This function therefore returns the
37
+ * dual-scope `cleo.db` path so that callers checking for the file `getDb()`
38
+ * created (existence / backup / health probes) point at the correct file.
25
39
  */
26
40
  export declare function getDbPath(cwd?: string): string;
27
41
  /**
28
- * Initialize the SQLite database (lazy, singleton).
29
- * Creates the database file and tables if they don't exist.
30
- * Returns the drizzle ORM instance (node-sqlite driver).
42
+ * Open (or return cached) the drizzle tasks-schema handle for the project scope.
43
+ *
44
+ * ## E6-L1 façade (T11521)
45
+ *
46
+ * Delegates the physical DB open to {@link openDualScopeDb}('project', cwd) —
47
+ * the canonical dual-scope chokepoint. The returned `NodeSQLiteDatabase` wraps
48
+ * the same `DatabaseSync` handle as the consolidated `cleo.db` but is typed
49
+ * against the legacy `tasks-schema` (table name `tasks`, etc.) so all existing
50
+ * callers compile without change.
51
+ *
52
+ * The legacy drizzle-tasks migrations are still applied to this handle during
53
+ * the E3→E6 transition, creating the `tasks` table family inside `cleo.db`
54
+ * alongside the new `tasks_tasks` tables. E6-L7/L8 will remove them.
31
55
  *
32
56
  * Uses a promise guard so concurrent callers wait for the same
33
57
  * initialization to complete (migrations are async).
@@ -49,12 +73,33 @@ export declare function resolveMigrationsFolder(): string;
49
73
  export { isSqliteBusy } from './migration-manager.js';
50
74
  /**
51
75
  * Close the database connection and release resources.
76
+ *
77
+ * ## E6-L1 (T11521)
78
+ *
79
+ * Resets the dual-scope cache via {@link _resetDualScopeDbCache} so the next
80
+ * `getDb()` call re-initialises cleanly rather than receiving a stale cached
81
+ * handle whose `DatabaseSync` is already closed (which would produce
82
+ * "database is not open" errors in migration-manager).
83
+ *
84
+ * Without the cache eviction, `openDualScopeDb` would return the stale entry
85
+ * for the same (scope, cwd) key — its `DatabaseSync` already closed by
86
+ * `_nativeDb.close()` below — causing downstream "database is not open" errors
87
+ * in `runMigrations → tableExists` for the very next `getDb()` caller.
52
88
  */
53
89
  export declare function closeDb(): void;
54
90
  /**
55
91
  * Reset database singleton state without saving.
56
92
  * Used during migrations when database file is deleted and recreated.
57
93
  * Safe to call multiple times.
94
+ *
95
+ * ## E6-L1 (T11521)
96
+ *
97
+ * Also resets the dual-scope cache via {@link _resetDualScopeDbCache} so the
98
+ * next `getDb()` opens a fresh handle rather than reusing a stale one.
99
+ * Mirrors the cache-eviction logic in {@link closeDb}.
100
+ *
101
+ * E6-L4 (T11524): scoped to `'project'` so it does not close the shared GLOBAL
102
+ * `cleo.db` handle (nexus/signaldock/skills) — see {@link closeDb}.
58
103
  */
59
104
  export declare function resetDbState(): void;
60
105
  /**
@@ -63,6 +108,16 @@ export declare function resetDbState(): void;
63
108
  export declare function getSchemaVersion(cwd?: string): Promise<string | null>;
64
109
  /**
65
110
  * Check if the database file exists.
111
+ *
112
+ * ## E6-L1 (T11521)
113
+ *
114
+ * After the dual-scope migration, `getDb()` opens `cleo.db` via
115
+ * {@link openDualScopeDb} — not the legacy `tasks.db`. This function now
116
+ * checks for `cleo.db` so that callers (e.g. `migration-sqlite.ts`) correctly
117
+ * detect the E6 database and skip re-migration.
118
+ *
119
+ * {@link getDbPath} still returns the legacy `tasks.db` path for backward-compat
120
+ * callers that specifically need that file (e.g. backup path construction).
66
121
  */
67
122
  export declare function dbExists(cwd?: string): boolean;
68
123
  /**
@@ -73,7 +128,12 @@ export declare function dbExists(cwd?: string): boolean;
73
128
  export declare function getNativeDb(): DatabaseSync | null;
74
129
  /**
75
130
  * Get the underlying node:sqlite DatabaseSync instance for tasks.db.
76
- * Alias for getNativeDb() — mirrors getBrainNativeDb() naming convention.
131
+ *
132
+ * ## E6-L1 façade (T11521)
133
+ *
134
+ * Thin facade delegating to {@link getNativeDb}. After the chokepoint
135
+ * migration the native handle originates from {@link openDualScopeDb} —
136
+ * callers receive the same `DatabaseSync` from `cleo.db`.
77
137
  */
78
138
  export declare function getNativeTasksDb(): DatabaseSync | null;
79
139
  export type { NodeSQLiteDatabase };
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite.d.ts","sourceRoot":"","sources":["../../src/store/sqlite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,OAAO,KAAK,EAAwB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAwBxF,OAAO,EAAE,KAAK,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB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,CAAC,IAAI,CAAC,CAmBvD"}
@@ -1,25 +1,35 @@
1
1
  /**
2
2
  * SQLite store via drizzle-orm/node-sqlite + node:sqlite (DatabaseSync).
3
3
  *
4
- * Zero native npm dependencies, 100% cross-platform (Windows/Linux/macOS).
5
- * File-backed SQLite with WAL mode for multi-process concurrent access.
6
- * Database stored at .cleo/tasks.db.
4
+ * ## E6-L1 thin-facade migration (T11521)
7
5
  *
8
- * Architecture: node:sqlite provides the synchronous file-backed SQLite engine,
9
- * wrapped via drizzle-orm/node-sqlite for a fully synchronous interface. All
10
- * writes go directly to disk through SQLite's native WAL mechanism -- no
11
- * saveToFile() pattern needed.
6
+ * `getDb()` and `getNativeTasksDb()` are now thin facades that delegate the
7
+ * database open to {@link openDualScopeDb}('project', cwd) the canonical
8
+ * dual-scope chokepoint introduced by E3/E4 (T11512/T11517). This ensures:
9
+ *
10
+ * - Every tasks.db open flows through the single pragma SSoT (ADR-068/069).
11
+ * - The worktree-isolation guard (T9806) fires consistently on all opens.
12
+ * - DB Open Guard Gate 3 (`scripts/lint-no-direct-db-open.mjs`) stays green.
13
+ *
14
+ * The legacy tables (`tasks`, `sessions`, `schema_meta`, …) are still created
15
+ * by `runMigrations` (drizzle-tasks folder) inside the shared `cleo.db` file
16
+ * during the E3→E6 transition period, co-existing with the new `tasks_tasks`
17
+ * prefix tables from the consolidated schema. E6-L7/L8 will remove them.
12
18
  *
13
19
  * @epic T4454
14
20
  * @task T4817 - node:sqlite engine migration (ADR-006, ADR-010)
15
21
  * @task T4810 - Data loss prevention guards
22
+ * @task T11521 - E6-L1: route getDb through openDualScopeDb (SG-DB-SUBSTRATE-V2)
16
23
  */
17
- import { copyFileSync, existsSync, mkdirSync, renameSync, unlinkSync } from 'node:fs';
24
+ import { copyFileSync, existsSync, renameSync, unlinkSync } from 'node:fs';
18
25
  import { createRequire } from 'node:module';
19
- import { dirname, join, resolve, sep } from 'node:path';
20
26
  import { eq } from 'drizzle-orm';
21
27
  import { getLogger } from '../logger.js';
22
- import { resolveCleoDir } from '../paths.js';
28
+ // T11521: dual-scope chokepoint all tasks.db opens now flow through here.
29
+ // openDualScopeDb manages the DatabaseSync lifecycle, pragmas, and migrations
30
+ // for the consolidated cleo.db. We extract the native handle and re-wrap it
31
+ // with the legacy tasks-schema drizzle instance for E6 caller compatibility.
32
+ import { _resetDualScopeDbCache, openDualScopeDb, resolveDualScopeDbPath, } from './dual-scope-db.js';
23
33
  import { createSafetyBackup, ensureColumns, migrateWithRetry, reconcileJournal, tableExists, } from './migration-manager.js';
24
34
  import { resolveCorePackageMigrationsFolder } from './resolve-migrations-folder.js';
25
35
  import { listSqliteBackups } from './sqlite-backup.js';
@@ -60,8 +70,6 @@ function _getDrizzle() {
60
70
  }
61
71
  return _drizzle;
62
72
  }
63
- /** Database file name within .cleo/ directory. */
64
- const DB_FILENAME = 'tasks.db';
65
73
  /** Schema version for newly created databases. Single source of truth. */
66
74
  export const SQLITE_SCHEMA_VERSION = '2.0.0';
67
75
  const SCHEMA_VERSION = SQLITE_SCHEMA_VERSION;
@@ -71,13 +79,18 @@ let _nativeDb = null;
71
79
  let _dbPath = null;
72
80
  /** Guard against concurrent initialization (async migration). */
73
81
  let _initPromise = null;
74
- /** Guard: git-tracking check runs only once per process. */
75
- let _gitTrackingChecked = false;
76
82
  /**
77
- * Get the path to the SQLite database file.
83
+ * Get the path to the SQLite database file that {@link getDb} opens.
84
+ *
85
+ * ## E6-L1 (T11521)
86
+ *
87
+ * After the dual-scope migration, `getDb()` opens the consolidated project
88
+ * `cleo.db` via {@link openDualScopeDb}. This function therefore returns the
89
+ * dual-scope `cleo.db` path so that callers checking for the file `getDb()`
90
+ * created (existence / backup / health probes) point at the correct file.
78
91
  */
79
92
  export function getDbPath(cwd) {
80
- return join(resolveCleoDir(cwd), DB_FILENAME);
93
+ return resolveDualScopeDbPath('project', cwd);
81
94
  }
82
95
  /**
83
96
  * Minimum task count in a backup to consider it a valid recovery source.
@@ -101,14 +114,41 @@ const MIN_BACKUP_TASK_COUNT = 10;
101
114
  *
102
115
  * @task T5188
103
116
  */
117
+ /**
118
+ * Count tasks in a backup snapshot, tolerant of the cutover (T11578 · AC1).
119
+ *
120
+ * Post-exodus snapshots of the consolidated `cleo.db` carry the prefixed
121
+ * `tasks_tasks` table; legacy pre-consolidation `tasks.db` snapshots carry the
122
+ * bare `tasks` table. Prefer the prefixed table, falling back to the bare one
123
+ * when the prefixed table is absent, so auto-recovery keeps working across the
124
+ * substrate transition.
125
+ *
126
+ * @param backupDb - Read-only handle to the backup snapshot.
127
+ * @returns Task row count, or 0 if neither table exists / the read fails.
128
+ */
129
+ function countBackupTasks(backupDb) {
130
+ for (const table of ['tasks_tasks', 'tasks']) {
131
+ try {
132
+ const row = backupDb.prepare(`SELECT COUNT(*) as cnt FROM "${table}"`).get();
133
+ return row?.cnt ?? 0;
134
+ }
135
+ catch {
136
+ // Table missing in this snapshot — try the next candidate.
137
+ }
138
+ }
139
+ return 0;
140
+ }
104
141
  async function autoRecoverFromBackup(nativeDb, dbPath, cwd) {
105
142
  // Lazy import openNativeDatabase at runtime to avoid any static-import
106
143
  // binding on sqlite-native.ts at module-init time.
107
144
  const { openNativeDatabase } = await import('./sqlite-native.js');
108
145
  const log = getLogger('sqlite');
109
146
  try {
110
- // Count tasks in current database
111
- const countResult = nativeDb.prepare('SELECT COUNT(*) as cnt FROM tasks').get();
147
+ // Count tasks in current database.
148
+ // T11578 · AC1: the runtime now reads the PREFIXED consolidated table, so the
149
+ // emptiness probe targets `tasks_tasks` (the exodus-fill target) rather than
150
+ // the now-dead bare `tasks` table.
151
+ const countResult = nativeDb.prepare('SELECT COUNT(*) as cnt FROM tasks_tasks').get();
112
152
  const taskCount = countResult?.cnt ?? 0;
113
153
  if (taskCount > 0)
114
154
  return; // Database has data, no recovery needed
@@ -125,8 +165,10 @@ async function autoRecoverFromBackup(nativeDb, dbPath, cwd) {
125
165
  const backupDb = openNativeDatabase(newestBackup.path, { readonly: true, enableWal: false });
126
166
  let backupTaskCount = 0;
127
167
  try {
128
- const backupCount = backupDb.prepare('SELECT COUNT(*) as cnt FROM tasks').get();
129
- backupTaskCount = backupCount?.cnt ?? 0;
168
+ // T11578 · AC1: prefer the PREFIXED consolidated table (post-exodus
169
+ // snapshots) and fall back to the bare `tasks` table for legacy
170
+ // pre-consolidation backups so recovery still works across the cutover.
171
+ backupTaskCount = countBackupTasks(backupDb);
130
172
  }
131
173
  finally {
132
174
  backupDb.close();
@@ -162,7 +204,10 @@ async function autoRecoverFromBackup(nativeDb, dbPath, cwd) {
162
204
  // Rename in place — on the same filesystem this is atomic
163
205
  renameSync(tempPath, dbPath);
164
206
  log.info({ dbPath, backupPath: newestBackup.path, restoredTasks: backupTaskCount }, 'Database auto-recovered from backup successfully.');
165
- // Re-open the restored database — update the native singleton
207
+ // Re-open the restored database — update the native singleton.
208
+ // The dual-scope cache is now stale (its nativeDb was closed above);
209
+ // reset it so the singleton is re-established on next getDb().
210
+ _resetDualScopeDbCache();
166
211
  const restoredNativeDb = openNativeDatabase(dbPath);
167
212
  _nativeDb = restoredNativeDb;
168
213
  // Re-run migrations on restored DB to ensure schema is current
@@ -177,22 +222,31 @@ async function autoRecoverFromBackup(nativeDb, dbPath, cwd) {
177
222
  }
178
223
  }
179
224
  /**
180
- * Initialize the SQLite database (lazy, singleton).
181
- * Creates the database file and tables if they don't exist.
182
- * Returns the drizzle ORM instance (node-sqlite driver).
225
+ * Open (or return cached) the drizzle tasks-schema handle for the project scope.
226
+ *
227
+ * ## E6-L1 façade (T11521)
228
+ *
229
+ * Delegates the physical DB open to {@link openDualScopeDb}('project', cwd) —
230
+ * the canonical dual-scope chokepoint. The returned `NodeSQLiteDatabase` wraps
231
+ * the same `DatabaseSync` handle as the consolidated `cleo.db` but is typed
232
+ * against the legacy `tasks-schema` (table name `tasks`, etc.) so all existing
233
+ * callers compile without change.
234
+ *
235
+ * The legacy drizzle-tasks migrations are still applied to this handle during
236
+ * the E3→E6 transition, creating the `tasks` table family inside `cleo.db`
237
+ * alongside the new `tasks_tasks` tables. E6-L7/L8 will remove them.
183
238
  *
184
239
  * Uses a promise guard so concurrent callers wait for the same
185
240
  * initialization to complete (migrations are async).
186
241
  */
187
242
  export async function getDb(cwd) {
188
- const requestedPath = getDbPath(cwd);
189
243
  // T9961 / T9806: worktree-isolation guard — defense-in-depth for direct
190
- // getDb() callers (61 core handlers) that bypass openCleoDb('tasks', cwd).
244
+ // getDb() callers that bypass openCleoDb('project', cwd).
191
245
  // Fires before any DB file is touched, matching the openCleoDb chokepoint.
192
246
  assertDbPathIsNotWorktreeResident('tasks', cwd);
193
- // T1906: guard against prod-DB writes in test mode
194
- const { assertTestEnv } = await import('./data-accessor.js');
195
- assertTestEnv(requestedPath);
247
+ // Resolve the cleo.db path via the dual-scope helper (same logic as
248
+ // openDualScopeDb uses internally) to drive the singleton key.
249
+ const requestedPath = resolveDualScopeDbPath('project', cwd);
196
250
  // If singleton exists but points to different path, reset it
197
251
  if (_db && _dbPath !== requestedPath) {
198
252
  resetDbState();
@@ -203,19 +257,26 @@ export async function getDb(cwd) {
203
257
  if (_initPromise)
204
258
  return _initPromise;
205
259
  _initPromise = (async () => {
206
- const dbPath = requestedPath;
207
- _dbPath = dbPath;
208
- // Ensure directory exists
209
- mkdirSync(dirname(dbPath), { recursive: true });
210
- // Open file-backed SQLite via node:sqlite with WAL mode.
211
- // openNativeDatabase is re-exported from sqlite-native.ts the actual
212
- // function lives there (zero CLEO imports) so the cycle cannot TDZ it.
213
- const { openNativeDatabase } = await import('./sqlite-native.js');
214
- const nativeDb = openNativeDatabase(dbPath);
260
+ // ── Dual-scope chokepoint delegation (T11521 · E6-L1) ─────────────────
261
+ // openDualScopeDb applies pragma SSoT, creates the directory, runs cleo-project
262
+ // migrations, and manages the singleton cache. We extract its native handle
263
+ // so we can re-wrap it with the legacy tasks-schema for caller compatibility.
264
+ const dualHandle = await openDualScopeDb('project', cwd);
265
+ // Extract the underlying DatabaseSync. Drizzle exposes it via `$client`.
266
+ const nativeDb = dualHandle.db.$client ?? null;
267
+ if (!nativeDb) {
268
+ throw new Error('E6-L1: openDualScopeDb returned a handle without $client — ' +
269
+ 'cannot extract DatabaseSync for legacy tasks-schema wrapping.');
270
+ }
215
271
  _nativeDb = nativeDb;
216
- // Create drizzle ORM wrapper via node-sqlite
272
+ _dbPath = requestedPath;
273
+ // Wrap the native handle with the legacy tasks-schema drizzle instance.
274
+ // This allows all existing callers (using schema.tasks, schema.sessions, etc.)
275
+ // to continue querying the same DatabaseSync without change.
217
276
  const db = _getDrizzle()({ client: nativeDb, schema });
218
- // Run drizzle migrations (creates/updates tables)
277
+ // Run legacy drizzle-tasks migrations against the shared cleo.db handle.
278
+ // During E3→E6 transition these create the old `tasks` table family alongside
279
+ // the new `tasks_tasks` tables from the consolidated schema migration.
219
280
  runMigrations(nativeDb, db);
220
281
  // Migration SQL contains PRAGMA foreign_keys=ON statements.
221
282
  // In test environments, disable FKs after migration to allow test
@@ -229,51 +290,7 @@ export async function getDb(cwd) {
229
290
  // Auto-recovery: detect empty database with available backups (T5188)
230
291
  // Root cause: git-tracked WAL/SHM files get overwritten on branch switch,
231
292
  // causing data loss when the WAL contained uncommitted writes.
232
- await autoRecoverFromBackup(nativeDb, dbPath, cwd);
233
- // Check if tasks.db or its WAL/SHM are dangerously tracked by git (ADR-013, T5158, T5188).
234
- //
235
- // As of ADR-013 §9 (2026-04-07) the canonical resolution is:
236
- // 1. `.cleo/tasks.db` + WAL/SHM and `.cleo/brain.db` + WAL/SHM are
237
- // git-ignored at the project root and untracked via `git rm --cached`.
238
- // 2. Recovery is provided by VACUUM INTO snapshots in
239
- // `.cleo/backups/sqlite/` (auto-rotated, 10 per DB, refreshed on
240
- // every `cleo session end` via the backup-session-end hook).
241
- // 3. Full 4-file snapshots (including config.json + project-info.json)
242
- // are created on demand via `cleo backup add` / listed via
243
- // `cleo backup list` / restored via `cleo restore backup`.
244
- //
245
- // The warning below is retained as a regression guard: if someone
246
- // accidentally re-stages the DB into project git, this warning fires at
247
- // every process startup so they fix it before real data loss occurs.
248
- if (!_gitTrackingChecked) {
249
- _gitTrackingChecked = true;
250
- try {
251
- const { execFileSync } = await import('node:child_process');
252
- const gitCwd = resolve(dbPath, '..', '..');
253
- const filesToCheck = [dbPath, dbPath + '-wal', dbPath + '-shm'];
254
- const log = getLogger('sqlite');
255
- for (const fileToCheck of filesToCheck) {
256
- try {
257
- execFileSync('git', ['ls-files', '--error-unmatch', fileToCheck], {
258
- cwd: gitCwd,
259
- stdio: 'pipe',
260
- });
261
- // If we get here, the file IS tracked — that's dangerous.
262
- const basename = fileToCheck.split(/[\\/]/).pop();
263
- const relPath = fileToCheck.replace(gitCwd + sep, '');
264
- log.warn({ path: fileToCheck }, `${basename} is tracked by project git — this risks data loss on branch switch. ` +
265
- `Resolution (ADR-013 §9): \`git rm --cached ${relPath}\` and rely on ` +
266
- `\`.cleo/backups/sqlite/\` snapshots + \`cleo backup add\` for recovery.`);
267
- }
268
- catch {
269
- // Exit code 1 = not tracked = good
270
- }
271
- }
272
- }
273
- catch {
274
- // git not available, skip check
275
- }
276
- }
293
+ await autoRecoverFromBackup(nativeDb, requestedPath, cwd);
277
294
  // Set singleton only after migrations complete
278
295
  _db = db;
279
296
  return db;
@@ -375,8 +392,30 @@ function runMigrations(nativeDb, db) {
375
392
  }
376
393
  /**
377
394
  * Close the database connection and release resources.
395
+ *
396
+ * ## E6-L1 (T11521)
397
+ *
398
+ * Resets the dual-scope cache via {@link _resetDualScopeDbCache} so the next
399
+ * `getDb()` call re-initialises cleanly rather than receiving a stale cached
400
+ * handle whose `DatabaseSync` is already closed (which would produce
401
+ * "database is not open" errors in migration-manager).
402
+ *
403
+ * Without the cache eviction, `openDualScopeDb` would return the stale entry
404
+ * for the same (scope, cwd) key — its `DatabaseSync` already closed by
405
+ * `_nativeDb.close()` below — causing downstream "database is not open" errors
406
+ * in `runMigrations → tableExists` for the very next `getDb()` caller.
378
407
  */
379
408
  export function closeDb() {
409
+ // Evict the PROJECT-scope dual-scope cache entries so the next openDualScopeDb()
410
+ // call opens a fresh DatabaseSync. Without this, the cache would return the
411
+ // stale handle whose nativeDb we're about to close below.
412
+ //
413
+ // E6-L4 (T11524): scope the eviction to `'project'`. The GLOBAL `cleo.db`
414
+ // handle (nexus/signaldock/skills) now shares this same cache; an unscoped
415
+ // reset here would close the global handle out from under an in-flight nexus
416
+ // query (e.g. nexusSyncAll holding a handle while readProjectMeta opens + closes
417
+ // a project accessor). Global teardown is the job of closeAllDatabases().
418
+ _resetDualScopeDbCache('project');
380
419
  if (_nativeDb) {
381
420
  try {
382
421
  if (_nativeDb.isOpen) {
@@ -384,7 +423,7 @@ export function closeDb() {
384
423
  }
385
424
  }
386
425
  catch {
387
- // Ignore close errors
426
+ // Ignore close errors — _resetDualScopeDbCache already closed it
388
427
  }
389
428
  _nativeDb = null;
390
429
  }
@@ -396,8 +435,18 @@ export function closeDb() {
396
435
  * Reset database singleton state without saving.
397
436
  * Used during migrations when database file is deleted and recreated.
398
437
  * Safe to call multiple times.
438
+ *
439
+ * ## E6-L1 (T11521)
440
+ *
441
+ * Also resets the dual-scope cache via {@link _resetDualScopeDbCache} so the
442
+ * next `getDb()` opens a fresh handle rather than reusing a stale one.
443
+ * Mirrors the cache-eviction logic in {@link closeDb}.
444
+ *
445
+ * E6-L4 (T11524): scoped to `'project'` so it does not close the shared GLOBAL
446
+ * `cleo.db` handle (nexus/signaldock/skills) — see {@link closeDb}.
399
447
  */
400
448
  export function resetDbState() {
449
+ _resetDualScopeDbCache('project');
401
450
  if (_nativeDb) {
402
451
  try {
403
452
  if (_nativeDb.isOpen) {
@@ -405,7 +454,7 @@ export function resetDbState() {
405
454
  }
406
455
  }
407
456
  catch {
408
- // Ignore close errors
457
+ // Ignore close errors — _resetDualScopeDbCache already closed it
409
458
  }
410
459
  _nativeDb = null;
411
460
  }
@@ -426,9 +475,19 @@ export async function getSchemaVersion(cwd) {
426
475
  }
427
476
  /**
428
477
  * Check if the database file exists.
478
+ *
479
+ * ## E6-L1 (T11521)
480
+ *
481
+ * After the dual-scope migration, `getDb()` opens `cleo.db` via
482
+ * {@link openDualScopeDb} — not the legacy `tasks.db`. This function now
483
+ * checks for `cleo.db` so that callers (e.g. `migration-sqlite.ts`) correctly
484
+ * detect the E6 database and skip re-migration.
485
+ *
486
+ * {@link getDbPath} still returns the legacy `tasks.db` path for backward-compat
487
+ * callers that specifically need that file (e.g. backup path construction).
429
488
  */
430
489
  export function dbExists(cwd) {
431
- return existsSync(getDbPath(cwd));
490
+ return existsSync(resolveDualScopeDbPath('project', cwd));
432
491
  }
433
492
  /**
434
493
  * Get the underlying node:sqlite DatabaseSync instance.
@@ -440,7 +499,12 @@ export function getNativeDb() {
440
499
  }
441
500
  /**
442
501
  * Get the underlying node:sqlite DatabaseSync instance for tasks.db.
443
- * Alias for getNativeDb() — mirrors getBrainNativeDb() naming convention.
502
+ *
503
+ * ## E6-L1 façade (T11521)
504
+ *
505
+ * Thin facade delegating to {@link getNativeDb}. After the chokepoint
506
+ * migration the native handle originates from {@link openDualScopeDb} —
507
+ * callers receive the same `DatabaseSync` from `cleo.db`.
444
508
  */
445
509
  export function getNativeTasksDb() {
446
510
  return _nativeDb;
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite.js","sourceRoot":"","sources":["../../src/store/sqlite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAQjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,O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MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,iBAAiB;IACjB,OAAO,EAAE,CAAC;IAEV,yDAAyD;IACzD,IAAI,CAAC;QACH,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC5D,YAAY,EAAE,CAAC;IACjB,CAAC;IAAC,MAAM,CAAC;QACP,8BAA8B;IAChC,CAAC;IAED,yDAAyD;IACzD,IAAI,CAAC;QACH,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAC3D,YAAY,EAAE,CAAC;IACjB,CAAC;IAAC,MAAM,CAAC;QACP,8BAA8B;IAChC,CAAC;AACH,CAAC"}
@@ -16,6 +16,10 @@ export type { AgentErrorLogRow, AgentErrorType, AgentInstanceRow, AgentInstanceS
16
16
  export { AGENT_INSTANCE_STATUSES, AGENT_TYPES, agentErrorLog, agentInstances, } from './schema/agent-schema.js';
17
17
  export type { NewWarpChainInstanceRow, NewWarpChainRow, WarpChainInstanceRow, WarpChainRow, } from './schema/chain-schema.js';
18
18
  export { warpChainInstances, warpChains } from './schema/chain-schema.js';
19
+ export type { NewTasksExternalTaskLinkRow as NewExternalTaskLinkRow, NewTasksSessionRow as NewSessionRow, NewTasksTaskAcceptanceCriteriaHistoryRow as NewTaskAcceptanceCriteriaHistoryRow, NewTasksTaskRow as NewTaskRow, TasksExternalTaskLinkRow as ExternalTaskLinkRow, TasksSessionRow as SessionRow, TasksTaskAcceptanceCriteriaHistoryRow as TaskAcceptanceCriteriaHistoryRow, TasksTaskDependencyRow as TaskDependencyRow, TasksTaskRelationRow as TaskRelationRow, TasksTaskRow as TaskRow, TasksTaskWorkHistoryRow as WorkHistoryRow, } from './schema/cleo-project/tasks-core.js';
20
+ export { tasksAcceptanceProjectionDirty as acceptanceProjectionDirty, tasksAcceptanceProjectionState as acceptanceProjectionState, tasksExternalTaskLinks as externalTaskLinks, tasksSessionHandoffEntries as sessionHandoffEntries, tasksSessions as sessions, tasksTaskAcceptanceCriteria as taskAcceptanceCriteria, tasksTaskAcceptanceCriteriaHistory as taskAcceptanceCriteriaHistory, tasksTaskDependencies as taskDependencies, tasksTaskRelations as taskRelations, tasksTasks as tasks, tasksTaskWorkHistory as taskWorkHistory, } from './schema/cleo-project/tasks-core.js';
21
+ export type { NewTasksEvidenceAcBindingRow as NewEvidenceAcBindingRow, NewTasksTaskLabelRow as NewTaskLabelRow, TasksEvidenceAcBindingRow as EvidenceAcBindingRow, TasksTaskLabelRow as TaskLabelRow, } from './schema/cleo-project/tasks-core-batch2.js';
22
+ export { tasksEvidenceAcBindings as evidenceAcBindings, tasksTaskLabels as taskLabels, } from './schema/cleo-project/tasks-core-batch2.js';
19
23
  export * from './schema/index.js';
20
24
  export { ADR_STATUSES, type AdrStatus, GATE_STATUSES, type GateStatus, isValidStatus, LIFECYCLE_PIPELINE_STATUSES, LIFECYCLE_STAGE_STATUSES, MANIFEST_STATUSES, type ManifestStatus, type PipelineStatus, SESSION_STATUSES, type SessionStatus, type StageStatus, TASK_STATUSES, type TaskStatus, } from './status-registry.js';
21
25
  //# sourceMappingURL=tasks-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tasks-schema.d.ts","sourceRoot":"","sources":["../../src/store/tasks-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,cAAc,GACf,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE1E,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,YAAY,EACZ,KAAK,SAAS,EACd,aAAa,EACb,KAAK,UAAU,EACf,aAAa,EACb,2BAA2B,EAC3B,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"tasks-schema.d.ts","sourceRoot":"","sources":["../../src/store/tasks-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,cAAc,GACf,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG1E,YAAY,EACV,2BAA2B,IAAI,sBAAsB,EACrD,kBAAkB,IAAI,aAAa,EACnC,wCAAwC,IAAI,mCAAmC,EAC/E,eAAe,IAAI,UAAU,EAC7B,wBAAwB,IAAI,mBAAmB,EAC/C,eAAe,IAAI,UAAU,EAC7B,qCAAqC,IAAI,gCAAgC,EACzE,sBAAsB,IAAI,iBAAiB,EAC3C,oBAAoB,IAAI,eAAe,EACvC,YAAY,IAAI,OAAO,EACvB,uBAAuB,IAAI,cAAc,GAC1C,MAAM,qCAAqC,CAAC;AAkD7C,OAAO,EACL,8BAA8B,IAAI,yBAAyB,EAC3D,8BAA8B,IAAI,yBAAyB,EAC3D,sBAAsB,IAAI,iBAAiB,EAC3C,0BAA0B,IAAI,qBAAqB,E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