@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,51 +2,51 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../base-command");
5
- const commitments_1 = require("../../lib/commitments");
5
+ const duties_1 = require("../../lib/duties");
6
6
  const prompt_1 = require("../../lib/prompt");
7
7
  /**
8
- * `sky commitments delete <id>` — remove a commitment from every board.
8
+ * `sky duties delete <id>` — remove a duty from every board.
9
9
  *
10
10
  * SOFT. The contract is marked deleted and disappears from reads, while the
11
11
  * checks, runs, cases, hypotheses and Tasks that reference it stay resolvable —
12
- * a Commitment is the root of append-oriented ledgers that outlive it, and a
12
+ * a Duty is the root of append-oriented ledgers that outlive it, and a
13
13
  * dangling reference is worse than a row a reader can still resolve.
14
14
  *
15
- * Refused for an ACTIVE commitment: pause or archive it first. Deleting
15
+ * Refused for an ACTIVE duty: pause or archive it first. Deleting
16
16
  * something mid-flight orphans a check or run that already holds a lease, and
17
17
  * one deliberate step is the right price for an operation whose job is removal.
18
18
  * Refused for system-managed loops, which the platform re-creates anyway.
19
19
  */
20
- class CommitmentsDelete extends base_command_1.BaseCommand {
21
- static description = 'Delete a commitment (soft — its history stays readable; pause or archive an active one first)';
20
+ class DutiesDelete extends base_command_1.BaseCommand {
21
+ static description = 'Delete a duty (soft — its history stays readable; pause or archive an active one first)';
22
22
  static examples = [
23
- '<%= config.bin %> commitments delete <commitment-id>',
24
- '<%= config.bin %> commitments delete <commitment-id> --reason "scratch probe"',
23
+ '<%= config.bin %> duties delete <duty-id>',
24
+ '<%= config.bin %> duties delete <duty-id> --reason "scratch probe"',
25
25
  ];
26
26
  static args = {
27
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
27
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
28
28
  };
29
29
  static flags = {
30
30
  json: core_1.Flags.boolean({ description: 'Output as JSON' }),
31
31
  reason: core_1.Flags.string({ description: 'Why it was deleted (recorded on the boundary ledger)' }),
32
32
  yes: core_1.Flags.boolean({ char: 'y', description: 'Skip confirmation prompt' }),
33
33
  'stop-open-work': core_1.Flags.boolean({
34
- description: 'Cancel the open Tasks this Commitment produced. Without it they KEEP RUNNING — deleting the producer has never stopped the product.',
34
+ description: 'Cancel the open Tasks this Duty produced. Without it they KEEP RUNNING — deleting the producer has never stopped the product.',
35
35
  allowNo: true,
36
36
  }),
37
37
  };
38
38
  async run() {
39
39
  this.requireAuth();
40
- const { args, flags } = await this.parse(CommitmentsDelete);
40
+ const { args, flags } = await this.parse(DutiesDelete);
41
41
  let preview = null;
42
42
  try {
43
- preview = (await commitments_1.commitmentApi.deletionPreview(args.id));
43
+ preview = (await duties_1.dutyApi.deletionPreview(args.id));
44
44
  }
45
45
  catch {
46
46
  // An older server has no preview route. Proceed — the delete itself
47
47
  // still refuses to guess when there is open work.
48
48
  }
49
- // The API refuses to delete an active Commitment, and rightly so. But a
49
+ // The API refuses to delete an active Duty, and rightly so. But a
50
50
  // deliberate step is not the same as a dead end: the person has already
51
51
  // said what they want, so the step becomes part of THIS gesture rather
52
52
  // than a second command they have to go and find. Same rule the web
@@ -55,8 +55,8 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
55
55
  const openTasks = Number(preview?.openTaskCount || 0);
56
56
  if (openTasks > 0 && flags['stop-open-work'] === undefined) {
57
57
  this.error(`${args.id} has ${openTasks} open task(s), and deleting it does NOT stop them.\n` +
58
- ` skrr commitments delete ${args.id} --stop-open-work # cancel them too\n` +
59
- ` skrr commitments delete ${args.id} --no-stop-open-work # leave them running`, { exit: 1 });
58
+ ` skrr duties delete ${args.id} --stop-open-work # cancel them too\n` +
59
+ ` skrr duties delete ${args.id} --no-stop-open-work # leave them running`, { exit: 1 });
60
60
  }
61
61
  const fate = openTasks === 0
62
62
  ? 'Its checks, runs and cases stay readable.'
@@ -66,7 +66,7 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
66
66
  const verb = mustPauseFirst ? 'Pause and delete' : 'Delete';
67
67
  let confirmed;
68
68
  try {
69
- confirmed = await (0, prompt_1.confirmDestructive)(`${verb} commitment ${args.id}? ${fate}`, flags.yes);
69
+ confirmed = await (0, prompt_1.confirmDestructive)(`${verb} duty ${args.id}? ${fate}`, flags.yes);
70
70
  }
71
71
  catch (err) {
72
72
  if (err.exit === 7) {
@@ -80,7 +80,7 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
80
80
  }
81
81
  if (mustPauseFirst) {
82
82
  try {
83
- await commitments_1.commitmentApi.pause(args.id);
83
+ await duties_1.dutyApi.pause(args.id);
84
84
  this.log(`Paused ${args.id}.`);
85
85
  }
86
86
  catch (err) {
@@ -92,7 +92,7 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
92
92
  }
93
93
  let result;
94
94
  try {
95
- result = await commitments_1.commitmentApi.remove(args.id, flags.reason, {
95
+ result = await duties_1.dutyApi.remove(args.id, flags.reason, {
96
96
  stopOpenWork: flags['stop-open-work'],
97
97
  });
98
98
  }
@@ -103,10 +103,10 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
103
103
  this.log(JSON.stringify(result, null, 2));
104
104
  return;
105
105
  }
106
- const commitment = (result.commitment ?? {});
107
- this.log(`Deleted ${String(commitment.id ?? args.id)}.`);
108
- if (commitment.title)
109
- this.log(` ${String(commitment.title)}`);
106
+ const duty = (result.duty ?? {});
107
+ this.log(`Deleted ${String(duty.id ?? args.id)}.`);
108
+ if (duty.title)
109
+ this.log(` ${String(duty.title)}`);
110
110
  const work = (result.work ?? {});
111
111
  // Lead with what still ACTS. What remains readable is reassurance; what
112
112
  // remains running is the fact the reader needs.
@@ -116,7 +116,7 @@ class CommitmentsDelete extends base_command_1.BaseCommand {
116
116
  this.log(` ${work.openTasksLeftRunning} open task(s) are STILL RUNNING.`);
117
117
  }
118
118
  this.log(' Its checks, runs and cases remain readable.');
119
- this.log(` Restore it with: skrr commitments restore ${String(commitment.id ?? args.id)}`);
119
+ this.log(` Restore it with: skrr duties restore ${String(duty.id ?? args.id)}`);
120
120
  }
121
121
  }
122
- exports.default = CommitmentsDelete;
122
+ exports.default = DutiesDelete;
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../base-command';
2
- export default class CommitmentsDelivery extends BaseCommand {
2
+ export default class DutiesDelivery extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static args: {
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const data_provider_1 = require("@skrr-ai/data-provider");
4
4
  const core_1 = require("@oclif/core");
5
5
  const base_command_1 = require("../../base-command");
6
- const commitments_1 = require("../../lib/commitments");
7
- const commitment_product_1 = require("../../lib/commitment-product");
6
+ const duties_1 = require("../../lib/duties");
7
+ const duty_product_1 = require("../../lib/duty-product");
8
8
  const web_url_1 = require("../../lib/web-url");
9
9
  const MODULE_RE = /-/g;
10
- class CommitmentsDelivery extends base_command_1.BaseCommand {
11
- static description = 'Declare the destination for Commitment work';
10
+ class DutiesDelivery extends base_command_1.BaseCommand {
11
+ static description = 'Declare the destination for Duty work';
12
12
  static examples = [
13
- '<%= config.bin %> commitments delivery <id> draft-pr --repo owner/repo --base main',
13
+ '<%= config.bin %> duties delivery <id> draft-pr --repo owner/repo --base main',
14
14
  ];
15
15
  static args = {
16
16
  id: core_1.Args.string({ required: true, ignoreStdin: true }),
@@ -19,8 +19,8 @@ class CommitmentsDelivery extends base_command_1.BaseCommand {
19
19
  ignoreStdin: true,
20
20
  description: 'Delivery destination.',
21
21
  options: [
22
- ...commitment_product_1.COMMITMENT_DELIVERY_CHOICES,
23
- ...commitment_product_1.COMMITMENT_DELIVERY_CHOICES.map((mode) => mode.replace(MODULE_RE, '_')),
22
+ ...duty_product_1.DUTY_DELIVERY_CHOICES,
23
+ ...duty_product_1.DUTY_DELIVERY_CHOICES.map((mode) => mode.replace(MODULE_RE, '_')),
24
24
  ],
25
25
  }),
26
26
  };
@@ -36,25 +36,25 @@ class CommitmentsDelivery extends base_command_1.BaseCommand {
36
36
  };
37
37
  async run() {
38
38
  this.requireAuth();
39
- const { args, flags } = await this.parse(CommitmentsDelivery);
39
+ const { args, flags } = await this.parse(DutiesDelivery);
40
40
  try {
41
- const current = (await commitments_1.commitmentApi.get(args.id)).commitment;
42
- const requested = (0, commitment_product_1.deliveryInput)(args.mode, {
41
+ const current = (await duties_1.dutyApi.get(args.id)).duty;
42
+ const requested = (0, duty_product_1.deliveryInput)(args.mode, {
43
43
  ...flags,
44
44
  ...(flags['task-review-policy'] !== undefined
45
- ? { taskReviewPolicy: (0, commitment_product_1.normalizeTaskReviewPolicy)(flags['task-review-policy']) }
45
+ ? { taskReviewPolicy: (0, duty_product_1.normalizeTaskReviewPolicy)(flags['task-review-policy']) }
46
46
  : {}),
47
47
  });
48
48
  const delivery = { ...current.delivery, ...requested };
49
- const result = await commitments_1.commitmentApi.delivery(args.id, {
49
+ const result = await duties_1.dutyApi.delivery(args.id, {
50
50
  delivery,
51
51
  expectedVersion: current.version,
52
52
  ...(flags.reason ? { reason: flags.reason } : {}),
53
53
  });
54
- const linked = (0, web_url_1.withCommitmentUrl)(this.cliConfig.baseURL, result);
54
+ const linked = (0, web_url_1.withDutyUrl)(this.cliConfig.baseURL, result);
55
55
  if (flags.json)
56
56
  return this.log(JSON.stringify(linked, null, 2));
57
- this.log(`Delivery: ${(0, commitment_product_1.deliveryLabel)(result.delivery?.mode)}${result.delivery?.repo ? ` · ${result.delivery.repo}` : ''}${result.delivery?.baseBranch ? ` → ${result.delivery.baseBranch}` : ''}`);
57
+ this.log(`Delivery: ${(0, duty_product_1.deliveryLabel)(result.delivery?.mode)}${result.delivery?.repo ? ` · ${result.delivery.repo}` : ''}${result.delivery?.baseBranch ? ` → ${result.delivery.baseBranch}` : ''}`);
58
58
  this.log(`URL: ${linked.url}`);
59
59
  }
60
60
  catch (error) {
@@ -62,4 +62,4 @@ class CommitmentsDelivery extends base_command_1.BaseCommand {
62
62
  }
63
63
  }
64
64
  }
65
- exports.default = CommitmentsDelivery;
65
+ exports.default = DutiesDelivery;
@@ -1,14 +1,14 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  /**
3
- * `skrr commitments detach <id>` — take away eyes or keys.
3
+ * `skrr duties detach <id>` — take away eyes or keys.
4
4
  *
5
5
  * Detaching a grant does NOT revoke it: the envelope stays usable by whatever
6
6
  * else holds it. `skrr grants revoke` is the command that kills the credential
7
- * everywhere. Keeping the two separate is deliberate — "this commitment no
7
+ * everywhere. Keeping the two separate is deliberate — "this duty no
8
8
  * longer needs AWS" and "this key is compromised" call for different blast
9
9
  * radii, and collapsing them would make the safe action feel expensive.
10
10
  */
11
- export default class CommitmentsDetach extends BaseCommand {
11
+ export default class DutiesDetach extends BaseCommand {
12
12
  static description: string;
13
13
  static examples: string[];
14
14
  static args: {
@@ -2,25 +2,25 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../base-command");
5
- const commitments_1 = require("../../lib/commitments");
6
- const commitment_terms_1 = require("../../lib/commitment-terms");
5
+ const duties_1 = require("../../lib/duties");
6
+ const duty_terms_1 = require("../../lib/duty-terms");
7
7
  /**
8
- * `skrr commitments detach <id>` — take away eyes or keys.
8
+ * `skrr duties detach <id>` — take away eyes or keys.
9
9
  *
10
10
  * Detaching a grant does NOT revoke it: the envelope stays usable by whatever
11
11
  * else holds it. `skrr grants revoke` is the command that kills the credential
12
- * everywhere. Keeping the two separate is deliberate — "this commitment no
12
+ * everywhere. Keeping the two separate is deliberate — "this duty no
13
13
  * longer needs AWS" and "this key is compromised" call for different blast
14
14
  * radii, and collapsing them would make the safe action feel expensive.
15
15
  */
16
- class CommitmentsDetach extends base_command_1.BaseCommand {
17
- static description = 'Detach a sensor or a credential grant from a commitment';
16
+ class DutiesDetach extends base_command_1.BaseCommand {
17
+ static description = 'Detach a sensor or a credential grant from a duty';
18
18
  static examples = [
19
- '<%= config.bin %> commitments detach <commitment-id> --sensor ingress:<ingress-id>',
20
- '<%= config.bin %> commitments detach <commitment-id> --grant <grant-id> --json',
19
+ '<%= config.bin %> duties detach <duty-id> --sensor ingress:<ingress-id>',
20
+ '<%= config.bin %> duties detach <duty-id> --grant <grant-id> --json',
21
21
  ];
22
22
  static args = {
23
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
23
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
24
24
  };
25
25
  static flags = {
26
26
  json: core_1.Flags.boolean({ description: 'Output as JSON' }),
@@ -33,7 +33,7 @@ class CommitmentsDetach extends base_command_1.BaseCommand {
33
33
  };
34
34
  async run() {
35
35
  this.requireAuth();
36
- const { args, flags } = await this.parse(CommitmentsDetach);
36
+ const { args, flags } = await this.parse(DutiesDetach);
37
37
  if (!flags.sensor && !flags.grant) {
38
38
  this.error('Pass --sensor or --grant.', { exit: 1 });
39
39
  }
@@ -42,36 +42,36 @@ class CommitmentsDetach extends base_command_1.BaseCommand {
42
42
  }
43
43
  let payload;
44
44
  try {
45
- const current = await (0, commitment_terms_1.loadCommitment)(args.id);
45
+ const current = await (0, duty_terms_1.loadDuty)(args.id);
46
46
  if (flags.sensor) {
47
- const ref = (0, commitment_terms_1.parseSensorRef)(flags.sensor);
47
+ const ref = (0, duty_terms_1.parseSensorRef)(flags.sensor);
48
48
  payload = {
49
- sensors: (0, commitment_terms_1.removeByKey)(current.sensors ?? [], (0, commitment_terms_1.sensorRefKey)(ref), commitment_terms_1.sensorRefKey, 'Sensor'),
49
+ sensors: (0, duty_terms_1.removeByKey)(current.sensors ?? [], (0, duty_terms_1.sensorRefKey)(ref), duty_terms_1.sensorRefKey, 'Sensor'),
50
50
  };
51
51
  }
52
52
  else {
53
53
  payload = {
54
- grants: (0, commitment_terms_1.removeByKey)(current.grants ?? [], String(flags.grant), (g) => g.grantId, 'Grant'),
54
+ grants: (0, duty_terms_1.removeByKey)(current.grants ?? [], String(flags.grant), (g) => g.grantId, 'Grant'),
55
55
  };
56
56
  }
57
57
  }
58
58
  catch (err) {
59
59
  this.error(err.message, { exit: 1 });
60
60
  }
61
- let commitment;
61
+ let duty;
62
62
  try {
63
- commitment = await commitments_1.commitmentApi.update(args.id, payload);
63
+ duty = await duties_1.dutyApi.update(args.id, payload);
64
64
  }
65
65
  catch (err) {
66
66
  this.handleApiError(err);
67
67
  }
68
68
  if (flags.json) {
69
- this.log(JSON.stringify(commitment, null, 2));
69
+ this.log(JSON.stringify(duty, null, 2));
70
70
  return;
71
71
  }
72
72
  this.log(flags.sensor ? 'Sensor detached.' : 'Grant detached.');
73
- (0, commitments_1.renderCommitmentSummary)(commitment, (line) => this.log(line));
74
- (0, commitment_terms_1.renderCommitmentTerms)(commitment, (line) => this.log(line));
73
+ (0, duties_1.renderDutySummary)(duty, (line) => this.log(line));
74
+ (0, duty_terms_1.renderDutyTerms)(duty, (line) => this.log(line));
75
75
  }
76
76
  }
77
- exports.default = CommitmentsDetach;
77
+ exports.default = DutiesDetach;
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  export declare function doctorVerdict(input: {
3
- commitment?: Record<string, unknown>;
3
+ duty?: Record<string, unknown>;
4
4
  preflight?: Record<string, unknown>;
5
5
  operatingState?: Record<string, unknown>;
6
6
  }): {
@@ -9,14 +9,14 @@ export declare function doctorVerdict(input: {
9
9
  why?: string;
10
10
  };
11
11
  /**
12
- * The Space loop line (OSK-17989): a Commitment homed in a Space runs only while
13
- * that Space's execution principal admits it. Empty for a Commitment that is not
12
+ * The Space loop line (OSK-17989): a Duty homed in a Space runs only while
13
+ * that Space's execution principal admits it. Empty for a Duty that is not
14
14
  * a loop. A refused loop is also the operating state's first blocker, so the
15
15
  * verdict and next step above already say what to do; this line says which
16
16
  * Space and why.
17
17
  */
18
18
  export declare function spaceLoopLine(value: unknown): string;
19
- export default class CommitmentsDoctor extends BaseCommand {
19
+ export default class DutiesDoctor extends BaseCommand {
20
20
  static description: string;
21
21
  static args: {
22
22
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -5,21 +5,21 @@ exports.spaceLoopLine = spaceLoopLine;
5
5
  const core_1 = require("@oclif/core");
6
6
  const data_provider_1 = require("@skrr-ai/data-provider");
7
7
  const base_command_1 = require("../../base-command");
8
- const commitments_1 = require("../../lib/commitments");
8
+ const duties_1 = require("../../lib/duties");
9
9
  const DOCTOR_VERDICT_RE = /^status_([a-z_]+)$/;
10
10
  function doctorVerdict(input) {
11
- const commitment = input.commitment || {};
11
+ const duty = input.duty || {};
12
12
  const preflight = input.preflight || {};
13
13
  const operatingState = input.operatingState || {};
14
14
  const blocker = operatingState.firstActionableBlocker;
15
15
  if (blocker?.code) {
16
- // A lifecycle stop is a state, not a fault: a Commitment its owner paused is `paused`, with the
16
+ // A lifecycle stop is a state, not a fault: a Duty its owner paused is `paused`, with the
17
17
  // way back as its next step, not `blocked` (OSK-15423).
18
18
  const lifecycle = DOCTOR_VERDICT_RE.exec(String(blocker.code));
19
19
  return {
20
20
  verdict: lifecycle ? lifecycle[1] : blocker.code === 'deleted' ? 'deleted' : 'blocked',
21
21
  // A typed blocker carries no remedy, only what happened (OSK-16230).
22
- next: String(blocker.remediation || blocker.detail || 'Inspect the Commitment'),
22
+ next: String(blocker.remediation || blocker.detail || 'Inspect the Duty'),
23
23
  };
24
24
  }
25
25
  if (operatingState.status === 'waiting_approval') {
@@ -42,13 +42,13 @@ function doctorVerdict(input) {
42
42
  next: 'Confirm the cap with --max-concurrent-runs <n> --concurrency-reason "...", or remove it with --max-concurrent-runs unlimited',
43
43
  };
44
44
  }
45
- if (commitment.status !== 'active')
45
+ if (duty.status !== 'active')
46
46
  return {
47
47
  verdict: 'inactive',
48
48
  next: 'Inspect the lifecycle before resuming this responsibility',
49
49
  };
50
- const raw = (operatingState.assessment || commitment.assessment);
51
- const assessment = raw ? (0, data_provider_1.readCommitmentAssessment)(raw) : undefined;
50
+ const raw = (operatingState.assessment || duty.assessment);
51
+ const assessment = raw ? (0, data_provider_1.readDutyAssessment)(raw) : undefined;
52
52
  if (!assessment)
53
53
  return { verdict: 'unknown', next: 'Run a Check to evaluate current criterion evidence' };
54
54
  const verified = assessment.outcome === 'satisfied' &&
@@ -72,8 +72,8 @@ function doctorVerdict(input) {
72
72
  };
73
73
  }
74
74
  /**
75
- * The Space loop line (OSK-17989): a Commitment homed in a Space runs only while
76
- * that Space's execution principal admits it. Empty for a Commitment that is not
75
+ * The Space loop line (OSK-17989): a Duty homed in a Space runs only while
76
+ * that Space's execution principal admits it. Empty for a Duty that is not
77
77
  * a loop. A refused loop is also the operating state's first blocker, so the
78
78
  * verdict and next step above already say what to do; this line says which
79
79
  * Space and why.
@@ -91,35 +91,35 @@ function spaceLoopLine(value) {
91
91
  const said = status !== 'admitted' && loop.detail ? ` — ${loop.detail}` : '';
92
92
  return `Space loop: ${status}${loop.spaceId ? ` · ${loop.spaceId}` : ''}${said}${detail}`;
93
93
  }
94
- class CommitmentsDoctor extends base_command_1.BaseCommand {
95
- static description = 'Summarize commitment readiness and the next operator action';
94
+ class DutiesDoctor extends base_command_1.BaseCommand {
95
+ static description = 'Summarize duty readiness and the next operator action';
96
96
  static args = {
97
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
97
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
98
98
  };
99
99
  static flags = {
100
100
  json: core_1.Flags.boolean({ description: 'Output the composed health report as JSON' }),
101
101
  strict: core_1.Flags.boolean({
102
- description: 'Exit non-zero unless the commitment is active and healthy',
102
+ description: 'Exit non-zero unless the duty is active and healthy',
103
103
  }),
104
104
  };
105
105
  async run() {
106
106
  this.requireAuth();
107
- const { args, flags } = await this.parse(CommitmentsDoctor);
108
- let commitment;
107
+ const { args, flags } = await this.parse(DutiesDoctor);
108
+ let duty;
109
109
  let shown;
110
110
  try {
111
- shown = (await commitments_1.commitmentApi.get(args.id));
112
- commitment = (shown.commitment || {});
111
+ shown = (await duties_1.dutyApi.get(args.id));
112
+ duty = (shown.duty || {});
113
113
  }
114
114
  catch (error) {
115
115
  this.handleApiError(error);
116
116
  return;
117
117
  }
118
118
  const operatingState = (shown.operatingState || {});
119
- const diagnosis = doctorVerdict({ commitment, operatingState });
119
+ const diagnosis = doctorVerdict({ duty, operatingState });
120
120
  const report = {
121
121
  ...diagnosis,
122
- commitment,
122
+ duty,
123
123
  abilities: shown.abilities,
124
124
  operatingState,
125
125
  observedAt: new Date().toISOString(),
@@ -138,7 +138,7 @@ class CommitmentsDoctor extends base_command_1.BaseCommand {
138
138
  if (diagnosis.why)
139
139
  this.log(`Why: ${diagnosis.why}`);
140
140
  this.log(`Next: ${diagnosis.next.replace('<id>', args.id)}`);
141
- this.log(`Concurrency: ${(0, commitments_1.describeCommitmentConcurrency)(commitment)}`);
141
+ this.log(`Concurrency: ${(0, duties_1.describeDutyConcurrency)(duty)}`);
142
142
  const approvals = operatingState.approvals;
143
143
  if (approvals?.pendingCount)
144
144
  this.log(`Waiting approval: ${String(approvals.pendingCount)}`);
@@ -148,4 +148,4 @@ class CommitmentsDoctor extends base_command_1.BaseCommand {
148
148
  }
149
149
  }
150
150
  }
151
- exports.default = CommitmentsDoctor;
151
+ exports.default = DutiesDoctor;
@@ -6,12 +6,12 @@ import { BaseCommand } from '../../base-command';
6
6
  */
7
7
  export declare function isoWallClock(instant: unknown, timeZone?: string): string | undefined;
8
8
  /**
9
- * `stored` is the Commitment's own policy, read beside the effective one: the no-reply back-off
9
+ * `stored` is the Duty's own policy, read beside the effective one: the no-reply back-off
10
10
  * is not part of the effective-policy answer, so without it that line is left out, not guessed.
11
11
  */
12
12
  export declare function effectivePolicyLines(policy: Record<string, any>, stored?: Record<string, any> | null): string[];
13
- /** Show the policy actually governing a Commitment without changing it. */
14
- export default class CommitmentsEffectivePolicy extends BaseCommand {
13
+ /** Show the policy actually governing a Duty without changing it. */
14
+ export default class DutiesEffectivePolicy extends BaseCommand {
15
15
  static description: string;
16
16
  static examples: string[];
17
17
  static args: {
@@ -4,9 +4,9 @@ exports.isoWallClock = isoWallClock;
4
4
  exports.effectivePolicyLines = effectivePolicyLines;
5
5
  const core_1 = require("@oclif/core");
6
6
  const base_command_1 = require("../../base-command");
7
- const commitments_1 = require("../../lib/commitments");
8
- const commitment_product_1 = require("../../lib/commitment-product");
9
- const commitment_attention_copy_1 = require("../../lib/commitment-attention-copy");
7
+ const duties_1 = require("../../lib/duties");
8
+ const duty_product_1 = require("../../lib/duty-product");
9
+ const duty_attention_copy_1 = require("../../lib/duty-attention-copy");
10
10
  const northstars_1 = require("../../lib/northstars");
11
11
  /** Which limit binds the daily action runs — the fix lives on that object. */
12
12
  const RUN_LIMIT_BINDING_LABELS = {
@@ -72,7 +72,7 @@ function budgetDayLines(policy) {
72
72
  ? 'no ceiling'
73
73
  : `${value}/day`;
74
74
  lines.push(`Northstar shared pools: action runs ${pool(shared.actionRunsPerDay, shared.actionRunsPerDayState)} · observation runs ${pool(shared.observationRunsPerDay, shared.observationRunsPerDayState)}`);
75
- // A pool below the number of linked active commitments is still handed out at the floor of
75
+ // A pool below the number of linked active duties is still handed out at the floor of
76
76
  // 1/day each: the same sentence `northstars governance show` and `review-now` print (OSK-21334).
77
77
  const floorNote = (0, northstars_1.runBudgetFloorNote)(policy.portfolio?.runBudgetFloor);
78
78
  if (floorNote)
@@ -85,7 +85,7 @@ function storedLimit(limit) {
85
85
  return limit?.mode === 'limited' ? limit.value : null;
86
86
  }
87
87
  /**
88
- * `stored` is the Commitment's own policy, read beside the effective one: the no-reply back-off
88
+ * `stored` is the Duty's own policy, read beside the effective one: the no-reply back-off
89
89
  * is not part of the effective-policy answer, so without it that line is left out, not guessed.
90
90
  */
91
91
  function effectivePolicyLines(policy, stored) {
@@ -93,20 +93,20 @@ function effectivePolicyLines(policy, stored) {
93
93
  const owner = policy.owner || {};
94
94
  const lines = [];
95
95
  // Whose permissions a run uses (OSK-11975), directly under the mode it can
96
- // contradict — an Execute Commitment on a plan-mode Agent (OSK-12065).
97
- lines.push(...(0, commitments_1.permissionLines)(policy.permissions));
96
+ // contradict — an Execute Duty on a plan-mode Agent (OSK-12065).
97
+ lines.push(...(0, duties_1.permissionLines)(policy.permissions));
98
98
  if (governance.blocked) {
99
99
  lines.push(`Workspace status: blocked${governance.blockedReason ? ` — ${governance.blockedReason}` : ''}`);
100
100
  }
101
101
  else {
102
102
  lines.push('Workspace status: allowed');
103
103
  }
104
- if (Array.isArray(governance.allowedCommitmentDeliveryModes)) {
105
- lines.push(`Workspace delivery allowlist: ${governance.allowedCommitmentDeliveryModes.length ? governance.allowedCommitmentDeliveryModes.map(commitment_product_1.deliveryLabel).join(', ') : 'none'}`);
104
+ if (Array.isArray(governance.allowedDutyDeliveryModes)) {
105
+ lines.push(`Workspace delivery allowlist: ${governance.allowedDutyDeliveryModes.length ? governance.allowedDutyDeliveryModes.map(duty_product_1.deliveryLabel).join(', ') : 'none'}`);
106
106
  }
107
107
  if (Array.isArray(governance.requireAttestedAccessForDeliveryModes) &&
108
108
  governance.requireAttestedAccessForDeliveryModes.length) {
109
- lines.push(`Runtime attestation required for: ${governance.requireAttestedAccessForDeliveryModes.map(commitment_product_1.deliveryLabel).join(', ')}`);
109
+ lines.push(`Runtime attestation required for: ${governance.requireAttestedAccessForDeliveryModes.map(duty_product_1.deliveryLabel).join(', ')}`);
110
110
  }
111
111
  const runLimit = owner.actionRunsPerDay;
112
112
  if (runLimit) {
@@ -136,30 +136,30 @@ function effectivePolicyLines(policy, stored) {
136
136
  // How much it may interrupt the owner (OSK-21120). The JSON has carried the cap and the gap as
137
137
  // `owner.userNudgesPerDay` / `minUserNudgeIntervalMs`; the text dropped both.
138
138
  if (owner.userNudgesPerDay) {
139
- lines.push(...(0, commitment_attention_copy_1.nudgeSettingLines)({
139
+ lines.push(...(0, duty_attention_copy_1.nudgeSettingLines)({
140
140
  maxUserNudgesPerDay: storedLimit(owner.userNudgesPerDay),
141
141
  minUserNudgeIntervalMs: storedLimit(owner.minUserNudgeIntervalMs),
142
142
  noReply: stored?.attention?.noReply,
143
143
  }, { withNoReply: Boolean(stored) }));
144
144
  }
145
145
  // Which event sources may wake it (OSK-21113). The effective-policy answer has never carried
146
- // `allowedEventSources`, so it is read from the Commitment's own policy; unread, the line is
146
+ // `allowedEventSources`, so it is read from the Duty's own policy; unread, the line is
147
147
  // left out, because "all allowed" would be a claim.
148
148
  if (stored) {
149
- lines.push(`Event sources: ${(0, commitment_attention_copy_1.describeEventSources)(stored.executionBudget?.allowedEventSources)}`);
149
+ lines.push(`Event sources: ${(0, duty_attention_copy_1.describeEventSources)(stored.executionBudget?.allowedEventSources)}`);
150
150
  }
151
151
  lines.push(...budgetDayLines(policy));
152
152
  return lines;
153
153
  }
154
- /** Show the policy actually governing a Commitment without changing it. */
155
- class CommitmentsEffectivePolicy extends base_command_1.BaseCommand {
156
- static description = 'Show the owner, workspace, and infrastructure policy currently governing a commitment';
154
+ /** Show the policy actually governing a Duty without changing it. */
155
+ class DutiesEffectivePolicy extends base_command_1.BaseCommand {
156
+ static description = 'Show the owner, workspace, and infrastructure policy currently governing a duty';
157
157
  static examples = [
158
- '<%= config.bin %> commitments effective-policy <commitment-id>',
159
- '<%= config.bin %> commitments effective-policy <commitment-id> --json',
158
+ '<%= config.bin %> duties effective-policy <duty-id>',
159
+ '<%= config.bin %> duties effective-policy <duty-id> --json',
160
160
  ];
161
161
  static args = {
162
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
162
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
163
163
  };
164
164
  static flags = {
165
165
  json: core_1.Flags.boolean({ description: 'Output the complete effective policy as JSON' }),
@@ -167,10 +167,10 @@ class CommitmentsEffectivePolicy extends base_command_1.BaseCommand {
167
167
  };
168
168
  async run() {
169
169
  this.requireAuth();
170
- const { args, flags } = await this.parse(CommitmentsEffectivePolicy);
170
+ const { args, flags } = await this.parse(DutiesEffectivePolicy);
171
171
  let policy;
172
172
  try {
173
- policy = await commitments_1.commitmentApi.effectivePolicy(args.id);
173
+ policy = await duties_1.dutyApi.effectivePolicy(args.id);
174
174
  }
175
175
  catch (err) {
176
176
  this.handleApiError(err);
@@ -180,12 +180,12 @@ class CommitmentsEffectivePolicy extends base_command_1.BaseCommand {
180
180
  this.log(JSON.stringify(policy, null, 2));
181
181
  return;
182
182
  }
183
- // The Commitment's own policy, for the settings the effective answer does not carry. A failed
183
+ // The Duty's own policy, for the settings the effective answer does not carry. A failed
184
184
  // read costs those lines, never the command.
185
185
  let stored = null;
186
186
  try {
187
187
  stored =
188
- (await commitments_1.commitmentApi.get(args.id))?.commitment?.policy ?? null;
188
+ (await duties_1.dutyApi.get(args.id))?.duty?.policy ?? null;
189
189
  }
190
190
  catch {
191
191
  stored = null;
@@ -199,4 +199,4 @@ class CommitmentsEffectivePolicy extends base_command_1.BaseCommand {
199
199
  }
200
200
  }
201
201
  }
202
- exports.default = CommitmentsEffectivePolicy;
202
+ exports.default = DutiesEffectivePolicy;
@@ -1,10 +1,10 @@
1
1
  import { BaseCommand } from '../../../base-command';
2
2
  /**
3
- * `skrr commitments endpoints connect <id>` probes the Agent's native App or
3
+ * `skrr duties endpoints connect <id>` probes the Agent's native App or
4
4
  * Slack transport and records its live health. `--reconnect` reruns the same
5
5
  * probe for a stale/revoked endpoint.
6
6
  */
7
- export default class CommitmentsEndpointsConnect extends BaseCommand {
7
+ export default class DutiesEndpointsConnect extends BaseCommand {
8
8
  static description: string;
9
9
  static examples: string[];
10
10
  static args: {