@cleocode/core 2026.10.13 → 2026.10.14-rc.ci.683

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 (204) hide show
  1. package/dist/build-provenance.json +2 -2
  2. package/dist/cloud/nexus-vault.d.ts +6 -2
  3. package/dist/cloud/nexus-vault.d.ts.map +1 -1
  4. package/dist/cloud/nexus-vault.js +53 -3
  5. package/dist/cloud/nexus-vault.js.map +1 -1
  6. package/dist/cloud/secret-seal.js +2 -2
  7. package/dist/cloud/secret-seal.js.map +1 -1
  8. package/dist/config/registry.d.ts +0 -21
  9. package/dist/config/registry.d.ts.map +1 -1
  10. package/dist/config/registry.js +0 -41
  11. package/dist/config/registry.js.map +1 -1
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +1 -0
  14. package/dist/config.js.map +1 -1
  15. package/dist/crypto/credentials.d.ts +13 -0
  16. package/dist/crypto/credentials.d.ts.map +1 -1
  17. package/dist/crypto/credentials.js +35 -6
  18. package/dist/crypto/credentials.js.map +1 -1
  19. package/dist/docs/docs-ops.d.ts +11 -1
  20. package/dist/docs/docs-ops.d.ts.map +1 -1
  21. package/dist/docs/docs-ops.js +38 -3
  22. package/dist/docs/docs-ops.js.map +1 -1
  23. package/dist/docs/docs-update.d.ts.map +1 -1
  24. package/dist/docs/docs-update.js +5 -1
  25. package/dist/docs/docs-update.js.map +1 -1
  26. package/dist/docs/supersede.d.ts.map +1 -1
  27. package/dist/docs/supersede.js +5 -1
  28. package/dist/docs/supersede.js.map +1 -1
  29. package/dist/docs/wikilinks.d.ts +3 -1
  30. package/dist/docs/wikilinks.d.ts.map +1 -1
  31. package/dist/docs/wikilinks.js +23 -12
  32. package/dist/docs/wikilinks.js.map +1 -1
  33. package/dist/gateway-client/generated/index.d.ts +2 -2
  34. package/dist/gateway-client/generated/index.d.ts.map +1 -1
  35. package/dist/gateway-client/generated/index.js +1 -1
  36. package/dist/gateway-client/generated/index.js.map +1 -1
  37. package/dist/gateway-client/generated/namespaces.gen.d.ts +33 -0
  38. package/dist/gateway-client/generated/namespaces.gen.d.ts.map +1 -1
  39. package/dist/gateway-client/generated/namespaces.gen.js +34 -1
  40. package/dist/gateway-client/generated/namespaces.gen.js.map +1 -1
  41. package/dist/gateway-client/generated/sdk.gen.d.ts +137 -5
  42. package/dist/gateway-client/generated/sdk.gen.d.ts.map +1 -1
  43. package/dist/gateway-client/generated/sdk.gen.js +355 -6
  44. package/dist/gateway-client/generated/sdk.gen.js.map +1 -1
  45. package/dist/gateway-client/generated/types.gen.d.ts +1811 -187
  46. package/dist/gateway-client/generated/types.gen.d.ts.map +1 -1
  47. package/dist/lib/error-message.d.ts +30 -0
  48. package/dist/lib/error-message.d.ts.map +1 -0
  49. package/dist/lib/error-message.js +65 -0
  50. package/dist/lib/error-message.js.map +1 -0
  51. package/dist/lib/index.d.ts +1 -0
  52. package/dist/lib/index.d.ts.map +1 -1
  53. package/dist/lib/index.js +1 -0
  54. package/dist/lib/index.js.map +1 -1
  55. package/dist/llm/credentials-store.d.ts +29 -16
  56. package/dist/llm/credentials-store.d.ts.map +1 -1
  57. package/dist/llm/credentials-store.js +158 -139
  58. package/dist/llm/credentials-store.js.map +1 -1
  59. package/dist/memory/brain-embedding.d.ts +4 -2
  60. package/dist/memory/brain-embedding.d.ts.map +1 -1
  61. package/dist/memory/brain-embedding.js +8 -2
  62. package/dist/memory/brain-embedding.js.map +1 -1
  63. package/dist/memory/embedding-local.d.ts +28 -5
  64. package/dist/memory/embedding-local.d.ts.map +1 -1
  65. package/dist/memory/embedding-local.js +47 -9
  66. package/dist/memory/embedding-local.js.map +1 -1
  67. package/dist/memory/engine-compat.d.ts +4 -0
  68. package/dist/memory/engine-compat.d.ts.map +1 -1
  69. package/dist/memory/engine-compat.js +76 -0
  70. package/dist/memory/engine-compat.js.map +1 -1
  71. package/dist/memory/global-brain.d.ts +93 -0
  72. package/dist/memory/global-brain.d.ts.map +1 -0
  73. package/dist/memory/global-brain.js +183 -0
  74. package/dist/memory/global-brain.js.map +1 -0
  75. package/dist/memory/patterns.d.ts +2 -2
  76. package/dist/memory/quality-feedback.d.ts.map +1 -1
  77. package/dist/memory/quality-feedback.js +0 -26
  78. package/dist/memory/quality-feedback.js.map +1 -1
  79. package/dist/memory/retrieval/observe.js +4 -4
  80. package/dist/memory/retrieval/observe.js.map +1 -1
  81. package/dist/memory/transcript-extractor.js +5 -2
  82. package/dist/memory/transcript-extractor.js.map +1 -1
  83. package/dist/orchestration/lean-change.d.ts.map +1 -1
  84. package/dist/orchestration/lean-change.js +2 -3
  85. package/dist/orchestration/lean-change.js.map +1 -1
  86. package/dist/orchestration/lean-debt.d.ts +48 -0
  87. package/dist/orchestration/lean-debt.d.ts.map +1 -0
  88. package/dist/orchestration/lean-debt.js +167 -0
  89. package/dist/orchestration/lean-debt.js.map +1 -0
  90. package/dist/sessions/briefing.d.ts.map +1 -1
  91. package/dist/sessions/briefing.js +10 -0
  92. package/dist/sessions/briefing.js.map +1 -1
  93. package/dist/store/attachment-store.d.ts.map +1 -1
  94. package/dist/store/attachment-store.js +5 -1
  95. package/dist/store/attachment-store.js.map +1 -1
  96. package/dist/store/backup-sidecar.d.ts +5 -2
  97. package/dist/store/backup-sidecar.d.ts.map +1 -1
  98. package/dist/store/backup-sidecar.js +31 -18
  99. package/dist/store/backup-sidecar.js.map +1 -1
  100. package/dist/store/credential-transfer.d.ts +13 -14
  101. package/dist/store/credential-transfer.d.ts.map +1 -1
  102. package/dist/store/credential-transfer.js +75 -23
  103. package/dist/store/credential-transfer.js.map +1 -1
  104. package/dist/store/docs-bytes-backup.d.ts +133 -0
  105. package/dist/store/docs-bytes-backup.d.ts.map +1 -0
  106. package/dist/store/docs-bytes-backup.js +450 -0
  107. package/dist/store/docs-bytes-backup.js.map +1 -0
  108. package/dist/store/llm-accounts-accessor.d.ts +107 -0
  109. package/dist/store/llm-accounts-accessor.d.ts.map +1 -0
  110. package/dist/store/llm-accounts-accessor.js +224 -0
  111. package/dist/store/llm-accounts-accessor.js.map +1 -0
  112. package/dist/store/memory-accessor.d.ts +44 -0
  113. package/dist/store/memory-accessor.d.ts.map +1 -1
  114. package/dist/store/memory-accessor.js +60 -0
  115. package/dist/store/memory-accessor.js.map +1 -1
  116. package/dist/store/memory-sqlite.d.ts +18 -0
  117. package/dist/store/memory-sqlite.d.ts.map +1 -1
  118. package/dist/store/memory-sqlite.js +40 -23
  119. package/dist/store/memory-sqlite.js.map +1 -1
  120. package/dist/store/migration-manager.d.ts.map +1 -1
  121. package/dist/store/migration-manager.js +7 -1
  122. package/dist/store/migration-manager.js.map +1 -1
  123. package/dist/store/restore-store.d.ts +12 -1
  124. package/dist/store/restore-store.d.ts.map +1 -1
  125. package/dist/store/restore-store.js +150 -11
  126. package/dist/store/restore-store.js.map +1 -1
  127. package/dist/store/row-identity-registry.d.ts +4 -4
  128. package/dist/store/row-identity-registry.d.ts.map +1 -1
  129. package/dist/store/row-identity-registry.js +35 -8
  130. package/dist/store/row-identity-registry.js.map +1 -1
  131. package/dist/store/schema/cleo-global/accounts.d.ts +6 -5
  132. package/dist/store/schema/cleo-global/accounts.d.ts.map +1 -1
  133. package/dist/store/schema/cleo-global/accounts.js +7 -6
  134. package/dist/store/schema/cleo-global/accounts.js.map +1 -1
  135. package/dist/store/schema/cleo-project/docs.d.ts +32 -0
  136. package/dist/store/schema/cleo-project/docs.d.ts.map +1 -1
  137. package/dist/store/schema/cleo-project/docs.js +9 -0
  138. package/dist/store/schema/cleo-project/docs.js.map +1 -1
  139. package/dist/store/sync/apply/applier.d.ts +3 -1
  140. package/dist/store/sync/apply/applier.d.ts.map +1 -1
  141. package/dist/store/sync/apply/applier.js +80 -19
  142. package/dist/store/sync/apply/applier.js.map +1 -1
  143. package/dist/store/sync/apply/parent-delete.d.ts.map +1 -1
  144. package/dist/store/sync/apply/parent-delete.js +4 -0
  145. package/dist/store/sync/apply/parent-delete.js.map +1 -1
  146. package/dist/store/sync/apply/write-api.d.ts +5 -1
  147. package/dist/store/sync/apply/write-api.d.ts.map +1 -1
  148. package/dist/store/sync/apply/write-api.js +22 -0
  149. package/dist/store/sync/apply/write-api.js.map +1 -1
  150. package/dist/store/sync/capture.d.ts +27 -0
  151. package/dist/store/sync/capture.d.ts.map +1 -1
  152. package/dist/store/sync/capture.js +32 -1
  153. package/dist/store/sync/capture.js.map +1 -1
  154. package/dist/store/sync/genesis.d.ts.map +1 -1
  155. package/dist/store/sync/genesis.js +3 -1
  156. package/dist/store/sync/genesis.js.map +1 -1
  157. package/dist/store/sync/inbox.d.ts +18 -2
  158. package/dist/store/sync/inbox.d.ts.map +1 -1
  159. package/dist/store/sync/inbox.js +23 -2
  160. package/dist/store/sync/inbox.js.map +1 -1
  161. package/dist/store/sync/pull.d.ts +1 -1
  162. package/dist/store/sync/pull.d.ts.map +1 -1
  163. package/dist/store/sync/pull.js +4 -1
  164. package/dist/store/sync/pull.js.map +1 -1
  165. package/dist/store/sync/timestamp-canon.d.ts.map +1 -1
  166. package/dist/store/sync/timestamp-canon.js +3 -0
  167. package/dist/store/sync/timestamp-canon.js.map +1 -1
  168. package/dist/store/table-classification.d.ts.map +1 -1
  169. package/dist/store/table-classification.js +29 -3
  170. package/dist/store/table-classification.js.map +1 -1
  171. package/dist/system/backup.d.ts +5 -2
  172. package/dist/system/backup.d.ts.map +1 -1
  173. package/dist/system/backup.js +39 -3
  174. package/dist/system/backup.js.map +1 -1
  175. package/dist/tasks/affected-scope.d.ts +44 -5
  176. package/dist/tasks/affected-scope.d.ts.map +1 -1
  177. package/dist/tasks/affected-scope.js +159 -20
  178. package/dist/tasks/affected-scope.js.map +1 -1
  179. package/dist/tasks/complete-ci.d.ts.map +1 -1
  180. package/dist/tasks/complete-ci.js +11 -9
  181. package/dist/tasks/complete-ci.js.map +1 -1
  182. package/dist/tasks/done-plan.d.ts.map +1 -1
  183. package/dist/tasks/done-plan.js +4 -6
  184. package/dist/tasks/done-plan.js.map +1 -1
  185. package/dist/tasks/gate-preview.d.ts.map +1 -1
  186. package/dist/tasks/gate-preview.js +13 -5
  187. package/dist/tasks/gate-preview.js.map +1 -1
  188. package/dist/tasks/gate-result-cache.d.ts +30 -1
  189. package/dist/tasks/gate-result-cache.d.ts.map +1 -1
  190. package/dist/tasks/gate-result-cache.js +81 -2
  191. package/dist/tasks/gate-result-cache.js.map +1 -1
  192. package/dist/tasks/gate-runner.d.ts +27 -2
  193. package/dist/tasks/gate-runner.d.ts.map +1 -1
  194. package/dist/tasks/gate-runner.js +67 -14
  195. package/dist/tasks/gate-runner.js.map +1 -1
  196. package/dist/tasks/qa-run-binding.d.ts +15 -0
  197. package/dist/tasks/qa-run-binding.d.ts.map +1 -1
  198. package/dist/tasks/qa-run-binding.js +24 -3
  199. package/dist/tasks/qa-run-binding.js.map +1 -1
  200. package/migrations/drizzle-brain/20261014180000_t13719-prune-candidate-column/migration.sql +16 -0
  201. package/migrations/drizzle-cleo-project/20261014100000_t12919-docs-row-uids/migration.sql +27 -0
  202. package/package.json +13 -13
  203. package/templates/CLEO-REFERENCE.md +1 -1
  204. package/templates/global-config.template.json +2 -1
@@ -1,5 +1,60 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { client } from './client.gen.js';
3
+ /**
4
+ * Add a validated typed requirement gate without executing it
5
+ */
6
+ export const mutateTasksReqAdd = (options) => (options.client ?? client).post({
7
+ url: '/v1/tasks/req.add',
8
+ ...options,
9
+ headers: {
10
+ 'Content-Type': 'application/json',
11
+ ...options.headers
12
+ }
13
+ });
14
+ /**
15
+ * Replace a typed requirement gate's definition in place, keeping its AC row and REQ-ID; the superseded gate is kept in AC history (T12988)
16
+ */
17
+ export const mutateTasksReqReplace = (options) => (options.client ?? client).post({
18
+ url: '/v1/tasks/req.replace',
19
+ ...options,
20
+ headers: {
21
+ 'Content-Type': 'application/json',
22
+ ...options.headers
23
+ }
24
+ });
25
+ /**
26
+ * List named typed requirement gates without executing them
27
+ */
28
+ export const queryTasksReqList = (options) => (options.client ?? client).post({
29
+ url: '/v1/tasks/req.list',
30
+ ...options,
31
+ headers: {
32
+ 'Content-Type': 'application/json',
33
+ ...options.headers
34
+ }
35
+ });
36
+ /**
37
+ * Preview typed-gate migration proposals without writing
38
+ */
39
+ export const queryTasksReqMigratePreview = (options) => (options.client ?? client).post({
40
+ url: '/v1/tasks/req.migrate.preview',
41
+ ...options,
42
+ headers: {
43
+ 'Content-Type': 'application/json',
44
+ ...options.headers
45
+ }
46
+ });
47
+ /**
48
+ * Explicitly apply validated typed-gate migration proposals
49
+ */
50
+ export const mutateTasksReqMigrate = (options) => (options.client ?? client).post({
51
+ url: '/v1/tasks/req.migrate',
52
+ ...options,
53
+ headers: {
54
+ 'Content-Type': 'application/json',
55
+ ...options.headers
56
+ }
57
+ });
3
58
  /**
4
59
  * tasks.show (query)
5
60
  */
@@ -216,9 +271,16 @@ export const queryTasksComplexityEstimate = (options) => (options.client ?? clie
216
271
  }
217
272
  });
218
273
  /**
219
- * Show task work history (time tracked per task)
274
+ * Show task work history; with taskId, the task audit trail; with ranking, who changed its priority/severity/kind/depends and why (T12693)
220
275
  */
221
- export const queryTasksHistory = (options) => (options?.client ?? client).post({ url: '/v1/tasks/history', ...options });
276
+ export const queryTasksHistory = (options) => (options?.client ?? client).post({
277
+ url: '/v1/tasks/history',
278
+ ...options,
279
+ headers: {
280
+ 'Content-Type': 'application/json',
281
+ ...options?.headers
282
+ }
283
+ });
222
284
  /**
223
285
  * tasks.current (query)
224
286
  */
@@ -656,6 +718,17 @@ export const queryCheckGateStatus = (options) => (options.client ?? client).post
656
718
  ...options.headers
657
719
  }
658
720
  });
721
+ /**
722
+ * check.gate.run (query) — execute a task's typed acceptance gates and report results; persists nothing (T12308)
723
+ */
724
+ export const queryCheckGateRun = (options) => (options.client ?? client).post({
725
+ url: '/v1/check/gate.run',
726
+ ...options,
727
+ headers: {
728
+ 'Content-Type': 'application/json',
729
+ ...options.headers
730
+ }
731
+ });
659
732
  /**
660
733
  * check.archive.stats (query) — archive analytics; moved from admin (T5615)
661
734
  */
@@ -1042,6 +1115,28 @@ export const mutateTasksDelete = (options) => (options.client ?? client).post({
1042
1115
  ...options.headers
1043
1116
  }
1044
1117
  });
1118
+ /**
1119
+ * tasks.reconcile-scope (mutate) — sweep a saga/epic subtree for tasks whose scope overlaps and propose merge/absorb/split/link; read-only unless --apply
1120
+ */
1121
+ export const mutateTasksReconcileScope = (options) => (options.client ?? client).post({
1122
+ url: '/v1/tasks/reconcile-scope',
1123
+ ...options,
1124
+ headers: {
1125
+ 'Content-Type': 'application/json',
1126
+ ...options.headers
1127
+ }
1128
+ });
1129
+ /**
1130
+ * tasks.decompose (mutate) — move a task’s free-text acceptance criteria onto a new first child, turning the leaf into a container (PM-Core V2 design-point 3)
1131
+ */
1132
+ export const mutateTasksDecompose = (options) => (options.client ?? client).post({
1133
+ url: '/v1/tasks/decompose',
1134
+ ...options,
1135
+ headers: {
1136
+ 'Content-Type': 'application/json',
1137
+ ...options.headers
1138
+ }
1139
+ });
1045
1140
  /**
1046
1141
  * tasks.archive (mutate)
1047
1142
  */
@@ -1112,6 +1207,17 @@ export const mutateTasksAssignee = (options) => (options.client ?? client).post(
1112
1207
  ...options.headers
1113
1208
  }
1114
1209
  });
1210
+ /**
1211
+ * tasks.ranking.revert (mutate) — undo one recorded ranking change (priority/severity/kind/depends) as a new audited change (T12693, D11161)
1212
+ */
1213
+ export const mutateTasksRankingRevert = (options) => (options.client ?? client).post({
1214
+ url: '/v1/tasks/ranking.revert',
1215
+ ...options,
1216
+ headers: {
1217
+ 'Content-Type': 'application/json',
1218
+ ...options.headers
1219
+ }
1220
+ });
1115
1221
  /**
1116
1222
  * tasks.relates.add (mutate)
1117
1223
  */
@@ -1238,7 +1344,7 @@ export const mutateTasksSagaMigrateContainment = (options) => (options?.client ?
1238
1344
  }
1239
1345
  });
1240
1346
  /**
1241
- * tasks.start (mutate)
1347
+ * tasks.start (mutate) — start work and take the caller session's leased claim (E_TASK_CLAIMED when another session holds it)
1242
1348
  */
1243
1349
  export const mutateTasksStart = (options) => (options.client ?? client).post({
1244
1350
  url: '/v1/tasks/start',
@@ -1286,7 +1392,7 @@ export const mutateTasksSyncLinksRemove = (options) => (options.client ?? client
1286
1392
  }
1287
1393
  });
1288
1394
  /**
1289
- * tasks.claim (mutate) — claim a task by assigning it to the current session
1395
+ * tasks.claim (mutate) — take, renew or override the caller session's leased claim on a task (never the human assignee)
1290
1396
  */
1291
1397
  export const mutateTasksClaim = (options) => (options.client ?? client).post({
1292
1398
  url: '/v1/tasks/claim',
@@ -1297,7 +1403,7 @@ export const mutateTasksClaim = (options) => (options.client ?? client).post({
1297
1403
  }
1298
1404
  });
1299
1405
  /**
1300
- * tasks.unclaim (mutate) — unclaim a task by removing the current assignee
1406
+ * tasks.unclaim (mutate) — release the caller session's claim lease (never the human assignee)
1301
1407
  */
1302
1408
  export const mutateTasksUnclaim = (options) => (options.client ?? client).post({
1303
1409
  url: '/v1/tasks/unclaim',
@@ -1650,7 +1756,14 @@ export const queryMemoryBackfillList = (options) => (options?.client ?? client).
1650
1756
  /**
1651
1757
  * memory.backfill.run (mutate) — stage a new graph backfill run (rows held pending approval)
1652
1758
  */
1653
- export const mutateMemoryBackfillRun = (options) => (options?.client ?? client).post({ url: '/v1/memory/backfill.run', ...options });
1759
+ export const mutateMemoryBackfillRun = (options) => (options?.client ?? client).post({
1760
+ url: '/v1/memory/backfill.run',
1761
+ ...options,
1762
+ headers: {
1763
+ 'Content-Type': 'application/json',
1764
+ ...options?.headers
1765
+ }
1766
+ });
1654
1767
  /**
1655
1768
  * memory.backfill.approve (mutate) — approve a staged backfill run (commits rows to live tables)
1656
1769
  */
@@ -1704,6 +1817,17 @@ export const mutatePipelineManifestAppend = (options) => (options.client ?? clie
1704
1817
  ...options.headers
1705
1818
  }
1706
1819
  });
1820
+ /**
1821
+ * pipeline.manifest.update (mutate) — change only the given fields of a manifest entry; linkTask adds a linked task (T13678)
1822
+ */
1823
+ export const mutatePipelineManifestUpdate = (options) => (options.client ?? client).post({
1824
+ url: '/v1/pipeline/manifest.update',
1825
+ ...options,
1826
+ headers: {
1827
+ 'Content-Type': 'application/json',
1828
+ ...options.headers
1829
+ }
1830
+ });
1707
1831
  /**
1708
1832
  * pipeline.manifest.archive (mutate) — archive old manifest entries
1709
1833
  */
@@ -2587,6 +2711,17 @@ export const queryNexusContext = (options) => (options.client ?? client).post({
2587
2711
  * nexus.projects.list (query) — list all projects registered in the global nexus registry
2588
2712
  */
2589
2713
  export const queryNexusProjectsList = (options) => (options?.client ?? client).post({ url: '/v1/nexus/projects.list', ...options });
2714
+ /**
2715
+ * nexus.projects.fleet (query) — fleet view: every project with its location on each device, last recorded git state (local, and remote as of the last fetch) and staleness; paged, counts first, read-only
2716
+ */
2717
+ export const queryNexusProjectsFleet = (options) => (options?.client ?? client).post({
2718
+ url: '/v1/nexus/projects.fleet',
2719
+ ...options,
2720
+ headers: {
2721
+ 'Content-Type': 'application/json',
2722
+ ...options?.headers
2723
+ }
2724
+ });
2590
2725
  /**
2591
2726
  * nexus.projects.register (mutate) — register a project in the global nexus registry
2592
2727
  */
@@ -2620,6 +2755,17 @@ export const mutateNexusProjectsScan = (options) => (options?.client ?? client).
2620
2755
  ...options?.headers
2621
2756
  }
2622
2757
  });
2758
+ /**
2759
+ * nexus.projects.status (mutate) — probe and record git state of every project location on this device (bounded, parallel; no network unless fetch)
2760
+ */
2761
+ export const mutateNexusProjectsStatus = (options) => (options?.client ?? client).post({
2762
+ url: '/v1/nexus/projects.status',
2763
+ ...options,
2764
+ headers: {
2765
+ 'Content-Type': 'application/json',
2766
+ ...options?.headers
2767
+ }
2768
+ });
2623
2769
  /**
2624
2770
  * nexus.projects.clean (mutate) — bulk-purge project registry rows matching configurable criteria
2625
2771
  */
@@ -3003,6 +3149,28 @@ export const mutateDocsRemove = (options) => (options.client ?? client).post({
3003
3149
  ...options.headers
3004
3150
  }
3005
3151
  });
3152
+ /**
3153
+ * docs.link-decision (mutate) — link a D#### decision to the ADR doc that ratifies it (decision_adr_links); idempotent, refuses a revoked pair (T13598)
3154
+ */
3155
+ export const mutateDocsLinkDecision = (options) => (options.client ?? client).post({
3156
+ url: '/v1/docs/link-decision',
3157
+ ...options,
3158
+ headers: {
3159
+ 'Content-Type': 'application/json',
3160
+ ...options.headers
3161
+ }
3162
+ });
3163
+ /**
3164
+ * docs.unlink-decision (mutate) — revoke a decision-to-ADR link as a permanent tombstone; the pair can never be re-linked (T13598)
3165
+ */
3166
+ export const mutateDocsUnlinkDecision = (options) => (options.client ?? client).post({
3167
+ url: '/v1/docs/unlink-decision',
3168
+ ...options,
3169
+ headers: {
3170
+ 'Content-Type': 'application/json',
3171
+ ...options.headers
3172
+ }
3173
+ });
3006
3174
  /**
3007
3175
  * docs.supersede (mutate) — atomically flip an older doc to `superseded` and link both rows via the supersedes/superseded_by self-FK pointers (T10162 · Saga T9855)
3008
3176
  */
@@ -3014,6 +3182,172 @@ export const mutateDocsSupersede = (options) => (options.client ?? client).post(
3014
3182
  ...options.headers
3015
3183
  }
3016
3184
  });
3185
+ /**
3186
+ * docs.status (query) — inspect published documentation drift
3187
+ */
3188
+ export const queryDocsStatus = (options) => (options?.client ?? client).post({ url: '/v1/docs/status', ...options });
3189
+ /**
3190
+ * docs.export (query) — Export a task document
3191
+ */
3192
+ export const queryDocsExport = (options) => (options.client ?? client).post({
3193
+ url: '/v1/docs/export',
3194
+ ...options,
3195
+ headers: {
3196
+ 'Content-Type': 'application/json',
3197
+ ...options.headers
3198
+ }
3199
+ });
3200
+ /**
3201
+ * docs.search (query) — Search document content
3202
+ */
3203
+ export const queryDocsSearch = (options) => (options.client ?? client).post({
3204
+ url: '/v1/docs/search',
3205
+ ...options,
3206
+ headers: {
3207
+ 'Content-Type': 'application/json',
3208
+ ...options.headers
3209
+ }
3210
+ });
3211
+ /**
3212
+ * docs.find (query) — Find similar documents
3213
+ */
3214
+ export const queryDocsFind = (options) => (options.client ?? client).post({
3215
+ url: '/v1/docs/find',
3216
+ ...options,
3217
+ headers: {
3218
+ 'Content-Type': 'application/json',
3219
+ ...options.headers
3220
+ }
3221
+ });
3222
+ /**
3223
+ * docs.merge (query) — Preview a document merge
3224
+ */
3225
+ export const queryDocsMerge = (options) => (options.client ?? client).post({
3226
+ url: '/v1/docs/merge',
3227
+ ...options,
3228
+ headers: {
3229
+ 'Content-Type': 'application/json',
3230
+ ...options.headers
3231
+ }
3232
+ });
3233
+ /**
3234
+ * docs.rank (query) — Rank owner documents
3235
+ */
3236
+ export const queryDocsRank = (options) => (options.client ?? client).post({
3237
+ url: '/v1/docs/rank',
3238
+ ...options,
3239
+ headers: {
3240
+ 'Content-Type': 'application/json',
3241
+ ...options.headers
3242
+ }
3243
+ });
3244
+ /**
3245
+ * docs.versions (query) — List document versions
3246
+ */
3247
+ export const queryDocsVersions = (options) => (options.client ?? client).post({
3248
+ url: '/v1/docs/versions',
3249
+ ...options,
3250
+ headers: {
3251
+ 'Content-Type': 'application/json',
3252
+ ...options.headers
3253
+ }
3254
+ });
3255
+ /**
3256
+ * docs.publish (mutate) — Publish a document to a file or pull request
3257
+ */
3258
+ export const mutateDocsPublish = (options) => (options?.client ?? client).post({
3259
+ url: '/v1/docs/publish',
3260
+ ...options,
3261
+ headers: {
3262
+ 'Content-Type': 'application/json',
3263
+ ...options?.headers
3264
+ }
3265
+ });
3266
+ /**
3267
+ * docs.publish-pr (mutate) — Legacy alias for PR publication
3268
+ */
3269
+ export const mutateDocsPublishPr = (options) => (options.client ?? client).post({
3270
+ url: '/v1/docs/publish-pr',
3271
+ ...options,
3272
+ headers: {
3273
+ 'Content-Type': 'application/json',
3274
+ ...options.headers
3275
+ }
3276
+ });
3277
+ /**
3278
+ * docs.sync (mutate) — Sync document content from a file
3279
+ */
3280
+ export const mutateDocsSync = (options) => (options.client ?? client).post({
3281
+ url: '/v1/docs/sync',
3282
+ ...options,
3283
+ headers: {
3284
+ 'Content-Type': 'application/json',
3285
+ ...options.headers
3286
+ }
3287
+ });
3288
+ /**
3289
+ * docs.import (mutate) — Import classified project documents
3290
+ */
3291
+ export const mutateDocsImport = (options) => (options.client ?? client).post({
3292
+ url: '/v1/docs/import',
3293
+ ...options,
3294
+ headers: {
3295
+ 'Content-Type': 'application/json',
3296
+ ...options.headers
3297
+ }
3298
+ });
3299
+ /**
3300
+ * docs.audit (query) — inspect document history or verify audit chain integrity
3301
+ */
3302
+ export const queryDocsAudit = (options) => (options?.client ?? client).post({
3303
+ url: '/v1/docs/audit',
3304
+ ...options,
3305
+ headers: {
3306
+ 'Content-Type': 'application/json',
3307
+ ...options?.headers
3308
+ }
3309
+ });
3310
+ /**
3311
+ * docs.doctor (query) — docs store health diagnostics (dry-run): dangling local-file pointers, docVersion skew vs the audit log, empty topics/related_tasks provenance, docs_wikilinks drift, legacy store surfaces, stale drafts. Reports a repair plan.
3312
+ */
3313
+ export const queryDocsDoctor = (options) => (options?.client ?? client).post({
3314
+ url: '/v1/docs/doctor/query',
3315
+ ...options,
3316
+ headers: {
3317
+ 'Content-Type': 'application/json',
3318
+ ...options?.headers
3319
+ }
3320
+ });
3321
+ /**
3322
+ * docs.triage (query) — batch-triage docs through the docs.triage decision site: proposed keep/update/supersede/archive verdicts plus staleness scores, oldest first (default: drafts). Proposals only — never mutates a doc; --record persists each verdict as a proposed D#### decision.
3323
+ */
3324
+ export const queryDocsTriage = (options) => (options?.client ?? client).post({
3325
+ url: '/v1/docs/triage',
3326
+ ...options,
3327
+ headers: {
3328
+ 'Content-Type': 'application/json',
3329
+ ...options?.headers
3330
+ }
3331
+ });
3332
+ /**
3333
+ * docs.stats (query) — per-project CleoDocs adoption metrics (read-only): add:update ratio from the docs audit log, loose-markdown count with scanned/excluded dirs, docs_wikilinks edge count, and live decision_adr_links count. Emitted for the Council pilot baseline comparisons.
3334
+ */
3335
+ export const queryDocsStats = (options) => (options?.client ?? client).post({ url: '/v1/docs/stats', ...options });
3336
+ /**
3337
+ * docs.doctor (mutate) — apply the docs doctor repairs: set docVersion from the audit log, backfill topics/related_tasks from content, archive dangling local-file rows, rebuild docs_wikilinks, and backfill hash-verified legacy bytes into the blob store. The dispatch layer creates a fresh backup (cleo backup add path) and requires its receipt before any write. repair:true restricts the run to the legacy-blob-coverage backfill only (T13653).
3338
+ */
3339
+ export const mutateDocsDoctor = (options) => (options?.client ?? client).post({
3340
+ url: '/v1/docs/doctor/mutate',
3341
+ ...options,
3342
+ headers: {
3343
+ 'Content-Type': 'application/json',
3344
+ ...options?.headers
3345
+ }
3346
+ });
3347
+ /**
3348
+ * docs.migrate (mutate) — the T13360 legacy docs migration (spec §5): import legacy docs + history into the re-keyed conduit store inside the T13448 safety harness (pre-step VACUUM INTO backup, before/after fingerprints, COMMIT only on full verification). Imported rows are labeled origin:migrated; dangling-pointer docs are content-captured or recorded dangling in conduit_doc_migration_ledger. Idempotent — a re-run is a verified no-op.
3349
+ */
3350
+ export const mutateDocsMigrate = (options) => (options?.client ?? client).post({ url: '/v1/docs/migrate', ...options });
3017
3351
  /**
3018
3352
  * docs.generate (query) — generate llms.txt-format doc summarising all attachments on a CLEO entity
3019
3353
  */
@@ -3577,6 +3911,10 @@ export const queryTasksContext = (options) => (options.client ?? client).post({
3577
3911
  ...options.headers
3578
3912
  }
3579
3913
  });
3914
+ /**
3915
+ * selfimprove.probe (query) — returns { probe: "ok", version: 1 } (health/version probe). Used by the seeded-code-regression scenario to validate the fix-gen pipeline (T11988).
3916
+ */
3917
+ export const querySelfimproveProbe = (options) => (options?.client ?? client).post({ url: '/v1/selfimprove/probe', ...options });
3580
3918
  /**
3581
3919
  * selfimprove.run (mutate) — boot ONE sandbox, replay a canned dogfood scenario, diff vs golden; on regression emit ONE leased selfimprove_dhq row + ONE DRAFT PR. Default OFF — requires --execute (else DRY-RUN). Budget-capped + circuit-broken (T11889 / T11889-D).
3582
3920
  */
@@ -3808,4 +4146,15 @@ export const mutateProfileUse = (options) => (options.client ?? client).post({
3808
4146
  ...options.headers
3809
4147
  }
3810
4148
  });
4149
+ /**
4150
+ * admin.janitor.run (mutate) — run the janitor sweep: reap orphan processes, stop dead cleo-owned scopes, reclaim stale locks, prune tmp debris
4151
+ */
4152
+ export const mutateAdminJanitorRun = (options) => (options?.client ?? client).post({
4153
+ url: '/v1/admin/janitor.run',
4154
+ ...options,
4155
+ headers: {
4156
+ 'Content-Type': 'application/json',
4157
+ ...options?.headers
4158
+ }
4159
+ });
3811
4160
  //# sourceMappingURL=sdk.gen.js.map