@skrr-ai/cli 0.1.150 → 0.1.151

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 (389) hide show
  1. package/README.md +20 -20
  2. package/dist/base-command.d.ts +6 -6
  3. package/dist/base-command.js +26 -26
  4. package/dist/commands/agenda/trigger/list.d.ts +1 -1
  5. package/dist/commands/agenda/trigger/list.js +6 -6
  6. package/dist/commands/agents/always-on/disable.js +10 -3
  7. package/dist/commands/agents/always-on/enable.js +1 -1
  8. package/dist/commands/agents/always-on/reconcile.js +1 -1
  9. package/dist/commands/agents/always-on/status.js +31 -8
  10. package/dist/commands/agents/create.d.ts +2 -2
  11. package/dist/commands/agents/create.js +12 -12
  12. package/dist/commands/agents/egress.js +1 -1
  13. package/dist/commands/agents/list.d.ts +1 -1
  14. package/dist/commands/agents/list.js +1 -1
  15. package/dist/commands/agents/roles/capture.d.ts +1 -1
  16. package/dist/commands/agents/roles/capture.js +2 -2
  17. package/dist/commands/agents/roles/install.js +1 -1
  18. package/dist/commands/agents/spawn.js +38 -38
  19. package/dist/commands/agents/update.d.ts +1 -1
  20. package/dist/commands/agents/update.js +3 -3
  21. package/dist/commands/code/jobs/show.js +1 -1
  22. package/dist/commands/compass/archive.d.ts +1 -1
  23. package/dist/commands/compass/archive.js +1 -1
  24. package/dist/commands/compass/create.js +1 -1
  25. package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
  26. package/dist/commands/compass/{commitments.js → duties.js} +14 -14
  27. package/dist/commands/compass/trace.d.ts +1 -1
  28. package/dist/commands/compass/trace.js +2 -2
  29. package/dist/commands/convos/messages.js +2 -1
  30. package/dist/commands/doctor.d.ts +1 -1
  31. package/dist/commands/doctor.js +1 -1
  32. package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
  33. package/dist/commands/{commitments → duties}/accounting.js +13 -13
  34. package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
  35. package/dist/commands/{commitments → duties}/action-history.js +12 -12
  36. package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
  37. package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
  38. package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
  39. package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
  40. package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
  41. package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
  42. package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
  43. package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
  44. package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
  45. package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
  46. package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
  47. package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
  48. package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
  49. package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
  50. package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
  51. package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
  52. package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
  53. package/dist/commands/{commitments → duties}/attach.js +21 -21
  54. package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
  55. package/dist/commands/{commitments → duties}/bundle.js +7 -7
  56. package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
  57. package/dist/commands/duties/cadence-decisions.js +41 -0
  58. package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
  59. package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
  60. package/dist/commands/{commitments → duties}/case.d.ts +2 -2
  61. package/dist/commands/{commitments → duties}/case.js +8 -8
  62. package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
  63. package/dist/commands/{commitments → duties}/cases.js +9 -9
  64. package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
  65. package/dist/commands/{commitments → duties}/check-now.js +29 -29
  66. package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
  67. package/dist/commands/{commitments → duties}/checks.js +13 -13
  68. package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
  69. package/dist/commands/duties/complete.js +40 -0
  70. package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
  71. package/dist/commands/{commitments → duties}/control/apply.js +7 -7
  72. package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
  73. package/dist/commands/{commitments → duties}/control/preview.js +8 -8
  74. package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
  75. package/dist/commands/{commitments → duties}/control/show.js +6 -6
  76. package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
  77. package/dist/commands/{commitments → duties}/cost.js +14 -14
  78. package/dist/commands/{commitments → duties}/create.d.ts +8 -8
  79. package/dist/commands/{commitments → duties}/create.js +92 -92
  80. package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
  81. package/dist/commands/{commitments → duties}/cycles.js +11 -11
  82. package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
  83. package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
  84. package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
  85. package/dist/commands/{commitments → duties}/delete.js +24 -24
  86. package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
  87. package/dist/commands/{commitments → duties}/delivery.js +15 -15
  88. package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
  89. package/dist/commands/{commitments → duties}/detach.js +20 -20
  90. package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
  91. package/dist/commands/{commitments → duties}/doctor.js +21 -21
  92. package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
  93. package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
  94. package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
  95. package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
  96. package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
  97. package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
  98. package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
  99. package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
  100. package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
  101. package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
  102. package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
  103. package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
  104. package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
  105. package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
  106. package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
  107. package/dist/commands/{commitments → duties}/evaluations.js +8 -8
  108. package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
  109. package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
  110. package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
  111. package/dist/commands/{commitments → duties}/explain.js +13 -13
  112. package/dist/commands/{commitments → duties}/export.d.ts +3 -3
  113. package/dist/commands/{commitments → duties}/export.js +15 -15
  114. package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
  115. package/dist/commands/{commitments → duties}/feedback.js +13 -13
  116. package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
  117. package/dist/commands/{commitments → duties}/fork.js +11 -11
  118. package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
  119. package/dist/commands/duties/goals/link.js +41 -0
  120. package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
  121. package/dist/commands/duties/goals/unlink.js +37 -0
  122. package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
  123. package/dist/commands/{commitments → duties}/handover.js +21 -21
  124. package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
  125. package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
  126. package/dist/commands/{commitments → duties}/import.d.ts +2 -2
  127. package/dist/commands/{commitments → duties}/import.js +10 -10
  128. package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
  129. package/dist/commands/{commitments → duties}/ledger.js +12 -12
  130. package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
  131. package/dist/commands/duties/lineage.js +43 -0
  132. package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
  133. package/dist/commands/{commitments → duties}/links/create.js +9 -9
  134. package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
  135. package/dist/commands/{commitments → duties}/links/detach.js +7 -7
  136. package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
  137. package/dist/commands/{commitments → duties}/links/list.js +9 -9
  138. package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
  139. package/dist/commands/{commitments → duties}/links/update.js +7 -7
  140. package/dist/commands/{commitments → duties}/list.d.ts +3 -3
  141. package/dist/commands/{commitments → duties}/list.js +17 -17
  142. package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
  143. package/dist/commands/{commitments → duties}/liveness.js +13 -13
  144. package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
  145. package/dist/commands/{commitments → duties}/metrics.js +12 -12
  146. package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
  147. package/dist/commands/{commitments → duties}/next-tick.js +14 -14
  148. package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
  149. package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
  150. package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
  151. package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
  152. package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
  153. package/dist/commands/{commitments → duties}/observations.js +18 -18
  154. package/dist/commands/{commitments → duties}/open.d.ts +1 -1
  155. package/dist/commands/{commitments → duties}/open.js +13 -13
  156. package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
  157. package/dist/commands/{commitments → duties}/operating-review.js +21 -21
  158. package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
  159. package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
  160. package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
  161. package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
  162. package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
  163. package/dist/commands/{commitments → duties}/pack/list.js +10 -10
  164. package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
  165. package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
  166. package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
  167. package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
  168. package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
  169. package/dist/commands/{commitments → duties}/patch.js +7 -7
  170. package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
  171. package/dist/commands/{commitments → duties}/pause.js +16 -16
  172. package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
  173. package/dist/commands/{commitments → duties}/plan.js +20 -20
  174. package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
  175. package/dist/commands/{commitments → duties}/preflight.js +32 -32
  176. package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
  177. package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
  178. package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
  179. package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
  180. package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
  181. package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
  182. package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
  183. package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
  184. package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
  185. package/dist/commands/{commitments → duties}/receipt.js +10 -10
  186. package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
  187. package/dist/commands/{commitments → duties}/reflect.js +12 -12
  188. package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
  189. package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
  190. package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
  191. package/dist/commands/{commitments → duties}/reflection.js +9 -9
  192. package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
  193. package/dist/commands/{commitments → duties}/remediate.js +14 -14
  194. package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
  195. package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
  196. package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
  197. package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
  198. package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
  199. package/dist/commands/{commitments → duties}/reports.js +35 -35
  200. package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
  201. package/dist/commands/duties/restore.js +46 -0
  202. package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
  203. package/dist/commands/duties/resume.js +37 -0
  204. package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
  205. package/dist/commands/duties/roster.js +39 -0
  206. package/dist/commands/{commitments → duties}/show.d.ts +7 -7
  207. package/dist/commands/{commitments → duties}/show.js +40 -40
  208. package/dist/commands/{commitments → duties}/status.d.ts +3 -3
  209. package/dist/commands/duties/status.js +41 -0
  210. package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
  211. package/dist/commands/{commitments → duties}/subject.js +29 -29
  212. package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
  213. package/dist/commands/{commitments → duties}/trace.js +12 -12
  214. package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
  215. package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
  216. package/dist/commands/{commitments → duties}/update.d.ts +5 -5
  217. package/dist/commands/{commitments → duties}/update.js +64 -64
  218. package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
  219. package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
  220. package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
  221. package/dist/commands/{commitments → duties}/work-plan.js +6 -6
  222. package/dist/commands/goals/key-results/show.js +2 -1
  223. package/dist/commands/goals/plan-now.js +2 -2
  224. package/dist/commands/goals/planner-compare.d.ts +1 -1
  225. package/dist/commands/goals/planner-compare.js +2 -2
  226. package/dist/commands/grants/create.d.ts +1 -1
  227. package/dist/commands/grants/create.js +9 -9
  228. package/dist/commands/grants/list.d.ts +1 -1
  229. package/dist/commands/grants/list.js +2 -2
  230. package/dist/commands/initiatives/list.d.ts +1 -1
  231. package/dist/commands/initiatives/list.js +1 -1
  232. package/dist/commands/measures/create.d.ts +2 -2
  233. package/dist/commands/measures/create.js +4 -4
  234. package/dist/commands/measures/list.d.ts +1 -1
  235. package/dist/commands/measures/list.js +2 -2
  236. package/dist/commands/northstars/create.js +4 -4
  237. package/dist/commands/northstars/delete.d.ts +3 -3
  238. package/dist/commands/northstars/delete.js +8 -8
  239. package/dist/commands/northstars/governance/configure.js +15 -15
  240. package/dist/commands/northstars/intents/decide.d.ts +1 -1
  241. package/dist/commands/northstars/intents/decide.js +1 -1
  242. package/dist/commands/northstars/link.d.ts +4 -4
  243. package/dist/commands/northstars/link.js +8 -8
  244. package/dist/commands/northstars/list.d.ts +2 -2
  245. package/dist/commands/northstars/list.js +3 -3
  246. package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
  247. package/dist/commands/northstars/recommendations/apply.js +2 -2
  248. package/dist/commands/northstars/review-now.js +2 -2
  249. package/dist/commands/northstars/show.d.ts +3 -3
  250. package/dist/commands/northstars/show.js +5 -5
  251. package/dist/commands/northstars/unlink.d.ts +3 -3
  252. package/dist/commands/northstars/unlink.js +6 -6
  253. package/dist/commands/northstars/update.js +3 -3
  254. package/dist/commands/proposals/list.d.ts +3 -3
  255. package/dist/commands/proposals/list.js +7 -7
  256. package/dist/commands/spaces/auto-executor/compare.js +1 -1
  257. package/dist/commands/spaces/auto-executor/runs.js +1 -1
  258. package/dist/commands/spaces/heartbeats/list.js +2 -2
  259. package/dist/commands/spaces/index.js +2 -2
  260. package/dist/commands/spaces/list.d.ts +1 -1
  261. package/dist/commands/spaces/list.js +1 -1
  262. package/dist/commands/spaces/loops/migrate.d.ts +1 -1
  263. package/dist/commands/spaces/loops/migrate.js +1 -1
  264. package/dist/commands/spaces/loops/release.d.ts +1 -1
  265. package/dist/commands/spaces/loops/release.js +10 -10
  266. package/dist/commands/spaces/notebook.d.ts +2 -2
  267. package/dist/commands/spaces/notebook.js +2 -2
  268. package/dist/commands/spaces/proposals/discard.js +1 -1
  269. package/dist/commands/spaces/proposals/keep.js +1 -1
  270. package/dist/commands/spaces/triggers/show.js +3 -3
  271. package/dist/commands/spaces/write-policy/set.js +1 -1
  272. package/dist/commands/store/uninstall.js +2 -2
  273. package/dist/commands/subscriptions/health.d.ts +2 -2
  274. package/dist/commands/subscriptions/health.js +2 -2
  275. package/dist/commands/subscriptions/status.js +2 -2
  276. package/dist/commands/subscriptions/subscribe.js +4 -4
  277. package/dist/commands/tasks/create.d.ts +20 -1
  278. package/dist/commands/tasks/create.js +44 -3
  279. package/dist/commands/tasks/list.d.ts +7 -1
  280. package/dist/commands/tasks/list.js +2 -1
  281. package/dist/generated/agent-guides.json +496 -496
  282. package/dist/generated/managed-instruction-guides.json +2 -2
  283. package/dist/hooks/command-not-found.d.ts +1 -1
  284. package/dist/hooks/command-not-found.js +1 -1
  285. package/dist/lib/agent-chat-start.js +2 -1
  286. package/dist/lib/agent-trigger-listing.d.ts +4 -4
  287. package/dist/lib/agent-trigger-listing.js +7 -7
  288. package/dist/lib/always-on-command-result.d.ts +8 -1
  289. package/dist/lib/always-on-command-result.js +11 -2
  290. package/dist/lib/auth-failure.js +1 -1
  291. package/dist/lib/capability-matrix.d.ts +3 -3
  292. package/dist/lib/capability-matrix.js +9 -9
  293. package/dist/lib/command-hygiene.js +6 -6
  294. package/dist/lib/command-miss.js +1 -1
  295. package/dist/lib/compass-refusals.d.ts +1 -1
  296. package/dist/lib/compass-refusals.js +1 -1
  297. package/dist/lib/compasses.d.ts +5 -5
  298. package/dist/lib/compasses.js +15 -15
  299. package/dist/lib/dedicated-machines.js +2 -1
  300. package/dist/lib/dedicated-power.js +2 -0
  301. package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
  302. package/dist/lib/{commitments.js → duties.js} +282 -282
  303. package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
  304. package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
  305. package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
  306. package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
  307. package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
  308. package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
  309. package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
  310. package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
  311. package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
  312. package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
  313. package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
  314. package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
  315. package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
  316. package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
  317. package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
  318. package/dist/lib/entity-open.d.ts +1 -1
  319. package/dist/lib/entity-open.js +1 -1
  320. package/dist/lib/format.d.ts +1 -1
  321. package/dist/lib/grants.d.ts +3 -3
  322. package/dist/lib/grants.js +2 -2
  323. package/dist/lib/initiatives.js +4 -4
  324. package/dist/lib/node-adapter.js +1 -1
  325. package/dist/lib/northstars.d.ts +13 -13
  326. package/dist/lib/northstars.js +56 -56
  327. package/dist/lib/open-target.js +1 -1
  328. package/dist/lib/preflight-copy.js +5 -5
  329. package/dist/lib/proactiveApi.d.ts +4 -4
  330. package/dist/lib/proposals.js +16 -16
  331. package/dist/lib/responsibility-controls.d.ts +1 -1
  332. package/dist/lib/responsibility-controls.js +6 -6
  333. package/dist/lib/roles.d.ts +1 -1
  334. package/dist/lib/schedule.d.ts +5 -5
  335. package/dist/lib/schedule.js +1 -1
  336. package/dist/lib/session-task-write.d.ts +1 -1
  337. package/dist/lib/session-task-write.js +2 -2
  338. package/dist/lib/space-loop-migration.js +6 -6
  339. package/dist/lib/space-notebook.js +2 -2
  340. package/dist/lib/space-write-policy.js +2 -2
  341. package/dist/lib/stewardship-output.js +2 -2
  342. package/dist/lib/task-spec-verification.js +1 -1
  343. package/dist/lib/tasks.d.ts +1 -1
  344. package/dist/lib/tasks.js +8 -8
  345. package/dist/lib/triggers.d.ts +3 -3
  346. package/dist/lib/triggers.js +11 -10
  347. package/dist/lib/usage-discovery.js +2 -4
  348. package/dist/lib/web-url.d.ts +6 -6
  349. package/dist/lib/web-url.js +13 -13
  350. package/dist/lib/workspaces.d.ts +4 -4
  351. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  352. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
  353. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
  354. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
  355. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
  356. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
  357. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
  358. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
  359. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
  360. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
  361. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
  362. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  363. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
  364. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
  365. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
  366. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
  367. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
  368. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
  369. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
  370. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
  371. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
  372. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
  373. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
  374. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
  375. package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
  376. package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
  377. package/docs/v1/lookback-plans.md +1 -1
  378. package/oclif.manifest.json +5337 -5337
  379. package/package.json +16 -16
  380. package/dist/commands/commitments/cadence-decisions.js +0 -41
  381. package/dist/commands/commitments/complete.js +0 -40
  382. package/dist/commands/commitments/goals/link.js +0 -41
  383. package/dist/commands/commitments/goals/unlink.js +0 -37
  384. package/dist/commands/commitments/lineage.js +0 -43
  385. package/dist/commands/commitments/restore.js +0 -46
  386. package/dist/commands/commitments/resume.js +0 -37
  387. package/dist/commands/commitments/roster.js +0 -39
  388. package/dist/commands/commitments/status.js +0 -41
  389. /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
@@ -2,62 +2,62 @@ import { withQuery } from './triggers';
2
2
  type Query = Parameters<typeof withQuery>[1];
3
3
  /**
4
4
  * The fleet-wide reports, keyed by the name a user types. Keeping them in one
5
- * table means `skrr commitments analytics --help` lists exactly what exists —
5
+ * table means `skrr duties analytics --help` lists exactly what exists —
6
6
  * a per-report command file would drift from the route the moment one is added.
7
7
  */
8
8
  export declare const ANALYTICS_REPORTS: {
9
9
  readonly 'prd-readout': {
10
- readonly path: "/api/commitment-analytics/prd-readout";
11
- readonly summary: "Product readout: activation, value and attention across all commitments";
10
+ readonly path: "/api/duty-analytics/prd-readout";
11
+ readonly summary: "Product readout: activation, value and attention across all duties";
12
12
  };
13
13
  readonly 'operations-queue': {
14
- readonly path: "/api/commitment-analytics/operations/queue";
14
+ readonly path: "/api/duty-analytics/operations/queue";
15
15
  readonly summary: "What needs an operator right now — stuck, blocked and waiting work";
16
16
  };
17
17
  readonly 'governance-exceptions': {
18
- readonly path: "/api/commitment-analytics/governance/exceptions";
18
+ readonly path: "/api/duty-analytics/governance/exceptions";
19
19
  readonly summary: "Where a governance rule refused, deferred or escalated an action";
20
20
  };
21
21
  readonly distribution: {
22
- readonly path: "/api/commitment-analytics/distribution";
23
- readonly summary: "How commitments are spread across agents, tiers and cadences";
22
+ readonly path: "/api/duty-analytics/distribution";
23
+ readonly summary: "How duties are spread across agents, tiers and cadences";
24
24
  };
25
25
  readonly 'distribution-tripwire': {
26
- readonly path: "/api/commitment-analytics/distribution/tripwire";
26
+ readonly path: "/api/duty-analytics/distribution/tripwire";
27
27
  readonly summary: "Persistent weekly confirmation of portfolio overload risk";
28
28
  };
29
29
  readonly 'attention-budget': {
30
- readonly path: "/api/commitment-analytics/attention-budget";
30
+ readonly path: "/api/duty-analytics/attention-budget";
31
31
  readonly summary: "How much user attention the fleet is actually spending";
32
32
  };
33
33
  readonly 'decision-inbox': {
34
- readonly path: "/api/commitment-analytics/decision-inbox";
34
+ readonly path: "/api/duty-analytics/decision-inbox";
35
35
  readonly summary: "One ranked owner inbox across approvals, blockers, attention and held surfaces";
36
36
  };
37
37
  readonly 'action-adapters-audit': {
38
- readonly path: "/api/commitment-analytics/action-adapters/audit";
38
+ readonly path: "/api/duty-analytics/action-adapters/audit";
39
39
  readonly summary: "Which action adapters are installed and what they are permitted to do";
40
40
  };
41
41
  readonly 'recovery-metrics': {
42
- readonly path: "/api/commitment-analytics/recovery-metrics";
42
+ readonly path: "/api/duty-analytics/recovery-metrics";
43
43
  readonly summary: "Recovery sweep counters — how much work is being re-driven";
44
44
  };
45
45
  readonly recovery: {
46
- readonly path: "/api/commitment-analytics/recovery";
46
+ readonly path: "/api/duty-analytics/recovery";
47
47
  readonly summary: "Records the recovery sweep is currently repairing";
48
48
  };
49
49
  readonly 'dormant-records': {
50
- readonly path: "/api/commitment-analytics/dormant-records";
50
+ readonly path: "/api/duty-analytics/dormant-records";
51
51
  readonly summary: "Ledger records that are active but have stopped moving — the \"why did nothing fire\" read";
52
52
  };
53
53
  readonly 'held-surfaces': {
54
- readonly path: "/api/commitment-analytics/held-surfaces";
54
+ readonly path: "/api/duty-analytics/held-surfaces";
55
55
  readonly summary: "Surfaces the attention policy is holding — deferred (a clock) or filtered (a setting)";
56
56
  };
57
57
  };
58
58
  export type AnalyticsReport = keyof typeof ANALYTICS_REPORTS;
59
59
  export declare const ANALYTICS_REPORT_NAMES: AnalyticsReport[];
60
- export declare const commitmentAnalyticsApi: {
60
+ export declare const dutyAnalyticsApi: {
61
61
  prdReadout: (query?: Query) => Promise<Record<string, unknown>>;
62
62
  operationsQueue: (query?: Query) => Promise<Record<string, unknown>>;
63
63
  governanceExceptions: (query?: Query) => Promise<Record<string, unknown>>;
@@ -75,8 +75,8 @@ export declare const commitmentAnalyticsApi: {
75
75
  * This is the "show me exactly what happened on that fire" read.
76
76
  */
77
77
  replay: (query: Query) => Promise<Record<string, unknown>>;
78
- /** Per-commitment analytics — distinct from `skrr commitments show`. */
79
- forCommitment: (id: string, query?: Query) => Promise<Record<string, unknown>>;
78
+ /** Per-duty analytics — distinct from `skrr duties show`. */
79
+ forDuty: (id: string, query?: Query) => Promise<Record<string, unknown>>;
80
80
  /** The analytics projection of the ledger (joined), not the raw ledger read. */
81
81
  ledger: (id: string, query?: Query) => Promise<Record<string, unknown>>;
82
82
  /** Force a reflection pass — the slow loop that retunes cadence. */
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commitmentAnalyticsApi = exports.ANALYTICS_REPORT_NAMES = exports.ANALYTICS_REPORTS = void 0;
3
+ exports.dutyAnalyticsApi = exports.ANALYTICS_REPORT_NAMES = exports.ANALYTICS_REPORTS = void 0;
4
4
  exports.renderReportCatalogue = renderReportCatalogue;
5
5
  /**
6
- * commitment-analytics.ts — client for `/api/commitment-analytics`.
6
+ * duty-analytics.ts — client for `/api/duty-analytics`.
7
7
  *
8
- * These are the OPERATOR reads for the commitment control plane: not "what does
9
- * this commitment say" (that is `skrr commitments show`) but "is the fleet of
10
- * commitments healthy, where is it stuck, and what did the governance rules
8
+ * These are the OPERATOR reads for the duty control plane: not "what does
9
+ * this duty say" (that is `skrr duties show`) but "is the fleet of
10
+ * duties healthy, where is it stuck, and what did the governance rules
11
11
  * actually decide".
12
12
  *
13
13
  * They matter headless because that is where the answers are needed — a 3am
@@ -17,17 +17,17 @@ exports.renderReportCatalogue = renderReportCatalogue;
17
17
  const data_provider_1 = require("@skrr-ai/data-provider");
18
18
  const format_1 = require("./format");
19
19
  const triggers_1 = require("./triggers");
20
- const MOUNT = '/api/commitment-analytics';
20
+ const MOUNT = '/api/duty-analytics';
21
21
  const base = (id) => `${MOUNT}/${encodeURIComponent(id)}`;
22
22
  /**
23
23
  * The fleet-wide reports, keyed by the name a user types. Keeping them in one
24
- * table means `skrr commitments analytics --help` lists exactly what exists —
24
+ * table means `skrr duties analytics --help` lists exactly what exists —
25
25
  * a per-report command file would drift from the route the moment one is added.
26
26
  */
27
27
  exports.ANALYTICS_REPORTS = {
28
28
  'prd-readout': {
29
29
  path: `${MOUNT}/prd-readout`,
30
- summary: 'Product readout: activation, value and attention across all commitments',
30
+ summary: 'Product readout: activation, value and attention across all duties',
31
31
  },
32
32
  'operations-queue': {
33
33
  path: `${MOUNT}/operations/queue`,
@@ -39,7 +39,7 @@ exports.ANALYTICS_REPORTS = {
39
39
  },
40
40
  distribution: {
41
41
  path: `${MOUNT}/distribution`,
42
- summary: 'How commitments are spread across agents, tiers and cadences',
42
+ summary: 'How duties are spread across agents, tiers and cadences',
43
43
  },
44
44
  'distribution-tripwire': {
45
45
  path: `${MOUNT}/distribution/tripwire`,
@@ -75,7 +75,7 @@ exports.ANALYTICS_REPORTS = {
75
75
  },
76
76
  };
77
77
  exports.ANALYTICS_REPORT_NAMES = Object.keys(exports.ANALYTICS_REPORTS);
78
- exports.commitmentAnalyticsApi = {
78
+ exports.dutyAnalyticsApi = {
79
79
  prdReadout: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/prd-readout`, query)),
80
80
  operationsQueue: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/operations/queue`, query)),
81
81
  governanceExceptions: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/governance/exceptions`, query)),
@@ -93,8 +93,8 @@ exports.commitmentAnalyticsApi = {
93
93
  * This is the "show me exactly what happened on that fire" read.
94
94
  */
95
95
  replay: (query) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/replay`, query)),
96
- /** Per-commitment analytics — distinct from `skrr commitments show`. */
97
- forCommitment: (id, query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(base(id), query)),
96
+ /** Per-duty analytics — distinct from `skrr duties show`. */
97
+ forDuty: (id, query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(base(id), query)),
98
98
  /** The analytics projection of the ledger (joined), not the raw ledger read. */
99
99
  ledger: (id, query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${base(id)}/ledger`, query)),
100
100
  /** Force a reflection pass — the slow loop that retunes cadence. */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * The attention settings of a Commitment, said in words.
2
+ * The attention settings of a Duty, said in words.
3
3
  *
4
4
  * `show`, `effective-policy` and `preflight` all print these, from this one
5
5
  * file, so the three cannot phrase a setting three ways. A value is described
6
6
  * from the RAW stored setting and never through a coercion: `null` is "no
7
7
  * limit" and `0` is "muted", and `Number(null)` is `0`, which is exactly how a
8
8
  * cap that was never set would read as a mute (the server documents the same
9
- * trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/commitments.js).
9
+ * trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/duties.js).
10
10
  */
11
11
  /** What the owner can type for `--max-nudges`, as `--help` prints it. */
12
12
  export declare const MAX_NUDGES_FLAG_HELP: string;
@@ -36,8 +36,8 @@ export type NudgeSettings = {
36
36
  /** Read the three settings out of a stored `policy`. */
37
37
  export declare function nudgeSettingsFromPolicy(policy: Record<string, any>): NudgeSettings;
38
38
  /**
39
- * The lines that say how much a Commitment may interrupt its owner. A muted one
40
- * prints the mute alone: a gap and a back-off on a Commitment that never speaks
39
+ * The lines that say how much a Duty may interrupt its owner. A muted one
40
+ * prints the mute alone: a gap and a back-off on a Duty that never speaks
41
41
  * would only suggest it does. `withNoReply: false` leaves the back-off out when the
42
42
  * stored rule could not be read, rather than claim it is off.
43
43
  */
@@ -59,7 +59,7 @@ export declare const QUIET_HOURS_HELP: string;
59
59
  export declare const EVENT_SOURCES_HELP: string;
60
60
  /**
61
61
  * The allowlist in words. An empty or missing list means every source is allowed
62
- * (`sourceAllowed` in api/server/services/EventBus/commitmentWakeCapabilities.js and the check in
62
+ * (`sourceAllowed` in api/server/services/EventBus/dutyWakeCapabilities.js and the check in
63
63
  * WakeIntentResolver.js both treat it so); the stored form of "never set" is the same `[]`.
64
64
  */
65
65
  export declare function describeEventSources(allowed: unknown): string;
@@ -77,7 +77,7 @@ type QuietHoursPolicy = {
77
77
  timezone?: string;
78
78
  } | null;
79
79
  /**
80
- * The Commitment's own quiet-hours window in words. Without one of its own a Commitment uses its
80
+ * The Duty's own quiet-hours window in words. Without one of its own a Duty uses its
81
81
  * Agent's Compass window (`scheduleIssues.js` documents the same rule), so "none set" says where
82
82
  * else a window may come from rather than claiming there is no quiet time at all.
83
83
  */
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  /**
3
- * The attention settings of a Commitment, said in words.
3
+ * The attention settings of a Duty, said in words.
4
4
  *
5
5
  * `show`, `effective-policy` and `preflight` all print these, from this one
6
6
  * file, so the three cannot phrase a setting three ways. A value is described
7
7
  * from the RAW stored setting and never through a coercion: `null` is "no
8
8
  * limit" and `0` is "muted", and `Number(null)` is `0`, which is exactly how a
9
9
  * cap that was never set would read as a mute (the server documents the same
10
- * trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/commitments.js).
10
+ * trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/duties.js).
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.EVENT_SOURCES_HELP = exports.QUIET_HOURS_HELP = exports.CLOCK_TIME_HINT = exports.MAX_NUDGES_FLAG_HELP = void 0;
@@ -89,8 +89,8 @@ function nudgeSettingsFromPolicy(policy) {
89
89
  };
90
90
  }
91
91
  /**
92
- * The lines that say how much a Commitment may interrupt its owner. A muted one
93
- * prints the mute alone: a gap and a back-off on a Commitment that never speaks
92
+ * The lines that say how much a Duty may interrupt its owner. A muted one
93
+ * prints the mute alone: a gap and a back-off on a Duty that never speaks
94
94
  * would only suggest it does. `withNoReply: false` leaves the back-off out when the
95
95
  * stored rule could not be read, rather than claim it is off.
96
96
  */
@@ -120,11 +120,11 @@ exports.QUIET_HOURS_HELP = 'Quiet hours (no messages to you) go in the JSON as p
120
120
  * What `policy.executionBudget.allowedEventSources` means, for the same help. An empty list is the
121
121
  * unrestricted case, which is the opposite of what `[]` suggests (OSK-21113).
122
122
  */
123
- exports.EVENT_SOURCES_HELP = 'policy.executionBudget.allowedEventSources limits which event sources may wake the Commitment: ' +
123
+ exports.EVENT_SOURCES_HELP = 'policy.executionBudget.allowedEventSources limits which event sources may wake the Duty: ' +
124
124
  'an empty or missing list allows every source (it is not "none"); name sources to restrict it.';
125
125
  /**
126
126
  * The allowlist in words. An empty or missing list means every source is allowed
127
- * (`sourceAllowed` in api/server/services/EventBus/commitmentWakeCapabilities.js and the check in
127
+ * (`sourceAllowed` in api/server/services/EventBus/dutyWakeCapabilities.js and the check in
128
128
  * WakeIntentResolver.js both treat it so); the stored form of "never set" is the same `[]`.
129
129
  */
130
130
  function describeEventSources(allowed) {
@@ -164,13 +164,13 @@ function clockText(value) {
164
164
  /** An omitted timezone is UTC, and no text surface said so (OSK-21122). */
165
165
  const NO_TIMEZONE_NOTE = 'UTC (no timezone set, UTC is used)';
166
166
  /**
167
- * The Commitment's own quiet-hours window in words. Without one of its own a Commitment uses its
167
+ * The Duty's own quiet-hours window in words. Without one of its own a Duty uses its
168
168
  * Agent's Compass window (`scheduleIssues.js` documents the same rule), so "none set" says where
169
169
  * else a window may come from rather than claiming there is no quiet time at all.
170
170
  */
171
171
  function describeQuietHours(quietHours) {
172
172
  if (!quietHours) {
173
- return "none set on this Commitment (a window in its Agent's Compass applies, if it has one)";
173
+ return "none set on this Duty (a window in its Agent's Compass applies, if it has one)";
174
174
  }
175
175
  const zone = quietHours.timezone ? quietHours.timezone : NO_TIMEZONE_NOTE;
176
176
  const window = quietHours.start && quietHours.end
@@ -1,9 +1,9 @@
1
1
  import { withQuery } from './triggers';
2
2
  export declare const ENDPOINT_CAPABILITIES: readonly ["push", "reply", "structuredAsk"];
3
3
  /** Derived from the one destination registry; never a second list. */
4
- export declare const COMMITMENT_ENDPOINT_DESTINATIONS: ("email" | "main" | "pinned" | "app_owner_dm" | "slack_owner_dm" | "slack_channel" | "discord_owner_dm" | "user_notify")[];
4
+ export declare const DUTY_ENDPOINT_DESTINATIONS: ("email" | "main" | "pinned" | "app_owner_dm" | "slack_owner_dm" | "slack_channel" | "discord_owner_dm" | "user_notify")[];
5
5
  export type EndpointCapability = (typeof ENDPOINT_CAPABILITIES)[number];
6
- export interface CommitmentEndpoint {
6
+ export interface DutyEndpoint {
7
7
  id: string;
8
8
  agentId?: string;
9
9
  label?: string;
@@ -18,11 +18,11 @@ export interface CommitmentEndpoint {
18
18
  createdAt?: string;
19
19
  updatedAt?: string;
20
20
  }
21
- export declare const commitmentEndpointApi: {
21
+ export declare const dutyEndpointApi: {
22
22
  list: (query?: Parameters<typeof withQuery>[1]) => Promise<{
23
- endpoints: CommitmentEndpoint[];
23
+ endpoints: DutyEndpoint[];
24
24
  }>;
25
- create: (body: Record<string, unknown>) => Promise<CommitmentEndpoint>;
25
+ create: (body: Record<string, unknown>) => Promise<DutyEndpoint>;
26
26
  /** Probes the native App/Slack transport and records current health. */
27
27
  connect: (id: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
28
28
  /** Legacy compatibility call; new native endpoints do not use OAuth. */
@@ -32,4 +32,4 @@ export declare const commitmentEndpointApi: {
32
32
  revoke: (id: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
33
33
  remove: (id: string) => Promise<Record<string, unknown>>;
34
34
  };
35
- export declare function renderEndpointList(rows: CommitmentEndpoint[], log: (line: string) => void): void;
35
+ export declare function renderEndpointList(rows: DutyEndpoint[], log: (line: string) => void): void;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commitmentEndpointApi = exports.COMMITMENT_ENDPOINT_DESTINATIONS = exports.ENDPOINT_CAPABILITIES = void 0;
3
+ exports.dutyEndpointApi = exports.DUTY_ENDPOINT_DESTINATIONS = exports.ENDPOINT_CAPABILITIES = void 0;
4
4
  exports.renderEndpointList = renderEndpointList;
5
5
  /**
6
- * commitment-endpoints.ts — client for `/api/commitment-endpoints`.
6
+ * duty-endpoints.ts — client for `/api/duty-endpoints`.
7
7
  *
8
- * A **commitment endpoint** is a channel-neutral DELIVERY TARGET: "this agent
8
+ * A **duty endpoint** is a channel-neutral DELIVERY TARGET: "this agent
9
9
  * can reach me on Slack DM / this channel / App DM", expressed as a connection
10
- * record with a readiness state. Commitments then declare report targets against
11
- * these, so a commitment never names a raw Slack channel id or a token.
10
+ * record with a readiness state. Duties then declare report targets against
11
+ * these, so a duty never names a raw Slack channel id or a token.
12
12
  *
13
13
  * The lifecycle is the interesting part, and it is why this needs a CLI at all:
14
14
  *
@@ -22,10 +22,10 @@ const format_1 = require("./format");
22
22
  const triggers_1 = require("./triggers");
23
23
  exports.ENDPOINT_CAPABILITIES = ['push', 'reply', 'structuredAsk'];
24
24
  /** Derived from the one destination registry; never a second list. */
25
- exports.COMMITMENT_ENDPOINT_DESTINATIONS = data_provider_1.COMMITMENT_REGISTRABLE_REPORT_DESTINATIONS;
26
- const MOUNT = '/api/commitment-endpoints';
25
+ exports.DUTY_ENDPOINT_DESTINATIONS = data_provider_1.DUTY_REGISTRABLE_REPORT_DESTINATIONS;
26
+ const MOUNT = '/api/duty-endpoints';
27
27
  const base = (id) => `${MOUNT}/${encodeURIComponent(id)}`;
28
- exports.commitmentEndpointApi = {
28
+ exports.dutyEndpointApi = {
29
29
  list: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(MOUNT, query)),
30
30
  create: (body) => data_provider_1.request.post(MOUNT, body),
31
31
  /** Probes the native App/Slack transport and records current health. */
@@ -39,7 +39,7 @@ exports.commitmentEndpointApi = {
39
39
  };
40
40
  function renderEndpointList(rows, log) {
41
41
  if (rows.length === 0) {
42
- log('No commitment endpoints. Create one with `skrr commitments endpoints create`.');
42
+ log('No duty endpoints. Create one with `skrr duties endpoints create`.');
43
43
  return;
44
44
  }
45
45
  (0, format_1.renderTable)(rows.map((row) => ({
@@ -48,7 +48,7 @@ function renderEndpointList(rows, log) {
48
48
  destination: row.destination ?? '—',
49
49
  provider: row.provider ?? '—',
50
50
  status: row.status ?? '—',
51
- // `available` is the field the commitment invocation actually reads when
51
+ // `available` is the field the duty invocation actually reads when
52
52
  // deciding whether a report target can be used, so it earns its own column
53
53
  // rather than being inferred from `status`.
54
54
  usable: row.available ? 'yes' : 'no',
@@ -1,8 +1,8 @@
1
- import type { EventWakeCapabilities } from './commitments';
1
+ import type { EventWakeCapabilities } from './duties';
2
2
  /**
3
3
  * The "Event wakes:" block, one renderer for `trigger-status` and `wake-capabilities`. The second
4
4
  * used to word its own conclusion ("configured sources may wake the Agent", a column marked
5
- * ACTIVE) and contradicted the first for the same Commitment (OSK-15428, OSK-15419); printing the
5
+ * ACTIVE) and contradicted the first for the same Duty (OSK-15428, OSK-15419); printing the
6
6
  * same facts in the same words is the only way the two cannot disagree.
7
7
  */
8
8
  export declare function eventWakeLines(caps: EventWakeCapabilities): string[];
@@ -4,7 +4,7 @@ exports.eventWakeLines = eventWakeLines;
4
4
  /**
5
5
  * The "Event wakes:" block, one renderer for `trigger-status` and `wake-capabilities`. The second
6
6
  * used to word its own conclusion ("configured sources may wake the Agent", a column marked
7
- * ACTIVE) and contradicted the first for the same Commitment (OSK-15428, OSK-15419); printing the
7
+ * ACTIVE) and contradicted the first for the same Duty (OSK-15428, OSK-15419); printing the
8
8
  * same facts in the same words is the only way the two cannot disagree.
9
9
  */
10
10
  function eventWakeLines(caps) {
@@ -50,7 +50,7 @@ function eventWakeLines(caps) {
50
50
  for (const item of caps.selectedEvents) {
51
51
  const name = `${item.source ?? 'source'}: ${item.event ?? '(incomplete selection)'}`;
52
52
  lines.push(item.verdict === 'set_aside'
53
- ? ` ${name} — set aside: ${item.detail ?? item.reason ?? 'it cannot wake this Commitment'}`
53
+ ? ` ${name} — set aside: ${item.detail ?? item.reason ?? 'it cannot wake this Duty'}`
54
54
  : ` ${name} — can wake`);
55
55
  }
56
56
  }
@@ -4,12 +4,12 @@ exports.renderActionHistory = renderActionHistory;
4
4
  exports.renderReflection = renderReflection;
5
5
  exports.renderCadenceDecisions = renderCadenceDecisions;
6
6
  /**
7
- * Human views for three Commitment read commands that printed raw JSON without `--json`
7
+ * Human views for three Duty read commands that printed raw JSON without `--json`
8
8
  * (OSK-15435): `action-history`, `reflection` and `cadence-decisions`. `--json` is unchanged; these
9
9
  * only replace the default. An empty ledger is a sentence, not `"data": []`.
10
10
  */
11
11
  const format_1 = require("./format");
12
- const commitments_1 = require("./commitments");
12
+ const duties_1 = require("./duties");
13
13
  const text = (value, fallback = '-') => typeof value === 'string' && value.trim()
14
14
  ? value
15
15
  : typeof value === 'number'
@@ -58,7 +58,7 @@ function renderActionHistory(page, log) {
58
58
  { key: 'why', header: 'WHY', maxWidth: 100 },
59
59
  ], log);
60
60
  }
61
- (0, commitments_1.renderListPageHint)(page, log);
61
+ (0, duties_1.renderListPageHint)(page, log);
62
62
  }
63
63
  function renderReflection(review, log) {
64
64
  const metrics = (review?.metrics ?? {});
@@ -1,30 +1,30 @@
1
1
  /**
2
- * Text rendering for `skrr commitments roster` / `skrr commitments status`.
2
+ * Text rendering for `skrr duties roster` / `skrr duties status`.
3
3
  *
4
- * The loop state is DERIVED server-side (`CommitmentLoopStatus`); this file
4
+ * The loop state is DERIVED server-side (`DutyLoopStatus`); this file
5
5
  * only words it. Two rules it must keep:
6
6
  * - paused, unarmed and degraded read differently — "you paused it", "nothing
7
7
  * will wake it" and "it cannot see" have different fixes;
8
8
  * - `unknown` never borrows the healthy wording or an OK mark. "Cannot see"
9
9
  * is not "fine".
10
10
  */
11
- import { type CommitmentLoopStatus, type CommitmentRoster } from '@skrr-ai/data-provider';
11
+ import { type DutyLoopStatus, type DutyRoster } from '@skrr-ai/data-provider';
12
12
  export declare function loopStateLabel(state: unknown): string;
13
13
  /**
14
14
  * What an empty "next wakes" list means. "Nothing is scheduled" is true only of an unarmed loop: a held
15
15
  * wake IS scheduled and is being refused, and the line above it says "armed" (OSK-21261). Unknown stays
16
16
  * "could not be read" because cannot-see is not none.
17
17
  */
18
- export declare function noNextWakeText(status: Pick<CommitmentLoopStatus, 'loopState' | 'loopReason'>): string;
19
- /** Roster table: one row per Commitment. */
20
- export declare function formatCommitmentRoster(roster: Partial<CommitmentRoster>): string[];
18
+ export declare function noNextWakeText(status: Pick<DutyLoopStatus, 'loopState' | 'loopReason'>): string;
19
+ /** Roster table: one row per Duty. */
20
+ export declare function formatDutyRoster(roster: Partial<DutyRoster>): string[];
21
21
  /**
22
- * One loop in a few lines, for a surface that lists many (`commitments operating-review`). It carries
23
- * the same facts as `formatCommitmentLoopStatus` but in the order an owner asks them: is it armed,
22
+ * One loop in a few lines, for a surface that lists many (`duties operating-review`). It carries
23
+ * the same facts as `formatDutyLoopStatus` but in the order an owner asks them: is it armed,
24
24
  * when does it next wake, why did it last stop, can it read what it watches, what did it run today.
25
25
  * Every line is present when its fact is unknown, because "cannot see" must not read as "nothing to
26
26
  * report" (OSK-15438, OSK-15412). Lines are returned unindented; the caller indents them.
27
27
  */
28
- export declare function formatLoopSummary(status: CommitmentLoopStatus): string[];
29
- /** One Commitment's loop, in full. */
30
- export declare function formatCommitmentLoopStatus(status: CommitmentLoopStatus): string[];
28
+ export declare function formatLoopSummary(status: DutyLoopStatus): string[];
29
+ /** One Duty's loop, in full. */
30
+ export declare function formatDutyLoopStatus(status: DutyLoopStatus): string[];
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loopStateLabel = loopStateLabel;
4
4
  exports.noNextWakeText = noNextWakeText;
5
- exports.formatCommitmentRoster = formatCommitmentRoster;
5
+ exports.formatDutyRoster = formatDutyRoster;
6
6
  exports.formatLoopSummary = formatLoopSummary;
7
- exports.formatCommitmentLoopStatus = formatCommitmentLoopStatus;
7
+ exports.formatDutyLoopStatus = formatDutyLoopStatus;
8
8
  /**
9
- * Text rendering for `skrr commitments roster` / `skrr commitments status`.
9
+ * Text rendering for `skrr duties roster` / `skrr duties status`.
10
10
  *
11
- * The loop state is DERIVED server-side (`CommitmentLoopStatus`); this file
11
+ * The loop state is DERIVED server-side (`DutyLoopStatus`); this file
12
12
  * only words it. Two rules it must keep:
13
13
  * - paused, unarmed and degraded read differently — "you paused it", "nothing
14
14
  * will wake it" and "it cannot see" have different fixes;
@@ -101,18 +101,18 @@ function watchSummary(status) {
101
101
  })
102
102
  .join(' ');
103
103
  }
104
- /** Roster table: one row per Commitment. */
105
- function formatCommitmentRoster(roster) {
104
+ /** Roster table: one row per Duty. */
105
+ function formatDutyRoster(roster) {
106
106
  const lines = [];
107
- const commitments = Array.isArray(roster.commitments) ? roster.commitments : [];
108
- lines.push(`Agent ${roster.agentId ?? '-'} — ${commitments.length} commitment${commitments.length === 1 ? '' : 's'}`);
109
- if (!commitments.length) {
110
- lines.push('No commitments.');
107
+ const duties = Array.isArray(roster.duties) ? roster.duties : [];
108
+ lines.push(`Agent ${roster.agentId ?? '-'} — ${duties.length} dut${duties.length === 1 ? 'y' : 'ies'}`);
109
+ if (!duties.length) {
110
+ lines.push('No duties.');
111
111
  return lines;
112
112
  }
113
- (0, format_1.renderTable)(commitments.map((status) => ({
113
+ (0, format_1.renderTable)(duties.map((status) => ({
114
114
  state: loopStateLabel(status.loopState),
115
- id: status.commitmentId,
115
+ id: status.dutyId,
116
116
  title: status.systemRole ? `${status.title} [${status.systemRole}]` : status.title,
117
117
  next: nextWake(status),
118
118
  runs: runs(status),
@@ -127,25 +127,25 @@ function formatCommitmentRoster(roster) {
127
127
  { key: 'watching', header: 'WATCHING', maxWidth: 40 },
128
128
  { key: 'reason', header: 'REASON', maxWidth: 40 },
129
129
  ], (line) => lines.push(line));
130
- const attention = commitments.filter((status) => !['healthy', 'paused', 'inactive'].includes(String(status.loopState))).length;
130
+ const attention = duties.filter((status) => !['healthy', 'paused', 'inactive'].includes(String(status.loopState))).length;
131
131
  if (attention) {
132
- lines.push(`${attention} need${attention === 1 ? 's' : ''} attention — run \`skrr commitments status <id>\` for why.`);
132
+ lines.push(`${attention} need${attention === 1 ? 's' : ''} attention — run \`skrr duties status <id>\` for why.`);
133
133
  }
134
134
  if (roster.truncated) {
135
- lines.push('More commitments exist than this roster shows.');
135
+ lines.push('More duties exist than this roster shows.');
136
136
  }
137
137
  return lines;
138
138
  }
139
139
  /**
140
- * One loop in a few lines, for a surface that lists many (`commitments operating-review`). It carries
141
- * the same facts as `formatCommitmentLoopStatus` but in the order an owner asks them: is it armed,
140
+ * One loop in a few lines, for a surface that lists many (`duties operating-review`). It carries
141
+ * the same facts as `formatDutyLoopStatus` but in the order an owner asks them: is it armed,
142
142
  * when does it next wake, why did it last stop, can it read what it watches, what did it run today.
143
143
  * Every line is present when its fact is unknown, because "cannot see" must not read as "nothing to
144
144
  * report" (OSK-15438, OSK-15412). Lines are returned unindented; the caller indents them.
145
145
  */
146
146
  function formatLoopSummary(status) {
147
147
  const lines = [];
148
- const detail = status.loopDetail || (0, data_provider_1.describeCommitmentLoopState)(status.loopState);
148
+ const detail = status.loopDetail || (0, data_provider_1.describeDutyLoopState)(status.loopState);
149
149
  lines.push(`loop: ${loopStateLabel(status.loopState)} — ${detail}${status.loopReason ? ` (${status.loopReason})` : ''}`);
150
150
  const wake = status.nextWakes?.[0];
151
151
  lines.push(`next wake: ${wake
@@ -180,12 +180,12 @@ function formatLoopSummary(status) {
180
180
  }
181
181
  return lines;
182
182
  }
183
- /** One Commitment's loop, in full. */
184
- function formatCommitmentLoopStatus(status) {
183
+ /** One Duty's loop, in full. */
184
+ function formatDutyLoopStatus(status) {
185
185
  const lines = [];
186
- lines.push(`${status.title} (${status.commitmentId})${status.systemRole ? ` [${status.systemRole}]` : ''}`);
186
+ lines.push(`${status.title} (${status.dutyId})${status.systemRole ? ` [${status.systemRole}]` : ''}`);
187
187
  lines.push(` Loop: ${loopStateLabel(status.loopState)}${status.loopReason ? ` (${status.loopReason})` : ''}`);
188
- lines.push(` ${status.loopDetail || (0, data_provider_1.describeCommitmentLoopState)(status.loopState)}`);
188
+ lines.push(` ${status.loopDetail || (0, data_provider_1.describeDutyLoopState)(status.loopState)}`);
189
189
  lines.push(` Lifecycle: ${status.lifecycleStatus}`);
190
190
  lines.push(` Last check: ${when(status.lastCheckAt)}`);
191
191
  lines.push(` Last seen: ${when(status.lastSuccessfulObservationAt)}`);
@@ -1,19 +1,19 @@
1
- import type { CommitmentDeliveryIntent, TaskReviewPolicy, CommitmentExecutionReceipt, CommitmentExecutionReceiptQuarterlyMetricsResponse } from '@skrr-ai/data-provider';
2
- export declare const COMMITMENT_DELIVERY_CHOICES: readonly ["report-only", "local-patch", "draft-pr", "push-branch", "direct-branch"];
1
+ import type { DutyDeliveryIntent, TaskReviewPolicy, DutyExecutionReceipt, DutyExecutionReceiptQuarterlyMetricsResponse } from '@skrr-ai/data-provider';
2
+ export declare const DUTY_DELIVERY_CHOICES: readonly ["report-only", "local-patch", "draft-pr", "push-branch", "direct-branch"];
3
3
  export declare function deliveryLabel(mode?: string): string;
4
4
  export declare function normalizeTaskReviewPolicy(value: unknown): TaskReviewPolicy;
5
5
  export declare function deliveryInput(mode: string, options?: {
6
6
  repo?: string;
7
7
  base?: string;
8
8
  taskReviewPolicy?: TaskReviewPolicy;
9
- }): CommitmentDeliveryIntent;
10
- export declare function renderExecutionReceipt(receipt: CommitmentExecutionReceipt, log: (line: string) => void, verbose?: boolean): void;
9
+ }): DutyDeliveryIntent;
10
+ export declare function renderExecutionReceipt(receipt: DutyExecutionReceipt, log: (line: string) => void, verbose?: boolean): void;
11
11
  /**
12
- * `skrr commitments receipt-metrics <id>` — the closed-quarter rollup.
12
+ * `skrr duties receipt-metrics <id>` — the closed-quarter rollup.
13
13
  *
14
14
  * Ordered as the funnel it describes rather than as the payload's field order:
15
15
  * a wake arrives, some wakes were eligible to act on, some of those started an
16
16
  * execution, some declared a delivery, and some of THOSE were verified. Reading
17
17
  * it top to bottom is how you see which step the loop is losing work at.
18
18
  */
19
- export declare function renderExecutionReceiptQuarterlyMetrics(response: CommitmentExecutionReceiptQuarterlyMetricsResponse, log: (line: string) => void, verbose?: boolean): void;
19
+ export declare function renderExecutionReceiptQuarterlyMetrics(response: DutyExecutionReceiptQuarterlyMetricsResponse, log: (line: string) => void, verbose?: boolean): void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMMITMENT_DELIVERY_CHOICES = void 0;
3
+ exports.DUTY_DELIVERY_CHOICES = void 0;
4
4
  exports.deliveryLabel = deliveryLabel;
5
5
  exports.normalizeTaskReviewPolicy = normalizeTaskReviewPolicy;
6
6
  exports.deliveryInput = deliveryInput;
@@ -9,7 +9,7 @@ exports.renderExecutionReceiptQuarterlyMetrics = renderExecutionReceiptQuarterly
9
9
  const data_provider_1 = require("@skrr-ai/data-provider");
10
10
  const DELIVERY_INPUT_RE = /-/g;
11
11
  const RENDER_EXECUTION_RECEIPT_RE = /^[A-Za-z0-9_.:-]+$/;
12
- exports.COMMITMENT_DELIVERY_CHOICES = [
12
+ exports.DUTY_DELIVERY_CHOICES = [
13
13
  'report-only',
14
14
  'local-patch',
15
15
  'draft-pr',
@@ -32,8 +32,8 @@ function normalizeTaskReviewPolicy(value) {
32
32
  }
33
33
  function deliveryInput(mode, options = {}) {
34
34
  const normalized = mode.replace(DELIVERY_INPUT_RE, '_');
35
- if (!exports.COMMITMENT_DELIVERY_CHOICES.some((choice) => choice.replace(DELIVERY_INPUT_RE, '_') === normalized)) {
36
- throw new Error(`Unknown delivery. Choose ${exports.COMMITMENT_DELIVERY_CHOICES.join(', ')}.`);
35
+ if (!exports.DUTY_DELIVERY_CHOICES.some((choice) => choice.replace(DELIVERY_INPUT_RE, '_') === normalized)) {
36
+ throw new Error(`Unknown delivery. Choose ${exports.DUTY_DELIVERY_CHOICES.join(', ')}.`);
37
37
  }
38
38
  return {
39
39
  version: 1,
@@ -112,7 +112,7 @@ function ratio(value) {
112
112
  return value.toFixed(2);
113
113
  }
114
114
  /**
115
- * `skrr commitments receipt-metrics <id>` — the closed-quarter rollup.
115
+ * `skrr duties receipt-metrics <id>` — the closed-quarter rollup.
116
116
  *
117
117
  * Ordered as the funnel it describes rather than as the payload's field order:
118
118
  * a wake arrives, some wakes were eligible to act on, some of those started an