@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
@@ -33,7 +33,7 @@ const REF_KINDS = {
33
33
  space: (id) => ({ kind: 'space', spaceId: id }),
34
34
  task: (id) => ({ kind: 'task', taskId: id }),
35
35
  goal: (id) => ({ kind: 'goal', goalId: id }),
36
- commitment: (id) => ({ kind: 'commitment', commitmentId: id }),
36
+ duty: (id) => ({ kind: 'duty', dutyId: id }),
37
37
  northstar: (id) => ({ kind: 'northstar', northstarId: id }),
38
38
  // The owner's workspace for an agent you hold. To open a published agent's
39
39
  // public page — the address you hand to someone else — use `listing:`.
@@ -15,16 +15,16 @@ exports.capabilityStatusLabel = capabilityStatusLabel;
15
15
  /** What a refused event-source code means, in words. An unknown code is printed as it is. */
16
16
  const SOURCE_REFUSAL_WORDS = {
17
17
  source_authorization_descriptor_invalid: 'authorization record incomplete (it names no id to check access against)',
18
- source_binding_detached: 'no longer matches a source attached to this Commitment',
18
+ source_binding_detached: 'no longer matches a source attached to this Duty',
19
19
  source_access_revoked: 'access refused',
20
20
  source_access_unavailable: 'access could not be checked just now',
21
21
  };
22
22
  /** What an attached Sensor's refusal means, in words (OSK-22592, OSK-22593). */
23
23
  const SENSOR_REFUSAL_WORDS = {
24
- sensor_not_found: 'no longer exists, so this Commitment cannot see events from it. Attach a working sensor or remove the reference',
24
+ sensor_not_found: 'no longer exists, so this Duty cannot see events from it. Attach a working sensor or remove the reference',
25
25
  sensor_disabled: 'is disabled, so it delivers nothing. Enable it or remove the reference',
26
- sensor_not_observer: 'is not an observing sensor, so it cannot wake this Commitment',
27
- sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this Commitment',
26
+ sensor_not_observer: 'is not an observing sensor, so it cannot wake this Duty',
27
+ sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this Duty',
28
28
  };
29
29
  /** One sentence per attached Sensor that is not delivering, or null when it is. */
30
30
  function sensorLine(row) {
@@ -74,7 +74,7 @@ function gateExplanationLines(gate) {
74
74
  switch (gate.reason) {
75
75
  case 'evidence_unconfigured':
76
76
  return [
77
- 'No freshness expectation is set, so nothing will flag this Commitment’s evidence as stale or silent.',
77
+ 'No freshness expectation is set, so nothing will flag this Duty’s evidence as stale or silent.',
78
78
  ];
79
79
  case 'evidence_stale': {
80
80
  const criteria = Array.isArray(gate.detail?.criteria)
@@ -48,7 +48,7 @@ export interface ProactiveAgentSpec {
48
48
  mode: OrchestratorMode;
49
49
  executePlan: boolean;
50
50
  };
51
- commitments?: Array<Record<string, unknown>>;
51
+ duties?: Array<Record<string, unknown>>;
52
52
  initialize?: {
53
53
  goals?: Array<{
54
54
  title: string;
@@ -146,7 +146,7 @@ export interface InstallPreviewResponse {
146
146
  without: string[];
147
147
  };
148
148
  runtime: {
149
- commitments: 'can_run' | 'cannot_run' | 'unknown';
149
+ duties: 'can_run' | 'cannot_run' | 'unknown';
150
150
  };
151
151
  }
152
152
  /** The defaults `--without` can decline; the server refuses any other name. */
@@ -203,6 +203,17 @@ export interface ApplyProactiveAgentResponse {
203
203
  triggerId: string | null;
204
204
  enabled: boolean | null;
205
205
  reason?: string;
206
+ /** The existing watcher kept a mode other than the one the spec asked for (OSK-22695). */
207
+ modeKept?: {
208
+ existing: {
209
+ mode: string;
210
+ executePlan: boolean;
211
+ };
212
+ requested: {
213
+ mode: string;
214
+ executePlan: boolean;
215
+ };
216
+ };
206
217
  }>;
207
218
  };
208
219
  defaultWatchers?: Array<{
@@ -212,7 +223,7 @@ export interface ApplyProactiveAgentResponse {
212
223
  enabled?: boolean | null;
213
224
  code?: string;
214
225
  }>;
215
- commitments?: Array<{
226
+ duties?: Array<{
216
227
  id: string;
217
228
  title?: string;
218
229
  status?: string;
@@ -238,7 +249,7 @@ export interface ApplyProactiveAgentResponse {
238
249
  enabled: boolean;
239
250
  origin: 'requested' | 'default';
240
251
  }> | null;
241
- commitments: Array<{
252
+ duties: Array<{
242
253
  id: string;
243
254
  title: string | null;
244
255
  status: string | null;
@@ -69,7 +69,7 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
69
69
  /* --------------------------------------------------------------------------
70
70
  * A Northstar intent, in words
71
71
  *
72
- * `proposals list` showed the intent's TITLE as its kind code (`pause_commitment`),
72
+ * `proposals list` showed the intent's TITLE as its kind code (`pause_duty`),
73
73
  * `proposals show` printed the raw JSON, `rejected` read as `discarded` (the inbox's
74
74
  * own vocabulary, which says a person discarded something), and the sentence the
75
75
  * governor wrote lived only inside the JSON. Everything below renders fields the
@@ -77,13 +77,13 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
77
77
  * ------------------------------------------------------------------------ */
78
78
  /** What each kind of intent does, as a phrase a target can follow. A new kind fails the build. */
79
79
  const INTENT_PHRASE = {
80
- pause_commitment: 'Pause',
81
- resume_commitment: 'Resume',
82
- reprioritize_commitment: 'Reprioritize',
83
- request_commitment_check: 'Check now:',
80
+ pause_duty: 'Pause',
81
+ resume_duty: 'Resume',
82
+ reprioritize_duty: 'Reprioritize',
83
+ request_duty_check: 'Check now:',
84
84
  set_execution_bounds: 'Change the run bounds of',
85
- create_commitment_proposal: 'Start a new commitment',
86
- reassign_commitment_proposal: 'Reassign',
85
+ create_duty_proposal: 'Start a new duty',
86
+ reassign_duty_proposal: 'Reassign',
87
87
  };
88
88
  /** The intent's own verdict, which the inbox flattens into proposed/kept/discarded/expired. */
89
89
  const VERDICT_WORDS = {
@@ -99,10 +99,10 @@ function isNorthstarIntentView(view) {
99
99
  return view.kind === 'northstar_intent' && Boolean(view.decisionContext?.snapshot);
100
100
  }
101
101
  function intentTarget(view) {
102
- const id = view.decisionContext?.snapshot.targetCommitmentId ?? view.commitmentId;
103
- if (view.commitmentTitle)
104
- return id ? `${view.commitmentTitle} (${id})` : view.commitmentTitle;
105
- return id ?? 'a commitment';
102
+ const id = view.decisionContext?.snapshot.targetDutyId ?? view.dutyId;
103
+ if (view.dutyTitle)
104
+ return id ? `${view.dutyTitle} (${id})` : view.dutyTitle;
105
+ return id ?? 'a duty';
106
106
  }
107
107
  /**
108
108
  * The intent's title in words: what it would DO, to what. Any other kind of proposal, and an
@@ -113,11 +113,11 @@ function proposalTitleFor(view) {
113
113
  return view.title;
114
114
  const snapshot = view.decisionContext.snapshot;
115
115
  const phrase = INTENT_PHRASE[snapshot.kind] ?? snapshot.kind;
116
- if (snapshot.kind === 'create_commitment_proposal') {
116
+ if (snapshot.kind === 'create_duty_proposal') {
117
117
  const title = snapshot.payload?.title;
118
118
  return typeof title === 'string' && title.trim() ? `${phrase}: ${title.trim()}` : phrase;
119
119
  }
120
- if (snapshot.kind === 'reassign_commitment_proposal') {
120
+ if (snapshot.kind === 'reassign_duty_proposal') {
121
121
  const agent = snapshot.payload?.agentId;
122
122
  const to = typeof agent === 'string' && agent ? ` to agent ${agent}` : '';
123
123
  return `${phrase} ${intentTarget(view)}${to}`;
@@ -155,14 +155,14 @@ function renderNorthstarIntentView(view) {
155
155
  const verdict = view.sourceStatus;
156
156
  // The intent's own rating (`intentRisk`), the one `northstars intents list` prints under RISK.
157
157
  const risk = (0, northstars_1.intentRisk)({ riskLevel: context.riskLevel ?? context.snapshot.riskLevel });
158
- const hasTarget = Boolean(context.snapshot.targetCommitmentId || view.commitmentId);
158
+ const hasTarget = Boolean(context.snapshot.targetDutyId || view.dutyId);
159
159
  const lines = [proposalTitleFor(view), ''];
160
160
  lines.push(`Proposal ${view.id}`);
161
161
  lines.push(`Kind ${context.snapshot.kind}`);
162
162
  // Said once, here, because this is where a person who saw a lower "recommendation risk" on the
163
163
  // recommendation this came from looks for the reason the two differ.
164
164
  lines.push(`Risk ${risk} (rated for this change; the recommendation behind it has its own "recommendation risk")`);
165
- lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new commitment)'}`);
165
+ lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new duty)'}`);
166
166
  if (context.reason)
167
167
  lines.push(`Why ${context.reason}`);
168
168
  lines.push(`Status ${VERDICT_WORDS[verdict] ?? verdict} (the inbox files it under "${view.disposition}")`);
@@ -193,7 +193,7 @@ function renderNorthstarIntentView(view) {
193
193
  }
194
194
  const continuation = view.continuation;
195
195
  if (continuation) {
196
- const bits = [continuation.status, continuation.commitmentId, continuation.reason].filter(Boolean);
196
+ const bits = [continuation.status, continuation.dutyId, continuation.reason].filter(Boolean);
197
197
  lines.push(`Continued ${bits.join(' · ')}`);
198
198
  }
199
199
  lines.push(`Revision ${JSON.stringify(view.revision)}`);
@@ -5,7 +5,7 @@ export declare const RESPONSIBILITY_CONTROL_SCOPES: readonly ["mute_updates", "p
5
5
  * Presentation and authority fields cannot become request fields. The canonical
6
6
  * service validates every attempt pin and rejects stale or enlarged selections.
7
7
  */
8
- export declare function controlFromPreview(commitmentId: string, preview: Record<string, unknown>, idempotencyKey: string, reason?: string): Record<string, unknown>;
8
+ export declare function controlFromPreview(dutyId: string, preview: Record<string, unknown>, idempotencyKey: string, reason?: string): Record<string, unknown>;
9
9
  export declare function renderControl(value: Record<string, unknown>, log: (line: string) => void): void;
10
10
  export declare function renderReadiness(value: Record<string, unknown>, log: (line: string) => void): void;
11
11
  export declare function renderProbe(value: Record<string, unknown>, log: (line: string) => void): void;
@@ -17,9 +17,9 @@ function record(value) {
17
17
  * Presentation and authority fields cannot become request fields. The canonical
18
18
  * service validates every attempt pin and rejects stale or enlarged selections.
19
19
  */
20
- function controlFromPreview(commitmentId, preview, idempotencyKey, reason) {
21
- if (preview.schemaVersion !== 1 || preview.commitmentId !== commitmentId) {
22
- throw new Error('Use a control preview for this exact Commitment.');
20
+ function controlFromPreview(dutyId, preview, idempotencyKey, reason) {
21
+ if (preview.schemaVersion !== 1 || preview.dutyId !== dutyId) {
22
+ throw new Error('Use a control preview for this exact Duty.');
23
23
  }
24
24
  if (preview.available !== true)
25
25
  throw new Error('The reviewed control is unavailable; refresh its preview.');
@@ -28,7 +28,7 @@ function controlFromPreview(commitmentId, preview, idempotencyKey, reason) {
28
28
  }
29
29
  if (typeof preview.expectedVersion !== 'number' || !Number.isSafeInteger(preview.expectedVersion)
30
30
  || preview.expectedVersion < 1)
31
- throw new Error('The preview must pin its Commitment version.');
31
+ throw new Error('The preview must pin its Duty version.');
32
32
  if (!idempotencyKey.trim() || idempotencyKey.length > 200)
33
33
  throw new Error('Use an idempotency key of 1..200 characters.');
34
34
  if (reason !== undefined && reason.length > 1000)
@@ -69,7 +69,7 @@ function renderControl(value, log) {
69
69
  if (value.controlId)
70
70
  log(`Control receipt: ${value.controlId}`);
71
71
  if (value.expectedVersion !== undefined)
72
- log(`Commitment version: ${value.expectedVersion}`);
72
+ log(`Duty version: ${value.expectedVersion}`);
73
73
  if (value.unavailableReason)
74
74
  log(`Reason: ${value.unavailableReason}`);
75
75
  for (const key of ['affected', 'remaining']) {
@@ -86,7 +86,7 @@ function renderControl(value, log) {
86
86
  log(String(warning));
87
87
  }
88
88
  function renderReadiness(value, log) {
89
- const activation = value.object === 'commitment_readiness_activation_receipt';
89
+ const activation = value.object === 'duty_readiness_activation_receipt';
90
90
  log(`${activation ? 'Activation' : 'Readiness'} receipt: ${value.id ?? 'not recorded'}`);
91
91
  if (activation) {
92
92
  log(`Validated version: ${value.validatedVersion ?? 'unknown'}`);
@@ -218,7 +218,7 @@ export declare const roleApi: {
218
218
  key: string;
219
219
  title: string;
220
220
  compassId?: string;
221
- commitmentIds: string[];
221
+ dutyIds: string[];
222
222
  }) => Promise<{
223
223
  spec: RoleOperatingSpec;
224
224
  omitted: Array<{
@@ -7,11 +7,11 @@ export interface TodoTaskRef {
7
7
  statusSnapshot: string;
8
8
  }
9
9
  /**
10
- * A direct Commitment block (Smart Schedule only). The server revalidates it at
10
+ * A direct Duty block (Smart Schedule only). The server revalidates it at
11
11
  * approval, so the CLI carries the draft's reference through untouched.
12
12
  */
13
- export interface TodoCommitmentRef {
14
- commitmentId: string;
13
+ export interface TodoDutyRef {
14
+ dutyId: string;
15
15
  titleSnapshot?: string;
16
16
  kindSnapshot?: string;
17
17
  versionSnapshot: number;
@@ -68,7 +68,7 @@ export interface ProposedTodo {
68
68
  confidence?: TodoConfidence;
69
69
  dropped?: boolean;
70
70
  taskRefs?: TodoTaskRef[];
71
- commitmentRefs?: TodoCommitmentRef[];
71
+ dutyRefs?: TodoDutyRef[];
72
72
  }
73
73
  /**
74
74
  * A block from the previously approved plan that approving this draft cancels
@@ -189,7 +189,7 @@ export interface ApproveTodoInput {
189
189
  timezone?: string;
190
190
  durationMinutes?: number;
191
191
  taskRefs?: TodoTaskRef[];
192
- commitmentRefs?: TodoCommitmentRef[];
192
+ dutyRefs?: TodoDutyRef[];
193
193
  rationale?: string;
194
194
  confidence?: TodoConfidence;
195
195
  }
@@ -556,7 +556,7 @@ function proposalToApproveTodos(proposal) {
556
556
  // The draft's references are part of what the reviewer approved. Leaving
557
557
  // them out makes the server create an unlinked To-Do (OSK-22413).
558
558
  ...(t.taskRefs ? { taskRefs: t.taskRefs } : {}),
559
- ...(t.commitmentRefs ? { commitmentRefs: t.commitmentRefs } : {}),
559
+ ...(t.dutyRefs ? { dutyRefs: t.dutyRefs } : {}),
560
560
  rationale: t.rationale,
561
561
  confidence: t.confidence,
562
562
  }));
@@ -1,7 +1,7 @@
1
1
  import type { SessionTaskOperation } from './session-task-endpoints';
2
2
  /**
3
3
  * The server's refusal when a session's run carries no Task at all — a
4
- * Commitment, Routine or other autonomous run that is not a Task run. It is
4
+ * Duty, Routine or other autonomous run that is not a Task run. It is
5
5
  * the ONE refusal that means "the session-scoped route does not apply here",
6
6
  * not "you may not write": such a run legitimately writes the Tasks it created
7
7
  * or was handed, through the generic `/api/tasks/:id/*` routes, where
@@ -8,7 +8,7 @@ const credential_resolver_1 = require("./credential-resolver");
8
8
  const session_task_endpoints_1 = require("./session-task-endpoints");
9
9
  /**
10
10
  * The server's refusal when a session's run carries no Task at all — a
11
- * Commitment, Routine or other autonomous run that is not a Task run. It is
11
+ * Duty, Routine or other autonomous run that is not a Task run. It is
12
12
  * the ONE refusal that means "the session-scoped route does not apply here",
13
13
  * not "you may not write": such a run legitimately writes the Tasks it created
14
14
  * or was handed, through the generic `/api/tasks/:id/*` routes, where
@@ -67,7 +67,7 @@ async function sessionTaskWrite(operation, requestedTask, env = process.env) {
67
67
  code: 'SESSION_TASK_CREDENTIAL_MISSING',
68
68
  });
69
69
  }
70
- // A run with no bound Task (e.g. a Commitment run) has no session-scoped
70
+ // A run with no bound Task (e.g. a Duty run) has no session-scoped
71
71
  // Task surface; its writes take the generic routes (OSK-16124).
72
72
  if (sessionsWithoutBoundTask.has(sessionId))
73
73
  return null;
@@ -5,7 +5,7 @@ exports.applyLines = applyLines;
5
5
  const space_notebook_1 = require("./space-notebook");
6
6
  const SHAPE_WORD = {
7
7
  space_loop: "the Space's loop",
8
- member_automation: "its owner's own Commitment, delivering into the Space",
8
+ member_automation: "its owner's own Duty, delivering into the Space",
9
9
  };
10
10
  const OUTCOME_WORD = {
11
11
  handed_over: 'handed over',
@@ -31,7 +31,7 @@ function convertLines(entry) {
31
31
  lines.push(` becomes ${SHAPE_WORD[target.shape] || target.shape}: owned by user ${target.ownerUserId}, held by agent ${target.agentId}`);
32
32
  }
33
33
  if (entry.pointer) {
34
- lines.push(` loop ${entry.pointer.commitmentId} (${entry.pointer.loopStatus || 'unknown'}); the entry keeps firing until it is active`);
34
+ lines.push(` loop ${entry.pointer.dutyId} (${entry.pointer.loopStatus || 'unknown'}); the entry keeps firing until it is active`);
35
35
  }
36
36
  const cadence = entry.cadence;
37
37
  if (cadence) {
@@ -54,8 +54,8 @@ function planLines(plan, { binName = 'skrr' } = {}) {
54
54
  const lines = [
55
55
  `Converting ${plan.sourceLabel} entries of space ${plan.spaceId} into Space loops`,
56
56
  plan.executionPrincipal
57
- ? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own Commitments.`
58
- : "This Space has no active execution principal, so every entry becomes its owner's own Commitment.",
57
+ ? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own Duties.`
58
+ : "This Space has no active execution principal, so every entry becomes its owner's own Duty.",
59
59
  ];
60
60
  if (plan.entryScope === 'owner') {
61
61
  lines.push(`A ${plan.sourceLabel} is private to its member: this plan lists only yours, and each member converts their own.`);
@@ -79,7 +79,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
79
79
  }
80
80
  else if (entry.disposition === 'handed_over') {
81
81
  const status = entry.pointer?.loopStatus;
82
- lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.commitmentId} (${status || 'unknown'})${status && status !== 'active' && status !== 'paused'
82
+ lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.dutyId} (${status || 'unknown'})${status && status !== 'active' && status !== 'paused'
83
83
  ? '. A retired entry stays retired; make a new loop or heartbeat to bring the turn back.'
84
84
  : ''}`);
85
85
  }
@@ -112,7 +112,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
112
112
  function applyLines(response) {
113
113
  const lines = response.results.map((result) => {
114
114
  const word = OUTCOME_WORD[result.outcome] || result.outcome;
115
- const loop = result.commitmentId ? ` -> loop ${result.commitmentId}` : '';
115
+ const loop = result.dutyId ? ` -> loop ${result.dutyId}` : '';
116
116
  const code = result.code ? ` (${result.code})` : '';
117
117
  const detail = result.detail ? `: ${(0, space_notebook_1.oneLine)(result.detail, 240)}` : '';
118
118
  return `${result.entryId} ${word}${loop}${code}${detail}`;
@@ -56,9 +56,9 @@ const LINK_WORD = {
56
56
  };
57
57
  const VISIBILITY_WORD = {
58
58
  space_access: 'shared with the Space',
59
- commitment_access: 'only for people who can open the Commitment',
59
+ duty_access: 'only for people who can open the Duty',
60
60
  };
61
- /** Which Commitment a loop row came from, and who may see the row. */
61
+ /** Which Duty a loop row came from, and who may see the row. */
62
62
  function loopLine(row) {
63
63
  const link = LINK_WORD[row.loop.link] || row.loop.link;
64
64
  const seen = VISIBILITY_WORD[row.visibility] || row.visibility;
@@ -88,8 +88,8 @@ function spaceWritePendingLines(body, { binName }) {
88
88
  body.message,
89
89
  `Approval bundle: ${proposal.id} (item ${proposal.itemId})`,
90
90
  ];
91
- if (proposal.commitmentId) {
92
- lines.push(`Review it: ${binName} commitments action-proposals ${proposal.commitmentId}`);
91
+ if (proposal.dutyId) {
92
+ lines.push(`Review it: ${binName} duties action-proposals ${proposal.dutyId}`);
93
93
  }
94
94
  if (proposal.expiresAt)
95
95
  lines.push(`Expires: ${proposal.expiresAt}`);
@@ -38,7 +38,7 @@ function printStewardshipCoverage(report, log) {
38
38
  if (source.unlisted) {
39
39
  // A capped count is a lower bound; say so rather than print 200 as exact.
40
40
  const count = `${source.truncated ? 'at least ' : ''}${source.unlisted}`;
41
- log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or Commitment in this workspace carry no workspace stamp, so they are not listed here. Their owners can see them with \`skrr grants list\`.`);
41
+ log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or Duty in this workspace carry no workspace stamp, so they are not listed here. Their owners can see them with \`skrr grants list\`.`);
42
42
  }
43
43
  }
44
44
  }
@@ -106,7 +106,7 @@ function printWorkspaceStewardship(report, log) {
106
106
  ? `${rows.length} shown, cut at the row cap (there are more)`
107
107
  : String(rows.length);
108
108
  for (const [name, source, rows] of [
109
- ['Commitments', 'commitments', report.commitments],
109
+ ['Duties', 'duties', report.duties],
110
110
  ['Approver seats', 'approverSeats', report.approverSeats],
111
111
  ]) {
112
112
  log(`${name}: ${count(rows, source)}`);
@@ -5,7 +5,7 @@ exports.verifyTaskSpecifications = verifyTaskSpecifications;
5
5
  const node_util_1 = require("node:util");
6
6
  const data_provider_1 = require("@skrr-ai/data-provider");
7
7
  const FIELDS = [
8
- 'title', 'status', 'priority', 'estimate', 'commitmentId', 'spaceId', 'goalId', 'projectId', 'parentId',
8
+ 'title', 'status', 'priority', 'estimate', 'dutyId', 'spaceId', 'goalId', 'projectId', 'parentId',
9
9
  'externalKey', 'executionMode', 'reviewPolicy', 'assigneeAgentIds',
10
10
  'assigneeUserIds', 'labelIds', 'tags', 'workingDirectory', 'executionIsolation',
11
11
  'startDate', 'dueDate', 'expectations', 'blocksIds', 'blockedByIds',
@@ -87,7 +87,7 @@ export type TaskCreateFlagValues = {
87
87
  parent?: string;
88
88
  space?: string;
89
89
  goal?: string;
90
- commitment?: string;
90
+ duty?: string;
91
91
  project?: string;
92
92
  cycle?: string;
93
93
  'source-conversation'?: string;
package/dist/lib/tasks.js CHANGED
@@ -319,7 +319,7 @@ function normalizeTaskCreateJsonAliases(body) {
319
319
  ['parent', 'parentId'],
320
320
  ['space', 'spaceId'],
321
321
  ['goal', 'goalId'],
322
- ['commitment', 'commitmentId'],
322
+ ['duty', 'dutyId'],
323
323
  ['project', 'projectId'],
324
324
  ['cycle', 'cycleId'],
325
325
  ['spawnedBy', 'spawnedByTaskId'],
@@ -361,7 +361,7 @@ function buildTaskCreatePayload(body, flags = {}) {
361
361
  parentId: flags.parent,
362
362
  spaceId: flags.space,
363
363
  goalId: flags.goal,
364
- commitmentId: flags.commitment,
364
+ dutyId: flags.duty,
365
365
  projectId: flags.project,
366
366
  cycleId: flags.cycle,
367
367
  assigneeAgentIds: flags['assignee-agent'],
@@ -417,13 +417,13 @@ function applyDaemonSessionDefaults(payload) {
417
417
  if (spaceId)
418
418
  payload.spaceId = spaceId;
419
419
  }
420
- // A commitment-owned agent run can create work that does not belong to a
420
+ // A duty-owned agent run can create work that does not belong to a
421
421
  // Goal. Preserve that durable ownership edge so later checks can observe the
422
422
  // task rather than inferring it from its title, creator, or GitHub SHA.
423
- if (!Object.prototype.hasOwnProperty.call(payload, 'commitmentId')) {
424
- const commitmentId = envFirst('OVERSKY_SESSION_COMMITMENT_ID', 'OVERSKY_COMMITMENT_ID');
425
- if (commitmentId)
426
- payload.commitmentId = commitmentId;
423
+ if (!Object.prototype.hasOwnProperty.call(payload, 'dutyId')) {
424
+ const dutyId = envFirst('OVERSKY_SESSION_DUTY_ID', 'OVERSKY_DUTY_ID');
425
+ if (dutyId)
426
+ payload.dutyId = dutyId;
427
427
  }
428
428
  if (!Object.prototype.hasOwnProperty.call(payload, 'sourceConversationId')) {
429
429
  const conversationId = envFirst('OVERSKY_SESSION_CONVERSATION_ID', 'OVERSKY_CONVERSATION_ID');
@@ -482,7 +482,7 @@ function validateTaskCreatePayload(payload) {
482
482
  for (const field of [
483
483
  'parentId',
484
484
  'goalId',
485
- 'commitmentId',
485
+ 'dutyId',
486
486
  'spaceId',
487
487
  'sourceConversationId',
488
488
  'sourceMessageId',
@@ -3,10 +3,10 @@ export declare const TRIGGER_KINDS: readonly ["schedule", "once", "event", "stoc
3
3
  /**
4
4
  * The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
5
5
  * (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
6
- * lacked `commitment_watcher` and `space_cycle`, so `triggers list --scope commitment_watcher` was refused locally
6
+ * lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
7
7
  * for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
8
8
  */
9
- export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "commitment_watcher", "entity_reminder", "space_cycle"];
9
+ export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "duty_watcher", "entity_reminder", "space_cycle"];
10
10
  /**
11
11
  * Executor modes this CLI will let you author.
12
12
  *
@@ -177,7 +177,7 @@ export interface TriggerDefinition {
177
177
  * the loop is active; `retired`: replaced by the loop, read-only, does not run.
178
178
  */
179
179
  supersededBy?: {
180
- commitmentId?: string;
180
+ dutyId?: string;
181
181
  state?: string;
182
182
  recordedAt?: string;
183
183
  retiredAt?: string;
@@ -81,6 +81,7 @@ const http_error_1 = require("./http-error");
81
81
  const format_1 = require("./format");
82
82
  const planOutcome_1 = require("./planOutcome");
83
83
  const failedRunCause_1 = require("./failedRunCause");
84
+ const LAST_RESULT_LABEL_RE = /^(outside_working_hours|inside_quiet_hours)(?::\1)?$/;
84
85
  const PARSE_JSON_ARRAY_RE = /^[[{]/;
85
86
  const ARMED_STATE_LABEL_RE = /^skipped:(.+)$/;
86
87
  const WEBHOOK_INGEST_URL_RE = /\/+$/;
@@ -97,7 +98,7 @@ exports.TRIGGER_KINDS = [
97
98
  /**
98
99
  * The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
99
100
  * (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
100
- * lacked `commitment_watcher` and `space_cycle`, so `triggers list --scope commitment_watcher` was refused locally
101
+ * lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
101
102
  * for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
102
103
  */
103
104
  exports.TRIGGER_SCOPE_KINDS = data_provider_1.TRIGGER_API_SCOPE_KINDS;
@@ -378,8 +379,8 @@ const SCOPE_EXPECTED_REF_KEYS = {
378
379
  task_watcher: ['taskId', 'watcherAgentId'],
379
380
  key_result_watcher: ['keyResultId', 'watcherAgentId'],
380
381
  space_subscriber: ['spaceId', 'agentId', 'subscriberUserId'],
381
- // `commitmentId` is the one the resolver requires; it also reads optional agentId/goalId/spaceId/... refs.
382
- commitment_watcher: ['commitmentId'],
382
+ // `dutyId` is the one the resolver requires; it also reads optional agentId/goalId/spaceId/... refs.
383
+ duty_watcher: ['dutyId'],
383
384
  };
384
385
  function parseKeyValueFlags(values, flagName, scopeKind) {
385
386
  const refs = {};
@@ -1512,7 +1513,7 @@ windowVerdict) {
1512
1513
  }
1513
1514
  // "Will fire" is the row's intent. A platform-managed row whose owner is fenced (Always-On off) ticks on
1514
1515
  // schedule and is skipped every time, and the same screen's `Fires:` line says so; the first line a reader
1515
- // meets must not say the opposite (dogfood df-261031-commitment-authoring, OSK-21103).
1516
+ // meets must not say the opposite (dogfood df-261031-duty-authoring, OSK-21103).
1516
1517
  const skipped = typeof lastResult === 'string' ? ARMED_STATE_LABEL_RE.exec(lastResult) : null;
1517
1518
  return skipped
1518
1519
  ? `yes — but its last tick was skipped (${skipped[1]}), so it did not run`
@@ -1643,8 +1644,8 @@ function debounceSpan(ms) {
1643
1644
  function debounceSummaryLine(trigger) {
1644
1645
  if (trigger.kind !== 'event')
1645
1646
  return undefined;
1646
- // A Commitment wake coalesces in the wake ledger; TriggerEngine never debounces those fires.
1647
- if (trigger.scope?.kind === 'commitment_watcher' || trigger.execution?.mode === 'commitment_reflection') {
1647
+ // A Duty wake coalesces in the wake ledger; TriggerEngine never debounces those fires.
1648
+ if (trigger.scope?.kind === 'duty_watcher' || trigger.execution?.mode === 'duty_reflection') {
1648
1649
  return undefined;
1649
1650
  }
1650
1651
  const ms = trigger.event?.debounceMs;
@@ -1773,10 +1774,10 @@ function renderTriggerSummary(trigger, log, options = {}) {
1773
1774
  }
1774
1775
  // A trigger converted into a Space loop is read-only, and says where its turn went.
1775
1776
  const loop = trigger.supersededBy;
1776
- if (loop?.commitmentId) {
1777
+ if (loop?.dutyId) {
1777
1778
  log(loop.state === 'retired'
1778
- ? `Loop: replaced by Space loop ${loop.commitmentId}; read-only and does not run (skrr commitments show ${loop.commitmentId})`
1779
- : `Loop: being converted into Space loop ${loop.commitmentId}; read-only, and keeps firing until the loop is active`);
1779
+ ? `Loop: replaced by Space loop ${loop.dutyId}; read-only and does not run (skrr duties show ${loop.dutyId})`
1780
+ : `Loop: being converted into Space loop ${loop.dutyId}; read-only, and keeps firing until the loop is active`);
1780
1781
  }
1781
1782
  if (trigger.label)
1782
1783
  log(`Label: ${trigger.label}`);
@@ -1996,7 +1997,7 @@ function lastResultLabel(trigger) {
1996
1997
  const last = trigger.audit?.lastResult;
1997
1998
  if (typeof last !== 'string' || !last)
1998
1999
  return undefined;
1999
- const code = /^(outside_working_hours|inside_quiet_hours)(?::\1)?$/.exec(last)?.[1];
2000
+ const code = LAST_RESULT_LABEL_RE.exec(last)?.[1];
2000
2001
  if (!code)
2001
2002
  return last;
2002
2003
  const summary = clockSkipAuditExplanation({
@@ -10,6 +10,7 @@ exports.renderUsageOverview = renderUsageOverview;
10
10
  exports.renderUsageReference = renderUsageReference;
11
11
  exports.auditUsageBudgets = auditUsageBudgets;
12
12
  const command_manifest_1 = require("./command-manifest");
13
+ const EXAMPLE_FOR_RE = /<%=\s*config\.bin\s*%>/g;
13
14
  const COMPACT_RE = /\s+/g;
14
15
  /**
15
16
  * `skrr commands --json` is intentionally exhaustive. That makes it the right
@@ -230,10 +231,7 @@ function usageCommand(entry, bin) {
230
231
  };
231
232
  }
232
233
  function exampleFor(entry, bin) {
233
- const raw = entry.examples[0]
234
- ?.replace(/<%=\s*config\.bin\s*%>/g, bin)
235
- .split('#')[0]
236
- .trim();
234
+ const raw = entry.examples[0]?.replace(EXAMPLE_FOR_RE, bin).split('#')[0].trim();
237
235
  return compact(raw || `${bin} ${entry.command}`, 96);
238
236
  }
239
237
  function compact(value, maxCharacters) {
@@ -37,8 +37,8 @@ export type WebUrlRef = {
37
37
  goalId: string;
38
38
  spaceId?: string | null;
39
39
  } | {
40
- kind: 'commitment';
41
- commitmentId: string;
40
+ kind: 'duty';
41
+ dutyId: string;
42
42
  } | {
43
43
  kind: 'northstar';
44
44
  northstarId: string;
@@ -141,8 +141,8 @@ export declare function conversationUrlFrom(baseURL: string, conversation: Entit
141
141
  export declare function groupChatUrlFrom(baseURL: string, chat: EntityRecord): string | null;
142
142
  /** Build a goal URL from a raw server goal record. */
143
143
  export declare function goalUrlFrom(baseURL: string, goal: EntityRecord): string | null;
144
- /** Build a commitment URL from a raw server commitment record. */
145
- export declare function commitmentUrlFrom(baseURL: string, commitment: EntityRecord): string | null;
144
+ /** Build a duty URL from a raw server duty record. */
145
+ export declare function dutyUrlFrom(baseURL: string, duty: EntityRecord): string | null;
146
146
  /** Build a Northstar detail URL from a raw server Northstar record. */
147
147
  export declare function northstarUrlFrom(baseURL: string, northstar: EntityRecord): string | null;
148
148
  /** Build an agent detail URL from a raw server agent record. */
@@ -186,8 +186,8 @@ export declare function wikiPageUrlFrom(baseURL: string, page: EntityRecord): st
186
186
  export declare function withWikiPageUrl<T extends EntityRecord>(baseURL: string, page: T): T & {
187
187
  url: string | null;
188
188
  };
189
- /** Return a shallow copy of a commitment record with a `url` field attached. */
190
- export declare function withCommitmentUrl<T extends EntityRecord>(baseURL: string, commitment: T): T & {
189
+ /** Return a shallow copy of a duty record with a `url` field attached. */
190
+ export declare function withDutyUrl<T extends EntityRecord>(baseURL: string, duty: T): T & {
191
191
  url: string | null;
192
192
  };
193
193
  /** Return a shallow copy of a Northstar record with a canonical web URL. */