@cleocode/core 2026.3.76 → 2026.4.2

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 (473) hide show
  1. package/dist/agents/agent-schema.d.ts.map +1 -1
  2. package/dist/audit.d.ts +1 -1
  3. package/dist/audit.d.ts.map +1 -1
  4. package/dist/bootstrap.d.ts +2 -2
  5. package/dist/bootstrap.d.ts.map +1 -1
  6. package/dist/caamp/adapter.d.ts +6 -49
  7. package/dist/caamp/adapter.d.ts.map +1 -1
  8. package/dist/caamp/index.d.ts +2 -2
  9. package/dist/caamp/index.d.ts.map +1 -1
  10. package/dist/code/index.d.ts +10 -0
  11. package/dist/code/index.d.ts.map +1 -0
  12. package/dist/code/outline.d.ts +51 -0
  13. package/dist/code/outline.d.ts.map +1 -0
  14. package/dist/code/parser.d.ts +32 -0
  15. package/dist/code/parser.d.ts.map +1 -0
  16. package/dist/code/search.d.ts +42 -0
  17. package/dist/code/search.d.ts.map +1 -0
  18. package/dist/code/unfold.d.ts +44 -0
  19. package/dist/code/unfold.d.ts.map +1 -0
  20. package/dist/compliance/protocol-enforcement.d.ts +1 -1
  21. package/dist/compliance/protocol-rules.d.ts +1 -1
  22. package/dist/compliance/protocol-types.d.ts +2 -3
  23. package/dist/compliance/protocol-types.d.ts.map +1 -1
  24. package/dist/conduit/conduit-client.d.ts +14 -0
  25. package/dist/conduit/conduit-client.d.ts.map +1 -1
  26. package/dist/conduit/factory.d.ts +11 -1
  27. package/dist/conduit/factory.d.ts.map +1 -1
  28. package/dist/conduit/http-transport.d.ts +17 -5
  29. package/dist/conduit/http-transport.d.ts.map +1 -1
  30. package/dist/conduit/index.d.ts +5 -2
  31. package/dist/conduit/index.d.ts.map +1 -1
  32. package/dist/conduit/local-transport.d.ts +91 -0
  33. package/dist/conduit/local-transport.d.ts.map +1 -0
  34. package/dist/conduit/sse-transport.d.ts +68 -0
  35. package/dist/conduit/sse-transport.d.ts.map +1 -0
  36. package/dist/crypto/credentials.d.ts.map +1 -1
  37. package/dist/error-catalog.d.ts +3 -3
  38. package/dist/error-catalog.d.ts.map +1 -1
  39. package/dist/errors.d.ts +1 -1
  40. package/dist/hooks/handlers/index.d.ts +2 -2
  41. package/dist/hooks/handlers/index.d.ts.map +1 -1
  42. package/dist/hooks/handlers/notification-hooks.d.ts +31 -0
  43. package/dist/hooks/handlers/notification-hooks.d.ts.map +1 -0
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +4646 -3476
  47. package/dist/index.js.map +4 -4
  48. package/dist/init.d.ts +6 -6
  49. package/dist/init.d.ts.map +1 -1
  50. package/dist/injection.d.ts.map +1 -1
  51. package/dist/internal.d.ts +7 -5
  52. package/dist/internal.d.ts.map +1 -1
  53. package/dist/lib/index.d.ts +1 -0
  54. package/dist/lib/index.d.ts.map +1 -1
  55. package/dist/lib/tree-sitter-languages.d.ts +29 -0
  56. package/dist/lib/tree-sitter-languages.d.ts.map +1 -0
  57. package/dist/logger.d.ts +3 -3
  58. package/dist/memory/brain-links.d.ts.map +1 -1
  59. package/dist/memory/brain-maintenance.d.ts +13 -0
  60. package/dist/memory/brain-maintenance.d.ts.map +1 -1
  61. package/dist/memory/brain-retrieval.d.ts +1 -1
  62. package/dist/memory/brain-retrieval.d.ts.map +1 -1
  63. package/dist/memory/decisions.d.ts.map +1 -1
  64. package/dist/memory/engine-compat.d.ts +392 -25
  65. package/dist/memory/engine-compat.d.ts.map +1 -1
  66. package/dist/memory/index.d.ts +416 -3
  67. package/dist/memory/index.d.ts.map +1 -1
  68. package/dist/metrics/token-service.d.ts +3 -3
  69. package/dist/metrics/token-service.d.ts.map +1 -1
  70. package/dist/orchestration/hierarchy.d.ts +32 -0
  71. package/dist/orchestration/hierarchy.d.ts.map +1 -0
  72. package/dist/orchestration/index.d.ts +1 -0
  73. package/dist/orchestration/index.d.ts.map +1 -1
  74. package/dist/paths.d.ts +335 -2
  75. package/dist/paths.d.ts.map +1 -1
  76. package/dist/routing/capability-matrix.d.ts +3 -3
  77. package/dist/routing/capability-matrix.d.ts.map +1 -1
  78. package/dist/scaffold.d.ts +422 -11
  79. package/dist/scaffold.d.ts.map +1 -1
  80. package/dist/security/input-sanitization.d.ts +2 -2
  81. package/dist/skills/dynamic-skill-generator.d.ts +3 -2
  82. package/dist/skills/dynamic-skill-generator.d.ts.map +1 -1
  83. package/dist/skills/routing-table.d.ts +4 -4
  84. package/dist/skills/routing-table.d.ts.map +1 -1
  85. package/dist/store/agent-registry-accessor.d.ts +10 -433
  86. package/dist/store/agent-registry-accessor.d.ts.map +1 -1
  87. package/dist/store/cross-db-cleanup.d.ts +34 -0
  88. package/dist/store/cross-db-cleanup.d.ts.map +1 -1
  89. package/dist/store/provider.d.ts +1 -1
  90. package/dist/store/signaldock-sqlite.d.ts.map +1 -1
  91. package/dist/store/sqlite-data-accessor.d.ts.map +1 -1
  92. package/dist/store/sqlite.d.ts +1 -1
  93. package/dist/store/task-store.d.ts.map +1 -1
  94. package/dist/store/tasks-schema.d.ts +4 -228
  95. package/dist/store/tasks-schema.d.ts.map +1 -1
  96. package/dist/store/validation-schemas.d.ts +4 -5
  97. package/dist/store/validation-schemas.d.ts.map +1 -1
  98. package/dist/system/archive-analytics.d.ts +1 -1
  99. package/dist/system/health.d.ts +2 -2
  100. package/dist/system/health.d.ts.map +1 -1
  101. package/dist/system/runtime.d.ts +2 -1
  102. package/dist/system/runtime.d.ts.map +1 -1
  103. package/dist/tasks/list.d.ts +1 -1
  104. package/dist/tasks/list.d.ts.map +1 -1
  105. package/dist/tasks/task-ops.d.ts +415 -3
  106. package/dist/tasks/task-ops.d.ts.map +1 -1
  107. package/dist/templates/parser.d.ts +1 -1
  108. package/dist/ui/index.d.ts +1 -1
  109. package/dist/upgrade.d.ts +1 -1
  110. package/dist/upgrade.d.ts.map +1 -1
  111. package/dist/validation/operation-gate-validators.d.ts +1 -1
  112. package/dist/validation/operation-verification-gates.d.ts +3 -3
  113. package/dist/validation/param-utils.d.ts +6 -5
  114. package/dist/validation/param-utils.d.ts.map +1 -1
  115. package/dist/validation/validate-ops.d.ts +1 -1
  116. package/dist/validation/validate-ops.d.ts.map +1 -1
  117. package/package.json +19 -7
  118. package/src/__tests__/caamp-skill-install.test.js +0 -15
  119. package/src/__tests__/caamp-skill-install.test.js.map +1 -1
  120. package/src/__tests__/caamp-skill-install.test.ts +0 -16
  121. package/src/__tests__/injection-mvi-tiers.test.js +7 -7
  122. package/src/__tests__/injection-mvi-tiers.test.js.map +1 -1
  123. package/src/__tests__/injection-mvi-tiers.test.ts +55 -103
  124. package/src/agents/agent-schema.ts +2 -5
  125. package/src/audit.ts +2 -2
  126. package/src/bootstrap.ts +5 -39
  127. package/src/caamp/adapter.ts +3 -219
  128. package/src/caamp/index.ts +1 -13
  129. package/src/cant/__tests__/cant-agent-parse.test.d.ts.map +1 -0
  130. package/src/cant/__tests__/cant-agent-parse.test.js +77 -0
  131. package/src/cant/__tests__/cant-agent-parse.test.js.map +1 -0
  132. package/src/code/index.ts +10 -0
  133. package/src/code/outline.ts +214 -0
  134. package/src/code/parser.ts +331 -0
  135. package/src/code/search.ts +173 -0
  136. package/src/code/unfold.ts +204 -0
  137. package/src/codebase-map/analyzers/architecture.ts +2 -2
  138. package/src/compliance/protocol-enforcement.ts +1 -1
  139. package/src/compliance/protocol-rules.ts +1 -1
  140. package/src/compliance/protocol-types.ts +2 -3
  141. package/src/conduit/__tests__/dual-api-e2e.test.d.ts.map +1 -0
  142. package/src/conduit/__tests__/dual-api-e2e.test.js +178 -0
  143. package/src/conduit/__tests__/dual-api-e2e.test.js.map +1 -0
  144. package/src/conduit/__tests__/dual-api-e2e.test.ts +212 -0
  145. package/src/conduit/__tests__/local-credential-flow.test.d.ts.map +1 -0
  146. package/src/conduit/__tests__/local-credential-flow.test.js +185 -0
  147. package/src/conduit/__tests__/local-credential-flow.test.js.map +1 -0
  148. package/src/conduit/__tests__/local-credential-flow.test.ts +230 -0
  149. package/src/conduit/__tests__/local-transport.test.d.ts.map +1 -0
  150. package/src/conduit/__tests__/local-transport.test.js +404 -0
  151. package/src/conduit/__tests__/local-transport.test.js.map +1 -0
  152. package/src/conduit/__tests__/local-transport.test.ts +509 -0
  153. package/src/conduit/__tests__/sse-transport.test.d.ts.map +1 -0
  154. package/src/conduit/__tests__/sse-transport.test.js +291 -0
  155. package/src/conduit/__tests__/sse-transport.test.js.map +1 -0
  156. package/src/conduit/__tests__/sse-transport.test.ts +344 -0
  157. package/src/conduit/conduit-client.ts +14 -0
  158. package/src/conduit/factory.ts +29 -8
  159. package/src/conduit/http-transport.ts +78 -16
  160. package/src/conduit/index.ts +5 -2
  161. package/src/conduit/local-transport.ts +309 -0
  162. package/src/conduit/sse-transport.ts +382 -0
  163. package/src/crypto/credentials.ts +59 -13
  164. package/src/error-catalog.ts +3 -3
  165. package/src/errors.ts +1 -1
  166. package/src/hooks/__tests__/provider-hooks.test.js +4 -4
  167. package/src/hooks/__tests__/provider-hooks.test.js.map +1 -1
  168. package/src/hooks/__tests__/provider-hooks.test.ts +4 -4
  169. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js +2 -2
  170. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js.map +1 -1
  171. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.ts +6 -4
  172. package/src/hooks/handlers/index.ts +2 -6
  173. package/src/hooks/handlers/notification-hooks.ts +65 -0
  174. package/src/index.ts +2 -1
  175. package/src/init.ts +14 -54
  176. package/src/injection.ts +4 -3
  177. package/src/internal.ts +7 -5
  178. package/src/lib/index.ts +8 -0
  179. package/src/lib/tree-sitter-languages.ts +88 -0
  180. package/src/logger.ts +5 -5
  181. package/src/memory/__tests__/brain-links.test.js +13 -0
  182. package/src/memory/__tests__/brain-links.test.js.map +1 -1
  183. package/src/memory/__tests__/brain-links.test.ts +14 -0
  184. package/src/memory/__tests__/brain-retrieval.test.js +9 -0
  185. package/src/memory/__tests__/brain-retrieval.test.js.map +1 -1
  186. package/src/memory/__tests__/brain-retrieval.test.ts +10 -0
  187. package/src/memory/__tests__/session-memory.test.js +16 -0
  188. package/src/memory/__tests__/session-memory.test.js.map +1 -1
  189. package/src/memory/__tests__/session-memory.test.ts +17 -0
  190. package/src/memory/brain-links.ts +17 -0
  191. package/src/memory/brain-maintenance.ts +33 -1
  192. package/src/memory/brain-retrieval.ts +19 -3
  193. package/src/memory/decisions.ts +18 -2
  194. package/src/memory/engine-compat.ts +392 -25
  195. package/src/memory/index.ts +417 -4
  196. package/src/metrics/token-service.ts +4 -4
  197. package/src/migration/index.ts +1 -1
  198. package/src/orchestration/hierarchy.ts +202 -0
  199. package/src/orchestration/index.ts +1 -0
  200. package/src/paths.ts +340 -5
  201. package/src/routing/capability-matrix.ts +49 -49
  202. package/src/scaffold.ts +428 -70
  203. package/src/security/input-sanitization.ts +4 -4
  204. package/src/sessions/__tests__/session-grade.integration.test.js +9 -9
  205. package/src/sessions/__tests__/session-grade.integration.test.ts +9 -9
  206. package/src/sessions/__tests__/session-grade.test.js +10 -10
  207. package/src/sessions/__tests__/session-grade.test.js.map +1 -1
  208. package/src/sessions/__tests__/session-grade.test.ts +10 -10
  209. package/src/sessions/session-grade.ts +4 -4
  210. package/src/skills/__tests__/dynamic-skill-generator.test.js +24 -26
  211. package/src/skills/__tests__/dynamic-skill-generator.test.js.map +1 -1
  212. package/src/skills/__tests__/dynamic-skill-generator.test.ts +24 -26
  213. package/src/skills/__tests__/routing-table.test.js +22 -22
  214. package/src/skills/__tests__/routing-table.test.js.map +1 -1
  215. package/src/skills/__tests__/routing-table.test.ts +23 -23
  216. package/src/skills/dynamic-skill-generator.ts +13 -24
  217. package/src/skills/routing-table.ts +4 -4
  218. package/src/store/__tests__/data-safety-central.test.js +8 -0
  219. package/src/store/__tests__/data-safety-central.test.js.map +1 -1
  220. package/src/store/__tests__/data-safety-central.test.ts +8 -0
  221. package/src/store/__tests__/safety-accessor.test.js +8 -0
  222. package/src/store/__tests__/safety-accessor.test.js.map +1 -1
  223. package/src/store/__tests__/safety-accessor.test.ts +8 -0
  224. package/src/store/agent-registry-accessor.ts +284 -108
  225. package/src/store/cross-db-cleanup.ts +175 -1
  226. package/src/store/provider.ts +2 -2
  227. package/src/store/signaldock-sqlite.ts +262 -60
  228. package/src/store/sqlite-data-accessor.ts +3 -0
  229. package/src/store/sqlite.ts +2 -2
  230. package/src/store/task-store.ts +8 -1
  231. package/src/store/tasks-schema.ts +5 -40
  232. package/src/system/__tests__/health.test.js +2 -2
  233. package/src/system/__tests__/health.test.js.map +1 -1
  234. package/src/system/__tests__/health.test.ts +2 -2
  235. package/src/system/archive-analytics.ts +1 -1
  236. package/src/system/health.ts +43 -19
  237. package/src/system/inject-generate.ts +20 -20
  238. package/src/system/runtime.ts +5 -4
  239. package/src/tasks/atomicity.ts +1 -1
  240. package/src/tasks/list.ts +1 -1
  241. package/src/tasks/task-ops.ts +415 -3
  242. package/src/templates/parser.ts +1 -1
  243. package/src/ui/index.ts +4 -4
  244. package/src/upgrade.ts +3 -14
  245. package/src/validation/operation-gate-validators.ts +1 -1
  246. package/src/validation/operation-verification-gates.ts +3 -3
  247. package/src/validation/param-utils.ts +11 -10
  248. package/src/validation/validate-ops.ts +6 -6
  249. package/templates/CLEO-INJECTION.md +38 -110
  250. package/dist/hooks/handlers/mcp-hooks.d.ts +0 -48
  251. package/dist/hooks/handlers/mcp-hooks.d.ts.map +0 -1
  252. package/dist/mcp/index.d.ts +0 -42
  253. package/dist/mcp/index.d.ts.map +0 -1
  254. package/src/__tests__/audit-prune.test.d.ts +0 -2
  255. package/src/__tests__/caamp-skill-install.test.d.ts +0 -14
  256. package/src/__tests__/cli-mcp-parity.integration.test.d.ts +0 -34
  257. package/src/__tests__/cli-mcp-parity.integration.test.d.ts.map +0 -1
  258. package/src/__tests__/cli-mcp-parity.integration.test.js +0 -898
  259. package/src/__tests__/cli-mcp-parity.integration.test.js.map +0 -1
  260. package/src/__tests__/cli-parity.test.d.ts +0 -9
  261. package/src/__tests__/config.test.d.ts +0 -7
  262. package/src/__tests__/core-parity.test.d.ts +0 -17
  263. package/src/__tests__/error-catalog.test.d.ts +0 -2
  264. package/src/__tests__/golden-parity.test.d.ts +0 -12
  265. package/src/__tests__/hooks.test.d.ts +0 -5
  266. package/src/__tests__/human-output.test.d.ts +0 -12
  267. package/src/__tests__/index-api-compat.test.d.ts +0 -2
  268. package/src/__tests__/init-e2e.test.d.ts +0 -12
  269. package/src/__tests__/injection-chain.test.d.ts +0 -18
  270. package/src/__tests__/injection-mvi-tiers.test.d.ts +0 -14
  271. package/src/__tests__/injection-shared.test.d.ts +0 -10
  272. package/src/__tests__/lafs-conformance.test.d.ts +0 -18
  273. package/src/__tests__/logger.test.d.ts +0 -2
  274. package/src/__tests__/mcp-install-verify.test.d.ts +0 -13
  275. package/src/__tests__/mcp-install-verify.test.d.ts.map +0 -1
  276. package/src/__tests__/mcp-install-verify.test.js +0 -177
  277. package/src/__tests__/mcp-install-verify.test.js.map +0 -1
  278. package/src/__tests__/mcp-install-verify.test.ts +0 -217
  279. package/src/__tests__/paths.test.d.ts +0 -7
  280. package/src/__tests__/project-info.test.d.ts +0 -2
  281. package/src/__tests__/rcsd-pipeline-e2e.test.d.ts +0 -14
  282. package/src/__tests__/remote.test.d.ts +0 -6
  283. package/src/__tests__/scaffold.test.d.ts +0 -6
  284. package/src/__tests__/schema-management.test.d.ts +0 -5
  285. package/src/__tests__/schema.test.d.ts +0 -2
  286. package/src/__tests__/sharing.test.d.ts +0 -6
  287. package/src/__tests__/snapshot.test.d.ts +0 -6
  288. package/src/__tests__/upgrade.test.d.ts +0 -7
  289. package/src/adapters/__tests__/discovery.test.d.ts +0 -6
  290. package/src/adapters/__tests__/manager.test.d.ts +0 -6
  291. package/src/agents/__tests__/agent-registry.test.d.ts +0 -12
  292. package/src/agents/__tests__/capacity.test.d.ts +0 -7
  293. package/src/agents/__tests__/execution-learning.test.d.ts +0 -14
  294. package/src/agents/__tests__/health-monitor.test.d.ts +0 -10
  295. package/src/agents/__tests__/registry.test.d.ts +0 -8
  296. package/src/agents/__tests__/retry.test.d.ts +0 -7
  297. package/src/compliance/__tests__/sync.test.d.ts +0 -5
  298. package/src/hooks/__tests__/provider-hooks.test.d.ts +0 -2
  299. package/src/hooks/__tests__/registry.test.d.ts +0 -2
  300. package/src/hooks/handlers/__tests__/error-hooks.test.d.ts +0 -2
  301. package/src/hooks/handlers/__tests__/file-hooks.test.d.ts +0 -2
  302. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.d.ts +0 -13
  303. package/src/hooks/handlers/__tests__/mcp-hooks.test.d.ts +0 -2
  304. package/src/hooks/handlers/__tests__/mcp-hooks.test.d.ts.map +0 -1
  305. package/src/hooks/handlers/__tests__/mcp-hooks.test.js +0 -119
  306. package/src/hooks/handlers/__tests__/mcp-hooks.test.js.map +0 -1
  307. package/src/hooks/handlers/__tests__/mcp-hooks.test.ts +0 -150
  308. package/src/hooks/handlers/__tests__/session-hooks.test.d.ts +0 -2
  309. package/src/hooks/handlers/__tests__/task-hooks.test.d.ts +0 -2
  310. package/src/hooks/handlers/mcp-hooks.ts +0 -162
  311. package/src/intelligence/__tests__/adaptive-validation.test.d.ts +0 -11
  312. package/src/intelligence/__tests__/impact.test.d.ts +0 -16
  313. package/src/intelligence/__tests__/patterns.test.d.ts +0 -8
  314. package/src/intelligence/__tests__/prediction.test.d.ts +0 -8
  315. package/src/lib/__tests__/retry.test.d.ts +0 -7
  316. package/src/lifecycle/__tests__/chain-store.test.d.ts +0 -10
  317. package/src/lifecycle/__tests__/consolidate-rcasd.test.d.ts +0 -7
  318. package/src/lifecycle/__tests__/default-chain.test.d.ts +0 -7
  319. package/src/lifecycle/__tests__/frontmatter.test.d.ts +0 -7
  320. package/src/lifecycle/__tests__/lifecycle.test.d.ts +0 -7
  321. package/src/lifecycle/__tests__/pipeline.integration.test.d.ts +0 -19
  322. package/src/lifecycle/__tests__/rcasd-paths.test.d.ts +0 -7
  323. package/src/lifecycle/__tests__/resume-schema-contract.test.d.ts +0 -16
  324. package/src/lifecycle/__tests__/stage-record-provenance.integration.test.d.ts +0 -7
  325. package/src/lifecycle/__tests__/tessera-engine.test.d.ts +0 -10
  326. package/src/mcp/index.ts +0 -163
  327. package/src/memory/__tests__/auto-extract.test.d.ts +0 -7
  328. package/src/memory/__tests__/brain-automation.test.d.ts +0 -11
  329. package/src/memory/__tests__/brain-embedding.test.d.ts +0 -2
  330. package/src/memory/__tests__/brain-links.test.d.ts +0 -8
  331. package/src/memory/__tests__/brain-migration.test.d.ts +0 -8
  332. package/src/memory/__tests__/brain-retrieval.test.d.ts +0 -10
  333. package/src/memory/__tests__/brain-search.test.d.ts +0 -8
  334. package/src/memory/__tests__/claude-mem-migration.test.d.ts +0 -12
  335. package/src/memory/__tests__/decisions.test.d.ts +0 -8
  336. package/src/memory/__tests__/engine-compat.test.d.ts +0 -12
  337. package/src/memory/__tests__/memory-bridge.test.d.ts +0 -10
  338. package/src/memory/__tests__/pipeline-manifest-sqlite.test.d.ts +0 -13
  339. package/src/memory/__tests__/session-memory.test.d.ts +0 -9
  340. package/src/metrics/__tests__/model-provider-registry.test.d.ts +0 -2
  341. package/src/metrics/__tests__/provider-detection.test.d.ts +0 -2
  342. package/src/migration/__tests__/checksum.test.d.ts +0 -8
  343. package/src/migration/__tests__/logger.test.d.ts +0 -5
  344. package/src/migration/__tests__/migration-failure.integration.test.d.ts +0 -15
  345. package/src/migration/__tests__/migration.test.d.ts +0 -13
  346. package/src/migration/__tests__/state.test.d.ts +0 -8
  347. package/src/migration/__tests__/validate.test.d.ts +0 -8
  348. package/src/nexus/__tests__/deps.test.d.ts +0 -7
  349. package/src/nexus/__tests__/nexus-e2e.test.d.ts +0 -12
  350. package/src/nexus/__tests__/permissions.test.d.ts +0 -7
  351. package/src/nexus/__tests__/query.test.d.ts +0 -7
  352. package/src/nexus/__tests__/reconcile.test.d.ts +0 -7
  353. package/src/nexus/__tests__/registry.test.d.ts +0 -7
  354. package/src/nexus/__tests__/transfer.test.d.ts +0 -8
  355. package/src/observability/__tests__/index.test.d.ts +0 -7
  356. package/src/observability/__tests__/log-filter.test.d.ts +0 -7
  357. package/src/observability/__tests__/log-parser.test.d.ts +0 -7
  358. package/src/observability/__tests__/log-reader.test.d.ts +0 -7
  359. package/src/orchestration/__tests__/autonomous-spec.test.d.ts +0 -9
  360. package/src/orchestration/__tests__/orchestration.test.d.ts +0 -7
  361. package/src/orchestration/__tests__/protocol-validators.test.d.ts +0 -9
  362. package/src/phases/__tests__/deps.test.d.ts +0 -7
  363. package/src/phases/__tests__/phases.test.d.ts +0 -7
  364. package/src/release/__tests__/artifacts.test.d.ts +0 -7
  365. package/src/release/__tests__/cancel-release.test.d.ts +0 -10
  366. package/src/release/__tests__/changelog-writer.test.d.ts +0 -6
  367. package/src/release/__tests__/push-policy.test.d.ts +0 -14
  368. package/src/release/__tests__/release.test.d.ts +0 -11
  369. package/src/sequence/__tests__/allocate.test.d.ts +0 -6
  370. package/src/sessions/__tests__/briefing-blocked.test.d.ts +0 -6
  371. package/src/sessions/__tests__/briefing.test.d.ts +0 -11
  372. package/src/sessions/__tests__/handoff-integration.test.d.ts +0 -8
  373. package/src/sessions/__tests__/handoff.test.d.ts +0 -11
  374. package/src/sessions/__tests__/index.test.d.ts +0 -2
  375. package/src/sessions/__tests__/session-cleanup.test.d.ts +0 -7
  376. package/src/sessions/__tests__/session-edge-cases.test.d.ts +0 -9
  377. package/src/sessions/__tests__/session-find.test.d.ts +0 -9
  378. package/src/sessions/__tests__/session-grade.integration.test.d.ts +0 -11
  379. package/src/sessions/__tests__/session-grade.test.d.ts +0 -6
  380. package/src/sessions/__tests__/session-memory-bridge.test.d.ts +0 -2
  381. package/src/sessions/__tests__/sessions.test.d.ts +0 -7
  382. package/src/skills/__tests__/discovery.test.d.ts +0 -6
  383. package/src/skills/__tests__/dispatch.test.d.ts +0 -6
  384. package/src/skills/__tests__/dynamic-skill-generator.test.d.ts +0 -2
  385. package/src/skills/__tests__/manifests.test.d.ts +0 -6
  386. package/src/skills/__tests__/precedence.test.d.ts +0 -6
  387. package/src/skills/__tests__/routing-table.test.d.ts +0 -2
  388. package/src/skills/__tests__/skill-paths.test.d.ts +0 -7
  389. package/src/skills/__tests__/test-utility.test.d.ts +0 -7
  390. package/src/skills/__tests__/token.test.d.ts +0 -6
  391. package/src/skills/__tests__/validation.test.d.ts +0 -6
  392. package/src/skills/__tests__/version.test.d.ts +0 -5
  393. package/src/skills/injection/__tests__/subagent.test.d.ts +0 -2
  394. package/src/skills/orchestrator/__tests__/spawn-tier.test.d.ts +0 -2
  395. package/src/spawn/__tests__/adapter-registry.test.d.ts +0 -2
  396. package/src/stats/__tests__/stats.test.d.ts +0 -7
  397. package/src/sticky/__tests__/purge.test.d.ts +0 -9
  398. package/src/store/__tests__/atomic.test.d.ts +0 -7
  399. package/src/store/__tests__/backup.test.d.ts +0 -7
  400. package/src/store/__tests__/brain-accessor-pageindex.test.d.ts +0 -12
  401. package/src/store/__tests__/brain-accessor.test.d.ts +0 -10
  402. package/src/store/__tests__/brain-pageindex.test.d.ts +0 -11
  403. package/src/store/__tests__/brain-schema.test.d.ts +0 -11
  404. package/src/store/__tests__/brain-vec.test.d.ts +0 -11
  405. package/src/store/__tests__/collision-detection.test.d.ts +0 -11
  406. package/src/store/__tests__/data-safety-central.test.d.ts +0 -20
  407. package/src/store/__tests__/db-helpers.test.d.ts +0 -7
  408. package/src/store/__tests__/e2e-safety-integration.test.d.ts +0 -13
  409. package/src/store/__tests__/git-checkpoint.test.d.ts +0 -7
  410. package/src/store/__tests__/idempotent-migration.test.d.ts +0 -5
  411. package/src/store/__tests__/import-logging.test.d.ts +0 -7
  412. package/src/store/__tests__/import-sort.test.d.ts +0 -7
  413. package/src/store/__tests__/json.test.d.ts +0 -7
  414. package/src/store/__tests__/lifecycle-schema-parity.test.d.ts +0 -2
  415. package/src/store/__tests__/migration-integration.test.d.ts +0 -15
  416. package/src/store/__tests__/migration-retry.test.d.ts +0 -10
  417. package/src/store/__tests__/migration-safety.test.d.ts +0 -21
  418. package/src/store/__tests__/migration-sqlite.test.d.ts +0 -11
  419. package/src/store/__tests__/performance-safety.test.d.ts +0 -17
  420. package/src/store/__tests__/project-detect.test.d.ts +0 -6
  421. package/src/store/__tests__/project-registry.test.d.ts +0 -7
  422. package/src/store/__tests__/provider.test.d.ts +0 -9
  423. package/src/store/__tests__/relations.test.d.ts +0 -9
  424. package/src/store/__tests__/safety-accessor.test.d.ts +0 -18
  425. package/src/store/__tests__/sequence-validation.test.d.ts +0 -11
  426. package/src/store/__tests__/session-store.test.d.ts +0 -11
  427. package/src/store/__tests__/sqlite-backup.test.d.ts +0 -14
  428. package/src/store/__tests__/sqlite.test.d.ts +0 -11
  429. package/src/store/__tests__/task-store.test.d.ts +0 -11
  430. package/src/store/__tests__/test-db-helper.d.ts +0 -61
  431. package/src/store/__tests__/write-verification.test.d.ts +0 -11
  432. package/src/system/__tests__/cleanup.test.d.ts +0 -2
  433. package/src/system/__tests__/health.test.d.ts +0 -2
  434. package/src/task-work/__tests__/start-deps.test.d.ts +0 -6
  435. package/src/tasks/__tests__/add.test.d.ts +0 -7
  436. package/src/tasks/__tests__/archive.test.d.ts +0 -7
  437. package/src/tasks/__tests__/assignee.test.d.ts +0 -14
  438. package/src/tasks/__tests__/atomicity.test.d.ts +0 -6
  439. package/src/tasks/__tests__/cancel-ops.test.d.ts +0 -7
  440. package/src/tasks/__tests__/complete-unblocks.test.d.ts +0 -6
  441. package/src/tasks/__tests__/complete.test.d.ts +0 -7
  442. package/src/tasks/__tests__/delete.test.d.ts +0 -7
  443. package/src/tasks/__tests__/dependency-check.test.d.ts +0 -7
  444. package/src/tasks/__tests__/deps-ready.test.d.ts +0 -6
  445. package/src/tasks/__tests__/epic-enforcement.test.d.ts +0 -15
  446. package/src/tasks/__tests__/find.test.d.ts +0 -7
  447. package/src/tasks/__tests__/graph-ops.test.d.ts +0 -7
  448. package/src/tasks/__tests__/hierarchy-policy.test.d.ts +0 -6
  449. package/src/tasks/__tests__/hierarchy.test.d.ts +0 -7
  450. package/src/tasks/__tests__/id-generator.test.d.ts +0 -2
  451. package/src/tasks/__tests__/labels.test.d.ts +0 -7
  452. package/src/tasks/__tests__/list.test.d.ts +0 -7
  453. package/src/tasks/__tests__/minimal-test.test.d.ts +0 -2
  454. package/src/tasks/__tests__/phase-tracking.test.d.ts +0 -7
  455. package/src/tasks/__tests__/pipeline-stage.test.d.ts +0 -14
  456. package/src/tasks/__tests__/plan-priority.test.d.ts +0 -10
  457. package/src/tasks/__tests__/priority-normalization.test.d.ts +0 -7
  458. package/src/tasks/__tests__/relates.test.d.ts +0 -9
  459. package/src/tasks/__tests__/show-deps.test.d.ts +0 -6
  460. package/src/tasks/__tests__/show.test.d.ts +0 -7
  461. package/src/tasks/__tests__/staleness.test.d.ts +0 -7
  462. package/src/tasks/__tests__/task-ops-depends.test.d.ts +0 -6
  463. package/src/tasks/__tests__/update.test.d.ts +0 -7
  464. package/src/validation/__tests__/chain-validation.test.d.ts +0 -7
  465. package/src/validation/__tests__/compliance.test.d.ts +0 -7
  466. package/src/validation/__tests__/docs-sync.test.d.ts +0 -7
  467. package/src/validation/__tests__/doctor-gitignore.test.d.ts +0 -7
  468. package/src/validation/__tests__/doctor-injection.test.d.ts +0 -11
  469. package/src/validation/__tests__/doctor.test.d.ts +0 -7
  470. package/src/validation/__tests__/engine.test.d.ts +0 -7
  471. package/src/validation/__tests__/manifest.test.d.ts +0 -7
  472. package/src/validation/__tests__/protocol-common.test.d.ts +0 -7
  473. package/src/validation/__tests__/verification.test.d.ts +0 -7
@@ -11,19 +11,28 @@
11
11
  */
12
12
  /** Result of an ensure* scaffolding operation. */
13
13
  export interface ScaffoldResult {
14
+ /** What action was taken: created, repaired, or skipped. */
14
15
  action: 'created' | 'repaired' | 'skipped';
16
+ /** Filesystem path that was operated on. */
15
17
  path: string;
18
+ /** Human-readable explanation of the result. */
16
19
  details?: string;
17
20
  }
18
21
  /** Status of a check* diagnostic. */
19
22
  export type CheckStatus = 'passed' | 'failed' | 'warning' | 'info';
20
23
  /** Result of a check* diagnostic (compatible with doctor/checks.ts CheckResult). */
21
24
  export interface CheckResult {
25
+ /** Unique check identifier (e.g. "cleo_structure", "sqlite_db"). */
22
26
  id: string;
27
+ /** Category grouping (e.g. "scaffold", "global"). */
23
28
  category: string;
29
+ /** Diagnostic outcome: passed, failed, warning, or info. */
24
30
  status: CheckStatus;
31
+ /** Human-readable description of the check result. */
25
32
  message: string;
33
+ /** Structured metadata about the check (paths, sizes, missing items). */
26
34
  details: Record<string, unknown>;
35
+ /** Suggested CLI command to fix the issue, or null if passed. */
27
36
  fix: string | null;
28
37
  }
29
38
  /** Required subdirectories under .cleo/. */
@@ -32,18 +41,55 @@ export declare const REQUIRED_CLEO_SUBDIRS: readonly ["backups/operational", "ba
32
41
  export declare const CLEO_GITIGNORE_FALLBACK = "# .cleo/.gitignore \u2014 Deny-by-default for CLEO project data\n# Ignore everything, then explicitly allow only tracked files.\n\n# Step 1: Ignore everything\n*\n\n# Allow list\n!.gitignore\n!config.json\n!project-context.json\n!project-info.json\n!setup-otel.sh\n!DATA-SAFETY-IMPLEMENTATION-SUMMARY.md\n!adrs/\n!adrs/**\n!rcasd/\n!rcasd/**\n!agent-outputs/\n!agent-outputs/**\n\n# Explicit deny safety net\n*.db\n*.db-shm\n*.db-wal\n*.db-journal\nlog.json\nbypass-log.json\nqa-log.json\n.deps-cache/\n.context-alert-state.json\n.context-state*.json\ncontext-states/\n.git-checkpoint-state\n.migration-state.json\nmigrations.json\nsync/\nmetrics/\n.backups/\nbackups/\n";
33
42
  /**
34
43
  * Check if a file exists and is readable.
44
+ *
45
+ * @param path - Absolute path to the file to check
46
+ * @returns True if the file exists and is readable, false otherwise
47
+ *
48
+ * @remarks
49
+ * Uses `fs.access` with `R_OK` to verify both existence and read permission.
50
+ * Swallows all errors and returns false on failure.
51
+ *
52
+ * @example
53
+ * ```typescript
54
+ * if (await fileExists('/project/.cleo/config.json')) {
55
+ * // safe to read
56
+ * }
57
+ * ```
35
58
  */
36
59
  export declare function fileExists(path: string): Promise<boolean>;
37
60
  /**
38
- * Strip legacy <!-- CLEO:START -->...<!-- CLEO:END --> blocks from a file.
61
+ * Strip legacy CLEO:START/CLEO:END blocks from a file.
39
62
  * Called before CAAMP injection to prevent competing blocks.
40
63
  *
41
- * Handles both bare markers (<!-- CLEO:START -->) and versioned markers
42
- * (<!-- CLEO:START v0.53.4 -->, <!-- CLEO:START v1.2.3 -->).
64
+ * @param filePath - Absolute path to the file to strip
65
+ *
66
+ * @remarks
67
+ * Handles both bare markers (`<!-- CLEO:START -->`) and versioned markers
68
+ * (`<!-- CLEO:START v0.53.4 -->`). No-op if the file does not exist or
69
+ * contains no CLEO blocks.
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * await stripCLEOBlocks('/project/CLAUDE.md');
74
+ * ```
43
75
  */
44
76
  export declare function stripCLEOBlocks(filePath: string): Promise<void>;
45
77
  /**
46
78
  * Remove .cleo/ or .cleo entries from the project root .gitignore.
79
+ *
80
+ * @param projectRoot - Absolute path to the project root directory
81
+ * @returns Whether any lines were removed from the .gitignore
82
+ *
83
+ * @remarks
84
+ * Filters out lines matching `/.cleo/`, `.cleo/`, `.cleo`, etc. from the
85
+ * root-level `.gitignore`. Returns `{ removed: false }` if the file does not
86
+ * exist or contains no matching entries.
87
+ *
88
+ * @example
89
+ * ```typescript
90
+ * const { removed } = await removeCleoFromRootGitignore('/project');
91
+ * if (removed) console.log('.cleo entries cleaned from .gitignore');
92
+ * ```
47
93
  */
48
94
  export declare function removeCleoFromRootGitignore(projectRoot: string): Promise<{
49
95
  removed: boolean;
@@ -52,31 +98,123 @@ export { generateProjectHash } from './nexus/hash.js';
52
98
  /**
53
99
  * Resolve the package root directory (where schemas/ and templates/ live).
54
100
  * scaffold.ts lives in packages/core/src/, so 1 level up reaches the package root.
101
+ *
102
+ * @returns Absolute path to the @cleocode/core package root
103
+ *
104
+ * @remarks
105
+ * Uses `import.meta.url` to determine the file location at runtime, which
106
+ * works correctly in both development and installed npm package contexts.
107
+ *
108
+ * @example
109
+ * ```typescript
110
+ * const root = getPackageRoot();
111
+ * const schemaPath = join(root, 'schemas', 'config.schema.json');
112
+ * ```
55
113
  */
56
114
  export declare function getPackageRoot(): string;
57
115
  /**
58
116
  * Load the gitignore template from the package's templates/ directory.
59
117
  * Falls back to embedded content if file not found.
118
+ *
119
+ * @returns The .cleo/.gitignore template content string
120
+ *
121
+ * @remarks
122
+ * First attempts to read from the package's `templates/cleo-gitignore` file.
123
+ * Falls back to the embedded `CLEO_GITIGNORE_FALLBACK` constant if the
124
+ * template file is missing or unreadable.
125
+ *
126
+ * @example
127
+ * ```typescript
128
+ * const content = getGitignoreContent();
129
+ * await writeFile('.cleo/.gitignore', content);
130
+ * ```
60
131
  */
61
132
  export declare function getGitignoreContent(): string;
62
133
  /**
63
134
  * Read CLEO version from package.json.
135
+ *
136
+ * @returns Semver version string, or "0.0.0" if unavailable
137
+ *
138
+ * @remarks
139
+ * Reads the `version` field from the @cleocode/core package.json at runtime.
140
+ * Returns "0.0.0" if the file cannot be read or parsed.
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * const version = getCleoVersion(); // "2026.4.0"
145
+ * ```
64
146
  */
65
147
  export declare function getCleoVersion(): string;
148
+ /**
149
+ * Create default config.json content.
150
+ *
151
+ * @returns A plain object with the default CLEO configuration structure
152
+ *
153
+ * @remarks
154
+ * Returns a version-stamped config with defaults for output formatting, backup
155
+ * limits, hierarchy depth, session behavior, and lifecycle mode.
156
+ *
157
+ * @example
158
+ * ```typescript
159
+ * const config = createDefaultConfig();
160
+ * await saveJson(configPath, config);
161
+ * ```
162
+ */
66
163
  export declare function createDefaultConfig(): Record<string, unknown>;
67
164
  /**
68
165
  * Create .cleo/ directory and all required subdirectories.
69
166
  * Idempotent: skips directories that already exist.
167
+ *
168
+ * @param projectRoot - Absolute path to the project root directory
169
+ * @returns Scaffold result indicating whether the directory was created or already existed
170
+ *
171
+ * @remarks
172
+ * Refuses to scaffold inside the global CLEO home to prevent pollution.
173
+ * Creates all directories listed in `REQUIRED_CLEO_SUBDIRS`.
174
+ *
175
+ * @example
176
+ * ```typescript
177
+ * const result = await ensureCleoStructure('/my/project');
178
+ * console.log(result.action); // "created" or "skipped"
179
+ * ```
70
180
  */
71
181
  export declare function ensureCleoStructure(projectRoot: string): Promise<ScaffoldResult>;
72
182
  /**
73
183
  * Create or repair .cleo/.gitignore from template.
74
184
  * Idempotent: skips if file already exists with correct content.
185
+ *
186
+ * @param projectRoot - Absolute path to the project root directory
187
+ * @returns Scaffold result indicating whether the gitignore was created, repaired, or skipped
188
+ *
189
+ * @remarks
190
+ * Compares normalized content (trimmed, LF line endings) against the template.
191
+ * If the file exists but differs, it is overwritten with the canonical template.
192
+ *
193
+ * @example
194
+ * ```typescript
195
+ * const result = await ensureGitignore('/my/project');
196
+ * if (result.action === 'repaired') console.log('Gitignore updated');
197
+ * ```
75
198
  */
76
199
  export declare function ensureGitignore(projectRoot: string): Promise<ScaffoldResult>;
77
200
  /**
78
201
  * Create default config.json if missing.
79
202
  * Idempotent: skips if file already exists.
203
+ *
204
+ * @param projectRoot - Absolute path to the project root directory
205
+ * @param opts - Optional configuration
206
+ * @param opts.force - When true, overwrite the existing config
207
+ * @returns Scaffold result indicating the action taken
208
+ *
209
+ * @remarks
210
+ * On skip, still checks for and backfills the ADR-029 contributor block
211
+ * if the project is detected as the CLEO source repository.
212
+ *
213
+ * @example
214
+ * ```typescript
215
+ * const result = await ensureConfig('/my/project', { force: true });
216
+ * console.log(result.path);
217
+ * ```
80
218
  */
81
219
  export declare function ensureConfig(projectRoot: string, opts?: {
82
220
  force?: boolean;
@@ -84,24 +222,62 @@ export declare function ensureConfig(projectRoot: string, opts?: {
84
222
  /**
85
223
  * Create or refresh project-info.json.
86
224
  * Idempotent: skips if file already exists (unless force).
225
+ *
226
+ * @param projectRoot - Absolute path to the project root directory
227
+ * @param opts - Optional configuration
228
+ * @param opts.force - When true, regenerate even if the file exists
229
+ * @returns Scaffold result indicating the action taken
230
+ *
231
+ * @remarks
232
+ * Backfills a `projectId` (UUID) on existing files that lack one (T5333).
233
+ * The generated file includes project hash, CLEO version, schema versions,
234
+ * and initial health/feature flags.
235
+ *
236
+ * @example
237
+ * ```typescript
238
+ * const result = await ensureProjectInfo('/my/project');
239
+ * console.log(result.action); // "created", "repaired", or "skipped"
240
+ * ```
87
241
  */
88
242
  export declare function ensureProjectInfo(projectRoot: string, opts?: {
89
243
  force?: boolean;
90
244
  }): Promise<ScaffoldResult>;
91
245
  /**
92
- * Ensure .mcp.json contains a cleo-dev server entry pointing to the local build.
93
- * Only runs when isCleoContributorProject() is true (ADR-029).
246
+ * No-op. Kept for API compatibility.
247
+ *
248
+ * @param projectRoot - Absolute path to the project root directory
249
+ * @returns Scaffold result with action "skipped"
94
250
  *
95
- * Writes the server entry:
96
- * cleo-dev node <projectRoot>/dist/mcp/index.js
251
+ * @remarks
252
+ * This function was removed in Phase 2 production readiness but the export
253
+ * is preserved to avoid breaking downstream callers.
97
254
  *
98
- * This ensures Claude Code loads the LOCAL dev build MCP server for this project,
99
- * not the published @cleocode/cleo@latest. Idempotent: preserves other entries.
255
+ * @example
256
+ * ```typescript
257
+ * const result = await ensureContributorMcp('/my/project');
258
+ * // result.action === 'skipped'
259
+ * ```
100
260
  */
101
261
  export declare function ensureContributorMcp(projectRoot: string): Promise<ScaffoldResult>;
102
262
  /**
103
263
  * Detect and write project-context.json.
104
264
  * Idempotent: skips if file exists and is less than staleDays old (default: 30).
265
+ *
266
+ * @param projectRoot - Absolute path to the project root directory
267
+ * @param opts - Optional configuration
268
+ * @param opts.force - When true, regenerate even if the file is fresh
269
+ * @param opts.staleDays - Age threshold in days before regeneration (default: 30)
270
+ * @returns Scaffold result indicating the action taken
271
+ *
272
+ * @remarks
273
+ * Runs project type detection (Node, Python, Rust, etc.) and writes the result.
274
+ * Validates against the project-context schema before writing (best-effort).
275
+ *
276
+ * @example
277
+ * ```typescript
278
+ * const result = await ensureProjectContext('/my/project', { staleDays: 7 });
279
+ * if (result.action === 'repaired') console.log('Context refreshed');
280
+ * ```
105
281
  */
106
282
  export declare function ensureProjectContext(projectRoot: string, opts?: {
107
283
  force?: boolean;
@@ -110,53 +286,214 @@ export declare function ensureProjectContext(projectRoot: string, opts?: {
110
286
  /**
111
287
  * Initialize isolated .cleo/.git checkpoint repository.
112
288
  * Idempotent: skips if .cleo/.git already exists.
289
+ *
290
+ * @param projectRoot - Absolute path to the project root directory
291
+ * @returns Scaffold result indicating the action taken
292
+ *
293
+ * @remarks
294
+ * Creates an isolated git repository inside .cleo/ for checkpoint tracking.
295
+ * The repo uses `GIT_DIR` and `GIT_WORK_TREE` environment variables to avoid
296
+ * interfering with the project's own git repository.
297
+ *
298
+ * @example
299
+ * ```typescript
300
+ * const result = await ensureCleoGitRepo('/my/project');
301
+ * console.log(result.action); // "created" or "skipped"
302
+ * ```
113
303
  */
114
304
  export declare function ensureCleoGitRepo(projectRoot: string): Promise<ScaffoldResult>;
115
305
  /**
116
306
  * Create SQLite database if missing.
117
307
  * Idempotent: skips if tasks.db already exists.
308
+ *
309
+ * @param projectRoot - Absolute path to the project root directory
310
+ * @returns Scaffold result indicating the action taken
311
+ *
312
+ * @remarks
313
+ * Initializes the tasks.db SQLite database by calling `getDb()` which runs
314
+ * schema migrations. Returns a skipped result with error details if initialization fails.
315
+ *
316
+ * @example
317
+ * ```typescript
318
+ * const result = await ensureSqliteDb('/my/project');
319
+ * if (result.action === 'created') console.log('Database ready');
320
+ * ```
118
321
  */
119
322
  export declare function ensureSqliteDb(projectRoot: string): Promise<ScaffoldResult>;
120
323
  /**
121
324
  * Verify all required .cleo/ subdirectories exist.
325
+ *
326
+ * @param projectRoot - Absolute path to the project root directory
327
+ * @returns Check result with status and list of any missing subdirectories
328
+ *
329
+ * @remarks
330
+ * Read-only diagnostic. Checks for the .cleo/ directory and all entries
331
+ * in `REQUIRED_CLEO_SUBDIRS`. Reports "failed" if .cleo/ is missing,
332
+ * "warning" if subdirectories are missing, "passed" otherwise.
333
+ *
334
+ * @example
335
+ * ```typescript
336
+ * const check = checkCleoStructure('/my/project');
337
+ * if (check.status === 'failed') console.log(check.fix);
338
+ * ```
122
339
  */
123
340
  export declare function checkCleoStructure(projectRoot: string): CheckResult;
124
341
  /**
125
342
  * Verify .cleo/.gitignore exists and matches template.
343
+ *
344
+ * @param projectRoot - Absolute path to the project root directory
345
+ * @returns Check result indicating whether the gitignore matches the template
346
+ *
347
+ * @remarks
348
+ * Read-only diagnostic. Normalizes whitespace before comparison.
349
+ * Reports "warning" if the file is missing or drifted from the template.
350
+ *
351
+ * @example
352
+ * ```typescript
353
+ * const check = checkGitignore('/my/project');
354
+ * if (check.status === 'warning') console.log('Gitignore drifted');
355
+ * ```
126
356
  */
127
357
  export declare function checkGitignore(projectRoot: string): CheckResult;
128
358
  /**
129
359
  * Verify config.json exists and is valid JSON.
360
+ *
361
+ * @param projectRoot - Absolute path to the project root directory
362
+ * @returns Check result indicating whether config.json is present and valid
363
+ *
364
+ * @remarks
365
+ * Read-only diagnostic. Reports "failed" if the file is missing or contains
366
+ * invalid JSON. Does not validate config schema, only JSON syntax.
367
+ *
368
+ * @example
369
+ * ```typescript
370
+ * const check = checkConfig('/my/project');
371
+ * if (check.status === 'passed') console.log('Config OK');
372
+ * ```
130
373
  */
131
374
  export declare function checkConfig(projectRoot: string): CheckResult;
132
375
  /**
133
376
  * Verify project-info.json exists with required fields.
377
+ *
378
+ * @param projectRoot - Absolute path to the project root directory
379
+ * @returns Check result indicating whether project-info.json is valid
380
+ *
381
+ * @remarks
382
+ * Read-only diagnostic. Checks for presence and required fields: projectHash,
383
+ * cleoVersion, and lastUpdated. Reports "warning" on missing fields, "failed" on
384
+ * missing file or invalid JSON.
385
+ *
386
+ * @example
387
+ * ```typescript
388
+ * const check = checkProjectInfo('/my/project');
389
+ * if (check.status !== 'passed') console.log(check.fix);
390
+ * ```
134
391
  */
135
392
  export declare function checkProjectInfo(projectRoot: string): CheckResult;
136
393
  /**
137
394
  * Verify project-context.json exists and is not stale (default: 30 days).
395
+ *
396
+ * @param projectRoot - Absolute path to the project root directory
397
+ * @param staleDays - Age threshold in days before reporting as stale (default: 30)
398
+ * @returns Check result with freshness assessment
399
+ *
400
+ * @remarks
401
+ * Read-only diagnostic. Checks for the `detectedAt` timestamp and compares
402
+ * its age against the staleness threshold. Reports "warning" if stale or
403
+ * missing, "failed" if the file contains invalid JSON.
404
+ *
405
+ * @example
406
+ * ```typescript
407
+ * const check = checkProjectContext('/my/project', 14);
408
+ * if (check.status === 'warning') console.log('Context is stale');
409
+ * ```
138
410
  */
139
411
  export declare function checkProjectContext(projectRoot: string, staleDays?: number): CheckResult;
140
412
  /**
141
413
  * Verify .cleo/.git checkpoint repository exists.
414
+ *
415
+ * @param projectRoot - Absolute path to the project root directory
416
+ * @returns Check result indicating whether the checkpoint repo is present
417
+ *
418
+ * @remarks
419
+ * Read-only diagnostic. Reports "warning" if the .cleo/.git directory is missing.
420
+ *
421
+ * @example
422
+ * ```typescript
423
+ * const check = checkCleoGitRepo('/my/project');
424
+ * console.log(check.status); // "passed" or "warning"
425
+ * ```
142
426
  */
143
427
  export declare function checkCleoGitRepo(projectRoot: string): CheckResult;
144
428
  /**
145
429
  * Verify .cleo/tasks.db exists and is non-empty.
430
+ *
431
+ * @param projectRoot - Absolute path to the project root directory
432
+ * @returns Check result with database existence and size information
433
+ *
434
+ * @remarks
435
+ * Read-only diagnostic. Reports "failed" if the file is missing, "warning" if
436
+ * the file exists but is 0 bytes, "passed" otherwise.
437
+ *
438
+ * @example
439
+ * ```typescript
440
+ * const check = checkSqliteDb('/my/project');
441
+ * if (check.status === 'failed') console.log('No database:', check.fix);
442
+ * ```
146
443
  */
147
444
  export declare function checkSqliteDb(projectRoot: string): CheckResult;
148
445
  /**
149
446
  * Create brain.db if missing.
150
447
  * Idempotent: skips if brain.db already exists.
448
+ *
449
+ * @param projectRoot - Absolute path to the project root directory
450
+ * @returns Scaffold result indicating the action taken
451
+ *
452
+ * @remarks
453
+ * Initializes brain.db with Drizzle schema and eagerly creates FTS5 virtual
454
+ * tables for full-text search (T5698). Also ensures FTS5 tables on pre-existing
455
+ * databases that may lack them.
456
+ *
457
+ * @example
458
+ * ```typescript
459
+ * const result = await ensureBrainDb('/my/project');
460
+ * if (result.action === 'created') console.log('Brain database ready');
461
+ * ```
151
462
  */
152
463
  export declare function ensureBrainDb(projectRoot: string): Promise<ScaffoldResult>;
153
464
  /**
154
465
  * Verify .cleo/brain.db exists and is non-empty.
466
+ *
467
+ * @param projectRoot - Absolute path to the project root directory
468
+ * @returns Check result with database existence and size information
469
+ *
470
+ * @remarks
471
+ * Read-only diagnostic. Reports "failed" if the file is missing, "warning" if
472
+ * the file exists but is 0 bytes, "passed" otherwise.
473
+ *
474
+ * @example
475
+ * ```typescript
476
+ * const check = checkBrainDb('/my/project');
477
+ * console.log(check.status);
478
+ * ```
155
479
  */
156
480
  export declare function checkBrainDb(projectRoot: string): CheckResult;
157
481
  /**
158
482
  * Verify .cleo/memory-bridge.md exists.
159
- * Warning level if missing (not failure) it is auto-generated.
483
+ * Warning level if missing (not failure) -- it is auto-generated.
484
+ *
485
+ * @param projectRoot - Absolute path to the project root directory
486
+ * @returns Check result indicating presence of the memory bridge file
487
+ *
488
+ * @remarks
489
+ * Read-only diagnostic. The memory bridge is auto-generated from brain.db
490
+ * content, so its absence is only a warning (not a failure).
491
+ *
492
+ * @example
493
+ * ```typescript
494
+ * const check = checkMemoryBridge('/my/project');
495
+ * if (check.status === 'warning') console.log('Run: cleo refresh-memory');
496
+ * ```
160
497
  */
161
498
  export declare function checkMemoryBridge(projectRoot: string): CheckResult;
162
499
  /**
@@ -195,6 +532,18 @@ export declare const STALE_GLOBAL_ENTRIES: readonly ["adrs", "rcasd", "agent-out
195
532
  *
196
533
  * This is the SSoT for global home scaffolding, replacing raw mkdirSync
197
534
  * calls that were previously scattered across global-bootstrap.ts.
535
+ *
536
+ * @returns Scaffold result indicating the action taken
537
+ *
538
+ * @remarks
539
+ * Also creates a global config.json from template if absent. Cleans up
540
+ * stale entries from both the current and legacy (~/.cleo/) global home paths.
541
+ *
542
+ * @example
543
+ * ```typescript
544
+ * const result = await ensureGlobalHome();
545
+ * console.log(result.action); // "created" or "skipped"
546
+ * ```
198
547
  */
199
548
  export declare function ensureGlobalHome(): Promise<ScaffoldResult>;
200
549
  /**
@@ -203,6 +552,19 @@ export declare function ensureGlobalHome(): Promise<ScaffoldResult>;
203
552
  * filesystem write to maintain SSoT for scaffolding.
204
553
  *
205
554
  * Idempotent: skips if the template already exists with correct content.
555
+ *
556
+ * @returns Scaffold result indicating the action taken
557
+ *
558
+ * @remarks
559
+ * Lazy-imports injection.ts to avoid circular dependencies. Compares file
560
+ * content byte-for-byte; repairs if the installed version differs from the
561
+ * bundled template.
562
+ *
563
+ * @example
564
+ * ```typescript
565
+ * const result = await ensureGlobalTemplates();
566
+ * if (result.action === 'repaired') console.log('Template updated');
567
+ * ```
206
568
  */
207
569
  export declare function ensureGlobalTemplates(): Promise<ScaffoldResult>;
208
570
  /**
@@ -215,9 +577,22 @@ export declare function ensureGlobalTemplates(): Promise<ScaffoldResult>;
215
577
  * explicitly from init or upgrade if a copy is needed for a specific workflow.
216
578
  *
217
579
  * Used by:
218
- * - MCP startup (via startupHealthCheck in health.ts)
580
+ * - CLI startup (via startupHealthCheck in health.ts)
219
581
  * - init (for first-time global setup)
220
582
  * - upgrade (for global repair)
583
+ *
584
+ * @returns Combined scaffold results for home and templates
585
+ *
586
+ * @remarks
587
+ * Calls ensureGlobalHome and ensureGlobalTemplates in sequence.
588
+ * Schemas are NOT copied here -- they are read at runtime from the npm
589
+ * package path.
590
+ *
591
+ * @example
592
+ * ```typescript
593
+ * const { home, templates } = await ensureGlobalScaffold();
594
+ * console.log(home.action, templates.action);
595
+ * ```
221
596
  */
222
597
  export declare function ensureGlobalScaffold(): Promise<{
223
598
  home: ScaffoldResult;
@@ -226,16 +601,52 @@ export declare function ensureGlobalScaffold(): Promise<{
226
601
  /**
227
602
  * Check that the global ~/.cleo/ home and its required subdirectories exist.
228
603
  * Read-only: no side effects.
604
+ *
605
+ * @returns Check result with status and missing subdirectory details
606
+ *
607
+ * @remarks
608
+ * Reports "failed" if the home directory itself is absent, "warning" if
609
+ * subdirectories are missing, "passed" if all infrastructure is present.
610
+ *
611
+ * @example
612
+ * ```typescript
613
+ * const check = checkGlobalHome();
614
+ * if (check.status !== 'passed') console.log(check.fix);
615
+ * ```
229
616
  */
230
617
  export declare function checkGlobalHome(): CheckResult;
231
618
  /**
232
619
  * Check that the global injection template is present and current.
233
620
  * Read-only: no side effects.
621
+ *
622
+ * @returns Check result with template version and sync status
623
+ *
624
+ * @remarks
625
+ * Also checks for version drift between the XDG-compliant path and the
626
+ * legacy ~/.cleo/templates/ path. Reports "warning" if versions differ.
627
+ *
628
+ * @example
629
+ * ```typescript
630
+ * const check = checkGlobalTemplates();
631
+ * console.log(check.details.version);
632
+ * ```
234
633
  */
235
634
  export declare function checkGlobalTemplates(): CheckResult;
236
635
  /**
237
636
  * Check that the project log directory exists.
238
637
  * Read-only: no side effects.
638
+ *
639
+ * @param projectRoot - Absolute path to the project root directory
640
+ * @returns Check result indicating whether .cleo/logs/ is present
641
+ *
642
+ * @remarks
643
+ * Reports "warning" if the log directory is absent, "passed" otherwise.
644
+ *
645
+ * @example
646
+ * ```typescript
647
+ * const check = checkLogDir('/my/project');
648
+ * console.log(check.status);
649
+ * ```
239
650
  */
240
651
  export declare function checkLogDir(projectRoot: string): CheckResult;
241
652
  //# sourceMappingURL=scaffold.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../src/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAkBH,kDAAkD;AAClD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MA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B,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,cAAc,CAAC,CAwDhE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,cAAc,CAAC,CAmCrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC,CAKD;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAmC7C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CA4ClD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CAsB5D"}
@@ -2,7 +2,7 @@
2
2
  * Security Hardening and Input Sanitization (Core)
3
3
  *
4
4
  * Canonical location for input sanitization and security validation.
5
- * Self-contained with no dispatch or MCP dependencies.
5
+ * Self-contained with no dispatch dependencies.
6
6
  *
7
7
  * Canonical location: src/core/security/input-sanitization.ts
8
8
  * Re-exported from: src/dispatch/lib/security.ts (backward compat)
@@ -80,7 +80,7 @@ export declare class RateLimiter {
80
80
  }
81
81
  /**
82
82
  * Normalize a value to an array of strings.
83
- * Handles MCP clients sending comma-separated strings where arrays are expected.
83
+ * Handles external clients sending comma-separated strings where arrays are expected.
84
84
  */
85
85
  export declare function ensureArray(value: unknown, separator?: string): string[] | undefined;
86
86
  /**
@@ -13,6 +13,7 @@
13
13
  export interface ProviderContext {
14
14
  providerId: string;
15
15
  providerName: string;
16
+ /** Always false. CLI dispatch only. */
16
17
  supportsMcp: boolean;
17
18
  supportsHooks: boolean;
18
19
  supportsSpawn: boolean;
@@ -24,14 +25,14 @@ export interface ProviderContext {
24
25
  * @param context - Provider capability context
25
26
  * @returns Markdown content for memory protocol guidance
26
27
  */
27
- export declare function generateMemoryProtocol(context: ProviderContext): string;
28
+ export declare function generateMemoryProtocol(_context: ProviderContext): string;
28
29
  /**
29
30
  * Generate a dynamic routing guide based on operation preferences.
30
31
  *
31
32
  * @param context - Provider capability context
32
33
  * @returns Markdown content showing preferred channels per operation
33
34
  */
34
- export declare function generateRoutingGuide(context: ProviderContext): string;
35
+ export declare function generateRoutingGuide(_context: ProviderContext): string;
35
36
  /**
36
37
  * Generate complete dynamic skill content for the current provider.
37
38
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-skill-generator.d.ts","sourceRoot":"","sources":["../../src/skills/dynamic-skill-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAyBvE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CA6BrE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CA2B5E"}
1
+ {"version":3,"file":"dynamic-skill-generator.d.ts","sourceRoot":"","sources":["../../src/skills/dynamic-skill-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAcxE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CA4BtE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CA2B5E"}