@skrr-ai/cli 0.1.149 → 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 (399) 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/delete.d.ts +17 -1
  13. package/dist/commands/agents/delete.js +37 -1
  14. package/dist/commands/agents/egress.js +1 -1
  15. package/dist/commands/agents/list.d.ts +1 -1
  16. package/dist/commands/agents/list.js +1 -1
  17. package/dist/commands/agents/roles/capture.d.ts +1 -1
  18. package/dist/commands/agents/roles/capture.js +2 -2
  19. package/dist/commands/agents/roles/install.js +1 -1
  20. package/dist/commands/agents/spawn.js +47 -38
  21. package/dist/commands/agents/update.d.ts +1 -1
  22. package/dist/commands/agents/update.js +3 -3
  23. package/dist/commands/code/jobs/show.js +1 -1
  24. package/dist/commands/compass/archive.d.ts +1 -1
  25. package/dist/commands/compass/archive.js +1 -1
  26. package/dist/commands/compass/create.js +1 -1
  27. package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
  28. package/dist/commands/compass/{commitments.js → duties.js} +14 -14
  29. package/dist/commands/compass/trace.d.ts +1 -1
  30. package/dist/commands/compass/trace.js +2 -2
  31. package/dist/commands/convos/messages.js +2 -1
  32. package/dist/commands/doctor.d.ts +1 -1
  33. package/dist/commands/doctor.js +1 -1
  34. package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
  35. package/dist/commands/{commitments → duties}/accounting.js +13 -13
  36. package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
  37. package/dist/commands/{commitments → duties}/action-history.js +12 -12
  38. package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
  39. package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
  40. package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
  41. package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
  42. package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
  43. package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
  44. package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
  45. package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
  46. package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
  47. package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
  48. package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
  49. package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
  50. package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
  51. package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
  52. package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
  53. package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
  54. package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
  55. package/dist/commands/{commitments → duties}/attach.js +21 -21
  56. package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
  57. package/dist/commands/{commitments → duties}/bundle.js +7 -7
  58. package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
  59. package/dist/commands/duties/cadence-decisions.js +41 -0
  60. package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
  61. package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
  62. package/dist/commands/{commitments → duties}/case.d.ts +2 -2
  63. package/dist/commands/{commitments → duties}/case.js +8 -8
  64. package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
  65. package/dist/commands/{commitments → duties}/cases.js +9 -9
  66. package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
  67. package/dist/commands/{commitments → duties}/check-now.js +29 -29
  68. package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
  69. package/dist/commands/{commitments → duties}/checks.js +13 -13
  70. package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
  71. package/dist/commands/duties/complete.js +40 -0
  72. package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
  73. package/dist/commands/{commitments → duties}/control/apply.js +7 -7
  74. package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
  75. package/dist/commands/{commitments → duties}/control/preview.js +8 -8
  76. package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
  77. package/dist/commands/{commitments → duties}/control/show.js +6 -6
  78. package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
  79. package/dist/commands/{commitments → duties}/cost.js +14 -14
  80. package/dist/commands/{commitments → duties}/create.d.ts +8 -8
  81. package/dist/commands/{commitments → duties}/create.js +92 -92
  82. package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
  83. package/dist/commands/{commitments → duties}/cycles.js +11 -11
  84. package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
  85. package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
  86. package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
  87. package/dist/commands/{commitments → duties}/delete.js +24 -24
  88. package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
  89. package/dist/commands/{commitments → duties}/delivery.js +15 -15
  90. package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
  91. package/dist/commands/{commitments → duties}/detach.js +20 -20
  92. package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
  93. package/dist/commands/{commitments → duties}/doctor.js +21 -21
  94. package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
  95. package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
  96. package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
  97. package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
  98. package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
  99. package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
  100. package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
  101. package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
  102. package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
  103. package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
  104. package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
  105. package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
  106. package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
  107. package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
  108. package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
  109. package/dist/commands/{commitments → duties}/evaluations.js +8 -8
  110. package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
  111. package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
  112. package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
  113. package/dist/commands/{commitments → duties}/explain.js +13 -13
  114. package/dist/commands/{commitments → duties}/export.d.ts +3 -3
  115. package/dist/commands/{commitments → duties}/export.js +15 -15
  116. package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
  117. package/dist/commands/{commitments → duties}/feedback.js +13 -13
  118. package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
  119. package/dist/commands/{commitments → duties}/fork.js +11 -11
  120. package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
  121. package/dist/commands/duties/goals/link.js +41 -0
  122. package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
  123. package/dist/commands/duties/goals/unlink.js +37 -0
  124. package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
  125. package/dist/commands/{commitments → duties}/handover.js +21 -21
  126. package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
  127. package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
  128. package/dist/commands/{commitments → duties}/import.d.ts +2 -2
  129. package/dist/commands/{commitments → duties}/import.js +10 -10
  130. package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
  131. package/dist/commands/{commitments → duties}/ledger.js +12 -12
  132. package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
  133. package/dist/commands/duties/lineage.js +43 -0
  134. package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
  135. package/dist/commands/{commitments → duties}/links/create.js +9 -9
  136. package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
  137. package/dist/commands/{commitments → duties}/links/detach.js +7 -7
  138. package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
  139. package/dist/commands/{commitments → duties}/links/list.js +9 -9
  140. package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
  141. package/dist/commands/{commitments → duties}/links/update.js +7 -7
  142. package/dist/commands/{commitments → duties}/list.d.ts +3 -3
  143. package/dist/commands/{commitments → duties}/list.js +17 -17
  144. package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
  145. package/dist/commands/{commitments → duties}/liveness.js +13 -13
  146. package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
  147. package/dist/commands/{commitments → duties}/metrics.js +12 -12
  148. package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
  149. package/dist/commands/{commitments → duties}/next-tick.js +14 -14
  150. package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
  151. package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
  152. package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
  153. package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
  154. package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
  155. package/dist/commands/{commitments → duties}/observations.js +18 -18
  156. package/dist/commands/{commitments → duties}/open.d.ts +1 -1
  157. package/dist/commands/{commitments → duties}/open.js +13 -13
  158. package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
  159. package/dist/commands/{commitments → duties}/operating-review.js +21 -21
  160. package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
  161. package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
  162. package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
  163. package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
  164. package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
  165. package/dist/commands/{commitments → duties}/pack/list.js +10 -10
  166. package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
  167. package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
  168. package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
  169. package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
  170. package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
  171. package/dist/commands/{commitments → duties}/patch.js +7 -7
  172. package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
  173. package/dist/commands/{commitments → duties}/pause.js +16 -16
  174. package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
  175. package/dist/commands/{commitments → duties}/plan.js +20 -20
  176. package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
  177. package/dist/commands/{commitments → duties}/preflight.js +32 -32
  178. package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
  179. package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
  180. package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
  181. package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
  182. package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
  183. package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
  184. package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
  185. package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
  186. package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
  187. package/dist/commands/{commitments → duties}/receipt.js +10 -10
  188. package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
  189. package/dist/commands/{commitments → duties}/reflect.js +12 -12
  190. package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
  191. package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
  192. package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
  193. package/dist/commands/{commitments → duties}/reflection.js +9 -9
  194. package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
  195. package/dist/commands/{commitments → duties}/remediate.js +14 -14
  196. package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
  197. package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
  198. package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
  199. package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
  200. package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
  201. package/dist/commands/{commitments → duties}/reports.js +35 -35
  202. package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
  203. package/dist/commands/duties/restore.js +46 -0
  204. package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
  205. package/dist/commands/duties/resume.js +37 -0
  206. package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
  207. package/dist/commands/duties/roster.js +39 -0
  208. package/dist/commands/{commitments → duties}/show.d.ts +7 -7
  209. package/dist/commands/{commitments → duties}/show.js +40 -40
  210. package/dist/commands/{commitments → duties}/status.d.ts +3 -3
  211. package/dist/commands/duties/status.js +41 -0
  212. package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
  213. package/dist/commands/{commitments → duties}/subject.js +29 -29
  214. package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
  215. package/dist/commands/{commitments → duties}/trace.js +12 -12
  216. package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
  217. package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
  218. package/dist/commands/{commitments → duties}/update.d.ts +5 -5
  219. package/dist/commands/{commitments → duties}/update.js +64 -64
  220. package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
  221. package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
  222. package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
  223. package/dist/commands/{commitments → duties}/work-plan.js +6 -6
  224. package/dist/commands/goals/key-results/show.js +2 -1
  225. package/dist/commands/goals/plan-now.js +2 -2
  226. package/dist/commands/goals/planner-compare.d.ts +1 -1
  227. package/dist/commands/goals/planner-compare.js +2 -2
  228. package/dist/commands/grants/create.d.ts +1 -1
  229. package/dist/commands/grants/create.js +9 -9
  230. package/dist/commands/grants/list.d.ts +1 -1
  231. package/dist/commands/grants/list.js +2 -2
  232. package/dist/commands/initiatives/list.d.ts +1 -1
  233. package/dist/commands/initiatives/list.js +1 -1
  234. package/dist/commands/measures/create.d.ts +2 -2
  235. package/dist/commands/measures/create.js +4 -4
  236. package/dist/commands/measures/list.d.ts +1 -1
  237. package/dist/commands/measures/list.js +2 -2
  238. package/dist/commands/northstars/create.js +4 -4
  239. package/dist/commands/northstars/delete.d.ts +3 -3
  240. package/dist/commands/northstars/delete.js +8 -8
  241. package/dist/commands/northstars/governance/configure.js +15 -15
  242. package/dist/commands/northstars/intents/decide.d.ts +1 -1
  243. package/dist/commands/northstars/intents/decide.js +1 -1
  244. package/dist/commands/northstars/link.d.ts +4 -4
  245. package/dist/commands/northstars/link.js +8 -8
  246. package/dist/commands/northstars/list.d.ts +2 -2
  247. package/dist/commands/northstars/list.js +3 -3
  248. package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
  249. package/dist/commands/northstars/recommendations/apply.js +2 -2
  250. package/dist/commands/northstars/review-now.js +2 -2
  251. package/dist/commands/northstars/show.d.ts +3 -3
  252. package/dist/commands/northstars/show.js +5 -5
  253. package/dist/commands/northstars/unlink.d.ts +3 -3
  254. package/dist/commands/northstars/unlink.js +6 -6
  255. package/dist/commands/northstars/update.js +3 -3
  256. package/dist/commands/proposals/list.d.ts +3 -3
  257. package/dist/commands/proposals/list.js +7 -7
  258. package/dist/commands/search/agents.d.ts +4 -1
  259. package/dist/commands/search/agents.js +6 -3
  260. package/dist/commands/search/all.d.ts +4 -1
  261. package/dist/commands/search/all.js +11 -7
  262. package/dist/commands/search/teams.d.ts +4 -1
  263. package/dist/commands/search/teams.js +6 -3
  264. package/dist/commands/spaces/auto-executor/compare.js +1 -1
  265. package/dist/commands/spaces/auto-executor/runs.js +1 -1
  266. package/dist/commands/spaces/heartbeats/list.js +2 -2
  267. package/dist/commands/spaces/index.js +2 -2
  268. package/dist/commands/spaces/list.d.ts +1 -1
  269. package/dist/commands/spaces/list.js +1 -1
  270. package/dist/commands/spaces/loops/migrate.d.ts +1 -1
  271. package/dist/commands/spaces/loops/migrate.js +1 -1
  272. package/dist/commands/spaces/loops/release.d.ts +1 -1
  273. package/dist/commands/spaces/loops/release.js +10 -10
  274. package/dist/commands/spaces/notebook.d.ts +2 -2
  275. package/dist/commands/spaces/notebook.js +2 -2
  276. package/dist/commands/spaces/proposals/discard.js +1 -1
  277. package/dist/commands/spaces/proposals/keep.js +1 -1
  278. package/dist/commands/spaces/triggers/show.js +3 -3
  279. package/dist/commands/spaces/write-policy/set.js +1 -1
  280. package/dist/commands/store/uninstall.js +2 -2
  281. package/dist/commands/subscriptions/health.d.ts +2 -2
  282. package/dist/commands/subscriptions/health.js +2 -2
  283. package/dist/commands/subscriptions/status.js +2 -2
  284. package/dist/commands/subscriptions/subscribe.js +4 -4
  285. package/dist/commands/tasks/create.d.ts +20 -1
  286. package/dist/commands/tasks/create.js +44 -3
  287. package/dist/commands/tasks/list.d.ts +7 -1
  288. package/dist/commands/tasks/list.js +2 -1
  289. package/dist/generated/agent-guides.json +496 -496
  290. package/dist/generated/managed-instruction-guides.json +2 -2
  291. package/dist/hooks/command-not-found.d.ts +1 -1
  292. package/dist/hooks/command-not-found.js +1 -1
  293. package/dist/lib/agent-chat-start.js +2 -1
  294. package/dist/lib/agent-trigger-listing.d.ts +4 -4
  295. package/dist/lib/agent-trigger-listing.js +7 -7
  296. package/dist/lib/agentic-stream.d.ts +16 -0
  297. package/dist/lib/agentic-stream.js +78 -21
  298. package/dist/lib/always-on-command-result.d.ts +8 -1
  299. package/dist/lib/always-on-command-result.js +11 -2
  300. package/dist/lib/auth-failure.js +1 -1
  301. package/dist/lib/capability-matrix.d.ts +3 -3
  302. package/dist/lib/capability-matrix.js +9 -9
  303. package/dist/lib/command-hygiene.js +6 -6
  304. package/dist/lib/command-miss.js +1 -1
  305. package/dist/lib/compass-refusals.d.ts +1 -1
  306. package/dist/lib/compass-refusals.js +1 -1
  307. package/dist/lib/compasses.d.ts +5 -5
  308. package/dist/lib/compasses.js +15 -15
  309. package/dist/lib/dedicated-machines.js +2 -1
  310. package/dist/lib/dedicated-power.js +2 -0
  311. package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
  312. package/dist/lib/{commitments.js → duties.js} +282 -282
  313. package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
  314. package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
  315. package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
  316. package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
  317. package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
  318. package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
  319. package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
  320. package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
  321. package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
  322. package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
  323. package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
  324. package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
  325. package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
  326. package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
  327. package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
  328. package/dist/lib/entity-open.d.ts +1 -1
  329. package/dist/lib/entity-open.js +1 -1
  330. package/dist/lib/format.d.ts +1 -1
  331. package/dist/lib/grants.d.ts +3 -3
  332. package/dist/lib/grants.js +2 -2
  333. package/dist/lib/initiatives.js +4 -4
  334. package/dist/lib/node-adapter.js +1 -1
  335. package/dist/lib/northstars.d.ts +13 -13
  336. package/dist/lib/northstars.js +56 -56
  337. package/dist/lib/open-target.js +1 -1
  338. package/dist/lib/preflight-copy.js +5 -5
  339. package/dist/lib/proactiveApi.d.ts +15 -4
  340. package/dist/lib/proposals.js +16 -16
  341. package/dist/lib/responsibility-controls.d.ts +1 -1
  342. package/dist/lib/responsibility-controls.js +6 -6
  343. package/dist/lib/roles.d.ts +1 -1
  344. package/dist/lib/schedule.d.ts +5 -5
  345. package/dist/lib/schedule.js +1 -1
  346. package/dist/lib/session-task-write.d.ts +1 -1
  347. package/dist/lib/session-task-write.js +2 -2
  348. package/dist/lib/space-loop-migration.js +6 -6
  349. package/dist/lib/space-notebook.js +2 -2
  350. package/dist/lib/space-write-policy.js +2 -2
  351. package/dist/lib/stewardship-output.js +2 -2
  352. package/dist/lib/task-spec-verification.js +1 -1
  353. package/dist/lib/tasks.d.ts +1 -1
  354. package/dist/lib/tasks.js +8 -8
  355. package/dist/lib/triggers.d.ts +3 -3
  356. package/dist/lib/triggers.js +11 -10
  357. package/dist/lib/usage-discovery.js +2 -4
  358. package/dist/lib/web-url.d.ts +6 -6
  359. package/dist/lib/web-url.js +13 -13
  360. package/dist/lib/workspaces.d.ts +4 -4
  361. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  362. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
  363. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
  364. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
  365. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
  366. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
  367. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
  368. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
  369. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
  370. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
  371. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
  372. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  373. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
  374. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
  375. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
  376. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
  377. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
  378. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
  379. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
  380. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
  381. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
  382. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
  383. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
  384. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
  385. package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
  386. package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
  387. package/docs/v1/lookback-plans.md +1 -1
  388. package/oclif.manifest.json +5365 -5350
  389. package/package.json +16 -16
  390. package/dist/commands/commitments/cadence-decisions.js +0 -41
  391. package/dist/commands/commitments/complete.js +0 -40
  392. package/dist/commands/commitments/goals/link.js +0 -41
  393. package/dist/commands/commitments/goals/unlink.js +0 -37
  394. package/dist/commands/commitments/lineage.js +0 -43
  395. package/dist/commands/commitments/restore.js +0 -46
  396. package/dist/commands/commitments/resume.js +0 -37
  397. package/dist/commands/commitments/roster.js +0 -39
  398. package/dist/commands/commitments/status.js +0 -41
  399. /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
@@ -87,7 +87,7 @@ exports.SPEC_FORMAT_HELP = [
87
87
  '- worker.watchers[].source: task_goal_watcher, initiative_follow_through, slack_watcher, memory_watcher, calendar_watcher, daemon_watcher, email_watcher, github_watcher, initiative_digest_watcher, rss_watcher. Optional intervalMinutes (15-1440) and limit (1-100).',
88
88
  '- worker.policy.mode: suggestions_only, ask_first, auto_run_limited, auto_run. workingHours and quietHours: { enabled, start, end, timezone }, with times as "HH:MM".',
89
89
  '- orchestrator (installed when systems has orchestrator): mode review or auto, executePlan true or false, workingHours { start, end, timezone }.',
90
- '- Optional: commitments (at most 3), initialize { goals, tasks, jobs }, compass, autonomyPosture.',
90
+ '- Optional: duties (at most 3), initialize { goals, tasks, jobs }, compass, autonomyPosture.',
91
91
  ].join('\n');
92
92
  /**
93
93
  * The install plan as lines: every object a spec will install, marked `requested` (the spec names
@@ -206,54 +206,54 @@ function proactiveInstallReadiness(result, bin) {
206
206
  return {
207
207
  status: 'ready',
208
208
  message: firstRuns
209
- ? `All requested setup steps completed. Its first runs start in the background: read \`${bin} commitments operating-review ${safeAgent}\` in a few minutes to see whether they worked.`
209
+ ? `All requested setup steps completed. Its first runs start in the background: read \`${bin} duties operating-review ${safeAgent}\` in a few minutes to see whether they worked.`
210
210
  : 'All requested setup steps completed.',
211
211
  };
212
212
  }
213
- if (result.warnings.some((warning) => warning.step.startsWith('commitment.'))) {
214
- // A Commitment the owner deleted is reported, not repaired: it was not recreated on
213
+ if (result.warnings.some((warning) => warning.step.startsWith('duty.'))) {
214
+ // A Duty the owner deleted is reported, not repaired: it was not recreated on
215
215
  // purpose, and a repair command that names its id is a dead end (OSK-22381).
216
- const deleted = (result.installed.commitments || []).filter((commitment) => commitment.status === 'deleted');
217
- const affected = (result.installed.commitments || []).filter((commitment) => commitment.status !== 'deleted' && (commitment.status !== 'active' || result.warnings.some((warning) => warning.step === `commitment.${commitment.title}`)));
216
+ const deleted = (result.installed.duties || []).filter((duty) => duty.status === 'deleted');
217
+ const affected = (result.installed.duties || []).filter((duty) => duty.status !== 'deleted' && (duty.status !== 'active' || result.warnings.some((warning) => warning.step === `duty.${duty.title}`)));
218
218
  if (deleted.length && !affected.length &&
219
- result.warnings.every((warning) => warning.code === 'commitment_deleted_not_recreated')) {
219
+ result.warnings.every((warning) => warning.code === 'duty_deleted_not_recreated')) {
220
220
  return {
221
221
  status: 'degraded',
222
- message: `${deleted.length === 1 ? 'A Commitment' : `${deleted.length} Commitments`} from this spec ` +
222
+ message: `${deleted.length === 1 ? 'A Duty' : `${deleted.length} Duties`} from this spec ` +
223
223
  `${deleted.length === 1 ? 'was' : 'were'} deleted earlier, so ${deleted.length === 1 ? 'it was' : 'they were'} not created again. ` +
224
224
  'Change its title and apply the spec again if you want it back.',
225
225
  };
226
226
  }
227
- const ids = [...new Set(affected.map((commitment) => commitment.id))].filter((id) => typeof id === 'string' && PROACTIVE_INSTALL_READINESS_RE.test(id));
227
+ const ids = [...new Set(affected.map((duty) => duty.id))].filter((id) => typeof id === 'string' && PROACTIVE_INSTALL_READINESS_RE.test(id));
228
228
  const safeAgentId = PROACTIVE_INSTALL_READINESS_RE.test(result.agentId) ? result.agentId : null;
229
229
  // Always-On was still starting when setup finished, so the only thing that
230
230
  // stopped activation was a gate that clears by itself. Say so and name the
231
- // command that finishes the job; `commitments preflight` is a dry run that
231
+ // command that finishes the job; `duties preflight` is a dry run that
232
232
  // never mentions resume (OSK-22351).
233
- const stillStarting = affected.length > 0 && affected.every((commitment) => commitment.status === 'draft' &&
234
- (commitment.activationBlockedBy || []).length > 0 &&
235
- (commitment.activationBlockedBy || []).every((entry) => entry.gate === 'always_on' && entry.reason === 'reconcile_pending'));
233
+ const stillStarting = affected.length > 0 && affected.every((duty) => duty.status === 'draft' &&
234
+ (duty.activationBlockedBy || []).length > 0 &&
235
+ (duty.activationBlockedBy || []).every((entry) => entry.gate === 'always_on' && entry.reason === 'reconcile_pending'));
236
236
  if (stillStarting && ids.length) {
237
237
  return {
238
238
  status: 'degraded',
239
- message: `Always-On was still starting when setup finished, so the Commitment${ids.length === 1 ? '' : 's'} ${ids.join(', ')} ` +
239
+ message: `Always-On was still starting when setup finished, so the Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} ` +
240
240
  `${ids.length === 1 ? 'was' : 'were'} left as ${ids.length === 1 ? 'a draft' : 'drafts'}. ` +
241
241
  'Nothing else is wrong; resume it in a moment.',
242
242
  repairCommand: ids.length === 1
243
- ? `${bin} commitments resume ${ids[0]}`
244
- : `${bin} commitments list --agent ${safeAgentId ?? '<agent-id>'} --status draft`,
243
+ ? `${bin} duties resume ${ids[0]}`
244
+ : `${bin} duties list --agent ${safeAgentId ?? '<agent-id>'} --status draft`,
245
245
  };
246
246
  }
247
247
  // A draft held only because Always-On is off names that gate in its `blockedBy` (no activation
248
248
  // diagnostic exists, since nothing refused it). The repair is turning Always-On on, not a dry
249
- // run; `commitments preflight` told the owner so one step later (OSK-22629).
249
+ // run; `duties preflight` told the owner so one step later (OSK-22629).
250
250
  const heldByAlwaysOff = affected.length > 0 &&
251
- affected.every((commitment) => commitment.status === 'draft' &&
252
- (commitment.blockedBy || []).some((entry) => entry.gate === 'always_on' && entry.reason === 'always_on_disabled'));
251
+ affected.every((duty) => duty.status === 'draft' &&
252
+ (duty.blockedBy || []).some((entry) => entry.gate === 'always_on' && entry.reason === 'always_on_disabled'));
253
253
  if (heldByAlwaysOff && safeAgentId && ids.length) {
254
254
  return {
255
255
  status: 'degraded',
256
- message: `Always-On is off, so the Commitment${ids.length === 1 ? '' : 's'} ${ids.join(', ')} ` +
256
+ message: `Always-On is off, so the Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} ` +
257
257
  `${ids.length === 1 ? 'was' : 'were'} left as ${ids.length === 1 ? 'a draft' : 'drafts'}. ` +
258
258
  'Turn Always-On on if you want it to run, then resume it.',
259
259
  repairCommand: `${bin} agents always-on enable ${safeAgentId}`,
@@ -262,11 +262,11 @@ function proactiveInstallReadiness(result, bin) {
262
262
  return {
263
263
  status: 'degraded',
264
264
  message: ids.length
265
- ? `Review the existing Commitment${ids.length === 1 ? '' : 's'} ${ids.join(', ')} and resolve the reported issues. Review any other setup warnings as well.`
266
- : 'A requested Commitment needs attention. Review the setup warnings and inspect the Agent’s existing Commitments before deciding what to do next.',
265
+ ? `Review the existing Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} and resolve the reported issues. Review any other setup warnings as well.`
266
+ : 'A requested Duty needs attention. Review the setup warnings and inspect the Agent’s existing Duties before deciding what to do next.',
267
267
  ...(ids.length === 1
268
- ? { repairCommand: `${bin} commitments preflight ${ids[0]}` }
269
- : safeAgentId ? { repairCommand: `${bin} commitments list --agent ${safeAgentId}` } : {}),
268
+ ? { repairCommand: `${bin} duties preflight ${ids[0]}` }
269
+ : safeAgentId ? { repairCommand: `${bin} duties list --agent ${safeAgentId}` } : {}),
270
270
  };
271
271
  }
272
272
  if (result.warnings.some((warning) => ['job_preserved_disabled', 'job_already_fired', 'job_state_unavailable'].includes(warning.code))) {
@@ -308,12 +308,12 @@ function proactiveInstallReadiness(result, bin) {
308
308
  message: 'What the spec asked for is installed. Part of the new Agent\u2019s own setup did not finish; ' +
309
309
  'the warning below says which part and why. Re-running the spec does not change that.',
310
310
  ...(inspectAgent
311
- ? { repairCommand: `${bin} commitments operating-review ${inspectAgent}` }
311
+ ? { repairCommand: `${bin} duties operating-review ${inspectAgent}` }
312
312
  : {}),
313
313
  };
314
314
  }
315
315
  // A full trigger budget must not make a new persona-only Agent look broken
316
- // when its core system commitments, local execution policy, and Always-On
316
+ // when its core system duties, local execution policy, and Always-On
317
317
  // state installed successfully. The optional backlog watcher is deferred;
318
318
  // surface the constraint in warnings but do not tell the owner to retry an
319
319
  // installation that cannot succeed until they reclaim quota.
@@ -321,7 +321,7 @@ function proactiveInstallReadiness(result, bin) {
321
321
  if (quotaOnly) {
322
322
  return {
323
323
  status: 'ready',
324
- message: 'Core proactive service is ready. The optional task/goal watcher is deferred because your trigger quota is full; first-day context discovery and Meta Commitments remain active.',
324
+ message: 'Core proactive service is ready. The optional task/goal watcher is deferred because your trigger quota is full; first-day context discovery and Meta Duties remain active.',
325
325
  };
326
326
  }
327
327
  const repairCommand = `${bin} agents spawn --agent-id ${result.agentId} --from-spec <spec.json> --approve`;
@@ -745,10 +745,10 @@ class AgentsSpawn extends base_command_1.BaseCommand {
745
745
  `hours: ${o.workingHours.start}–${o.workingHours.end}` +
746
746
  `${o.workingHours.timezone ? ` ${o.workingHours.timezone}` : ''}`);
747
747
  }
748
- if (Array.isArray(spec.commitments) && spec.commitments.length > 0) {
748
+ if (Array.isArray(spec.duties) && spec.duties.length > 0) {
749
749
  this.log('');
750
- this.log('Commitments (as provided; subject to validation):');
751
- this.log(JSON.stringify(spec.commitments, null, 2));
750
+ this.log('Duties (as provided; subject to validation):');
751
+ this.log(JSON.stringify(spec.duties, null, 2));
752
752
  }
753
753
  // What approval will create besides the systems above. `--json` always listed
754
754
  // these; the text plan showed none of them, so "Create it" created a goal, tasks
@@ -812,6 +812,15 @@ class AgentsSpawn extends base_command_1.BaseCommand {
812
812
  this.log(` ${schedule.kind}: ${state}` +
813
813
  (schedule.triggerId ? ` (${schedule.triggerId})` : '') +
814
814
  (schedule.reason ? ` — ${schedule.reason}` : ''));
815
+ if (schedule.modeKept) {
816
+ // The spec asked for a mode the existing watcher is not in: say it was NOT applied (OSK-22695).
817
+ const kept = schedule.modeKept.existing;
818
+ const wanted = schedule.modeKept.requested;
819
+ this.log(` NOT applied: this watcher stays in mode ${kept.mode} (executePlan ${kept.executePlan}); the spec asks for ` +
820
+ `${wanted.mode} (executePlan ${wanted.executePlan}). Change it with ` +
821
+ `\`${this.config.bin} agents triggers update ${result.agentId} ${schedule.triggerId} --builtin-type smart_schedule_delta_watch ` +
822
+ `--builtin-config '{"targetAgentId":"${result.agentId}","mode":"${wanted.mode}","executePlan":${wanted.executePlan},"approveNextRunSuggestion":false}'\`.`);
823
+ }
815
824
  }
816
825
  if (o.schedules?.some((schedule) => schedule.triggerId)) {
817
826
  this.log(` Preflight: ${this.config.bin} triggers preflight <trigger-id>`);
@@ -841,9 +850,9 @@ class AgentsSpawn extends base_command_1.BaseCommand {
841
850
  const seeded = initializeSummary(result.installed.initialize);
842
851
  if (seeded)
843
852
  this.log(` seeded: ${seeded}`);
844
- for (const commitment of result.installed.commitments || []) {
845
- this.log(` commitment: ${commitment.title ?? commitment.id} — ${commitment.status ?? 'unknown'}` +
846
- ` (${commitment.id})${commitment.existing ? ', already existed' : ''}`);
853
+ for (const duty of result.installed.duties || []) {
854
+ this.log(` duty: ${duty.title ?? duty.id} — ${duty.status ?? 'unknown'}` +
855
+ ` (${duty.id})${duty.existing ? ', already existed' : ''}`);
847
856
  }
848
857
  for (const watcher of result.installed.defaultWatchers || []) {
849
858
  if (!watcher.ok)
@@ -861,11 +870,11 @@ class AgentsSpawn extends base_command_1.BaseCommand {
861
870
  ` - ${trigger.enabled ? 'enabled' : 'disabled'} (${trigger.id})`);
862
871
  }
863
872
  }
864
- if (inventory?.commitments?.length) {
865
- this.log(' system commitments on this agent:');
866
- for (const commitment of inventory.commitments) {
867
- this.log(` ${commitment.systemRole ?? commitment.title ?? '(unnamed)'}` +
868
- ` - ${commitment.status ?? 'unknown'} (${commitment.id})`);
873
+ if (inventory?.duties?.length) {
874
+ this.log(' system duties on this agent:');
875
+ for (const duty of inventory.duties) {
876
+ this.log(` ${duty.systemRole ?? duty.title ?? '(unnamed)'}` +
877
+ ` - ${duty.status ?? 'unknown'} (${duty.id})`);
869
878
  }
870
879
  }
871
880
  if (result.warnings.length > 0) {
@@ -136,7 +136,7 @@ export declare function defaultPermissionModePatch(flags: {
136
136
  /**
137
137
  * What changing the agent's default permission mode actually changed
138
138
  * (OSK-12124). It is the AGENT's default, so it governs every conversation,
139
- * task run and Commitment Run of the agent from its next turn — which the bare
139
+ * task run and Duty Run of the agent from its next turn — which the bare
140
140
  * "Updated agent" line never said, and the only way to learn that a live
141
141
  * conversation picked it up was to spend another turn. Names the per-turn
142
142
  * alternative for the case that wanted one conversation changed.
@@ -59,7 +59,7 @@ class AgentsUpdate extends base_command_1.BaseCommand {
59
59
  }),
60
60
  'default-permission-mode': core_1.Flags.string({
61
61
  description: "Permission mode for this agent's local-harness sessions (every harness, not only Claude Code). " +
62
- 'It is the default for EVERY conversation, task run and Commitment Run of the agent; for one ' +
62
+ 'It is the default for EVERY conversation, task run and Duty Run of the agent; for one ' +
63
63
  'turn only use `agents chat --permission-mode`. ' +
64
64
  'One-shot harnesses (gemini, opencode, cursor, copilot, goose, pi, openclaw) can only run as ' +
65
65
  'bypassPermissions; any other mode is refused for them.',
@@ -442,7 +442,7 @@ function defaultPermissionModePatch(flags) {
442
442
  /**
443
443
  * What changing the agent's default permission mode actually changed
444
444
  * (OSK-12124). It is the AGENT's default, so it governs every conversation,
445
- * task run and Commitment Run of the agent from its next turn — which the bare
445
+ * task run and Duty Run of the agent from its next turn — which the bare
446
446
  * "Updated agent" line never said, and the only way to learn that a live
447
447
  * conversation picked it up was to spend another turn. Names the per-turn
448
448
  * alternative for the case that wanted one conversation changed.
@@ -455,7 +455,7 @@ function defaultPermissionModeNote(requested, updated) {
455
455
  : requested;
456
456
  return [
457
457
  `Permission: ${stored} is now this agent's default for EVERY conversation, task run and`,
458
- ' Commitment Run, starting with each one’s next turn. A turn that names its own',
458
+ ' Duty Run, starting with each one’s next turn. A turn that names its own',
459
459
  ' mode still wins. To change one turn only, leave the default alone and pass',
460
460
  ` \`skrr agents chat <agent> --conversation <id> --permission-mode ${requested}\`.`,
461
461
  ].join('\n');
@@ -54,7 +54,7 @@ class CodeJobsShow extends base_command_1.BaseCommand {
54
54
  line('PR:', task.prUrl);
55
55
  line('Parent Task:', task.lineage?.taskId);
56
56
  line('Task run:', task.lineage?.taskExecutionRunId);
57
- line('Commitment:', task.lineage?.commitmentId);
57
+ line('Duty:', task.lineage?.dutyId);
58
58
  line('Parent run:', task.lineage?.autonomousRunId);
59
59
  line('Preview:', task.previewUrl);
60
60
  // Same sentence `machines hosted start` prints, from the snapshot the job
@@ -3,7 +3,7 @@ import { BaseCommand } from '../../base-command';
3
3
  * `skrr compass archive <compass-id> --agent <id>`
4
4
  *
5
5
  * There is no hard delete, by design. A compass explains why an agent behaved
6
- * the way it did, and destroying it would orphan every commitment, revision and
6
+ * the way it did, and destroying it would orphan every duty, revision and
7
7
  * audit row that cites its version. Archiving stops it being resolved at runtime
8
8
  * while keeping the record readable.
9
9
  */
@@ -8,7 +8,7 @@ const compasses_1 = require("../../lib/compasses");
8
8
  * `skrr compass archive <compass-id> --agent <id>`
9
9
  *
10
10
  * There is no hard delete, by design. A compass explains why an agent behaved
11
- * the way it did, and destroying it would orphan every commitment, revision and
11
+ * the way it did, and destroying it would orphan every duty, revision and
12
12
  * audit row that cites its version. Archiving stops it being resolved at runtime
13
13
  * while keeping the record readable.
14
14
  */
@@ -38,7 +38,7 @@ class CompassCreate extends base_command_1.BaseCommand {
38
38
 
39
39
  ${compass_body_help_1.COMPASS_BODY_HELP}
40
40
 
41
- To govern a Commitment with this compass, put "compassId" in the Commitment's --from-json create body (see: commitments create --help). The binding is fixed at creation.`;
41
+ To govern a Duty with this compass, put "compassId" in the Duty's --from-json create body (see: duties create --help). The binding is fixed at creation.`;
42
42
  static examples = [
43
43
  '<%= config.bin %> compass create --agent agent_abc --title "Production reliability" --domain reliability',
44
44
  '<%= config.bin %> compass create --agent agent_abc --title "FinOps" --invariant "Cloud spend stays under $10k/mo"',
@@ -1,12 +1,12 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  /**
3
- * `skrr compass commitments <compass-id> --agent <id>`
3
+ * `skrr compass duties <compass-id> --agent <id>`
4
4
  *
5
- * The commitments this compass governs. Useful before editing an invariant:
6
- * a `maintain` commitment is DERIVED from an invariant target, so changing the
7
- * target changes what those commitments watch.
5
+ * The duties this compass governs. Useful before editing an invariant:
6
+ * a `maintain` duty is DERIVED from an invariant target, so changing the
7
+ * target changes what those duties watch.
8
8
  */
9
- export default class CompassCommitments extends BaseCommand {
9
+ export default class CompassDuties extends BaseCommand {
10
10
  static description: string;
11
11
  static examples: string[];
12
12
  static args: {
@@ -5,16 +5,16 @@ const base_command_1 = require("../../base-command");
5
5
  const compasses_1 = require("../../lib/compasses");
6
6
  const format_1 = require("../../lib/format");
7
7
  /**
8
- * `skrr compass commitments <compass-id> --agent <id>`
8
+ * `skrr compass duties <compass-id> --agent <id>`
9
9
  *
10
- * The commitments this compass governs. Useful before editing an invariant:
11
- * a `maintain` commitment is DERIVED from an invariant target, so changing the
12
- * target changes what those commitments watch.
10
+ * The duties this compass governs. Useful before editing an invariant:
11
+ * a `maintain` duty is DERIVED from an invariant target, so changing the
12
+ * target changes what those duties watch.
13
13
  */
14
- class CompassCommitments extends base_command_1.BaseCommand {
15
- static description = 'List the commitments governed by a compass';
14
+ class CompassDuties extends base_command_1.BaseCommand {
15
+ static description = 'List the duties governed by a compass';
16
16
  static examples = [
17
- '<%= config.bin %> compass commitments agch_abc123 --agent agent_xyz',
17
+ '<%= config.bin %> compass duties agch_abc123 --agent agent_xyz',
18
18
  ];
19
19
  static args = {
20
20
  compassId: core_1.Args.string({ ignoreStdin: true, description: 'Compass ID', required: true }),
@@ -25,10 +25,10 @@ class CompassCommitments extends base_command_1.BaseCommand {
25
25
  };
26
26
  async run() {
27
27
  this.requireAuth();
28
- const { args, flags } = await this.parse(CompassCommitments);
28
+ const { args, flags } = await this.parse(CompassDuties);
29
29
  let response;
30
30
  try {
31
- response = await compasses_1.compassApi.commitments(args.compassId, { agentId: flags.agent });
31
+ response = await compasses_1.compassApi.duties(args.compassId, { agentId: flags.agent });
32
32
  }
33
33
  catch (err) {
34
34
  this.handleApiError(err);
@@ -50,23 +50,23 @@ class CompassCommitments extends base_command_1.BaseCommand {
50
50
  const archived = status === 'archived';
51
51
  if (rows.length === 0) {
52
52
  this.log(archived
53
- ? 'No commitments are bound to this compass.'
54
- : 'No commitments are governed by this compass.');
53
+ ? 'No duties are bound to this compass.'
54
+ : 'No duties are governed by this compass.');
55
55
  return;
56
56
  }
57
57
  if (archived)
58
- this.log((0, compasses_1.describeBoundCommitments)(rows.length, status));
58
+ this.log((0, compasses_1.describeBoundDuties)(rows.length, status));
59
59
  (0, format_1.renderTable)(rows.map((row) => ({
60
60
  id: String(row.id ?? ''),
61
61
  title: String(row.title ?? ''),
62
62
  kind: String(row.kind ?? 'achieve'),
63
63
  status: String(row.status ?? ''),
64
64
  })), [
65
- { key: 'id', header: 'COMMITMENT' },
65
+ { key: 'id', header: 'DUTY' },
66
66
  { key: 'title', header: 'TITLE', maxWidth: 44 },
67
67
  { key: 'kind', header: 'KIND' },
68
68
  { key: 'status', header: 'STATUS' },
69
69
  ], (line) => this.log(line));
70
70
  }
71
71
  }
72
- exports.default = CompassCommitments;
72
+ exports.default = CompassDuties;
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  /**
3
3
  * `skrr compass trace <compass-id> --agent <id>` — one causal view of the
4
- * Compass revision chain and the Commitment work that used each revision.
4
+ * Compass revision chain and the Duty work that used each revision.
5
5
  */
6
6
  export default class CompassTrace extends BaseCommand {
7
7
  static description: string;
@@ -5,10 +5,10 @@ const base_command_1 = require("../../base-command");
5
5
  const compasses_1 = require("../../lib/compasses");
6
6
  /**
7
7
  * `skrr compass trace <compass-id> --agent <id>` — one causal view of the
8
- * Compass revision chain and the Commitment work that used each revision.
8
+ * Compass revision chain and the Duty work that used each revision.
9
9
  */
10
10
  class CompassTrace extends base_command_1.BaseCommand {
11
- static description = 'Show Compass revisions and the linked Commitment checks, actions, runs, and work they influenced';
11
+ static description = 'Show Compass revisions and the linked Duty checks, actions, runs, and work they influenced';
12
12
  static examples = [
13
13
  '<%= config.bin %> compass trace agch_abc123 --agent agent_xyz',
14
14
  '<%= config.bin %> compass trace agch_abc123 --agent agent_xyz --limit 200 --json',
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const data_provider_1 = require("@skrr-ai/data-provider");
6
6
  const base_command_1 = require("../../base-command");
7
7
  const message_content_1 = require("../../lib/message-content");
8
+ const FORMAT_MESSAGE_LINES_RE_2 = /\s+/g;
8
9
  const FORMAT_MESSAGE_LINES_RE = /\s+/g;
9
10
  /**
10
11
  * The lines `skrr convos messages` prints for one message row.
@@ -35,7 +36,7 @@ function formatMessageLines(m, options = {}) {
35
36
  }
36
37
  }
37
38
  if (failure) {
38
- const reason = failure.reason?.replace(/\s+/g, ' ').trim();
39
+ const reason = failure.reason?.replace(FORMAT_MESSAGE_LINES_RE_2, ' ').trim();
39
40
  lines.push(` failed: ${reason || 'no reason was recorded on the message'}`);
40
41
  }
41
42
  if (options.metadata && m.metadata && Object.keys(m.metadata).length > 0) {
@@ -22,7 +22,7 @@ export declare function configuredOclifPluginAvailability(root: string): OclifPl
22
22
  * while `handleApiError` two files away answers a 401 with "Run `skrr login`"
23
23
  * (OSK-5088).
24
24
  *
25
- * Shaped after `commitments preflight`, which already does this well in the
25
+ * Shaped after `duties preflight`, which already does this well in the
26
26
  * same CLI: a named question per check, a mark, and the remedy beside the
27
27
  * failure. `--json` is unchanged.
28
28
  */
@@ -131,7 +131,7 @@ function configuredOclifPluginAvailability(root) {
131
131
  * while `handleApiError` two files away answers a 401 with "Run `skrr login`"
132
132
  * (OSK-5088).
133
133
  *
134
- * Shaped after `commitments preflight`, which already does this well in the
134
+ * Shaped after `duties preflight`, which already does this well in the
135
135
  * same CLI: a named question per check, a mark, and the remedy beside the
136
136
  * failure. `--json` is unchanged.
137
137
  */
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from '../../base-command';
2
- import { type CommitmentAccountingReadout } from '../../lib/commitments';
2
+ import { type DutyAccountingReadout } from '../../lib/duties';
3
3
  /**
4
- * `skrr commitments accounting <id>` — the allowance-accounting SHADOW readout.
4
+ * `skrr duties accounting <id>` — the allowance-accounting SHADOW readout.
5
5
  *
6
6
  * Allowance accounting replaces "count the attempts" with "count what the
7
7
  * attempts advanced", and it may only be activated once there is enough CLOSED
@@ -13,11 +13,11 @@ import { type CommitmentAccountingReadout } from '../../lib/commitments';
13
13
  * derives, and — the field that matters — whether it can activate yet and what
14
14
  * is blocking it.
15
15
  *
16
- * WORKSPACE-scoped despite taking a commitment id: the readout aggregates every
17
- * closed daily metric in the commitment's workspace. `commitments cost` is the
18
- * per-commitment spend question.
16
+ * WORKSPACE-scoped despite taking a duty id: the readout aggregates every
17
+ * closed daily metric in the duty's workspace. `duties cost` is the
18
+ * per-duty spend question.
19
19
  */
20
- export default class CommitmentsAccounting extends BaseCommand {
20
+ export default class DutiesAccounting extends BaseCommand {
21
21
  static description: string;
22
22
  static examples: string[];
23
23
  static args: {
@@ -36,4 +36,4 @@ export default class CommitmentsAccounting extends BaseCommand {
36
36
  * `canActivate: false` is running on the old attempt accounting and has no
37
37
  * other surface that says so.
38
38
  */
39
- export declare function formatAccountingReadout(readout: CommitmentAccountingReadout): string[];
39
+ export declare function formatAccountingReadout(readout: DutyAccountingReadout): string[];
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatAccountingReadout = formatAccountingReadout;
4
4
  const core_1 = require("@oclif/core");
5
5
  const base_command_1 = require("../../base-command");
6
- const commitments_1 = require("../../lib/commitments");
6
+ const duties_1 = require("../../lib/duties");
7
7
  const cost_1 = require("./cost");
8
8
  /**
9
- * `skrr commitments accounting <id>` — the allowance-accounting SHADOW readout.
9
+ * `skrr duties accounting <id>` — the allowance-accounting SHADOW readout.
10
10
  *
11
11
  * Allowance accounting replaces "count the attempts" with "count what the
12
12
  * attempts advanced", and it may only be activated once there is enough CLOSED
@@ -18,28 +18,28 @@ const cost_1 = require("./cost");
18
18
  * derives, and — the field that matters — whether it can activate yet and what
19
19
  * is blocking it.
20
20
  *
21
- * WORKSPACE-scoped despite taking a commitment id: the readout aggregates every
22
- * closed daily metric in the commitment's workspace. `commitments cost` is the
23
- * per-commitment spend question.
21
+ * WORKSPACE-scoped despite taking a duty id: the readout aggregates every
22
+ * closed daily metric in the duty's workspace. `duties cost` is the
23
+ * per-duty spend question.
24
24
  */
25
- class CommitmentsAccounting extends base_command_1.BaseCommand {
25
+ class DutiesAccounting extends base_command_1.BaseCommand {
26
26
  static description = "Show the workspace's allowance-accounting shadow readout and whether it can activate";
27
27
  static examples = [
28
- '<%= config.bin %> commitments accounting obj_abc123',
29
- '<%= config.bin %> commitments accounting obj_abc123 --json',
28
+ '<%= config.bin %> duties accounting obj_abc123',
29
+ '<%= config.bin %> duties accounting obj_abc123 --json',
30
30
  ];
31
31
  static args = {
32
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
32
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
33
33
  };
34
34
  static flags = {
35
35
  json: core_1.Flags.boolean({ description: 'Output the complete readout as JSON' }),
36
36
  };
37
37
  async run() {
38
38
  this.requireAuth();
39
- const { args, flags } = await this.parse(CommitmentsAccounting);
39
+ const { args, flags } = await this.parse(DutiesAccounting);
40
40
  let readout;
41
41
  try {
42
- readout = await commitments_1.commitmentApi.accountingReadout(args.id);
42
+ readout = await duties_1.dutyApi.accountingReadout(args.id);
43
43
  }
44
44
  catch (err) {
45
45
  this.handleApiError(err);
@@ -52,7 +52,7 @@ class CommitmentsAccounting extends base_command_1.BaseCommand {
52
52
  this.log(line);
53
53
  }
54
54
  }
55
- exports.default = CommitmentsAccounting;
55
+ exports.default = DutiesAccounting;
56
56
  /**
57
57
  * Pure renderer for the accounting readout.
58
58
  *
@@ -89,7 +89,7 @@ function formatAccountingReadout(readout) {
89
89
  lines.push(`Advancing checks: ${Number(readout.advancements || 0)}`);
90
90
  lines.push(` advancement kinds, net of self-minted: ${Number(readout.netAdvancements || 0)}`);
91
91
  lines.push(`Divergence: ${Number(readout.allowanceAttemptDivergence || 0)}`);
92
- // Same attribution caveat as `commitments cost`: a bare dollar figure lets
92
+ // Same attribution caveat as `duties cost`: a bare dollar figure lets
93
93
  // a priced window and an unpriced one read alike (OSK-10940).
94
94
  const costStatus = readout.costStatus ?? 'not_applicable';
95
95
  const costCaveat = {
@@ -1,17 +1,17 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  /**
3
- * `skrr commitments action-history <id>` — what the commitment DID, as opposed to
3
+ * `skrr duties action-history <id>` — what the duty DID, as opposed to
4
4
  * what it decided.
5
5
  *
6
6
  * `checks` shows postures and open loops; this shows the routed actions those
7
7
  * postures produced, including the ones that were gated, deferred, or refused
8
8
  * by the Attention Contract.
9
9
  */
10
- export default class CommitmentsActionHistory extends BaseCommand {
10
+ export default class DutiesActionHistory extends BaseCommand {
11
11
  static description: string;
12
12
  static examples: string[];
13
13
  static args: {
14
- commitmentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
14
+ dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
15
15
  };
16
16
  static flags: {
17
17
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -2,24 +2,24 @@
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_ledgers_1 = require("../../lib/commitment-ledgers");
5
+ const duties_1 = require("../../lib/duties");
6
+ const duty_ledgers_1 = require("../../lib/duty-ledgers");
7
7
  /**
8
- * `skrr commitments action-history <id>` — what the commitment DID, as opposed to
8
+ * `skrr duties action-history <id>` — what the duty DID, as opposed to
9
9
  * what it decided.
10
10
  *
11
11
  * `checks` shows postures and open loops; this shows the routed actions those
12
12
  * postures produced, including the ones that were gated, deferred, or refused
13
13
  * by the Attention Contract.
14
14
  */
15
- class CommitmentsActionHistory extends base_command_1.BaseCommand {
16
- static description = "List the actions this commitment's checks actually routed";
15
+ class DutiesActionHistory extends base_command_1.BaseCommand {
16
+ static description = "List the actions this duty's checks actually routed";
17
17
  static examples = [
18
- '<%= config.bin %> commitments action-history obj_abc123',
19
- '<%= config.bin %> commitments action-history obj_abc123 --limit 50 --json',
18
+ '<%= config.bin %> duties action-history obj_abc123',
19
+ '<%= config.bin %> duties action-history obj_abc123 --limit 50 --json',
20
20
  ];
21
21
  static args = {
22
- commitmentId: core_1.Args.string({ ignoreStdin: true, description: 'Commitment ID', required: true }),
22
+ dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
23
23
  };
24
24
  static flags = {
25
25
  json: core_1.Flags.boolean({ description: 'Output as JSON' }),
@@ -30,10 +30,10 @@ class CommitmentsActionHistory extends base_command_1.BaseCommand {
30
30
  };
31
31
  async run() {
32
32
  this.requireAuth();
33
- const { args, flags } = await this.parse(CommitmentsActionHistory);
33
+ const { args, flags } = await this.parse(DutiesActionHistory);
34
34
  let response;
35
35
  try {
36
- response = await commitments_1.commitmentApi.actionHistory(args.commitmentId, {
36
+ response = await duties_1.dutyApi.actionHistory(args.dutyId, {
37
37
  limit: flags.limit,
38
38
  cursor: flags.cursor,
39
39
  });
@@ -46,7 +46,7 @@ class CommitmentsActionHistory extends base_command_1.BaseCommand {
46
46
  this.log(JSON.stringify(response, null, 2));
47
47
  return;
48
48
  }
49
- (0, commitment_ledgers_1.renderActionHistory)(response, (line) => this.log(line));
49
+ (0, duty_ledgers_1.renderActionHistory)(response, (line) => this.log(line));
50
50
  }
51
51
  }
52
- exports.default = CommitmentsActionHistory;
52
+ exports.default = DutiesActionHistory;
@@ -1,9 +1,9 @@
1
1
  import { BaseCommand } from '../../base-command';
2
2
  /** Read the exact Action Bundle execution receipt before any retry. */
3
- export default class CommitmentsActionProposal extends BaseCommand {
3
+ export default class DutiesActionProposal extends BaseCommand {
4
4
  static description: string;
5
5
  static args: {
6
- commitmentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
+ dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
7
  proposalId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
8
8
  };
9
9
  static flags: {