@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,21 +1,21 @@
1
1
  /**
2
- * commitment-terms.ts — shared read-modify-write helpers for the four
3
- * Commitment terms (gap analysis §B1–§B4).
2
+ * duty-terms.ts — shared read-modify-write helpers for the four
3
+ * Duty terms (gap analysis §B1–§B4).
4
4
  *
5
5
  * ---------------------------------------------------------------------------
6
- * Why attach/detach are commands, not flags on `commitments update`
6
+ * Why attach/detach are commands, not flags on `duties update`
7
7
  * ---------------------------------------------------------------------------
8
- * `PATCH /api/commitments/:id` replaces `sensors` / `grants` / `reports`
9
- * WHOLESALE — the same merge hazard `commitments update` already documents for
8
+ * `PATCH /api/duties/:id` replaces `sensors` / `grants` / `reports`
9
+ * WHOLESALE — the same merge hazard `duties update` already documents for
10
10
  * `target` and `cadence`. A `--sensor` flag on that command would inherit the
11
- * replace semantics `--watch` has, so `--sensor X` on a commitment already
11
+ * replace semantics `--watch` has, so `--sensor X` on a duty already
12
12
  * watching Y would silently detach Y. "Attach" that detaches something else is
13
13
  * the kind of surface the audit spends §1.2 on.
14
14
  *
15
15
  * These helpers read the current array, apply ONE change, and write the whole
16
16
  * array back — so the command name and the effect agree.
17
17
  */
18
- import type { Commitment } from './commitments';
18
+ import type { Duty } from './duties';
19
19
  export type SensorRefInput = {
20
20
  kind: 'trigger' | 'ingress';
21
21
  refId: string;
@@ -31,7 +31,7 @@ export declare function sensorRefKey(ref: {
31
31
  refId?: string;
32
32
  }): string;
33
33
  /** Fetch the contract, or fail with a message naming the id the user typed. */
34
- export declare function loadCommitment(id: string): Promise<Commitment>;
34
+ export declare function loadDuty(id: string): Promise<Duty>;
35
35
  /**
36
36
  * Add one item to a term array, refusing a duplicate.
37
37
  *
@@ -42,4 +42,4 @@ export declare function appendUnique<T>(existing: readonly T[], next: T, keyOf:
42
42
  /** Remove one item from a term array, refusing a no-op. */
43
43
  export declare function removeByKey<T>(existing: readonly T[], key: string, keyOf: (item: T) => string, what: string): T[];
44
44
  /** Render the four terms for the human-readable command output. */
45
- export declare function renderCommitmentTerms(commitment: Commitment, log: (line: string) => void): void;
45
+ export declare function renderDutyTerms(duty: Duty, log: (line: string) => void): void;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  /**
3
- * commitment-terms.ts — shared read-modify-write helpers for the four
4
- * Commitment terms (gap analysis §B1–§B4).
3
+ * duty-terms.ts — shared read-modify-write helpers for the four
4
+ * Duty terms (gap analysis §B1–§B4).
5
5
  *
6
6
  * ---------------------------------------------------------------------------
7
- * Why attach/detach are commands, not flags on `commitments update`
7
+ * Why attach/detach are commands, not flags on `duties update`
8
8
  * ---------------------------------------------------------------------------
9
- * `PATCH /api/commitments/:id` replaces `sensors` / `grants` / `reports`
10
- * WHOLESALE — the same merge hazard `commitments update` already documents for
9
+ * `PATCH /api/duties/:id` replaces `sensors` / `grants` / `reports`
10
+ * WHOLESALE — the same merge hazard `duties update` already documents for
11
11
  * `target` and `cadence`. A `--sensor` flag on that command would inherit the
12
- * replace semantics `--watch` has, so `--sensor X` on a commitment already
12
+ * replace semantics `--watch` has, so `--sensor X` on a duty already
13
13
  * watching Y would silently detach Y. "Attach" that detaches something else is
14
14
  * the kind of surface the audit spends §1.2 on.
15
15
  *
@@ -19,11 +19,11 @@
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.parseSensorRef = parseSensorRef;
21
21
  exports.sensorRefKey = sensorRefKey;
22
- exports.loadCommitment = loadCommitment;
22
+ exports.loadDuty = loadDuty;
23
23
  exports.appendUnique = appendUnique;
24
24
  exports.removeByKey = removeByKey;
25
- exports.renderCommitmentTerms = renderCommitmentTerms;
26
- const commitments_1 = require("./commitments");
25
+ exports.renderDutyTerms = renderDutyTerms;
26
+ const duties_1 = require("./duties");
27
27
  const PARSE_SENSOR_REF_RE = /^(trigger|ingress):(.+)$/;
28
28
  /**
29
29
  * Parse a sensor reference. Accepts `ingress:<id>` / `trigger:<id>`, or a bare
@@ -47,13 +47,13 @@ function sensorRefKey(ref) {
47
47
  return `${ref.kind}:${ref.refId}`;
48
48
  }
49
49
  /** Fetch the contract, or fail with a message naming the id the user typed. */
50
- async function loadCommitment(id) {
51
- const res = await commitments_1.commitmentApi.get(id);
52
- const commitment = res?.commitment;
53
- if (!commitment) {
54
- throw new Error(`Commitment ${id} not found.`);
50
+ async function loadDuty(id) {
51
+ const res = await duties_1.dutyApi.get(id);
52
+ const duty = res?.duty;
53
+ if (!duty) {
54
+ throw new Error(`Duty ${id} not found.`);
55
55
  }
56
- return commitment;
56
+ return duty;
57
57
  }
58
58
  /**
59
59
  * Add one item to a term array, refusing a duplicate.
@@ -72,27 +72,27 @@ function appendUnique(existing, next, keyOf, what) {
72
72
  function removeByKey(existing, key, keyOf, what) {
73
73
  const out = existing.filter((item) => keyOf(item) !== key);
74
74
  if (out.length === existing.length) {
75
- throw new Error(`${what} ${key} is not attached to this commitment.`);
75
+ throw new Error(`${what} ${key} is not attached to this duty.`);
76
76
  }
77
77
  return out;
78
78
  }
79
79
  /** Render the four terms for the human-readable command output. */
80
- function renderCommitmentTerms(commitment, log) {
81
- const subject = commitment.subject;
80
+ function renderDutyTerms(duty, log) {
81
+ const subject = duty.subject;
82
82
  log(`Subject: ${subject?.externalKey
83
83
  ? `${subject.type} ${subject.label || subject.externalKey}`
84
84
  : 'standing (not about one instance)'}`);
85
- const sensors = commitment.sensors ?? [];
85
+ const sensors = duty.sensors ?? [];
86
86
  log(`Sensors: ${sensors.length
87
87
  ? sensors
88
88
  .map((s) => `${sensorRefKey(s)}${s.sensorType ? ` (${s.sensorType})` : ''}`)
89
89
  .join(', ')
90
90
  : 'nothing attached'}`);
91
- const grants = commitment.grants ?? [];
91
+ const grants = duty.grants ?? [];
92
92
  log(`Can use: ${grants.length
93
93
  ? grants.map((g) => g.provider || g.label || g.grantId).join(', ')
94
94
  : 'no credentials'}`);
95
- const reports = commitment.reports ?? [];
95
+ const reports = duty.reports ?? [];
96
96
  log(`Reports: ${reports.length
97
97
  ? reports
98
98
  .map((r) => `${r.destination}${r.destinationTarget ? `:${r.destinationTarget}` : ''} on ${r.on ?? 'material_change'}${r.format ? ` format ${r.format}` : ''}${r.review ? ` · reviewed by ${r.review}` : ''}`)
@@ -45,7 +45,7 @@ export declare function launchEntityUrl(url: string, target: EntityOpenTarget, {
45
45
  }): Promise<void>;
46
46
  /**
47
47
  * The common open decision for tasks, spaces, projects, goals, and
48
- * commitments. In a pipeline or redirected shell opening a GUI is surprising
48
+ * duties. In a pipeline or redirected shell opening a GUI is surprising
49
49
  * and often impossible, so return `opened: false` and let the command print
50
50
  * the canonical URL instead.
51
51
  */
@@ -78,7 +78,7 @@ async function launchEntityUrl(url, target, { platform = process.platform, run =
78
78
  }
79
79
  /**
80
80
  * The common open decision for tasks, spaces, projects, goals, and
81
- * commitments. In a pipeline or redirected shell opening a GUI is surprising
81
+ * duties. In a pipeline or redirected shell opening a GUI is surprising
82
82
  * and often impossible, so return `opened: false` and let the command print
83
83
  * the canonical URL instead.
84
84
  */
@@ -64,7 +64,7 @@ export declare function collapseWhitespace(value: string): string;
64
64
  * Render an array of row objects as a column-aligned table.
65
65
  *
66
66
  * `maxWidth` clips a column against a hard-coded guess, not against the
67
- * terminal — so `commitments list` printed `obj_585a163b-baa9-48e0-9374…` in a
67
+ * terminal — so `duties list` printed `obj_585a163b-baa9-48e0-9374…` in a
68
68
  * 190-column window (OSK-6175). For a prose column that is the right trade:
69
69
  * a clipped title still reads. For an identifier it is not, because the one
70
70
  * thing an ID column is FOR is being pasted into the next command, and
@@ -1,11 +1,11 @@
1
1
  import type { GrantAccess, GrantAccessSource } from '@skrr-ai/data-provider';
2
2
  import { type TableColumn } from './format';
3
- export declare const GRANT_PRINCIPAL_KINDS: readonly ["agent", "commitment"];
3
+ export declare const GRANT_PRINCIPAL_KINDS: readonly ["agent", "duty"];
4
4
  export declare const GRANT_CREDENTIAL_KINDS: readonly ["env", "bearer", "basic", "json"];
5
5
  export interface GrantPrincipal {
6
- kind: 'agent' | 'commitment';
6
+ kind: 'agent' | 'duty';
7
7
  agentId?: string;
8
- commitmentId?: string;
8
+ dutyId?: string;
9
9
  }
10
10
  export interface Grant {
11
11
  access?: GrantAccess;
@@ -19,7 +19,7 @@ exports.renderGrantList = renderGrantList;
19
19
  */
20
20
  const data_provider_1 = require("@skrr-ai/data-provider");
21
21
  const format_1 = require("./format");
22
- exports.GRANT_PRINCIPAL_KINDS = ['agent', 'commitment'];
22
+ exports.GRANT_PRINCIPAL_KINDS = ['agent', 'duty'];
23
23
  exports.GRANT_CREDENTIAL_KINDS = ['env', 'bearer', 'basic', 'json'];
24
24
  exports.grantApi = {
25
25
  list: (path) => data_provider_1.request.get(path),
@@ -73,7 +73,7 @@ function grantTableCells(g) {
73
73
  access: g.access
74
74
  ? `${g.access} (${g.accessSource === 'attested' ? 'attested' : 'declared, not verified'})`
75
75
  : 'undeclared',
76
- principal: principal?.agentId || principal?.commitmentId || principal?.kind || '—',
76
+ principal: principal?.agentId || principal?.dutyId || principal?.kind || '—',
77
77
  // NAMES only. This is the audit surface; a value never reaches the CLI.
78
78
  credential: g.credential?.configured
79
79
  ? g.credential.envKeys.join(',') || g.credential.kind || 'set'
@@ -20,6 +20,7 @@
20
20
  export declare const NO_CODING_AGENT_PROVIDER_LABEL = "none";
21
21
  export declare function harnessStatusLabel(row: {
22
22
  status?: string | null;
23
+ presenceStatus?: string | null;
23
24
  superseded?: boolean | null;
24
25
  }): string;
25
26
  export declare function isNoCodingAgentProvider(provider: string | null | undefined): boolean;
@@ -30,6 +30,10 @@ exports.NO_CODING_AGENT_PROVIDER_LABEL = 'none';
30
30
  function harnessStatusLabel(row) {
31
31
  if (row.superseded)
32
32
  return 'superseded';
33
+ if (row.presenceStatus === 'unknown')
34
+ return 'unknown';
35
+ if (row.presenceStatus === 'unconfirmed')
36
+ return 'unconfirmed';
33
37
  return typeof row.status === 'string' && row.status.length > 0 ? row.status : 'unknown';
34
38
  }
35
39
  function isNoCodingAgentProvider(provider) {
@@ -51,6 +51,8 @@ export interface Harness {
51
51
  sharedName?: string;
52
52
  aliased?: boolean;
53
53
  status?: string;
54
+ /** Whether this server could observe the local daemon's socket. */
55
+ presenceStatus?: 'connected' | 'unconfirmed' | 'unknown';
54
56
  /**
55
57
  * A later registration on the same machine replaced this row. Sent by both
56
58
  * the list and the single-row routes; human output shows it instead of the
@@ -217,6 +219,39 @@ export declare function getRuntimeMonthlySpend(): Promise<{
217
219
  export declare function listQuotaAccounts(): Promise<{
218
220
  accounts: QuotaAccountSummary[];
219
221
  }>;
222
+ export interface CurrentQuotaReport {
223
+ version: 1;
224
+ scope: 'recent_quota_observations';
225
+ provider: 'claude' | 'codex';
226
+ observedAt: number;
227
+ sampleFrom: number;
228
+ sampleLimit: number;
229
+ limitations: string[];
230
+ truncated: boolean;
231
+ account: {
232
+ externalAccountId: string;
233
+ accountLabel: string | null;
234
+ planTier: string | null;
235
+ daemonId: string | null;
236
+ lastSeenAt: number;
237
+ } | null;
238
+ readings: Array<{
239
+ capturedAt: number;
240
+ limitType: string;
241
+ scopeKey: string;
242
+ utilization: number;
243
+ resetsAt: number | null;
244
+ rateLimited: boolean;
245
+ windowSeconds: number | null;
246
+ stale: boolean;
247
+ resetState: 'unknown' | 'elapsed' | 'upcoming';
248
+ }>;
249
+ }
250
+ /** Recent, bounded observations; never falls back to the full history endpoint. */
251
+ export declare function getCurrentQuota(params: {
252
+ provider: 'claude' | 'codex';
253
+ externalAccountId?: string;
254
+ }): Promise<CurrentQuotaReport>;
220
255
  /**
221
256
  * One account's reading series plus the spend buckets over the same horizon.
222
257
  *
@@ -10,6 +10,7 @@ exports.getHarnessUsage = getHarnessUsage;
10
10
  exports.getAllHarnessUsage = getAllHarnessUsage;
11
11
  exports.getRuntimeMonthlySpend = getRuntimeMonthlySpend;
12
12
  exports.listQuotaAccounts = listQuotaAccounts;
13
+ exports.getCurrentQuota = getCurrentQuota;
13
14
  exports.getQuotaHistory = getQuotaHistory;
14
15
  exports.updateHarness = updateHarness;
15
16
  exports.forgetHarness = forgetHarness;
@@ -135,6 +136,13 @@ async function getRuntimeMonthlySpend() {
135
136
  async function listQuotaAccounts() {
136
137
  return (0, api_fetch_1.apiFetch)('/api/harnesses/quota/accounts');
137
138
  }
139
+ /** Recent, bounded observations; never falls back to the full history endpoint. */
140
+ async function getCurrentQuota(params) {
141
+ const query = new URLSearchParams({ provider: params.provider });
142
+ if (params.externalAccountId)
143
+ query.set('externalAccountId', params.externalAccountId);
144
+ return (0, api_fetch_1.apiFetch)('/api/harnesses/quota/current?' + query.toString());
145
+ }
138
146
  /**
139
147
  * One account's reading series plus the spend buckets over the same horizon.
140
148
  *
@@ -7,17 +7,17 @@ exports.initiativeSummaryLine = initiativeSummaryLine;
7
7
  * (`/api/initiatives/*`).
8
8
  *
9
9
  * An **Agent Initiative** is the proposal-and-decision surface for everything an
10
- * agent wants to do but may not do on its own. A Meta Commitment's Portfolio
10
+ * agent wants to do but may not do on its own. A Meta Duty's Portfolio
11
11
  * Steward emits a typed proposal; the router freezes it into an Initiative with
12
12
  * `approvalRequired: true`; and the owner's decision is what turns it into a
13
- * Commitment draft, a Space, or a Task.
13
+ * Duty draft, a Space, or a Task.
14
14
  *
15
15
  * The decision therefore has to be reachable from `skrr`: an agent whose
16
- * commitments execute on the local daemon otherwise produces proposals its own
16
+ * duties execute on the local daemon otherwise produces proposals its own
17
17
  * operator has to open a browser to answer.
18
18
  *
19
19
  * These endpoints are not exposed as `dataService.*` functions, so this talks to
20
- * them through the shared `request` transport, following `commitmentApi`.
20
+ * them through the shared `request` transport, following `dutyApi`.
21
21
  */
22
22
  const data_provider_1 = require("@skrr-ai/data-provider");
23
23
  const triggers_1 = require("./triggers");
@@ -39,6 +39,7 @@ import type { DaemonContactState, DaemonMaintenanceSummary, MachineIcon, Machine
39
39
  */
40
40
  export type MachineIdentityKind = 'runtime-lease' | 'machine-uuid' | 'stable-daemon' | 'daemon' | 'virtual-product' | 'harness';
41
41
  export interface MachineHarnessRow {
42
+ presenceStatus?: 'connected' | 'unconfirmed' | 'unknown';
42
43
  id: string;
43
44
  name: string;
44
45
  provider: string;
@@ -218,7 +219,7 @@ export interface MachineDaemonSummary {
218
219
  * `stale` when some are recorded online but none has been heard from lately,
219
220
  * `offline` otherwise.
220
221
  */
221
- status: 'online' | 'reconnecting' | 'stale' | 'offline';
222
+ status: 'online' | 'reconnecting' | 'stale' | 'unconfirmed' | 'unknown' | 'offline';
222
223
  lastSeenAt: string | null;
223
224
  harnessCount: number;
224
225
  /** Of those, how many a newer registration of the same provider replaced. */
@@ -45,7 +45,7 @@ function machineStateLabel(machine) {
45
45
  // (OSK-16442).
46
46
  if (machine.status === 'degraded') {
47
47
  const contact = machine.contact?.state;
48
- if (contact === 'stale' || contact === 'reconnecting')
48
+ if (contact === 'stale' || contact === 'reconnecting' || contact === 'unconfirmed' || contact === 'unknown')
49
49
  return data_provider_1.DAEMON_CONTACT_WORDS[contact];
50
50
  }
51
51
  if (machine.status !== 'offline')
@@ -144,7 +144,7 @@ function newerStamp(a, b) {
144
144
  return a;
145
145
  return new Date(b).getTime() > new Date(a).getTime() ? b : a;
146
146
  }
147
- const RANK = { online: 0, reconnecting: 1, stale: 2, offline: 3 };
147
+ const RANK = { online: 0, reconnecting: 1, unconfirmed: 2, unknown: 3, stale: 4, offline: 5 };
148
148
  /** The profile a harness row belongs to: the server's field, else the one its legacy daemon id names. */
149
149
  function harnessProfileOf(row) {
150
150
  if (row.profile)
@@ -97,7 +97,7 @@ function createNodeAdapter(opts = {}) {
97
97
  }
98
98
  // Correlation hints only. The task API never trusts these values directly:
99
99
  // it resolves the durable Run under the authenticated owner and verifies
100
- // the exact attempt session before stamping Commitment provenance.
100
+ // the exact attempt session before stamping Duty provenance.
101
101
  const autonomousRunId = process.env.OVERSKY_AUTONOMOUS_RUN_ID?.trim();
102
102
  const sessionId = process.env.OVERSKY_SESSION_ID?.trim();
103
103
  // The same pair for a Task run the AgentWorker executes (OSK-18132). It has
@@ -18,7 +18,7 @@ export declare function intentRisk(intent: {
18
18
  export declare function shortReviewId(id: string): string;
19
19
  /**
20
20
  * What a configure that changed the allocation inputs (the run budget, the critical reserve, the
21
- * cadence band) says it did to the linked commitments. Additive on the server: absent from an
21
+ * cadence band) says it did to the linked duties. Additive on the server: absent from an
22
22
  * older server, `allocationsPending` only when non-zero, `allocationsRefreshFailed` only on failure.
23
23
  */
24
24
  export type AllocationRefreshFields = {
@@ -173,8 +173,8 @@ export declare function personalNorthstarNote(context?: PersonalNorthstarContext
173
173
  export declare function createdNorthstarNote(northstar: WorkspaceBearing, context?: PersonalNorthstarContext): string | undefined;
174
174
  export declare function renderNorthstarList(rows: Northstar[], log: (line: string) => void): void;
175
175
  /**
176
- * The active-commitment cap, in words. `0` is accepted and stored, and a review
177
- * treats it as "no cap" (it does not flag every commitment over a cap of zero),
176
+ * The active-duty cap, in words. `0` is accepted and stored, and a review
177
+ * treats it as "no cap" (it does not flag every duty over a cap of zero),
178
178
  * so the screen says that rather than letting `0` read as a limit.
179
179
  */
180
180
  export declare function describeMaxActive(value: number | undefined): string;
@@ -187,7 +187,7 @@ export declare function renderRecommendationList(rows: NorthstarRecommendation[]
187
187
  * would run it is online.
188
188
  */
189
189
  export declare function reviewerReadiness(reviewer: NorthstarGovernanceStatus['reviewer']): string;
190
- /** The `governance configure` flags that move what a commitment's allocation is computed from. */
190
+ /** The `governance configure` flags that move what a duty's allocation is computed from. */
191
191
  export declare const ALLOCATION_INPUT_FLAGS: readonly ["max-runs-per-day", "clear-max-runs-per-day", "critical-reserve", "min-interval-hours", "max-interval-hours", "max-relative-change"];
192
192
  export type AllocationRefresh = {
193
193
  refreshed: number;
@@ -197,8 +197,8 @@ export type AllocationRefresh = {
197
197
  /** The refresh summary a configure response carries, or undefined from a server that sends none. */
198
198
  export declare function readAllocationRefresh(response: AllocationRefreshFields | undefined): AllocationRefresh | undefined;
199
199
  /**
200
- * What `governance configure` says about the linked commitments. The server re-applies a changed
201
- * budget or cadence band to every linked active commitment at once and answers how many it wrote,
200
+ * What `governance configure` says about the linked duties. The server re-applies a changed
201
+ * budget or cadence band to every linked active duty at once and answers how many it wrote,
202
202
  * how many it could not, and whether the refresh itself failed; the command discarded all of it and
203
203
  * re-read the status, so "nothing happened" and "applied to three" looked the same (OSK-21245).
204
204
  *
@@ -214,9 +214,9 @@ export declare function describeAllocationRefresh(refresh: AllocationRefresh | u
214
214
  warnings: string[];
215
215
  };
216
216
  /**
217
- * The `Allocations` line of `review-now`. The count is of commitments WRITTEN, so `0` does not say
217
+ * The `Allocations` line of `review-now`. The count is of duties WRITTEN, so `0` does not say
218
218
  * "nothing happened": it is what a review prints when a configure already applied the budget, or
219
- * when no active commitment is linked, or when no review row could be opened to write under.
219
+ * when no active duty is linked, or when no review row could be opened to write under.
220
220
  */
221
221
  export declare function describeReviewAllocations(result: {
222
222
  review?: unknown;
@@ -224,12 +224,12 @@ export declare function describeReviewAllocations(result: {
224
224
  attention?: unknown;
225
225
  }): string;
226
226
  /**
227
- * The sentence for a portfolio run budget smaller than the number of linked active commitments
227
+ * The sentence for a portfolio run budget smaller than the number of linked active duties
228
228
  * (OSK-21334): each still gets the floor of 1 run/day, so the ceilings add up to more than the
229
229
  * budget. The server derives it once (`portfolioRunBudgetFloor.js`) and carries it, when it
230
230
  * applies, on the `governance show` read, the `review-now` result and the effective policy's
231
231
  * `portfolio`; every one of those three prints THIS sentence, so none composes its own and they
232
- * cannot disagree. Absent from an older server, and from a budget that covers every commitment:
232
+ * cannot disagree. Absent from an older server, and from a budget that covers every duty:
233
233
  * no line, never a guess.
234
234
  *
235
235
  * Takes the carried field as it arrives (`unknown`), because two of the three callers read it off
@@ -237,18 +237,18 @@ export declare function describeReviewAllocations(result: {
237
237
  */
238
238
  export declare function runBudgetFloorNote(value: unknown): string | undefined;
239
239
  /**
240
- * What `critical_commitment` on the always-ask list does and does not do (OSK-21333).
240
+ * What `critical_duty` on the always-ask list does and does not do (OSK-21333).
241
241
  *
242
242
  * The list governs PROMOTION to critical (`critical_promotion`): remove the class and a bounded_auto
243
243
  * review applies a small promotion itself. It does not govern the way back: a demotion away from
244
244
  * critical is held for a person in `bounded_auto` whatever the list says (`critical_demotion`,
245
245
  * `NorthstarGovernancePolicy.classifyIntent`: the demotion rule never reads the list). The behaviour
246
- * is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_commitment off the approval list"),
246
+ * is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_duty off the approval list"),
247
247
  * the words by `cli/src/commands/northstars/__tests__/critical-approval-help.spec.ts`. The flag help
248
248
  * and the `Approval for` line of `governance show` both read this one sentence, so neither can
249
249
  * drift from the other.
250
250
  */
251
- export declare const 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";
251
+ export declare const 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";
252
252
  export declare function renderGovernance(status: NorthstarGovernanceStatus, log: (line: string) => void): void;
253
253
  /**
254
254
  * The automatic-change budget line.