@skrr-ai/cli 0.1.150 → 0.1.152

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 (429) 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/chat.d.ts +3 -0
  11. package/dist/commands/agents/chat.js +27 -0
  12. package/dist/commands/agents/create.d.ts +2 -2
  13. package/dist/commands/agents/create.js +12 -12
  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/plan-day.d.ts +3 -0
  18. package/dist/commands/agents/plan-day.js +31 -8
  19. package/dist/commands/agents/roles/capture.d.ts +1 -1
  20. package/dist/commands/agents/roles/capture.js +2 -2
  21. package/dist/commands/agents/roles/install.js +1 -1
  22. package/dist/commands/agents/show.d.ts +3 -0
  23. package/dist/commands/agents/show.js +59 -3
  24. package/dist/commands/agents/spawn.js +38 -38
  25. package/dist/commands/agents/triggers/list.js +2 -1
  26. package/dist/commands/agents/update.d.ts +1 -1
  27. package/dist/commands/agents/update.js +3 -3
  28. package/dist/commands/balance/usage/breakdown.d.ts +1 -1
  29. package/dist/commands/balance/usage/breakdown.js +22 -6
  30. package/dist/commands/balance/usage/events.d.ts +3 -2
  31. package/dist/commands/balance/usage/events.js +34 -7
  32. package/dist/commands/code/jobs/show.js +1 -1
  33. package/dist/commands/compass/archive.d.ts +1 -1
  34. package/dist/commands/compass/archive.js +1 -1
  35. package/dist/commands/compass/create.js +1 -1
  36. package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
  37. package/dist/commands/compass/{commitments.js → duties.js} +14 -14
  38. package/dist/commands/compass/trace.d.ts +1 -1
  39. package/dist/commands/compass/trace.js +2 -2
  40. package/dist/commands/convos/messages.js +2 -1
  41. package/dist/commands/doctor.d.ts +1 -1
  42. package/dist/commands/doctor.js +1 -1
  43. package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
  44. package/dist/commands/{commitments → duties}/accounting.js +13 -13
  45. package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
  46. package/dist/commands/{commitments → duties}/action-history.js +12 -12
  47. package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
  48. package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
  49. package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
  50. package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
  51. package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
  52. package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
  53. package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
  54. package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
  55. package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
  56. package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
  57. package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
  58. package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
  59. package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
  60. package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
  61. package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
  62. package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
  63. package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
  64. package/dist/commands/{commitments → duties}/attach.js +21 -21
  65. package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
  66. package/dist/commands/{commitments → duties}/bundle.js +7 -7
  67. package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
  68. package/dist/commands/duties/cadence-decisions.js +41 -0
  69. package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
  70. package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
  71. package/dist/commands/{commitments → duties}/case.d.ts +2 -2
  72. package/dist/commands/{commitments → duties}/case.js +8 -8
  73. package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
  74. package/dist/commands/{commitments → duties}/cases.js +9 -9
  75. package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
  76. package/dist/commands/{commitments → duties}/check-now.js +29 -29
  77. package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
  78. package/dist/commands/{commitments → duties}/checks.js +13 -13
  79. package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
  80. package/dist/commands/duties/complete.js +40 -0
  81. package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
  82. package/dist/commands/{commitments → duties}/control/apply.js +7 -7
  83. package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
  84. package/dist/commands/{commitments → duties}/control/preview.js +8 -8
  85. package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
  86. package/dist/commands/{commitments → duties}/control/show.js +6 -6
  87. package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
  88. package/dist/commands/{commitments → duties}/cost.js +14 -14
  89. package/dist/commands/{commitments → duties}/create.d.ts +8 -8
  90. package/dist/commands/{commitments → duties}/create.js +92 -92
  91. package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
  92. package/dist/commands/{commitments → duties}/cycles.js +11 -11
  93. package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
  94. package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
  95. package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
  96. package/dist/commands/{commitments → duties}/delete.js +24 -24
  97. package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
  98. package/dist/commands/{commitments → duties}/delivery.js +15 -15
  99. package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
  100. package/dist/commands/{commitments → duties}/detach.js +20 -20
  101. package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
  102. package/dist/commands/{commitments → duties}/doctor.js +21 -21
  103. package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
  104. package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
  105. package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
  106. package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
  107. package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
  108. package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
  109. package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
  110. package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
  111. package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
  112. package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
  113. package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
  114. package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
  115. package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
  116. package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
  117. package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
  118. package/dist/commands/{commitments → duties}/evaluations.js +8 -8
  119. package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
  120. package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
  121. package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
  122. package/dist/commands/{commitments → duties}/explain.js +13 -13
  123. package/dist/commands/{commitments → duties}/export.d.ts +3 -3
  124. package/dist/commands/{commitments → duties}/export.js +15 -15
  125. package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
  126. package/dist/commands/{commitments → duties}/feedback.js +13 -13
  127. package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
  128. package/dist/commands/{commitments → duties}/fork.js +11 -11
  129. package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
  130. package/dist/commands/duties/goals/link.js +41 -0
  131. package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
  132. package/dist/commands/duties/goals/unlink.js +37 -0
  133. package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
  134. package/dist/commands/{commitments → duties}/handover.js +21 -21
  135. package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
  136. package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
  137. package/dist/commands/{commitments → duties}/import.d.ts +2 -2
  138. package/dist/commands/{commitments → duties}/import.js +10 -10
  139. package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
  140. package/dist/commands/{commitments → duties}/ledger.js +12 -12
  141. package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
  142. package/dist/commands/duties/lineage.js +43 -0
  143. package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
  144. package/dist/commands/{commitments → duties}/links/create.js +9 -9
  145. package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
  146. package/dist/commands/{commitments → duties}/links/detach.js +7 -7
  147. package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
  148. package/dist/commands/{commitments → duties}/links/list.js +9 -9
  149. package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
  150. package/dist/commands/{commitments → duties}/links/update.js +7 -7
  151. package/dist/commands/{commitments → duties}/list.d.ts +3 -3
  152. package/dist/commands/{commitments → duties}/list.js +17 -17
  153. package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
  154. package/dist/commands/{commitments → duties}/liveness.js +13 -13
  155. package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
  156. package/dist/commands/{commitments → duties}/metrics.js +12 -12
  157. package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
  158. package/dist/commands/{commitments → duties}/next-tick.js +14 -14
  159. package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
  160. package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
  161. package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
  162. package/dist/commands/duties/observation/summary.js +53 -0
  163. package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
  164. package/dist/commands/{commitments → duties}/observations.js +18 -18
  165. package/dist/commands/{commitments → duties}/open.d.ts +1 -1
  166. package/dist/commands/{commitments → duties}/open.js +13 -13
  167. package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
  168. package/dist/commands/{commitments → duties}/operating-review.js +21 -21
  169. package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
  170. package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
  171. package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
  172. package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
  173. package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
  174. package/dist/commands/{commitments → duties}/pack/list.js +10 -10
  175. package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
  176. package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
  177. package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
  178. package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
  179. package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
  180. package/dist/commands/{commitments → duties}/patch.js +7 -7
  181. package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
  182. package/dist/commands/{commitments → duties}/pause.js +16 -16
  183. package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
  184. package/dist/commands/{commitments → duties}/plan.js +20 -20
  185. package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
  186. package/dist/commands/{commitments → duties}/preflight.js +32 -32
  187. package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
  188. package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
  189. package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
  190. package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
  191. package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
  192. package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
  193. package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
  194. package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
  195. package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
  196. package/dist/commands/{commitments → duties}/receipt.js +10 -10
  197. package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
  198. package/dist/commands/{commitments → duties}/reflect.js +12 -12
  199. package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
  200. package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
  201. package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
  202. package/dist/commands/{commitments → duties}/reflection.js +9 -9
  203. package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
  204. package/dist/commands/{commitments → duties}/remediate.js +14 -14
  205. package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
  206. package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
  207. package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
  208. package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
  209. package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
  210. package/dist/commands/{commitments → duties}/reports.js +35 -35
  211. package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
  212. package/dist/commands/duties/restore.js +46 -0
  213. package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
  214. package/dist/commands/duties/resume.js +37 -0
  215. package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
  216. package/dist/commands/duties/roster.js +39 -0
  217. package/dist/commands/{commitments → duties}/show.d.ts +7 -7
  218. package/dist/commands/{commitments → duties}/show.js +40 -40
  219. package/dist/commands/{commitments → duties}/status.d.ts +3 -3
  220. package/dist/commands/duties/status.js +41 -0
  221. package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
  222. package/dist/commands/{commitments → duties}/subject.js +29 -29
  223. package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
  224. package/dist/commands/{commitments → duties}/trace.js +12 -12
  225. package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
  226. package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
  227. package/dist/commands/{commitments → duties}/update.d.ts +5 -5
  228. package/dist/commands/{commitments → duties}/update.js +64 -64
  229. package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
  230. package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
  231. package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
  232. package/dist/commands/{commitments → duties}/work-plan.js +6 -6
  233. package/dist/commands/goals/key-results/show.js +2 -1
  234. package/dist/commands/goals/plan-now.js +3 -2
  235. package/dist/commands/goals/planner-compare.d.ts +1 -1
  236. package/dist/commands/goals/planner-compare.js +13 -2
  237. package/dist/commands/grants/create.d.ts +1 -1
  238. package/dist/commands/grants/create.js +9 -9
  239. package/dist/commands/grants/list.d.ts +1 -1
  240. package/dist/commands/grants/list.js +2 -2
  241. package/dist/commands/harnesses/list.d.ts +2 -1
  242. package/dist/commands/harnesses/list.js +7 -5
  243. package/dist/commands/harnesses/models.js +1 -1
  244. package/dist/commands/harnesses/quota.d.ts +9 -11
  245. package/dist/commands/harnesses/quota.js +83 -18
  246. package/dist/commands/harnesses/show.js +1 -1
  247. package/dist/commands/harnesses/usage.d.ts +19 -0
  248. package/dist/commands/harnesses/usage.js +27 -7
  249. package/dist/commands/initiatives/list.d.ts +1 -1
  250. package/dist/commands/initiatives/list.js +1 -1
  251. package/dist/commands/measures/create.d.ts +2 -2
  252. package/dist/commands/measures/create.js +4 -4
  253. package/dist/commands/measures/list.d.ts +1 -1
  254. package/dist/commands/measures/list.js +2 -2
  255. package/dist/commands/memory/topics/create.js +4 -1
  256. package/dist/commands/northstars/create.js +4 -4
  257. package/dist/commands/northstars/delete.d.ts +3 -3
  258. package/dist/commands/northstars/delete.js +8 -8
  259. package/dist/commands/northstars/governance/configure.js +15 -15
  260. package/dist/commands/northstars/intents/decide.d.ts +1 -1
  261. package/dist/commands/northstars/intents/decide.js +1 -1
  262. package/dist/commands/northstars/link.d.ts +4 -4
  263. package/dist/commands/northstars/link.js +8 -8
  264. package/dist/commands/northstars/list.d.ts +2 -2
  265. package/dist/commands/northstars/list.js +3 -3
  266. package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
  267. package/dist/commands/northstars/recommendations/apply.js +2 -2
  268. package/dist/commands/northstars/review-now.js +2 -2
  269. package/dist/commands/northstars/show.d.ts +3 -3
  270. package/dist/commands/northstars/show.js +5 -5
  271. package/dist/commands/northstars/unlink.d.ts +3 -3
  272. package/dist/commands/northstars/unlink.js +6 -6
  273. package/dist/commands/northstars/update.js +3 -3
  274. package/dist/commands/proposals/list.d.ts +3 -3
  275. package/dist/commands/proposals/list.js +7 -7
  276. package/dist/commands/spaces/auto-executor/compare.js +1 -1
  277. package/dist/commands/spaces/auto-executor/runs.js +1 -1
  278. package/dist/commands/spaces/heartbeats/list.js +2 -2
  279. package/dist/commands/spaces/index.js +2 -2
  280. package/dist/commands/spaces/list.d.ts +1 -1
  281. package/dist/commands/spaces/list.js +1 -1
  282. package/dist/commands/spaces/loops/migrate.d.ts +1 -1
  283. package/dist/commands/spaces/loops/migrate.js +1 -1
  284. package/dist/commands/spaces/loops/release.d.ts +1 -1
  285. package/dist/commands/spaces/loops/release.js +10 -10
  286. package/dist/commands/spaces/notebook.d.ts +2 -2
  287. package/dist/commands/spaces/notebook.js +2 -2
  288. package/dist/commands/spaces/proposals/discard.js +1 -1
  289. package/dist/commands/spaces/proposals/keep.js +1 -1
  290. package/dist/commands/spaces/triggers/show.js +3 -3
  291. package/dist/commands/spaces/write-policy/set.js +1 -1
  292. package/dist/commands/store/uninstall.js +2 -2
  293. package/dist/commands/subscriptions/health.d.ts +2 -2
  294. package/dist/commands/subscriptions/health.js +2 -2
  295. package/dist/commands/subscriptions/status.js +2 -2
  296. package/dist/commands/subscriptions/subscribe.js +4 -4
  297. package/dist/commands/tasks/create.d.ts +20 -1
  298. package/dist/commands/tasks/create.js +44 -3
  299. package/dist/commands/tasks/list.d.ts +7 -1
  300. package/dist/commands/tasks/list.js +2 -1
  301. package/dist/commands/tokens/create.d.ts +3 -4
  302. package/dist/commands/tokens/create.js +20 -7
  303. package/dist/commands/triggers/preflight.js +9 -2
  304. package/dist/generated/agent-guides.json +496 -496
  305. package/dist/generated/managed-instruction-guides.json +2 -2
  306. package/dist/hooks/command-not-found.d.ts +1 -1
  307. package/dist/hooks/command-not-found.js +1 -1
  308. package/dist/lib/agent-chat-start.js +2 -1
  309. package/dist/lib/agent-model-check.js +3 -1
  310. package/dist/lib/agent-trigger-listing.d.ts +4 -4
  311. package/dist/lib/agent-trigger-listing.js +7 -7
  312. package/dist/lib/agentic-stream.js +6 -7
  313. package/dist/lib/always-on-command-result.d.ts +8 -1
  314. package/dist/lib/always-on-command-result.js +11 -2
  315. package/dist/lib/auth-failure.js +1 -1
  316. package/dist/lib/balance.d.ts +5 -2
  317. package/dist/lib/balance.js +26 -0
  318. package/dist/lib/capability-matrix.d.ts +3 -3
  319. package/dist/lib/capability-matrix.js +9 -9
  320. package/dist/lib/command-hygiene.js +6 -6
  321. package/dist/lib/command-miss.js +1 -1
  322. package/dist/lib/compass-refusals.d.ts +1 -1
  323. package/dist/lib/compass-refusals.js +1 -1
  324. package/dist/lib/compasses.d.ts +5 -5
  325. package/dist/lib/compasses.js +15 -15
  326. package/dist/lib/config.d.ts +1 -1
  327. package/dist/lib/config.js +1 -0
  328. package/dist/lib/dedicated-machines.js +2 -1
  329. package/dist/lib/dedicated-power.js +2 -0
  330. package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
  331. package/dist/lib/{commitments.js → duties.js} +282 -282
  332. package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
  333. package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
  334. package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
  335. package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
  336. package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
  337. package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
  338. package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
  339. package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
  340. package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
  341. package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
  342. package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
  343. package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
  344. package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
  345. package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
  346. package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
  347. package/dist/lib/entity-open.d.ts +1 -1
  348. package/dist/lib/entity-open.js +1 -1
  349. package/dist/lib/format.d.ts +1 -1
  350. package/dist/lib/grants.d.ts +3 -3
  351. package/dist/lib/grants.js +2 -2
  352. package/dist/lib/harness-labels.d.ts +1 -0
  353. package/dist/lib/harness-labels.js +4 -0
  354. package/dist/lib/harnesses.d.ts +35 -0
  355. package/dist/lib/harnesses.js +8 -0
  356. package/dist/lib/initiatives.js +4 -4
  357. package/dist/lib/machines.d.ts +2 -1
  358. package/dist/lib/machines.js +2 -2
  359. package/dist/lib/node-adapter.js +1 -1
  360. package/dist/lib/northstars.d.ts +13 -13
  361. package/dist/lib/northstars.js +56 -56
  362. package/dist/lib/open-target.js +1 -1
  363. package/dist/lib/preflight-copy.js +5 -5
  364. package/dist/lib/proactiveApi.d.ts +4 -4
  365. package/dist/lib/proposals.js +16 -16
  366. package/dist/lib/publicEndpoints.generated.d.ts +4 -0
  367. package/dist/lib/publicEndpoints.generated.js +4 -0
  368. package/dist/lib/responsibility-controls.d.ts +1 -1
  369. package/dist/lib/responsibility-controls.js +6 -6
  370. package/dist/lib/roles.d.ts +1 -1
  371. package/dist/lib/schedule.d.ts +6 -5
  372. package/dist/lib/schedule.js +5 -5
  373. package/dist/lib/session-task-write.d.ts +1 -1
  374. package/dist/lib/session-task-write.js +2 -2
  375. package/dist/lib/space-loop-migration.js +6 -6
  376. package/dist/lib/space-notebook.js +2 -2
  377. package/dist/lib/space-write-policy.js +2 -2
  378. package/dist/lib/stewardship-output.js +2 -2
  379. package/dist/lib/task-spec-verification.js +1 -1
  380. package/dist/lib/tasks.d.ts +1 -1
  381. package/dist/lib/tasks.js +8 -8
  382. package/dist/lib/triggers.d.ts +5 -5
  383. package/dist/lib/triggers.js +25 -16
  384. package/dist/lib/update-check.d.ts +1 -1
  385. package/dist/lib/update-check.js +12 -8
  386. package/dist/lib/usage-discovery.js +2 -4
  387. package/dist/lib/web-url.d.ts +6 -6
  388. package/dist/lib/web-url.js +13 -13
  389. package/dist/lib/workspaces.d.ts +4 -4
  390. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  391. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
  392. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
  393. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
  394. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
  395. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
  396. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
  397. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
  398. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
  399. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
  400. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
  401. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  402. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
  403. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
  404. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
  405. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
  406. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
  407. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
  408. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
  409. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
  410. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
  411. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
  412. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
  413. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
  414. package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
  415. package/dist/node_modules/@skrr-ai/data-provider/index.js +8295 -8283
  416. package/docs/v1/lookback-plans.md +1 -1
  417. package/oclif.manifest.json +5356 -5333
  418. package/package.json +16 -16
  419. package/dist/commands/commitments/cadence-decisions.js +0 -41
  420. package/dist/commands/commitments/complete.js +0 -40
  421. package/dist/commands/commitments/goals/link.js +0 -41
  422. package/dist/commands/commitments/goals/unlink.js +0 -37
  423. package/dist/commands/commitments/lineage.js +0 -43
  424. package/dist/commands/commitments/observation/summary.js +0 -31
  425. package/dist/commands/commitments/restore.js +0 -46
  426. package/dist/commands/commitments/resume.js +0 -37
  427. package/dist/commands/commitments/roster.js +0 -39
  428. package/dist/commands/commitments/status.js +0 -41
  429. /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
@@ -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;
@@ -715,8 +715,8 @@ export declare function claimsAwaitingStartLine(limits?: SchedulerLimits | null)
715
715
  * Human phrasing for a trigger's enabled state (OSK-4886).
716
716
  *
717
717
  * `Enabled: yes` never used the vocabulary the create flow does — a trigger is
718
- * "armed" when it will fire and "inert" until enabled — so a freshly-created
719
- * trigger did not plainly confirm it is live.
718
+ * "armed" when enabled and "inert" until enabled. Execution still depends
719
+ * on live gates which this stored trigger summary cannot establish.
720
720
  */
721
721
  export declare function armedStateLabel(enabled: boolean | undefined, lastResult?: string | null,
722
722
  /**
@@ -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 = {};
@@ -1094,10 +1095,16 @@ function formatFireInZone(iso, timeZone) {
1094
1095
  }
1095
1096
  }
1096
1097
  function nextFireLines(schedule) {
1097
- if (!schedule?.nextFires?.length)
1098
+ if (!schedule)
1098
1099
  return [];
1100
+ const lines = [];
1101
+ if (schedule.nextFireAt) {
1102
+ lines.push(`Stored due time: ${formatFireInZone(schedule.nextFireAt, schedule.timezone)}`);
1103
+ }
1104
+ if (!schedule.nextFires?.length)
1105
+ return lines;
1099
1106
  const windows = new Map((schedule.nextFireWindows ?? []).map((entry) => [entry.at, entry]));
1100
- const lines = [`Next fires (${schedule.timezone}):`];
1107
+ lines.push(`Projected schedule slots (${schedule.timezone}):`);
1101
1108
  for (const at of schedule.nextFires) {
1102
1109
  const window = windows.get(at);
1103
1110
  const mark = window && !window.runs
@@ -1466,8 +1473,8 @@ function claimsAwaitingStartLine(limits) {
1466
1473
  * Human phrasing for a trigger's enabled state (OSK-4886).
1467
1474
  *
1468
1475
  * `Enabled: yes` never used the vocabulary the create flow does — a trigger is
1469
- * "armed" when it will fire and "inert" until enabled — so a freshly-created
1470
- * trigger did not plainly confirm it is live.
1476
+ * "armed" when enabled and "inert" until enabled. Execution still depends
1477
+ * on live gates which this stored trigger summary cannot establish.
1471
1478
  */
1472
1479
  function armedStateLabel(enabled, lastResult,
1473
1480
  /**
@@ -1502,6 +1509,8 @@ windowVerdict) {
1502
1509
  }
1503
1510
  if (enabled === false)
1504
1511
  return 'no — inert until enabled';
1512
+ if (enabled !== true)
1513
+ return 'unknown — enabled state was not reported (see `skrr triggers preflight <id>`)';
1505
1514
  if (schedulerLimits?.state === 'reached')
1506
1515
  return `no — ${schedulerLimitSentence(schedulerLimits)}`;
1507
1516
  if (windowVerdict?.state === 'blocks_all') {
@@ -1510,13 +1519,13 @@ windowVerdict) {
1510
1519
  if (windowVerdict?.state === 'blocks_next') {
1511
1520
  return `yes — but its next run falls ${windowVerdict.reason === 'outside_working_hours' ? 'outside its working hours' : 'inside its quiet hours'} and will be skipped`;
1512
1521
  }
1513
- // "Will fire" is the row's intent. A platform-managed row whose owner is fenced (Always-On off) ticks on
1522
+ // A platform-managed row whose owner is fenced (Always-On off) ticks on
1514
1523
  // 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).
1524
+ // meets must not say the opposite (dogfood df-261031-duty-authoring, OSK-21103).
1516
1525
  const skipped = typeof lastResult === 'string' ? ARMED_STATE_LABEL_RE.exec(lastResult) : null;
1517
1526
  return skipped
1518
1527
  ? `yes — but its last tick was skipped (${skipped[1]}), so it did not run`
1519
- : 'yes — will fire';
1528
+ : 'yes — enabled; execution depends on current gates (see `skrr triggers preflight <id>`)';
1520
1529
  }
1521
1530
  /**
1522
1531
  * Human phrasing for an effect trigger's write mode (OSK-4886).
@@ -1643,8 +1652,8 @@ function debounceSpan(ms) {
1643
1652
  function debounceSummaryLine(trigger) {
1644
1653
  if (trigger.kind !== 'event')
1645
1654
  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') {
1655
+ // A Duty wake coalesces in the wake ledger; TriggerEngine never debounces those fires.
1656
+ if (trigger.scope?.kind === 'duty_watcher' || trigger.execution?.mode === 'duty_reflection') {
1648
1657
  return undefined;
1649
1658
  }
1650
1659
  const ms = trigger.event?.debounceMs;
@@ -1773,10 +1782,10 @@ function renderTriggerSummary(trigger, log, options = {}) {
1773
1782
  }
1774
1783
  // A trigger converted into a Space loop is read-only, and says where its turn went.
1775
1784
  const loop = trigger.supersededBy;
1776
- if (loop?.commitmentId) {
1785
+ if (loop?.dutyId) {
1777
1786
  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`);
1787
+ ? `Loop: replaced by Space loop ${loop.dutyId}; read-only and does not run (skrr duties show ${loop.dutyId})`
1788
+ : `Loop: being converted into Space loop ${loop.dutyId}; read-only, and keeps firing until the loop is active`);
1780
1789
  }
1781
1790
  if (trigger.label)
1782
1791
  log(`Label: ${trigger.label}`);
@@ -1996,7 +2005,7 @@ function lastResultLabel(trigger) {
1996
2005
  const last = trigger.audit?.lastResult;
1997
2006
  if (typeof last !== 'string' || !last)
1998
2007
  return undefined;
1999
- const code = /^(outside_working_hours|inside_quiet_hours)(?::\1)?$/.exec(last)?.[1];
2008
+ const code = LAST_RESULT_LABEL_RE.exec(last)?.[1];
2000
2009
  if (!code)
2001
2010
  return last;
2002
2011
  const summary = clockSkipAuditExplanation({
@@ -81,7 +81,7 @@ export declare function resolveCliPackageDir(argv?: readonly string[]): string |
81
81
  * `dist` and no `src`.
82
82
  */
83
83
  export declare function classifyCliInstall(env: NodeJS.ProcessEnv, argv: readonly string[], npmGlobalRoot: string | null, probeWritable?: boolean): CliInstallDescriptor;
84
- export declare function cliUpdateCommand(owner: CliInstallKind, npmPrefix?: string): string;
84
+ export declare function cliUpdateCommand(owner: CliInstallKind, npmPrefix?: string, offeredVersion?: string | null): string;
85
85
  export declare function buildNudgeLine(currentVersion: string, latest: string | null, _npmPackage: string | null, installKind?: CliInstallKind, npmPrefix?: string): string | null;
86
86
  export type CliUpdateAction = {
87
87
  type: 'nudge';
@@ -287,12 +287,17 @@ async function resolveNpmGlobalRoot(env = process.env) {
287
287
  return null;
288
288
  }
289
289
  }
290
- function cliUpdateCommand(owner, npmPrefix) {
290
+ function cliUpdateCommand(owner, npmPrefix, offeredVersion) {
291
+ // The offered version comes from remote metadata or a local cache. Only put
292
+ // an exact, shell-safe npm version into an executable suggestion.
293
+ const version = offeredVersion && /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(offeredVersion)
294
+ ? offeredVersion
295
+ : 'latest';
291
296
  switch (owner) {
292
297
  case 'npm-global':
293
298
  return npmPrefix
294
- ? `npm install --global --prefix '${npmPrefix.replace(CLI_UPDATE_COMMAND_RE, "'\\''")}' ${CLI_PACKAGE}@latest`
295
- : `npm install -g ${CLI_PACKAGE}@latest`;
299
+ ? `npm install --global --prefix '${npmPrefix.replace(CLI_UPDATE_COMMAND_RE, "'\\''")}' ${CLI_PACKAGE}@${version}`
300
+ : `npm install -g ${CLI_PACKAGE}@${version}`;
296
301
  case 'npm-local':
297
302
  return `Use npm in the project that owns ${CLI_PACKAGE}`;
298
303
  case 'dev':
@@ -310,8 +315,7 @@ function cliUpdateCommand(owner, npmPrefix) {
310
315
  function buildNudgeLine(currentVersion, latest, _npmPackage, installKind = 'npm-global', npmPrefix) {
311
316
  if (!latest || !isOlderVersion(currentVersion, latest))
312
317
  return null;
313
- const command = installKind === 'npm-global' && !npmPrefix
314
- ? `npm update -g ${CLI_PACKAGE}` : cliUpdateCommand(installKind, npmPrefix);
318
+ const command = cliUpdateCommand(installKind, npmPrefix, latest);
315
319
  const context = installKind === 'dev'
316
320
  ? ' to rebuild your checkout'
317
321
  : '';
@@ -349,7 +353,7 @@ function decideCliUpdateAction(args) {
349
353
  if (attempt?.status === 'failed')
350
354
  return {
351
355
  type: 'nudge',
352
- line: `[skrr] CLI update to ${cache.latest} failed. Inspect \`skrr update --status\` or run \`${cliUpdateCommand(install.kind, install.npmPrefix)}\`.\n`,
356
+ line: `[skrr] CLI update to ${cache.latest} failed. Inspect \`skrr update --status\` or run \`${cliUpdateCommand(install.kind, install.npmPrefix, cache.latest)}\`.\n`,
353
357
  };
354
358
  }
355
359
  const line = buildNudgeLine(currentVersion, cache.latest, CLI_PACKAGE, install.kind, install.npmPrefix);
@@ -488,7 +492,7 @@ function readCliUpdateStatus(opts) {
488
492
  state,
489
493
  autoUpdateAllowed: autoUpdateReason === null,
490
494
  autoUpdateReason,
491
- command: cliUpdateCommand(install.kind, install.npmPrefix),
495
+ command: cliUpdateCommand(install.kind, install.npmPrefix, offeredVersion),
492
496
  lastCheckAt: matchingCache?.lastCheckAt ?? null,
493
497
  lastAttempt,
494
498
  logPath: path.join(directory, 'update.log'),
@@ -613,7 +617,7 @@ async function performCliUpdate(opts) {
613
617
  env.SKRR_CLI_UPDATE_SESSION_UNAVAILABLE === '1') {
614
618
  return {
615
619
  ...status,
616
- message: `This CLI is owned by ${install.kind}${install.kind === 'npm-global' ? ' in a shared or external prefix' : ''}. ${cliUpdateCommand(install.kind, install.npmPrefix)}.`,
620
+ message: `This CLI is owned by ${install.kind}${install.kind === 'npm-global' ? ' in a shared or external prefix' : ''}. ${cliUpdateCommand(install.kind, install.npmPrefix, status.offeredVersion)}.`,
617
621
  };
618
622
  }
619
623
  const recoverableAttempt = status.lastAttempt && ['queued', 'running'].includes(status.lastAttempt.status);
@@ -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. */
@@ -27,7 +27,7 @@ exports.spaceUrlFrom = spaceUrlFrom;
27
27
  exports.conversationUrlFrom = conversationUrlFrom;
28
28
  exports.groupChatUrlFrom = groupChatUrlFrom;
29
29
  exports.goalUrlFrom = goalUrlFrom;
30
- exports.commitmentUrlFrom = commitmentUrlFrom;
30
+ exports.dutyUrlFrom = dutyUrlFrom;
31
31
  exports.northstarUrlFrom = northstarUrlFrom;
32
32
  exports.agentUrlFrom = agentUrlFrom;
33
33
  exports.compassUrlFrom = compassUrlFrom;
@@ -39,7 +39,7 @@ exports.projectUrlFrom = projectUrlFrom;
39
39
  exports.withProjectUrl = withProjectUrl;
40
40
  exports.wikiPageUrlFrom = wikiPageUrlFrom;
41
41
  exports.withWikiPageUrl = withWikiPageUrl;
42
- exports.withCommitmentUrl = withCommitmentUrl;
42
+ exports.withDutyUrl = withDutyUrl;
43
43
  exports.withNorthstarUrl = withNorthstarUrl;
44
44
  exports.withAgentUrl = withAgentUrl;
45
45
  exports.withDataUrls = withDataUrls;
@@ -85,9 +85,9 @@ function webPath(ref) {
85
85
  const spaceId = encodeId(ref.spaceId);
86
86
  return spaceId ? `/spaces/${spaceId}/goals/${goalId}` : `/goals/${goalId}`;
87
87
  }
88
- case 'commitment': {
89
- const commitmentId = encodeId(ref.commitmentId);
90
- return commitmentId ? `/commitments/${commitmentId}` : null;
88
+ case 'duty': {
89
+ const dutyId = encodeId(ref.dutyId);
90
+ return dutyId ? `/duties/${dutyId}` : null;
91
91
  }
92
92
  case 'northstar': {
93
93
  const northstarId = encodeId(ref.northstarId);
@@ -259,12 +259,12 @@ function goalUrlFrom(baseURL, goal) {
259
259
  return null;
260
260
  return webUrl(baseURL, { kind: 'goal', goalId, spaceId: idOf(goal, 'spaceId') ?? null });
261
261
  }
262
- /** Build a commitment URL from a raw server commitment record. */
263
- function commitmentUrlFrom(baseURL, commitment) {
264
- const commitmentId = idOf(commitment, 'id', '_id');
265
- if (!commitmentId)
262
+ /** Build a duty URL from a raw server duty record. */
263
+ function dutyUrlFrom(baseURL, duty) {
264
+ const dutyId = idOf(duty, 'id', '_id');
265
+ if (!dutyId)
266
266
  return null;
267
- return webUrl(baseURL, { kind: 'commitment', commitmentId });
267
+ return webUrl(baseURL, { kind: 'duty', dutyId });
268
268
  }
269
269
  /** Build a Northstar detail URL from a raw server Northstar record. */
270
270
  function northstarUrlFrom(baseURL, northstar) {
@@ -348,9 +348,9 @@ function wikiPageUrlFrom(baseURL, page) {
348
348
  function withWikiPageUrl(baseURL, page) {
349
349
  return { ...page, url: wikiPageUrlFrom(baseURL, page) };
350
350
  }
351
- /** Return a shallow copy of a commitment record with a `url` field attached. */
352
- function withCommitmentUrl(baseURL, commitment) {
353
- return { ...commitment, url: commitmentUrlFrom(baseURL, commitment) };
351
+ /** Return a shallow copy of a duty record with a `url` field attached. */
352
+ function withDutyUrl(baseURL, duty) {
353
+ return { ...duty, url: dutyUrlFrom(baseURL, duty) };
354
354
  }
355
355
  /** Return a shallow copy of a Northstar record with a canonical web URL. */
356
356
  function withNorthstarUrl(baseURL, northstar) {
@@ -4,7 +4,7 @@ export interface StewardshipSource {
4
4
  status: 'available' | 'unavailable';
5
5
  truncated: boolean;
6
6
  code?: string;
7
- /** `unattributedGrants` only: Grants in this workspace by Agent or Commitment that carry no workspace stamp and so are not listed. */
7
+ /** `unattributedGrants` only: Grants in this workspace by Agent or Duty that carry no workspace stamp and so are not listed. */
8
8
  unlisted?: number;
9
9
  }
10
10
  export interface StewardshipCoverage {
@@ -24,7 +24,7 @@ export interface WorkspaceGrantReport {
24
24
  grants: WorkspaceGrantMetadata[] | null;
25
25
  coverage: StewardshipCoverage;
26
26
  }
27
- export interface StewardshipCommitmentMetadata {
27
+ export interface StewardshipDutyMetadata {
28
28
  id: string;
29
29
  title?: string;
30
30
  status?: string;
@@ -38,8 +38,8 @@ export interface WorkspaceStewardshipReport extends WorkspaceGrantReport {
38
38
  /** `false` on `absent`: a removed member and an id that never existed read alike. */
39
39
  canDistinguishRemoved?: boolean;
40
40
  };
41
- commitments: StewardshipCommitmentMetadata[] | null;
42
- approverSeats: StewardshipCommitmentMetadata[] | null;
41
+ duties: StewardshipDutyMetadata[] | null;
42
+ approverSeats: StewardshipDutyMetadata[] | null;
43
43
  agents: Array<{
44
44
  id: string;
45
45
  name?: string;
@@ -1,11 +1,11 @@
1
1
  /** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
2
- export declare const COMMITMENT_EXECUTION_CONTRACT_VERSION: 3;
3
- export declare const COMMITMENT_EXECUTION_CONTRACT_CAPABILITY = "commitment_execution_contract_v3";
4
- export interface CommitmentExecutionContract {
2
+ export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
3
+ export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
4
+ export interface DutyExecutionContract {
5
5
  version: 3;
6
- kind: 'commitment' | 'task_delivery';
6
+ kind: 'duty' | 'task_delivery';
7
7
  responsibilityRef: {
8
- kind: 'commitment' | 'task';
8
+ kind: 'duty' | 'task';
9
9
  id: string;
10
10
  version: number;
11
11
  };
@@ -38,8 +38,8 @@ export interface CommitmentExecutionContract {
38
38
  };
39
39
  };
40
40
  mustNot: string[];
41
- return: 'commitment_result_v1' | 'task_output';
41
+ return: 'duty_result_v1' | 'task_output';
42
42
  }
43
43
  export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
44
44
  /** One strict parser used at storage admission and at runtime admission. */
45
- export declare function normalizeCommitmentExecutionContract(value: unknown): CommitmentExecutionContract | null;
45
+ export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;