@cleocode/core 2026.9.24 → 2026.9.26

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 (481) hide show
  1. package/dist/admin/import-tasks.d.ts.map +1 -1
  2. package/dist/admin/import-tasks.js +5 -2
  3. package/dist/admin/import-tasks.js.map +1 -1
  4. package/dist/admin/import.d.ts.map +1 -1
  5. package/dist/admin/import.js +7 -2
  6. package/dist/admin/import.js.map +1 -1
  7. package/dist/audit-prune.d.ts +32 -0
  8. package/dist/audit-prune.d.ts.map +1 -1
  9. package/dist/audit-prune.js +37 -3
  10. package/dist/audit-prune.js.map +1 -1
  11. package/dist/build-provenance.json +2 -2
  12. package/dist/cloud/crypto.d.ts +1 -2
  13. package/dist/cloud/crypto.d.ts.map +1 -1
  14. package/dist/cloud/crypto.js +1 -11
  15. package/dist/cloud/crypto.js.map +1 -1
  16. package/dist/cloud/index.d.ts +1 -0
  17. package/dist/cloud/index.d.ts.map +1 -1
  18. package/dist/cloud/index.js +1 -0
  19. package/dist/cloud/index.js.map +1 -1
  20. package/dist/cloud/nexus-auth.d.ts +26 -1
  21. package/dist/cloud/nexus-auth.d.ts.map +1 -1
  22. package/dist/cloud/nexus-auth.js +61 -32
  23. package/dist/cloud/nexus-auth.js.map +1 -1
  24. package/dist/cloud/nexus-credentials.js +2 -2
  25. package/dist/cloud/nexus-credentials.js.map +1 -1
  26. package/dist/cloud/nexus-device.d.ts +809 -0
  27. package/dist/cloud/nexus-device.d.ts.map +1 -0
  28. package/dist/cloud/nexus-device.js +1680 -0
  29. package/dist/cloud/nexus-device.js.map +1 -0
  30. package/dist/cloud/nexus-enrol.d.ts +210 -0
  31. package/dist/cloud/nexus-enrol.d.ts.map +1 -0
  32. package/dist/cloud/nexus-enrol.js +1023 -0
  33. package/dist/cloud/nexus-enrol.js.map +1 -0
  34. package/dist/cloud/nexus-link.d.ts +3 -0
  35. package/dist/cloud/nexus-link.d.ts.map +1 -1
  36. package/dist/cloud/nexus-link.js +38 -4
  37. package/dist/cloud/nexus-link.js.map +1 -1
  38. package/dist/cloud/signing.d.ts +20 -0
  39. package/dist/cloud/signing.d.ts.map +1 -1
  40. package/dist/cloud/signing.js +14 -0
  41. package/dist/cloud/signing.js.map +1 -1
  42. package/dist/cloud/uuidv7.d.ts +9 -0
  43. package/dist/cloud/uuidv7.d.ts.map +1 -0
  44. package/dist/cloud/uuidv7.js +19 -0
  45. package/dist/cloud/uuidv7.js.map +1 -0
  46. package/dist/crypto/credentials.d.ts +61 -0
  47. package/dist/crypto/credentials.d.ts.map +1 -1
  48. package/dist/crypto/credentials.js +154 -58
  49. package/dist/crypto/credentials.js.map +1 -1
  50. package/dist/decide/bench/index.d.ts +1 -1
  51. package/dist/decide/bench/index.d.ts.map +1 -1
  52. package/dist/decide/bench/index.js +1 -1
  53. package/dist/decide/bench/index.js.map +1 -1
  54. package/dist/decide/bench/operation.d.ts +1 -1
  55. package/dist/decide/bench/operation.d.ts.map +1 -1
  56. package/dist/decide/bench/operation.js +1 -1
  57. package/dist/decide/bench/operation.js.map +1 -1
  58. package/dist/decide/bench/profiles.d.ts +50 -22
  59. package/dist/decide/bench/profiles.d.ts.map +1 -1
  60. package/dist/decide/bench/profiles.js +103 -59
  61. package/dist/decide/bench/profiles.js.map +1 -1
  62. package/dist/decide/bench/report.d.ts.map +1 -1
  63. package/dist/decide/bench/report.js +6 -1
  64. package/dist/decide/bench/report.js.map +1 -1
  65. package/dist/decide/bench/runner.d.ts +6 -1
  66. package/dist/decide/bench/runner.d.ts.map +1 -1
  67. package/dist/decide/bench/runner.js +1 -0
  68. package/dist/decide/bench/runner.js.map +1 -1
  69. package/dist/decide/client.d.ts.map +1 -1
  70. package/dist/decide/client.js +11 -5
  71. package/dist/decide/client.js.map +1 -1
  72. package/dist/decide/jev-wire.d.ts +31 -1
  73. package/dist/decide/jev-wire.d.ts.map +1 -1
  74. package/dist/decide/jev-wire.js +61 -7
  75. package/dist/decide/jev-wire.js.map +1 -1
  76. package/dist/docs/export-document.js +12907 -10622
  77. package/dist/docs/export-document.js.map +3 -3
  78. package/dist/doctor/dependency-cycles.d.ts +41 -0
  79. package/dist/doctor/dependency-cycles.d.ts.map +1 -0
  80. package/dist/doctor/dependency-cycles.js +39 -0
  81. package/dist/doctor/dependency-cycles.js.map +1 -0
  82. package/dist/doctor/index.d.ts +2 -0
  83. package/dist/doctor/index.d.ts.map +1 -1
  84. package/dist/doctor/index.js +1 -0
  85. package/dist/doctor/index.js.map +1 -1
  86. package/dist/doctor/orphan-ac-bindings.d.ts +64 -0
  87. package/dist/doctor/orphan-ac-bindings.d.ts.map +1 -0
  88. package/dist/doctor/orphan-ac-bindings.js +59 -0
  89. package/dist/doctor/orphan-ac-bindings.js.map +1 -0
  90. package/dist/doctor/projects.d.ts.map +1 -1
  91. package/dist/doctor/projects.js +43 -29
  92. package/dist/doctor/projects.js.map +1 -1
  93. package/dist/doctor/row-identity.d.ts +42 -0
  94. package/dist/doctor/row-identity.d.ts.map +1 -0
  95. package/dist/doctor/row-identity.js +151 -0
  96. package/dist/doctor/row-identity.js.map +1 -0
  97. package/dist/doctor/twin-collapse.d.ts +58 -2
  98. package/dist/doctor/twin-collapse.d.ts.map +1 -1
  99. package/dist/doctor/twin-collapse.js +212 -14
  100. package/dist/doctor/twin-collapse.js.map +1 -1
  101. package/dist/error-catalog.d.ts.map +1 -1
  102. package/dist/error-catalog.js +4 -0
  103. package/dist/error-catalog.js.map +1 -1
  104. package/dist/error-registry.d.ts.map +1 -1
  105. package/dist/error-registry.js +8 -0
  106. package/dist/error-registry.js.map +1 -1
  107. package/dist/lifecycle/verification/satisfies-validator.d.ts.map +1 -1
  108. package/dist/lifecycle/verification/satisfies-validator.js +10 -0
  109. package/dist/lifecycle/verification/satisfies-validator.js.map +1 -1
  110. package/dist/llm/plugin-facade.js +17767 -15482
  111. package/dist/llm/plugin-facade.js.map +3 -3
  112. package/dist/memory/index.d.ts.map +1 -1
  113. package/dist/memory/index.js +19 -10
  114. package/dist/memory/index.js.map +1 -1
  115. package/dist/memory/manifest-identity.d.ts +171 -0
  116. package/dist/memory/manifest-identity.d.ts.map +1 -0
  117. package/dist/memory/manifest-identity.js +345 -0
  118. package/dist/memory/manifest-identity.js.map +1 -0
  119. package/dist/memory/mental-model-queue.d.ts +14 -4
  120. package/dist/memory/mental-model-queue.d.ts.map +1 -1
  121. package/dist/memory/mental-model-queue.js +64 -35
  122. package/dist/memory/mental-model-queue.js.map +1 -1
  123. package/dist/memory/pipeline-manifest-sqlite.d.ts +47 -5
  124. package/dist/memory/pipeline-manifest-sqlite.d.ts.map +1 -1
  125. package/dist/memory/pipeline-manifest-sqlite.js +130 -14
  126. package/dist/memory/pipeline-manifest-sqlite.js.map +1 -1
  127. package/dist/memory/retrieval/observe.d.ts.map +1 -1
  128. package/dist/memory/retrieval/observe.js +2 -0
  129. package/dist/memory/retrieval/observe.js.map +1 -1
  130. package/dist/memory/transcript-scanner.js +1 -1
  131. package/dist/nexus/deps.d.ts.map +1 -1
  132. package/dist/nexus/deps.js +7 -14
  133. package/dist/nexus/deps.js.map +1 -1
  134. package/dist/nexus/discover.d.ts.map +1 -1
  135. package/dist/nexus/discover.js +6 -9
  136. package/dist/nexus/discover.js.map +1 -1
  137. package/dist/nexus/git-state.d.ts.map +1 -1
  138. package/dist/nexus/git-state.js +10 -1
  139. package/dist/nexus/git-state.js.map +1 -1
  140. package/dist/nexus/projects-clean.d.ts.map +1 -1
  141. package/dist/nexus/projects-clean.js +22 -11
  142. package/dist/nexus/projects-clean.js.map +1 -1
  143. package/dist/nexus/projects-scan.d.ts.map +1 -1
  144. package/dist/nexus/projects-scan.js +8 -13
  145. package/dist/nexus/projects-scan.js.map +1 -1
  146. package/dist/nexus/query.d.ts.map +1 -1
  147. package/dist/nexus/query.js +4 -12
  148. package/dist/nexus/query.js.map +1 -1
  149. package/dist/nexus/registry-roots.d.ts +5 -2
  150. package/dist/nexus/registry-roots.d.ts.map +1 -1
  151. package/dist/nexus/registry-roots.js +8 -10
  152. package/dist/nexus/registry-roots.js.map +1 -1
  153. package/dist/nexus/registry.d.ts +18 -0
  154. package/dist/nexus/registry.d.ts.map +1 -1
  155. package/dist/nexus/registry.js +37 -16
  156. package/dist/nexus/registry.js.map +1 -1
  157. package/dist/nexus/workspace.d.ts.map +1 -1
  158. package/dist/nexus/workspace.js +54 -4
  159. package/dist/nexus/workspace.js.map +1 -1
  160. package/dist/orchestrate/lifecycle-ops.js +1 -1
  161. package/dist/orchestrate/lifecycle-ops.js.map +1 -1
  162. package/dist/orchestrate/pivot.d.ts.map +1 -1
  163. package/dist/orchestrate/pivot.js +4 -2
  164. package/dist/orchestrate/pivot.js.map +1 -1
  165. package/dist/orchestrate/query-ops.d.ts.map +1 -1
  166. package/dist/orchestrate/query-ops.js +3 -3
  167. package/dist/orchestrate/query-ops.js.map +1 -1
  168. package/dist/orchestrate/spawn-ops.js +1 -1
  169. package/dist/orchestrate/spawn-ops.js.map +1 -1
  170. package/dist/orchestrate/worktree-complete.d.ts.map +1 -1
  171. package/dist/orchestrate/worktree-complete.js +40 -2
  172. package/dist/orchestrate/worktree-complete.js.map +1 -1
  173. package/dist/orchestration/index.js +1 -1
  174. package/dist/orchestration/index.js.map +1 -1
  175. package/dist/orchestration/lead-rollup.d.ts.map +1 -1
  176. package/dist/orchestration/lead-rollup.js +3 -3
  177. package/dist/orchestration/lead-rollup.js.map +1 -1
  178. package/dist/orchestration/parallel.js +1 -1
  179. package/dist/orchestration/parallel.js.map +1 -1
  180. package/dist/orchestration/spawn-prompt.d.ts +26 -0
  181. package/dist/orchestration/spawn-prompt.d.ts.map +1 -1
  182. package/dist/orchestration/spawn-prompt.js +62 -91
  183. package/dist/orchestration/spawn-prompt.js.map +1 -1
  184. package/dist/orchestration/wave-topic.d.ts +4 -2
  185. package/dist/orchestration/wave-topic.d.ts.map +1 -1
  186. package/dist/orchestration/wave-topic.js +6 -4
  187. package/dist/orchestration/wave-topic.js.map +1 -1
  188. package/dist/orchestration/waves.d.ts +2 -1
  189. package/dist/orchestration/waves.d.ts.map +1 -1
  190. package/dist/orchestration/waves.js +4 -3
  191. package/dist/orchestration/waves.js.map +1 -1
  192. package/dist/phases/index.d.ts.map +1 -1
  193. package/dist/phases/index.js +4 -2
  194. package/dist/phases/index.js.map +1 -1
  195. package/dist/release/ci-evidence.d.ts +190 -0
  196. package/dist/release/ci-evidence.d.ts.map +1 -1
  197. package/dist/release/ci-evidence.js +436 -4
  198. package/dist/release/ci-evidence.js.map +1 -1
  199. package/dist/sdk/validator-ac-pull.d.ts.map +1 -1
  200. package/dist/sdk/validator-ac-pull.js +2 -1
  201. package/dist/sdk/validator-ac-pull.js.map +1 -1
  202. package/dist/selfimprove/fix-gen.js +12807 -10522
  203. package/dist/selfimprove/fix-gen.js.map +3 -3
  204. package/dist/sentient/cross-project-hygiene.d.ts +5 -0
  205. package/dist/sentient/cross-project-hygiene.d.ts.map +1 -1
  206. package/dist/sentient/cross-project-hygiene.js +7 -1
  207. package/dist/sentient/cross-project-hygiene.js.map +1 -1
  208. package/dist/sentient/propose-tick.d.ts.map +1 -1
  209. package/dist/sentient/propose-tick.js +2 -3
  210. package/dist/sentient/propose-tick.js.map +1 -1
  211. package/dist/sentient/stage-drift-tick.d.ts.map +1 -1
  212. package/dist/sentient/stage-drift-tick.js +2 -3
  213. package/dist/sentient/stage-drift-tick.js.map +1 -1
  214. package/dist/session/engine-ops.d.ts.map +1 -1
  215. package/dist/session/engine-ops.js +77 -49
  216. package/dist/session/engine-ops.js.map +1 -1
  217. package/dist/sessions/focus-state-store.d.ts +69 -23
  218. package/dist/sessions/focus-state-store.d.ts.map +1 -1
  219. package/dist/sessions/focus-state-store.js +113 -27
  220. package/dist/sessions/focus-state-store.js.map +1 -1
  221. package/dist/sessions/handoff.js +1 -1
  222. package/dist/sessions/handoff.js.map +1 -1
  223. package/dist/sessions/index.d.ts.map +1 -1
  224. package/dist/sessions/index.js +24 -13
  225. package/dist/sessions/index.js.map +1 -1
  226. package/dist/sessions/terminal-identity.d.ts +165 -17
  227. package/dist/sessions/terminal-identity.d.ts.map +1 -1
  228. package/dist/sessions/terminal-identity.js +341 -32
  229. package/dist/sessions/terminal-identity.js.map +1 -1
  230. package/dist/skills/manifests/research.js +2 -0
  231. package/dist/skills/manifests/research.js.map +1 -1
  232. package/dist/skills/orchestrator/startup.js +2 -2
  233. package/dist/skills/orchestrator/startup.js.map +1 -1
  234. package/dist/skills/orchestrator/validator.d.ts.map +1 -1
  235. package/dist/skills/orchestrator/validator.js +9 -2
  236. package/dist/skills/orchestrator/validator.js.map +1 -1
  237. package/dist/skills/validation.d.ts +4 -1
  238. package/dist/skills/validation.d.ts.map +1 -1
  239. package/dist/skills/validation.js +11 -3
  240. package/dist/skills/validation.js.map +1 -1
  241. package/dist/snapshot/index.d.ts +4 -0
  242. package/dist/snapshot/index.d.ts.map +1 -1
  243. package/dist/snapshot/index.js +50 -3
  244. package/dist/snapshot/index.js.map +1 -1
  245. package/dist/spawn/branch-lock.d.ts +111 -7
  246. package/dist/spawn/branch-lock.d.ts.map +1 -1
  247. package/dist/spawn/branch-lock.js +296 -8
  248. package/dist/spawn/branch-lock.js.map +1 -1
  249. package/dist/store/ac-binding-prune.d.ts +144 -0
  250. package/dist/store/ac-binding-prune.d.ts.map +1 -0
  251. package/dist/store/ac-binding-prune.js +293 -0
  252. package/dist/store/ac-binding-prune.js.map +1 -0
  253. package/dist/store/agent-registry-store.d.ts.map +1 -1
  254. package/dist/store/agent-registry-store.js +3 -2
  255. package/dist/store/agent-registry-store.js.map +1 -1
  256. package/dist/store/backup-sidecar.d.ts +85 -2
  257. package/dist/store/backup-sidecar.d.ts.map +1 -1
  258. package/dist/store/backup-sidecar.js +173 -1
  259. package/dist/store/backup-sidecar.js.map +1 -1
  260. package/dist/store/conduit-sqlite.d.ts.map +1 -1
  261. package/dist/store/conduit-sqlite.js +3 -2
  262. package/dist/store/conduit-sqlite.js.map +1 -1
  263. package/dist/store/credential-transfer.d.ts.map +1 -1
  264. package/dist/store/credential-transfer.js +3 -0
  265. package/dist/store/credential-transfer.js.map +1 -1
  266. package/dist/store/db-helpers.d.ts +32 -13
  267. package/dist/store/db-helpers.d.ts.map +1 -1
  268. package/dist/store/db-helpers.js +144 -40
  269. package/dist/store/db-helpers.js.map +1 -1
  270. package/dist/store/dependency-cycles.d.ts +164 -0
  271. package/dist/store/dependency-cycles.d.ts.map +1 -0
  272. package/dist/store/dependency-cycles.js +360 -0
  273. package/dist/store/dependency-cycles.js.map +1 -0
  274. package/dist/store/display-id-alias.d.ts +585 -0
  275. package/dist/store/display-id-alias.d.ts.map +1 -0
  276. package/dist/store/display-id-alias.js +1538 -0
  277. package/dist/store/display-id-alias.js.map +1 -0
  278. package/dist/store/dual-scope-db.d.ts.map +1 -1
  279. package/dist/store/dual-scope-db.js +48 -0
  280. package/dist/store/dual-scope-db.js.map +1 -1
  281. package/dist/store/exodus/migrate.d.ts.map +1 -1
  282. package/dist/store/exodus/migrate.js +8 -1
  283. package/dist/store/exodus/migrate.js.map +1 -1
  284. package/dist/store/exodus/reconcile.d.ts.map +1 -1
  285. package/dist/store/exodus/reconcile.js +7 -2
  286. package/dist/store/exodus/reconcile.js.map +1 -1
  287. package/dist/store/exodus/recovery.d.ts.map +1 -1
  288. package/dist/store/exodus/recovery.js +20 -1
  289. package/dist/store/exodus/recovery.js.map +1 -1
  290. package/dist/store/global-salt.d.ts +35 -0
  291. package/dist/store/global-salt.d.ts.map +1 -1
  292. package/dist/store/global-salt.js +136 -16
  293. package/dist/store/global-salt.js.map +1 -1
  294. package/dist/store/legacy-tasks-lineage.d.ts.map +1 -1
  295. package/dist/store/legacy-tasks-lineage.js +19 -2
  296. package/dist/store/legacy-tasks-lineage.js.map +1 -1
  297. package/dist/store/migration-sqlite.d.ts.map +1 -1
  298. package/dist/store/migration-sqlite.js +19 -11
  299. package/dist/store/migration-sqlite.js.map +1 -1
  300. package/dist/store/portable-bundle-scan.d.ts.map +1 -1
  301. package/dist/store/portable-bundle-scan.js +6 -0
  302. package/dist/store/portable-bundle-scan.js.map +1 -1
  303. package/dist/store/row-identity-flag.d.ts +26 -0
  304. package/dist/store/row-identity-flag.d.ts.map +1 -0
  305. package/dist/store/row-identity-flag.js +31 -0
  306. package/dist/store/row-identity-flag.js.map +1 -0
  307. package/dist/store/row-identity-registry.d.ts +61 -0
  308. package/dist/store/row-identity-registry.d.ts.map +1 -0
  309. package/dist/store/row-identity-registry.js +206 -0
  310. package/dist/store/row-identity-registry.js.map +1 -0
  311. package/dist/store/row-identity.d.ts +480 -0
  312. package/dist/store/row-identity.d.ts.map +1 -0
  313. package/dist/store/row-identity.js +1509 -0
  314. package/dist/store/row-identity.js.map +1 -0
  315. package/dist/store/safety-data-accessor.d.ts +5 -2
  316. package/dist/store/safety-data-accessor.d.ts.map +1 -1
  317. package/dist/store/safety-data-accessor.js +9 -2
  318. package/dist/store/safety-data-accessor.js.map +1 -1
  319. package/dist/store/schema/attachments.d.ts +1 -1
  320. package/dist/store/schema/audit.d.ts +4 -4
  321. package/dist/store/schema/background-jobs.d.ts +1 -1
  322. package/dist/store/schema/cleo-global/nexus.d.ts +1 -1
  323. package/dist/store/schema/cleo-global/skills.d.ts +2 -2
  324. package/dist/store/schema/cleo-project/audit.d.ts +4 -4
  325. package/dist/store/schema/cleo-project/docs.d.ts +1 -1
  326. package/dist/store/schema/cleo-project/lifecycle.d.ts +4 -4
  327. package/dist/store/schema/cleo-project/nexus-graph.d.ts +3 -3
  328. package/dist/store/schema/cleo-project/provenance-commits.d.ts +2 -2
  329. package/dist/store/schema/cleo-project/provenance-rest.d.ts +3 -3
  330. package/dist/store/schema/cleo-project/runtime.d.ts +3 -3
  331. package/dist/store/schema/cleo-project/tasks-core-batch2.d.ts +87 -1
  332. package/dist/store/schema/cleo-project/tasks-core-batch2.d.ts.map +1 -1
  333. package/dist/store/schema/cleo-project/tasks-core-batch2.js +35 -0
  334. package/dist/store/schema/cleo-project/tasks-core-batch2.js.map +1 -1
  335. package/dist/store/schema/cleo-project/tasks-core.d.ts +183 -7
  336. package/dist/store/schema/cleo-project/tasks-core.d.ts.map +1 -1
  337. package/dist/store/schema/cleo-project/tasks-core.js +52 -1
  338. package/dist/store/schema/cleo-project/tasks-core.js.map +1 -1
  339. package/dist/store/schema/cleo-shared/brain.d.ts +6 -6
  340. package/dist/store/schema/lifecycle.d.ts +4 -4
  341. package/dist/store/schema/manifest.d.ts +1 -1
  342. package/dist/store/schema/memory-schema.d.ts +5 -5
  343. package/dist/store/schema/nexus-schema.d.ts +3 -3
  344. package/dist/store/schema/provenance/releases.d.ts +1 -1
  345. package/dist/store/schema/skills-schema.d.ts +2 -2
  346. package/dist/store/schema/tasks.d.ts +6 -6
  347. package/dist/store/session-store.d.ts +63 -3
  348. package/dist/store/session-store.d.ts.map +1 -1
  349. package/dist/store/session-store.js +121 -8
  350. package/dist/store/session-store.js.map +1 -1
  351. package/dist/store/split-brain-import.d.ts +2 -14
  352. package/dist/store/split-brain-import.d.ts.map +1 -1
  353. package/dist/store/split-brain-import.js +40 -19
  354. package/dist/store/split-brain-import.js.map +1 -1
  355. package/dist/store/sqlite-data-accessor.d.ts +326 -2
  356. package/dist/store/sqlite-data-accessor.d.ts.map +1 -1
  357. package/dist/store/sqlite-data-accessor.js +782 -49
  358. package/dist/store/sqlite-data-accessor.js.map +1 -1
  359. package/dist/store/sync/clock-store.d.ts +67 -0
  360. package/dist/store/sync/clock-store.d.ts.map +1 -0
  361. package/dist/store/sync/clock-store.js +117 -0
  362. package/dist/store/sync/clock-store.js.map +1 -0
  363. package/dist/store/sync/flags.d.ts +51 -0
  364. package/dist/store/sync/flags.d.ts.map +1 -0
  365. package/dist/store/sync/flags.js +81 -0
  366. package/dist/store/sync/flags.js.map +1 -0
  367. package/dist/store/sync/hlc.d.ts +115 -0
  368. package/dist/store/sync/hlc.d.ts.map +1 -0
  369. package/dist/store/sync/hlc.js +172 -0
  370. package/dist/store/sync/hlc.js.map +1 -0
  371. package/dist/store/sync/index.d.ts +20 -0
  372. package/dist/store/sync/index.d.ts.map +1 -0
  373. package/dist/store/sync/index.js +20 -0
  374. package/dist/store/sync/index.js.map +1 -0
  375. package/dist/store/sync/replica-registry.d.ts +85 -0
  376. package/dist/store/sync/replica-registry.d.ts.map +1 -0
  377. package/dist/store/sync/replica-registry.js +147 -0
  378. package/dist/store/sync/replica-registry.js.map +1 -0
  379. package/dist/store/sync/replica.d.ts +181 -0
  380. package/dist/store/sync/replica.d.ts.map +1 -0
  381. package/dist/store/sync/replica.js +305 -0
  382. package/dist/store/sync/replica.js.map +1 -0
  383. package/dist/store/sync/schema.d.ts +68 -0
  384. package/dist/store/sync/schema.d.ts.map +1 -0
  385. package/dist/store/sync/schema.js +130 -0
  386. package/dist/store/sync/schema.js.map +1 -0
  387. package/dist/store/sync/skew-hold.d.ts +71 -0
  388. package/dist/store/sync/skew-hold.d.ts.map +1 -0
  389. package/dist/store/sync/skew-hold.js +89 -0
  390. package/dist/store/sync/skew-hold.js.map +1 -0
  391. package/dist/store/table-classification.d.ts +10 -8
  392. package/dist/store/table-classification.d.ts.map +1 -1
  393. package/dist/store/table-classification.js +93 -25
  394. package/dist/store/table-classification.js.map +1 -1
  395. package/dist/store/tasks-sqlite.d.ts.map +1 -1
  396. package/dist/store/tasks-sqlite.js +23 -3
  397. package/dist/store/tasks-sqlite.js.map +1 -1
  398. package/dist/store/twin-collapse.d.ts +113 -2
  399. package/dist/store/twin-collapse.d.ts.map +1 -1
  400. package/dist/store/twin-collapse.js +247 -19
  401. package/dist/store/twin-collapse.js.map +1 -1
  402. package/dist/store/umbrella-data-accessor.d.ts +5 -2
  403. package/dist/store/umbrella-data-accessor.d.ts.map +1 -1
  404. package/dist/store/umbrella-data-accessor.js +9 -2
  405. package/dist/store/umbrella-data-accessor.js.map +1 -1
  406. package/dist/store/validation-schemas.d.ts +241 -49
  407. package/dist/store/validation-schemas.d.ts.map +1 -1
  408. package/dist/system/health.d.ts +2 -0
  409. package/dist/system/health.d.ts.map +1 -1
  410. package/dist/system/health.js +57 -0
  411. package/dist/system/health.js.map +1 -1
  412. package/dist/system/project-health.d.ts +9 -2
  413. package/dist/system/project-health.d.ts.map +1 -1
  414. package/dist/system/project-health.js +8 -3
  415. package/dist/system/project-health.js.map +1 -1
  416. package/dist/task-work/index.d.ts.map +1 -1
  417. package/dist/task-work/index.js +9 -6
  418. package/dist/task-work/index.js.map +1 -1
  419. package/dist/tasks/ac-coverage-gate.d.ts.map +1 -1
  420. package/dist/tasks/ac-coverage-gate.js +3 -0
  421. package/dist/tasks/ac-coverage-gate.js.map +1 -1
  422. package/dist/tasks/ac-table.d.ts +35 -7
  423. package/dist/tasks/ac-table.d.ts.map +1 -1
  424. package/dist/tasks/ac-table.js +119 -14
  425. package/dist/tasks/ac-table.js.map +1 -1
  426. package/dist/tasks/add.d.ts.map +1 -1
  427. package/dist/tasks/add.js +48 -2
  428. package/dist/tasks/add.js.map +1 -1
  429. package/dist/tasks/analyze.d.ts.map +1 -1
  430. package/dist/tasks/analyze.js +3 -2
  431. package/dist/tasks/analyze.js.map +1 -1
  432. package/dist/tasks/backfill-child-projections.js +47 -6
  433. package/dist/tasks/backfill-child-projections.js.map +1 -1
  434. package/dist/tasks/complete.d.ts.map +1 -1
  435. package/dist/tasks/complete.js +6 -1
  436. package/dist/tasks/complete.js.map +1 -1
  437. package/dist/tasks/completion-evaluation.d.ts.map +1 -1
  438. package/dist/tasks/completion-evaluation.js +3 -0
  439. package/dist/tasks/completion-evaluation.js.map +1 -1
  440. package/dist/tasks/evidence.d.ts +19 -1
  441. package/dist/tasks/evidence.d.ts.map +1 -1
  442. package/dist/tasks/evidence.js +93 -21
  443. package/dist/tasks/evidence.js.map +1 -1
  444. package/dist/tasks/infer-add-params.js +1 -1
  445. package/dist/tasks/infer-add-params.js.map +1 -1
  446. package/dist/tasks/task-context.d.ts.map +1 -1
  447. package/dist/tasks/task-context.js +3 -1
  448. package/dist/tasks/task-context.js.map +1 -1
  449. package/dist/tasks/task-import.d.ts.map +1 -1
  450. package/dist/tasks/task-import.js +11 -3
  451. package/dist/tasks/task-import.js.map +1 -1
  452. package/dist/tasks/task-next.d.ts +5 -1
  453. package/dist/tasks/task-next.d.ts.map +1 -1
  454. package/dist/tasks/task-next.js +7 -2
  455. package/dist/tasks/task-next.js.map +1 -1
  456. package/dist/validation/compliance.d.ts +5 -1
  457. package/dist/validation/compliance.d.ts.map +1 -1
  458. package/dist/validation/compliance.js +24 -3
  459. package/dist/validation/compliance.js.map +1 -1
  460. package/dist/validation/engine-ops.d.ts.map +1 -1
  461. package/dist/validation/engine-ops.js +3 -2
  462. package/dist/validation/engine-ops.js.map +1 -1
  463. package/dist/validation/index.d.ts +1 -1
  464. package/dist/validation/index.d.ts.map +1 -1
  465. package/dist/validation/index.js +1 -1
  466. package/dist/validation/index.js.map +1 -1
  467. package/dist/validation/protocol-common.d.ts +47 -2
  468. package/dist/validation/protocol-common.d.ts.map +1 -1
  469. package/dist/validation/protocol-common.js +86 -21
  470. package/dist/validation/protocol-common.js.map +1 -1
  471. package/dist/workgraph/scaffold-apply.d.ts.map +1 -1
  472. package/dist/workgraph/scaffold-apply.js +14 -5
  473. package/dist/workgraph/scaffold-apply.js.map +1 -1
  474. package/migrations/README.md +12 -0
  475. package/migrations/drizzle-cleo-project/20260928120000_t12341-row-uids/migration.sql +169 -0
  476. package/migrations/drizzle-cleo-project/20260930160000_t12886-dependency-cycle-guard/migration.sql +76 -0
  477. package/migrations/drizzle-cleo-project/20260930160000_t12886-dependency-cycle-guard/revert.sql +7 -0
  478. package/migrations/sync-journal/20260929140000_t12342-sync-clock/migration.sql +42 -0
  479. package/package.json +13 -13
  480. package/templates/CLEO-INJECTION.md +2 -2
  481. package/templates/CLEO-REFERENCE.md +5 -1
@@ -15,8 +15,8 @@ import { z } from 'zod';
15
15
  /** Zod enum schema for task statuses. */
16
16
  export declare const taskStatusSchema: z.ZodEnum<{
17
17
  cancelled: "cancelled";
18
- active: "active";
19
18
  pending: "pending";
19
+ active: "active";
20
20
  blocked: "blocked";
21
21
  done: "done";
22
22
  archived: "archived";
@@ -31,46 +31,46 @@ export declare const taskPrioritySchema: z.ZodEnum<{
31
31
  }>;
32
32
  /** Zod enum schema for task types. */
33
33
  export declare const taskTypeSchema: z.ZodEnum<{
34
- task: "task";
35
34
  saga: "saga";
36
35
  epic: "epic";
36
+ task: "task";
37
37
  subtask: "subtask";
38
38
  }>;
39
39
  /** Zod enum schema for task sizes. */
40
40
  export declare const taskSizeSchema: z.ZodEnum<{
41
- small: "small";
42
41
  medium: "medium";
42
+ small: "small";
43
43
  large: "large";
44
44
  }>;
45
45
  /** Zod enum schema for session statuses. */
46
46
  export declare const sessionStatusSchema: z.ZodEnum<{
47
47
  active: "active";
48
- orphaned: "orphaned";
49
48
  ended: "ended";
49
+ orphaned: "orphaned";
50
50
  suspended: "suspended";
51
51
  }>;
52
52
  /** Zod enum schema for lifecycle pipeline statuses. */
53
53
  export declare const lifecyclePipelineStatusSchema: z.ZodEnum<{
54
- failed: "failed";
55
54
  cancelled: "cancelled";
56
55
  active: "active";
57
- aborted: "aborted";
58
- completed: "completed";
59
56
  blocked: "blocked";
57
+ completed: "completed";
58
+ failed: "failed";
59
+ aborted: "aborted";
60
60
  }>;
61
61
  /** Zod enum schema for lifecycle stage statuses. */
62
62
  export declare const lifecycleStageStatusSchema: z.ZodEnum<{
63
- failed: "failed";
64
- completed: "completed";
65
63
  blocked: "blocked";
64
+ completed: "completed";
65
+ failed: "failed";
66
66
  not_started: "not_started";
67
67
  in_progress: "in_progress";
68
68
  skipped: "skipped";
69
69
  }>;
70
70
  /** Zod enum schema for lifecycle stage names. */
71
71
  export declare const lifecycleStageNameSchema: z.ZodEnum<{
72
- release: "release";
73
72
  research: "research";
73
+ release: "release";
74
74
  consensus: "consensus";
75
75
  architecture_decision: "architecture_decision";
76
76
  specification: "specification";
@@ -101,17 +101,17 @@ export declare const adrStatusSchema: z.ZodEnum<{
101
101
  }>;
102
102
  /** Zod enum schema for gate statuses. */
103
103
  export declare const gateStatusSchema: z.ZodEnum<{
104
- failed: "failed";
105
104
  pending: "pending";
105
+ failed: "failed";
106
106
  passed: "passed";
107
107
  waived: "waived";
108
108
  }>;
109
109
  /** Zod enum schema for manifest statuses. */
110
110
  export declare const manifestStatusSchema: z.ZodEnum<{
111
- partial: "partial";
112
- completed: "completed";
113
111
  blocked: "blocked";
114
112
  archived: "archived";
113
+ completed: "completed";
114
+ partial: "partial";
115
115
  }>;
116
116
  /** Zod enum schema for token usage measurement methods. */
117
117
  export declare const tokenUsageMethodSchema: z.ZodEnum<{
@@ -129,20 +129,20 @@ export declare const tokenUsageConfidenceSchema: z.ZodEnum<{
129
129
  }>;
130
130
  /** Zod enum schema for token usage transports. */
131
131
  export declare const tokenUsageTransportSchema: z.ZodEnum<{
132
- unknown: "unknown";
133
132
  agent: "agent";
134
133
  cli: "cli";
135
134
  api: "api";
136
135
  mcp: "mcp";
136
+ unknown: "unknown";
137
137
  }>;
138
138
  /** Zod enum schema for task relation types. */
139
139
  export declare const taskRelationTypeSchema: z.ZodEnum<{
140
- extends: "extends";
141
140
  related: "related";
142
141
  blocks: "blocks";
143
142
  duplicates: "duplicates";
144
143
  absorbs: "absorbs";
145
144
  fixes: "fixes";
145
+ extends: "extends";
146
146
  supersedes: "supersedes";
147
147
  groups: "groups";
148
148
  }>;
@@ -199,8 +199,8 @@ export declare const brainConfidenceLevelSchema: z.ZodEnum<{
199
199
  }>;
200
200
  /** Zod enum schema for brain outcome types. */
201
201
  export declare const brainOutcomeTypeSchema: z.ZodEnum<{
202
- success: "success";
203
202
  pending: "pending";
203
+ success: "success";
204
204
  failure: "failure";
205
205
  mixed: "mixed";
206
206
  }>;
@@ -256,8 +256,8 @@ export declare const brainStickyPrioritySchema: z.ZodEnum<{
256
256
  export declare const brainNodeTypeSchema: z.ZodEnum<{
257
257
  symbol: "symbol";
258
258
  file: "file";
259
- task: "task";
260
259
  epic: "epic";
260
+ task: "task";
261
261
  summary: "summary";
262
262
  session: "session";
263
263
  observation: "observation";
@@ -272,11 +272,11 @@ export declare const brainNodeTypeSchema: z.ZodEnum<{
272
272
  }>;
273
273
  /** Zod enum schema for brain page edge types. */
274
274
  export declare const brainEdgeTypeSchema: z.ZodEnum<{
275
- documents: "documents";
276
- applies_to: "applies_to";
277
275
  modified_by: "modified_by";
278
276
  blocks: "blocks";
279
277
  supersedes: "supersedes";
278
+ documents: "documents";
279
+ applies_to: "applies_to";
280
280
  produced_by: "produced_by";
281
281
  informed_by: "informed_by";
282
282
  contradicts: "contradicts";
@@ -349,7 +349,7 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
349
349
  name: string;
350
350
  tableName: "tasks_tasks";
351
351
  dataType: "string enum";
352
- data: "cancelled" | "active" | "pending" | "blocked" | "done" | "archived" | "proposed";
352
+ data: "cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | "proposed";
353
353
  driverParam: string;
354
354
  notNull: true;
355
355
  hasDefault: true;
@@ -381,7 +381,7 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
381
381
  name: string;
382
382
  tableName: "tasks_tasks";
383
383
  dataType: "string enum";
384
- data: "task" | "saga" | "epic" | "subtask";
384
+ data: "saga" | "epic" | "task" | "subtask";
385
385
  driverParam: string;
386
386
  notNull: false;
387
387
  hasDefault: false;
@@ -397,7 +397,7 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
397
397
  name: string;
398
398
  tableName: "tasks_tasks";
399
399
  dataType: "string enum";
400
- data: "release" | "work" | "research" | "experiment" | "bug" | "spike";
400
+ data: "work" | "research" | "experiment" | "bug" | "spike" | "release";
401
401
  driverParam: string;
402
402
  notNull: true;
403
403
  hasDefault: true;
@@ -477,7 +477,7 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
477
477
  name: string;
478
478
  tableName: "tasks_tasks";
479
479
  dataType: "string enum";
480
- data: "small" | "medium" | "large";
480
+ data: "medium" | "small" | "large";
481
481
  driverParam: string;
482
482
  notNull: false;
483
483
  hasDefault: false;
@@ -749,7 +749,7 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
749
749
  name: string;
750
750
  tableName: "tasks_tasks";
751
751
  dataType: "string enum";
752
- data: "cancelled" | "superseded" | "verified" | "reconciled" | "shadowed" | "completed-unverified";
752
+ data: "cancelled" | "verified" | "superseded" | "reconciled" | "shadowed" | "completed-unverified";
753
753
  driverParam: string;
754
754
  notNull: false;
755
755
  hasDefault: false;
@@ -969,6 +969,38 @@ export declare const insertTaskSchema: import("drizzle-orm/zod").BuildSchema<"in
969
969
  identity: undefined;
970
970
  generated: undefined;
971
971
  }, {}>;
972
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
973
+ name: string;
974
+ tableName: "tasks_tasks";
975
+ dataType: "string";
976
+ data: string;
977
+ driverParam: string;
978
+ notNull: false;
979
+ hasDefault: true;
980
+ isPrimaryKey: false;
981
+ isAutoincrement: false;
982
+ hasRuntimeDefault: true;
983
+ enumValues: [string, ...string[]];
984
+ baseColumn: never;
985
+ identity: undefined;
986
+ generated: undefined;
987
+ }, {}>;
988
+ birthFp: import("drizzle-orm/sqlite-core").SQLiteColumn<{
989
+ name: string;
990
+ tableName: "tasks_tasks";
991
+ dataType: "string";
992
+ data: string;
993
+ driverParam: string;
994
+ notNull: false;
995
+ hasDefault: false;
996
+ isPrimaryKey: false;
997
+ isAutoincrement: false;
998
+ hasRuntimeDefault: false;
999
+ enumValues: [string, ...string[]];
1000
+ baseColumn: never;
1001
+ identity: undefined;
1002
+ generated: undefined;
1003
+ }, {}>;
972
1004
  }, {
973
1005
  id: (s: z.ZodString) => z.ZodString;
974
1006
  title: (s: z.ZodString) => z.ZodString;
@@ -1027,7 +1059,7 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1027
1059
  name: string;
1028
1060
  tableName: "tasks_tasks";
1029
1061
  dataType: "string enum";
1030
- data: "cancelled" | "active" | "pending" | "blocked" | "done" | "archived" | "proposed";
1062
+ data: "cancelled" | "pending" | "active" | "blocked" | "done" | "archived" | "proposed";
1031
1063
  driverParam: string;
1032
1064
  notNull: true;
1033
1065
  hasDefault: true;
@@ -1059,7 +1091,7 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1059
1091
  name: string;
1060
1092
  tableName: "tasks_tasks";
1061
1093
  dataType: "string enum";
1062
- data: "task" | "saga" | "epic" | "subtask";
1094
+ data: "saga" | "epic" | "task" | "subtask";
1063
1095
  driverParam: string;
1064
1096
  notNull: false;
1065
1097
  hasDefault: false;
@@ -1075,7 +1107,7 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1075
1107
  name: string;
1076
1108
  tableName: "tasks_tasks";
1077
1109
  dataType: "string enum";
1078
- data: "release" | "work" | "research" | "experiment" | "bug" | "spike";
1110
+ data: "work" | "research" | "experiment" | "bug" | "spike" | "release";
1079
1111
  driverParam: string;
1080
1112
  notNull: true;
1081
1113
  hasDefault: true;
@@ -1155,7 +1187,7 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1155
1187
  name: string;
1156
1188
  tableName: "tasks_tasks";
1157
1189
  dataType: "string enum";
1158
- data: "small" | "medium" | "large";
1190
+ data: "medium" | "small" | "large";
1159
1191
  driverParam: string;
1160
1192
  notNull: false;
1161
1193
  hasDefault: false;
@@ -1427,7 +1459,7 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1427
1459
  name: string;
1428
1460
  tableName: "tasks_tasks";
1429
1461
  dataType: "string enum";
1430
- data: "cancelled" | "superseded" | "verified" | "reconciled" | "shadowed" | "completed-unverified";
1462
+ data: "cancelled" | "verified" | "superseded" | "reconciled" | "shadowed" | "completed-unverified";
1431
1463
  driverParam: string;
1432
1464
  notNull: false;
1433
1465
  hasDefault: false;
@@ -1647,6 +1679,38 @@ export declare const selectTaskSchema: import("drizzle-orm/zod").BuildSchema<"se
1647
1679
  identity: undefined;
1648
1680
  generated: undefined;
1649
1681
  }, {}>;
1682
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1683
+ name: string;
1684
+ tableName: "tasks_tasks";
1685
+ dataType: "string";
1686
+ data: string;
1687
+ driverParam: string;
1688
+ notNull: false;
1689
+ hasDefault: true;
1690
+ isPrimaryKey: false;
1691
+ isAutoincrement: false;
1692
+ hasRuntimeDefault: true;
1693
+ enumValues: [string, ...string[]];
1694
+ baseColumn: never;
1695
+ identity: undefined;
1696
+ generated: undefined;
1697
+ }, {}>;
1698
+ birthFp: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1699
+ name: string;
1700
+ tableName: "tasks_tasks";
1701
+ dataType: "string";
1702
+ data: string;
1703
+ driverParam: string;
1704
+ notNull: false;
1705
+ hasDefault: false;
1706
+ isPrimaryKey: false;
1707
+ isAutoincrement: false;
1708
+ hasRuntimeDefault: false;
1709
+ enumValues: [string, ...string[]];
1710
+ baseColumn: never;
1711
+ identity: undefined;
1712
+ generated: undefined;
1713
+ }, {}>;
1650
1714
  }, {
1651
1715
  id: (s: z.ZodString) => z.ZodString;
1652
1716
  title: (s: z.ZodString) => z.ZodString;
@@ -1685,6 +1749,22 @@ export declare const insertTaskDependencySchema: import("drizzle-orm/zod").Build
1685
1749
  identity: undefined;
1686
1750
  generated: undefined;
1687
1751
  }, {}>;
1752
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1753
+ name: string;
1754
+ tableName: "tasks_task_dependencies";
1755
+ dataType: "string";
1756
+ data: string;
1757
+ driverParam: string;
1758
+ notNull: false;
1759
+ hasDefault: false;
1760
+ isPrimaryKey: false;
1761
+ isAutoincrement: false;
1762
+ hasRuntimeDefault: false;
1763
+ enumValues: [string, ...string[]];
1764
+ baseColumn: never;
1765
+ identity: undefined;
1766
+ generated: undefined;
1767
+ }, {}>;
1688
1768
  }, undefined, import("drizzle-orm/zod").CoerceOptions>;
1689
1769
  export declare const selectTaskDependencySchema: import("drizzle-orm/zod").BuildSchema<"select", {
1690
1770
  taskId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
@@ -1719,6 +1799,22 @@ export declare const selectTaskDependencySchema: import("drizzle-orm/zod").Build
1719
1799
  identity: undefined;
1720
1800
  generated: undefined;
1721
1801
  }, {}>;
1802
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1803
+ name: string;
1804
+ tableName: "tasks_task_dependencies";
1805
+ dataType: "string";
1806
+ data: string;
1807
+ driverParam: string;
1808
+ notNull: false;
1809
+ hasDefault: false;
1810
+ isPrimaryKey: false;
1811
+ isAutoincrement: false;
1812
+ hasRuntimeDefault: false;
1813
+ enumValues: [string, ...string[]];
1814
+ baseColumn: never;
1815
+ identity: undefined;
1816
+ generated: undefined;
1817
+ }, {}>;
1722
1818
  }, undefined, import("drizzle-orm/zod").CoerceOptions>;
1723
1819
  export declare const insertTaskRelationSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
1724
1820
  taskId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
@@ -1757,7 +1853,7 @@ export declare const insertTaskRelationSchema: import("drizzle-orm/zod").BuildSc
1757
1853
  name: string;
1758
1854
  tableName: "tasks_task_relations";
1759
1855
  dataType: "string enum";
1760
- data: "extends" | "related" | "blocks" | "duplicates" | "absorbs" | "fixes" | "supersedes" | "groups";
1856
+ data: "related" | "blocks" | "duplicates" | "absorbs" | "fixes" | "extends" | "supersedes" | "groups";
1761
1857
  driverParam: string;
1762
1858
  notNull: true;
1763
1859
  hasDefault: true;
@@ -1785,6 +1881,22 @@ export declare const insertTaskRelationSchema: import("drizzle-orm/zod").BuildSc
1785
1881
  identity: undefined;
1786
1882
  generated: undefined;
1787
1883
  }, {}>;
1884
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1885
+ name: string;
1886
+ tableName: "tasks_task_relations";
1887
+ dataType: "string";
1888
+ data: string;
1889
+ driverParam: string;
1890
+ notNull: false;
1891
+ hasDefault: false;
1892
+ isPrimaryKey: false;
1893
+ isAutoincrement: false;
1894
+ hasRuntimeDefault: false;
1895
+ enumValues: [string, ...string[]];
1896
+ baseColumn: never;
1897
+ identity: undefined;
1898
+ generated: undefined;
1899
+ }, {}>;
1788
1900
  }, {
1789
1901
  reason: (s: z.ZodString) => z.ZodString;
1790
1902
  }, import("drizzle-orm/zod").CoerceOptions>;
@@ -1825,7 +1937,7 @@ export declare const selectTaskRelationSchema: import("drizzle-orm/zod").BuildSc
1825
1937
  name: string;
1826
1938
  tableName: "tasks_task_relations";
1827
1939
  dataType: "string enum";
1828
- data: "extends" | "related" | "blocks" | "duplicates" | "absorbs" | "fixes" | "supersedes" | "groups";
1940
+ data: "related" | "blocks" | "duplicates" | "absorbs" | "fixes" | "extends" | "supersedes" | "groups";
1829
1941
  driverParam: string;
1830
1942
  notNull: true;
1831
1943
  hasDefault: true;
@@ -1853,6 +1965,22 @@ export declare const selectTaskRelationSchema: import("drizzle-orm/zod").BuildSc
1853
1965
  identity: undefined;
1854
1966
  generated: undefined;
1855
1967
  }, {}>;
1968
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1969
+ name: string;
1970
+ tableName: "tasks_task_relations";
1971
+ dataType: "string";
1972
+ data: string;
1973
+ driverParam: string;
1974
+ notNull: false;
1975
+ hasDefault: false;
1976
+ isPrimaryKey: false;
1977
+ isAutoincrement: false;
1978
+ hasRuntimeDefault: false;
1979
+ enumValues: [string, ...string[]];
1980
+ baseColumn: never;
1981
+ identity: undefined;
1982
+ generated: undefined;
1983
+ }, {}>;
1856
1984
  }, {
1857
1985
  reason: (s: z.ZodString) => z.ZodString;
1858
1986
  }, import("drizzle-orm/zod").CoerceOptions>;
@@ -1893,7 +2021,7 @@ export declare const insertSessionSchema: import("drizzle-orm/zod").BuildSchema<
1893
2021
  name: string;
1894
2022
  tableName: "tasks_sessions";
1895
2023
  dataType: "string enum";
1896
- data: "active" | "orphaned" | "ended" | "suspended";
2024
+ data: "active" | "ended" | "orphaned" | "suspended";
1897
2025
  driverParam: string;
1898
2026
  notNull: true;
1899
2027
  hasDefault: true;
@@ -2337,6 +2465,38 @@ export declare const insertSessionSchema: import("drizzle-orm/zod").BuildSchema<
2337
2465
  identity: undefined;
2338
2466
  generated: undefined;
2339
2467
  }, {}>;
2468
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2469
+ name: string;
2470
+ tableName: "tasks_sessions";
2471
+ dataType: "string";
2472
+ data: string;
2473
+ driverParam: string;
2474
+ notNull: false;
2475
+ hasDefault: true;
2476
+ isPrimaryKey: false;
2477
+ isAutoincrement: false;
2478
+ hasRuntimeDefault: true;
2479
+ enumValues: [string, ...string[]];
2480
+ baseColumn: never;
2481
+ identity: undefined;
2482
+ generated: undefined;
2483
+ }, {}>;
2484
+ birthFp: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2485
+ name: string;
2486
+ tableName: "tasks_sessions";
2487
+ dataType: "string";
2488
+ data: string;
2489
+ driverParam: string;
2490
+ notNull: false;
2491
+ hasDefault: false;
2492
+ isPrimaryKey: false;
2493
+ isAutoincrement: false;
2494
+ hasRuntimeDefault: false;
2495
+ enumValues: [string, ...string[]];
2496
+ baseColumn: never;
2497
+ identity: undefined;
2498
+ generated: undefined;
2499
+ }, {}>;
2340
2500
  }, {
2341
2501
  name: (s: z.ZodString) => z.ZodString;
2342
2502
  }, import("drizzle-orm/zod").CoerceOptions>;
@@ -2377,7 +2537,7 @@ export declare const selectSessionSchema: import("drizzle-orm/zod").BuildSchema<
2377
2537
  name: string;
2378
2538
  tableName: "tasks_sessions";
2379
2539
  dataType: "string enum";
2380
- data: "active" | "orphaned" | "ended" | "suspended";
2540
+ data: "active" | "ended" | "orphaned" | "suspended";
2381
2541
  driverParam: string;
2382
2542
  notNull: true;
2383
2543
  hasDefault: true;
@@ -2821,6 +2981,38 @@ export declare const selectSessionSchema: import("drizzle-orm/zod").BuildSchema<
2821
2981
  identity: undefined;
2822
2982
  generated: undefined;
2823
2983
  }, {}>;
2984
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2985
+ name: string;
2986
+ tableName: "tasks_sessions";
2987
+ dataType: "string";
2988
+ data: string;
2989
+ driverParam: string;
2990
+ notNull: false;
2991
+ hasDefault: true;
2992
+ isPrimaryKey: false;
2993
+ isAutoincrement: false;
2994
+ hasRuntimeDefault: true;
2995
+ enumValues: [string, ...string[]];
2996
+ baseColumn: never;
2997
+ identity: undefined;
2998
+ generated: undefined;
2999
+ }, {}>;
3000
+ birthFp: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3001
+ name: string;
3002
+ tableName: "tasks_sessions";
3003
+ dataType: "string";
3004
+ data: string;
3005
+ driverParam: string;
3006
+ notNull: false;
3007
+ hasDefault: false;
3008
+ isPrimaryKey: false;
3009
+ isAutoincrement: false;
3010
+ hasRuntimeDefault: false;
3011
+ enumValues: [string, ...string[]];
3012
+ baseColumn: never;
3013
+ identity: undefined;
3014
+ generated: undefined;
3015
+ }, {}>;
2824
3016
  }, {
2825
3017
  name: (s: z.ZodString) => z.ZodString;
2826
3018
  }, import("drizzle-orm/zod").CoerceOptions>;
@@ -3025,7 +3217,7 @@ export declare const insertLifecyclePipelineSchema: import("drizzle-orm/zod").Bu
3025
3217
  name: string;
3026
3218
  tableName: "tasks_lifecycle_pipelines";
3027
3219
  dataType: "string enum";
3028
- data: "failed" | "cancelled" | "active" | "aborted" | "completed" | "blocked";
3220
+ data: "cancelled" | "active" | "blocked" | "completed" | "failed" | "aborted";
3029
3221
  driverParam: string;
3030
3222
  notNull: true;
3031
3223
  hasDefault: true;
@@ -3158,7 +3350,7 @@ export declare const selectLifecyclePipelineSchema: import("drizzle-orm/zod").Bu
3158
3350
  name: string;
3159
3351
  tableName: "tasks_lifecycle_pipelines";
3160
3352
  dataType: "string enum";
3161
- data: "failed" | "cancelled" | "active" | "aborted" | "completed" | "blocked";
3353
+ data: "cancelled" | "active" | "blocked" | "completed" | "failed" | "aborted";
3162
3354
  driverParam: string;
3163
3355
  notNull: true;
3164
3356
  hasDefault: true;
@@ -3291,7 +3483,7 @@ export declare const insertLifecycleStageSchema: import("drizzle-orm/zod").Build
3291
3483
  name: string;
3292
3484
  tableName: "tasks_lifecycle_stages";
3293
3485
  dataType: "string enum";
3294
- data: "release" | "research" | "consensus" | "architecture_decision" | "specification" | "decomposition" | "implementation" | "validation" | "testing" | "contribution";
3486
+ data: "research" | "release" | "consensus" | "architecture_decision" | "specification" | "decomposition" | "implementation" | "validation" | "testing" | "contribution";
3295
3487
  driverParam: string;
3296
3488
  notNull: true;
3297
3489
  hasDefault: false;
@@ -3307,7 +3499,7 @@ export declare const insertLifecycleStageSchema: import("drizzle-orm/zod").Build
3307
3499
  name: string;
3308
3500
  tableName: "tasks_lifecycle_stages";
3309
3501
  dataType: "string enum";
3310
- data: "failed" | "completed" | "blocked" | "not_started" | "in_progress" | "skipped";
3502
+ data: "blocked" | "completed" | "failed" | "not_started" | "in_progress" | "skipped";
3311
3503
  driverParam: string;
3312
3504
  notNull: true;
3313
3505
  hasDefault: true;
@@ -3531,7 +3723,7 @@ export declare const insertLifecycleStageSchema: import("drizzle-orm/zod").Build
3531
3723
  name: string;
3532
3724
  tableName: "tasks_lifecycle_stages";
3533
3725
  dataType: "string enum";
3534
- data: "rejected" | "pending" | "in_review" | "approved" | "needs_revision";
3726
+ data: "pending" | "in_review" | "approved" | "rejected" | "needs_revision";
3535
3727
  driverParam: string;
3536
3728
  notNull: false;
3537
3729
  hasDefault: false;
@@ -3602,7 +3794,7 @@ export declare const selectLifecycleStageSchema: import("drizzle-orm/zod").Build
3602
3794
  name: string;
3603
3795
  tableName: "tasks_lifecycle_stages";
3604
3796
  dataType: "string enum";
3605
- data: "release" | "research" | "consensus" | "architecture_decision" | "specification" | "decomposition" | "implementation" | "validation" | "testing" | "contribution";
3797
+ data: "research" | "release" | "consensus" | "architecture_decision" | "specification" | "decomposition" | "implementation" | "validation" | "testing" | "contribution";
3606
3798
  driverParam: string;
3607
3799
  notNull: true;
3608
3800
  hasDefault: false;
@@ -3618,7 +3810,7 @@ export declare const selectLifecycleStageSchema: import("drizzle-orm/zod").Build
3618
3810
  name: string;
3619
3811
  tableName: "tasks_lifecycle_stages";
3620
3812
  dataType: "string enum";
3621
- data: "failed" | "completed" | "blocked" | "not_started" | "in_progress" | "skipped";
3813
+ data: "blocked" | "completed" | "failed" | "not_started" | "in_progress" | "skipped";
3622
3814
  driverParam: string;
3623
3815
  notNull: true;
3624
3816
  hasDefault: true;
@@ -3842,7 +4034,7 @@ export declare const selectLifecycleStageSchema: import("drizzle-orm/zod").Build
3842
4034
  name: string;
3843
4035
  tableName: "tasks_lifecycle_stages";
3844
4036
  dataType: "string enum";
3845
- data: "rejected" | "pending" | "in_review" | "approved" | "needs_revision";
4037
+ data: "pending" | "in_review" | "approved" | "rejected" | "needs_revision";
3846
4038
  driverParam: string;
3847
4039
  notNull: false;
3848
4040
  hasDefault: false;
@@ -6119,7 +6311,7 @@ export declare const insertArchitectureDecisionSchema: import("drizzle-orm/zod")
6119
6311
  name: string;
6120
6312
  tableName: "architecture_decisions";
6121
6313
  dataType: "string enum";
6122
- data: "failed" | "pending" | "passed" | "waived";
6314
+ data: "pending" | "failed" | "passed" | "waived";
6123
6315
  driverParam: string;
6124
6316
  notNull: false;
6125
6317
  hasDefault: false;
@@ -6414,7 +6606,7 @@ export declare const selectArchitectureDecisionSchema: import("drizzle-orm/zod")
6414
6606
  name: string;
6415
6607
  tableName: "architecture_decisions";
6416
6608
  dataType: "string enum";
6417
- data: "failed" | "pending" | "passed" | "waived";
6609
+ data: "pending" | "failed" | "passed" | "waived";
6418
6610
  driverParam: string;
6419
6611
  notNull: false;
6420
6612
  hasDefault: false;
@@ -6581,7 +6773,7 @@ export declare const insertTokenUsageSchema: import("drizzle-orm/zod").BuildSche
6581
6773
  name: string;
6582
6774
  tableName: "token_usage";
6583
6775
  dataType: "string enum";
6584
- data: "unknown" | "agent" | "cli" | "api" | "mcp";
6776
+ data: "agent" | "cli" | "api" | "mcp" | "unknown";
6585
6777
  driverParam: string;
6586
6778
  notNull: true;
6587
6779
  hasDefault: true;
@@ -6923,7 +7115,7 @@ export declare const selectTokenUsageSchema: import("drizzle-orm/zod").BuildSche
6923
7115
  name: string;
6924
7116
  tableName: "token_usage";
6925
7117
  dataType: "string enum";
6926
- data: "unknown" | "agent" | "cli" | "api" | "mcp";
7118
+ data: "agent" | "cli" | "api" | "mcp" | "unknown";
6927
7119
  driverParam: string;
6928
7120
  notNull: true;
6929
7121
  hasDefault: true;
@@ -7281,7 +7473,7 @@ export declare const insertManifestEntrySchema: import("drizzle-orm/zod").BuildS
7281
7473
  name: string;
7282
7474
  tableName: "manifest_entries";
7283
7475
  dataType: "string enum";
7284
- data: "partial" | "completed" | "blocked" | "archived";
7476
+ data: "blocked" | "archived" | "completed" | "partial";
7285
7477
  driverParam: string;
7286
7478
  notNull: true;
7287
7479
  hasDefault: false;
@@ -7491,7 +7683,7 @@ export declare const selectManifestEntrySchema: import("drizzle-orm/zod").BuildS
7491
7683
  name: string;
7492
7684
  tableName: "manifest_entries";
7493
7685
  dataType: "string enum";
7494
- data: "partial" | "completed" | "blocked" | "archived";
7686
+ data: "blocked" | "archived" | "completed" | "partial";
7495
7687
  driverParam: string;
7496
7688
  notNull: true;
7497
7689
  hasDefault: false;
@@ -8177,7 +8369,7 @@ export declare const insertReleaseSchema: import("drizzle-orm/zod").BuildSchema<
8177
8369
  name: string;
8178
8370
  tableName: "tasks_releases";
8179
8371
  dataType: "string enum";
8180
- data: "failed" | "cancelled" | "reconciled" | "planned" | "pr-opened" | "pr-merged" | "published" | "prepared" | "committed" | "tagged" | "pushed" | "rolled_back";
8372
+ data: "cancelled" | "reconciled" | "failed" | "planned" | "pr-opened" | "pr-merged" | "published" | "prepared" | "committed" | "tagged" | "pushed" | "rolled_back";
8181
8373
  driverParam: string;
8182
8374
  notNull: true;
8183
8375
  hasDefault: true;
@@ -8678,7 +8870,7 @@ export declare const selectReleaseSchema: import("drizzle-orm/zod").BuildSchema<
8678
8870
  name: string;
8679
8871
  tableName: "tasks_releases";
8680
8872
  dataType: "string enum";
8681
- data: "failed" | "cancelled" | "reconciled" | "planned" | "pr-opened" | "pr-merged" | "published" | "prepared" | "committed" | "tagged" | "pushed" | "rolled_back";
8873
+ data: "cancelled" | "reconciled" | "failed" | "planned" | "pr-opened" | "pr-merged" | "published" | "prepared" | "committed" | "tagged" | "pushed" | "rolled_back";
8682
8874
  driverParam: string;
8683
8875
  notNull: true;
8684
8876
  hasDefault: true;