@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
@@ -2,22 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../base-command");
5
- const commitments_1 = require("../../lib/commitments");
5
+ const duties_1 = require("../../lib/duties");
6
6
  /**
7
- * `skrr commitments metrics <id>` — per-day rollups of the control loop.
7
+ * `skrr duties metrics <id>` — per-day rollups of the control loop.
8
8
  *
9
9
  * These are the numbers Reflection tunes cadence from (material vs noisy vs
10
10
  * unresolved). Reading them is how you check a cadence change did what it was
11
11
  * supposed to, rather than trusting that it did.
12
12
  */
13
- class CommitmentsMetrics extends base_command_1.BaseCommand {
14
- static description = "Show the commitment's daily control-loop metrics";
13
+ class DutiesMetrics extends base_command_1.BaseCommand {
14
+ static description = "Show the duty's daily control-loop metrics";
15
15
  static examples = [
16
- '<%= config.bin %> commitments metrics obj_abc123',
17
- '<%= config.bin %> commitments metrics obj_abc123 --limit 30 --json',
16
+ '<%= config.bin %> duties metrics obj_abc123',
17
+ '<%= config.bin %> duties metrics obj_abc123 --limit 30 --json',
18
18
  ];
19
19
  static args = {
20
- commitmentId: core_1.Args.string({ ignoreStdin: true, description: 'Commitment ID', required: true }),
20
+ dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
21
21
  };
22
22
  static flags = {
23
23
  json: core_1.Flags.boolean({ description: 'Output as JSON' }),
@@ -28,10 +28,10 @@ class CommitmentsMetrics extends base_command_1.BaseCommand {
28
28
  };
29
29
  async run() {
30
30
  this.requireAuth();
31
- const { args, flags } = await this.parse(CommitmentsMetrics);
31
+ const { args, flags } = await this.parse(DutiesMetrics);
32
32
  let response;
33
33
  try {
34
- response = await commitments_1.commitmentApi.dailyMetrics(args.commitmentId, {
34
+ response = await duties_1.dutyApi.dailyMetrics(args.dutyId, {
35
35
  limit: flags.limit,
36
36
  cursor: flags.cursor,
37
37
  });
@@ -43,8 +43,8 @@ class CommitmentsMetrics extends base_command_1.BaseCommand {
43
43
  this.log(JSON.stringify(response, null, 2));
44
44
  return;
45
45
  }
46
- (0, commitments_1.renderCommitmentMetrics)(response, (line) => this.log(line));
47
- (0, commitments_1.renderListPageHint)(response, (line) => this.log(line));
46
+ (0, duties_1.renderDutyMetrics)(response, (line) => this.log(line));
47
+ (0, duties_1.renderListPageHint)(response, (line) => this.log(line));
48
48
  }
49
49
  }
50
- exports.default = CommitmentsMetrics;
50
+ exports.default = DutiesMetrics;
@@ -1,12 +1,12 @@
1
1
  import { BaseCommand } from '../../base-command';
2
- import { type CommitmentNextTickProjection } from '../../lib/commitments';
2
+ import { type DutyNextTickProjection } from '../../lib/duties';
3
3
  /**
4
- * `skrr commitments next-tick <id>` — what the NEXT check would decide.
4
+ * `skrr duties next-tick <id>` — what the NEXT check would decide.
5
5
  *
6
- * Every other read on a commitment is retrospective: `checks` says what it
6
+ * Every other read on a duty is retrospective: `checks` says what it
7
7
  * decided, `receipt` says what one wake produced, `trigger-status` says when it
8
8
  * will fire again. None of them answers the question an operator actually has
9
- * when a commitment is about to nudge somebody — "what is it about to do, and
9
+ * when a duty is about to nudge somebody — "what is it about to do, and
10
10
  * on what grounds" — and the only way to find out used to be to run a real
11
11
  * check, which changes the thing you were trying to observe.
12
12
  *
@@ -16,7 +16,7 @@ import { type CommitmentNextTickProjection } from '../../lib/commitments';
16
16
  * printed under `--json` — the decision and its policy trail are the answer;
17
17
  * the envelope is the evidence behind it.
18
18
  */
19
- export default class CommitmentsNextTick extends BaseCommand {
19
+ export default class DutiesNextTick extends BaseCommand {
20
20
  static description: string;
21
21
  static examples: string[];
22
22
  static args: {
@@ -34,6 +34,6 @@ export default class CommitmentsNextTick extends BaseCommand {
34
34
  * it can be unit-tested without a live API, and the command body stays a thin
35
35
  * fetch + print. Defensive about every field — this is a projection of a
36
36
  * versioned envelope, so a missing key is a shape change, not a reason to throw
37
- * in front of somebody debugging a live commitment.
37
+ * in front of somebody debugging a live duty.
38
38
  */
39
- export declare function formatNextTick(projection: CommitmentNextTickProjection): string[];
39
+ export declare function formatNextTick(projection: DutyNextTickProjection): string[];
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatNextTick = formatNextTick;
4
4
  const core_1 = require("@oclif/core");
5
5
  const base_command_1 = require("../../base-command");
6
- const commitments_1 = require("../../lib/commitments");
6
+ const duties_1 = require("../../lib/duties");
7
7
  /**
8
- * `skrr commitments next-tick <id>` — what the NEXT check would decide.
8
+ * `skrr duties next-tick <id>` — what the NEXT check would decide.
9
9
  *
10
- * Every other read on a commitment is retrospective: `checks` says what it
10
+ * Every other read on a duty is retrospective: `checks` says what it
11
11
  * decided, `receipt` says what one wake produced, `trigger-status` says when it
12
12
  * will fire again. None of them answers the question an operator actually has
13
- * when a commitment is about to nudge somebody — "what is it about to do, and
13
+ * when a duty is about to nudge somebody — "what is it about to do, and
14
14
  * on what grounds" — and the only way to find out used to be to run a real
15
15
  * check, which changes the thing you were trying to observe.
16
16
  *
@@ -20,14 +20,14 @@ const commitments_1 = require("../../lib/commitments");
20
20
  * printed under `--json` — the decision and its policy trail are the answer;
21
21
  * the envelope is the evidence behind it.
22
22
  */
23
- class CommitmentsNextTick extends base_command_1.BaseCommand {
23
+ class DutiesNextTick extends base_command_1.BaseCommand {
24
24
  static description = 'Preview what the next check would decide, without running one (no budget, no side effects)';
25
25
  static examples = [
26
- '<%= config.bin %> commitments next-tick obj_abc123',
27
- '<%= config.bin %> commitments next-tick obj_abc123 --json',
26
+ '<%= config.bin %> duties next-tick obj_abc123',
27
+ '<%= config.bin %> duties next-tick obj_abc123 --json',
28
28
  ];
29
29
  static args = {
30
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
30
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
31
31
  };
32
32
  static flags = {
33
33
  json: core_1.Flags.boolean({
@@ -36,10 +36,10 @@ class CommitmentsNextTick extends base_command_1.BaseCommand {
36
36
  };
37
37
  async run() {
38
38
  this.requireAuth();
39
- const { args, flags } = await this.parse(CommitmentsNextTick);
39
+ const { args, flags } = await this.parse(DutiesNextTick);
40
40
  let projection;
41
41
  try {
42
- projection = await commitments_1.commitmentApi.nextTick(args.id);
42
+ projection = await duties_1.dutyApi.nextTick(args.id);
43
43
  }
44
44
  catch (err) {
45
45
  this.handleApiError(err);
@@ -52,7 +52,7 @@ class CommitmentsNextTick extends base_command_1.BaseCommand {
52
52
  this.log(line);
53
53
  }
54
54
  }
55
- exports.default = CommitmentsNextTick;
55
+ exports.default = DutiesNextTick;
56
56
  /**
57
57
  * Pure renderer for the next-tick projection.
58
58
  *
@@ -60,16 +60,16 @@ exports.default = CommitmentsNextTick;
60
60
  * it can be unit-tested without a live API, and the command body stays a thin
61
61
  * fetch + print. Defensive about every field — this is a projection of a
62
62
  * versioned envelope, so a missing key is a shape change, not a reason to throw
63
- * in front of somebody debugging a live commitment.
63
+ * in front of somebody debugging a live duty.
64
64
  */
65
65
  function formatNextTick(projection) {
66
66
  const decision = projection.decision ?? {};
67
67
  const lines = [
68
- `Next tick for ${projection.commitmentId ?? '-'} (projected ${projection.projectedAt ?? '-'})`,
68
+ `Next tick for ${projection.dutyId ?? '-'} (projected ${projection.projectedAt ?? '-'})`,
69
69
  '',
70
70
  // The header states what this did NOT do, because the value of the command
71
71
  // is entirely in that: a reader who thinks a check just ran will misread
72
- // every number on the commitment afterwards.
72
+ // every number on the duty afterwards.
73
73
  'Projection only — no check was recorded, no budget spent, no action routed.',
74
74
  // And what it does not MODEL (OSK-21104): it decides from the evidence alone. A real Check also
75
75
  // applies the repeat-evidence window, earlier Runs and owed retries, today's Run budget, the
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../../base-command';
2
- export default class CommitmentsObservationProbe extends BaseCommand {
2
+ export default class DutiesObservationProbe extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static args: {
@@ -2,37 +2,37 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../../base-command");
5
- const commitments_1 = require("../../../lib/commitments");
5
+ const duties_1 = require("../../../lib/duties");
6
6
  const prompt_1 = require("../../../lib/prompt");
7
7
  const responsibility_controls_1 = require("../../../lib/responsibility-controls");
8
- class CommitmentsObservationProbe extends base_command_1.BaseCommand {
8
+ class DutiesObservationProbe extends base_command_1.BaseCommand {
9
9
  static description = 'Perform a bounded source-read probe for a saved responsibility or unsaved draft';
10
10
  static examples = [
11
- '<%= config.bin %> commitments observation probe <id> --expected-version 7 --timeout-ms 5000',
12
- '<%= config.bin %> commitments observation probe --from-json draft.json --json',
11
+ '<%= config.bin %> duties observation probe <id> --expected-version 7 --timeout-ms 5000',
12
+ '<%= config.bin %> duties observation probe --from-json draft.json --json',
13
13
  ];
14
- static args = { id: core_1.Args.string({ description: 'Saved Commitment ID; omit for an unsaved draft', ignoreStdin: true }) };
14
+ static args = { id: core_1.Args.string({ description: 'Saved Duty ID; omit for an unsaved draft', ignoreStdin: true }) };
15
15
  static flags = {
16
16
  'from-json': core_1.Flags.string({ description: 'Unsaved draft JSON file, or - for stdin' }),
17
- 'expected-version': core_1.Flags.integer({ description: 'Exact saved Commitment version', min: 1 }),
17
+ 'expected-version': core_1.Flags.integer({ description: 'Exact saved Duty version', min: 1 }),
18
18
  'timeout-ms': core_1.Flags.integer({ description: 'Saved source-probe timeout (1..15000ms)', min: 1, max: 15000 }),
19
19
  json: core_1.Flags.boolean({ description: 'Output source evidence as JSON' }),
20
20
  };
21
21
  async run() {
22
22
  this.requireAuth();
23
- const { args, flags } = await this.parse(CommitmentsObservationProbe);
23
+ const { args, flags } = await this.parse(DutiesObservationProbe);
24
24
  try {
25
25
  if (Boolean(args.id) === Boolean(flags['from-json']))
26
- throw new Error('Provide either a saved Commitment ID or --from-json for an unsaved draft.');
26
+ throw new Error('Provide either a saved Duty ID or --from-json for an unsaved draft.');
27
27
  if (!args.id && (flags['expected-version'] !== undefined || flags['timeout-ms'] !== undefined)) {
28
- throw new Error('--expected-version and --timeout-ms apply only to a saved Commitment.');
28
+ throw new Error('--expected-version and --timeout-ms apply only to a saved Duty.');
29
29
  }
30
30
  const probe = args.id
31
- ? await commitments_1.commitmentApi.observationProbe(args.id, {
31
+ ? await duties_1.dutyApi.observationProbe(args.id, {
32
32
  ...(flags['expected-version'] !== undefined ? { expectedVersion: flags['expected-version'] } : {}),
33
33
  ...(flags['timeout-ms'] !== undefined ? { timeoutMs: flags['timeout-ms'] } : {}),
34
34
  })
35
- : await commitments_1.commitmentApi.draftObservationProbe((0, commitments_1.normalizeCreateBody)(await (0, prompt_1.readJsonBody)(flags['from-json'])));
35
+ : await duties_1.dutyApi.draftObservationProbe((0, duties_1.normalizeCreateBody)(await (0, prompt_1.readJsonBody)(flags['from-json'])));
36
36
  if (flags.json)
37
37
  this.log(JSON.stringify(probe, null, 2));
38
38
  else
@@ -43,4 +43,4 @@ class CommitmentsObservationProbe extends base_command_1.BaseCommand {
43
43
  }
44
44
  }
45
45
  }
46
- exports.default = CommitmentsObservationProbe;
46
+ exports.default = DutiesObservationProbe;
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../../base-command';
2
- export default class CommitmentsObservationSummary extends BaseCommand {
2
+ export default class DutiesObservationSummary extends BaseCommand {
3
3
  static description: string;
4
4
  static flags: {
5
5
  agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../../base-command");
5
- const commitments_1 = require("../../../lib/commitments");
6
- class CommitmentsObservationSummary extends base_command_1.BaseCommand {
5
+ const duties_1 = require("../../../lib/duties");
6
+ class DutiesObservationSummary extends base_command_1.BaseCommand {
7
7
  static description = 'Read the bounded portfolio observation projection without performing new source checks';
8
8
  static flags = {
9
9
  agent: core_1.Flags.string({ description: 'Filter the authenticated portfolio by Agent ID' }),
@@ -11,9 +11,9 @@ class CommitmentsObservationSummary extends base_command_1.BaseCommand {
11
11
  };
12
12
  async run() {
13
13
  this.requireAuth();
14
- const { flags } = await this.parse(CommitmentsObservationSummary);
14
+ const { flags } = await this.parse(DutiesObservationSummary);
15
15
  try {
16
- const summary = await commitments_1.commitmentApi.observationSummary({ agentId: flags.agent });
16
+ const summary = await duties_1.dutyApi.observationSummary({ agentId: flags.agent });
17
17
  if (flags.json) {
18
18
  this.log(JSON.stringify(summary, null, 2));
19
19
  return;
@@ -28,4 +28,4 @@ class CommitmentsObservationSummary extends base_command_1.BaseCommand {
28
28
  }
29
29
  }
30
30
  }
31
- exports.default = CommitmentsObservationSummary;
31
+ exports.default = DutiesObservationSummary;
@@ -6,9 +6,9 @@ export declare function parseObservationWindow(value: string): {
6
6
  };
7
7
  export declare function renderObservationWindow(response: Record<string, unknown>, log: (line: string) => void): void;
8
8
  /**
9
- * `skrr commitments observations <id>` — what this commitment's runs saw.
9
+ * `skrr duties observations <id>` — what this duty's runs saw.
10
10
  *
11
- * The only commitment read whose rows the control plane did not gather itself.
11
+ * The only duty read whose rows the control plane did not gather itself.
12
12
  * A run executing on your machine reported them, so every row carries
13
13
  * `agent_reported` authority and a confidence that is capped below anything the
14
14
  * platform read for itself — and the `changed` column beside each value is the
@@ -20,11 +20,11 @@ export declare function renderObservationWindow(response: Record<string, unknown
20
20
  * decide what to declare next. `--declared-only` narrows to the rows that can
21
21
  * actually move the loop.
22
22
  */
23
- export default class CommitmentsObservations extends BaseCommand {
23
+ export default class DutiesObservations extends BaseCommand {
24
24
  static description: string;
25
25
  static examples: string[];
26
26
  static args: {
27
- commitmentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
27
+ dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
28
28
  };
29
29
  static flags: {
30
30
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -5,7 +5,7 @@ exports.renderObservationWindow = renderObservationWindow;
5
5
  const core_1 = require("@oclif/core");
6
6
  const data_provider_1 = require("@skrr-ai/data-provider");
7
7
  const base_command_1 = require("../../base-command");
8
- const commitments_1 = require("../../lib/commitments");
8
+ const duties_1 = require("../../lib/duties");
9
9
  const TIMESTAMP_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
10
10
  /** Explicit ISO FROM/TO intervals avoid local-time or rolling-window ambiguity. */
11
11
  function parseObservationWindow(value) {
@@ -45,9 +45,9 @@ function renderObservationWindow(response, log) {
45
45
  display('Window', response.summary);
46
46
  }
47
47
  /**
48
- * `skrr commitments observations <id>` — what this commitment's runs saw.
48
+ * `skrr duties observations <id>` — what this duty's runs saw.
49
49
  *
50
- * The only commitment read whose rows the control plane did not gather itself.
50
+ * The only duty read whose rows the control plane did not gather itself.
51
51
  * A run executing on your machine reported them, so every row carries
52
52
  * `agent_reported` authority and a confidence that is capped below anything the
53
53
  * platform read for itself — and the `changed` column beside each value is the
@@ -59,21 +59,21 @@ function renderObservationWindow(response, log) {
59
59
  * decide what to declare next. `--declared-only` narrows to the rows that can
60
60
  * actually move the loop.
61
61
  */
62
- class CommitmentsObservations extends base_command_1.BaseCommand {
63
- static description = "Show what the commitment's runs reported observing.\n\n" +
62
+ class DutiesObservations extends base_command_1.BaseCommand {
63
+ static description = "Show what the duty's runs reported observing.\n\n" +
64
64
  'Columns: VALUE is shortened to fit the table (--json has the stored value). DECLARED no / ' +
65
- "REASON undeclared means the key is not declared on the Commitment's agent_run source: the " +
65
+ "REASON undeclared means the key is not declared on the Duty's agent_run source: the " +
66
66
  'reading is recorded but can never open a loop. CLAMPED yes means the observed time the run ' +
67
67
  'claimed was moved into the accepted window (CLAIMED is what it said). CHANGED is the ' +
68
68
  "server's verdict against the previous reading of the same key, never the run's. CONF is a " +
69
69
  'cap on how much an Agent-reported reading is worth, not a measurement.';
70
70
  static examples = [
71
- '<%= config.bin %> commitments observations obj_abc123',
72
- '<%= config.bin %> commitments observations obj_abc123 --declared-only --changed-only',
73
- '<%= config.bin %> commitments observations obj_abc123 --since 2026-08-01 --limit 100 --json',
71
+ '<%= config.bin %> duties observations obj_abc123',
72
+ '<%= config.bin %> duties observations obj_abc123 --declared-only --changed-only',
73
+ '<%= config.bin %> duties observations obj_abc123 --since 2026-08-01 --limit 100 --json',
74
74
  ];
75
75
  static args = {
76
- commitmentId: core_1.Args.string({ ignoreStdin: true, description: 'Commitment ID', required: true }),
76
+ dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
77
77
  };
78
78
  static flags = {
79
79
  json: core_1.Flags.boolean({ description: 'Output as JSON' }),
@@ -105,7 +105,7 @@ class CommitmentsObservations extends base_command_1.BaseCommand {
105
105
  };
106
106
  async run() {
107
107
  this.requireAuth();
108
- const { args, flags } = await this.parse(CommitmentsObservations);
108
+ const { args, flags } = await this.parse(DutiesObservations);
109
109
  if (flags.latest && (flags.window || flags.cursor || flags['changed-only'] || flags.since))
110
110
  this.error('--latest cannot be combined with --window, --cursor, --changed-only, or --since');
111
111
  let response;
@@ -120,12 +120,12 @@ class CommitmentsObservations extends base_command_1.BaseCommand {
120
120
  };
121
121
  const baseline = flags['compare-to'] ? parseObservationWindow(flags['compare-to']) : null;
122
122
  response = baseline
123
- ? await commitments_1.commitmentApi.observationCompare(args.commitmentId, {
123
+ ? await duties_1.dutyApi.observationCompare(args.dutyId, {
124
124
  ...query,
125
125
  baselineFrom: baseline.from,
126
126
  baselineTo: baseline.to,
127
127
  })
128
- : await commitments_1.commitmentApi.observationSeries(args.commitmentId, query);
128
+ : await duties_1.dutyApi.observationSeries(args.dutyId, query);
129
129
  }
130
130
  catch (err) {
131
131
  this.handleApiError(err);
@@ -139,7 +139,7 @@ class CommitmentsObservations extends base_command_1.BaseCommand {
139
139
  if (flags.key)
140
140
  this.error('--key requires --window');
141
141
  try {
142
- response = await commitments_1.commitmentApi.observations(args.commitmentId, {
142
+ response = await duties_1.dutyApi.observations(args.dutyId, {
143
143
  limit: flags.limit,
144
144
  latest: flags.latest || undefined,
145
145
  declaredOnly: flags['declared-only'] || undefined,
@@ -157,7 +157,7 @@ class CommitmentsObservations extends base_command_1.BaseCommand {
157
157
  this.printJsonResult(response);
158
158
  return;
159
159
  }
160
- // "The commitment has none" and "your filter matched none" are different
160
+ // "The duty has none" and "your filter matched none" are different
161
161
  // facts; a filter that empties the list must not claim the first
162
162
  // (OSK-10953).
163
163
  const filters = [
@@ -171,8 +171,8 @@ class CommitmentsObservations extends base_command_1.BaseCommand {
171
171
  : 'No observations recorded.';
172
172
  if (response?.truncated)
173
173
  this.log(`TRUNCATED: ${response.omitted} current keys omitted; increase --limit (max 200).`);
174
- (0, commitments_1.renderCommitmentObservations)(response, (line) => this.log(line), { emptyMessage });
175
- (0, commitments_1.renderListPageHint)(response, (line) => this.log(line));
174
+ (0, duties_1.renderDutyObservations)(response, (line) => this.log(line), { emptyMessage });
175
+ (0, duties_1.renderListPageHint)(response, (line) => this.log(line));
176
176
  }
177
177
  }
178
- exports.default = CommitmentsObservations;
178
+ exports.default = DutiesObservations;
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../base-command';
2
- export default class CommitmentsOpen extends BaseCommand {
2
+ export default class DutiesOpen extends BaseCommand {
3
3
  static description: string;
4
4
  static args: {
5
5
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const base_command_1 = require("../../base-command");
5
- const commitments_1 = require("../../lib/commitments");
5
+ const duties_1 = require("../../lib/duties");
6
6
  const entity_open_1 = require("../../lib/entity-open");
7
7
  const web_url_1 = require("../../lib/web-url");
8
- class CommitmentsOpen extends base_command_1.BaseCommand {
9
- static description = 'Open a commitment in the browser (default) or skrr Desktop';
8
+ class DutiesOpen extends base_command_1.BaseCommand {
9
+ static description = 'Open a duty in the browser (default) or skrr Desktop';
10
10
  static args = {
11
- id: core_1.Args.string({ description: 'Commitment ID', required: true, ignoreStdin: true }),
11
+ id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
12
12
  };
13
13
  static flags = {
14
14
  web: core_1.Flags.boolean({ char: 'w', description: 'Open in the browser (default)' }),
@@ -17,26 +17,26 @@ class CommitmentsOpen extends base_command_1.BaseCommand {
17
17
  };
18
18
  async run() {
19
19
  this.requireAuth();
20
- const { args, flags } = await this.parse(CommitmentsOpen);
20
+ const { args, flags } = await this.parse(DutiesOpen);
21
21
  let response;
22
22
  try {
23
- response = await commitments_1.commitmentApi.get(args.id);
23
+ response = await duties_1.dutyApi.get(args.id);
24
24
  }
25
25
  catch (err) {
26
- this.handleApiError(err, { subject: `commitment ${args.id}` });
26
+ this.handleApiError(err, { subject: `duty ${args.id}` });
27
27
  }
28
- if (!response?.commitment) {
28
+ if (!response?.duty) {
29
29
  this.failWithCliError({
30
- message: `Commitment ${args.id} was not found.`,
31
- code: 'COMMITMENT_NOT_FOUND',
30
+ message: `Duty ${args.id} was not found.`,
31
+ code: 'DUTY_NOT_FOUND',
32
32
  exit: 1,
33
33
  retryable: false,
34
34
  });
35
35
  }
36
36
  const result = await (0, entity_open_1.openEntity)({
37
37
  baseURL: this.cliConfig.baseURL,
38
- entity: response.commitment,
39
- urlFor: web_url_1.commitmentUrlFrom,
38
+ entity: response.duty,
39
+ urlFor: web_url_1.dutyUrlFrom,
40
40
  target: flags.app ? 'app' : 'web',
41
41
  json: Boolean(flags.json),
42
42
  });
@@ -47,4 +47,4 @@ class CommitmentsOpen extends base_command_1.BaseCommand {
47
47
  : result.url);
48
48
  }
49
49
  }
50
- exports.default = CommitmentsOpen;
50
+ exports.default = DutiesOpen;
@@ -1,6 +1,6 @@
1
- import type { CommitmentLoopStatus } from '@skrr-ai/data-provider';
1
+ import type { DutyLoopStatus } from '@skrr-ai/data-provider';
2
2
  import { BaseCommand } from '../../base-command';
3
- type SystemCommitmentRow = {
3
+ type SystemDutyRow = {
4
4
  id?: string;
5
5
  systemRole?: string;
6
6
  status?: string;
@@ -14,21 +14,21 @@ type SystemCommitmentRow = {
14
14
  * missing" read as reassurance under an Always-On-OFF header and loops that had never checked
15
15
  * (OSK-15438): an Agent that cannot run cannot have asked.
16
16
  */
17
- export declare function noQuestionsSentence(alwaysOn: boolean, roles: SystemCommitmentRow[]): string;
17
+ export declare function noQuestionsSentence(alwaysOn: boolean, roles: SystemDutyRow[]): string;
18
18
  /**
19
19
  * What the roster said about this Agent's loops, or why it could not be read. The review's own rows
20
20
  * carry only the stored lifecycle status; whether a loop is armed, when it next wakes, why it last
21
21
  * stopped and whether it can read its sources come from the roster (OSK-15438, OSK-15412).
22
22
  */
23
23
  export type OperatingReviewLoops = {
24
- rows: Map<string, CommitmentLoopStatus>;
24
+ rows: Map<string, DutyLoopStatus>;
25
25
  truncated: boolean;
26
26
  } | {
27
27
  error: string;
28
28
  };
29
29
  /** The review as text. Pure, so the whole output can be pinned. */
30
30
  export declare function formatOperatingReview(review: Record<string, unknown>, loops: OperatingReviewLoops): string[];
31
- export default class CommitmentsOperatingReview extends BaseCommand {
31
+ export default class DutiesOperatingReview extends BaseCommand {
32
32
  static description: string;
33
33
  static args: {
34
34
  agentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -4,14 +4,14 @@ exports.noQuestionsSentence = noQuestionsSentence;
4
4
  exports.formatOperatingReview = formatOperatingReview;
5
5
  const core_1 = require("@oclif/core");
6
6
  const base_command_1 = require("../../base-command");
7
- const commitment_loop_status_1 = require("../../lib/commitment-loop-status");
8
- const commitments_1 = require("../../lib/commitments");
7
+ const duty_loop_status_1 = require("../../lib/duty-loop-status");
8
+ const duties_1 = require("../../lib/duties");
9
9
  const RUN_RE = /^obj_/;
10
10
  /** What each silent loop is for, in the owner's terms rather than the role key. */
11
11
  const ROLE_PURPOSE = {
12
12
  conversation_continuity: 'remembers what we are working on',
13
13
  relationship_pulse: 'asks when your priorities change',
14
- commitment_incubator: 'proposes work worth committing to',
14
+ duty_incubator: 'proposes work worth committing to',
15
15
  open_loop_closer: 'chases promises to an outcome',
16
16
  agent_reflection: 'reviews its own effectiveness',
17
17
  };
@@ -45,7 +45,7 @@ function noQuestionsSentence(alwaysOn, roles) {
45
45
  /** The review as text. Pure, so the whole output can be pinned. */
46
46
  function formatOperatingReview(review, loops) {
47
47
  const lines = [];
48
- const roles = review.systemCommitments || [];
48
+ const roles = review.systemDuties || [];
49
49
  const alwaysOn = review.alwaysOn === true;
50
50
  const questions = review.openQuestions || [];
51
51
  const portfolio = review.portfolio || {};
@@ -87,11 +87,11 @@ function formatOperatingReview(review, loops) {
87
87
  if ('rows' in loops) {
88
88
  const row = role.id ? loops.rows.get(role.id) : undefined;
89
89
  if (row) {
90
- for (const line of (0, commitment_loop_status_1.formatLoopSummary)(row))
90
+ for (const line of (0, duty_loop_status_1.formatLoopSummary)(row))
91
91
  lines.push(` ${line}`);
92
92
  }
93
93
  else {
94
- lines.push(` loop detail: not in the roster read${loops.truncated ? ' (the roster is bounded and this Agent holds more)' : ''}; run \`skrr commitments status ${role.id ?? '<id>'}\``);
94
+ lines.push(` loop detail: not in the roster read${loops.truncated ? ' (the roster is bounded and this Agent holds more)' : ''}; run \`skrr duties status ${role.id ?? '<id>'}\``);
95
95
  }
96
96
  }
97
97
  }
@@ -107,31 +107,31 @@ function formatOperatingReview(review, loops) {
107
107
  lines.push(` asked ${ago(q.askedAt)}`);
108
108
  }
109
109
  lines.push('');
110
- const drafts = portfolio.draftCommitmentCount ?? 0;
111
- lines.push(`Business commitments: ${portfolio.activeCommitmentCount ?? 0} active, ${portfolio.pausedCommitmentCount ?? 0} paused${drafts > 0 ? `, ${drafts} draft` : ''}`);
110
+ const drafts = portfolio.draftDutyCount ?? 0;
111
+ lines.push(`Business duties: ${portfolio.activeDutyCount ?? 0} active, ${portfolio.pausedDutyCount ?? 0} paused${drafts > 0 ? `, ${drafts} draft` : ''}`);
112
112
  if (typeof metrics.awaitingApproval === 'number') {
113
113
  lines.push(`Proposals awaiting your approval: ${metrics.awaitingApproval}`);
114
114
  }
115
- lines.push(`Every commitment it holds, loop by loop: skrr commitments roster --agent ${review.agentId}`);
115
+ lines.push(`Every duty it holds, loop by loop: skrr duties roster --agent ${review.agentId}`);
116
116
  return lines;
117
117
  }
118
- class CommitmentsOperatingReview extends base_command_1.BaseCommand {
119
- static description = 'Read an agent’s system-managed commitment operating review';
118
+ class DutiesOperatingReview extends base_command_1.BaseCommand {
119
+ static description = 'Read an agent’s system-managed duty operating review';
120
120
  static args = {
121
121
  agentId: core_1.Args.string({ ignoreStdin: true, description: 'Agent ID', required: true }),
122
122
  };
123
123
  static flags = { json: core_1.Flags.boolean({ description: 'Output as JSON' }) };
124
124
  async run() {
125
125
  this.requireAuth();
126
- const { args, flags } = await this.parse(CommitmentsOperatingReview);
127
- // A Commitment id here answered "Agent not found" without saying an Agent id was wanted.
126
+ const { args, flags } = await this.parse(DutiesOperatingReview);
127
+ // A Duty id here answered "Agent not found" without saying an Agent id was wanted.
128
128
  if (RUN_RE.test(args.agentId)) {
129
- this.error(`${args.agentId} is a Commitment id; operating-review takes an Agent id. ` +
130
- `Use \`skrr commitments status ${args.agentId}\` for one Commitment.`, { exit: 1 });
129
+ this.error(`${args.agentId} is a Duty id; operating-review takes an Agent id. ` +
130
+ `Use \`skrr duties status ${args.agentId}\` for one Duty.`, { exit: 1 });
131
131
  }
132
132
  let result;
133
133
  try {
134
- result = await commitments_1.commitmentApi.operatingReview(args.agentId);
134
+ result = await duties_1.dutyApi.operatingReview(args.agentId);
135
135
  }
136
136
  catch (error) {
137
137
  this.handleApiError(error);
@@ -140,10 +140,10 @@ class CommitmentsOperatingReview extends base_command_1.BaseCommand {
140
140
  // pass for "nothing to report" either.
141
141
  let loops;
142
142
  try {
143
- const roster = await commitments_1.commitmentApi.roster(args.agentId);
143
+ const roster = await duties_1.dutyApi.roster(args.agentId);
144
144
  loops = {
145
- rows: new Map((Array.isArray(roster.commitments) ? roster.commitments : []).map((row) => [
146
- row.commitmentId,
145
+ rows: new Map((Array.isArray(roster.duties) ? roster.duties : []).map((row) => [
146
+ row.dutyId,
147
147
  row,
148
148
  ])),
149
149
  truncated: roster.truncated === true,
@@ -154,7 +154,7 @@ class CommitmentsOperatingReview extends base_command_1.BaseCommand {
154
154
  }
155
155
  if (flags.json) {
156
156
  const review = result;
157
- const roles = review.systemCommitments || [];
157
+ const roles = review.systemDuties || [];
158
158
  this.log(JSON.stringify('error' in loops
159
159
  ? { ...review, loopStatusError: loops.error }
160
160
  : {
@@ -171,4 +171,4 @@ class CommitmentsOperatingReview extends base_command_1.BaseCommand {
171
171
  this.log(line);
172
172
  }
173
173
  }
174
- exports.default = CommitmentsOperatingReview;
174
+ exports.default = DutiesOperatingReview;
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from '../../../base-command';
2
- export default class CommitmentPackActivate extends BaseCommand {
2
+ export default class DutyPackActivate extends BaseCommand {
3
3
  static description: string;
4
4
  static args: {
5
5
  id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;