@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
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.northstarWideFlag = exports.CRITICAL_COMMITMENT_APPROVAL_NOTE = exports.ALLOCATION_INPUT_FLAGS = exports.NORTHSTAR_WORKSPACE_CREATE_HELP = exports.NORTHSTAR_WORKSPACE_READ_HELP = exports.NORTHSTAR_WEB_SCOPE_SENTENCE = exports.PERSONAL_NORTHSTAR_WORKSPACE = exports.NORTHSTAR_LIST_DEFAULT_LIMIT = exports.northstarApi = exports.NORTHSTAR_RECOMMENDATION_STATUSES = exports.NORTHSTAR_PRIORITY_TIERS = exports.NORTHSTAR_STATUSES = exports.describeNorthstarReason = exports.NORTHSTAR_REASON_WORDS = exports.NORTHSTAR_REVIEW_STATUSES = exports.NORTHSTAR_MANAGEMENT_INTENT_KINDS = exports.NORTHSTAR_INTENT_VERDICTS = exports.NORTHSTAR_EXECUTION_MODES = exports.NORTHSTAR_APPROVAL_TRIGGERS = exports.NORTHSTAR_ANALYSIS_MODES = void 0;
3
+ exports.northstarWideFlag = exports.CRITICAL_DUTY_APPROVAL_NOTE = exports.ALLOCATION_INPUT_FLAGS = exports.NORTHSTAR_WORKSPACE_CREATE_HELP = exports.NORTHSTAR_WORKSPACE_READ_HELP = exports.NORTHSTAR_WEB_SCOPE_SENTENCE = exports.PERSONAL_NORTHSTAR_WORKSPACE = exports.NORTHSTAR_LIST_DEFAULT_LIMIT = exports.northstarApi = exports.NORTHSTAR_RECOMMENDATION_STATUSES = exports.NORTHSTAR_PRIORITY_TIERS = exports.NORTHSTAR_STATUSES = exports.describeNorthstarReason = exports.NORTHSTAR_REASON_WORDS = exports.NORTHSTAR_REVIEW_STATUSES = exports.NORTHSTAR_MANAGEMENT_INTENT_KINDS = exports.NORTHSTAR_INTENT_VERDICTS = exports.NORTHSTAR_EXECUTION_MODES = exports.NORTHSTAR_APPROVAL_TRIGGERS = exports.NORTHSTAR_ANALYSIS_MODES = void 0;
4
4
  exports.intentRisk = intentRisk;
5
5
  exports.shortReviewId = shortReviewId;
6
6
  exports.lookupReview = lookupReview;
@@ -34,11 +34,11 @@ exports.intentBudgetNote = intentBudgetNote;
34
34
  * northstars.ts — request-based client for the Northstar portfolio layer
35
35
  * (`/api/northstars/*`) and its Portfolio Governor.
36
36
  *
37
- * A **Northstar** groups and prioritizes many Commitments without owning their
37
+ * A **Northstar** groups and prioritizes many Duties without owning their
38
38
  * loop. The **Governor** is a MODE of its periodic review, not a separate
39
- * entity: a review rolls portfolio health up, allocates each Commitment a
39
+ * entity: a review rolls portfolio health up, allocates each Duty a
40
40
  * cadence band and run budget, and emits TYPED management intents that a single
41
- * router turns into `CommitmentControl` mutations — advisory, awaiting a human,
41
+ * router turns into `DutyControl` mutations — advisory, awaiting a human,
42
42
  * or (narrowly) automatic.
43
43
  *
44
44
  * Two dials, deliberately separate:
@@ -87,7 +87,7 @@ exports.NORTHSTAR_RECOMMENDATION_STATUSES = ['open', 'applied', 'dismissed'];
87
87
  * (`northstars intents`, `proposals show`) is rated by the governance policy for the change it
88
88
  * would make, and that is the rating the policy gates on, records and sends in the
89
89
  * awaiting-approval notice. They differ on purpose: a pause is recommended as `low` (it is the
90
- * lowest-priority commitment over the cap) and is a `high`-risk change to apply. Printed side by
90
+ * lowest-priority duty over the cap) and is a `high`-risk change to apply. Printed side by
91
91
  * side under one word they read as a contradiction (OSK-21192), so:
92
92
  *
93
93
  * - every surface that shows an INTENT shows the intent's own rating, labelled `risk`;
@@ -115,7 +115,7 @@ exports.northstarApi = {
115
115
  /* --- portfolio CRUD ---------------------------------------------------- */
116
116
  list: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)('/api/northstars', query)),
117
117
  create: (body) => data_provider_1.request.post('/api/northstars', body),
118
- // GET /:id returns `{ northstar, commitments }` — NOT a bare northstar.
118
+ // GET /:id returns `{ northstar, duties }` — NOT a bare northstar.
119
119
  // Unwrap before rendering, or every field reads as undefined.
120
120
  get: (id) => data_provider_1.request.get(base(id)),
121
121
  update: (id, body) => data_provider_1.request.patch(base(id), body),
@@ -292,15 +292,15 @@ function describeDecisionOutcome(result, ctx) {
292
292
  const continuation = result.continuation;
293
293
  const applyResult = result.applyResult;
294
294
  if (verdict === 'applied') {
295
- const commitmentId = stringField(continuation, 'commitmentId');
295
+ const dutyId = stringField(continuation, 'dutyId');
296
296
  const status = stringField(continuation, 'status');
297
297
  let text;
298
298
  if (status === 'draft_created') {
299
- text = `Created draft commitment ${commitmentId ?? ''}`.trim();
299
+ text = `Created draft duty ${dutyId ?? ''}`.trim();
300
300
  text += '. Configure and activate it when you are ready.';
301
301
  }
302
302
  else if (status === 'executor_reassigned') {
303
- text = `Reassigned the executor of ${commitmentId ?? 'the commitment'}.`;
303
+ text = `Reassigned the executor of ${dutyId ?? 'the duty'}.`;
304
304
  }
305
305
  if (replayed)
306
306
  text = `Already applied — nothing changed.${text ? ` ${text}` : ''}`;
@@ -311,10 +311,10 @@ function describeDecisionOutcome(result, ctx) {
311
311
  stringField(continuation, 'reason') ??
312
312
  stringField(continuation, 'status');
313
313
  let text;
314
- if (code === 'commitment_version_drift' || code === 'commitment_not_found') {
315
- const what = code === 'commitment_not_found'
316
- ? 'The commitment no longer exists'
317
- : 'The commitment changed after this was proposed';
314
+ if (code === 'duty_version_drift' || code === 'duty_not_found') {
315
+ const what = code === 'duty_not_found'
316
+ ? 'The duty no longer exists'
317
+ : 'The duty changed after this was proposed';
318
318
  text = `${what}, so the approval was not applied and the intent was invalidated. ${reviewNow}`;
319
319
  }
320
320
  else if (code) {
@@ -449,7 +449,7 @@ function renderNorthstarList(rows, log) {
449
449
  status: row.status,
450
450
  health: row.state?.health ?? 'unknown',
451
451
  tier: row.priority?.tier ?? '—',
452
- commitments: String(row.state?.activeCommitmentCount ?? 0),
452
+ duties: String(row.state?.activeDutyCount ?? 0),
453
453
  open: String(row.state?.openRecommendationCount ?? 0),
454
454
  reviewed: shortDate(row.state?.lastReviewedAt),
455
455
  workspace: northstarWorkspaceLabel(row, { short: true }),
@@ -459,7 +459,7 @@ function renderNorthstarList(rows, log) {
459
459
  { key: 'status', header: 'STATUS' },
460
460
  { key: 'health', header: 'HEALTH' },
461
461
  { key: 'tier', header: 'TIER' },
462
- { key: 'commitments', header: 'ACTIVE' },
462
+ { key: 'duties', header: 'ACTIVE' },
463
463
  { key: 'open', header: 'OPEN REC' },
464
464
  { key: 'reviewed', header: 'REVIEWED' },
465
465
  { key: 'workspace', header: 'WORKSPACE' },
@@ -468,8 +468,8 @@ function renderNorthstarList(rows, log) {
468
468
  /** A budget that was never set says so; `—` is kept for a timestamp that does not exist yet. */
469
469
  const notSet = (value) => value === undefined || value === null ? 'not set' : String(value);
470
470
  /**
471
- * The active-commitment cap, in words. `0` is accepted and stored, and a review
472
- * treats it as "no cap" (it does not flag every commitment over a cap of zero),
471
+ * The active-duty cap, in words. `0` is accepted and stored, and a review
472
+ * treats it as "no cap" (it does not flag every duty over a cap of zero),
473
473
  * so the screen says that rather than letting `0` read as a limit.
474
474
  */
475
475
  function describeMaxActive(value) {
@@ -484,7 +484,7 @@ function renderNorthstar(status, log) {
484
484
  if (ns.description)
485
485
  log(`About ${ns.description}`);
486
486
  log(`Priority ${ns.priority?.tier ?? '—'} / weight ${ns.priority?.weight ?? '—'}`);
487
- log(`Attention total ${notSet(ns.attentionBudget?.totalWeight)} · max active ${describeMaxActive(ns.attentionBudget?.maxActiveCommitments)}`);
487
+ log(`Attention total ${notSet(ns.attentionBudget?.totalWeight)} · max active ${describeMaxActive(ns.attentionBudget?.maxActiveDuties)}`);
488
488
  const cadence = ns.reviewCadence ?? {};
489
489
  log(`Review ${cadence.mode ?? 'manual'}${cadence.intervalMs ? ` every ${humanMs(cadence.intervalMs)}` : ''} next ${shortDate(cadence.nextReviewAt)} last ${shortDate(ns.state?.lastReviewedAt)}`);
490
490
  log(northstarWorkspaceLine(ns));
@@ -495,20 +495,20 @@ function renderNorthstar(status, log) {
495
495
  if (ns.state?.summary)
496
496
  log(`Summary ${ns.state.summary}`);
497
497
  log('');
498
- const commitments = status.commitments ?? [];
499
- if (commitments.length === 0) {
500
- log('No commitments linked to this northstar.');
498
+ const duties = status.duties ?? [];
499
+ if (duties.length === 0) {
500
+ log('No duties linked to this northstar.');
501
501
  }
502
502
  else {
503
- log(`Portfolio (${commitments.length}):`);
504
- (0, format_1.renderTable)(commitments.map((commitment) => ({
505
- id: commitment.id,
506
- title: String(commitment.title ?? ''),
507
- status: String(commitment.status ?? ''),
508
- health: String(commitment.assessment?.label ?? 'Outcome unknown'),
509
- tier: String(commitment.priority?.tier ?? '—'),
503
+ log(`Portfolio (${duties.length}):`);
504
+ (0, format_1.renderTable)(duties.map((duty) => ({
505
+ id: duty.id,
506
+ title: String(duty.title ?? ''),
507
+ status: String(duty.status ?? ''),
508
+ health: String(duty.assessment?.label ?? 'Outcome unknown'),
509
+ tier: String(duty.priority?.tier ?? '—'),
510
510
  })), [
511
- { key: 'id', header: 'COMMITMENT' },
511
+ { key: 'id', header: 'DUTY' },
512
512
  { key: 'title', header: 'TITLE', maxWidth: 40 },
513
513
  { key: 'status', header: 'STATUS' },
514
514
  { key: 'health', header: 'HEALTH' },
@@ -530,7 +530,7 @@ function renderRecommendationList(rows, log) {
530
530
  (0, format_1.renderTable)(rows.map((rec) => ({
531
531
  id: rec.id,
532
532
  kind: rec.kind,
533
- target: rec.commitmentId ?? rec.agentId ?? '—',
533
+ target: rec.dutyId ?? rec.agentId ?? '—',
534
534
  status: rec.status ?? 'open',
535
535
  risk: rec.riskLevel ?? 'low',
536
536
  reason: rec.reason ?? rec.title ?? '—',
@@ -572,7 +572,7 @@ function reviewerReadiness(reviewer) {
572
572
  // said "offline" about an agent that was reachable and merely not Always-On.
573
573
  return ` [not ready: ${reviewer.reason ? (0, data_provider_1.describeNorthstarReason)(reviewer.reason) : 'reason unknown'}]`;
574
574
  }
575
- /** The `governance configure` flags that move what a commitment's allocation is computed from. */
575
+ /** The `governance configure` flags that move what a duty's allocation is computed from. */
576
576
  exports.ALLOCATION_INPUT_FLAGS = [
577
577
  'max-runs-per-day',
578
578
  'clear-max-runs-per-day',
@@ -592,8 +592,8 @@ function readAllocationRefresh(response) {
592
592
  };
593
593
  }
594
594
  /**
595
- * What `governance configure` says about the linked commitments. The server re-applies a changed
596
- * budget or cadence band to every linked active commitment at once and answers how many it wrote,
595
+ * What `governance configure` says about the linked duties. The server re-applies a changed
596
+ * budget or cadence band to every linked active duty at once and answers how many it wrote,
597
597
  * how many it could not, and whether the refresh itself failed; the command discarded all of it and
598
598
  * re-read the status, so "nothing happened" and "applied to three" looked the same (OSK-21245).
599
599
  *
@@ -607,42 +607,42 @@ function describeAllocationRefresh(refresh, options) {
607
607
  return { lines, warnings };
608
608
  const bin = options.bin ?? 'skrr';
609
609
  if (refresh.failed) {
610
- warnings.push(`The policy is saved, but re-applying it to the linked commitments failed. The next review applies it, or run \`${bin} northstars review-now ${options.northstarId}\`.`);
610
+ warnings.push(`The policy is saved, but re-applying it to the linked duties failed. The next review applies it, or run \`${bin} northstars review-now ${options.northstarId}\`.`);
611
611
  }
612
612
  if (refresh.pending > 0) {
613
- warnings.push(`${refresh.pending} linked commitment(s) were out of date but could not be updated yet; the next review applies them.`);
613
+ warnings.push(`${refresh.pending} linked duty(s) were out of date but could not be updated yet; the next review applies them.`);
614
614
  }
615
615
  if (refresh.refreshed > 0) {
616
- lines.push(`Applied to ${refresh.refreshed} linked commitment(s) now.`);
616
+ lines.push(`Applied to ${refresh.refreshed} linked duty(s) now.`);
617
617
  }
618
618
  else if (options.inputsSent && !refresh.failed && refresh.pending === 0) {
619
- lines.push('Allocations already up to date: no linked commitment needed a write.');
619
+ lines.push('Allocations already up to date: no linked duty needed a write.');
620
620
  }
621
621
  return { lines, warnings };
622
622
  }
623
623
  /**
624
- * The `Allocations` line of `review-now`. The count is of commitments WRITTEN, so `0` does not say
624
+ * The `Allocations` line of `review-now`. The count is of duties WRITTEN, so `0` does not say
625
625
  * "nothing happened": it is what a review prints when a configure already applied the budget, or
626
- * when no active commitment is linked, or when no review row could be opened to write under.
626
+ * when no active duty is linked, or when no review row could be opened to write under.
627
627
  */
628
628
  function describeReviewAllocations(result) {
629
629
  const written = Array.isArray(result.allocations) ? result.allocations.length : 0;
630
630
  if (written > 0)
631
- return `Allocations ${written} commitment(s) re-budgeted`;
631
+ return `Allocations ${written} duty(s) re-budgeted`;
632
632
  if (!result.review)
633
633
  return 'Allocations not written: the review could not be recorded';
634
634
  if (Array.isArray(result.attention) && result.attention.length === 0) {
635
- return 'Allocations nothing to allocate: no active commitment is linked';
635
+ return 'Allocations nothing to allocate: no active duty is linked';
636
636
  }
637
- return 'Allocations already up to date: no commitment needed a write';
637
+ return 'Allocations already up to date: no duty needed a write';
638
638
  }
639
639
  /**
640
- * The sentence for a portfolio run budget smaller than the number of linked active commitments
640
+ * The sentence for a portfolio run budget smaller than the number of linked active duties
641
641
  * (OSK-21334): each still gets the floor of 1 run/day, so the ceilings add up to more than the
642
642
  * budget. The server derives it once (`portfolioRunBudgetFloor.js`) and carries it, when it
643
643
  * applies, on the `governance show` read, the `review-now` result and the effective policy's
644
644
  * `portfolio`; every one of those three prints THIS sentence, so none composes its own and they
645
- * cannot disagree. Absent from an older server, and from a budget that covers every commitment:
645
+ * cannot disagree. Absent from an older server, and from a budget that covers every duty:
646
646
  * no line, never a guess.
647
647
  *
648
648
  * Takes the carried field as it arrives (`unknown`), because two of the three callers read it off
@@ -650,23 +650,23 @@ function describeReviewAllocations(result) {
650
650
  */
651
651
  function runBudgetFloorNote(value) {
652
652
  const floor = value;
653
- if (!floor || floor.code !== 'run_budget_below_active_commitments')
653
+ if (!floor || floor.code !== 'run_budget_below_active_duties')
654
654
  return undefined;
655
655
  return typeof floor.message === 'string' && floor.message ? floor.message : undefined;
656
656
  }
657
657
  /**
658
- * What `critical_commitment` on the always-ask list does and does not do (OSK-21333).
658
+ * What `critical_duty` on the always-ask list does and does not do (OSK-21333).
659
659
  *
660
660
  * The list governs PROMOTION to critical (`critical_promotion`): remove the class and a bounded_auto
661
661
  * review applies a small promotion itself. It does not govern the way back: a demotion away from
662
662
  * critical is held for a person in `bounded_auto` whatever the list says (`critical_demotion`,
663
663
  * `NorthstarGovernancePolicy.classifyIntent`: the demotion rule never reads the list). The behaviour
664
- * is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_commitment off the approval list"),
664
+ * is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_duty off the approval list"),
665
665
  * the words by `cli/src/commands/northstars/__tests__/critical-approval-help.spec.ts`. The flag help
666
666
  * and the `Approval for` line of `governance show` both read this one sentence, so neither can
667
667
  * drift from the other.
668
668
  */
669
- exports.CRITICAL_COMMITMENT_APPROVAL_NOTE = 'critical_commitment governs promotion to critical only; demotion away from critical (critical_demotion) is always held for a person, whatever this list says';
669
+ exports.CRITICAL_DUTY_APPROVAL_NOTE = 'critical_duty governs promotion to critical only; demotion away from critical (critical_demotion) is always held for a person, whatever this list says';
670
670
  function renderGovernance(status, log) {
671
671
  const g = status.governance;
672
672
  log(`Northstar ${status.northstarId} (v${status.northstarVersion}, ${status.status})`);
@@ -689,16 +689,16 @@ function renderGovernance(status, log) {
689
689
  log(`Approval for ${g.requireApprovalFor.join(', ') ||
690
690
  'none — no change class is always held for a person (the execution mode still decides)'}`);
691
691
  // True whatever the list holds, so it is printed for an empty one too: removing
692
- // `critical_commitment` frees promotion, and never the way back.
693
- log(` ${exports.CRITICAL_COMMITMENT_APPROVAL_NOTE}.`);
692
+ // `critical_duty` frees promotion, and never the way back.
693
+ log(` ${exports.CRITICAL_DUTY_APPROVAL_NOTE}.`);
694
694
  if (g.requireApprovalFor.length === 0) {
695
695
  log(' ! No change class is on the always-ask list, so the execution mode alone decides what waits for you.');
696
696
  }
697
- log(`Protected ${g.protectedCommitmentIds.join(', ') || 'none'}`);
697
+ log(`Protected ${g.protectedDutyIds.join(', ') || 'none'}`);
698
698
  const eb = status.executionBudget ?? {};
699
699
  log(`Exec budget action runs/day ${notSet(eb.maxRunsPerDay)} · concurrent ${eb.maxConcurrentRuns == null ? 'not set' : `${eb.maxConcurrentRuns} (recorded, not enforced)`} · critical reserve ${notSet(eb.reserveWeightForCritical)}`);
700
700
  log(`Observation runs/day ${notSet(eb.maxObservationRunsPerDay)} · daily budgets reset at 00:00 UTC`);
701
- // A budget below the number of active commitments is still given to each at the floor of 1/day.
701
+ // A budget below the number of active duties is still given to each at the floor of 1/day.
702
702
  const floorNote = runBudgetFloorNote(status.runBudgetFloor);
703
703
  if (floorNote)
704
704
  log(` ! ${floorNote}`);
@@ -826,9 +826,9 @@ exports.northstarWideFlag = core_1.Flags.boolean({
826
826
  });
827
827
  /**
828
828
  * The WHY column never shrinks below this, however narrow the terminal. The reviewer's sentences run
829
- * to about 105 characters ("This northstar's attention budget allows 12 active commitments; this
829
+ * to about 105 characters ("This northstar's attention budget allows 12 active duties; this
830
830
  * is the lowest priority over the cap."), and the part that matters is often at the END of one
831
- * ("Commitment tier (high) drifted from northstar tier (low)."): at the old floor of 40 the default
831
+ * ("Duty tier (high) drifted from northstar tier (low)."): at the old floor of 40 the default
832
832
  * clip cut it before the fact, and the owner needed `--wide` to read the reason (OSK-21248).
833
833
  */
834
834
  const INTENT_WHY_MIN_WIDTH = 110;
@@ -861,7 +861,7 @@ function renderIntentList(intents, log, options = {}) {
861
861
  id: intent.id,
862
862
  review: intent.reviewId ? shortReviewId(intent.reviewId) : '—',
863
863
  kind: intent.kind,
864
- target: intent.targetCommitmentId ?? '—',
864
+ target: intent.targetDutyId ?? '—',
865
865
  verdict: intent.verdict,
866
866
  // The intent's OWN rating (see `intentRisk`), never its recommendation's.
867
867
  risk: intentRisk(intent),
@@ -874,7 +874,7 @@ function renderIntentList(intents, log, options = {}) {
874
874
  id: 'INTENT',
875
875
  review: 'REVIEW',
876
876
  kind: 'KIND',
877
- target: 'COMMITMENT',
877
+ target: 'DUTY',
878
878
  verdict: 'VERDICT',
879
879
  risk: 'RISK',
880
880
  source: 'SOURCE',
@@ -33,7 +33,7 @@ const REF_KINDS = {
33
33
  space: (id) => ({ kind: 'space', spaceId: id }),
34
34
  task: (id) => ({ kind: 'task', taskId: id }),
35
35
  goal: (id) => ({ kind: 'goal', goalId: id }),
36
- commitment: (id) => ({ kind: 'commitment', commitmentId: id }),
36
+ duty: (id) => ({ kind: 'duty', dutyId: id }),
37
37
  northstar: (id) => ({ kind: 'northstar', northstarId: id }),
38
38
  // The owner's workspace for an agent you hold. To open a published agent's
39
39
  // public page — the address you hand to someone else — use `listing:`.
@@ -15,16 +15,16 @@ exports.capabilityStatusLabel = capabilityStatusLabel;
15
15
  /** What a refused event-source code means, in words. An unknown code is printed as it is. */
16
16
  const SOURCE_REFUSAL_WORDS = {
17
17
  source_authorization_descriptor_invalid: 'authorization record incomplete (it names no id to check access against)',
18
- source_binding_detached: 'no longer matches a source attached to this Commitment',
18
+ source_binding_detached: 'no longer matches a source attached to this Duty',
19
19
  source_access_revoked: 'access refused',
20
20
  source_access_unavailable: 'access could not be checked just now',
21
21
  };
22
22
  /** What an attached Sensor's refusal means, in words (OSK-22592, OSK-22593). */
23
23
  const SENSOR_REFUSAL_WORDS = {
24
- sensor_not_found: 'no longer exists, so this Commitment cannot see events from it. Attach a working sensor or remove the reference',
24
+ sensor_not_found: 'no longer exists, so this Duty cannot see events from it. Attach a working sensor or remove the reference',
25
25
  sensor_disabled: 'is disabled, so it delivers nothing. Enable it or remove the reference',
26
- sensor_not_observer: 'is not an observing sensor, so it cannot wake this Commitment',
27
- sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this Commitment',
26
+ sensor_not_observer: 'is not an observing sensor, so it cannot wake this Duty',
27
+ sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this Duty',
28
28
  };
29
29
  /** One sentence per attached Sensor that is not delivering, or null when it is. */
30
30
  function sensorLine(row) {
@@ -74,7 +74,7 @@ function gateExplanationLines(gate) {
74
74
  switch (gate.reason) {
75
75
  case 'evidence_unconfigured':
76
76
  return [
77
- 'No freshness expectation is set, so nothing will flag this Commitment’s evidence as stale or silent.',
77
+ 'No freshness expectation is set, so nothing will flag this Duty’s evidence as stale or silent.',
78
78
  ];
79
79
  case 'evidence_stale': {
80
80
  const criteria = Array.isArray(gate.detail?.criteria)
@@ -48,7 +48,7 @@ export interface ProactiveAgentSpec {
48
48
  mode: OrchestratorMode;
49
49
  executePlan: boolean;
50
50
  };
51
- commitments?: Array<Record<string, unknown>>;
51
+ duties?: Array<Record<string, unknown>>;
52
52
  initialize?: {
53
53
  goals?: Array<{
54
54
  title: string;
@@ -146,7 +146,7 @@ export interface InstallPreviewResponse {
146
146
  without: string[];
147
147
  };
148
148
  runtime: {
149
- commitments: 'can_run' | 'cannot_run' | 'unknown';
149
+ duties: 'can_run' | 'cannot_run' | 'unknown';
150
150
  };
151
151
  }
152
152
  /** The defaults `--without` can decline; the server refuses any other name. */
@@ -223,7 +223,7 @@ export interface ApplyProactiveAgentResponse {
223
223
  enabled?: boolean | null;
224
224
  code?: string;
225
225
  }>;
226
- commitments?: Array<{
226
+ duties?: Array<{
227
227
  id: string;
228
228
  title?: string;
229
229
  status?: string;
@@ -249,7 +249,7 @@ export interface ApplyProactiveAgentResponse {
249
249
  enabled: boolean;
250
250
  origin: 'requested' | 'default';
251
251
  }> | null;
252
- commitments: Array<{
252
+ duties: Array<{
253
253
  id: string;
254
254
  title: string | null;
255
255
  status: string | null;
@@ -69,7 +69,7 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
69
69
  /* --------------------------------------------------------------------------
70
70
  * A Northstar intent, in words
71
71
  *
72
- * `proposals list` showed the intent's TITLE as its kind code (`pause_commitment`),
72
+ * `proposals list` showed the intent's TITLE as its kind code (`pause_duty`),
73
73
  * `proposals show` printed the raw JSON, `rejected` read as `discarded` (the inbox's
74
74
  * own vocabulary, which says a person discarded something), and the sentence the
75
75
  * governor wrote lived only inside the JSON. Everything below renders fields the
@@ -77,13 +77,13 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
77
77
  * ------------------------------------------------------------------------ */
78
78
  /** What each kind of intent does, as a phrase a target can follow. A new kind fails the build. */
79
79
  const INTENT_PHRASE = {
80
- pause_commitment: 'Pause',
81
- resume_commitment: 'Resume',
82
- reprioritize_commitment: 'Reprioritize',
83
- request_commitment_check: 'Check now:',
80
+ pause_duty: 'Pause',
81
+ resume_duty: 'Resume',
82
+ reprioritize_duty: 'Reprioritize',
83
+ request_duty_check: 'Check now:',
84
84
  set_execution_bounds: 'Change the run bounds of',
85
- create_commitment_proposal: 'Start a new commitment',
86
- reassign_commitment_proposal: 'Reassign',
85
+ create_duty_proposal: 'Start a new duty',
86
+ reassign_duty_proposal: 'Reassign',
87
87
  };
88
88
  /** The intent's own verdict, which the inbox flattens into proposed/kept/discarded/expired. */
89
89
  const VERDICT_WORDS = {
@@ -99,10 +99,10 @@ function isNorthstarIntentView(view) {
99
99
  return view.kind === 'northstar_intent' && Boolean(view.decisionContext?.snapshot);
100
100
  }
101
101
  function intentTarget(view) {
102
- const id = view.decisionContext?.snapshot.targetCommitmentId ?? view.commitmentId;
103
- if (view.commitmentTitle)
104
- return id ? `${view.commitmentTitle} (${id})` : view.commitmentTitle;
105
- return id ?? 'a commitment';
102
+ const id = view.decisionContext?.snapshot.targetDutyId ?? view.dutyId;
103
+ if (view.dutyTitle)
104
+ return id ? `${view.dutyTitle} (${id})` : view.dutyTitle;
105
+ return id ?? 'a duty';
106
106
  }
107
107
  /**
108
108
  * The intent's title in words: what it would DO, to what. Any other kind of proposal, and an
@@ -113,11 +113,11 @@ function proposalTitleFor(view) {
113
113
  return view.title;
114
114
  const snapshot = view.decisionContext.snapshot;
115
115
  const phrase = INTENT_PHRASE[snapshot.kind] ?? snapshot.kind;
116
- if (snapshot.kind === 'create_commitment_proposal') {
116
+ if (snapshot.kind === 'create_duty_proposal') {
117
117
  const title = snapshot.payload?.title;
118
118
  return typeof title === 'string' && title.trim() ? `${phrase}: ${title.trim()}` : phrase;
119
119
  }
120
- if (snapshot.kind === 'reassign_commitment_proposal') {
120
+ if (snapshot.kind === 'reassign_duty_proposal') {
121
121
  const agent = snapshot.payload?.agentId;
122
122
  const to = typeof agent === 'string' && agent ? ` to agent ${agent}` : '';
123
123
  return `${phrase} ${intentTarget(view)}${to}`;
@@ -155,14 +155,14 @@ function renderNorthstarIntentView(view) {
155
155
  const verdict = view.sourceStatus;
156
156
  // The intent's own rating (`intentRisk`), the one `northstars intents list` prints under RISK.
157
157
  const risk = (0, northstars_1.intentRisk)({ riskLevel: context.riskLevel ?? context.snapshot.riskLevel });
158
- const hasTarget = Boolean(context.snapshot.targetCommitmentId || view.commitmentId);
158
+ const hasTarget = Boolean(context.snapshot.targetDutyId || view.dutyId);
159
159
  const lines = [proposalTitleFor(view), ''];
160
160
  lines.push(`Proposal ${view.id}`);
161
161
  lines.push(`Kind ${context.snapshot.kind}`);
162
162
  // Said once, here, because this is where a person who saw a lower "recommendation risk" on the
163
163
  // recommendation this came from looks for the reason the two differ.
164
164
  lines.push(`Risk ${risk} (rated for this change; the recommendation behind it has its own "recommendation risk")`);
165
- lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new commitment)'}`);
165
+ lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new duty)'}`);
166
166
  if (context.reason)
167
167
  lines.push(`Why ${context.reason}`);
168
168
  lines.push(`Status ${VERDICT_WORDS[verdict] ?? verdict} (the inbox files it under "${view.disposition}")`);
@@ -193,7 +193,7 @@ function renderNorthstarIntentView(view) {
193
193
  }
194
194
  const continuation = view.continuation;
195
195
  if (continuation) {
196
- const bits = [continuation.status, continuation.commitmentId, continuation.reason].filter(Boolean);
196
+ const bits = [continuation.status, continuation.dutyId, continuation.reason].filter(Boolean);
197
197
  lines.push(`Continued ${bits.join(' · ')}`);
198
198
  }
199
199
  lines.push(`Revision ${JSON.stringify(view.revision)}`);
@@ -7,4 +7,8 @@ export declare const OVERSKY_ENVIRONMENT_ENDPOINTS: Readonly<{
7
7
  readonly appUrl: "https://oversky.dev";
8
8
  readonly realtimeUrl: "https://api.oversky.dev";
9
9
  }>;
10
+ readonly preprod: Readonly<{
11
+ readonly appUrl: "https://skrr.io";
12
+ readonly realtimeUrl: "https://api.skrr.io";
13
+ }>;
10
14
  }>;
@@ -12,4 +12,8 @@ exports.OVERSKY_ENVIRONMENT_ENDPOINTS = Object.freeze({
12
12
  "appUrl": "https://oversky.dev",
13
13
  "realtimeUrl": "https://api.oversky.dev"
14
14
  }),
15
+ preprod: Object.freeze({
16
+ "appUrl": "https://skrr.io",
17
+ "realtimeUrl": "https://api.skrr.io"
18
+ }),
15
19
  });
@@ -5,7 +5,7 @@ export declare const RESPONSIBILITY_CONTROL_SCOPES: readonly ["mute_updates", "p
5
5
  * Presentation and authority fields cannot become request fields. The canonical
6
6
  * service validates every attempt pin and rejects stale or enlarged selections.
7
7
  */
8
- export declare function controlFromPreview(commitmentId: string, preview: Record<string, unknown>, idempotencyKey: string, reason?: string): Record<string, unknown>;
8
+ export declare function controlFromPreview(dutyId: string, preview: Record<string, unknown>, idempotencyKey: string, reason?: string): Record<string, unknown>;
9
9
  export declare function renderControl(value: Record<string, unknown>, log: (line: string) => void): void;
10
10
  export declare function renderReadiness(value: Record<string, unknown>, log: (line: string) => void): void;
11
11
  export declare function renderProbe(value: Record<string, unknown>, log: (line: string) => void): void;
@@ -17,9 +17,9 @@ function record(value) {
17
17
  * Presentation and authority fields cannot become request fields. The canonical
18
18
  * service validates every attempt pin and rejects stale or enlarged selections.
19
19
  */
20
- function controlFromPreview(commitmentId, preview, idempotencyKey, reason) {
21
- if (preview.schemaVersion !== 1 || preview.commitmentId !== commitmentId) {
22
- throw new Error('Use a control preview for this exact Commitment.');
20
+ function controlFromPreview(dutyId, preview, idempotencyKey, reason) {
21
+ if (preview.schemaVersion !== 1 || preview.dutyId !== dutyId) {
22
+ throw new Error('Use a control preview for this exact Duty.');
23
23
  }
24
24
  if (preview.available !== true)
25
25
  throw new Error('The reviewed control is unavailable; refresh its preview.');
@@ -28,7 +28,7 @@ function controlFromPreview(commitmentId, preview, idempotencyKey, reason) {
28
28
  }
29
29
  if (typeof preview.expectedVersion !== 'number' || !Number.isSafeInteger(preview.expectedVersion)
30
30
  || preview.expectedVersion < 1)
31
- throw new Error('The preview must pin its Commitment version.');
31
+ throw new Error('The preview must pin its Duty version.');
32
32
  if (!idempotencyKey.trim() || idempotencyKey.length > 200)
33
33
  throw new Error('Use an idempotency key of 1..200 characters.');
34
34
  if (reason !== undefined && reason.length > 1000)
@@ -69,7 +69,7 @@ function renderControl(value, log) {
69
69
  if (value.controlId)
70
70
  log(`Control receipt: ${value.controlId}`);
71
71
  if (value.expectedVersion !== undefined)
72
- log(`Commitment version: ${value.expectedVersion}`);
72
+ log(`Duty version: ${value.expectedVersion}`);
73
73
  if (value.unavailableReason)
74
74
  log(`Reason: ${value.unavailableReason}`);
75
75
  for (const key of ['affected', 'remaining']) {
@@ -86,7 +86,7 @@ function renderControl(value, log) {
86
86
  log(String(warning));
87
87
  }
88
88
  function renderReadiness(value, log) {
89
- const activation = value.object === 'commitment_readiness_activation_receipt';
89
+ const activation = value.object === 'duty_readiness_activation_receipt';
90
90
  log(`${activation ? 'Activation' : 'Readiness'} receipt: ${value.id ?? 'not recorded'}`);
91
91
  if (activation) {
92
92
  log(`Validated version: ${value.validatedVersion ?? 'unknown'}`);
@@ -218,7 +218,7 @@ export declare const roleApi: {
218
218
  key: string;
219
219
  title: string;
220
220
  compassId?: string;
221
- commitmentIds: string[];
221
+ dutyIds: string[];
222
222
  }) => Promise<{
223
223
  spec: RoleOperatingSpec;
224
224
  omitted: Array<{
@@ -7,11 +7,11 @@ export interface TodoTaskRef {
7
7
  statusSnapshot: string;
8
8
  }
9
9
  /**
10
- * A direct Commitment block (Smart Schedule only). The server revalidates it at
10
+ * A direct Duty block (Smart Schedule only). The server revalidates it at
11
11
  * approval, so the CLI carries the draft's reference through untouched.
12
12
  */
13
- export interface TodoCommitmentRef {
14
- commitmentId: string;
13
+ export interface TodoDutyRef {
14
+ dutyId: string;
15
15
  titleSnapshot?: string;
16
16
  kindSnapshot?: string;
17
17
  versionSnapshot: number;
@@ -68,7 +68,7 @@ export interface ProposedTodo {
68
68
  confidence?: TodoConfidence;
69
69
  dropped?: boolean;
70
70
  taskRefs?: TodoTaskRef[];
71
- commitmentRefs?: TodoCommitmentRef[];
71
+ dutyRefs?: TodoDutyRef[];
72
72
  }
73
73
  /**
74
74
  * A block from the previously approved plan that approving this draft cancels
@@ -106,6 +106,7 @@ export interface SmartScheduleProposal {
106
106
  contextSummary: {
107
107
  spaceName?: string;
108
108
  taskScope?: 'lead_space' | 'no_lead_space' | 'unavailable';
109
+ taskScopeGuidance?: string;
109
110
  goalCount: number;
110
111
  openTaskCount: number;
111
112
  truncated: boolean;
@@ -189,7 +190,7 @@ export interface ApproveTodoInput {
189
190
  timezone?: string;
190
191
  durationMinutes?: number;
191
192
  taskRefs?: TodoTaskRef[];
192
- commitmentRefs?: TodoCommitmentRef[];
193
+ dutyRefs?: TodoDutyRef[];
193
194
  rationale?: string;
194
195
  confidence?: TodoConfidence;
195
196
  }
@@ -390,13 +390,13 @@ function renderProposal(proposal, log) {
390
390
  const ctx = proposal.contextSummary;
391
391
  log(`Context: ${ctx.openTaskCount} open task(s), ${ctx.goalCount} goal(s)` +
392
392
  `${ctx.spaceName ? ` · ${ctx.spaceName}` : ''}${ctx.truncated ? ' (truncated)' : ''}`);
393
- const taskScope = ctx.taskScope === 'lead_space'
394
- ? 'Tasks were checked only in the lead Space; assigned tasks in other Spaces were not checked.'
393
+ const taskScope = ctx.taskScopeGuidance || (ctx.taskScope === 'lead_space'
394
+ ? 'Tasks were checked only in the selected lead Space; unscoped tasks and tasks in other Spaces were not checked.'
395
395
  : ctx.taskScope === 'no_lead_space'
396
- ? 'No lead Space was found; assigned tasks in other Spaces were not checked.'
396
+ ? 'No lead Space was found, so no tasks were checked, including tasks assigned to this Agent. Make the Agent the lead of a Space and place the tasks there before planning again.'
397
397
  : ctx.taskScope === 'unavailable'
398
398
  ? 'Task context was unavailable; the count may be incomplete.'
399
- : 'Task search scope was not recorded for this proposal.';
399
+ : 'Task search scope was not recorded for this proposal.');
400
400
  log(`Task scope: ${taskScope}`);
401
401
  if (proposal.expiresAt) {
402
402
  const expires = (0, format_1.zonedTime)(proposal.expiresAt, zone);
@@ -556,7 +556,7 @@ function proposalToApproveTodos(proposal) {
556
556
  // The draft's references are part of what the reviewer approved. Leaving
557
557
  // them out makes the server create an unlinked To-Do (OSK-22413).
558
558
  ...(t.taskRefs ? { taskRefs: t.taskRefs } : {}),
559
- ...(t.commitmentRefs ? { commitmentRefs: t.commitmentRefs } : {}),
559
+ ...(t.dutyRefs ? { dutyRefs: t.dutyRefs } : {}),
560
560
  rationale: t.rationale,
561
561
  confidence: t.confidence,
562
562
  }));
@@ -1,7 +1,7 @@
1
1
  import type { SessionTaskOperation } from './session-task-endpoints';
2
2
  /**
3
3
  * The server's refusal when a session's run carries no Task at all — a
4
- * Commitment, Routine or other autonomous run that is not a Task run. It is
4
+ * Duty, Routine or other autonomous run that is not a Task run. It is
5
5
  * the ONE refusal that means "the session-scoped route does not apply here",
6
6
  * not "you may not write": such a run legitimately writes the Tasks it created
7
7
  * or was handed, through the generic `/api/tasks/:id/*` routes, where