@skrr-ai/cli 0.1.114 → 0.1.116

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 (1629) hide show
  1. package/dist/base-command.js +23 -10
  2. package/dist/commands/actions/browse.d.ts +6 -6
  3. package/dist/commands/actions/create.d.ts +12 -12
  4. package/dist/commands/actions/delete.d.ts +3 -3
  5. package/dist/commands/actions/install.d.ts +3 -3
  6. package/dist/commands/actions/list.d.ts +6 -6
  7. package/dist/commands/actions/publish.d.ts +4 -4
  8. package/dist/commands/actions/rate.d.ts +3 -3
  9. package/dist/commands/actions/show.d.ts +2 -2
  10. package/dist/commands/actions/update.d.ts +11 -11
  11. package/dist/commands/agenda/plan.d.ts +4 -4
  12. package/dist/commands/agenda/trigger/create.d.ts +10 -10
  13. package/dist/commands/agenda/trigger/delete.d.ts +4 -4
  14. package/dist/commands/agenda/trigger/fire.d.ts +3 -3
  15. package/dist/commands/agenda/trigger/list.d.ts +3 -3
  16. package/dist/commands/agent/call/cancel.d.ts +2 -2
  17. package/dist/commands/agent/call/request.d.ts +6 -6
  18. package/dist/commands/agent/call/show.d.ts +2 -2
  19. package/dist/commands/agent/message/context.d.ts +4 -4
  20. package/dist/commands/agent/message/context.js +21 -1
  21. package/dist/commands/agent/message/send.d.ts +26 -26
  22. package/dist/commands/agent/phone-call/request.d.ts +5 -5
  23. package/dist/commands/agent-groups/add.d.ts +3 -3
  24. package/dist/commands/agent-groups/create.d.ts +6 -6
  25. package/dist/commands/agent-groups/delete.d.ts +2 -2
  26. package/dist/commands/agent-groups/list.d.ts +1 -1
  27. package/dist/commands/agent-groups/remove.d.ts +3 -3
  28. package/dist/commands/agent-groups/show.d.ts +2 -2
  29. package/dist/commands/agent-groups/update.d.ts +7 -7
  30. package/dist/commands/agent-shares/accept.d.ts +2 -2
  31. package/dist/commands/agent-shares/create.d.ts +5 -5
  32. package/dist/commands/agent-shares/decline.d.ts +3 -3
  33. package/dist/commands/agent-shares/leave.d.ts +2 -2
  34. package/dist/commands/agent-shares/list-for.d.ts +2 -2
  35. package/dist/commands/agent-shares/received.d.ts +5 -5
  36. package/dist/commands/agent-shares/revoke.d.ts +2 -2
  37. package/dist/commands/agent-shares/sent.d.ts +4 -4
  38. package/dist/commands/agent-shares/with.d.ts +2 -2
  39. package/dist/commands/agent-worker.d.ts +2 -2
  40. package/dist/commands/agents/actions/create.d.ts +18 -18
  41. package/dist/commands/agents/actions/delete.d.ts +4 -4
  42. package/dist/commands/agents/actions/list.d.ts +2 -2
  43. package/dist/commands/agents/actions/run.d.ts +5 -5
  44. package/dist/commands/agents/actions/schedule.d.ts +19 -19
  45. package/dist/commands/agents/actions/show.d.ts +3 -3
  46. package/dist/commands/agents/actions/targets.d.ts +4 -4
  47. package/dist/commands/agents/actions/update.d.ts +17 -17
  48. package/dist/commands/agents/activity.d.ts +5 -5
  49. package/dist/commands/agents/always-on/disable.d.ts +3 -3
  50. package/dist/commands/agents/always-on/enable.d.ts +3 -3
  51. package/dist/commands/agents/always-on/reconcile.d.ts +2 -2
  52. package/dist/commands/agents/always-on/status.d.ts +2 -2
  53. package/dist/commands/agents/api-actions/add.d.ts +15 -15
  54. package/dist/commands/agents/api-actions/index.d.ts +2 -2
  55. package/dist/commands/agents/api-actions/remove.d.ts +3 -3
  56. package/dist/commands/agents/attach-harness.d.ts +8 -8
  57. package/dist/commands/agents/avatar/default/apply.d.ts +3 -3
  58. package/dist/commands/agents/avatar/default/index.d.ts +1 -1
  59. package/dist/commands/agents/avatar/default/set.d.ts +6 -6
  60. package/dist/commands/agents/avatar/generate.d.ts +3 -3
  61. package/dist/commands/agents/avatar/library/delete.d.ts +2 -2
  62. package/dist/commands/agents/avatar/library/index.d.ts +1 -1
  63. package/dist/commands/agents/avatar/presets.d.ts +2 -2
  64. package/dist/commands/agents/avatar/upload.d.ts +3 -3
  65. package/dist/commands/agents/badge.d.ts +4 -4
  66. package/dist/commands/agents/categories/create.d.ts +5 -5
  67. package/dist/commands/agents/categories/delete.d.ts +2 -2
  68. package/dist/commands/agents/categories/index.d.ts +4 -4
  69. package/dist/commands/agents/categories/update.d.ts +6 -6
  70. package/dist/commands/agents/channels/connect.d.ts +3 -3
  71. package/dist/commands/agents/channels/delete.d.ts +4 -4
  72. package/dist/commands/agents/channels/disconnect.d.ts +3 -3
  73. package/dist/commands/agents/channels/show.d.ts +3 -3
  74. package/dist/commands/agents/channels/test.d.ts +4 -4
  75. package/dist/commands/agents/channels/update.d.ts +4 -4
  76. package/dist/commands/agents/chat.d.ts +15 -15
  77. package/dist/commands/agents/chat.js +11 -1
  78. package/dist/commands/agents/create.d.ts +45 -45
  79. package/dist/commands/agents/delete.d.ts +2 -2
  80. package/dist/commands/agents/duplicate.d.ts +2 -2
  81. package/dist/commands/agents/egress.d.ts +8 -8
  82. package/dist/commands/agents/embed.d.ts +2 -2
  83. package/dist/commands/agents/endpoint/connect.d.ts +6 -6
  84. package/dist/commands/agents/endpoint/disable.d.ts +2 -2
  85. package/dist/commands/agents/endpoint/enable.d.ts +2 -2
  86. package/dist/commands/agents/endpoint/show.d.ts +2 -2
  87. package/dist/commands/agents/ensure-default.d.ts +2 -2
  88. package/dist/commands/agents/eval/index.d.ts +8 -8
  89. package/dist/commands/agents/eval/list.d.ts +3 -3
  90. package/dist/commands/agents/eval/show.d.ts +3 -3
  91. package/dist/commands/agents/files/delete.d.ts +4 -4
  92. package/dist/commands/agents/files/list.d.ts +2 -2
  93. package/dist/commands/agents/files/move.d.ts +4 -4
  94. package/dist/commands/agents/files/rename.d.ts +4 -4
  95. package/dist/commands/agents/files/upload.d.ts +4 -4
  96. package/dist/commands/agents/folders/create.d.ts +4 -4
  97. package/dist/commands/agents/folders/delete.d.ts +4 -4
  98. package/dist/commands/agents/folders/list.d.ts +2 -2
  99. package/dist/commands/agents/folders/show.d.ts +3 -3
  100. package/dist/commands/agents/folders/update.d.ts +5 -5
  101. package/dist/commands/agents/goals/assign.d.ts +3 -3
  102. package/dist/commands/agents/goals/list.d.ts +2 -2
  103. package/dist/commands/agents/goals/unassign.d.ts +3 -3
  104. package/dist/commands/agents/identity.d.ts +2 -2
  105. package/dist/commands/agents/import.d.ts +4 -4
  106. package/dist/commands/agents/instructions/add.d.ts +11 -11
  107. package/dist/commands/agents/instructions/disable.d.ts +3 -3
  108. package/dist/commands/agents/instructions/edit.d.ts +6 -6
  109. package/dist/commands/agents/instructions/enable.d.ts +3 -3
  110. package/dist/commands/agents/instructions/move.d.ts +5 -5
  111. package/dist/commands/agents/instructions/preview.d.ts +3 -3
  112. package/dist/commands/agents/instructions/remove.d.ts +3 -3
  113. package/dist/commands/agents/instructions/set.d.ts +6 -6
  114. package/dist/commands/agents/instructions/show.d.ts +4 -4
  115. package/dist/commands/agents/instructions/upgrade.d.ts +5 -5
  116. package/dist/commands/agents/intuitions/accept.d.ts +4 -4
  117. package/dist/commands/agents/intuitions/dismiss.d.ts +4 -4
  118. package/dist/commands/agents/intuitions/generate.d.ts +3 -3
  119. package/dist/commands/agents/intuitions/list.d.ts +2 -2
  120. package/dist/commands/agents/intuitions/stats.d.ts +2 -2
  121. package/dist/commands/agents/list.d.ts +10 -10
  122. package/dist/commands/agents/mailbox/messages.d.ts +4 -4
  123. package/dist/commands/agents/mailbox/show.d.ts +2 -2
  124. package/dist/commands/agents/manager/ensure.d.ts +1 -1
  125. package/dist/commands/agents/mute.d.ts +2 -2
  126. package/dist/commands/agents/notepad/delete.d.ts +3 -3
  127. package/dist/commands/agents/notepad/show.d.ts +2 -2
  128. package/dist/commands/agents/notepad/update.d.ts +4 -4
  129. package/dist/commands/agents/operating-plan.d.ts +2 -2
  130. package/dist/commands/agents/overview.d.ts +3 -3
  131. package/dist/commands/agents/pin.d.ts +2 -2
  132. package/dist/commands/agents/plan-day.d.ts +9 -9
  133. package/dist/commands/agents/preferences/show.d.ts +2 -2
  134. package/dist/commands/agents/preferences/update.d.ts +5 -5
  135. package/dist/commands/agents/pull.d.ts +3 -3
  136. package/dist/commands/agents/push.d.ts +3 -3
  137. package/dist/commands/agents/query.d.ts +4 -4
  138. package/dist/commands/agents/reflect.d.ts +7 -7
  139. package/dist/commands/agents/releases/ci-publish.d.ts +10 -10
  140. package/dist/commands/agents/releases/create.d.ts +8 -8
  141. package/dist/commands/agents/releases/delist.d.ts +5 -5
  142. package/dist/commands/agents/releases/known-issues/add.d.ts +5 -5
  143. package/dist/commands/agents/releases/known-issues/list.d.ts +3 -3
  144. package/dist/commands/agents/releases/known-issues/update.d.ts +7 -7
  145. package/dist/commands/agents/releases/list.d.ts +2 -2
  146. package/dist/commands/agents/releases/restore.d.ts +3 -3
  147. package/dist/commands/agents/releases/rollback.d.ts +3 -3
  148. package/dist/commands/agents/releases/test-install.d.ts +6 -6
  149. package/dist/commands/agents/releases/trusted-publishers/list.d.ts +2 -2
  150. package/dist/commands/agents/releases/trusted-publishers/remove.d.ts +3 -3
  151. package/dist/commands/agents/releases/trusted-publishers/set.d.ts +7 -7
  152. package/dist/commands/agents/revert.d.ts +3 -3
  153. package/dist/commands/agents/roles/capture.d.ts +7 -7
  154. package/dist/commands/agents/roles/example.d.ts +2 -2
  155. package/dist/commands/agents/roles/export.d.ts +5 -5
  156. package/dist/commands/agents/roles/install.d.ts +4 -4
  157. package/dist/commands/agents/roles/list.d.ts +2 -2
  158. package/dist/commands/agents/roles/preview.d.ts +7 -7
  159. package/dist/commands/agents/roles/withdraw.d.ts +4 -4
  160. package/dist/commands/agents/scene-background/upload.d.ts +4 -4
  161. package/dist/commands/agents/schedule-overview.d.ts +6 -6
  162. package/dist/commands/agents/schedule-trace.d.ts +7 -7
  163. package/dist/commands/agents/schedule.d.ts +15 -15
  164. package/dist/commands/agents/share.d.ts +4 -4
  165. package/dist/commands/agents/show.d.ts +3 -3
  166. package/dist/commands/agents/skills/add.d.ts +4 -4
  167. package/dist/commands/agents/skills/list.d.ts +3 -3
  168. package/dist/commands/agents/skills/remove.d.ts +4 -4
  169. package/dist/commands/agents/spaces.d.ts +3 -3
  170. package/dist/commands/agents/spawn.d.ts +12 -12
  171. package/dist/commands/agents/todos/cancel.d.ts +3 -3
  172. package/dist/commands/agents/todos/create.d.ts +7 -7
  173. package/dist/commands/agents/todos/list.d.ts +3 -3
  174. package/dist/commands/agents/tone/clear.d.ts +3 -3
  175. package/dist/commands/agents/tone/inherit.d.ts +2 -2
  176. package/dist/commands/agents/tone/set.d.ts +4 -4
  177. package/dist/commands/agents/tone/show.d.ts +4 -4
  178. package/dist/commands/agents/tools/auth.d.ts +2 -2
  179. package/dist/commands/agents/tools/calls.d.ts +2 -2
  180. package/dist/commands/agents/tools/index.d.ts +2 -2
  181. package/dist/commands/agents/transfer-workspace.d.ts +3 -3
  182. package/dist/commands/agents/triggers/create.d.ts +65 -65
  183. package/dist/commands/agents/triggers/delete.d.ts +4 -4
  184. package/dist/commands/agents/triggers/disable.d.ts +3 -3
  185. package/dist/commands/agents/triggers/enable.d.ts +3 -3
  186. package/dist/commands/agents/triggers/fire.d.ts +4 -4
  187. package/dist/commands/agents/triggers/list.d.ts +6 -6
  188. package/dist/commands/agents/triggers/policy.d.ts +11 -11
  189. package/dist/commands/agents/triggers/replay.d.ts +5 -5
  190. package/dist/commands/agents/triggers/runs.d.ts +6 -6
  191. package/dist/commands/agents/triggers/show.d.ts +3 -3
  192. package/dist/commands/agents/triggers/update.d.ts +64 -64
  193. package/dist/commands/agents/unmute.d.ts +2 -2
  194. package/dist/commands/agents/unpin.d.ts +2 -2
  195. package/dist/commands/agents/upcoming.d.ts +8 -8
  196. package/dist/commands/agents/update.d.ts +46 -46
  197. package/dist/commands/agents/usage-cap.d.ts +7 -7
  198. package/dist/commands/agents/validate.d.ts +2 -2
  199. package/dist/commands/agents/vanity.d.ts +3 -3
  200. package/dist/commands/agents/versions.d.ts +2 -2
  201. package/dist/commands/agents/visibility.d.ts +17 -17
  202. package/dist/commands/api-keys/create.d.ts +7 -7
  203. package/dist/commands/api-keys/list.d.ts +2 -2
  204. package/dist/commands/api-keys/revoke.d.ts +3 -3
  205. package/dist/commands/api-keys/rotate.d.ts +3 -3
  206. package/dist/commands/apps/channel.d.ts +4 -4
  207. package/dist/commands/apps/check-draft.d.ts +2 -2
  208. package/dist/commands/apps/check.d.ts +5 -5
  209. package/dist/commands/apps/create.d.ts +5 -5
  210. package/dist/commands/apps/data/put.d.ts +8 -8
  211. package/dist/commands/apps/data/query.d.ts +10 -10
  212. package/dist/commands/apps/disclosure.d.ts +6 -6
  213. package/dist/commands/apps/file/cat.d.ts +5 -5
  214. package/dist/commands/apps/file/ls.d.ts +3 -3
  215. package/dist/commands/apps/file/mv.d.ts +5 -5
  216. package/dist/commands/apps/file/rm.d.ts +5 -5
  217. package/dist/commands/apps/file/write.d.ts +7 -7
  218. package/dist/commands/apps/install.d.ts +9 -9
  219. package/dist/commands/apps/installations/list.d.ts +3 -3
  220. package/dist/commands/apps/installations/show.d.ts +2 -2
  221. package/dist/commands/apps/layout/set.d.ts +3 -3
  222. package/dist/commands/apps/layout/show.d.ts +1 -1
  223. package/dist/commands/apps/list.d.ts +2 -2
  224. package/dist/commands/apps/logs.d.ts +3 -3
  225. package/dist/commands/apps/preview.d.ts +2 -2
  226. package/dist/commands/apps/publish/propose.d.ts +4 -4
  227. package/dist/commands/apps/pull.d.ts +4 -4
  228. package/dist/commands/apps/push.d.ts +5 -5
  229. package/dist/commands/apps/reconsent.d.ts +3 -3
  230. package/dist/commands/apps/report.d.ts +5 -5
  231. package/dist/commands/apps/resume.d.ts +2 -2
  232. package/dist/commands/apps/settings/set.d.ts +4 -4
  233. package/dist/commands/apps/settings/show.d.ts +2 -2
  234. package/dist/commands/apps/show.d.ts +2 -2
  235. package/dist/commands/apps/suspend.d.ts +2 -2
  236. package/dist/commands/apps/uninstall.d.ts +3 -3
  237. package/dist/commands/apps/upgrade.d.ts +4 -4
  238. package/dist/commands/apps/version/create.d.ts +4 -4
  239. package/dist/commands/apps/version/show.d.ts +2 -2
  240. package/dist/commands/apps/versions.d.ts +2 -2
  241. package/dist/commands/apps/webhooks/list.d.ts +2 -2
  242. package/dist/commands/balance/history.d.ts +3 -3
  243. package/dist/commands/balance/overage.d.ts +2 -2
  244. package/dist/commands/balance/plan.d.ts +1 -1
  245. package/dist/commands/balance/show.d.ts +1 -1
  246. package/dist/commands/balance/statement.d.ts +5 -5
  247. package/dist/commands/balance/usage/breakdown.d.ts +4 -4
  248. package/dist/commands/balance/usage/events.d.ts +5 -5
  249. package/dist/commands/balance/usage.d.ts +1 -1
  250. package/dist/commands/browser/cloud-agents.d.ts +2 -2
  251. package/dist/commands/browser/doctor.d.ts +1 -1
  252. package/dist/commands/browser/install.d.ts +4 -4
  253. package/dist/commands/browser/skill/show.d.ts +1 -1
  254. package/dist/commands/browser/status.d.ts +1 -1
  255. package/dist/commands/browser/uninstall.d.ts +4 -4
  256. package/dist/commands/characters/list.d.ts +3 -3
  257. package/dist/commands/chats/agents/add.d.ts +3 -3
  258. package/dist/commands/chats/agents/remove.d.ts +3 -3
  259. package/dist/commands/chats/create.d.ts +4 -4
  260. package/dist/commands/chats/delete.d.ts +2 -2
  261. package/dist/commands/chats/files/delete.d.ts +3 -3
  262. package/dist/commands/chats/files/list.d.ts +2 -2
  263. package/dist/commands/chats/files/move.d.ts +4 -4
  264. package/dist/commands/chats/files/rename.d.ts +4 -4
  265. package/dist/commands/chats/folders/create.d.ts +3 -3
  266. package/dist/commands/chats/folders/delete.d.ts +3 -3
  267. package/dist/commands/chats/folders/list.d.ts +2 -2
  268. package/dist/commands/chats/folders/update.d.ts +4 -4
  269. package/dist/commands/chats/join.d.ts +2 -2
  270. package/dist/commands/chats/list.d.ts +5 -5
  271. package/dist/commands/chats/messages.d.ts +5 -5
  272. package/dist/commands/chats/preferences/show.d.ts +1 -1
  273. package/dist/commands/chats/preferences/update.d.ts +3 -3
  274. package/dist/commands/chats/send.d.ts +9 -9
  275. package/dist/commands/chats/show.d.ts +2 -2
  276. package/dist/commands/chats/spaces/create.d.ts +4 -4
  277. package/dist/commands/chats/spaces/link.d.ts +3 -3
  278. package/dist/commands/chats/spaces/list.d.ts +2 -2
  279. package/dist/commands/chats/spaces/unlink.d.ts +3 -3
  280. package/dist/commands/chats/triggers/set.d.ts +22 -22
  281. package/dist/commands/chats/triggers/show.d.ts +2 -2
  282. package/dist/commands/chats/update.d.ts +5 -5
  283. package/dist/commands/chats/widgets/create.d.ts +5 -5
  284. package/dist/commands/chats/widgets/delete.d.ts +3 -3
  285. package/dist/commands/chats/widgets/list.d.ts +2 -2
  286. package/dist/commands/chats/widgets/update.d.ts +6 -6
  287. package/dist/commands/code/doctor.d.ts +2 -2
  288. package/dist/commands/code/handover.d.ts +9 -9
  289. package/dist/commands/code/install.d.ts +5 -5
  290. package/dist/commands/code/install.js +2 -34
  291. package/dist/commands/code/jobs/approve.d.ts +2 -2
  292. package/dist/commands/code/jobs/cancel.d.ts +2 -2
  293. package/dist/commands/code/jobs/list.d.ts +4 -4
  294. package/dist/commands/code/jobs/run.d.ts +9 -9
  295. package/dist/commands/code/jobs/show.d.ts +2 -2
  296. package/dist/commands/code/migrate.d.ts +4 -4
  297. package/dist/commands/code/rollback.d.ts +1 -1
  298. package/dist/commands/code/skrr-agent.d.ts +5 -5
  299. package/dist/commands/code/update.d.ts +8 -8
  300. package/dist/commands/code/update.js +2 -34
  301. package/dist/commands/commands.d.ts +6 -6
  302. package/dist/commands/commands.js +2 -1
  303. package/dist/commands/commerce/entitlements/explain.d.ts +2 -2
  304. package/dist/commands/commerce/fees/show.d.ts +2 -2
  305. package/dist/commands/commerce/incidents/audit.d.ts +3 -3
  306. package/dist/commands/commerce/incidents/list.d.ts +4 -4
  307. package/dist/commands/commerce/incidents/resolve.d.ts +3 -3
  308. package/dist/commands/commerce/incidents/retry.d.ts +3 -3
  309. package/dist/commands/commerce/incidents/show.d.ts +3 -3
  310. package/dist/commands/commerce/offers/approve.d.ts +2 -2
  311. package/dist/commands/commerce/offers/create.d.ts +2 -2
  312. package/dist/commands/commerce/offers/publish.d.ts +2 -2
  313. package/dist/commands/commerce/offers/retire.d.ts +2 -2
  314. package/dist/commands/commerce/offers/validate.d.ts +2 -2
  315. package/dist/commands/commerce/products/create.d.ts +2 -2
  316. package/dist/commands/commerce/promotions/redeem.d.ts +2 -2
  317. package/dist/commands/commerce/terms/accept.d.ts +2 -2
  318. package/dist/commands/commerce/terms/show.d.ts +2 -2
  319. package/dist/commands/commerce/trials/conversion-preview.d.ts +2 -2
  320. package/dist/commands/commerce/trials/start.d.ts +4 -4
  321. package/dist/commands/commitments/accounting.d.ts +2 -2
  322. package/dist/commands/commitments/action-history.d.ts +4 -4
  323. package/dist/commands/commitments/action-proposals/decide.d.ts +6 -6
  324. package/dist/commands/commitments/action-proposals/execute.d.ts +3 -3
  325. package/dist/commands/commitments/action-proposals/propose.d.ts +10 -10
  326. package/dist/commands/commitments/action-proposals.d.ts +4 -4
  327. package/dist/commands/commitments/analytics/detail.d.ts +7 -7
  328. package/dist/commands/commitments/analytics/index.d.ts +11 -11
  329. package/dist/commands/commitments/analytics/replay.d.ts +4 -4
  330. package/dist/commands/commitments/attach.d.ts +4 -4
  331. package/dist/commands/commitments/bundle.d.ts +4 -4
  332. package/dist/commands/commitments/cadence-decisions.d.ts +3 -3
  333. package/dist/commands/commitments/cadence-requests/decide.d.ts +5 -5
  334. package/dist/commands/commitments/case.d.ts +4 -4
  335. package/dist/commands/commitments/cases.d.ts +5 -5
  336. package/dist/commands/commitments/check-now.d.ts +2 -2
  337. package/dist/commands/commitments/checks.d.ts +4 -4
  338. package/dist/commands/commitments/complete.d.ts +2 -2
  339. package/dist/commands/commitments/control/apply.d.ts +5 -5
  340. package/dist/commands/commitments/control/preview.d.ts +7 -7
  341. package/dist/commands/commitments/control/show.d.ts +3 -3
  342. package/dist/commands/commitments/cost.d.ts +4 -4
  343. package/dist/commands/commitments/create.d.ts +33 -33
  344. package/dist/commands/commitments/cycles.d.ts +4 -4
  345. package/dist/commands/commitments/decide-remediation.d.ts +5 -5
  346. package/dist/commands/commitments/delete.d.ts +5 -5
  347. package/dist/commands/commitments/delivery.d.ts +7 -7
  348. package/dist/commands/commitments/detach.d.ts +4 -4
  349. package/dist/commands/commitments/doctor.d.ts +3 -3
  350. package/dist/commands/commitments/effective-policy.d.ts +3 -3
  351. package/dist/commands/commitments/endpoints/connect.d.ts +3 -3
  352. package/dist/commands/commitments/endpoints/create.d.ts +6 -6
  353. package/dist/commands/commitments/endpoints/delete.d.ts +3 -3
  354. package/dist/commands/commitments/endpoints/health.d.ts +5 -5
  355. package/dist/commands/commitments/endpoints/list.d.ts +2 -2
  356. package/dist/commands/commitments/endpoints/revoke.d.ts +3 -3
  357. package/dist/commands/commitments/evaluations.d.ts +5 -5
  358. package/dist/commands/commitments/execute-remediation.d.ts +4 -4
  359. package/dist/commands/commitments/explain.d.ts +2 -2
  360. package/dist/commands/commitments/export.d.ts +5 -5
  361. package/dist/commands/commitments/feedback.d.ts +5 -5
  362. package/dist/commands/commitments/fork.d.ts +4 -4
  363. package/dist/commands/commitments/goals/link.d.ts +3 -3
  364. package/dist/commands/commitments/goals/unlink.d.ts +3 -3
  365. package/dist/commands/commitments/handover.d.ts +4 -4
  366. package/dist/commands/commitments/hypotheses.d.ts +6 -6
  367. package/dist/commands/commitments/import.d.ts +3 -3
  368. package/dist/commands/commitments/ledger.d.ts +3 -3
  369. package/dist/commands/commitments/lineage.d.ts +3 -3
  370. package/dist/commands/commitments/links/create.d.ts +6 -6
  371. package/dist/commands/commitments/links/detach.d.ts +3 -3
  372. package/dist/commands/commitments/links/list.d.ts +3 -3
  373. package/dist/commands/commitments/links/update.d.ts +5 -5
  374. package/dist/commands/commitments/list.d.ts +6 -6
  375. package/dist/commands/commitments/liveness.d.ts +1 -1
  376. package/dist/commands/commitments/metrics.d.ts +4 -4
  377. package/dist/commands/commitments/next-tick.d.ts +2 -2
  378. package/dist/commands/commitments/observation/probe.d.ts +5 -5
  379. package/dist/commands/commitments/observation/summary.d.ts +2 -2
  380. package/dist/commands/commitments/observations.d.ts +11 -11
  381. package/dist/commands/commitments/open.d.ts +4 -4
  382. package/dist/commands/commitments/operating-review.d.ts +2 -2
  383. package/dist/commands/commitments/pack/activate.d.ts +2 -2
  384. package/dist/commands/commitments/pack/bind.d.ts +9 -9
  385. package/dist/commands/commitments/pack/list.d.ts +1 -1
  386. package/dist/commands/commitments/pack/plan.d.ts +7 -7
  387. package/dist/commands/commitments/pack/preflight.d.ts +3 -3
  388. package/dist/commands/commitments/patch.d.ts +4 -4
  389. package/dist/commands/commitments/pause.d.ts +2 -2
  390. package/dist/commands/commitments/plan.d.ts +8 -8
  391. package/dist/commands/commitments/preflight.d.ts +6 -6
  392. package/dist/commands/commitments/propose-remediation.d.ts +4 -4
  393. package/dist/commands/commitments/readiness/show.d.ts +3 -3
  394. package/dist/commands/commitments/readiness/verify.d.ts +4 -4
  395. package/dist/commands/commitments/receipt-metrics.d.ts +5 -5
  396. package/dist/commands/commitments/receipt.d.ts +7 -7
  397. package/dist/commands/commitments/reflect.d.ts +2 -2
  398. package/dist/commands/commitments/reflection-decision.d.ts +4 -4
  399. package/dist/commands/commitments/reflection.d.ts +2 -2
  400. package/dist/commands/commitments/remediate.d.ts +5 -5
  401. package/dist/commands/commitments/remediation-proposal.d.ts +3 -3
  402. package/dist/commands/commitments/remediation-proposals.d.ts +5 -5
  403. package/dist/commands/commitments/reports.d.ts +8 -8
  404. package/dist/commands/commitments/restore.d.ts +2 -2
  405. package/dist/commands/commitments/resume.d.ts +2 -2
  406. package/dist/commands/commitments/roster.d.ts +2 -2
  407. package/dist/commands/commitments/show.d.ts +3 -3
  408. package/dist/commands/commitments/status.d.ts +2 -2
  409. package/dist/commands/commitments/subject.d.ts +7 -7
  410. package/dist/commands/commitments/trace.d.ts +4 -4
  411. package/dist/commands/commitments/trigger-status.d.ts +3 -3
  412. package/dist/commands/commitments/update.d.ts +26 -26
  413. package/dist/commands/commitments/wake-capabilities.d.ts +3 -3
  414. package/dist/commands/commitments/work-plan.d.ts +2 -2
  415. package/dist/commands/compass/archive.d.ts +5 -5
  416. package/dist/commands/compass/commitments.d.ts +3 -3
  417. package/dist/commands/compass/create.d.ts +6 -6
  418. package/dist/commands/compass/effective-policy.d.ts +3 -3
  419. package/dist/commands/compass/list.d.ts +4 -4
  420. package/dist/commands/compass/revert.d.ts +5 -5
  421. package/dist/commands/compass/revisions.d.ts +4 -4
  422. package/dist/commands/compass/show.d.ts +3 -3
  423. package/dist/commands/compass/tactic.d.ts +6 -6
  424. package/dist/commands/compass/trace.d.ts +4 -4
  425. package/dist/commands/compass/update.d.ts +10 -10
  426. package/dist/commands/completion/index.d.ts +2 -2
  427. package/dist/commands/completion/script.d.ts +1 -1
  428. package/dist/commands/completion/values.d.ts +2 -2
  429. package/dist/commands/computer/index.d.ts +2 -2
  430. package/dist/commands/computer-use/audio.d.ts +6 -0
  431. package/dist/commands/computer-use/audio.js +9 -0
  432. package/dist/commands/computer-use/browser.d.ts +7 -0
  433. package/dist/commands/computer-use/browser.js +16 -0
  434. package/dist/commands/computer-use/disable.d.ts +6 -0
  435. package/dist/commands/computer-use/disable.js +9 -0
  436. package/dist/commands/computer-use/enable.d.ts +6 -0
  437. package/dist/commands/computer-use/enable.js +9 -0
  438. package/dist/commands/computer-use/index.d.ts +6 -0
  439. package/dist/commands/computer-use/index.js +9 -0
  440. package/dist/commands/computer-use/install.d.ts +6 -0
  441. package/dist/commands/computer-use/install.js +9 -0
  442. package/dist/commands/computer-use/recover.d.ts +6 -0
  443. package/dist/commands/computer-use/recover.js +9 -0
  444. package/dist/commands/computer-use/status.d.ts +6 -0
  445. package/dist/commands/computer-use/status.js +9 -0
  446. package/dist/commands/computer-use/stop.d.ts +6 -0
  447. package/dist/commands/computer-use/stop.js +9 -0
  448. package/dist/commands/context.d.ts +2 -2
  449. package/dist/commands/context.js +18 -4
  450. package/dist/commands/convos/archive.d.ts +2 -2
  451. package/dist/commands/convos/delete.d.ts +2 -2
  452. package/dist/commands/convos/duplicate.d.ts +3 -3
  453. package/dist/commands/convos/fork.d.ts +6 -6
  454. package/dist/commands/convos/handover.d.ts +6 -6
  455. package/dist/commands/convos/import.d.ts +2 -2
  456. package/dist/commands/convos/import.js +2 -35
  457. package/dist/commands/convos/list.d.ts +8 -8
  458. package/dist/commands/convos/messages.d.ts +5 -5
  459. package/dist/commands/convos/recovery.d.ts +14 -0
  460. package/dist/commands/convos/recovery.js +62 -0
  461. package/dist/commands/convos/search.d.ts +4 -4
  462. package/dist/commands/convos/show.d.ts +2 -2
  463. package/dist/commands/convos/unarchive.d.ts +2 -2
  464. package/dist/commands/convos/update.d.ts +4 -4
  465. package/dist/commands/create-token.d.ts +2 -2
  466. package/dist/commands/daemon/login.js +1 -1
  467. package/dist/commands/daemon/logs.d.ts +6 -6
  468. package/dist/commands/daemon/usage.d.ts +3 -3
  469. package/dist/commands/dm/list.d.ts +1 -1
  470. package/dist/commands/dm/messages.d.ts +4 -4
  471. package/dist/commands/dm/show.d.ts +3 -3
  472. package/dist/commands/dm/thread/broadcast.d.ts +7 -7
  473. package/dist/commands/dm/thread/follow.d.ts +6 -6
  474. package/dist/commands/dm/thread/messages.d.ts +7 -7
  475. package/dist/commands/dm/thread/mute.d.ts +6 -6
  476. package/dist/commands/dm/thread/share.d.ts +5 -5
  477. package/dist/commands/dm/thread/show.d.ts +5 -5
  478. package/dist/commands/dm/threads.d.ts +6 -6
  479. package/dist/commands/dm/work.d.ts +10 -10
  480. package/dist/commands/doctor.d.ts +1 -1
  481. package/dist/commands/earnings/attributions.d.ts +1 -1
  482. package/dist/commands/earnings/index.d.ts +1 -1
  483. package/dist/commands/earnings/payouts.d.ts +3 -3
  484. package/dist/commands/earnings/statements.d.ts +4 -4
  485. package/dist/commands/engagement/annotate.d.ts +5 -5
  486. package/dist/commands/engagement/continue.d.ts +3 -3
  487. package/dist/commands/engagement/react.d.ts +4 -4
  488. package/dist/commands/engagement/reactions.d.ts +3 -3
  489. package/dist/commands/engagement/share.d.ts +6 -6
  490. package/dist/commands/enterprise/budgets/create.d.ts +2 -2
  491. package/dist/commands/enterprise/budgets/evaluate.d.ts +2 -2
  492. package/dist/commands/enterprise/budgets/publish.d.ts +3 -3
  493. package/dist/commands/enterprise/contracts/activate.d.ts +3 -3
  494. package/dist/commands/enterprise/contracts/create.d.ts +2 -2
  495. package/dist/commands/enterprise/contracts/issue.d.ts +3 -3
  496. package/dist/commands/enterprise/domains/begin.d.ts +3 -3
  497. package/dist/commands/enterprise/domains/verify.d.ts +3 -3
  498. package/dist/commands/enterprise/external-config/activate.d.ts +2 -2
  499. package/dist/commands/enterprise/external-config/set.d.ts +6 -6
  500. package/dist/commands/enterprise/external-config/show.d.ts +2 -2
  501. package/dist/commands/enterprise/external-config/suspend.d.ts +3 -3
  502. package/dist/commands/enterprise/finance/close-snapshot.d.ts +2 -2
  503. package/dist/commands/enterprise/finance/record-document.d.ts +2 -2
  504. package/dist/commands/enterprise/profile.d.ts +3 -3
  505. package/dist/commands/feeds/create.d.ts +7 -7
  506. package/dist/commands/feeds/delete.d.ts +2 -2
  507. package/dist/commands/feeds/list.d.ts +4 -4
  508. package/dist/commands/feeds/update.d.ts +6 -6
  509. package/dist/commands/followups/act.d.ts +10 -10
  510. package/dist/commands/followups/cancel.d.ts +3 -3
  511. package/dist/commands/followups/checkin.d.ts +10 -10
  512. package/dist/commands/followups/list.d.ts +7 -7
  513. package/dist/commands/followups/observability.d.ts +3 -3
  514. package/dist/commands/followups/plans/accepted.d.ts +15 -0
  515. package/dist/commands/followups/plans/accepted.js +76 -0
  516. package/dist/commands/followups/plans/cancel-batch.d.ts +18 -0
  517. package/dist/commands/followups/plans/cancel-batch.js +107 -0
  518. package/dist/commands/followups/plans/cancel.d.ts +4 -4
  519. package/dist/commands/followups/plans/cancel.js +10 -3
  520. package/dist/commands/followups/plans/capacity.d.ts +9 -0
  521. package/dist/commands/followups/plans/capacity.js +42 -0
  522. package/dist/commands/followups/plans/create.d.ts +3 -3
  523. package/dist/commands/followups/plans/create.js +3 -0
  524. package/dist/commands/followups/plans/list.d.ts +6 -6
  525. package/dist/commands/followups/plans/observability.d.ts +4 -4
  526. package/dist/commands/followups/plans/preferences/set.d.ts +10 -0
  527. package/dist/commands/followups/plans/preferences/set.js +50 -0
  528. package/dist/commands/followups/plans/preferences.d.ts +9 -0
  529. package/dist/commands/followups/plans/preferences.js +29 -0
  530. package/dist/commands/followups/plans/revise.d.ts +4 -4
  531. package/dist/commands/followups/plans/revise.js +13 -6
  532. package/dist/commands/followups/plans/show.d.ts +2 -2
  533. package/dist/commands/followups/plans/show.js +10 -3
  534. package/dist/commands/followups/remind.d.ts +11 -11
  535. package/dist/commands/followups/reschedule.d.ts +4 -4
  536. package/dist/commands/followups/resolve.d.ts +4 -4
  537. package/dist/commands/followups/show.d.ts +2 -2
  538. package/dist/commands/followups/watch.d.ts +28 -28
  539. package/dist/commands/generate-recovery-code.d.ts +4 -4
  540. package/dist/commands/github/allow-tools.d.ts +10 -10
  541. package/dist/commands/github/app/install.d.ts +7 -7
  542. package/dist/commands/github/app/status.d.ts +6 -6
  543. package/dist/commands/github/connect.d.ts +10 -10
  544. package/dist/commands/github/connections.d.ts +8 -8
  545. package/dist/commands/github/disconnect.d.ts +8 -8
  546. package/dist/commands/github/finalize.d.ts +10 -10
  547. package/dist/commands/github/reconnect.d.ts +10 -10
  548. package/dist/commands/github/run.d.ts +12 -12
  549. package/dist/commands/github/tools.d.ts +11 -11
  550. package/dist/commands/goals/archive.d.ts +3 -3
  551. package/dist/commands/goals/briefing/disable.d.ts +1 -1
  552. package/dist/commands/goals/briefing/enable.d.ts +2 -2
  553. package/dist/commands/goals/briefing/preview.d.ts +1 -1
  554. package/dist/commands/goals/create.d.ts +13 -13
  555. package/dist/commands/goals/delete.d.ts +2 -2
  556. package/dist/commands/goals/descendants.d.ts +3 -3
  557. package/dist/commands/goals/key-results/create.d.ts +9 -9
  558. package/dist/commands/goals/key-results/delete.d.ts +3 -3
  559. package/dist/commands/goals/key-results/list.d.ts +2 -2
  560. package/dist/commands/goals/key-results/show.d.ts +3 -3
  561. package/dist/commands/goals/key-results/update.d.ts +11 -11
  562. package/dist/commands/goals/labels/add.d.ts +3 -3
  563. package/dist/commands/goals/labels/list.d.ts +2 -2
  564. package/dist/commands/goals/labels/remove.d.ts +3 -3
  565. package/dist/commands/goals/list.d.ts +9 -9
  566. package/dist/commands/goals/open.d.ts +4 -4
  567. package/dist/commands/goals/plan-now.d.ts +3 -3
  568. package/dist/commands/goals/planner-config.d.ts +7 -7
  569. package/dist/commands/goals/revisions.d.ts +2 -2
  570. package/dist/commands/goals/show.d.ts +2 -2
  571. package/dist/commands/goals/tasks.d.ts +5 -5
  572. package/dist/commands/goals/update.d.ts +13 -13
  573. package/dist/commands/google-chat/list-channels.d.ts +3 -3
  574. package/dist/commands/google-chat/list-users.d.ts +4 -4
  575. package/dist/commands/google-chat/read-channel.d.ts +5 -5
  576. package/dist/commands/google-chat/read-thread.d.ts +6 -6
  577. package/dist/commands/google-chat/run.d.ts +5 -5
  578. package/dist/commands/google-chat/search.d.ts +5 -5
  579. package/dist/commands/google-chat/send-as-agent.d.ts +6 -6
  580. package/dist/commands/google-chat/tools.d.ts +2 -2
  581. package/dist/commands/grants/create.d.ts +11 -11
  582. package/dist/commands/grants/delete.d.ts +2 -2
  583. package/dist/commands/grants/list.d.ts +4 -4
  584. package/dist/commands/grants/revoke.d.ts +3 -3
  585. package/dist/commands/grants/rotate.d.ts +4 -4
  586. package/dist/commands/grants/update.d.ts +3 -3
  587. package/dist/commands/harnesses/alias.d.ts +4 -4
  588. package/dist/commands/harnesses/forget.d.ts +3 -3
  589. package/dist/commands/harnesses/grants/add.d.ts +10 -10
  590. package/dist/commands/harnesses/grants/list.d.ts +3 -3
  591. package/dist/commands/harnesses/grants/revoke.d.ts +3 -3
  592. package/dist/commands/harnesses/install-token.d.ts +2 -2
  593. package/dist/commands/harnesses/install.d.ts +4 -4
  594. package/dist/commands/harnesses/installers.d.ts +2 -2
  595. package/dist/commands/harnesses/leases/action.d.ts +4 -4
  596. package/dist/commands/harnesses/leases/billing.d.ts +4 -4
  597. package/dist/commands/harnesses/leases/list.d.ts +4 -4
  598. package/dist/commands/harnesses/leases/release.d.ts +3 -3
  599. package/dist/commands/harnesses/leases/show.d.ts +2 -2
  600. package/dist/commands/harnesses/list.d.ts +9 -9
  601. package/dist/commands/harnesses/models.d.ts +2 -2
  602. package/dist/commands/harnesses/ping.d.ts +3 -3
  603. package/dist/commands/harnesses/products.d.ts +1 -1
  604. package/dist/commands/harnesses/prune.d.ts +4 -4
  605. package/dist/commands/harnesses/quota.d.ts +7 -7
  606. package/dist/commands/harnesses/set-default.d.ts +3 -3
  607. package/dist/commands/harnesses/show.d.ts +2 -2
  608. package/dist/commands/harnesses/update.d.ts +11 -11
  609. package/dist/commands/harnesses/usage.d.ts +2 -2
  610. package/dist/commands/inbox/index.d.ts +7 -7
  611. package/dist/commands/ingress/create.d.ts +8 -8
  612. package/dist/commands/ingress/delete.d.ts +2 -2
  613. package/dist/commands/ingress/list.d.ts +1 -1
  614. package/dist/commands/ingress/rotate.d.ts +2 -2
  615. package/dist/commands/initiatives/decide.d.ts +8 -8
  616. package/dist/commands/initiatives/list.d.ts +6 -6
  617. package/dist/commands/instruction-blocks/create.d.ts +11 -11
  618. package/dist/commands/instruction-blocks/delete.d.ts +3 -3
  619. package/dist/commands/instruction-blocks/list.d.ts +4 -4
  620. package/dist/commands/instruction-blocks/show.d.ts +2 -2
  621. package/dist/commands/instruction-blocks/update.d.ts +12 -12
  622. package/dist/commands/instructions/activate.d.ts +3 -3
  623. package/dist/commands/instructions/archive-version.d.ts +3 -3
  624. package/dist/commands/instructions/create.d.ts +6 -6
  625. package/dist/commands/instructions/delete.d.ts +3 -3
  626. package/dist/commands/instructions/diff.d.ts +4 -4
  627. package/dist/commands/instructions/guide.d.ts +8 -8
  628. package/dist/commands/instructions/guide.js +8 -1
  629. package/dist/commands/instructions/install.d.ts +10 -10
  630. package/dist/commands/instructions/list.d.ts +3 -3
  631. package/dist/commands/instructions/purge-target.d.ts +4 -4
  632. package/dist/commands/instructions/remove.d.ts +2 -2
  633. package/dist/commands/instructions/restore-target.d.ts +2 -2
  634. package/dist/commands/instructions/restore.d.ts +2 -2
  635. package/dist/commands/instructions/setup.d.ts +6 -6
  636. package/dist/commands/instructions/show.d.ts +3 -3
  637. package/dist/commands/instructions/status.d.ts +2 -2
  638. package/dist/commands/instructions/update-target.d.ts +7 -7
  639. package/dist/commands/instructions/update.d.ts +8 -8
  640. package/dist/commands/integrations/connections/connect.d.ts +11 -11
  641. package/dist/commands/integrations/connections/disconnect.d.ts +9 -9
  642. package/dist/commands/integrations/connections/finalize.d.ts +10 -10
  643. package/dist/commands/integrations/connections/list.d.ts +8 -8
  644. package/dist/commands/integrations/connections/reconnect.d.ts +11 -11
  645. package/dist/commands/integrations/execute.d.ts +12 -12
  646. package/dist/commands/integrations/search.d.ts +10 -10
  647. package/dist/commands/integrations/toolkits.d.ts +7 -7
  648. package/dist/commands/integrations/tools/allow.d.ts +10 -10
  649. package/dist/commands/integrations/tools/list.d.ts +9 -9
  650. package/dist/commands/labels/archive.d.ts +2 -2
  651. package/dist/commands/labels/create.d.ts +10 -10
  652. package/dist/commands/labels/delete.d.ts +3 -3
  653. package/dist/commands/labels/list.d.ts +6 -6
  654. package/dist/commands/labels/palette.d.ts +1 -1
  655. package/dist/commands/labels/reorder.d.ts +4 -4
  656. package/dist/commands/labels/restore.d.ts +3 -3
  657. package/dist/commands/labels/update.d.ts +11 -11
  658. package/dist/commands/lark/list-channels.d.ts +3 -3
  659. package/dist/commands/lark/list-users.d.ts +4 -4
  660. package/dist/commands/lark/read-channel.d.ts +5 -5
  661. package/dist/commands/lark/read-thread.d.ts +6 -6
  662. package/dist/commands/lark/run.d.ts +5 -5
  663. package/dist/commands/lark/search.d.ts +5 -5
  664. package/dist/commands/lark/send-as-agent.d.ts +6 -6
  665. package/dist/commands/lark/tools.d.ts +2 -2
  666. package/dist/commands/learning/adapters.d.ts +6 -6
  667. package/dist/commands/learning/delete.d.ts +2 -2
  668. package/dist/commands/learning/export.d.ts +5 -5
  669. package/dist/commands/learning/reset.d.ts +2 -2
  670. package/dist/commands/learning/set.d.ts +3 -3
  671. package/dist/commands/learning/status.d.ts +1 -1
  672. package/dist/commands/list-daemons.d.ts +3 -3
  673. package/dist/commands/list-tokens.d.ts +2 -2
  674. package/dist/commands/login.d.ts +7 -7
  675. package/dist/commands/logout.d.ts +2 -2
  676. package/dist/commands/machines/computer-adoption.d.ts +1 -1
  677. package/dist/commands/machines/dedicated/agent-browser.d.ts +4 -4
  678. package/dist/commands/machines/dedicated/archive.d.ts +4 -4
  679. package/dist/commands/machines/dedicated/attach.d.ts +5 -5
  680. package/dist/commands/machines/dedicated/audit.d.ts +8 -8
  681. package/dist/commands/machines/dedicated/catalog.d.ts +1 -1
  682. package/dist/commands/machines/dedicated/computer.d.ts +4 -4
  683. package/dist/commands/machines/dedicated/cp.d.ts +6 -6
  684. package/dist/commands/machines/dedicated/create.d.ts +17 -17
  685. package/dist/commands/machines/dedicated/current.d.ts +2 -2
  686. package/dist/commands/machines/dedicated/destroy.d.ts +8 -8
  687. package/dist/commands/machines/dedicated/exec.d.ts +8 -8
  688. package/dist/commands/machines/dedicated/git-status.d.ts +3 -3
  689. package/dist/commands/machines/dedicated/grow.d.ts +7 -7
  690. package/dist/commands/machines/dedicated/health-check.d.ts +2 -2
  691. package/dist/commands/machines/dedicated/incident-close.d.ts +3 -3
  692. package/dist/commands/machines/dedicated/list.d.ts +3 -3
  693. package/dist/commands/machines/dedicated/logs.d.ts +5 -5
  694. package/dist/commands/machines/dedicated/ls.d.ts +6 -6
  695. package/dist/commands/machines/dedicated/mkdir.d.ts +3 -3
  696. package/dist/commands/machines/dedicated/mv.d.ts +5 -5
  697. package/dist/commands/machines/dedicated/power/explain.d.ts +2 -2
  698. package/dist/commands/machines/dedicated/power/keep-awake.d.ts +5 -5
  699. package/dist/commands/machines/dedicated/power/set.d.ts +6 -6
  700. package/dist/commands/machines/dedicated/power/show.d.ts +2 -2
  701. package/dist/commands/machines/dedicated/power/waiting.d.ts +2 -2
  702. package/dist/commands/machines/dedicated/price-book.d.ts +1 -1
  703. package/dist/commands/machines/dedicated/restart.d.ts +5 -5
  704. package/dist/commands/machines/dedicated/restore.d.ts +9 -9
  705. package/dist/commands/machines/dedicated/rm.d.ts +5 -5
  706. package/dist/commands/machines/dedicated/search.d.ts +9 -9
  707. package/dist/commands/machines/dedicated/service/apply.d.ts +3 -3
  708. package/dist/commands/machines/dedicated/service/approve.d.ts +4 -4
  709. package/dist/commands/machines/dedicated/service/create.d.ts +16 -16
  710. package/dist/commands/machines/dedicated/service/edit.d.ts +4 -4
  711. package/dist/commands/machines/dedicated/service/exec.d.ts +5 -5
  712. package/dist/commands/machines/dedicated/service/export.d.ts +5 -5
  713. package/dist/commands/machines/dedicated/service/logs.d.ts +5 -5
  714. package/dist/commands/machines/dedicated/service/ls.d.ts +2 -2
  715. package/dist/commands/machines/dedicated/service/restart.d.ts +3 -3
  716. package/dist/commands/machines/dedicated/service/rm.d.ts +3 -3
  717. package/dist/commands/machines/dedicated/service/secret/rm.d.ts +4 -4
  718. package/dist/commands/machines/dedicated/service/secret/set.d.ts +5 -5
  719. package/dist/commands/machines/dedicated/service/start.d.ts +3 -3
  720. package/dist/commands/machines/dedicated/service/status.d.ts +3 -3
  721. package/dist/commands/machines/dedicated/service/stop.d.ts +3 -3
  722. package/dist/commands/machines/dedicated/service/top.d.ts +3 -3
  723. package/dist/commands/machines/dedicated/show.d.ts +2 -2
  724. package/dist/commands/machines/dedicated/sign-in-status.d.ts +2 -2
  725. package/dist/commands/machines/dedicated/sign-in.d.ts +2 -2
  726. package/dist/commands/machines/dedicated/snapshot.d.ts +5 -5
  727. package/dist/commands/machines/dedicated/spending-limit.d.ts +4 -4
  728. package/dist/commands/machines/dedicated/ssh-config.d.ts +4 -4
  729. package/dist/commands/machines/dedicated/ssh-proxy.d.ts +1 -1
  730. package/dist/commands/machines/dedicated/ssh.d.ts +2 -2
  731. package/dist/commands/machines/dedicated/start.d.ts +5 -5
  732. package/dist/commands/machines/dedicated/stat.d.ts +4 -4
  733. package/dist/commands/machines/dedicated/stop.d.ts +5 -5
  734. package/dist/commands/machines/dedicated/terminal/kill.d.ts +3 -3
  735. package/dist/commands/machines/dedicated/terminal/ls.d.ts +2 -2
  736. package/dist/commands/machines/dedicated/terminal/rename.d.ts +4 -4
  737. package/dist/commands/machines/dedicated/terminal.d.ts +6 -6
  738. package/dist/commands/machines/dedicated/update-image.d.ts +5 -5
  739. package/dist/commands/machines/disconnect.d.ts +3 -3
  740. package/dist/commands/machines/hosted/connect.d.ts +4 -4
  741. package/dist/commands/machines/hosted/destroy.d.ts +3 -3
  742. package/dist/commands/machines/hosted/exec.d.ts +7 -7
  743. package/dist/commands/machines/hosted/list.d.ts +4 -4
  744. package/dist/commands/machines/hosted/pause.d.ts +3 -3
  745. package/dist/commands/machines/hosted/pull.d.ts +9 -9
  746. package/dist/commands/machines/hosted/resume.d.ts +6 -6
  747. package/dist/commands/machines/hosted/start.d.ts +18 -18
  748. package/dist/commands/machines/hosted/status.d.ts +6 -6
  749. package/dist/commands/machines/list.d.ts +2 -2
  750. package/dist/commands/machines/services/declare.d.ts +6 -6
  751. package/dist/commands/machines/services/ls.d.ts +2 -2
  752. package/dist/commands/machines/services/withdraw.d.ts +3 -3
  753. package/dist/commands/machines/share.d.ts +4 -4
  754. package/dist/commands/machines/shared.d.ts +1 -1
  755. package/dist/commands/machines/shares.d.ts +2 -2
  756. package/dist/commands/machines/show.d.ts +3 -3
  757. package/dist/commands/machines/unshare.d.ts +3 -3
  758. package/dist/commands/machines/update.d.ts +6 -6
  759. package/dist/commands/managed-execution/show.d.ts +1 -1
  760. package/dist/commands/measures/confirm.d.ts +4 -4
  761. package/dist/commands/measures/create.d.ts +10 -10
  762. package/dist/commands/measures/list.d.ts +4 -4
  763. package/dist/commands/measures/record.d.ts +7 -7
  764. package/dist/commands/measures/show.d.ts +2 -2
  765. package/dist/commands/measures/tasks.d.ts +7 -7
  766. package/dist/commands/memory/approvals/issue.d.ts +11 -11
  767. package/dist/commands/memory/commit.d.ts +5 -5
  768. package/dist/commands/memory/context.d.ts +8 -8
  769. package/dist/commands/memory/daily-log.d.ts +3 -3
  770. package/dist/commands/memory/delete.d.ts +5 -5
  771. package/dist/commands/memory/governance/index.d.ts +2 -2
  772. package/dist/commands/memory/governance/set.d.ts +7 -7
  773. package/dist/commands/memory/list.d.ts +4 -4
  774. package/dist/commands/memory/maintain.d.ts +4 -4
  775. package/dist/commands/memory/mounts/resolve.d.ts +3 -3
  776. package/dist/commands/memory/observe.d.ts +9 -9
  777. package/dist/commands/memory/preferences.d.ts +3 -3
  778. package/dist/commands/memory/proposals/commit.d.ts +9 -9
  779. package/dist/commands/memory/proposals/create.d.ts +11 -11
  780. package/dist/commands/memory/proposals/list.d.ts +6 -6
  781. package/dist/commands/memory/proposals/promote.d.ts +15 -15
  782. package/dist/commands/memory/proposals/reject.d.ts +7 -7
  783. package/dist/commands/memory/provenance.d.ts +3 -3
  784. package/dist/commands/memory/read.d.ts +5 -5
  785. package/dist/commands/memory/rebuild-index.d.ts +11 -11
  786. package/dist/commands/memory/rebuild.d.ts +3 -3
  787. package/dist/commands/memory/save.d.ts +7 -7
  788. package/dist/commands/memory/search.d.ts +10 -10
  789. package/dist/commands/memory/show.d.ts +5 -5
  790. package/dist/commands/memory/stores/archive.d.ts +7 -7
  791. package/dist/commands/memory/stores/create.d.ts +5 -5
  792. package/dist/commands/memory/stores/delete.d.ts +8 -8
  793. package/dist/commands/memory/stores/list.d.ts +3 -3
  794. package/dist/commands/memory/stores/show.d.ts +5 -5
  795. package/dist/commands/memory/stores/update.d.ts +8 -8
  796. package/dist/commands/memory/sync/delete.d.ts +4 -4
  797. package/dist/commands/memory/sync/pull.d.ts +12 -12
  798. package/dist/commands/memory/sync/push.d.ts +11 -11
  799. package/dist/commands/memory/sync/resolve.d.ts +14 -14
  800. package/dist/commands/memory/sync/status.d.ts +2 -2
  801. package/dist/commands/memory/topics/archive.d.ts +11 -11
  802. package/dist/commands/memory/topics/create.d.ts +16 -16
  803. package/dist/commands/memory/topics/delete.d.ts +13 -13
  804. package/dist/commands/memory/topics/forget.d.ts +13 -13
  805. package/dist/commands/memory/topics/list.d.ts +6 -6
  806. package/dist/commands/memory/topics/move.d.ts +13 -13
  807. package/dist/commands/memory/topics/show.d.ts +8 -8
  808. package/dist/commands/memory/topics/update.d.ts +14 -14
  809. package/dist/commands/memory/tree.d.ts +6 -6
  810. package/dist/commands/memory/update.d.ts +7 -7
  811. package/dist/commands/memory/versions/list.d.ts +7 -7
  812. package/dist/commands/memory/versions/redact.d.ts +12 -12
  813. package/dist/commands/memory/versions/restore.d.ts +11 -11
  814. package/dist/commands/memory/versions/show.d.ts +6 -6
  815. package/dist/commands/messages/edit-artifact.d.ts +6 -6
  816. package/dist/commands/messages/feedback.d.ts +7 -7
  817. package/dist/commands/messages/list.d.ts +5 -5
  818. package/dist/commands/messages/show.d.ts +3 -3
  819. package/dist/commands/messages/update-content.d.ts +5 -5
  820. package/dist/commands/messages/update.d.ts +5 -5
  821. package/dist/commands/native/allow-all.d.ts +2 -2
  822. package/dist/commands/native/allow.d.ts +3 -3
  823. package/dist/commands/native/deny.d.ts +3 -3
  824. package/dist/commands/native/disable.d.ts +2 -2
  825. package/dist/commands/native/enable.d.ts +3 -3
  826. package/dist/commands/native/list-apps.d.ts +2 -2
  827. package/dist/commands/native/restrict-to.d.ts +3 -3
  828. package/dist/commands/native/status.d.ts +2 -2
  829. package/dist/commands/native.d.ts +1 -1
  830. package/dist/commands/northstars/create.d.ts +12 -12
  831. package/dist/commands/northstars/delete.d.ts +3 -3
  832. package/dist/commands/northstars/governance/configure.d.ts +20 -20
  833. package/dist/commands/northstars/governance/show.d.ts +2 -2
  834. package/dist/commands/northstars/intents/decide.d.ts +6 -6
  835. package/dist/commands/northstars/intents/list.d.ts +4 -4
  836. package/dist/commands/northstars/link.d.ts +4 -4
  837. package/dist/commands/northstars/list.d.ts +3 -3
  838. package/dist/commands/northstars/recommendations/apply.d.ts +3 -3
  839. package/dist/commands/northstars/recommendations/dismiss.d.ts +3 -3
  840. package/dist/commands/northstars/recommendations/list.d.ts +3 -3
  841. package/dist/commands/northstars/review-now.d.ts +2 -2
  842. package/dist/commands/northstars/reviews.d.ts +5 -5
  843. package/dist/commands/northstars/show.d.ts +2 -2
  844. package/dist/commands/northstars/unlink.d.ts +3 -3
  845. package/dist/commands/northstars/update.d.ts +15 -15
  846. package/dist/commands/open.d.ts +3 -3
  847. package/dist/commands/outbox/drop.d.ts +2 -2
  848. package/dist/commands/outbox/list.d.ts +1 -1
  849. package/dist/commands/outbox/retry.d.ts +3 -3
  850. package/dist/commands/payments/wallet.d.ts +2 -2
  851. package/dist/commands/profiles/list.d.ts +1 -1
  852. package/dist/commands/projects/activity.d.ts +5 -5
  853. package/dist/commands/projects/archive.d.ts +5 -5
  854. package/dist/commands/projects/create.d.ts +9 -9
  855. package/dist/commands/projects/delete.d.ts +5 -5
  856. package/dist/commands/projects/docs/attach.d.ts +5 -5
  857. package/dist/commands/projects/docs/detach.d.ts +5 -5
  858. package/dist/commands/projects/docs/list.d.ts +3 -3
  859. package/dist/commands/projects/goals.d.ts +6 -6
  860. package/dist/commands/projects/list.d.ts +9 -9
  861. package/dist/commands/projects/members.d.ts +7 -7
  862. package/dist/commands/projects/open.d.ts +5 -5
  863. package/dist/commands/projects/overview.d.ts +5 -5
  864. package/dist/commands/projects/promote.d.ts +4 -4
  865. package/dist/commands/projects/reorder.d.ts +4 -4
  866. package/dist/commands/projects/revisions.d.ts +5 -5
  867. package/dist/commands/projects/show.d.ts +3 -3
  868. package/dist/commands/projects/summary.d.ts +3 -3
  869. package/dist/commands/projects/tasks.d.ts +6 -6
  870. package/dist/commands/projects/update.d.ts +8 -8
  871. package/dist/commands/projects/updates/add.d.ts +10 -10
  872. package/dist/commands/projects/updates/archive.d.ts +4 -4
  873. package/dist/commands/projects/updates/cadence.d.ts +10 -10
  874. package/dist/commands/projects/updates/draft.d.ts +4 -4
  875. package/dist/commands/projects/updates/edit.d.ts +10 -10
  876. package/dist/commands/projects/updates/list.d.ts +5 -5
  877. package/dist/commands/projects/updates/post.d.ts +7 -7
  878. package/dist/commands/projects/updates/show.d.ts +4 -4
  879. package/dist/commands/projects/upsert.d.ts +9 -9
  880. package/dist/commands/proposals/discard.d.ts +2 -2
  881. package/dist/commands/proposals/keep.d.ts +2 -2
  882. package/dist/commands/proposals/list.d.ts +8 -8
  883. package/dist/commands/proposals/show.d.ts +3 -3
  884. package/dist/commands/proposals/snooze.d.ts +2 -2
  885. package/dist/commands/requests/cancel.d.ts +2 -2
  886. package/dist/commands/requests/comments/add.d.ts +5 -5
  887. package/dist/commands/requests/comments/delete.d.ts +3 -3
  888. package/dist/commands/requests/comments/list.d.ts +3 -3
  889. package/dist/commands/requests/create.d.ts +9 -9
  890. package/dist/commands/requests/list.d.ts +3 -3
  891. package/dist/commands/requests/pending.d.ts +1 -1
  892. package/dist/commands/requests/resolve.d.ts +6 -6
  893. package/dist/commands/requests/show.d.ts +2 -2
  894. package/dist/commands/revoke-daemon.d.ts +3 -3
  895. package/dist/commands/revoke-token.d.ts +2 -2
  896. package/dist/commands/search/agents.d.ts +4 -4
  897. package/dist/commands/search/all.d.ts +3 -3
  898. package/dist/commands/search/skills.d.ts +5 -5
  899. package/dist/commands/search/spaces.d.ts +5 -5
  900. package/dist/commands/search/tasks.d.ts +6 -6
  901. package/dist/commands/search/teams.d.ts +3 -3
  902. package/dist/commands/security/overview.d.ts +2 -2
  903. package/dist/commands/service/logs.d.ts +3 -3
  904. package/dist/commands/service/ls.d.ts +1 -1
  905. package/dist/commands/service/propose.d.ts +12 -12
  906. package/dist/commands/service/status.d.ts +2 -2
  907. package/dist/commands/set-capabilities.d.ts +3 -3
  908. package/dist/commands/shares/create.d.ts +3 -3
  909. package/dist/commands/shares/delete.d.ts +2 -2
  910. package/dist/commands/shares/get.d.ts +2 -2
  911. package/dist/commands/shares/link-for.d.ts +2 -2
  912. package/dist/commands/shares/list.d.ts +7 -7
  913. package/dist/commands/shares/update.d.ts +2 -2
  914. package/dist/commands/shortcuts/create.d.ts +11 -11
  915. package/dist/commands/shortcuts/create.js +1 -34
  916. package/dist/commands/shortcuts/delete.d.ts +2 -2
  917. package/dist/commands/shortcuts/list.d.ts +2 -2
  918. package/dist/commands/shortcuts/reorder.d.ts +3 -3
  919. package/dist/commands/shortcuts/show.d.ts +2 -2
  920. package/dist/commands/shortcuts/trigger.d.ts +2 -2
  921. package/dist/commands/shortcuts/update.d.ts +11 -11
  922. package/dist/commands/shortcuts/update.js +1 -34
  923. package/dist/commands/signals/monitors/create.d.ts +2 -2
  924. package/dist/commands/signals/monitors/list.d.ts +1 -1
  925. package/dist/commands/signals/monitors/pause.d.ts +2 -2
  926. package/dist/commands/signals/monitors/resume.d.ts +2 -2
  927. package/dist/commands/signals/monitors/revise.d.ts +3 -3
  928. package/dist/commands/signals/monitors/show.d.ts +2 -2
  929. package/dist/commands/signals/monitors/test.d.ts +3 -3
  930. package/dist/commands/signals/monitors/transitions.d.ts +2 -2
  931. package/dist/commands/signals/monitors/validate.d.ts +2 -2
  932. package/dist/commands/signals/schemas/list.d.ts +1 -1
  933. package/dist/commands/signals/schemas/show.d.ts +2 -2
  934. package/dist/commands/signals/sources/list.d.ts +1 -1
  935. package/dist/commands/signals/sources/receipts.d.ts +2 -2
  936. package/dist/commands/signals/sources/show.d.ts +2 -2
  937. package/dist/commands/skills/browse.d.ts +4 -4
  938. package/dist/commands/skills/categories.d.ts +3 -3
  939. package/dist/commands/skills/details.d.ts +2 -2
  940. package/dist/commands/skills/duplicate.d.ts +4 -4
  941. package/dist/commands/skills/featured.d.ts +2 -2
  942. package/dist/commands/skills/import-as-actions.d.ts +9 -9
  943. package/dist/commands/skills/install.d.ts +4 -4
  944. package/dist/commands/skills/invocable.d.ts +3 -3
  945. package/dist/commands/skills/library.d.ts +4 -4
  946. package/dist/commands/skills/local.d.ts +5 -5
  947. package/dist/commands/skills/search.d.ts +5 -5
  948. package/dist/commands/skills/visibility.d.ts +5 -5
  949. package/dist/commands/slack/list-channels.d.ts +7 -7
  950. package/dist/commands/slack/list-usergroups.d.ts +4 -4
  951. package/dist/commands/slack/list-users.d.ts +7 -7
  952. package/dist/commands/slack/read-channel.d.ts +8 -8
  953. package/dist/commands/slack/read-thread.d.ts +7 -7
  954. package/dist/commands/slack/run.d.ts +5 -5
  955. package/dist/commands/slack/search.d.ts +8 -8
  956. package/dist/commands/slack/send-as-agent.d.ts +8 -8
  957. package/dist/commands/slack/tools.d.ts +2 -2
  958. package/dist/commands/space-directory-views/create.d.ts +6 -6
  959. package/dist/commands/space-directory-views/delete.d.ts +4 -4
  960. package/dist/commands/space-directory-views/list.d.ts +1 -1
  961. package/dist/commands/space-directory-views/show.d.ts +2 -2
  962. package/dist/commands/space-directory-views/update.d.ts +7 -7
  963. package/dist/commands/spaces/actions/add.d.ts +9 -9
  964. package/dist/commands/spaces/actions/available.d.ts +2 -2
  965. package/dist/commands/spaces/actions/delete.d.ts +4 -4
  966. package/dist/commands/spaces/actions/list.d.ts +3 -3
  967. package/dist/commands/spaces/actions/replace.d.ts +5 -5
  968. package/dist/commands/spaces/actions/run.d.ts +3 -3
  969. package/dist/commands/spaces/actions/update.d.ts +9 -9
  970. package/dist/commands/spaces/archive.d.ts +2 -2
  971. package/dist/commands/spaces/auto-executor/preview.d.ts +2 -2
  972. package/dist/commands/spaces/auto-executor/run.d.ts +2 -2
  973. package/dist/commands/spaces/auto-executor/runs.d.ts +3 -3
  974. package/dist/commands/spaces/auto-executor/update.d.ts +11 -11
  975. package/dist/commands/spaces/bootstrap.d.ts +2 -2
  976. package/dist/commands/spaces/briefs/delete.d.ts +4 -4
  977. package/dist/commands/spaces/briefs/get.d.ts +4 -4
  978. package/dist/commands/spaces/briefs/list.d.ts +2 -2
  979. package/dist/commands/spaces/briefs/set.d.ts +10 -10
  980. package/dist/commands/spaces/capacity.d.ts +3 -3
  981. package/dist/commands/spaces/claim.d.ts +2 -2
  982. package/dist/commands/spaces/conversations.d.ts +4 -4
  983. package/dist/commands/spaces/create.d.ts +17 -17
  984. package/dist/commands/spaces/cycles/create.d.ts +7 -7
  985. package/dist/commands/spaces/cycles/graph.d.ts +4 -4
  986. package/dist/commands/spaces/cycles/list.d.ts +4 -4
  987. package/dist/commands/spaces/cycles/settings.d.ts +6 -6
  988. package/dist/commands/spaces/cycles/show.d.ts +3 -3
  989. package/dist/commands/spaces/cycles/update.d.ts +8 -8
  990. package/dist/commands/spaces/delete.d.ts +2 -2
  991. package/dist/commands/spaces/expertise-suggestions.d.ts +2 -2
  992. package/dist/commands/spaces/files/delete.d.ts +4 -4
  993. package/dist/commands/spaces/files/folders/create.d.ts +5 -5
  994. package/dist/commands/spaces/files/folders/delete.d.ts +5 -5
  995. package/dist/commands/spaces/files/folders/list.d.ts +2 -2
  996. package/dist/commands/spaces/files/folders/update.d.ts +7 -7
  997. package/dist/commands/spaces/files/list.d.ts +2 -2
  998. package/dist/commands/spaces/files/move.d.ts +5 -5
  999. package/dist/commands/spaces/files/rename.d.ts +4 -4
  1000. package/dist/commands/spaces/files/upload.d.ts +4 -4
  1001. package/dist/commands/spaces/github-automations/set.d.ts +3 -3
  1002. package/dist/commands/spaces/github-automations/show.d.ts +2 -2
  1003. package/dist/commands/spaces/goals.d.ts +2 -2
  1004. package/dist/commands/spaces/heartbeats/create.d.ts +11 -11
  1005. package/dist/commands/spaces/heartbeats/delete.d.ts +4 -4
  1006. package/dist/commands/spaces/heartbeats/list.d.ts +2 -2
  1007. package/dist/commands/spaces/heartbeats/status.d.ts +3 -3
  1008. package/dist/commands/spaces/heartbeats/update.d.ts +12 -12
  1009. package/dist/commands/spaces/index.d.ts +1 -1
  1010. package/dist/commands/spaces/insights.d.ts +14 -14
  1011. package/dist/commands/spaces/install-template.d.ts +7 -7
  1012. package/dist/commands/spaces/label-summaries.d.ts +1 -1
  1013. package/dist/commands/spaces/labels/add.d.ts +3 -3
  1014. package/dist/commands/spaces/labels/list.d.ts +2 -2
  1015. package/dist/commands/spaces/labels/remove.d.ts +3 -3
  1016. package/dist/commands/spaces/list.d.ts +11 -11
  1017. package/dist/commands/spaces/live/cards/create.d.ts +10 -10
  1018. package/dist/commands/spaces/live/cards/delete.d.ts +4 -4
  1019. package/dist/commands/spaces/live/cards/list.d.ts +2 -2
  1020. package/dist/commands/spaces/live/cards/reorder.d.ts +4 -4
  1021. package/dist/commands/spaces/live/cards/update.d.ts +11 -11
  1022. package/dist/commands/spaces/live/scene.d.ts +4 -4
  1023. package/dist/commands/spaces/members/add.d.ts +8 -8
  1024. package/dist/commands/spaces/members/list.d.ts +3 -3
  1025. package/dist/commands/spaces/members/remove.d.ts +5 -5
  1026. package/dist/commands/spaces/members/search.d.ts +3 -3
  1027. package/dist/commands/spaces/move.d.ts +4 -4
  1028. package/dist/commands/spaces/open.d.ts +4 -4
  1029. package/dist/commands/spaces/ownership.d.ts +2 -2
  1030. package/dist/commands/spaces/pin.d.ts +2 -2
  1031. package/dist/commands/spaces/preferences/show.d.ts +2 -2
  1032. package/dist/commands/spaces/preferences/tabs.d.ts +5 -5
  1033. package/dist/commands/spaces/reorder.d.ts +6 -6
  1034. package/dist/commands/spaces/revisions.d.ts +2 -2
  1035. package/dist/commands/spaces/room/ensure.d.ts +2 -2
  1036. package/dist/commands/spaces/room/messages.d.ts +5 -5
  1037. package/dist/commands/spaces/room/send.d.ts +8 -8
  1038. package/dist/commands/spaces/room/show.d.ts +2 -2
  1039. package/dist/commands/spaces/show.d.ts +2 -2
  1040. package/dist/commands/spaces/skills/add.d.ts +3 -3
  1041. package/dist/commands/spaces/skills/list.d.ts +2 -2
  1042. package/dist/commands/spaces/skills/pin.d.ts +4 -4
  1043. package/dist/commands/spaces/skills/remove.d.ts +3 -3
  1044. package/dist/commands/spaces/snapshot.d.ts +11 -11
  1045. package/dist/commands/spaces/states/archive.d.ts +3 -3
  1046. package/dist/commands/spaces/states/create.d.ts +7 -7
  1047. package/dist/commands/spaces/states/list.d.ts +2 -2
  1048. package/dist/commands/spaces/states/reorder.d.ts +3 -3
  1049. package/dist/commands/spaces/states/update.d.ts +6 -6
  1050. package/dist/commands/spaces/subspaces.d.ts +3 -3
  1051. package/dist/commands/spaces/summary.d.ts +2 -2
  1052. package/dist/commands/spaces/task-rollups.d.ts +1 -1
  1053. package/dist/commands/spaces/tasks.d.ts +7 -7
  1054. package/dist/commands/spaces/templates/create.d.ts +9 -9
  1055. package/dist/commands/spaces/templates/delete.d.ts +3 -3
  1056. package/dist/commands/spaces/templates/fork.d.ts +4 -4
  1057. package/dist/commands/spaces/templates/index.d.ts +7 -7
  1058. package/dist/commands/spaces/templates/purchase-status.d.ts +2 -2
  1059. package/dist/commands/spaces/templates/rate.d.ts +4 -4
  1060. package/dist/commands/spaces/templates/report.d.ts +4 -4
  1061. package/dist/commands/spaces/templates/show.d.ts +3 -3
  1062. package/dist/commands/spaces/templates/update.d.ts +11 -11
  1063. package/dist/commands/spaces/templates/visibility.d.ts +7 -7
  1064. package/dist/commands/spaces/transfer-workspace.d.ts +3 -3
  1065. package/dist/commands/spaces/triggers/delete.d.ts +3 -3
  1066. package/dist/commands/spaces/triggers/set.d.ts +26 -26
  1067. package/dist/commands/spaces/triggers/show.d.ts +2 -2
  1068. package/dist/commands/spaces/unarchive.d.ts +2 -2
  1069. package/dist/commands/spaces/update.d.ts +26 -26
  1070. package/dist/commands/spaces/usage.d.ts +3 -3
  1071. package/dist/commands/spaces/views/create.d.ts +8 -8
  1072. package/dist/commands/spaces/views/delete.d.ts +4 -4
  1073. package/dist/commands/spaces/views/duplicate.d.ts +3 -3
  1074. package/dist/commands/spaces/views/list.d.ts +2 -2
  1075. package/dist/commands/spaces/views/reorder.d.ts +5 -5
  1076. package/dist/commands/spaces/views/subscribe.d.ts +7 -7
  1077. package/dist/commands/spaces/views/subscriptions.d.ts +3 -3
  1078. package/dist/commands/spaces/views/unsubscribe.d.ts +3 -3
  1079. package/dist/commands/spaces/views/update.d.ts +10 -10
  1080. package/dist/commands/spaces/widgets/add.d.ts +4 -4
  1081. package/dist/commands/spaces/widgets/list.d.ts +2 -2
  1082. package/dist/commands/spaces/widgets/remove.d.ts +4 -4
  1083. package/dist/commands/spaces/work-graph.d.ts +4 -4
  1084. package/dist/commands/spaces/work-sync/reconcile.d.ts +2 -2
  1085. package/dist/commands/spaces/work-sync/telemetry.d.ts +3 -3
  1086. package/dist/commands/spaces/workflow-templates/archive.d.ts +4 -4
  1087. package/dist/commands/spaces/workflow-templates/create.d.ts +8 -8
  1088. package/dist/commands/spaces/workflow-templates/extract.d.ts +9 -9
  1089. package/dist/commands/spaces/workflow-templates/insert.d.ts +9 -9
  1090. package/dist/commands/spaces/workflow-templates/list.d.ts +7 -7
  1091. package/dist/commands/spaces/workflow-templates/promote.d.ts +5 -5
  1092. package/dist/commands/spaces/workflow-templates/publish.d.ts +4 -4
  1093. package/dist/commands/spaces/workflow-templates/show.d.ts +5 -5
  1094. package/dist/commands/spaces/workflow-templates/update.d.ts +8 -8
  1095. package/dist/commands/spaces/workflow-templates/versions.d.ts +3 -3
  1096. package/dist/commands/spaces/workflows/archive.d.ts +4 -4
  1097. package/dist/commands/spaces/workflows/artifact.d.ts +5 -5
  1098. package/dist/commands/spaces/workflows/cancel-node.d.ts +6 -6
  1099. package/dist/commands/spaces/workflows/cancel.d.ts +5 -5
  1100. package/dist/commands/spaces/workflows/create.d.ts +7 -7
  1101. package/dist/commands/spaces/workflows/events.d.ts +4 -4
  1102. package/dist/commands/spaces/workflows/fixtures/create.d.ts +11 -11
  1103. package/dist/commands/spaces/workflows/fixtures/list.d.ts +4 -4
  1104. package/dist/commands/spaces/workflows/lifecycle-diagnostics.d.ts +2 -2
  1105. package/dist/commands/spaces/workflows/list.d.ts +2 -2
  1106. package/dist/commands/spaces/workflows/node-types.d.ts +2 -2
  1107. package/dist/commands/spaces/workflows/pause.d.ts +5 -5
  1108. package/dist/commands/spaces/workflows/plan/show.d.ts +3 -3
  1109. package/dist/commands/spaces/workflows/plan/update.d.ts +7 -7
  1110. package/dist/commands/spaces/workflows/proposals/apply.d.ts +5 -5
  1111. package/dist/commands/spaces/workflows/proposals/confirm.d.ts +5 -5
  1112. package/dist/commands/spaces/workflows/proposals/create.d.ts +7 -7
  1113. package/dist/commands/spaces/workflows/proposals/dismiss.d.ts +5 -5
  1114. package/dist/commands/spaces/workflows/proposals/list.d.ts +3 -3
  1115. package/dist/commands/spaces/workflows/publish.d.ts +3 -3
  1116. package/dist/commands/spaces/workflows/reconcile.d.ts +3 -3
  1117. package/dist/commands/spaces/workflows/resume.d.ts +4 -4
  1118. package/dist/commands/spaces/workflows/retry.d.ts +4 -4
  1119. package/dist/commands/spaces/workflows/run.d.ts +4 -4
  1120. package/dist/commands/spaces/workflows/runs.d.ts +6 -6
  1121. package/dist/commands/spaces/workflows/show.d.ts +3 -3
  1122. package/dist/commands/spaces/workflows/signal.d.ts +7 -7
  1123. package/dist/commands/spaces/workflows/start.d.ts +6 -6
  1124. package/dist/commands/spaces/workflows/task-execution/create.d.ts +5 -5
  1125. package/dist/commands/spaces/workflows/test.d.ts +7 -7
  1126. package/dist/commands/spaces/workflows/triggers/create.d.ts +7 -7
  1127. package/dist/commands/spaces/workflows/triggers/fire.d.ts +7 -7
  1128. package/dist/commands/spaces/workflows/triggers/list.d.ts +3 -3
  1129. package/dist/commands/spaces/workflows/triggers/update.d.ts +8 -8
  1130. package/dist/commands/spaces/workflows/update.d.ts +13 -13
  1131. package/dist/commands/spaces/workflows/validate.d.ts +3 -3
  1132. package/dist/commands/step-up.d.ts +4 -4
  1133. package/dist/commands/store/acquisitions/approve.d.ts +3 -3
  1134. package/dist/commands/store/acquisitions/decline.d.ts +2 -2
  1135. package/dist/commands/store/acquisitions/list.d.ts +3 -3
  1136. package/dist/commands/store/acquisitions/show.d.ts +2 -2
  1137. package/dist/commands/store/admissions/approve.d.ts +5 -5
  1138. package/dist/commands/store/admissions/list.d.ts +2 -2
  1139. package/dist/commands/store/admissions/refuse.d.ts +5 -5
  1140. package/dist/commands/store/advisories/artifact.d.ts +6 -6
  1141. package/dist/commands/store/advisories/cancel.d.ts +2 -2
  1142. package/dist/commands/store/advisories/close.d.ts +4 -4
  1143. package/dist/commands/store/advisories/confirm.d.ts +3 -3
  1144. package/dist/commands/store/advisories/issue.d.ts +6 -6
  1145. package/dist/commands/store/advisories/list.d.ts +4 -4
  1146. package/dist/commands/store/advisories/show.d.ts +2 -2
  1147. package/dist/commands/store/artifacts/release.d.ts +8 -8
  1148. package/dist/commands/store/artifacts/used-by.d.ts +3 -3
  1149. package/dist/commands/store/browse.d.ts +11 -11
  1150. package/dist/commands/store/channel.d.ts +3 -3
  1151. package/dist/commands/store/follow.d.ts +4 -4
  1152. package/dist/commands/store/follows/list.d.ts +2 -2
  1153. package/dist/commands/store/follows/remove.d.ts +2 -2
  1154. package/dist/commands/store/governance/artifacts.d.ts +8 -8
  1155. package/dist/commands/store/governance/assign.d.ts +5 -5
  1156. package/dist/commands/store/governance/create-license.d.ts +2 -2
  1157. package/dist/commands/store/governance/install-plan.d.ts +6 -6
  1158. package/dist/commands/store/governance/license-policy.d.ts +6 -6
  1159. package/dist/commands/store/governance/policy.d.ts +7 -7
  1160. package/dist/commands/store/governance/publish-release.d.ts +2 -2
  1161. package/dist/commands/store/governance/requests.d.ts +7 -7
  1162. package/dist/commands/store/install.d.ts +9 -9
  1163. package/dist/commands/store/installs.d.ts +1 -1
  1164. package/dist/commands/store/issues.d.ts +10 -10
  1165. package/dist/commands/store/maintainers/add.d.ts +4 -4
  1166. package/dist/commands/store/maintainers/remove.d.ts +5 -5
  1167. package/dist/commands/store/publishers/approve.d.ts +4 -4
  1168. package/dist/commands/store/publishers/cancel.d.ts +2 -2
  1169. package/dist/commands/store/publishers/claim.d.ts +3 -3
  1170. package/dist/commands/store/publishers/confirm.d.ts +2 -2
  1171. package/dist/commands/store/publishers/domains/begin.d.ts +3 -3
  1172. package/dist/commands/store/publishers/domains/list.d.ts +2 -2
  1173. package/dist/commands/store/publishers/domains/verify.d.ts +3 -3
  1174. package/dist/commands/store/publishers/namespaces.d.ts +1 -1
  1175. package/dist/commands/store/publishers/profile/draft.d.ts +4 -4
  1176. package/dist/commands/store/publishers/profile/handle.d.ts +3 -3
  1177. package/dist/commands/store/publishers/profile/hide.d.ts +3 -3
  1178. package/dist/commands/store/publishers/profile/preview.d.ts +2 -2
  1179. package/dist/commands/store/publishers/profile/publish.d.ts +3 -3
  1180. package/dist/commands/store/publishers/profile/restore.d.ts +4 -4
  1181. package/dist/commands/store/publishers/profile/revisions.d.ts +2 -2
  1182. package/dist/commands/store/publishers/profile/show.d.ts +2 -2
  1183. package/dist/commands/store/publishers/verified.d.ts +2 -2
  1184. package/dist/commands/store/refund.d.ts +5 -5
  1185. package/dist/commands/store/releases.d.ts +2 -2
  1186. package/dist/commands/store/report.d.ts +5 -5
  1187. package/dist/commands/store/reports/confirm-ban.d.ts +3 -3
  1188. package/dist/commands/store/reports/disposition.d.ts +4 -4
  1189. package/dist/commands/store/reports/list.d.ts +4 -4
  1190. package/dist/commands/store/reports/withdraw-ban.d.ts +3 -3
  1191. package/dist/commands/store/reports.d.ts +2 -2
  1192. package/dist/commands/store/review.d.ts +5 -5
  1193. package/dist/commands/store/reviews.d.ts +8 -8
  1194. package/dist/commands/store/show.d.ts +2 -2
  1195. package/dist/commands/store/signals.d.ts +2 -2
  1196. package/dist/commands/store/star.d.ts +3 -3
  1197. package/dist/commands/store/stars.d.ts +1 -1
  1198. package/dist/commands/store/stats.d.ts +3 -3
  1199. package/dist/commands/store/tip.d.ts +4 -4
  1200. package/dist/commands/store/trial.d.ts +2 -2
  1201. package/dist/commands/store/uninstall.d.ts +4 -4
  1202. package/dist/commands/store/update.d.ts +7 -7
  1203. package/dist/commands/store/updates.d.ts +1 -1
  1204. package/dist/commands/store/watch.d.ts +3 -3
  1205. package/dist/commands/subscriptions/cancel.d.ts +4 -4
  1206. package/dist/commands/subscriptions/health.d.ts +2 -2
  1207. package/dist/commands/subscriptions/list.d.ts +1 -1
  1208. package/dist/commands/subscriptions/status.d.ts +2 -2
  1209. package/dist/commands/subscriptions/subscribe.d.ts +6 -6
  1210. package/dist/commands/tasks/actionability.d.ts +3 -3
  1211. package/dist/commands/tasks/actions/attach.d.ts +5 -5
  1212. package/dist/commands/tasks/actions/detach.d.ts +5 -5
  1213. package/dist/commands/tasks/active.d.ts +4 -4
  1214. package/dist/commands/tasks/activity.d.ts +3 -3
  1215. package/dist/commands/tasks/ancestors.d.ts +2 -2
  1216. package/dist/commands/tasks/approvals/create.d.ts +5 -5
  1217. package/dist/commands/tasks/approvals/delete.d.ts +3 -3
  1218. package/dist/commands/tasks/approvals/list.d.ts +2 -2
  1219. package/dist/commands/tasks/approvals/resolve.d.ts +5 -5
  1220. package/dist/commands/tasks/archive.d.ts +3 -3
  1221. package/dist/commands/tasks/assign.d.ts +13 -13
  1222. package/dist/commands/tasks/attachments/delete.d.ts +3 -3
  1223. package/dist/commands/tasks/attachments/download.d.ts +4 -4
  1224. package/dist/commands/tasks/attachments/list.d.ts +2 -2
  1225. package/dist/commands/tasks/attachments/set-role.d.ts +4 -4
  1226. package/dist/commands/tasks/attachments/upload.d.ts +4 -4
  1227. package/dist/commands/tasks/bulk-update.d.ts +5 -5
  1228. package/dist/commands/tasks/calendar.d.ts +3 -3
  1229. package/dist/commands/tasks/cancel-cascade.d.ts +3 -3
  1230. package/dist/commands/tasks/cascade-status.d.ts +2 -2
  1231. package/dist/commands/tasks/chat/exchange.d.ts +8 -8
  1232. package/dist/commands/tasks/chat/index.d.ts +8 -8
  1233. package/dist/commands/tasks/chat/read.d.ts +3 -3
  1234. package/dist/commands/tasks/chat/reindex.d.ts +2 -2
  1235. package/dist/commands/tasks/chat/reopen.d.ts +3 -3
  1236. package/dist/commands/tasks/chat/repair-attention.d.ts +2 -2
  1237. package/dist/commands/tasks/chat/rotate.d.ts +4 -4
  1238. package/dist/commands/tasks/chat/send.d.ts +5 -5
  1239. package/dist/commands/tasks/checkout.d.ts +3 -3
  1240. package/dist/commands/tasks/children.d.ts +2 -2
  1241. package/dist/commands/tasks/comments/add.d.ts +12 -12
  1242. package/dist/commands/tasks/comments/add.js +8 -36
  1243. package/dist/commands/tasks/comments/anchor.d.ts +12 -12
  1244. package/dist/commands/tasks/comments/delete.d.ts +3 -3
  1245. package/dist/commands/tasks/comments/list.d.ts +5 -5
  1246. package/dist/commands/tasks/comments/react.d.ts +4 -4
  1247. package/dist/commands/tasks/comments/reopen.d.ts +3 -3
  1248. package/dist/commands/tasks/comments/resolve.d.ts +3 -3
  1249. package/dist/commands/tasks/communications.d.ts +4 -4
  1250. package/dist/commands/tasks/complete.d.ts +20 -20
  1251. package/dist/commands/tasks/complete.js +1 -34
  1252. package/dist/commands/tasks/continue-ready.d.ts +10 -10
  1253. package/dist/commands/tasks/continue.d.ts +8 -8
  1254. package/dist/commands/tasks/create-tree.d.ts +16 -16
  1255. package/dist/commands/tasks/create.d.ts +44 -44
  1256. package/dist/commands/tasks/current.d.ts +1 -1
  1257. package/dist/commands/tasks/delete.d.ts +3 -3
  1258. package/dist/commands/tasks/deliverable/add.d.ts +14 -14
  1259. package/dist/commands/tasks/deliverable/archive.d.ts +5 -5
  1260. package/dist/commands/tasks/deliverable/confirm.d.ts +4 -4
  1261. package/dist/commands/tasks/deliverable/list.d.ts +3 -3
  1262. package/dist/commands/tasks/descendants.d.ts +3 -3
  1263. package/dist/commands/tasks/dri-plan.d.ts +2 -2
  1264. package/dist/commands/tasks/dri-run.d.ts +2 -2
  1265. package/dist/commands/tasks/dri-status.d.ts +2 -2
  1266. package/dist/commands/tasks/duplicate-pipeline.d.ts +4 -4
  1267. package/dist/commands/tasks/economics-compare.d.ts +5 -5
  1268. package/dist/commands/tasks/events/append.d.ts +11 -11
  1269. package/dist/commands/tasks/events/list.d.ts +8 -8
  1270. package/dist/commands/tasks/events/tail.d.ts +6 -6
  1271. package/dist/commands/tasks/execution-state.d.ts +2 -2
  1272. package/dist/commands/tasks/execution-summary.d.ts +2 -2
  1273. package/dist/commands/tasks/execution-timeline.d.ts +4 -4
  1274. package/dist/commands/tasks/expectations/assess.d.ts +14 -14
  1275. package/dist/commands/tasks/expectations/evaluate.d.ts +4 -4
  1276. package/dist/commands/tasks/expectations.d.ts +2 -2
  1277. package/dist/commands/tasks/export.d.ts +35 -35
  1278. package/dist/commands/tasks/follow-up.d.ts +26 -26
  1279. package/dist/commands/tasks/fork.d.ts +8 -8
  1280. package/dist/commands/tasks/forward.d.ts +4 -4
  1281. package/dist/commands/tasks/from-message.d.ts +3 -3
  1282. package/dist/commands/tasks/guide.d.ts +1 -1
  1283. package/dist/commands/tasks/handover.d.ts +7 -7
  1284. package/dist/commands/tasks/import.d.ts +10 -10
  1285. package/dist/commands/tasks/input/answer.d.ts +6 -6
  1286. package/dist/commands/tasks/input/dismiss.d.ts +3 -3
  1287. package/dist/commands/tasks/input/show.d.ts +2 -2
  1288. package/dist/commands/tasks/interrupt.d.ts +3 -3
  1289. package/dist/commands/tasks/judge.d.ts +5 -5
  1290. package/dist/commands/tasks/labels/attach.d.ts +3 -3
  1291. package/dist/commands/tasks/labels/create.d.ts +5 -5
  1292. package/dist/commands/tasks/labels/delete.d.ts +2 -2
  1293. package/dist/commands/tasks/labels/detach.d.ts +3 -3
  1294. package/dist/commands/tasks/labels/list.d.ts +1 -1
  1295. package/dist/commands/tasks/labels/suggest.d.ts +2 -2
  1296. package/dist/commands/tasks/lifecycle/attach.d.ts +5 -5
  1297. package/dist/commands/tasks/lifecycle/definitions.d.ts +2 -2
  1298. package/dist/commands/tasks/lifecycle/detach.d.ts +4 -4
  1299. package/dist/commands/tasks/lifecycle/history.d.ts +4 -4
  1300. package/dist/commands/tasks/lifecycle/migrate.d.ts +4 -4
  1301. package/dist/commands/tasks/lifecycle/reconcile.d.ts +2 -2
  1302. package/dist/commands/tasks/lifecycle/reopen.d.ts +5 -5
  1303. package/dist/commands/tasks/lifecycle/show.d.ts +2 -2
  1304. package/dist/commands/tasks/lifecycle/start.d.ts +3 -3
  1305. package/dist/commands/tasks/lifecycle/transition.d.ts +6 -6
  1306. package/dist/commands/tasks/list.d.ts +49 -49
  1307. package/dist/commands/tasks/mark-duplicate.d.ts +3 -3
  1308. package/dist/commands/tasks/monitor.d.ts +6 -6
  1309. package/dist/commands/tasks/move.d.ts +8 -8
  1310. package/dist/commands/tasks/open.d.ts +5 -5
  1311. package/dist/commands/tasks/output.d.ts +4 -4
  1312. package/dist/commands/tasks/pause-schedule.d.ts +2 -2
  1313. package/dist/commands/tasks/plan/add-subtask.d.ts +7 -7
  1314. package/dist/commands/tasks/plan/cancel.d.ts +4 -4
  1315. package/dist/commands/tasks/plan/create.d.ts +2 -2
  1316. package/dist/commands/tasks/plan/pause.d.ts +5 -5
  1317. package/dist/commands/tasks/plan/reconcile.d.ts +3 -3
  1318. package/dist/commands/tasks/plan/resume.d.ts +4 -4
  1319. package/dist/commands/tasks/plan/retry.d.ts +4 -4
  1320. package/dist/commands/tasks/plan/run-update.d.ts +7 -7
  1321. package/dist/commands/tasks/plan/run.d.ts +3 -3
  1322. package/dist/commands/tasks/plan/show.d.ts +2 -2
  1323. package/dist/commands/tasks/plan/start.d.ts +3 -3
  1324. package/dist/commands/tasks/plan/sync.d.ts +2 -2
  1325. package/dist/commands/tasks/plan/update.d.ts +3 -3
  1326. package/dist/commands/tasks/pr.d.ts +3 -3
  1327. package/dist/commands/tasks/preflight.d.ts +4 -4
  1328. package/dist/commands/tasks/promote.d.ts +5 -5
  1329. package/dist/commands/tasks/prompt-log.d.ts +2 -2
  1330. package/dist/commands/tasks/ready.d.ts +7 -7
  1331. package/dist/commands/tasks/rearm-recurrence.d.ts +4 -4
  1332. package/dist/commands/tasks/release.d.ts +2 -2
  1333. package/dist/commands/tasks/remind.d.ts +3 -3
  1334. package/dist/commands/tasks/replay.d.ts +3 -3
  1335. package/dist/commands/tasks/report.d.ts +10 -10
  1336. package/dist/commands/tasks/resource/add.d.ts +13 -13
  1337. package/dist/commands/tasks/resource/list.d.ts +4 -4
  1338. package/dist/commands/tasks/result/show.d.ts +4 -4
  1339. package/dist/commands/tasks/result/submit.d.ts +17 -17
  1340. package/dist/commands/tasks/result/submit.js +1 -34
  1341. package/dist/commands/tasks/resume/save.d.ts +7 -7
  1342. package/dist/commands/tasks/resume/show.d.ts +4 -4
  1343. package/dist/commands/tasks/resume-schedule.d.ts +2 -2
  1344. package/dist/commands/tasks/retry-schedule.d.ts +3 -3
  1345. package/dist/commands/tasks/retry.d.ts +5 -5
  1346. package/dist/commands/tasks/review-queue.d.ts +5 -5
  1347. package/dist/commands/tasks/review.d.ts +8 -8
  1348. package/dist/commands/tasks/revisions.d.ts +2 -2
  1349. package/dist/commands/tasks/runs.d.ts +2 -2
  1350. package/dist/commands/tasks/schedule.d.ts +8 -8
  1351. package/dist/commands/tasks/self-schedule.d.ts +8 -8
  1352. package/dist/commands/tasks/show.d.ts +5 -5
  1353. package/dist/commands/tasks/skills/pin.d.ts +5 -5
  1354. package/dist/commands/tasks/skills/unpin.d.ts +5 -5
  1355. package/dist/commands/tasks/snooze.d.ts +6 -6
  1356. package/dist/commands/tasks/start-all.d.ts +3 -3
  1357. package/dist/commands/tasks/start.d.ts +6 -6
  1358. package/dist/commands/tasks/subscribe.d.ts +3 -3
  1359. package/dist/commands/tasks/tags/add.d.ts +3 -3
  1360. package/dist/commands/tasks/tags/remove.d.ts +3 -3
  1361. package/dist/commands/tasks/templates/create.d.ts +11 -11
  1362. package/dist/commands/tasks/templates/create.js +1 -34
  1363. package/dist/commands/tasks/templates/delete.d.ts +2 -2
  1364. package/dist/commands/tasks/templates/list.d.ts +2 -2
  1365. package/dist/commands/tasks/templates/reorder.d.ts +3 -3
  1366. package/dist/commands/tasks/templates/show.d.ts +2 -2
  1367. package/dist/commands/tasks/templates/update.d.ts +10 -10
  1368. package/dist/commands/tasks/templates/update.js +1 -34
  1369. package/dist/commands/tasks/timeline.d.ts +7 -7
  1370. package/dist/commands/tasks/today.d.ts +7 -7
  1371. package/dist/commands/tasks/transcript.d.ts +6 -6
  1372. package/dist/commands/tasks/tree.d.ts +6 -6
  1373. package/dist/commands/tasks/triage.d.ts +8 -8
  1374. package/dist/commands/tasks/trust.d.ts +5 -5
  1375. package/dist/commands/tasks/unschedule.d.ts +2 -2
  1376. package/dist/commands/tasks/unsnooze.d.ts +3 -3
  1377. package/dist/commands/tasks/unsubscribe.d.ts +3 -3
  1378. package/dist/commands/tasks/update.d.ts +45 -45
  1379. package/dist/commands/tasks/updates/add.d.ts +13 -13
  1380. package/dist/commands/tasks/updates/add.js +1 -34
  1381. package/dist/commands/tasks/updates/list.d.ts +6 -6
  1382. package/dist/commands/tasks/upsert.d.ts +20 -20
  1383. package/dist/commands/tasks/wait.d.ts +9 -9
  1384. package/dist/commands/tasks/waive.d.ts +4 -4
  1385. package/dist/commands/tasks/watch.d.ts +8 -8
  1386. package/dist/commands/tasks/workflow/approve-merge.d.ts +2 -2
  1387. package/dist/commands/tasks/workflow/cancel.d.ts +3 -3
  1388. package/dist/commands/tasks/workflow/e2e-complete.d.ts +7 -7
  1389. package/dist/commands/tasks/workflow/index.d.ts +2 -2
  1390. package/dist/commands/tasks/workflow/retry-stage.d.ts +3 -3
  1391. package/dist/commands/tasks/workflow/start.d.ts +2 -2
  1392. package/dist/commands/tasks/workflow-await.d.ts +5 -5
  1393. package/dist/commands/tasks/workflow-context.d.ts +3 -3
  1394. package/dist/commands/tasks/workflow-findings.d.ts +5 -5
  1395. package/dist/commands/teams/list-channels.d.ts +3 -3
  1396. package/dist/commands/teams/list-users.d.ts +4 -4
  1397. package/dist/commands/teams/read-channel.d.ts +5 -5
  1398. package/dist/commands/teams/read-thread.d.ts +6 -6
  1399. package/dist/commands/teams/run.d.ts +5 -5
  1400. package/dist/commands/teams/search.d.ts +5 -5
  1401. package/dist/commands/teams/send-as-agent.d.ts +6 -6
  1402. package/dist/commands/teams/tools.d.ts +2 -2
  1403. package/dist/commands/token/list.d.ts +3 -3
  1404. package/dist/commands/token/mint.d.ts +3 -3
  1405. package/dist/commands/token/revoke.d.ts +2 -2
  1406. package/dist/commands/tokens/create.d.ts +7 -7
  1407. package/dist/commands/tokens/list.d.ts +2 -2
  1408. package/dist/commands/tokens/revoke.d.ts +3 -3
  1409. package/dist/commands/tones/apply.d.ts +4 -4
  1410. package/dist/commands/tones/create.d.ts +11 -11
  1411. package/dist/commands/tones/default.d.ts +3 -3
  1412. package/dist/commands/tones/delete.d.ts +2 -2
  1413. package/dist/commands/tones/export.d.ts +6 -6
  1414. package/dist/commands/tones/import.d.ts +4 -4
  1415. package/dist/commands/tones/list.d.ts +4 -4
  1416. package/dist/commands/tones/policy/set.d.ts +8 -8
  1417. package/dist/commands/tones/policy/show.d.ts +2 -2
  1418. package/dist/commands/tones/show.d.ts +2 -2
  1419. package/dist/commands/tones/update.d.ts +11 -11
  1420. package/dist/commands/triggers/actions.d.ts +2 -2
  1421. package/dist/commands/triggers/audit.d.ts +9 -9
  1422. package/dist/commands/triggers/capabilities.d.ts +2 -2
  1423. package/dist/commands/triggers/create.d.ts +73 -73
  1424. package/dist/commands/triggers/delete.d.ts +3 -3
  1425. package/dist/commands/triggers/disable.d.ts +2 -2
  1426. package/dist/commands/triggers/enable.d.ts +2 -2
  1427. package/dist/commands/triggers/event-catalog.d.ts +1 -1
  1428. package/dist/commands/triggers/fire-detail.d.ts +3 -3
  1429. package/dist/commands/triggers/fire.d.ts +4 -4
  1430. package/dist/commands/triggers/list.d.ts +7 -7
  1431. package/dist/commands/triggers/parse-intent.d.ts +8 -8
  1432. package/dist/commands/triggers/preflight.d.ts +4 -4
  1433. package/dist/commands/triggers/prune.d.ts +8 -8
  1434. package/dist/commands/triggers/replay.d.ts +4 -4
  1435. package/dist/commands/triggers/rotate-secret.d.ts +2 -2
  1436. package/dist/commands/triggers/runs.d.ts +5 -5
  1437. package/dist/commands/triggers/show.d.ts +2 -2
  1438. package/dist/commands/triggers/update.d.ts +63 -63
  1439. package/dist/commands/update.d.ts +5 -5
  1440. package/dist/commands/usage.d.ts +3 -3
  1441. package/dist/commands/views/create.d.ts +19 -19
  1442. package/dist/commands/views/delete.d.ts +3 -3
  1443. package/dist/commands/views/list.d.ts +1 -1
  1444. package/dist/commands/views/show.d.ts +2 -2
  1445. package/dist/commands/views/subscribe.d.ts +6 -6
  1446. package/dist/commands/views/subscriptions.d.ts +2 -2
  1447. package/dist/commands/views/unsubscribe.d.ts +2 -2
  1448. package/dist/commands/views/update.d.ts +16 -16
  1449. package/dist/commands/webhooks/create.d.ts +5 -5
  1450. package/dist/commands/webhooks/delete.d.ts +2 -2
  1451. package/dist/commands/webhooks/deliveries.d.ts +3 -3
  1452. package/dist/commands/webhooks/list.d.ts +3 -3
  1453. package/dist/commands/webhooks/test.d.ts +2 -2
  1454. package/dist/commands/whoami.d.ts +1 -1
  1455. package/dist/commands/widgets/add.d.ts +5 -5
  1456. package/dist/commands/widgets/check.d.ts +5 -5
  1457. package/dist/commands/widgets/list.d.ts +2 -2
  1458. package/dist/commands/widgets/remove.d.ts +3 -3
  1459. package/dist/commands/widgets/reorder.d.ts +4 -4
  1460. package/dist/commands/widgets/revert.d.ts +4 -4
  1461. package/dist/commands/widgets/save-as-app.d.ts +3 -3
  1462. package/dist/commands/widgets/show.d.ts +3 -3
  1463. package/dist/commands/widgets/update.d.ts +5 -5
  1464. package/dist/commands/widgets/versions.d.ts +4 -4
  1465. package/dist/commands/wiki/cat.d.ts +5 -5
  1466. package/dist/commands/wiki/ls.d.ts +4 -4
  1467. package/dist/commands/wiki/mkdir.d.ts +3 -3
  1468. package/dist/commands/wiki/mv.d.ts +5 -5
  1469. package/dist/commands/wiki/rm.d.ts +6 -6
  1470. package/dist/commands/wiki/rmdir.d.ts +5 -5
  1471. package/dist/commands/wiki/search.d.ts +4 -4
  1472. package/dist/commands/wiki/tree.d.ts +3 -3
  1473. package/dist/commands/wiki/update.d.ts +7 -7
  1474. package/dist/commands/wiki/write.d.ts +9 -9
  1475. package/dist/commands/work-views/create.d.ts +5 -5
  1476. package/dist/commands/work-views/delete.d.ts +4 -4
  1477. package/dist/commands/work-views/list.d.ts +1 -1
  1478. package/dist/commands/work-views/result.d.ts +2 -2
  1479. package/dist/commands/work-views/update.d.ts +6 -6
  1480. package/dist/commands/worklog/list.d.ts +6 -6
  1481. package/dist/commands/worklog/rm.d.ts +3 -3
  1482. package/dist/commands/worklog/save.d.ts +8 -8
  1483. package/dist/commands/worklog/search.d.ts +4 -4
  1484. package/dist/commands/worklog/show.d.ts +3 -3
  1485. package/dist/commands/worklog/stats.d.ts +2 -2
  1486. package/dist/commands/worklog/update.d.ts +7 -7
  1487. package/dist/commands/workspaces/attribution.d.ts +4 -4
  1488. package/dist/commands/workspaces/audit.d.ts +8 -8
  1489. package/dist/commands/workspaces/grants.d.ts +2 -2
  1490. package/dist/commands/workspaces/list.d.ts +1 -1
  1491. package/dist/commands/workspaces/members.d.ts +3 -3
  1492. package/dist/commands/workspaces/stewardship.d.ts +3 -3
  1493. package/dist/commands/workspaces/use.d.ts +3 -3
  1494. package/dist/generated/managed-instruction-guides.json +2 -2
  1495. package/dist/lib/agentic-stream.d.ts +10 -1
  1496. package/dist/lib/agentic-stream.js +76 -11
  1497. package/dist/lib/artifact-export.d.ts +8 -8
  1498. package/dist/lib/channel-command-runners.d.ts +11 -11
  1499. package/dist/lib/commerce-command.d.ts +2 -2
  1500. package/dist/lib/commitment-endpoints.d.ts +1 -1
  1501. package/dist/lib/computer-use.d.ts +9 -0
  1502. package/dist/lib/computer-use.js +46 -0
  1503. package/dist/lib/continuityPreferences.d.ts +3 -0
  1504. package/dist/lib/continuityPreferences.js +42 -0
  1505. package/dist/lib/dedicated-lease-command.d.ts +3 -3
  1506. package/dist/lib/dedicated-service-command.d.ts +9 -9
  1507. package/dist/lib/exec-runtime-binary.d.ts +1 -1
  1508. package/dist/lib/exec-runtime-binary.js +3 -3
  1509. package/dist/lib/first-party-harness-remote-install.d.ts +3 -3
  1510. package/dist/lib/first-party-harness-remote-update.d.ts +3 -3
  1511. package/dist/lib/followups.d.ts +1 -1
  1512. package/dist/lib/label-scope.d.ts +3 -3
  1513. package/dist/lib/list-output.d.ts +3 -3
  1514. package/dist/lib/lookbackPlans.d.ts +34 -8
  1515. package/dist/lib/lookbackPlans.js +43 -10
  1516. package/dist/lib/member-output.d.ts +1 -1
  1517. package/dist/lib/memory-scope.d.ts +3 -3
  1518. package/dist/lib/proposal-decision-command.d.ts +7 -7
  1519. package/dist/lib/publisher-profile-flags.d.ts +2 -2
  1520. package/dist/lib/scoped-memory-command.d.ts +25 -25
  1521. package/dist/lib/session-task-write.d.ts +1 -1
  1522. package/dist/lib/space-custom-actions.d.ts +2 -2
  1523. package/dist/lib/task-resolver.d.ts +8 -0
  1524. package/dist/lib/task-resolver.js +18 -0
  1525. package/dist/lib/write-target.d.ts +1 -1
  1526. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/aead.js +75 -59
  1527. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authExpiredDetector.js +67 -80
  1528. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authHelper.js +240 -294
  1529. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/cliHandoffWire.js +138 -165
  1530. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/commitmentExecutionContract.js +376 -492
  1531. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerUse.d.ts +228 -0
  1532. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerUse.js +407 -0
  1533. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerWire.js +1106 -1235
  1534. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/configRoot.js +45 -59
  1535. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelope.js +135 -202
  1536. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +565 -888
  1537. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialResolver.js +277 -417
  1538. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialSession.js +82 -103
  1539. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonPair.js +362 -459
  1540. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.d.ts +4 -1
  1541. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.js +58 -86
  1542. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonToolApproval.js +144 -205
  1543. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +554 -583
  1544. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeBusyWire.js +113 -146
  1545. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeWakeWire.js +86 -108
  1546. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/desktopWire.d.ts +140 -0
  1547. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/desktopWire.js +80 -0
  1548. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceIdentityBridge.js +533 -730
  1549. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceKey.js +214 -329
  1550. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dpop.js +132 -162
  1551. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/fdToken.js +173 -220
  1552. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.d.ts +1 -1
  1553. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.js +322 -505
  1554. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessChannels.js +70 -146
  1555. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessHome.js +233 -343
  1556. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessReleaseKeys.js +33 -103
  1557. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessUpdater.js +761 -863
  1558. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/githubPushRefusal.js +59 -41
  1559. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessPermissionControls.js +64 -57
  1560. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessSkillLayout.js +44 -91
  1561. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessTrust.js +65 -110
  1562. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/headers-helper.js +228 -304
  1563. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.d.ts +3 -1
  1564. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +568 -443
  1565. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/jwtUtils.js +44 -56
  1566. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/index.js +145 -195
  1567. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/linux.js +361 -596
  1568. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/macos.js +332 -546
  1569. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/types.js +32 -40
  1570. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/windows.js +226 -330
  1571. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/zeroize-registry.js +39 -54
  1572. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/legacyStatePreflight.js +117 -134
  1573. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/localIdentity.js +39 -56
  1574. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginLocalhost.js +216 -321
  1575. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginWithLocalhost.js +212 -337
  1576. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loopbackHttp.js +214 -241
  1577. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineId.js +129 -212
  1578. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.js +265 -405
  1579. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/messages.js +51 -59
  1580. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/pkce.js +77 -145
  1581. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/profileStateDir.js +239 -344
  1582. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/recoveryCode.js +112 -190
  1583. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +494 -953
  1584. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.js +79 -126
  1585. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshScheduler.js +236 -310
  1586. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseKeys.js +36 -92
  1587. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseManifest.js +146 -283
  1588. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releasePolicy.js +126 -151
  1589. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseVersions.js +64 -41
  1590. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.d.ts +10 -0
  1591. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.js +148 -0
  1592. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.js +95 -109
  1593. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +42 -39
  1594. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +370 -453
  1595. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/spawnEnv.js +178 -266
  1596. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/telemetryRedaction.js +149 -237
  1597. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.js +245 -339
  1598. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.d.ts +16 -0
  1599. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.js +75 -0
  1600. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ttlParser.js +71 -83
  1601. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +51 -32
  1602. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.js +45 -45
  1603. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/computerUse.d.ts +228 -0
  1604. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/computerUse.js +358 -0
  1605. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonScopes.d.ts +4 -1
  1606. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonScopes.js +5 -1
  1607. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.js +40 -0
  1608. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/desktopWire.d.ts +140 -0
  1609. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/desktopWire.js +42 -0
  1610. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/firstPartyHarness.d.ts +1 -1
  1611. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.d.ts +3 -1
  1612. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.js +3 -1
  1613. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.d.ts +10 -0
  1614. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.js +138 -0
  1615. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.d.ts +16 -0
  1616. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.js +40 -0
  1617. package/dist/node_modules/@skrr-ai/auth-core/package.json +41 -1
  1618. package/dist/node_modules/@skrr-ai/data-provider/index.js +15754 -22655
  1619. package/dist/node_modules/@skrr-ai/data-provider/package.json +1 -1
  1620. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/contract.js +93 -141
  1621. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/index.js +57 -89
  1622. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/loopback-server.js +204 -262
  1623. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.js +681 -1041
  1624. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-renewal.js +145 -286
  1625. package/dist/node_modules/@skrr-ai/inference-broker/package.json +1 -1
  1626. package/dist/signal-command.d.ts +5 -5
  1627. package/docs/v1/lookback-plans.md +58 -0
  1628. package/oclif.manifest.json +814 -104
  1629. package/package.json +4 -5
@@ -1,1008 +1,549 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
4
11
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.__refreshDiagnostics = exports.UNKNOWN_401_BUDGET = exports.LOCK_SIGNAL_FALLBACK_EXIT_MS = void 0;
7
- exports.installLockExitHandlers = installLockExitHandlers;
8
- exports.withAuthLock = withAuthLock;
9
- exports.__resetUnknown401StreaksForTest = __resetUnknown401StreaksForTest;
10
- exports.refreshDaemonToken = refreshDaemonToken;
11
- exports.revokeDaemonRefreshSession = revokeDaemonRefreshSession;
12
- exports.persistReauthState = persistReauthState;
13
- exports.needsReauthState = needsReauthState;
14
- exports.clearReauthState = clearReauthState;
15
- exports.AUTH_LOCK_PATH_FN = authLockPath;
16
- exports.REAUTH_FLAG_PATH_FN = reauthFlagPath;
17
- /**
18
- * refresh.ts — refresh-token client for OverSky daemon-style sessions.
19
- *
20
- * Responsibilities:
21
- * 1. Single-flight per daemonId: concurrent callers share one in-flight HTTP
22
- * request so we don't fire 6 refreshes for 6 parallel API calls (which
23
- * would race-rotate and trip the server's family-reuse detector).
24
- * 2. File-locked read-modify-write on `<configDir>/auth.lock` so the daemon,
25
- * Electron main, and CLI can't corrupt the stored token pair.
26
- * 3. Structured error classification — callers get either
27
- * PermanentAuthFailure (stop reconnecting, show re-auth UX) or
28
- * TransientAuthFailure (network glitch, retry later).
29
- * 4. Persists a needs-reauth flag so the next start / Electron read can
30
- * surface the banner without another round-trip.
31
- *
32
- * Lock strategy: `proper-lockfile` is battle-tested on Linux/macOS/Windows.
33
- * Every read-modify-write is wrapped in `withAuthLock()`. The lock is
34
- * released in `finally` — crash between acquire and release leaves a stale
35
- * `.lock` file that `proper-lockfile` invalidates after `LOCK_STALE_MS`
36
- * (30 s, longer than any reasonable refresh RTT).
37
- */
38
- const node_async_hooks_1 = require("node:async_hooks");
39
- const node_crypto_1 = __importDefault(require("node:crypto"));
40
- const node_fs_1 = __importDefault(require("node:fs"));
41
- const node_path_1 = __importDefault(require("node:path"));
42
- const proper_lockfile_1 = __importDefault(require("proper-lockfile"));
43
- const runtime_js_1 = require("./runtime.js");
44
- const refreshClassification_js_1 = require("./refreshClassification.js");
45
- const types_js_1 = require("./types.js");
46
- /**
47
- * P1-6: Reduced from 30 s to 5 s.
48
- *
49
- * The original 30 s matched the worst-case refresh RTT — meaning a
50
- * crashed process holding `auth.lock` could block all siblings for up
51
- * to 30 s, risking a deadlock on degraded networks. 5 s is well above
52
- * any realistic refresh RTT (p99 ≈ 50 ms) but low enough that a stale
53
- * lock from a crashed daemon clears before the outer reconnect backoff
54
- * times out.
55
- */
56
- const LOCK_STALE_MS = 5_000;
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var refresh_exports = {};
30
+ __export(refresh_exports, {
31
+ AUTH_LOCK_PATH_FN: () => authLockPath,
32
+ LOCK_SIGNAL_FALLBACK_EXIT_MS: () => LOCK_SIGNAL_FALLBACK_EXIT_MS,
33
+ REAUTH_FLAG_PATH_FN: () => reauthFlagPath,
34
+ UNKNOWN_401_BUDGET: () => UNKNOWN_401_BUDGET,
35
+ __refreshDiagnostics: () => __refreshDiagnostics,
36
+ __resetUnknown401StreaksForTest: () => __resetUnknown401StreaksForTest,
37
+ clearReauthState: () => clearReauthState,
38
+ installLockExitHandlers: () => installLockExitHandlers,
39
+ needsReauthState: () => needsReauthState,
40
+ persistReauthState: () => persistReauthState,
41
+ refreshDaemonToken: () => refreshDaemonToken,
42
+ revokeDaemonRefreshSession: () => revokeDaemonRefreshSession,
43
+ withAuthLock: () => withAuthLock
44
+ });
45
+ module.exports = __toCommonJS(refresh_exports);
46
+ var import_node_async_hooks = require("node:async_hooks");
47
+ var import_node_crypto = __toESM(require("node:crypto"), 1);
48
+ var import_node_fs = __toESM(require("node:fs"), 1);
49
+ var import_node_path = __toESM(require("node:path"), 1);
50
+ var import_proper_lockfile = __toESM(require("proper-lockfile"), 1);
51
+ var import_runtime = require("./runtime.js");
52
+ var import_refreshClassification = require("./refreshClassification.js");
53
+ var import_types = require("./types.js");
54
+ const LOCK_STALE_MS = 5e3;
57
55
  const LOCK_RETRY_MS = 100;
58
- const LOCK_MAX_RETRIES = 50; // ~5 s total wait before giving up
59
- /**
60
- * P1-6: Module-level guard so registering process-exit handlers is
61
- * idempotent. A second import (or a unit test that re-requires the
62
- * module) must not double-register the same handlers.
63
- */
56
+ const LOCK_MAX_RETRIES = 50;
64
57
  let _exitHandlersInstalled = false;
65
- /**
66
- * D-4 — Re-entrancy tracking for `withAuthLock`.
67
- *
68
- * `proper-lockfile` is NOT re-entrant within a process: a second
69
- * `lockfile.lock()` call on the same file from the same process will
70
- * block until `LOCK_STALE_MS` (5 s) elapses and treat itself as stale —
71
- * effectively a 5 s deadlock. Several call sites legitimately nest:
72
- *
73
- * performRefresh → withAuthLock → saveToken → withAuthLock (new)
74
- * consumeFdAuth → saveToken → withAuthLock (new, no outer lock)
75
- *
76
- * `AsyncLocalStorage` propagates across `await` boundaries within the
77
- * same async call chain, so a nested `withAuthLock` invocation in the
78
- * same chain can detect "outer lock already held" and skip the
79
- * `proper-lockfile` acquire. Cross-process callers each have their own
80
- * ALS store and always go through the real file lock.
81
- *
82
- * The store carries a boolean: `true` = the current async context
83
- * already holds the auth lock.
84
- */
85
- const _authLockHeld = new node_async_hooks_1.AsyncLocalStorage();
58
+ const _authLockHeld = new import_node_async_hooks.AsyncLocalStorage();
86
59
  function authLockPath() {
87
- return node_path_1.default.join((0, runtime_js_1.getAuthConfigDir)(), 'auth.lock');
60
+ return import_node_path.default.join((0, import_runtime.getAuthConfigDir)(), "auth.lock");
88
61
  }
89
62
  function reauthFlagPath() {
90
- return node_path_1.default.join((0, runtime_js_1.getAuthConfigDir)(), 'needs-reauth.json');
63
+ return import_node_path.default.join((0, import_runtime.getAuthConfigDir)(), "needs-reauth.json");
91
64
  }
92
- /** The fatal signals the lock-release handler listens for, with their numbers. */
93
65
  const LOCK_RELEASE_SIGNALS = { SIGHUP: 1, SIGINT: 2, SIGTERM: 15 };
94
- /**
95
- * How long a process whose own listeners took a fatal signal gets to shut down
96
- * before it is exited anyway: bounded, so a cleanup that hangs cannot make the
97
- * process unkillable, and longer than the longest cleanup a command registers.
98
- *
99
- * That is `skrr machines dedicated cp` cancelling an upload. It waits out the
100
- * chunk in flight, which the server bounds at 30 s (a 20 s tool timeout plus a
101
- * 10 s response grace, `DedicatedRuntimeMachineAccess.js`), and then sends one
102
- * abort; 45 s leaves 15 s for that abort after a chunk of the full length. An
103
- * abort that needs longer is going to a machine that has just failed to answer
104
- * a chunk in time, and the daemon's stale-staging sweep removes what it leaves.
105
- * `agents chat` waits 10 s for the cancelled run and then reads its record once.
106
- *
107
- * One constant rather than a bound each listener declares: every cleanup
108
- * registered today fits under it, and a registry of bounds would be machinery
109
- * for a second number nobody has needed.
110
- */
111
- exports.LOCK_SIGNAL_FALLBACK_EXIT_MS = 45_000;
112
- /**
113
- * How many of a signal's listeners belong to `signal-exit`.
114
- *
115
- * `proper-lockfile` loads signal-exit when it is imported, so every process that
116
- * imports this module carries its SIGHUP/SIGINT/SIGTERM listeners. signal-exit
117
- * is deferential by design: it acts only when it is the sole listener, and
118
- * otherwise leaves the signal to whoever else is listening. Counted as an owner,
119
- * it and this handler would each wait for the other and nothing would exit.
120
- * v3 and v4 publish their loaded-instance counts on process-wide globals, which
121
- * is how they recognise each other (v4 adds v3's count to its own); this reads
122
- * the same two counts.
123
- */
66
+ const LOCK_SIGNAL_FALLBACK_EXIT_MS = 45e3;
124
67
  function signalExitListenerCount() {
125
- const count = (emitter) => typeof emitter?.count === 'number' ? emitter.count : 0;
126
- const v3 = process
127
- .__signal_exit_emitter__;
128
- const v4 = globalThis[Symbol.for('signal-exit emitter')];
129
- return count(v3) + count(v4);
68
+ const count = (emitter) => typeof emitter?.count === "number" ? emitter.count : 0;
69
+ const v3 = process.__signal_exit_emitter__;
70
+ const v4 = globalThis[Symbol.for("signal-exit emitter")];
71
+ return count(v3) + count(v4);
130
72
  }
131
- /**
132
- * P1-6 — Register best-effort lock-release handlers on process exit
133
- * signals so a crash or SIGTERM during a refresh leaves the lock file
134
- * in a released state. Without this, a sibling process must wait up to
135
- * `LOCK_STALE_MS` (5 s) for `proper-lockfile` to declare the lock stale.
136
- *
137
- * A signal handler here must see the lock released when the process ends, and
138
- * otherwise get out of the way. It used to release and call `process.exit`
139
- * synchronously, and because it is installed as soon as a CLI command loads,
140
- * it ran before — and so instead of — every listener a command registered for
141
- * its own cleanup: Ctrl-C during `skrr machines dedicated cp` left partial
142
- * files behind (OSK-8708), `agents chat` never cancelled the run it said it
143
- * would, and the daemon had to strip these listeners off to reach its own
144
- * drain at all (OSK-2086). Now:
145
- *
146
- * 1. The lock is released only when the process actually ends: by the
147
- * `exit` listener, and immediately before a re-raise (dying by a signal
148
- * runs no `exit` listener). Never on the signal itself. A refresh already
149
- * inside `withAuthLock` keeps running while a command cleans up, and
150
- * releasing under it would let a sibling `skrr` take the lock and spend
151
- * the same refresh token — which rotates on use, so one of the two would
152
- * be signed out.
153
- * 2. If anything else is listening for the signal — a command's cleanup —
154
- * that listener owns shutdown, and this handler does not exit.
155
- * signal-exit's listeners do not count (`signalExitListenerCount`).
156
- * 3. Otherwise it does what Node does for an unhandled fatal signal: it
157
- * removes itself and re-raises the signal, so the process dies BY the
158
- * signal. That is more faithful than `exit(128 + n)`, which only imitates
159
- * the number: a parent can tell the two apart, and does. bash stops a
160
- * loop when a child is killed by SIGINT but carries on after one that
161
- * exited 130, and systemd counts death by SIGTERM as a clean stop but
162
- * exit status 143 as a failure. (signal-exit, when present, sees the
163
- * re-raised signal with no other listener and runs its exit callbacks
164
- * before re-raising it once more.) Not on Windows, where raising a
165
- * signal at yourself is TerminateProcess with status 1: Ctrl-C would exit
166
- * 1 and no `exit` listener would run. There it exits `128 + n`.
167
- * 4. While owners are shutting down, an unref'd fallback timer exits
168
- * `128 + n` after `fallbackExitMs`, and a second fatal signal exits as
169
- * soon as that signal's listeners have run — so an owner's handler for a
170
- * second signal gets its synchronous turn, and nothing more. The forced
171
- * exits use `process.exit`, not a re-raise, so `exit` listeners (this
172
- * lock release, a command's last synchronous cleanup) still run.
173
- *
174
- * The listener is PREPENDED, so it runs first and counts every other
175
- * listener — including `once` listeners, which remove themselves when called
176
- * and would otherwise be invisible to a handler that ran after them. A
177
- * listener added LATER with `prependOnceListener` is the exception: it runs
178
- * before this one and has removed itself by the time this one counts, so it
179
- * is not seen as an owner. Register command cleanup with `on` or `once`.
180
- *
181
- * Guards:
182
- * - `_exitHandlersInstalled` (module-level): safe to call multiple
183
- * times (e.g., from unit-test re-imports) — handlers are registered
184
- * exactly once per process.
185
- * - Every handler swallows errors: `lockfile.unlockSync` throws when
186
- * the lock file doesn't exist or was never acquired; we must not
187
- * crash the process during shutdown.
188
- *
189
- * `lockfile.unlockSync` is available in `proper-lockfile` ≥ 4.1.0 and
190
- * removes the `.lock` companion directory that `proper-lockfile` creates
191
- * next to `auth.lock`. It is synchronous so it runs safely in POSIX
192
- * signal handlers and `process.on('exit')`.
193
- */
194
73
  function installLockExitHandlers(options = {}) {
195
- if (_exitHandlersInstalled)
196
- return;
197
- _exitHandlersInstalled = true;
198
- const fallbackExitMs = options.fallbackExitMs ?? exports.LOCK_SIGNAL_FALLBACK_EXIT_MS;
199
- function tryRelease() {
200
- try {
201
- proper_lockfile_1.default.unlockSync(authLockPath());
202
- }
203
- catch {
204
- /* lock not held or already released — not an error */
205
- }
74
+ if (_exitHandlersInstalled)
75
+ return;
76
+ _exitHandlersInstalled = true;
77
+ const fallbackExitMs = options.fallbackExitMs ?? LOCK_SIGNAL_FALLBACK_EXIT_MS;
78
+ function tryRelease() {
79
+ try {
80
+ import_proper_lockfile.default.unlockSync(authLockPath());
81
+ } catch {
206
82
  }
207
- process.on('exit', tryRelease);
208
- const exitStatus = (signal) => 128 + LOCK_RELEASE_SIGNALS[signal];
209
- let deferred = false;
210
- const listeners = new Map();
211
- // `process.exit` runs the `exit` listener above, which releases the lock;
212
- // releasing here as well costs nothing and does not depend on that.
213
- const exitNow = (signal) => {
214
- tryRelease();
215
- process.exit(exitStatus(signal));
216
- };
217
- const onSignal = (signal) => {
218
- if (deferred) {
219
- // A later signal while owners are shutting down: stop waiting for them.
220
- setImmediate(() => exitNow(signal));
221
- return;
222
- }
223
- const owners = process.listenerCount(signal) - 1 - signalExitListenerCount();
224
- if (owners > 0) {
225
- deferred = true;
226
- setTimeout(() => exitNow(signal), fallbackExitMs).unref();
227
- return;
228
- }
229
- process.removeListener(signal, listeners.get(signal));
230
- if (process.platform === 'win32') {
231
- exitNow(signal);
232
- return;
233
- }
234
- // Dying by the signal runs no `exit` listener, so release first.
235
- tryRelease();
236
- try {
237
- process.kill(process.pid, signal);
238
- }
239
- catch {
240
- exitNow(signal);
241
- }
242
- };
243
- for (const signal of Object.keys(LOCK_RELEASE_SIGNALS)) {
244
- const listener = () => onSignal(signal);
245
- listeners.set(signal, listener);
246
- process.prependListener(signal, listener);
83
+ }
84
+ process.on("exit", tryRelease);
85
+ const exitStatus = (signal) => 128 + LOCK_RELEASE_SIGNALS[signal];
86
+ let deferred = false;
87
+ const listeners = /* @__PURE__ */ new Map();
88
+ const exitNow = (signal) => {
89
+ tryRelease();
90
+ process.exit(exitStatus(signal));
91
+ };
92
+ const onSignal = (signal) => {
93
+ if (deferred) {
94
+ setImmediate(() => exitNow(signal));
95
+ return;
96
+ }
97
+ const owners = process.listenerCount(signal) - 1 - signalExitListenerCount();
98
+ if (owners > 0) {
99
+ deferred = true;
100
+ setTimeout(() => exitNow(signal), fallbackExitMs).unref();
101
+ return;
247
102
  }
103
+ process.removeListener(signal, listeners.get(signal));
104
+ if (process.platform === "win32") {
105
+ exitNow(signal);
106
+ return;
107
+ }
108
+ tryRelease();
109
+ try {
110
+ process.kill(process.pid, signal);
111
+ } catch {
112
+ exitNow(signal);
113
+ }
114
+ };
115
+ for (const signal of Object.keys(LOCK_RELEASE_SIGNALS)) {
116
+ const listener = () => onSignal(signal);
117
+ listeners.set(signal, listener);
118
+ process.prependListener(signal, listener);
119
+ }
248
120
  }
249
- /**
250
- * Acquire the cross-process auth lock, run the body, release on `finally`.
251
- * Throws if the lock can't be acquired within
252
- * `LOCK_MAX_RETRIES × LOCK_RETRY_MS`.
253
- *
254
- * We lock a sentinel file (auth.lock) that we create/touch if missing —
255
- * locking the real auth.json would race with atomic-rename writes.
256
- *
257
- * @param daemonId When supplied, lock-lifecycle telemetry events are emitted:
258
- * refresh_lock_acquiring, refresh_lock_acquired, refresh_lock_released.
259
- */
260
121
  async function withAuthLock(body, daemonId) {
261
- // D-4 — Re-entrancy guard. If the current async context already holds
262
- // the auth lock (e.g. performRefresh → withAuthLock → saveToken →
263
- // withAuthLock), skip the proper-lockfile acquire to avoid the 5 s
264
- // deadlock that would occur because proper-lockfile is not re-entrant
265
- // within a process. Cross-process callers each have their own ALS store
266
- // and always go through the real file lock.
267
- if (_authLockHeld.getStore() === true) {
268
- return body();
122
+ if (_authLockHeld.getStore() === true) {
123
+ return body();
124
+ }
125
+ const lockPath = authLockPath();
126
+ const dir = import_node_path.default.dirname(lockPath);
127
+ if (!import_node_fs.default.existsSync(dir))
128
+ import_node_fs.default.mkdirSync(dir, { recursive: true });
129
+ if (!import_node_fs.default.existsSync(lockPath)) {
130
+ import_node_fs.default.writeFileSync(lockPath, "", { mode: 384 });
131
+ }
132
+ const acquireStart = Date.now();
133
+ (0, import_runtime.emitAuthTelemetry)({
134
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
135
+ eventType: "auth",
136
+ success: true,
137
+ metadata: { event: "refresh_lock_acquiring", ...daemonId ? { daemonId } : {} }
138
+ });
139
+ const release = await import_proper_lockfile.default.lock(lockPath, {
140
+ stale: LOCK_STALE_MS,
141
+ retries: {
142
+ retries: LOCK_MAX_RETRIES,
143
+ minTimeout: LOCK_RETRY_MS,
144
+ maxTimeout: LOCK_RETRY_MS * 4,
145
+ factor: 1.5
269
146
  }
270
- const lockPath = authLockPath();
271
- const dir = node_path_1.default.dirname(lockPath);
272
- if (!node_fs_1.default.existsSync(dir))
273
- node_fs_1.default.mkdirSync(dir, { recursive: true });
274
- if (!node_fs_1.default.existsSync(lockPath)) {
275
- node_fs_1.default.writeFileSync(lockPath, '', { mode: 0o600 });
147
+ });
148
+ const acquiredAt = Date.now();
149
+ (0, import_runtime.emitAuthTelemetry)({
150
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
151
+ eventType: "auth",
152
+ success: true,
153
+ metadata: {
154
+ event: "refresh_lock_acquired",
155
+ waitedMs: acquiredAt - acquireStart,
156
+ ...daemonId ? { daemonId } : {}
276
157
  }
277
- const acquireStart = Date.now();
278
- (0, runtime_js_1.emitAuthTelemetry)({
279
- timestamp: new Date().toISOString(),
280
- eventType: 'auth',
281
- success: true,
282
- metadata: { event: 'refresh_lock_acquiring', ...(daemonId ? { daemonId } : {}) },
283
- });
284
- const release = await proper_lockfile_1.default.lock(lockPath, {
285
- stale: LOCK_STALE_MS,
286
- retries: {
287
- retries: LOCK_MAX_RETRIES,
288
- minTimeout: LOCK_RETRY_MS,
289
- maxTimeout: LOCK_RETRY_MS * 4,
290
- factor: 1.5,
291
- },
292
- });
293
- const acquiredAt = Date.now();
294
- (0, runtime_js_1.emitAuthTelemetry)({
295
- timestamp: new Date().toISOString(),
296
- eventType: 'auth',
158
+ });
159
+ return _authLockHeld.run(true, async () => {
160
+ try {
161
+ return await body();
162
+ } finally {
163
+ const heldForMs = Date.now() - acquiredAt;
164
+ (0, import_runtime.emitAuthTelemetry)({
165
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
166
+ eventType: "auth",
297
167
  success: true,
298
168
  metadata: {
299
- event: 'refresh_lock_acquired',
300
- waitedMs: acquiredAt - acquireStart,
301
- ...(daemonId ? { daemonId } : {}),
302
- },
303
- });
304
- // Run body inside ALS context marking the lock as held for this async chain.
305
- return _authLockHeld.run(true, async () => {
306
- try {
307
- return await body();
308
- }
309
- finally {
310
- const heldForMs = Date.now() - acquiredAt;
311
- (0, runtime_js_1.emitAuthTelemetry)({
312
- timestamp: new Date().toISOString(),
313
- eventType: 'auth',
314
- success: true,
315
- metadata: {
316
- event: 'refresh_lock_released',
317
- heldForMs,
318
- ...(daemonId ? { daemonId } : {}),
319
- },
320
- });
321
- try {
322
- await release();
323
- }
324
- catch (err) {
325
- (0, runtime_js_1.getAuthLogger)().debug(`[auth/refresh] lock release failed: ${err?.message}`);
326
- }
169
+ event: "refresh_lock_released",
170
+ heldForMs,
171
+ ...daemonId ? { daemonId } : {}
327
172
  }
328
- });
173
+ });
174
+ try {
175
+ await release();
176
+ } catch (err) {
177
+ (0, import_runtime.getAuthLogger)().debug(`[auth/refresh] lock release failed: ${err?.message}`);
178
+ }
179
+ }
180
+ });
329
181
  }
330
- /**
331
- * In-flight refresh promises keyed by daemonId. Coalesces concurrent callers.
332
- *
333
- * Keying matters: an unkeyed map silently returned the wrong pair if two
334
- * different daemons (or a future Electron host running multiple embedded
335
- * daemons) refreshed simultaneously in the same process. Today most
336
- * processes are single-instance, but the invariant is cheaper to preserve
337
- * than to debug later.
338
- *
339
- * Defense-in-depth: the `.finally(() => delete)` is the primary cleanup,
340
- * but if a future caller throws inside that callback the entry would leak
341
- * forever and silently mask every subsequent refresh attempt for the same
342
- * daemonId. `INFLIGHT_REAP_MS` provides a forced cleanup ceiling well above
343
- * any reasonable refresh RTT (default 60 s ≫ p99 ~50 ms).
344
- */
345
- const inflightRefreshes = new Map();
346
- const INFLIGHT_REAP_MS = 60_000;
347
- /**
348
- * Consecutive unknown-shape-401 budget per daemonId.
349
- *
350
- * A 401 from `/token/refresh` whose body `code` is NOT one of the four
351
- * credential-death codes (REFRESH_INVALID / REFRESH_REUSED /
352
- * REFRESH_EXPIRED / SESSION_REVOKED) — an unknown code, a missing code,
353
- * or an unparseable body — is most likely an artifact of infra OverSky
354
- * does not fully control: a proxy/middleware regression, a clock-skew
355
- * replay rejection (DEVICE_PROOF_REPLAYED), or a half-rolled-out server
356
- * route. By construction it is NOT a daemon's actual refresh-family burn
357
- * (those arrive as one of the four known codes).
358
- *
359
- * Pre-fix every unknown-shape 401 latched `PermanentAuthFailure('UNKNOWN_401')`
360
- * + `persistReauthState` on the FIRST occurrence — forcing a manual
361
- * reconnect even when the next refresh would have succeeded. Now the
362
- * first `UNKNOWN_401_BUDGET` unknown-401s accumulated on a given daemonId
363
- * (within `UNKNOWN_401_WINDOW_MS`, see the reset/window rules below) throw
364
- * `TransientAuthFailure` instead, so the daemon's
365
- * `performRefresh → return false` path lets the refreshScheduler /
366
- * reactive retry+backoff ride out a transient regression WITHOUT latching
367
- * needs-reauth. Only after the budget is exhausted do we fall back to the
368
- * original permanent latch — preserving the iron rule that the interactive
369
- * re-auth modal remains the final fallback.
370
- *
371
- * The four KNOWN codes are genuinely permanent and are NEVER routed
372
- * through this budget — they latch immediately as before.
373
- *
374
- * Counter semantics:
375
- * - Incremented on each consecutive unknown-shape 401 for a daemonId.
376
- * - Reset to zero ONLY on a DEFINITIVE outcome that tells us about the
377
- * credential's true state: a 200 success (credential alive) OR a
378
- * KNOWN-permanent 401 (credential dead, recognized). It is DELIBERATELY
379
- * NOT reset on a transient non-401 outcome (network error, 429, 5xx).
380
- *
381
- * RESET SEMANTICS (Finding 4 follow-up — deliberate). Originally the
382
- * streak reset on ANY non-unknown-401 outcome, including transient ones.
383
- * That created a retry-forever hole: a dead-but-unknown-code credential
384
- * whose endpoint INTERMITTENTLY returns transient errors (a flaky proxy
385
- * that alternates 503 ↔ unknown-401, say) could never accumulate
386
- * `UNKNOWN_401_BUDGET` consecutive unknown-401s — every transient blip
387
- * wiped the streak — so it would never latch and the daemon would retry
388
- * forever, never surfacing the re-auth affordance. By treating only
389
- * success / known-permanent-401 as streak-resetting, a flaky-but-dead
390
- * unknown credential still converges to the permanent latch: the
391
- * unknown-401s accumulate ACROSS interleaved transient noise (subject to
392
- * the window below) and eventually exhaust the budget.
393
- * - Bounded window: if the previous unknown-401 for this daemonId is
394
- * older than `UNKNOWN_401_WINDOW_MS`, the run is considered stale and
395
- * the counter restarts at 1. This bounds how far apart interleaved
396
- * unknown-401s can be and still count toward the same latch, so two
397
- * genuinely unrelated incidents hours apart don't sum into a premature
398
- * latch — while a flaky-but-dead credential, which keeps producing
399
- * unknown-401s well within the window, still converges.
400
- */
401
- /**
402
- * BOOT-BUDGET COUPLING (Finding 4 follow-up). Exported so the daemon's
403
- * startup-recovery loop can statically assert
404
- * `STARTUP_RECOVERY_MAX_ATTEMPTS >= UNKNOWN_401_BUDGET`.
405
- *
406
- * Why the coupling is load-bearing: the boot path
407
- * (`recoverAccessTokenAtStartup` in `daemon/src/auth.ts`) retries
408
- * `transient_error` results up to `STARTUP_RECOVERY_MAX_ATTEMPTS` times,
409
- * then exits `EX_TEMPFAIL` so the supervisor restarts the process. Each
410
- * in-budget unknown-shape 401 is classified `transient_error`. If the
411
- * boot loop's max attempts were LESS than this budget, a
412
- * genuinely-dead-but-unknown-code credential would make the boot loop
413
- * give up (EX_TEMPFAIL → supervisor restart) BEFORE the in-process
414
- * budget ever exhausts and latches `PermanentAuthFailure('UNKNOWN_401')`
415
- * + persists needs-reauth. The supervisor would then restart-loop
416
- * forever and the user would NEVER see the re-auth affordance — a
417
- * strand. Keeping `STARTUP_RECOVERY_MAX_ATTEMPTS >= UNKNOWN_401_BUDGET`
418
- * guarantees the in-process budget exhausts and latches within a single
419
- * boot, on the final boot attempt, before control returns to the
420
- * supervisor. The daemon enforces this with a module-load static
421
- * assertion (`assertStartupRecoveryCoversUnknown401Budget`) plus a unit
422
- * test; see `daemon/src/auth.ts`.
423
- */
424
- exports.UNKNOWN_401_BUDGET = 3;
425
- const UNKNOWN_401_WINDOW_MS = 5 * 60_000;
426
- const unknown401Streaks = new Map();
427
- /**
428
- * Record one unknown-shape 401 for `daemonId` and report whether the
429
- * consecutive budget is now exhausted (i.e. this occurrence should latch
430
- * permanent) or still within budget (i.e. this occurrence should be
431
- * treated as transient and retried).
432
- *
433
- * Returns `{ exhausted, count }` where `count` is the post-increment
434
- * consecutive streak length. When `exhausted` is true the streak is
435
- * cleared so a subsequent successful re-auth + future regression starts
436
- * a fresh budget rather than latching on its first unknown-401.
437
- */
182
+ const inflightRefreshes = /* @__PURE__ */ new Map();
183
+ const INFLIGHT_REAP_MS = 6e4;
184
+ const UNKNOWN_401_BUDGET = 3;
185
+ const UNKNOWN_401_WINDOW_MS = 5 * 6e4;
186
+ const unknown401Streaks = /* @__PURE__ */ new Map();
438
187
  function recordUnknown401(daemonId, now) {
439
- const prev = unknown401Streaks.get(daemonId);
440
- // A gap longer than the window means the prior unknown-401 belongs to a
441
- // different, already-resolved incident — restart the streak at 1.
442
- const count = prev && now - prev.lastAt <= UNKNOWN_401_WINDOW_MS ? prev.count + 1 : 1;
443
- if (count >= exports.UNKNOWN_401_BUDGET) {
444
- // Budget exhausted — clear so the next regression (after a successful
445
- // re-auth) gets its own fresh budget instead of latching immediately.
446
- unknown401Streaks.delete(daemonId);
447
- return { exhausted: true, count };
448
- }
449
- unknown401Streaks.set(daemonId, { count, lastAt: now });
450
- return { exhausted: false, count };
188
+ const prev = unknown401Streaks.get(daemonId);
189
+ const count = prev && now - prev.lastAt <= UNKNOWN_401_WINDOW_MS ? prev.count + 1 : 1;
190
+ if (count >= UNKNOWN_401_BUDGET) {
191
+ unknown401Streaks.delete(daemonId);
192
+ return { exhausted: true, count };
193
+ }
194
+ unknown401Streaks.set(daemonId, { count, lastAt: now });
195
+ return { exhausted: false, count };
451
196
  }
452
- /**
453
- * Reset the unknown-shape-401 streak for `daemonId`. Called ONLY on the
454
- * two DEFINITIVE outcomes — a 200 success or a KNOWN-permanent 401 — that
455
- * tell us the credential's true state. Transient non-401 outcomes
456
- * (network error, 429, 5xx) intentionally do NOT call this, so a
457
- * flaky-but-dead unknown credential still converges to the permanent
458
- * latch instead of retrying forever. See the `UNKNOWN_401_BUDGET` /
459
- * `recordUnknown401` block above for the full rationale.
460
- */
461
197
  function resetUnknown401Streak(daemonId) {
462
- unknown401Streaks.delete(daemonId);
198
+ unknown401Streaks.delete(daemonId);
463
199
  }
464
- /** Test-only: clear all per-daemonId unknown-401 streak state. */
465
200
  function __resetUnknown401StreaksForTest() {
466
- unknown401Streaks.clear();
201
+ unknown401Streaks.clear();
467
202
  }
468
- /**
469
- * H1 — Test-only diagnostic counters that prove every outgoing refresh
470
- * request to `/refresh` is paired with a freshly-built proof.
471
- *
472
- * - `requestAttemptCount`: incremented each time `buildRequestInit()`
473
- * prepares an outgoing fetch.
474
- * - `proofAttemptCount`: incremented each time `signRequestProof` is
475
- * invoked (success, null return, OR thrown — they all count as
476
- * "an attempt was made").
477
- *
478
- * Invariant under test: when `signRequestProof` is supplied,
479
- * `proofAttemptCount === requestAttemptCount` after each call. A future
480
- * retry that forgets to re-call `buildRequestInit()` (or that hoists
481
- * the proof outside the loop) breaks this invariant immediately.
482
- *
483
- * Exposed only for tests — no production code reads it. Callers can
484
- * snapshot + reset between asserts.
485
- */
486
- exports.__refreshDiagnostics = {
487
- proofAttemptCount: 0,
488
- requestAttemptCount: 0,
489
- reset() {
490
- this.proofAttemptCount = 0;
491
- this.requestAttemptCount = 0;
492
- },
203
+ const __refreshDiagnostics = {
204
+ proofAttemptCount: 0,
205
+ requestAttemptCount: 0,
206
+ reset() {
207
+ this.proofAttemptCount = 0;
208
+ this.requestAttemptCount = 0;
209
+ }
493
210
  };
494
211
  async function refreshDaemonToken(serverUrl, currentRefreshToken, daemonId, options = {}) {
495
- const existing = inflightRefreshes.get(daemonId);
496
- if (existing) {
497
- // A concurrent caller is coalescing onto the in-flight promise.
498
- // refresh_race_resolved fires when it resolves (the caller adopted
499
- // the sibling's token rather than firing a duplicate HTTP request).
500
- return existing.then((pair) => {
501
- (0, runtime_js_1.emitAuthTelemetry)({
502
- timestamp: new Date().toISOString(),
503
- eventType: 'auth',
504
- success: true,
505
- metadata: { event: 'refresh_race_resolved', daemonId, sourceTokenAdopted: true },
506
- });
507
- return pair;
508
- });
509
- }
510
- const p = doRefresh(serverUrl, currentRefreshToken, daemonId, options).finally(() => {
511
- // Only delete our own entry — a racing caller could have replaced it,
512
- // but with keying by daemonId that would be a different key.
513
- if (inflightRefreshes.get(daemonId) === p) {
514
- inflightRefreshes.delete(daemonId);
515
- }
212
+ const existing = inflightRefreshes.get(daemonId);
213
+ if (existing) {
214
+ return existing.then((pair) => {
215
+ (0, import_runtime.emitAuthTelemetry)({
216
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
217
+ eventType: "auth",
218
+ success: true,
219
+ metadata: { event: "refresh_race_resolved", daemonId, sourceTokenAdopted: true }
220
+ });
221
+ return pair;
516
222
  });
517
- inflightRefreshes.set(daemonId, p);
518
- // Belt-and-suspenders reap if the `finally` ever throws (logger crash etc.).
519
- const reaper = setTimeout(() => {
520
- if (inflightRefreshes.get(daemonId) === p) {
521
- try {
522
- (0, runtime_js_1.getAuthLogger)().warn(`[auth/refresh] inflight reap fired for ${daemonId} — finally cleanup did not complete within ${INFLIGHT_REAP_MS}ms`);
523
- }
524
- catch {
525
- /* logger unavailable */
526
- }
527
- inflightRefreshes.delete(daemonId);
528
- }
529
- }, INFLIGHT_REAP_MS);
530
- if (typeof reaper.unref === 'function')
531
- reaper.unref();
532
- return p;
533
- }
534
- /**
535
- * Best-effort server-side revocation of a refresh session. Idempotent on
536
- * the server — never reveals whether the presented token existed. Returns
537
- * silently on transport failure; callers still proceed with local cleanup.
538
- *
539
- * Kept tight: 5-second timeout so a hung server doesn't stall logout.
540
- *
541
- * H1 (HIGH) — wire contract: the body carries BOTH `refreshTokenHash`
542
- * (preferred — SHA-256 hex digest of the plaintext refresh token, the
543
- * exact value the server stores in `refreshHash`) AND the legacy
544
- * `refreshToken` plaintext during a migration window. Newer servers
545
- * short-circuit on `refreshTokenHash` and never read the plaintext;
546
- * older servers ignore the unknown field and fall through to the
547
- * legacy `refreshToken` path. Once the next API release ships the
548
- * hash-aware revoke route to the entire fleet, the legacy plaintext
549
- * field can be dropped from this body.
550
- *
551
- * Why both during migration: any intermediary that logs request
552
- * bodies (CDN, WAF, API gateway, corporate proxy) would otherwise
553
- * capture a usable refresh token in plaintext. The refresh path
554
- * already only sends what the server hashes server-side; the revoke
555
- * path's contract previously leaked the token in transit. Sending
556
- * the hash makes the body ineligible as a credential for any future
557
- * replay attempt while keeping back-compat with un-upgraded servers.
558
- */
559
- async function revokeDaemonRefreshSession(serverUrl, refreshToken) {
560
- if (!refreshToken)
561
- return;
562
- const log = (0, runtime_js_1.getAuthLogger)();
563
- const url = `${serverUrl.replace(/\/+$/, '')}/api/daemons/token/revoke`;
564
- const controller = new AbortController();
565
- const timer = setTimeout(() => controller.abort(), 5_000);
566
- // H1 — SHA-256 hex digest matches the server's `hashRefreshToken`
567
- // helper byte-for-byte: `crypto.createHash('sha256').update(token).digest('hex')`.
568
- // 64-char lowercase hex string, the exact lookup key in the
569
- // `refreshHash` index.
570
- const refreshTokenHash = node_crypto_1.default.createHash('sha256').update(refreshToken, 'utf8').digest('hex');
571
- try {
572
- const res = await fetch(url, {
573
- method: 'POST',
574
- headers: { 'Content-Type': 'application/json' },
575
- body: JSON.stringify({ refreshTokenHash, refreshToken }),
576
- signal: controller.signal,
577
- });
578
- (0, runtime_js_1.notifyResponseObserver)(res);
579
- if (!res.ok) {
580
- log.debug(`[auth/refresh] revoke returned ${res.status}`);
581
- }
582
- }
583
- catch (err) {
584
- log.debug(`[auth/refresh] revoke network error: ${err?.message}`);
223
+ }
224
+ const p = doRefresh(serverUrl, currentRefreshToken, daemonId, options).finally(() => {
225
+ if (inflightRefreshes.get(daemonId) === p) {
226
+ inflightRefreshes.delete(daemonId);
585
227
  }
586
- finally {
587
- clearTimeout(timer);
228
+ });
229
+ inflightRefreshes.set(daemonId, p);
230
+ const reaper = setTimeout(() => {
231
+ if (inflightRefreshes.get(daemonId) === p) {
232
+ try {
233
+ (0, import_runtime.getAuthLogger)().warn(`[auth/refresh] inflight reap fired for ${daemonId} \u2014 finally cleanup did not complete within ${INFLIGHT_REAP_MS}ms`);
234
+ } catch {
235
+ }
236
+ inflightRefreshes.delete(daemonId);
588
237
  }
238
+ }, INFLIGHT_REAP_MS);
239
+ if (typeof reaper.unref === "function")
240
+ reaper.unref();
241
+ return p;
589
242
  }
590
- async function doRefresh(serverUrl, currentRefreshToken, daemonId, options = {}) {
591
- const log = (0, runtime_js_1.getAuthLogger)();
592
- const startMs = Date.now();
593
- (0, runtime_js_1.emitAuthTelemetry)({
594
- timestamp: new Date().toISOString(),
595
- eventType: 'auth',
596
- success: true,
597
- metadata: { event: 'refresh_start', daemonId },
243
+ async function revokeDaemonRefreshSession(serverUrl, refreshToken) {
244
+ if (!refreshToken)
245
+ return;
246
+ const log = (0, import_runtime.getAuthLogger)();
247
+ const url = `${serverUrl.replace(/\/+$/, "")}/api/daemons/token/revoke`;
248
+ const controller = new AbortController();
249
+ const timer = setTimeout(() => controller.abort(), 5e3);
250
+ const refreshTokenHash = import_node_crypto.default.createHash("sha256").update(refreshToken, "utf8").digest("hex");
251
+ try {
252
+ const res = await fetch(url, {
253
+ method: "POST",
254
+ headers: { "Content-Type": "application/json" },
255
+ body: JSON.stringify({ refreshTokenHash, refreshToken }),
256
+ signal: controller.signal
598
257
  });
599
- const url = `${serverUrl.replace(/\/+$/, '')}/api/daemons/token/refresh`;
600
- // Build body with machineUuid only when supplied — preserves backward
601
- // compat with older servers that ignore unknown fields. The server's
602
- // soft-binding check (H7) tolerates either side missing the field.
603
- const body = {
604
- refreshToken: currentRefreshToken,
605
- daemonId,
606
- };
607
- if (options.machineUuid) {
608
- body.machineUuid = options.machineUuid;
609
- }
610
- // H1 — Per-attempt request builder. The proof MUST be minted once
611
- // per outgoing HTTP request: every fetch carries a fresh `iat` +
612
- // `jti` so the server-side replay cache (`seen-jti:{thumbprint}:{jti}`,
613
- // see `api/server/services/Auth/jtiReplayCache.js`) never rejects a
614
- // legitimate retry as a duplicate. If the proof were minted once and
615
- // reused across retries, every retry would deterministically lose
616
- // to the cache.
617
- //
618
- // Today the function only makes one HTTP attempt — but the contract
619
- // is "every outgoing request to /refresh uses a freshly-built proof"
620
- // and we want the structure to enforce it before any future retry
621
- // logic re-introduces the bug. The attempt counter is exposed via
622
- // a test-only diagnostic (`__refreshDiagnostics`) so we can assert
623
- // the invariant without exporting a private control surface.
624
- //
625
- // FOOTGUN — do NOT hoist `buildRequestInit` outside this function or
626
- // outside any future retry loop. The structural test
627
- // "proof-per-attempt invariant: a retry loop must call buildRequestInit()
628
- // per attempt" in `refresh.deviceProof.test.ts` asserts the function
629
- // is defined inside `doRefresh` and will fail if it is moved.
630
- function buildRequestInit() {
631
- // Phase 3-R5: the stable `X-Oversky-Origin` header is the server's
632
- // preferred identity signal on the benign-grace rotation match. Newer
633
- // servers prefer it over the raw User-Agent; older servers ignore
634
- // unknown headers. Safe one-sided change either way.
635
- const headers = { 'Content-Type': 'application/json' };
636
- if (options.origin) {
637
- headers['X-Oversky-Origin'] = options.origin;
638
- }
639
- // L11 Phase 3 — attach a device-identity proof when the daemon-side
640
- // bridge can mint one. A null/undefined return or a thrown callback
641
- // is non-fatal: the request goes out without the header and the
642
- // server's lenient middleware (`off` / `warn` mode default) accepts
643
- // it. Once the operator flips `OVERSKY_DEVICE_PROOF_ENFORCE=enforce`
644
- // on the server, a missing-proof request from an enrolled daemon
645
- // becomes a 401 — but daemons that reach this code path always have
646
- // device identity initialized via `prefetchAuth()`, so the only
647
- // legitimate "missing proof" case is a daemon binary older than
648
- // Phase 1.
649
- exports.__refreshDiagnostics.requestAttemptCount += 1;
650
- if (options.signRequestProof) {
651
- try {
652
- const proof = options.signRequestProof({
653
- method: 'POST',
654
- url,
655
- refreshToken: currentRefreshToken,
656
- });
657
- // Count every callback invocation, including ones that
658
- // returned null/empty/threw. The invariant we care about is
659
- // "one mint per attempt" — whether the mint produced a usable
660
- // header is a separate concern (legacy daemons, key not yet
661
- // initialized, etc.).
662
- exports.__refreshDiagnostics.proofAttemptCount += 1;
663
- if (typeof proof === 'string' && proof.length > 0) {
664
- headers['OverSky-DPoP'] = proof;
665
- }
666
- }
667
- catch (err) {
668
- // Even a thrown callback counts as an attempt — the daemon
669
- // bridge tried to mint, the mint failed, and we proceed
670
- // without the header. Without this count the invariant
671
- // would silently drift if a future regression made the
672
- // callback throw on every-other call.
673
- exports.__refreshDiagnostics.proofAttemptCount += 1;
674
- log.debug(`[auth/refresh] signRequestProof threw — proceeding without device-identity header: ${err?.message ?? 'unknown'}`);
675
- }
676
- }
677
- return {
678
- method: 'POST',
679
- headers,
680
- body: JSON.stringify(body),
681
- };
682
- }
683
- let response;
684
- try {
685
- // Single attempt today. The builder structure is the load-bearing
686
- // bit: any future retry must call `buildRequestInit()` again so
687
- // the per-attempt invariant — fresh jti per request — holds.
688
- response = await fetch(url, buildRequestInit());
689
- (0, runtime_js_1.notifyResponseObserver)(response);
258
+ (0, import_runtime.notifyResponseObserver)(res);
259
+ if (!res.ok) {
260
+ log.debug(`[auth/refresh] revoke returned ${res.status}`);
690
261
  }
691
- catch (err) {
692
- log.warn(`[auth/refresh] network error: ${err?.message}`);
693
- // RESET SEMANTICS (Finding 4 follow-up): a transient (network) outcome
694
- // does NOT reset the unknown-401 streak. Resetting here would let a
695
- // dead-but-unknown-code credential whose endpoint INTERMITTENTLY drops
696
- // the connection never accumulate to the latch — it would retry forever
697
- // because every other network blip wipes the streak. The streak resets
698
- // ONLY on a 200 success or a KNOWN-permanent 401 (see those branches).
699
- (0, runtime_js_1.emitAuthTelemetry)({
700
- timestamp: new Date().toISOString(),
701
- eventType: 'auth',
702
- success: false,
703
- metadata: {
704
- event: 'refresh_failure',
705
- daemonId,
706
- durationMs: Date.now() - startMs,
707
- errorCode: 'NETWORK_ERROR',
708
- },
709
- });
710
- throw new types_js_1.TransientAuthFailure('Network error during refresh', err);
262
+ } catch (err) {
263
+ log.debug(`[auth/refresh] revoke network error: ${err?.message}`);
264
+ } finally {
265
+ clearTimeout(timer);
266
+ }
267
+ }
268
+ async function doRefresh(serverUrl, currentRefreshToken, daemonId, options = {}) {
269
+ const log = (0, import_runtime.getAuthLogger)();
270
+ const startMs = Date.now();
271
+ (0, import_runtime.emitAuthTelemetry)({
272
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
273
+ eventType: "auth",
274
+ success: true,
275
+ metadata: { event: "refresh_start", daemonId }
276
+ });
277
+ const url = `${serverUrl.replace(/\/+$/, "")}/api/daemons/token/refresh`;
278
+ const body = {
279
+ refreshToken: currentRefreshToken,
280
+ daemonId
281
+ };
282
+ if (options.machineUuid) {
283
+ body.machineUuid = options.machineUuid;
284
+ }
285
+ function buildRequestInit() {
286
+ const headers = { "Content-Type": "application/json" };
287
+ if (options.origin) {
288
+ headers["X-Oversky-Origin"] = options.origin;
711
289
  }
712
- // TODO: refresh.ts could delegate to classifyRefreshResponse(response.status, body)
713
- // from ./refreshClassification.ts once mobile parity is validated and device tests
714
- // cover the 401/429/5xx branches. Today the inline classification is kept to avoid
715
- // the risk of a behavioural regression in the daemon's S1/S2/S3 paths without full
716
- // test coverage. See packages/auth-core/src/refreshClassification.ts for the
717
- // extracted pure helper that mobile uses.
718
- if (response.status === 200) {
719
- const data = (await response.json());
720
- // Soft backoff hint (production-hardening 2026-05-06). Server-side
721
- // sets `X-Refresh-Backoff: <seconds>` when fleet refresh-QPS is
722
- // high; the daemon's scheduler should defer its NEXT proactive
723
- // refresh by that amount + jitter. Distinct from 429 Retry-After
724
- // which signals "this request was rejected" — soft backoff fires
725
- // on 200 responses, the rotation succeeded, and ignoring the hint
726
- // is safe but causes the herd to reconverge.
727
- //
728
- // Parse defensively: a malformed header (negative, NaN, absurdly
729
- // large) produces `undefined` so consumers fall through to their
730
- // own scheduler defaults.
731
- // Cap at 10 min so a misconfigured / compromised server cannot pin
732
- // daemons to a multi-hour interval and starve them of refresh.
733
- const SOFT_BACKOFF_MAX_SECONDS = 600;
734
- let softBackoffSeconds;
735
- const backoffHeader = response.headers.get('X-Refresh-Backoff');
736
- if (typeof backoffHeader === 'string') {
737
- const parsed = parseInt(backoffHeader, 10);
738
- if (Number.isFinite(parsed) && parsed > 0) {
739
- if (parsed > SOFT_BACKOFF_MAX_SECONDS) {
740
- (0, runtime_js_1.getAuthLogger)().warn(`[auth/refresh] X-Refresh-Backoff=${parsed}s exceeds ${SOFT_BACKOFF_MAX_SECONDS}s cap — clamping`);
741
- }
742
- softBackoffSeconds = Math.min(parsed, SOFT_BACKOFF_MAX_SECONDS);
743
- }
744
- }
745
- const pair = {
746
- // Coerce empty string / undefined to null so consumers branch
747
- // on a single canonical shape (the wire may legitimately ship
748
- // any of three things for daemon scope: `null` literal, field
749
- // absent, or empty string). Non-daemon scopes always supply a
750
- // non-empty JWT here.
751
- accessToken: typeof data.accessToken === 'string' && data.accessToken.length > 0
752
- ? data.accessToken
753
- : null,
754
- accessExpiresAt: new Date(data.accessExpiresAt).getTime(),
755
- refreshToken: data.refreshToken,
756
- refreshExpiresAt: new Date(data.refreshExpiresAt).getTime(),
757
- // Distinguish "field absent" (older server, leave caller's
758
- // existing value alone) from "field present but null" (server
759
- // explicitly cleared, callers MUST overwrite their cache).
760
- // Three-valued semantic mirrors the daemon-side saveToken
761
- // options bag — see daemon/src/auth.ts JSDoc.
762
- opaqueAccessToken: Object.prototype.hasOwnProperty.call(data, 'opaqueAccessToken')
763
- ? typeof data.opaqueAccessToken === 'string'
764
- ? data.opaqueAccessToken
765
- : null
766
- : undefined,
767
- ...(softBackoffSeconds !== undefined ? { softBackoffSeconds } : {}),
768
- };
769
- log.info(`[auth/refresh] rotated — access expires in ${Math.round((pair.accessExpiresAt - Date.now()) / 1000)}s`);
770
- (0, runtime_js_1.emitAuthTelemetry)({
771
- timestamp: new Date().toISOString(),
772
- eventType: 'auth',
773
- success: true,
774
- metadata: {
775
- event: 'refresh_success',
776
- daemonId,
777
- durationMs: Date.now() - startMs,
778
- tokensRotated: true,
779
- },
290
+ __refreshDiagnostics.requestAttemptCount += 1;
291
+ if (options.signRequestProof) {
292
+ try {
293
+ const proof = options.signRequestProof({
294
+ method: "POST",
295
+ url,
296
+ refreshToken: currentRefreshToken
780
297
  });
781
- // RESET SEMANTICS (Finding 4 follow-up): a 200 success is one of only
782
- // TWO outcomes that reset the unknown-401 streak (the other is a
783
- // KNOWN-permanent 401). A success PROVES the credential is alive and the
784
- // endpoint healthy, so any prior unknown-401 run was genuinely transient
785
- // — the next regression starts with a fresh budget. Transient non-401
786
- // outcomes (network/429/5xx) deliberately do NOT reset, so a flaky-but-
787
- // dead unknown credential still converges to the permanent latch.
788
- resetUnknown401Streak(daemonId);
789
- try {
790
- clearReauthState();
791
- }
792
- catch {
793
- /* ignore */
298
+ __refreshDiagnostics.proofAttemptCount += 1;
299
+ if (typeof proof === "string" && proof.length > 0) {
300
+ headers["OverSky-DPoP"] = proof;
794
301
  }
795
- return pair;
302
+ } catch (err) {
303
+ __refreshDiagnostics.proofAttemptCount += 1;
304
+ log.debug(`[auth/refresh] signRequestProof threw \u2014 proceeding without device-identity header: ${err?.message ?? "unknown"}`);
305
+ }
796
306
  }
797
- if (response.status === 429) {
798
- // RESET SEMANTICS (Finding 4 follow-up): a 429 is transient and does
799
- // NOT reset the unknown-401 streak. A dead-but-unknown-code credential
800
- // whose endpoint also intermittently rate-limits must still converge to
801
- // the permanent latch; resetting here would let it retry forever.
802
- (0, runtime_js_1.emitAuthTelemetry)({
803
- timestamp: new Date().toISOString(),
804
- eventType: 'auth',
805
- success: false,
806
- metadata: {
807
- event: 'refresh_failure',
808
- daemonId,
809
- durationMs: Date.now() - startMs,
810
- errorCode: 'RATE_LIMITED',
811
- statusCode: 429,
812
- },
813
- });
814
- throw new types_js_1.TransientAuthFailure('Refresh rate-limited by server');
815
- }
816
- if (response.status === 401) {
817
- let parsedBody = {};
818
- try {
819
- parsedBody = (await response.json());
820
- }
821
- catch {
822
- /* ignore */
823
- }
824
- // The server's code, mapped through the one table the stateless classifier
825
- // reads too — so a permanent refusal that is not spelled as a reason name
826
- // (DEVICE_PROOF_THUMBPRINT_MISMATCH) latches instead of riding the
827
- // unknown-401 budget forever (OSK-12056).
828
- const code = (0, refreshClassification_js_1.permanentReasonForRefreshCode)(parsedBody.code);
829
- if (code) {
830
- // A KNOWN credential-death code is genuinely permanent — latch
831
- // immediately, exactly as before. It is NOT routed through the
832
- // unknown-401 budget.
833
- //
834
- // RESET SEMANTICS (Finding 4 follow-up): this is one of only TWO
835
- // outcomes that reset the unknown-401 streak (the other is a 200
836
- // success). We reset here because the server just spoke a definitive,
837
- // recognized verdict about the credential — whatever it says next
838
- // about an unknown-shape 401 starts a clean run, and we also prevent a
839
- // prior unknown-401 run from compounding with a real family-burn.
840
- resetUnknown401Streak(daemonId);
841
- log.warn(`[auth/refresh] permanent failure: ${code} — ${parsedBody.message ?? ''}`);
842
- (0, runtime_js_1.emitAuthTelemetry)({
843
- timestamp: new Date().toISOString(),
844
- eventType: 'auth',
845
- success: false,
846
- metadata: {
847
- event: 'refresh_failure',
848
- daemonId,
849
- durationMs: Date.now() - startMs,
850
- errorCode: code,
851
- statusCode: 401,
852
- },
853
- });
854
- // OSK-16941 — keep WHY a revoked session was revoked, so the CLI and the
855
- // desktop banner can tell the person instead of a bare code.
856
- const revocationReason = code === 'SESSION_REVOKED' && typeof parsedBody.reason === 'string'
857
- ? parsedBody.reason.slice(0, 64)
858
- : undefined;
859
- persistReauthState({
860
- code,
861
- message: parsedBody.message,
862
- ...(revocationReason ? { revocationReason } : {}),
863
- at: Date.now(),
864
- });
865
- throw new types_js_1.PermanentAuthFailure(code, parsedBody.message || code, revocationReason);
866
- }
867
- // Unknown-shape 401 — unknown code, missing code, or unparseable body.
868
- // By construction this is NOT a daemon's actual refresh-family burn
869
- // (those arrive as one of the KNOWN codes above); it most likely
870
- // came from infra OverSky does not fully control — a proxy/middleware
871
- // regression, a clock-skew replay rejection (DEVICE_PROOF_REPLAYED),
872
- // or a half-rolled-out server route.
873
- //
874
- // Pre-fix every such 401 latched `PermanentAuthFailure('UNKNOWN_401')`
875
- // + `persistReauthState` on the FIRST occurrence, forcing a manual
876
- // reconnect even when the next refresh would have succeeded. Now we
877
- // give a bounded retry budget: the first `UNKNOWN_401_BUDGET`
878
- // consecutive unknown-401s on this daemonId throw `TransientAuthFailure`
879
- // (NO persistReauthState), so the daemon's `performRefresh → return false`
880
- // path lets the scheduler / reactive retry+backoff ride out a transient
881
- // regression. Only once the budget is exhausted do we fall back to the
882
- // original permanent latch — keeping the interactive re-auth modal as
883
- // the FINAL fallback. The distinct `UNKNOWN_401` telemetry tag is kept
884
- // on BOTH branches so monitoring can still see a server-side bug
885
- // separately from a real expiration (and watch the retry-vs-latch split).
886
- const message = parsedBody.message || 'Unknown auth failure';
887
- const { exhausted, count } = recordUnknown401(daemonId, Date.now());
888
- if (!exhausted) {
889
- log.warn(`[auth/refresh] unknown-shape 401 (${count}/${exports.UNKNOWN_401_BUDGET}) — treating as transient, will retry: ${message}`);
890
- (0, runtime_js_1.emitAuthTelemetry)({
891
- timestamp: new Date().toISOString(),
892
- eventType: 'auth',
893
- success: false,
894
- metadata: {
895
- event: 'refresh_failure',
896
- daemonId,
897
- durationMs: Date.now() - startMs,
898
- errorCode: 'UNKNOWN_401',
899
- statusCode: 401,
900
- // Distinguish a transient (retrying) unknown-401 from the
901
- // budget-exhausted latch in the telemetry stream.
902
- transient: true,
903
- unknown401Streak: count,
904
- },
905
- });
906
- throw new types_js_1.TransientAuthFailure(`Unknown auth failure (transient, retrying): ${message}`);
307
+ return {
308
+ method: "POST",
309
+ headers,
310
+ body: JSON.stringify(body)
311
+ };
312
+ }
313
+ let response;
314
+ try {
315
+ response = await fetch(url, buildRequestInit());
316
+ (0, import_runtime.notifyResponseObserver)(response);
317
+ } catch (err) {
318
+ log.warn(`[auth/refresh] network error: ${err?.message}`);
319
+ (0, import_runtime.emitAuthTelemetry)({
320
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
321
+ eventType: "auth",
322
+ success: false,
323
+ metadata: {
324
+ event: "refresh_failure",
325
+ daemonId,
326
+ durationMs: Date.now() - startMs,
327
+ errorCode: "NETWORK_ERROR"
328
+ }
329
+ });
330
+ throw new import_types.TransientAuthFailure("Network error during refresh", err);
331
+ }
332
+ if (response.status === 200) {
333
+ const data = await response.json();
334
+ const SOFT_BACKOFF_MAX_SECONDS = 600;
335
+ let softBackoffSeconds;
336
+ const backoffHeader = response.headers.get("X-Refresh-Backoff");
337
+ if (typeof backoffHeader === "string") {
338
+ const parsed = parseInt(backoffHeader, 10);
339
+ if (Number.isFinite(parsed) && parsed > 0) {
340
+ if (parsed > SOFT_BACKOFF_MAX_SECONDS) {
341
+ (0, import_runtime.getAuthLogger)().warn(`[auth/refresh] X-Refresh-Backoff=${parsed}s exceeds ${SOFT_BACKOFF_MAX_SECONDS}s cap \u2014 clamping`);
907
342
  }
908
- // Budget exhausted within the window — fall back to the original
909
- // permanent behavior: latch + persist the reauth flag so the daemon
910
- // surfaces the banner and the interactive modal becomes the final
911
- // recovery path.
912
- log.warn(`[auth/refresh] unknown-shape 401 budget exhausted (${count}/${exports.UNKNOWN_401_BUDGET}) — latching permanent: ${message}`);
913
- (0, runtime_js_1.emitAuthTelemetry)({
914
- timestamp: new Date().toISOString(),
915
- eventType: 'auth',
916
- success: false,
917
- metadata: {
918
- event: 'refresh_failure',
919
- daemonId,
920
- durationMs: Date.now() - startMs,
921
- errorCode: 'UNKNOWN_401',
922
- statusCode: 401,
923
- transient: false,
924
- unknown401Streak: count,
925
- },
926
- });
927
- persistReauthState({
928
- code: 'UNKNOWN_401',
929
- message,
930
- at: Date.now(),
931
- });
932
- throw new types_js_1.PermanentAuthFailure('UNKNOWN_401', message);
343
+ softBackoffSeconds = Math.min(parsed, SOFT_BACKOFF_MAX_SECONDS);
344
+ }
933
345
  }
934
- // 5xx / unexpected — transient. Caller will back off.
935
- // RESET SEMANTICS (Finding 4 follow-up): a 5xx is transient and does NOT
936
- // reset the unknown-401 streak. A dead-but-unknown-code credential whose
937
- // endpoint intermittently 5xxs must still converge to the permanent latch;
938
- // resetting here would let it retry forever.
939
- let bodyText = '';
346
+ const pair = {
347
+ // Coerce empty string / undefined to null so consumers branch
348
+ // on a single canonical shape (the wire may legitimately ship
349
+ // any of three things for daemon scope: `null` literal, field
350
+ // absent, or empty string). Non-daemon scopes always supply a
351
+ // non-empty JWT here.
352
+ accessToken: typeof data.accessToken === "string" && data.accessToken.length > 0 ? data.accessToken : null,
353
+ accessExpiresAt: new Date(data.accessExpiresAt).getTime(),
354
+ refreshToken: data.refreshToken,
355
+ refreshExpiresAt: new Date(data.refreshExpiresAt).getTime(),
356
+ // Distinguish "field absent" (older server, leave caller's
357
+ // existing value alone) from "field present but null" (server
358
+ // explicitly cleared, callers MUST overwrite their cache).
359
+ // Three-valued semantic mirrors the daemon-side saveToken
360
+ // options bag — see daemon/src/auth.ts JSDoc.
361
+ opaqueAccessToken: Object.prototype.hasOwnProperty.call(data, "opaqueAccessToken") ? typeof data.opaqueAccessToken === "string" ? data.opaqueAccessToken : null : void 0,
362
+ ...softBackoffSeconds !== void 0 ? { softBackoffSeconds } : {}
363
+ };
364
+ log.info(`[auth/refresh] rotated \u2014 access expires in ${Math.round((pair.accessExpiresAt - Date.now()) / 1e3)}s`);
365
+ (0, import_runtime.emitAuthTelemetry)({
366
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
367
+ eventType: "auth",
368
+ success: true,
369
+ metadata: {
370
+ event: "refresh_success",
371
+ daemonId,
372
+ durationMs: Date.now() - startMs,
373
+ tokensRotated: true
374
+ }
375
+ });
376
+ resetUnknown401Streak(daemonId);
377
+ try {
378
+ clearReauthState();
379
+ } catch {
380
+ }
381
+ return pair;
382
+ }
383
+ if (response.status === 429) {
384
+ (0, import_runtime.emitAuthTelemetry)({
385
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
386
+ eventType: "auth",
387
+ success: false,
388
+ metadata: {
389
+ event: "refresh_failure",
390
+ daemonId,
391
+ durationMs: Date.now() - startMs,
392
+ errorCode: "RATE_LIMITED",
393
+ statusCode: 429
394
+ }
395
+ });
396
+ throw new import_types.TransientAuthFailure("Refresh rate-limited by server");
397
+ }
398
+ if (response.status === 401) {
399
+ let parsedBody = {};
940
400
  try {
941
- bodyText = await response.text();
401
+ parsedBody = await response.json();
402
+ } catch {
942
403
  }
943
- catch {
944
- /* ignore */
404
+ const code = (0, import_refreshClassification.permanentReasonForRefreshCode)(parsedBody.code);
405
+ if (code) {
406
+ resetUnknown401Streak(daemonId);
407
+ log.warn(`[auth/refresh] permanent failure: ${code} \u2014 ${parsedBody.message ?? ""}`);
408
+ (0, import_runtime.emitAuthTelemetry)({
409
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
410
+ eventType: "auth",
411
+ success: false,
412
+ metadata: {
413
+ event: "refresh_failure",
414
+ daemonId,
415
+ durationMs: Date.now() - startMs,
416
+ errorCode: code,
417
+ statusCode: 401
418
+ }
419
+ });
420
+ const revocationReason = code === "SESSION_REVOKED" && typeof parsedBody.reason === "string" ? parsedBody.reason.slice(0, 64) : void 0;
421
+ persistReauthState({
422
+ code,
423
+ message: parsedBody.message,
424
+ ...revocationReason ? { revocationReason } : {},
425
+ at: Date.now()
426
+ });
427
+ throw new import_types.PermanentAuthFailure(code, parsedBody.message || code, revocationReason);
945
428
  }
946
- (0, runtime_js_1.emitAuthTelemetry)({
947
- timestamp: new Date().toISOString(),
948
- eventType: 'auth',
429
+ const message = parsedBody.message || "Unknown auth failure";
430
+ const { exhausted, count } = recordUnknown401(daemonId, Date.now());
431
+ if (!exhausted) {
432
+ log.warn(`[auth/refresh] unknown-shape 401 (${count}/${UNKNOWN_401_BUDGET}) \u2014 treating as transient, will retry: ${message}`);
433
+ (0, import_runtime.emitAuthTelemetry)({
434
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
435
+ eventType: "auth",
949
436
  success: false,
950
437
  metadata: {
951
- event: 'refresh_failure',
952
- daemonId,
953
- durationMs: Date.now() - startMs,
954
- errorCode: 'SERVER_ERROR',
955
- statusCode: response.status,
956
- },
438
+ event: "refresh_failure",
439
+ daemonId,
440
+ durationMs: Date.now() - startMs,
441
+ errorCode: "UNKNOWN_401",
442
+ statusCode: 401,
443
+ // Distinguish a transient (retrying) unknown-401 from the
444
+ // budget-exhausted latch in the telemetry stream.
445
+ transient: true,
446
+ unknown401Streak: count
447
+ }
448
+ });
449
+ throw new import_types.TransientAuthFailure(`Unknown auth failure (transient, retrying): ${message}`);
450
+ }
451
+ log.warn(`[auth/refresh] unknown-shape 401 budget exhausted (${count}/${UNKNOWN_401_BUDGET}) \u2014 latching permanent: ${message}`);
452
+ (0, import_runtime.emitAuthTelemetry)({
453
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
454
+ eventType: "auth",
455
+ success: false,
456
+ metadata: {
457
+ event: "refresh_failure",
458
+ daemonId,
459
+ durationMs: Date.now() - startMs,
460
+ errorCode: "UNKNOWN_401",
461
+ statusCode: 401,
462
+ transient: false,
463
+ unknown401Streak: count
464
+ }
957
465
  });
958
- throw new types_js_1.TransientAuthFailure(`Refresh failed (${response.status}): ${bodyText.slice(0, 200)}`);
466
+ persistReauthState({
467
+ code: "UNKNOWN_401",
468
+ message,
469
+ at: Date.now()
470
+ });
471
+ throw new import_types.PermanentAuthFailure("UNKNOWN_401", message);
472
+ }
473
+ let bodyText = "";
474
+ try {
475
+ bodyText = await response.text();
476
+ } catch {
477
+ }
478
+ (0, import_runtime.emitAuthTelemetry)({
479
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
480
+ eventType: "auth",
481
+ success: false,
482
+ metadata: {
483
+ event: "refresh_failure",
484
+ daemonId,
485
+ durationMs: Date.now() - startMs,
486
+ errorCode: "SERVER_ERROR",
487
+ statusCode: response.status
488
+ }
489
+ });
490
+ throw new import_types.TransientAuthFailure(`Refresh failed (${response.status}): ${bodyText.slice(0, 200)}`);
959
491
  }
960
492
  function persistReauthState(state) {
961
- const log = (0, runtime_js_1.getAuthLogger)();
962
- const flagPath = reauthFlagPath();
963
- try {
964
- const dir = node_path_1.default.dirname(flagPath);
965
- if (!node_fs_1.default.existsSync(dir))
966
- node_fs_1.default.mkdirSync(dir, { recursive: true, mode: 0o700 });
967
- node_fs_1.default.writeFileSync(flagPath, JSON.stringify(state, null, 2) + '\n', {
968
- mode: 0o600,
969
- });
970
- }
971
- catch (err) {
972
- log.debug(`[auth/refresh] failed to persist reauth flag: ${err?.message}`);
973
- }
493
+ const log = (0, import_runtime.getAuthLogger)();
494
+ const flagPath = reauthFlagPath();
495
+ try {
496
+ const dir = import_node_path.default.dirname(flagPath);
497
+ if (!import_node_fs.default.existsSync(dir))
498
+ import_node_fs.default.mkdirSync(dir, { recursive: true, mode: 448 });
499
+ import_node_fs.default.writeFileSync(flagPath, JSON.stringify(state, null, 2) + "\n", {
500
+ mode: 384
501
+ });
502
+ } catch (err) {
503
+ log.debug(`[auth/refresh] failed to persist reauth flag: ${err?.message}`);
504
+ }
974
505
  }
975
506
  function needsReauthState() {
976
- try {
977
- const flagPath = reauthFlagPath();
978
- if (!node_fs_1.default.existsSync(flagPath))
979
- return { needed: false };
980
- const raw = node_fs_1.default.readFileSync(flagPath, 'utf-8');
981
- const state = JSON.parse(raw);
982
- return {
983
- needed: true,
984
- reason: state.code,
985
- ...(typeof state.message === 'string' && state.message.length > 0
986
- ? { message: state.message }
987
- : {}),
988
- ...(typeof state.revocationReason === 'string' && state.revocationReason.length > 0
989
- ? { revocationReason: state.revocationReason }
990
- : {}),
991
- since: state.at,
992
- };
993
- }
994
- catch {
995
- return { needed: false };
996
- }
507
+ try {
508
+ const flagPath = reauthFlagPath();
509
+ if (!import_node_fs.default.existsSync(flagPath))
510
+ return { needed: false };
511
+ const raw = import_node_fs.default.readFileSync(flagPath, "utf-8");
512
+ const state = JSON.parse(raw);
513
+ return {
514
+ needed: true,
515
+ reason: state.code,
516
+ ...typeof state.message === "string" && state.message.length > 0 ? { message: state.message } : {},
517
+ ...typeof state.revocationReason === "string" && state.revocationReason.length > 0 ? { revocationReason: state.revocationReason } : {},
518
+ since: state.at
519
+ };
520
+ } catch {
521
+ return { needed: false };
522
+ }
997
523
  }
998
524
  function clearReauthState() {
999
- const log = (0, runtime_js_1.getAuthLogger)();
1000
- try {
1001
- const flagPath = reauthFlagPath();
1002
- if (node_fs_1.default.existsSync(flagPath))
1003
- node_fs_1.default.unlinkSync(flagPath);
1004
- }
1005
- catch (err) {
1006
- log.debug(`[auth/refresh] clearReauthState: ${err?.message}`);
1007
- }
525
+ const log = (0, import_runtime.getAuthLogger)();
526
+ try {
527
+ const flagPath = reauthFlagPath();
528
+ if (import_node_fs.default.existsSync(flagPath))
529
+ import_node_fs.default.unlinkSync(flagPath);
530
+ } catch (err) {
531
+ log.debug(`[auth/refresh] clearReauthState: ${err?.message}`);
532
+ }
1008
533
  }
534
+ // Annotate the CommonJS export names for ESM import in node:
535
+ 0 && (module.exports = {
536
+ AUTH_LOCK_PATH_FN,
537
+ LOCK_SIGNAL_FALLBACK_EXIT_MS,
538
+ REAUTH_FLAG_PATH_FN,
539
+ UNKNOWN_401_BUDGET,
540
+ __refreshDiagnostics,
541
+ __resetUnknown401StreaksForTest,
542
+ clearReauthState,
543
+ installLockExitHandlers,
544
+ needsReauthState,
545
+ persistReauthState,
546
+ refreshDaemonToken,
547
+ revokeDaemonRefreshSession,
548
+ withAuthLock
549
+ });