@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,945 +1,843 @@
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.MAX_ARTIFACT_BYTES = exports.PROVENANCE_SUFFIX = exports.PREVIOUS_SUFFIX = exports.firstPartyHarnessManifestFile = exports.firstPartyHarnessFeedCandidates = exports.firstPartyHarnessFeedBase = exports.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS = void 0;
7
- exports.firstPartyHarnessInstallDir = firstPartyHarnessInstallDir;
8
- exports.firstPartyHarnessBinaryPath = firstPartyHarnessBinaryPath;
9
- exports.firstPartyHarnessPlatformKey = firstPartyHarnessPlatformKey;
10
- exports.fetchVerifiedManifest = fetchVerifiedManifest;
11
- exports.isManagedFirstPartyHarnessReleasePath = isManagedFirstPartyHarnessReleasePath;
12
- exports.getVerifiedInstalledFirstPartyHarness = getVerifiedInstalledFirstPartyHarness;
13
- exports.readFirstPartyHarnessUpdateState = readFirstPartyHarnessUpdateState;
14
- exports.activateVerifiedFirstPartyHarnessArtifact = activateVerifiedFirstPartyHarnessArtifact;
15
- exports.checkFirstPartyHarnessUpdate = checkFirstPartyHarnessUpdate;
16
- exports.installFirstPartyHarness = installFirstPartyHarness;
17
- exports.rollbackFirstPartyHarness = rollbackFirstPartyHarness;
18
- exports.installedFirstPartyHarnessSize = installedFirstPartyHarnessSize;
19
- /**
20
- * One signed engine installation transaction for CLI, Daemon and Desktop.
21
- * Releases contain both executable and provenance; replacing `current` is the
22
- * only activation operation. Existing sessions keep their immutable executable.
23
- * The signing identity is independent of the daemon release identity.
24
- */
25
- const node_crypto_1 = require("node:crypto");
26
- const node_fs_1 = require("node:fs");
27
- const node_path_1 = __importDefault(require("node:path"));
28
- const proper_lockfile_1 = __importDefault(require("proper-lockfile"));
29
- const firstPartyHarness_js_1 = require("./firstPartyHarness.js");
30
- const firstPartyHarnessHome_js_1 = require("./firstPartyHarnessHome.js");
31
- const firstPartyHarnessChannels_js_1 = require("./firstPartyHarnessChannels.js");
32
- const releaseManifest_js_1 = require("./releaseManifest.js");
33
- const firstPartyHarnessReleaseKeys_js_1 = require("./firstPartyHarnessReleaseKeys.js");
34
- const releaseVersions_js_1 = require("./releaseVersions.js");
35
- const releasePolicy_js_1 = require("./releasePolicy.js");
36
- var firstPartyHarnessReleaseKeys_js_2 = require("./firstPartyHarnessReleaseKeys.js");
37
- Object.defineProperty(exports, "FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS", { enumerable: true, get: function () { return firstPartyHarnessReleaseKeys_js_2.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS; } });
38
- var firstPartyHarnessChannels_js_2 = require("./firstPartyHarnessChannels.js");
39
- Object.defineProperty(exports, "firstPartyHarnessFeedBase", { enumerable: true, get: function () { return firstPartyHarnessChannels_js_2.firstPartyHarnessFeedBase; } });
40
- Object.defineProperty(exports, "firstPartyHarnessFeedCandidates", { enumerable: true, get: function () { return firstPartyHarnessChannels_js_2.firstPartyHarnessFeedCandidates; } });
41
- var firstPartyHarness_js_2 = require("./firstPartyHarness.js");
42
- Object.defineProperty(exports, "firstPartyHarnessManifestFile", { enumerable: true, get: function () { return firstPartyHarness_js_2.firstPartyHarnessManifestFile; } });
43
- exports.PREVIOUS_SUFFIX = firstPartyHarnessHome_js_1.FIRST_PARTY_HARNESS_PREVIOUS_SUFFIX;
44
- exports.PROVENANCE_SUFFIX = firstPartyHarnessHome_js_1.FIRST_PARTY_HARNESS_PROVENANCE_SUFFIX;
45
- exports.MAX_ARTIFACT_BYTES = 400 * 1024 * 1024;
46
- const MANIFEST_FETCH_TIMEOUT_MS = 30_000;
47
- const ARTIFACT_FETCH_TIMEOUT_MS = 10 * 60_000;
48
- const LOCK_STALE_MS = 120_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 firstPartyHarnessUpdater_exports = {};
30
+ __export(firstPartyHarnessUpdater_exports, {
31
+ FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS: () => import_firstPartyHarnessReleaseKeys2.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS,
32
+ MAX_ARTIFACT_BYTES: () => MAX_ARTIFACT_BYTES,
33
+ PREVIOUS_SUFFIX: () => PREVIOUS_SUFFIX,
34
+ PROVENANCE_SUFFIX: () => PROVENANCE_SUFFIX,
35
+ activateVerifiedFirstPartyHarnessArtifact: () => activateVerifiedFirstPartyHarnessArtifact,
36
+ checkFirstPartyHarnessUpdate: () => checkFirstPartyHarnessUpdate,
37
+ fetchVerifiedManifest: () => fetchVerifiedManifest,
38
+ firstPartyHarnessBinaryPath: () => firstPartyHarnessBinaryPath,
39
+ firstPartyHarnessFeedBase: () => import_firstPartyHarnessChannels2.firstPartyHarnessFeedBase,
40
+ firstPartyHarnessFeedCandidates: () => import_firstPartyHarnessChannels2.firstPartyHarnessFeedCandidates,
41
+ firstPartyHarnessInstallDir: () => firstPartyHarnessInstallDir,
42
+ firstPartyHarnessManifestFile: () => import_firstPartyHarness2.firstPartyHarnessManifestFile,
43
+ firstPartyHarnessPlatformKey: () => firstPartyHarnessPlatformKey,
44
+ getVerifiedInstalledFirstPartyHarness: () => getVerifiedInstalledFirstPartyHarness,
45
+ installFirstPartyHarness: () => installFirstPartyHarness,
46
+ installedFirstPartyHarnessSize: () => installedFirstPartyHarnessSize,
47
+ isManagedFirstPartyHarnessReleasePath: () => isManagedFirstPartyHarnessReleasePath,
48
+ readFirstPartyHarnessUpdateState: () => readFirstPartyHarnessUpdateState,
49
+ rollbackFirstPartyHarness: () => rollbackFirstPartyHarness
50
+ });
51
+ module.exports = __toCommonJS(firstPartyHarnessUpdater_exports);
52
+ var import_node_crypto = require("node:crypto");
53
+ var import_node_fs = require("node:fs");
54
+ var import_node_path = __toESM(require("node:path"), 1);
55
+ var import_proper_lockfile = __toESM(require("proper-lockfile"), 1);
56
+ var import_firstPartyHarness = require("./firstPartyHarness.js");
57
+ var import_firstPartyHarnessHome = require("./firstPartyHarnessHome.js");
58
+ var import_firstPartyHarnessChannels = require("./firstPartyHarnessChannels.js");
59
+ var import_releaseManifest = require("./releaseManifest.js");
60
+ var import_firstPartyHarnessReleaseKeys = require("./firstPartyHarnessReleaseKeys.js");
61
+ var import_releaseVersions = require("./releaseVersions.js");
62
+ var import_releasePolicy = require("./releasePolicy.js");
63
+ var import_firstPartyHarnessReleaseKeys2 = require("./firstPartyHarnessReleaseKeys.js");
64
+ var import_firstPartyHarnessChannels2 = require("./firstPartyHarnessChannels.js");
65
+ var import_firstPartyHarness2 = require("./firstPartyHarness.js");
66
+ const PREVIOUS_SUFFIX = import_firstPartyHarnessHome.FIRST_PARTY_HARNESS_PREVIOUS_SUFFIX;
67
+ const PROVENANCE_SUFFIX = import_firstPartyHarnessHome.FIRST_PARTY_HARNESS_PROVENANCE_SUFFIX;
68
+ const MAX_ARTIFACT_BYTES = 400 * 1024 * 1024;
69
+ const MANIFEST_FETCH_TIMEOUT_MS = 3e4;
70
+ const ARTIFACT_FETCH_TIMEOUT_MS = 10 * 6e4;
71
+ const LOCK_STALE_MS = 12e4;
49
72
  function fail(code, error) {
50
- return { ok: false, code, error };
73
+ return { ok: false, code, error };
51
74
  }
52
75
  function fetchSignal(options, timeout) {
53
- return options.signal
54
- ? AbortSignal.any([options.signal, AbortSignal.timeout(timeout)])
55
- : AbortSignal.timeout(timeout);
76
+ return options.signal ? AbortSignal.any([options.signal, AbortSignal.timeout(timeout)]) : AbortSignal.timeout(timeout);
56
77
  }
57
78
  function firstPartyHarnessInstallDir(env = process.env) {
58
- return (0, firstPartyHarnessHome_js_1.firstPartyHarnessBinDir)(env);
79
+ return (0, import_firstPartyHarnessHome.firstPartyHarnessBinDir)(env);
59
80
  }
60
81
  function firstPartyHarnessBinaryPath(env = process.env) {
61
- return (0, firstPartyHarnessHome_js_1.firstPartyHarnessInstalledBinaryPath)(env);
82
+ return (0, import_firstPartyHarnessHome.firstPartyHarnessInstalledBinaryPath)(env);
62
83
  }
63
84
  function firstPartyHarnessPlatformKey(platform = process.platform, arch = process.arch) {
64
- const cpu = arch === 'arm64' || arch === 'aarch64'
65
- ? 'arm64'
66
- : arch === 'x64' || arch === 'x86_64'
67
- ? 'x64'
68
- : null;
69
- if (!cpu ||
70
- !['darwin', 'linux', 'win32'].includes(platform) ||
71
- (platform === 'win32' && cpu !== 'x64'))
72
- return null;
73
- return `${platform}-${cpu}`;
85
+ const cpu = arch === "arm64" || arch === "aarch64" ? "arm64" : arch === "x64" || arch === "x86_64" ? "x64" : null;
86
+ if (!cpu || !["darwin", "linux", "win32"].includes(platform) || platform === "win32" && cpu !== "x64")
87
+ return null;
88
+ return `${platform}-${cpu}`;
74
89
  }
75
90
  async function fetchVerifiedManifest(options = {}) {
76
- const env = options.env ?? process.env;
77
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
78
- const rawFetch = options.fetchImpl ?? globalThis.fetch;
79
- if (options.version && (0, releaseVersions_js_1.compareReleaseVersions)(options.version, options.version) === null)
80
- return fail('version-invalid', 'requested version is not a semantic release version');
81
- if (!keys || keys.length === 0) {
82
- // See the header: unlike the daemon's self-update, an unverifiable harness
83
- // is refused rather than installed. Provisioning the keypair must never be
84
- // the thing that REDUCES what the daemon accepts.
85
- return fail('no-pinned-keys', `no pinned ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} release keys — refusing to install`);
86
- }
87
- if (typeof rawFetch !== 'function') {
88
- return fail('feed-unreachable', 'no fetch implementation available');
89
- }
90
- // A host the egress policy blocks must say so, not read as a certificate
91
- // error (OSK-11947; see fetch-failure.ts).
92
- const doFetch = rawFetch;
93
- // WL-6.6 — the channel decides WHICH signed manifest, and nothing else.
94
- //
95
- // `latest/` was the only path this installer could read, which left the
96
- // channel prefixes provisioned in terraform unreachable by any client. The
97
- // channel is resolved here and nowhere else: artifact urls come from INSIDE
98
- // the manifest and are never rewritten, because a channel in an artifact url
99
- // would enter the signed message and turn every promotion into a re-signing
100
- // ceremony.
101
- //
102
- // An unrecognised channel resolves to `stable` and reports rather than
103
- // throwing. A typo must not leave a machine unable to install anything —
104
- // that turns a harmless mistake into the outage this installer exists to
105
- // avoid.
106
- const { channel, invalid, source } = (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(env);
107
- if (invalid) {
108
- options.onProgress?.(`unknown update channel ${JSON.stringify(invalid)} in ${source ?? firstPartyHarness_js_1.FIRST_PARTY_HARNESS_ENV.channel.name}; ` +
109
- `using ${channel}. Valid: ${firstPartyHarnessChannels_js_1.FIRST_PARTY_HARNESS_CHANNELS.join(', ')}.`);
110
- }
111
- // Every place the manifest may be published, canonical spelling first.
112
- //
113
- // Which spellings depends on what is read. A CHANNEL pointer is current state,
114
- // so only the accepted spellings are tried: a former spelling's pointer stopped
115
- // moving when publishing stopped writing it, and falling back to one would
116
- // install whatever it named on the day of contract. A PINNED release is an
117
- // immutable artifact, so former spellings are tried too: a release published
118
- // before the canonical prefix existed lives only under the old one, with the
119
- // same signed bytes it would have anywhere.
120
- //
121
- // Move to the next candidate ONLY when this one is not there. A candidate that
122
- // answers with a manifest ends the search, whatever that manifest turns out to
123
- // be: falling through on a malformed or badly signed canonical manifest would
124
- // let anyone who can make the canonical object fail verification steer the
125
- // install onto an older spelling's feed — a downgrade by denial.
126
- //
127
- // "Not there" is 403 as well as 404. A prefix with no manifest answers 403 (the
128
- // bucket denies ListBucket, so a missing key cannot be reported as 404).
129
- const notFound = [];
130
- let body;
131
- for (const candidate of (0, firstPartyHarnessChannels_js_1.firstPartyHarnessFeedCandidates)(env, {
132
- pinnedRelease: Boolean(options.version),
133
- })) {
134
- const url = (0, firstPartyHarnessChannels_js_1.resolveChannelManifestUrl)({
135
- base: candidate.base,
136
- manifestFilename: candidate.manifestFilename,
137
- channel,
138
- pinnedVersion: options.version ?? null,
139
- });
140
- try {
141
- const res = await doFetch(url, {
142
- signal: fetchSignal(options, options.manifestTimeoutMs ?? MANIFEST_FETCH_TIMEOUT_MS),
143
- redirect: 'follow',
144
- });
145
- if (res.status === 403 || res.status === 404) {
146
- notFound.push(`HTTP ${res.status} for ${url}`);
147
- continue;
148
- }
149
- if (!res.ok) {
150
- return fail('feed-unreachable', `manifest fetch failed: HTTP ${res.status} for ${url}`);
151
- }
152
- body = await res.text();
153
- break;
154
- }
155
- catch (err) {
156
- return fail('feed-unreachable', `manifest fetch failed: ${err.message}`);
157
- }
158
- }
159
- if (body === undefined) {
160
- // Name the CHANNEL when the object simply is not there anywhere.
161
- //
162
- // A 403 reads as "you are not allowed" — the one thing it does not mean,
163
- // since this feed is public. A user on the default channel with nothing
164
- // published yet would otherwise see a permissions error for a
165
- // release-management state, and go looking at their credentials. A PINNED
166
- // version keeps the raw failure: `releases/<v>/` missing means that exact
167
- // release does not exist, and a channel setting has nothing to do with it.
168
- const tried = notFound.join('; ');
169
- if (!options.version) {
170
- return fail('feed-unreachable', `no ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} release published on the '${channel}' channel (${tried}). ` +
171
- `Set ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS_ENV.channel.name} to a channel that has one, or pin a version.`);
172
- }
173
- return fail('feed-unreachable', `manifest fetch failed: ${tried}`);
174
- }
175
- let manifest;
176
- try {
177
- manifest = JSON.parse(body);
178
- }
179
- catch (err) {
180
- return fail('manifest-malformed', `manifest is not JSON: ${err.message}`);
181
- }
182
- if (!manifest ||
183
- typeof manifest.version !== 'string' ||
184
- !manifest.platforms ||
185
- typeof manifest.platforms !== 'object' ||
186
- Array.isArray(manifest.platforms) ||
187
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, manifest.version) === null) {
188
- return fail('manifest-malformed', 'manifest is missing version or platforms');
189
- }
190
- const verdict = (0, releaseManifest_js_1.verifyManifest)(manifest, keys);
191
- if (!('ok' in verdict) || verdict.ok !== true) {
192
- const reason = 'reason' in verdict ? verdict.reason : 'verification disabled';
193
- return fail('manifest-unverified', `manifest signature rejected: ${reason}`);
194
- }
195
- if (options.version && manifest.version !== options.version) {
196
- return fail('manifest-malformed', 'pinned manifest version does not match requested version');
197
- }
198
- if ((0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) === null ||
199
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) > 0) {
200
- return fail('manifest-malformed', 'manifest minimum is invalid or newer than its release');
201
- }
91
+ const env = options.env ?? process.env;
92
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
93
+ const rawFetch = options.fetchImpl ?? globalThis.fetch;
94
+ if (options.version && (0, import_releaseVersions.compareReleaseVersions)(options.version, options.version) === null)
95
+ return fail("version-invalid", "requested version is not a semantic release version");
96
+ if (!keys || keys.length === 0) {
97
+ return fail("no-pinned-keys", `no pinned ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} release keys \u2014 refusing to install`);
98
+ }
99
+ if (typeof rawFetch !== "function") {
100
+ return fail("feed-unreachable", "no fetch implementation available");
101
+ }
102
+ const doFetch = rawFetch;
103
+ const { channel, invalid, source } = (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(env);
104
+ if (invalid) {
105
+ options.onProgress?.(`unknown update channel ${JSON.stringify(invalid)} in ${source ?? import_firstPartyHarness.FIRST_PARTY_HARNESS_ENV.channel.name}; using ${channel}. Valid: ${import_firstPartyHarnessChannels.FIRST_PARTY_HARNESS_CHANNELS.join(", ")}.`);
106
+ }
107
+ const notFound = [];
108
+ let body;
109
+ for (const candidate of (0, import_firstPartyHarnessChannels.firstPartyHarnessFeedCandidates)(env, {
110
+ pinnedRelease: Boolean(options.version)
111
+ })) {
112
+ const url = (0, import_firstPartyHarnessChannels.resolveChannelManifestUrl)({
113
+ base: candidate.base,
114
+ manifestFilename: candidate.manifestFilename,
115
+ channel,
116
+ pinnedVersion: options.version ?? null
117
+ });
202
118
  try {
203
- const policy = validateEnginePolicy(manifest, options);
204
- if (policy)
205
- return policy;
206
- }
207
- catch (error) {
208
- return fail('policy-rejected', `engine release policy is malformed: ${describe(error)}`);
209
- }
210
- return { ok: true, manifest };
119
+ const res = await doFetch(url, {
120
+ signal: fetchSignal(options, options.manifestTimeoutMs ?? MANIFEST_FETCH_TIMEOUT_MS),
121
+ redirect: "follow"
122
+ });
123
+ if (res.status === 403 || res.status === 404) {
124
+ notFound.push(`HTTP ${res.status} for ${url}`);
125
+ continue;
126
+ }
127
+ if (!res.ok) {
128
+ return fail("feed-unreachable", `manifest fetch failed: HTTP ${res.status} for ${url}`);
129
+ }
130
+ body = await res.text();
131
+ break;
132
+ } catch (err) {
133
+ return fail("feed-unreachable", `manifest fetch failed: ${err.message}`);
134
+ }
135
+ }
136
+ if (body === void 0) {
137
+ const tried = notFound.join("; ");
138
+ if (!options.version) {
139
+ return fail("feed-unreachable", `no ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} release published on the '${channel}' channel (${tried}). Set ${import_firstPartyHarness.FIRST_PARTY_HARNESS_ENV.channel.name} to a channel that has one, or pin a version.`);
140
+ }
141
+ return fail("feed-unreachable", `manifest fetch failed: ${tried}`);
142
+ }
143
+ let manifest;
144
+ try {
145
+ manifest = JSON.parse(body);
146
+ } catch (err) {
147
+ return fail("manifest-malformed", `manifest is not JSON: ${err.message}`);
148
+ }
149
+ if (!manifest || typeof manifest.version !== "string" || !manifest.platforms || typeof manifest.platforms !== "object" || Array.isArray(manifest.platforms) || (0, import_releaseVersions.compareReleaseVersions)(manifest.version, manifest.version) === null) {
150
+ return fail("manifest-malformed", "manifest is missing version or platforms");
151
+ }
152
+ const verdict = (0, import_releaseManifest.verifyManifest)(manifest, keys);
153
+ if (!("ok" in verdict) || verdict.ok !== true) {
154
+ const reason = "reason" in verdict ? verdict.reason : "verification disabled";
155
+ return fail("manifest-unverified", `manifest signature rejected: ${reason}`);
156
+ }
157
+ if (options.version && manifest.version !== options.version) {
158
+ return fail("manifest-malformed", "pinned manifest version does not match requested version");
159
+ }
160
+ if ((0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) > 0) {
161
+ return fail("manifest-malformed", "manifest minimum is invalid or newer than its release");
162
+ }
163
+ try {
164
+ const policy = validateEnginePolicy(manifest, options);
165
+ if (policy)
166
+ return policy;
167
+ } catch (error) {
168
+ return fail("policy-rejected", `engine release policy is malformed: ${describe(error)}`);
169
+ }
170
+ return { ok: true, manifest };
211
171
  }
212
- /** A present policy must explicitly describe this component, never the daemon. */
213
172
  function validateEnginePolicy(manifest, options) {
214
- if (!manifest.policy)
215
- return null;
216
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
217
- const policy = manifest.policy;
218
- const verdict = (0, releasePolicy_js_1.verifyReleasePolicy)(policy, keys);
219
- if (!('ok' in verdict) || !verdict.ok)
220
- return fail('policy-rejected', 'engine release policy signature/shape rejected');
221
- const component = [firstPartyHarness_js_1.FIRST_PARTY_HARNESS.provider, 'firstPartyHarness'].find((name) => policy.components[name]);
222
- if (!component)
223
- return fail('policy-rejected', 'release policy has no first-party engine component');
224
- const assessment = (0, releasePolicy_js_1.assessReleasePolicy)({
225
- policy,
226
- targetDaemonVersion: manifest.version,
227
- targetComponent: component,
228
- channel: (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(options.env).channel,
229
- contracts: options.contracts ?? {},
230
- cohortSubject: options.cohortSubject ?? '',
231
- autonomous: options.autonomous === true,
232
- now: options.now,
233
- });
234
- if (!assessment.valid || !assessment.eligible)
235
- return fail('policy-rejected', assessment.reason ?? 'engine release is not eligible for this policy');
236
- const minimum = policy.components[component].minimumVersion;
237
- if (minimum &&
238
- ((0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, minimum) === null ||
239
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, minimum) < 0))
240
- return fail('minimum-version', 'engine release is below its signed policy minimum');
173
+ if (!manifest.policy)
241
174
  return null;
175
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
176
+ const policy = manifest.policy;
177
+ const verdict = (0, import_releasePolicy.verifyReleasePolicy)(policy, keys);
178
+ if (!("ok" in verdict) || !verdict.ok)
179
+ return fail("policy-rejected", "engine release policy signature/shape rejected");
180
+ const component = [import_firstPartyHarness.FIRST_PARTY_HARNESS.provider, "firstPartyHarness"].find((name) => policy.components[name]);
181
+ if (!component)
182
+ return fail("policy-rejected", "release policy has no first-party engine component");
183
+ const assessment = (0, import_releasePolicy.assessReleasePolicy)({
184
+ policy,
185
+ targetDaemonVersion: manifest.version,
186
+ targetComponent: component,
187
+ channel: (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(options.env).channel,
188
+ contracts: options.contracts ?? {},
189
+ cohortSubject: options.cohortSubject ?? "",
190
+ autonomous: options.autonomous === true,
191
+ now: options.now
192
+ });
193
+ if (!assessment.valid || !assessment.eligible)
194
+ return fail("policy-rejected", assessment.reason ?? "engine release is not eligible for this policy");
195
+ const minimum = policy.components[component].minimumVersion;
196
+ if (minimum && ((0, import_releaseVersions.compareReleaseVersions)(manifest.version, minimum) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.version, minimum) < 0))
197
+ return fail("minimum-version", "engine release is below its signed policy minimum");
198
+ return null;
242
199
  }
243
200
  function describe(error) {
244
- return error instanceof Error ? error.message : String(error);
201
+ return error instanceof Error ? error.message : String(error);
245
202
  }
246
203
  function paths(env) {
247
- const home = (0, firstPartyHarnessHome_js_1.firstPartyHarnessHomeDir)(env);
248
- return {
249
- home,
250
- releases: node_path_1.default.join(home, 'releases'),
251
- current: node_path_1.default.join(home, 'current'),
252
- previous: node_path_1.default.join(home, 'previous'),
253
- state: node_path_1.default.join(home, 'update-state.json'),
254
- floor: node_path_1.default.join(home, 'minimum-manifest.json'),
255
- lock: node_path_1.default.join(node_path_1.default.dirname(home), `.${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.provider}-update`),
256
- };
204
+ const home = (0, import_firstPartyHarnessHome.firstPartyHarnessHomeDir)(env);
205
+ return {
206
+ home,
207
+ releases: import_node_path.default.join(home, "releases"),
208
+ current: import_node_path.default.join(home, "current"),
209
+ previous: import_node_path.default.join(home, "previous"),
210
+ state: import_node_path.default.join(home, "update-state.json"),
211
+ floor: import_node_path.default.join(home, "minimum-manifest.json"),
212
+ lock: import_node_path.default.join(import_node_path.default.dirname(home), `.${import_firstPartyHarness.FIRST_PARTY_HARNESS.provider}-update`)
213
+ };
257
214
  }
258
215
  function prepareLock(env) {
259
- const target = paths(env).lock;
260
- (0, node_fs_1.mkdirSync)(node_path_1.default.dirname(target), { recursive: true, mode: 0o700 });
261
- (0, node_fs_1.writeFileSync)(target, '', { flag: 'a', mode: 0o600 });
262
- return target;
216
+ const target = paths(env).lock;
217
+ (0, import_node_fs.mkdirSync)(import_node_path.default.dirname(target), { recursive: true, mode: 448 });
218
+ (0, import_node_fs.writeFileSync)(target, "", { flag: "a", mode: 384 });
219
+ return target;
263
220
  }
264
221
  function atomicJson(file, data) {
265
- (0, node_fs_1.mkdirSync)(node_path_1.default.dirname(file), { recursive: true, mode: 0o700 });
266
- const staging = `${file}.tmp-${(0, node_crypto_1.randomUUID)()}`;
267
- try {
268
- (0, node_fs_1.writeFileSync)(staging, `${JSON.stringify(data, null, 2)}\n`, { mode: 0o600 });
269
- (0, node_fs_1.renameSync)(staging, file);
270
- }
271
- finally {
272
- (0, node_fs_1.rmSync)(staging, { force: true });
273
- }
222
+ (0, import_node_fs.mkdirSync)(import_node_path.default.dirname(file), { recursive: true, mode: 448 });
223
+ const staging = `${file}.tmp-${(0, import_node_crypto.randomUUID)()}`;
224
+ try {
225
+ (0, import_node_fs.writeFileSync)(staging, `${JSON.stringify(data, null, 2)}
226
+ `, { mode: 384 });
227
+ (0, import_node_fs.renameSync)(staging, file);
228
+ } finally {
229
+ (0, import_node_fs.rmSync)(staging, { force: true });
230
+ }
274
231
  }
275
232
  function atomicLink(target, link) {
276
- const staging = `${link}.tmp-${(0, node_crypto_1.randomUUID)()}`;
277
- try {
278
- (0, node_fs_1.symlinkSync)(target, staging);
279
- (0, node_fs_1.renameSync)(staging, link);
280
- }
281
- finally {
282
- (0, node_fs_1.rmSync)(staging, { force: true });
283
- }
233
+ const staging = `${link}.tmp-${(0, import_node_crypto.randomUUID)()}`;
234
+ try {
235
+ (0, import_node_fs.symlinkSync)(target, staging);
236
+ (0, import_node_fs.renameSync)(staging, link);
237
+ } finally {
238
+ (0, import_node_fs.rmSync)(staging, { force: true });
239
+ }
284
240
  }
285
241
  function readLink(file) {
286
- try {
287
- return (0, node_fs_1.readlinkSync)(file);
288
- }
289
- catch {
290
- return null;
291
- }
242
+ try {
243
+ return (0, import_node_fs.readlinkSync)(file);
244
+ } catch {
245
+ return null;
246
+ }
292
247
  }
293
248
  function hasEntry(file) {
294
- try {
295
- (0, node_fs_1.lstatSync)(file);
296
- return true;
297
- }
298
- catch {
299
- return false;
300
- }
249
+ try {
250
+ (0, import_node_fs.lstatSync)(file);
251
+ return true;
252
+ } catch {
253
+ return false;
254
+ }
301
255
  }
302
256
  function isManagedFirstPartyHarnessReleasePath(binaryPath, env = process.env) {
303
- const canonical = firstPartyHarnessBinaryPath(env);
304
- return (node_path_1.default.resolve(binaryPath) === node_path_1.default.resolve(canonical) &&
305
- readLink(canonical) === `../current/${node_path_1.default.basename(canonical)}`);
257
+ const canonical = firstPartyHarnessBinaryPath(env);
258
+ return import_node_path.default.resolve(binaryPath) === import_node_path.default.resolve(canonical) && readLink(canonical) === `../current/${import_node_path.default.basename(canonical)}`;
306
259
  }
307
- /** Read a single immutable binary/sidecar pair, never two different `current` targets. */
308
260
  function getVerifiedInstalledFirstPartyHarness(options = {}) {
309
- const canonical = firstPartyHarnessBinaryPath(options.env);
310
- return inspectBinary(canonical, options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS, firstPartyHarnessPlatformKey(options.platform, options.arch));
261
+ const canonical = firstPartyHarnessBinaryPath(options.env);
262
+ return inspectBinary(canonical, options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS, firstPartyHarnessPlatformKey(options.platform, options.arch));
311
263
  }
312
264
  function inspectBinary(binaryPath, keys, expectedPlatform = firstPartyHarnessPlatformKey()) {
313
- const result = {
314
- binaryPath,
315
- version: null,
316
- verified: false,
317
- exists: (0, node_fs_1.existsSync)(binaryPath),
318
- provenance: null,
319
- };
320
- if (!result.exists || !keys.length)
321
- return result;
322
- try {
323
- const resolved = (0, node_fs_1.realpathSync)(binaryPath);
324
- const size = (0, node_fs_1.statSync)(resolved).size;
325
- if (size > exports.MAX_ARTIFACT_BYTES)
326
- return result;
327
- const record = JSON.parse((0, node_fs_1.readFileSync)(resolved + exports.PROVENANCE_SUFFIX, 'utf8'));
328
- if (!record ||
329
- (0, releaseVersions_js_1.compareReleaseVersions)(record.version, record.version) === null ||
330
- typeof record.platform !== 'string' ||
331
- typeof record.sha256 !== 'string' ||
332
- typeof record.url !== 'string' ||
333
- typeof record.sig !== 'string')
334
- return result;
335
- record.sha256 = record.sha256.toLowerCase();
336
- result.provenance = record;
337
- if (record.platform !== expectedPlatform)
338
- return result;
339
- const verdict = (0, releaseManifest_js_1.verifyArtifact)(record.platform, record.version, { ...record, file: node_path_1.default.basename(binaryPath), size }, keys);
340
- if (!('ok' in verdict) ||
341
- !verdict.ok ||
342
- (0, node_crypto_1.createHash)('sha256').update((0, node_fs_1.readFileSync)(resolved)).digest('hex') !==
343
- record.sha256.toLowerCase())
344
- return result;
345
- result.version = record.version;
346
- result.verified = true;
347
- }
348
- catch {
349
- /* absent/malformed/tampered provenance is not a version authority */
350
- }
265
+ const result = {
266
+ binaryPath,
267
+ version: null,
268
+ verified: false,
269
+ exists: (0, import_node_fs.existsSync)(binaryPath),
270
+ provenance: null
271
+ };
272
+ if (!result.exists || !keys.length)
351
273
  return result;
274
+ try {
275
+ const resolved = (0, import_node_fs.realpathSync)(binaryPath);
276
+ const size = (0, import_node_fs.statSync)(resolved).size;
277
+ if (size > MAX_ARTIFACT_BYTES)
278
+ return result;
279
+ const record = JSON.parse((0, import_node_fs.readFileSync)(resolved + PROVENANCE_SUFFIX, "utf8"));
280
+ if (!record || (0, import_releaseVersions.compareReleaseVersions)(record.version, record.version) === null || typeof record.platform !== "string" || typeof record.sha256 !== "string" || typeof record.url !== "string" || typeof record.sig !== "string")
281
+ return result;
282
+ record.sha256 = record.sha256.toLowerCase();
283
+ result.provenance = record;
284
+ if (record.platform !== expectedPlatform)
285
+ return result;
286
+ const verdict = (0, import_releaseManifest.verifyArtifact)(record.platform, record.version, { ...record, file: import_node_path.default.basename(binaryPath), size }, keys);
287
+ if (!("ok" in verdict) || !verdict.ok || (0, import_node_crypto.createHash)("sha256").update((0, import_node_fs.readFileSync)(resolved)).digest("hex") !== record.sha256.toLowerCase())
288
+ return result;
289
+ result.version = record.version;
290
+ result.verified = true;
291
+ } catch {
292
+ }
293
+ return result;
352
294
  }
353
295
  function readFirstPartyHarnessUpdateState(env = process.env) {
354
- try {
355
- const value = JSON.parse((0, node_fs_1.readFileSync)(paths(env).state, 'utf8'));
356
- if (!value ||
357
- !['install', 'rollback'].includes(value.operation) ||
358
- !['running', 'succeeded', 'failed'].includes(value.status) ||
359
- !Number.isFinite(value.attemptedAt))
360
- return null;
361
- // A killed updater cannot finalize its durable running record. Diagnose it
362
- // without writing during a status/check command; live lock heartbeats keep
363
- // long downloads distinguishable from interrupted transactions.
364
- if (value.status === 'running' &&
365
- !proper_lockfile_1.default.checkSync(paths(env).lock, { realpath: false, stale: LOCK_STALE_MS })) {
366
- return {
367
- ...value,
368
- status: 'failed',
369
- code: 'install-failed',
370
- error: 'The previous update was interrupted. Run `skrr code update` to retry.',
371
- };
372
- }
373
- return value;
374
- }
375
- catch {
376
- return null;
377
- }
378
- }
379
- function finishState(env, operation, attemptedAt, result, targetVersion, keys = firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS) {
380
- atomicJson(paths(env).state, {
381
- operation,
382
- status: result.ok ? 'succeeded' : 'failed',
383
- attemptedAt,
384
- completedAt: Date.now(),
385
- targetVersion,
386
- installedVersion: result.version ?? getVerifiedInstalledFirstPartyHarness({ env, keys }).version ?? undefined,
387
- code: result.code,
388
- error: result.error,
389
- changed: result.changed,
390
- });
296
+ try {
297
+ const value = JSON.parse((0, import_node_fs.readFileSync)(paths(env).state, "utf8"));
298
+ if (!value || !["install", "rollback"].includes(value.operation) || !["running", "succeeded", "failed"].includes(value.status) || !Number.isFinite(value.attemptedAt))
299
+ return null;
300
+ if (value.status === "running" && !import_proper_lockfile.default.checkSync(paths(env).lock, { realpath: false, stale: LOCK_STALE_MS })) {
301
+ return {
302
+ ...value,
303
+ status: "failed",
304
+ code: "install-failed",
305
+ error: "The previous update was interrupted. Run `skrr code update` to retry."
306
+ };
307
+ }
308
+ return value;
309
+ } catch {
310
+ return null;
311
+ }
312
+ }
313
+ function finishState(env, operation, attemptedAt, result, targetVersion, keys = import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS) {
314
+ atomicJson(paths(env).state, {
315
+ operation,
316
+ status: result.ok ? "succeeded" : "failed",
317
+ attemptedAt,
318
+ completedAt: Date.now(),
319
+ targetVersion,
320
+ installedVersion: result.version ?? getVerifiedInstalledFirstPartyHarness({ env, keys }).version ?? void 0,
321
+ code: result.code,
322
+ error: result.error,
323
+ changed: result.changed
324
+ });
391
325
  }
392
326
  function retainedManifest(env, keys) {
393
- try {
394
- const manifest = JSON.parse((0, node_fs_1.readFileSync)(paths(env).floor, 'utf8'));
395
- const verdict = (0, releaseManifest_js_1.verifyManifest)(manifest, keys);
396
- if (!('ok' in verdict) ||
397
- !verdict.ok ||
398
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) === null ||
399
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) > 0)
400
- throw new Error('retained minimum manifest is invalid; refusing to discard the signed floor');
401
- return manifest;
402
- }
403
- catch (error) {
404
- if (hasEntry(paths(env).floor))
405
- throw error;
406
- return null;
407
- }
327
+ try {
328
+ const manifest = JSON.parse((0, import_node_fs.readFileSync)(paths(env).floor, "utf8"));
329
+ const verdict = (0, import_releaseManifest.verifyManifest)(manifest, keys);
330
+ if (!("ok" in verdict) || !verdict.ok || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) > 0)
331
+ throw new Error("retained minimum manifest is invalid; refusing to discard the signed floor");
332
+ return manifest;
333
+ } catch (error) {
334
+ if (hasEntry(paths(env).floor))
335
+ throw error;
336
+ return null;
337
+ }
408
338
  }
409
339
  function effectiveMinimum(manifest, keys) {
410
- let minimum = manifest.minimum;
411
- if (manifest.policy) {
412
- const policy = manifest.policy;
413
- const verdict = (0, releasePolicy_js_1.verifyReleasePolicy)(policy, keys);
414
- if (!('ok' in verdict) || !verdict.ok)
415
- throw new Error('retained signed policy is invalid');
416
- const component = [firstPartyHarness_js_1.FIRST_PARTY_HARNESS.provider, 'firstPartyHarness'].find((name) => policy.components[name]);
417
- const floor = component ? policy.components[component].minimumVersion : undefined;
418
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(floor, minimum) === null)
419
- throw new Error('signed policy minimum is invalid');
420
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(floor, minimum) === 1)
421
- minimum = floor;
422
- }
423
- return minimum;
340
+ let minimum = manifest.minimum;
341
+ if (manifest.policy) {
342
+ const policy = manifest.policy;
343
+ const verdict = (0, import_releasePolicy.verifyReleasePolicy)(policy, keys);
344
+ if (!("ok" in verdict) || !verdict.ok)
345
+ throw new Error("retained signed policy is invalid");
346
+ const component = [import_firstPartyHarness.FIRST_PARTY_HARNESS.provider, "firstPartyHarness"].find((name) => policy.components[name]);
347
+ const floor = component ? policy.components[component].minimumVersion : void 0;
348
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === null)
349
+ throw new Error("signed policy minimum is invalid");
350
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === 1)
351
+ minimum = floor;
352
+ }
353
+ return minimum;
424
354
  }
425
355
  function retainedMinimum(env, keys) {
426
- const manifest = retainedManifest(env, keys);
427
- return manifest ? effectiveMinimum(manifest, keys) : null;
356
+ const manifest = retainedManifest(env, keys);
357
+ return manifest ? effectiveMinimum(manifest, keys) : null;
428
358
  }
429
359
  function preserveMinimum(env, keys, manifest) {
430
- if (!manifest)
431
- return;
432
- const previous = retainedManifest(env, keys);
433
- if (!previous ||
434
- (0, releaseVersions_js_1.compareReleaseVersions)(effectiveMinimum(manifest, keys), effectiveMinimum(previous, keys)) === 1)
435
- atomicJson(paths(env).floor, manifest);
360
+ if (!manifest)
361
+ return;
362
+ const previous = retainedManifest(env, keys);
363
+ if (!previous || (0, import_releaseVersions.compareReleaseVersions)(effectiveMinimum(manifest, keys), effectiveMinimum(previous, keys)) === 1)
364
+ atomicJson(paths(env).floor, manifest);
436
365
  }
437
366
  function createAliases(env) {
438
- const canonical = firstPartyHarnessBinaryPath(env);
439
- for (const spelling of (0, firstPartyHarness_js_1.firstPartyHarnessArtifactSpellings)()) {
440
- const alias = node_path_1.default.join(node_path_1.default.dirname(canonical), (0, firstPartyHarness_js_1.firstPartyHarnessBinaryName)(spelling));
441
- if (alias === canonical)
442
- continue;
443
- for (const suffix of [exports.PROVENANCE_SUFFIX, '']) {
444
- if (!hasEntry(alias + suffix)) {
445
- try {
446
- (0, node_fs_1.symlinkSync)(node_path_1.default.basename(canonical) + suffix, alias + suffix);
447
- }
448
- catch {
449
- /* compatibility aliases must not invalidate an activated release */
450
- }
451
- }
367
+ const canonical = firstPartyHarnessBinaryPath(env);
368
+ for (const spelling of (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)()) {
369
+ const alias = import_node_path.default.join(import_node_path.default.dirname(canonical), (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
370
+ if (alias === canonical)
371
+ continue;
372
+ for (const suffix of [PROVENANCE_SUFFIX, ""]) {
373
+ if (!hasEntry(alias + suffix)) {
374
+ try {
375
+ (0, import_node_fs.symlinkSync)(import_node_path.default.basename(canonical) + suffix, alias + suffix);
376
+ } catch {
452
377
  }
378
+ }
453
379
  }
380
+ }
454
381
  }
455
382
  function stableLinks(env) {
456
- const binary = firstPartyHarnessBinaryPath(env);
457
- (0, node_fs_1.mkdirSync)(node_path_1.default.dirname(binary), { recursive: true, mode: 0o700 });
458
- for (const suffix of [exports.PROVENANCE_SUFFIX, '']) {
459
- const target = `../current/${node_path_1.default.basename(binary)}${suffix}`;
460
- if (readLink(binary + suffix) !== target)
461
- atomicLink(target, binary + suffix);
462
- }
463
- if (hasEntry(paths(env).previous)) {
464
- for (const suffix of [exports.PROVENANCE_SUFFIX, '']) {
465
- const target = `../previous/${node_path_1.default.basename(binary)}${suffix}`;
466
- if (readLink(binary + exports.PREVIOUS_SUFFIX + suffix) !== target)
467
- atomicLink(target, binary + exports.PREVIOUS_SUFFIX + suffix);
468
- }
469
- }
470
- createAliases(env);
383
+ const binary = firstPartyHarnessBinaryPath(env);
384
+ (0, import_node_fs.mkdirSync)(import_node_path.default.dirname(binary), { recursive: true, mode: 448 });
385
+ for (const suffix of [PROVENANCE_SUFFIX, ""]) {
386
+ const target = `../current/${import_node_path.default.basename(binary)}${suffix}`;
387
+ if (readLink(binary + suffix) !== target)
388
+ atomicLink(target, binary + suffix);
389
+ }
390
+ if (hasEntry(paths(env).previous)) {
391
+ for (const suffix of [PROVENANCE_SUFFIX, ""]) {
392
+ const target = `../previous/${import_node_path.default.basename(binary)}${suffix}`;
393
+ if (readLink(binary + PREVIOUS_SUFFIX + suffix) !== target)
394
+ atomicLink(target, binary + PREVIOUS_SUFFIX + suffix);
395
+ }
396
+ }
397
+ createAliases(env);
471
398
  }
472
399
  function migrateFlatLayout(env, _progress) {
473
- const p = paths(env);
474
- const binary = firstPartyHarnessBinaryPath(env);
475
- (0, node_fs_1.mkdirSync)(p.releases, { recursive: true, mode: 0o700 });
476
- if (isManagedFirstPartyHarnessReleasePath(binary, env) || !(0, node_fs_1.existsSync)(binary))
477
- return;
478
- // Adopt flat bytes without pretending an unsigned legacy binary is trusted.
479
- // Copies leave the original runnable throughout the one-time layout change.
480
- const dir = node_path_1.default.join(p.releases, `legacy-${(0, node_crypto_1.randomUUID)()}`);
481
- (0, node_fs_1.mkdirSync)(dir, { mode: 0o700 });
482
- const adopted = node_path_1.default.join(dir, node_path_1.default.basename(binary));
483
- (0, node_fs_1.copyFileSync)(binary, adopted);
484
- (0, node_fs_1.chmodSync)(adopted, 0o555);
485
- if ((0, node_fs_1.existsSync)(binary + exports.PROVENANCE_SUFFIX)) {
486
- (0, node_fs_1.copyFileSync)(binary + exports.PROVENANCE_SUFFIX, adopted + exports.PROVENANCE_SUFFIX);
487
- (0, node_fs_1.chmodSync)(adopted + exports.PROVENANCE_SUFFIX, 0o444);
488
- }
489
- (0, node_fs_1.chmodSync)(dir, 0o700);
490
- const outgoing = readLink(p.current);
491
- if (outgoing)
492
- atomicLink(outgoing, p.previous);
493
- atomicLink(node_path_1.default.relative(p.home, dir), p.current);
494
- stableLinks(env);
400
+ const p = paths(env);
401
+ const binary = firstPartyHarnessBinaryPath(env);
402
+ (0, import_node_fs.mkdirSync)(p.releases, { recursive: true, mode: 448 });
403
+ if (isManagedFirstPartyHarnessReleasePath(binary, env) || !(0, import_node_fs.existsSync)(binary))
404
+ return;
405
+ const dir = import_node_path.default.join(p.releases, `legacy-${(0, import_node_crypto.randomUUID)()}`);
406
+ (0, import_node_fs.mkdirSync)(dir, { mode: 448 });
407
+ const adopted = import_node_path.default.join(dir, import_node_path.default.basename(binary));
408
+ (0, import_node_fs.copyFileSync)(binary, adopted);
409
+ (0, import_node_fs.chmodSync)(adopted, 365);
410
+ if ((0, import_node_fs.existsSync)(binary + PROVENANCE_SUFFIX)) {
411
+ (0, import_node_fs.copyFileSync)(binary + PROVENANCE_SUFFIX, adopted + PROVENANCE_SUFFIX);
412
+ (0, import_node_fs.chmodSync)(adopted + PROVENANCE_SUFFIX, 292);
413
+ }
414
+ (0, import_node_fs.chmodSync)(dir, 448);
415
+ const outgoing = readLink(p.current);
416
+ if (outgoing)
417
+ atomicLink(outgoing, p.previous);
418
+ atomicLink(import_node_path.default.relative(p.home, dir), p.current);
419
+ stableLinks(env);
495
420
  }
496
421
  function validateArtifact(options) {
497
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
498
- const record = options.provenance;
499
- if (!record ||
500
- typeof record !== 'object' ||
501
- typeof record.version !== 'string' ||
502
- typeof record.platform !== 'string' ||
503
- typeof record.sha256 !== 'string' ||
504
- !/^[a-fA-F0-9]{64}$/.test(record.sha256) ||
505
- typeof record.url !== 'string' ||
506
- typeof record.sig !== 'string' ||
507
- !Buffer.isBuffer(options.binary))
508
- return fail('artifact-unverified', 'artifact provenance is malformed');
509
- if (!keys.length)
510
- return fail('no-pinned-keys', 'no pinned engine release keys; refusing activation');
511
- if ((0, releaseVersions_js_1.compareReleaseVersions)(record.version, record.version) === null)
512
- return fail('version-invalid', 'artifact version is not a semantic release version');
513
- if (record.platform !== firstPartyHarnessPlatformKey(options.platform, options.arch))
514
- return fail('unsupported-platform', `artifact ${record.platform} does not match this host`);
515
- if ((options.platform ?? process.platform) === 'win32')
516
- return fail('unsupported-platform', 'managed engine release activation currently requires macOS or Linux');
517
- const verdict = (0, releaseManifest_js_1.verifyArtifact)(record.platform, record.version, {
518
- ...record,
519
- file: (0, firstPartyHarness_js_1.firstPartyHarnessBinaryName)(),
520
- size: options.binary.length,
521
- }, keys);
522
- if (!('ok' in verdict) || !verdict.ok)
523
- return fail('artifact-unverified', 'artifact provenance signature rejected');
524
- if (options.binary.length > exports.MAX_ARTIFACT_BYTES)
525
- return fail('too-large', 'artifact exceeds the download ceiling');
526
- if ((0, node_crypto_1.createHash)('sha256').update(options.binary).digest('hex') !== record.sha256.toLowerCase())
527
- return fail('hash-mismatch', 'artifact bytes do not match signed provenance');
528
- if (options.manifest) {
529
- const policyFailure = validateEnginePolicy(options.manifest, options);
530
- if (policyFailure)
531
- return policyFailure;
532
- const manifestVerdict = (0, releaseManifest_js_1.verifyManifest)(options.manifest, keys);
533
- const artifact = options.manifest.platforms?.[record.platform];
534
- if (!('ok' in manifestVerdict) ||
535
- !manifestVerdict.ok ||
536
- options.manifest.version !== record.version ||
537
- artifact?.sha256?.toLowerCase() !== record.sha256.toLowerCase() ||
538
- (0, releaseVersions_js_1.compareReleaseVersions)(options.manifest.minimum, record.version) === null)
539
- return fail('manifest-unverified', 'activation manifest does not authenticate this artifact');
540
- }
541
- return null;
422
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
423
+ const record = options.provenance;
424
+ if (!record || typeof record !== "object" || typeof record.version !== "string" || typeof record.platform !== "string" || typeof record.sha256 !== "string" || !/^[a-fA-F0-9]{64}$/.test(record.sha256) || typeof record.url !== "string" || typeof record.sig !== "string" || !Buffer.isBuffer(options.binary))
425
+ return fail("artifact-unverified", "artifact provenance is malformed");
426
+ if (!keys.length)
427
+ return fail("no-pinned-keys", "no pinned engine release keys; refusing activation");
428
+ if ((0, import_releaseVersions.compareReleaseVersions)(record.version, record.version) === null)
429
+ return fail("version-invalid", "artifact version is not a semantic release version");
430
+ if (record.platform !== firstPartyHarnessPlatformKey(options.platform, options.arch))
431
+ return fail("unsupported-platform", `artifact ${record.platform} does not match this host`);
432
+ if ((options.platform ?? process.platform) === "win32")
433
+ return fail("unsupported-platform", "managed engine release activation currently requires macOS or Linux");
434
+ const verdict = (0, import_releaseManifest.verifyArtifact)(record.platform, record.version, {
435
+ ...record,
436
+ file: (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(),
437
+ size: options.binary.length
438
+ }, keys);
439
+ if (!("ok" in verdict) || !verdict.ok)
440
+ return fail("artifact-unverified", "artifact provenance signature rejected");
441
+ if (options.binary.length > MAX_ARTIFACT_BYTES)
442
+ return fail("too-large", "artifact exceeds the download ceiling");
443
+ if ((0, import_node_crypto.createHash)("sha256").update(options.binary).digest("hex") !== record.sha256.toLowerCase())
444
+ return fail("hash-mismatch", "artifact bytes do not match signed provenance");
445
+ if (options.manifest) {
446
+ const policyFailure = validateEnginePolicy(options.manifest, options);
447
+ if (policyFailure)
448
+ return policyFailure;
449
+ const manifestVerdict = (0, import_releaseManifest.verifyManifest)(options.manifest, keys);
450
+ const artifact = options.manifest.platforms?.[record.platform];
451
+ if (!("ok" in manifestVerdict) || !manifestVerdict.ok || options.manifest.version !== record.version || artifact?.sha256?.toLowerCase() !== record.sha256.toLowerCase() || (0, import_releaseVersions.compareReleaseVersions)(options.manifest.minimum, record.version) === null)
452
+ return fail("manifest-unverified", "activation manifest does not authenticate this artifact");
453
+ }
454
+ return null;
542
455
  }
543
456
  function activateLocked(options) {
544
- const env = options.env ?? process.env;
545
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
546
- const progress = options.onProgress ?? (() => { });
547
- const p = paths(env);
548
- const binary = firstPartyHarnessBinaryPath(env);
549
- const canonicalLink = readLink(binary);
550
- // Older spelling links are migration inputs; arbitrary symlinks belong to
551
- // an external install and are never followed for writes.
552
- const legacyLinks = (0, firstPartyHarness_js_1.firstPartyHarnessArtifactSpellings)().map((spelling) => (0, firstPartyHarness_js_1.firstPartyHarnessBinaryName)(spelling));
553
- if (canonicalLink &&
554
- !isManagedFirstPartyHarnessReleasePath(binary, env) &&
555
- !legacyLinks.includes(canonicalLink)) {
556
- return options.preserveExternalLink
557
- ? {
558
- ok: true,
559
- changed: false,
560
- binaryPath: binary,
561
- reason: 'canonical engine is an externally owned symlink',
562
- }
563
- : fail('install-failed', 'managed engine path is an external symlink; update its owning installation');
564
- }
565
- if (options.preserveExternalLink && !hasEntry(binary)) {
566
- for (const spelling of (0, firstPartyHarness_js_1.firstPartyHarnessArtifactSpellings)()) {
567
- const alias = node_path_1.default.join(node_path_1.default.dirname(binary), (0, firstPartyHarness_js_1.firstPartyHarnessBinaryName)(spelling));
568
- const aliasLink = readLink(alias);
569
- if (aliasLink && aliasLink !== node_path_1.default.basename(binary))
570
- return {
571
- ok: true,
572
- changed: false,
573
- binaryPath: binary,
574
- reason: `legacy engine at ${alias} is an externally owned symlink`,
575
- };
576
- }
577
- }
578
- const migration = (0, firstPartyHarnessHome_js_1.migrateFirstPartyHarnessHome)({ env });
579
- for (const change of migration.moved)
580
- progress(`engine home migration: ${change}`);
581
- for (const error of migration.errors)
582
- progress(`engine home migration: ${error}`);
583
- const installed = getVerifiedInstalledFirstPartyHarness({
584
- env,
585
- keys,
586
- platform: options.platform,
587
- arch: options.arch,
588
- });
589
- const record = { ...options.provenance, sha256: options.provenance.sha256.toLowerCase() };
590
- const floor = retainedMinimum(env, keys);
591
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(record.version, floor) < 0)
592
- return fail('minimum-version', `release ${record.version} is below the retained signed minimum ${floor}`);
593
- if (options.manifest && (0, releaseVersions_js_1.compareReleaseVersions)(record.version, options.manifest.minimum) < 0)
594
- return fail('minimum-version', 'release is below its signed minimum');
595
- if (installed.exists && !installed.verified && options.preserveUnknownInstalled)
457
+ const env = options.env ?? process.env;
458
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
459
+ const progress = options.onProgress ?? (() => {
460
+ });
461
+ const p = paths(env);
462
+ const binary = firstPartyHarnessBinaryPath(env);
463
+ const canonicalLink = readLink(binary);
464
+ const legacyLinks = (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)().map((spelling) => (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
465
+ if (canonicalLink && !isManagedFirstPartyHarnessReleasePath(binary, env) && !legacyLinks.includes(canonicalLink)) {
466
+ return options.preserveExternalLink ? {
467
+ ok: true,
468
+ changed: false,
469
+ binaryPath: binary,
470
+ reason: "canonical engine is an externally owned symlink"
471
+ } : fail("install-failed", "managed engine path is an external symlink; update its owning installation");
472
+ }
473
+ if (options.preserveExternalLink && !hasEntry(binary)) {
474
+ for (const spelling of (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)()) {
475
+ const alias = import_node_path.default.join(import_node_path.default.dirname(binary), (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
476
+ const aliasLink = readLink(alias);
477
+ if (aliasLink && aliasLink !== import_node_path.default.basename(binary))
596
478
  return {
597
- ok: true,
598
- changed: false,
599
- binaryPath: binary,
600
- reason: 'installed engine has no verified provenance',
479
+ ok: true,
480
+ changed: false,
481
+ binaryPath: binary,
482
+ reason: `legacy engine at ${alias} is an externally owned symlink`
601
483
  };
602
- if (installed.version) {
603
- const comparison = (0, releaseVersions_js_1.compareReleaseVersions)(record.version, installed.version);
604
- if (comparison === 0 && installed.provenance?.sha256 !== record.sha256)
605
- return fail('manifest-malformed', 'release version is immutable but signed artifact digest changed');
606
- if (comparison === 0 || (comparison < 0 && !options.allowDowngrade)) {
607
- preserveMinimum(env, keys, options.manifest);
608
- return {
609
- ok: true,
610
- changed: false,
611
- replaced: true,
612
- version: installed.version,
613
- platform: installed.provenance?.platform,
614
- binaryPath: binary,
615
- };
616
- }
617
484
  }
618
- migrateFlatLayout(env, progress);
619
- const slot = node_path_1.default.join(p.releases, `${record.version}-${record.sha256.toLowerCase()}`);
620
- const slotBinary = node_path_1.default.join(slot, node_path_1.default.basename(binary));
621
- if (hasEntry(slot)) {
622
- if ((0, node_fs_1.lstatSync)(slot).isSymbolicLink())
623
- return fail('install-failed', 'release directory must be locally owned, not a symlink');
624
- const existing = inspectBinary(slotBinary, keys, firstPartyHarnessPlatformKey(options.platform, options.arch));
625
- if (!existing.verified || existing.provenance?.sha256 !== record.sha256)
626
- return fail('install-failed', 'immutable release directory already exists with invalid bytes');
627
- }
628
- else {
629
- const staging = node_path_1.default.join(p.releases, `.staging-${(0, node_crypto_1.randomUUID)()}`);
630
- (0, node_fs_1.mkdirSync)(staging, { mode: 0o700 });
631
- try {
632
- (0, node_fs_1.writeFileSync)(node_path_1.default.join(staging, node_path_1.default.basename(binary)), options.binary, { mode: 0o755 });
633
- (0, node_fs_1.writeFileSync)(node_path_1.default.join(staging, node_path_1.default.basename(binary) + exports.PROVENANCE_SUFFIX), `${JSON.stringify(record, null, 2)}\n`, { mode: 0o600 });
634
- (0, node_fs_1.chmodSync)(node_path_1.default.join(staging, node_path_1.default.basename(binary)), 0o555);
635
- (0, node_fs_1.chmodSync)(node_path_1.default.join(staging, node_path_1.default.basename(binary) + exports.PROVENANCE_SUFFIX), 0o444);
636
- (0, node_fs_1.chmodSync)(staging, 0o700);
637
- (0, node_fs_1.renameSync)(staging, slot);
638
- }
639
- finally {
640
- if (hasEntry(staging)) {
641
- (0, node_fs_1.chmodSync)(staging, 0o700);
642
- (0, node_fs_1.rmSync)(staging, { recursive: true, force: true });
643
- }
644
- }
645
- }
646
- const previous = readLink(p.current);
647
- const target = node_path_1.default.relative(p.home, slot);
648
- if (previous && previous !== target)
649
- atomicLink(previous, p.previous);
650
- // Prepare the stable entry points while the original release still runs.
651
- // Subsequent installations only change this ONE pointer.
652
- stableLinks(env);
653
- preserveMinimum(env, keys, options.manifest);
654
- atomicLink(target, p.current);
655
- progress(`${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} ${record.version} installed; existing sessions keep their current release.`);
485
+ }
486
+ const migration = (0, import_firstPartyHarnessHome.migrateFirstPartyHarnessHome)({ env });
487
+ for (const change of migration.moved)
488
+ progress(`engine home migration: ${change}`);
489
+ for (const error of migration.errors)
490
+ progress(`engine home migration: ${error}`);
491
+ const installed = getVerifiedInstalledFirstPartyHarness({
492
+ env,
493
+ keys,
494
+ platform: options.platform,
495
+ arch: options.arch
496
+ });
497
+ const record = { ...options.provenance, sha256: options.provenance.sha256.toLowerCase() };
498
+ const floor = retainedMinimum(env, keys);
499
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(record.version, floor) < 0)
500
+ return fail("minimum-version", `release ${record.version} is below the retained signed minimum ${floor}`);
501
+ if (options.manifest && (0, import_releaseVersions.compareReleaseVersions)(record.version, options.manifest.minimum) < 0)
502
+ return fail("minimum-version", "release is below its signed minimum");
503
+ if (installed.exists && !installed.verified && options.preserveUnknownInstalled)
656
504
  return {
657
- ok: true,
658
- changed: true,
659
- replaced: installed.exists,
660
- version: record.version,
661
- platform: record.platform,
662
- binaryPath: binary,
505
+ ok: true,
506
+ changed: false,
507
+ binaryPath: binary,
508
+ reason: "installed engine has no verified provenance"
663
509
  };
510
+ if (installed.version) {
511
+ const comparison = (0, import_releaseVersions.compareReleaseVersions)(record.version, installed.version);
512
+ if (comparison === 0 && installed.provenance?.sha256 !== record.sha256)
513
+ return fail("manifest-malformed", "release version is immutable but signed artifact digest changed");
514
+ if (comparison === 0 || comparison < 0 && !options.allowDowngrade) {
515
+ preserveMinimum(env, keys, options.manifest);
516
+ return {
517
+ ok: true,
518
+ changed: false,
519
+ replaced: true,
520
+ version: installed.version,
521
+ platform: installed.provenance?.platform,
522
+ binaryPath: binary
523
+ };
524
+ }
525
+ }
526
+ migrateFlatLayout(env, progress);
527
+ const slot = import_node_path.default.join(p.releases, `${record.version}-${record.sha256.toLowerCase()}`);
528
+ const slotBinary = import_node_path.default.join(slot, import_node_path.default.basename(binary));
529
+ if (hasEntry(slot)) {
530
+ if ((0, import_node_fs.lstatSync)(slot).isSymbolicLink())
531
+ return fail("install-failed", "release directory must be locally owned, not a symlink");
532
+ const existing = inspectBinary(slotBinary, keys, firstPartyHarnessPlatformKey(options.platform, options.arch));
533
+ if (!existing.verified || existing.provenance?.sha256 !== record.sha256)
534
+ return fail("install-failed", "immutable release directory already exists with invalid bytes");
535
+ } else {
536
+ const staging = import_node_path.default.join(p.releases, `.staging-${(0, import_node_crypto.randomUUID)()}`);
537
+ (0, import_node_fs.mkdirSync)(staging, { mode: 448 });
538
+ try {
539
+ (0, import_node_fs.writeFileSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary)), options.binary, { mode: 493 });
540
+ (0, import_node_fs.writeFileSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary) + PROVENANCE_SUFFIX), `${JSON.stringify(record, null, 2)}
541
+ `, { mode: 384 });
542
+ (0, import_node_fs.chmodSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary)), 365);
543
+ (0, import_node_fs.chmodSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary) + PROVENANCE_SUFFIX), 292);
544
+ (0, import_node_fs.chmodSync)(staging, 448);
545
+ (0, import_node_fs.renameSync)(staging, slot);
546
+ } finally {
547
+ if (hasEntry(staging)) {
548
+ (0, import_node_fs.chmodSync)(staging, 448);
549
+ (0, import_node_fs.rmSync)(staging, { recursive: true, force: true });
550
+ }
551
+ }
552
+ }
553
+ const previous = readLink(p.current);
554
+ const target = import_node_path.default.relative(p.home, slot);
555
+ if (previous && previous !== target)
556
+ atomicLink(previous, p.previous);
557
+ stableLinks(env);
558
+ preserveMinimum(env, keys, options.manifest);
559
+ atomicLink(target, p.current);
560
+ progress(`${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} ${record.version} installed; existing sessions keep their current release.`);
561
+ return {
562
+ ok: true,
563
+ changed: true,
564
+ replaced: installed.exists,
565
+ version: record.version,
566
+ platform: record.platform,
567
+ binaryPath: binary
568
+ };
664
569
  }
665
- /** Desktop's already-downloaded signed artifact uses the exact same transaction. */
666
570
  function activateVerifiedFirstPartyHarnessArtifact(options) {
667
- const invalid = validateArtifact(options);
668
- const env = options.env ?? process.env;
669
- const attemptedAt = Date.now();
670
- let release;
671
- try {
672
- release = proper_lockfile_1.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
673
- const result = invalid ?? activateLocked(options);
674
- finishState(env, 'install', attemptedAt, result, options.provenance?.version, options.keys);
675
- return result;
676
- }
677
- catch (error) {
678
- const result = fail(error.code === 'ELOCKED' ? 'lock-busy' : 'install-failed', describe(error));
679
- if (release) {
680
- try {
681
- finishState(env, 'install', attemptedAt, result, options.provenance?.version, options.keys);
682
- }
683
- catch {
684
- // Preserve the activation failure if its diagnostic journal is also unwritable.
685
- }
686
- }
687
- return result;
688
- }
689
- finally {
690
- release?.();
571
+ const invalid = validateArtifact(options);
572
+ const env = options.env ?? process.env;
573
+ const attemptedAt = Date.now();
574
+ let release;
575
+ try {
576
+ release = import_proper_lockfile.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
577
+ const result = invalid ?? activateLocked(options);
578
+ finishState(env, "install", attemptedAt, result, options.provenance?.version, options.keys);
579
+ return result;
580
+ } catch (error) {
581
+ const result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", describe(error));
582
+ if (release) {
583
+ try {
584
+ finishState(env, "install", attemptedAt, result, options.provenance?.version, options.keys);
585
+ } catch {
586
+ }
691
587
  }
588
+ return result;
589
+ } finally {
590
+ release?.();
591
+ }
692
592
  }
693
- /** Signed-manifest check reads only; no lock, migration, state writes or login. */
694
593
  async function checkFirstPartyHarnessUpdate(options = {}) {
594
+ const fetched = await fetchVerifiedManifest(options);
595
+ if (!fetched.ok)
596
+ return fetched;
597
+ const env = options.env ?? process.env;
598
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
599
+ const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
600
+ if (!platform || (options.platform ?? process.platform) === "win32")
601
+ return fail("unsupported-platform", "this host has no managed engine artifact");
602
+ const artifact = fetched.manifest.platforms[platform];
603
+ if (!artifact)
604
+ return fail("artifact-missing", `release has no ${platform} artifact`);
605
+ const verdict = (0, import_releaseManifest.verifyArtifact)(platform, fetched.manifest.version, artifact, keys);
606
+ if (!("ok" in verdict) || !verdict.ok)
607
+ return fail("artifact-unverified", "offered artifact signature rejected");
608
+ let minimum = effectiveMinimum(fetched.manifest, keys);
609
+ try {
610
+ const floor = retainedMinimum(env, keys);
611
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(fetched.manifest.version, floor) < 0)
612
+ return fail("minimum-version", "offered release is below the retained signed minimum");
613
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === 1)
614
+ minimum = floor;
615
+ } catch (error) {
616
+ return fail("minimum-version", describe(error));
617
+ }
618
+ const installed = getVerifiedInstalledFirstPartyHarness(options);
619
+ if (installed.version === fetched.manifest.version && installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
620
+ return fail("manifest-malformed", "same release version offers a different signed artifact digest");
621
+ const override = (0, import_firstPartyHarness.readFirstPartyHarnessEnv)(env, "path").value;
622
+ return {
623
+ ok: true,
624
+ installedVersion: installed.version,
625
+ latestVersion: fetched.manifest.version,
626
+ channel: (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(env).channel,
627
+ updateAvailable: !installed.version || (0, import_releaseVersions.compareReleaseVersions)(installed.version, fetched.manifest.version) === -1,
628
+ binaryPath: installed.binaryPath,
629
+ owner: override && import_node_path.default.resolve(override) !== import_node_path.default.resolve(installed.binaryPath) ? "external" : "managed",
630
+ installedVerified: installed.verified,
631
+ minimumVersion: minimum,
632
+ lastUpdate: readFirstPartyHarnessUpdateState(env)
633
+ };
634
+ }
635
+ async function installFirstPartyHarness(options = {}) {
636
+ const env = options.env ?? process.env;
637
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
638
+ const progress = options.onProgress ?? (() => {
639
+ });
640
+ const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
641
+ if (!platform || (options.platform ?? process.platform) === "win32")
642
+ return fail("unsupported-platform", "no managed engine activation for this platform");
643
+ if (options.version && (0, import_releaseVersions.compareReleaseVersions)(options.version, options.version) === null)
644
+ return fail("version-invalid", "requested version is not a semantic release version");
645
+ if (options.allowDowngrade && !options.version)
646
+ return fail("downgrade-refused", "a downgrade requires an explicit pinned version");
647
+ const attemptedAt = Date.now();
648
+ let release;
649
+ let result;
650
+ try {
651
+ release = await import_proper_lockfile.default.lock(prepareLock(env), {
652
+ realpath: false,
653
+ stale: LOCK_STALE_MS,
654
+ update: 1e4,
655
+ retries: { retries: 20, minTimeout: 100, maxTimeout: 500, factor: 1.2 }
656
+ });
657
+ atomicJson(paths(env).state, {
658
+ operation: "install",
659
+ status: "running",
660
+ attemptedAt,
661
+ targetVersion: options.version
662
+ });
663
+ result = await downloadAndActivate();
664
+ finishState(env, "install", attemptedAt, result, result.version ?? options.version, keys);
665
+ return result;
666
+ } catch (error) {
667
+ result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", describe(error));
668
+ if (release) {
669
+ try {
670
+ finishState(env, "install", attemptedAt, result, options.version, keys);
671
+ } catch {
672
+ }
673
+ }
674
+ return result;
675
+ } finally {
676
+ await release?.();
677
+ }
678
+ async function downloadAndActivate() {
679
+ progress("Fetching signed release manifest\u2026");
695
680
  const fetched = await fetchVerifiedManifest(options);
696
681
  if (!fetched.ok)
697
- return fetched;
698
- const env = options.env ?? process.env;
699
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
700
- const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
701
- if (!platform || (options.platform ?? process.platform) === 'win32')
702
- return fail('unsupported-platform', 'this host has no managed engine artifact');
703
- const artifact = fetched.manifest.platforms[platform];
682
+ return fetched;
683
+ const { manifest } = fetched;
684
+ const artifact = manifest.platforms[platform];
704
685
  if (!artifact)
705
- return fail('artifact-missing', `release has no ${platform} artifact`);
706
- const verdict = (0, releaseManifest_js_1.verifyArtifact)(platform, fetched.manifest.version, artifact, keys);
707
- if (!('ok' in verdict) || !verdict.ok)
708
- return fail('artifact-unverified', 'offered artifact signature rejected');
709
- let minimum = effectiveMinimum(fetched.manifest, keys);
710
- try {
711
- const floor = retainedMinimum(env, keys);
712
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(fetched.manifest.version, floor) < 0)
713
- return fail('minimum-version', 'offered release is below the retained signed minimum');
714
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(floor, minimum) === 1)
715
- minimum = floor;
716
- }
717
- catch (error) {
718
- return fail('minimum-version', describe(error));
719
- }
720
- const installed = getVerifiedInstalledFirstPartyHarness(options);
721
- if (installed.version === fetched.manifest.version &&
722
- installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
723
- return fail('manifest-malformed', 'same release version offers a different signed artifact digest');
724
- const override = (0, firstPartyHarness_js_1.readFirstPartyHarnessEnv)(env, 'path').value;
725
- return {
686
+ return fail("artifact-missing", `release ${manifest.version} has no ${platform} artifact`);
687
+ const verdict = (0, import_releaseManifest.verifyArtifact)(platform, manifest.version, artifact, keys);
688
+ if (!("ok" in verdict) || !verdict.ok)
689
+ return fail("artifact-unverified", "artifact signature rejected");
690
+ if (typeof artifact.size === "number" && artifact.size > MAX_ARTIFACT_BYTES)
691
+ return fail("too-large", "artifact declares bytes above the ceiling");
692
+ const installed = getVerifiedInstalledFirstPartyHarness({
693
+ env,
694
+ keys,
695
+ platform: options.platform,
696
+ arch: options.arch
697
+ });
698
+ const floor = retainedMinimum(env, keys);
699
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(manifest.version, floor) < 0)
700
+ return fail("minimum-version", `offered release is below the retained signed minimum ${floor}`);
701
+ if (installed.version && (0, import_releaseVersions.compareReleaseVersions)(manifest.version, installed.version) < 0 && !options.allowDowngrade) {
702
+ return fail("downgrade-refused", `offered ${manifest.version} is older than installed ${installed.version}; pin a version and use --allow-downgrade for recovery`);
703
+ }
704
+ if (installed.version === manifest.version) {
705
+ if (installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
706
+ return fail("manifest-malformed", "same release version offers a different signed artifact digest");
707
+ preserveMinimum(env, keys, manifest);
708
+ return {
726
709
  ok: true,
727
- installedVersion: installed.version,
728
- latestVersion: fetched.manifest.version,
729
- channel: (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(env).channel,
730
- updateAvailable: !installed.version ||
731
- (0, releaseVersions_js_1.compareReleaseVersions)(installed.version, fetched.manifest.version) === -1,
710
+ changed: false,
711
+ version: installed.version,
732
712
  binaryPath: installed.binaryPath,
733
- owner: override && node_path_1.default.resolve(override) !== node_path_1.default.resolve(installed.binaryPath)
734
- ? 'external'
735
- : 'managed',
736
- installedVerified: installed.verified,
737
- minimumVersion: minimum,
738
- lastUpdate: readFirstPartyHarnessUpdateState(env),
739
- };
740
- }
741
- async function installFirstPartyHarness(options = {}) {
742
- const env = options.env ?? process.env;
743
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
744
- const progress = options.onProgress ?? (() => { });
745
- const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
746
- if (!platform || (options.platform ?? process.platform) === 'win32')
747
- return fail('unsupported-platform', 'no managed engine activation for this platform');
748
- if (options.version && (0, releaseVersions_js_1.compareReleaseVersions)(options.version, options.version) === null)
749
- return fail('version-invalid', 'requested version is not a semantic release version');
750
- if (options.allowDowngrade && !options.version)
751
- return fail('downgrade-refused', 'a downgrade requires an explicit pinned version');
752
- const attemptedAt = Date.now();
753
- let release;
754
- let result;
755
- try {
756
- release = await proper_lockfile_1.default.lock(prepareLock(env), {
757
- realpath: false,
758
- stale: LOCK_STALE_MS,
759
- update: 10_000,
760
- retries: { retries: 20, minTimeout: 100, maxTimeout: 500, factor: 1.2 },
761
- });
762
- atomicJson(paths(env).state, {
763
- operation: 'install',
764
- status: 'running',
765
- attemptedAt,
766
- targetVersion: options.version,
767
- });
768
- result = await downloadAndActivate();
769
- finishState(env, 'install', attemptedAt, result, result.version ?? options.version, keys);
770
- return result;
713
+ platform: installed.provenance?.platform,
714
+ replaced: true
715
+ };
771
716
  }
772
- catch (error) {
773
- result = fail(error.code === 'ELOCKED' ? 'lock-busy' : 'install-failed', describe(error));
774
- if (release) {
775
- try {
776
- finishState(env, 'install', attemptedAt, result, options.version, keys);
777
- }
778
- catch {
779
- /* preserve original error */
780
- }
781
- }
782
- return result;
783
- }
784
- finally {
785
- await release?.();
786
- }
787
- async function downloadAndActivate() {
788
- progress('Fetching signed release manifest…');
789
- const fetched = await fetchVerifiedManifest(options);
790
- if (!fetched.ok)
791
- return fetched;
792
- const { manifest } = fetched;
793
- const artifact = manifest.platforms[platform];
794
- if (!artifact)
795
- return fail('artifact-missing', `release ${manifest.version} has no ${platform} artifact`);
796
- const verdict = (0, releaseManifest_js_1.verifyArtifact)(platform, manifest.version, artifact, keys);
797
- if (!('ok' in verdict) || !verdict.ok)
798
- return fail('artifact-unverified', 'artifact signature rejected');
799
- if (typeof artifact.size === 'number' && artifact.size > exports.MAX_ARTIFACT_BYTES)
800
- return fail('too-large', 'artifact declares bytes above the ceiling');
801
- const installed = getVerifiedInstalledFirstPartyHarness({
802
- env,
803
- keys,
804
- platform: options.platform,
805
- arch: options.arch,
806
- });
807
- const floor = retainedMinimum(env, keys);
808
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, floor) < 0)
809
- return fail('minimum-version', `offered release is below the retained signed minimum ${floor}`);
810
- if (installed.version &&
811
- (0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, installed.version) < 0 &&
812
- !options.allowDowngrade) {
813
- return fail('downgrade-refused', `offered ${manifest.version} is older than installed ${installed.version}; pin a version and use --allow-downgrade for recovery`);
814
- }
815
- if (installed.version === manifest.version) {
816
- if (installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
817
- return fail('manifest-malformed', 'same release version offers a different signed artifact digest');
818
- preserveMinimum(env, keys, manifest);
819
- return {
820
- ok: true,
821
- changed: false,
822
- version: installed.version,
823
- binaryPath: installed.binaryPath,
824
- platform: installed.provenance?.platform,
825
- replaced: true,
826
- };
827
- }
828
- progress(`Downloading ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} ${manifest.version} (${platform})…`);
829
- let binary;
830
- try {
831
- const response = await (options.fetchImpl ?? globalThis.fetch)(artifact.url, {
832
- signal: fetchSignal(options, ARTIFACT_FETCH_TIMEOUT_MS),
833
- redirect: 'follow',
834
- });
835
- if (!response.ok)
836
- return fail('download-failed', `HTTP ${response.status} for ${artifact.url}`);
837
- const contentLength = Number(response.headers.get('content-length'));
838
- if (Number.isFinite(contentLength) && contentLength > exports.MAX_ARTIFACT_BYTES)
839
- return fail('too-large', 'response declares bytes above the ceiling');
840
- const chunks = [];
841
- let size = 0;
842
- if (!response.body)
843
- return fail('download-failed', 'artifact response has no body');
844
- const reader = response.body.getReader();
845
- try {
846
- while (true) {
847
- const part = await reader.read();
848
- if (part.done)
849
- break;
850
- size += part.value.byteLength;
851
- if (size > exports.MAX_ARTIFACT_BYTES) {
852
- await reader.cancel();
853
- return fail('too-large', 'download exceeds the ceiling');
854
- }
855
- chunks.push(part.value);
856
- }
857
- }
858
- finally {
859
- reader.releaseLock();
860
- }
861
- binary = Buffer.concat(chunks, size);
862
- }
863
- catch (error) {
864
- return fail('download-failed', `download failed: ${describe(error)}`);
717
+ progress(`Downloading ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} ${manifest.version} (${platform})\u2026`);
718
+ let binary;
719
+ try {
720
+ const response = await (options.fetchImpl ?? globalThis.fetch)(artifact.url, {
721
+ signal: fetchSignal(options, ARTIFACT_FETCH_TIMEOUT_MS),
722
+ redirect: "follow"
723
+ });
724
+ if (!response.ok)
725
+ return fail("download-failed", `HTTP ${response.status} for ${artifact.url}`);
726
+ const contentLength = Number(response.headers.get("content-length"));
727
+ if (Number.isFinite(contentLength) && contentLength > MAX_ARTIFACT_BYTES)
728
+ return fail("too-large", "response declares bytes above the ceiling");
729
+ const chunks = [];
730
+ let size = 0;
731
+ if (!response.body)
732
+ return fail("download-failed", "artifact response has no body");
733
+ const reader = response.body.getReader();
734
+ try {
735
+ while (true) {
736
+ const part = await reader.read();
737
+ if (part.done)
738
+ break;
739
+ size += part.value.byteLength;
740
+ if (size > MAX_ARTIFACT_BYTES) {
741
+ await reader.cancel();
742
+ return fail("too-large", "download exceeds the ceiling");
743
+ }
744
+ chunks.push(part.value);
865
745
  }
866
- const provenance = {
867
- version: manifest.version,
868
- platform: platform,
869
- sha256: artifact.sha256.toLowerCase(),
870
- url: artifact.url,
871
- sig: artifact.sig,
872
- ...(artifact.sigs ? { sigs: artifact.sigs } : {}),
873
- ...(manifest.keyId ? { keyId: manifest.keyId } : {}),
874
- };
875
- const activation = { ...options, binary, provenance, manifest };
876
- const invalid = validateArtifact(activation);
877
- return invalid ?? activateLocked(activation);
878
- }
746
+ } finally {
747
+ reader.releaseLock();
748
+ }
749
+ binary = Buffer.concat(chunks, size);
750
+ } catch (error) {
751
+ return fail("download-failed", `download failed: ${describe(error)}`);
752
+ }
753
+ const provenance = {
754
+ version: manifest.version,
755
+ platform,
756
+ sha256: artifact.sha256.toLowerCase(),
757
+ url: artifact.url,
758
+ sig: artifact.sig,
759
+ ...artifact.sigs ? { sigs: artifact.sigs } : {},
760
+ ...manifest.keyId ? { keyId: manifest.keyId } : {}
761
+ };
762
+ const activation = { ...options, binary, provenance, manifest };
763
+ const invalid = validateArtifact(activation);
764
+ return invalid ?? activateLocked(activation);
765
+ }
879
766
  }
880
- /** Rollback validates the retained immutable release and preserves its signature. */
881
767
  function rollbackFirstPartyHarness(env = process.env, options = {}) {
882
- const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
883
- const p = paths(env);
884
- const attemptedAt = Date.now();
885
- let release;
886
- try {
887
- release = proper_lockfile_1.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
888
- const result = performRollback();
889
- finishState(env, 'rollback', attemptedAt, result, result.version, keys);
890
- return result;
891
- }
892
- catch (error) {
893
- const result = fail(error.code === 'ELOCKED' ? 'lock-busy' : 'install-failed', `rollback failed: ${describe(error)}`);
894
- if (release) {
895
- try {
896
- finishState(env, 'rollback', attemptedAt, result, undefined, keys);
897
- }
898
- catch {
899
- // Preserve the rollback failure if its diagnostic journal is also unwritable.
900
- }
901
- }
902
- return result;
903
- }
904
- finally {
905
- release?.();
906
- }
907
- function performRollback() {
908
- if (!isManagedFirstPartyHarnessReleasePath(firstPartyHarnessBinaryPath(env), env))
909
- return fail('install-failed', 'active engine is outside the managed release store; install an explicitly pinned signed release before rolling back');
910
- const previous = readLink(p.previous);
911
- const current = readLink(p.current);
912
- if (!previous ||
913
- !current ||
914
- !previous.startsWith('releases/') ||
915
- node_path_1.default.resolve(p.home, previous).startsWith(p.releases + node_path_1.default.sep) === false)
916
- return fail('install-failed', 'no managed previous release to roll back to');
917
- const restored = inspectBinary(node_path_1.default.join(p.home, previous, node_path_1.default.basename(firstPartyHarnessBinaryPath(env))), keys);
918
- if (!restored.verified || !restored.version)
919
- return fail('artifact-unverified', 'previous release provenance is missing or invalid; install an explicitly pinned signed release for recovery');
920
- const floor = retainedMinimum(env, keys);
921
- if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(restored.version, floor) < 0)
922
- return fail('minimum-version', `previous release is below the retained signed minimum ${floor}`);
923
- // Preserve the outgoing target only after activation. A crash between these
924
- // operations still leaves `current` on a complete verified release.
925
- atomicLink(previous, p.current);
926
- atomicLink(current, p.previous);
927
- stableLinks(env);
928
- return {
929
- ok: true,
930
- changed: true,
931
- replaced: true,
932
- binaryPath: firstPartyHarnessBinaryPath(env),
933
- version: restored.version,
934
- platform: restored.provenance?.platform,
935
- };
768
+ const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
769
+ const p = paths(env);
770
+ const attemptedAt = Date.now();
771
+ let release;
772
+ try {
773
+ release = import_proper_lockfile.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
774
+ const result = performRollback();
775
+ finishState(env, "rollback", attemptedAt, result, result.version, keys);
776
+ return result;
777
+ } catch (error) {
778
+ const result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", `rollback failed: ${describe(error)}`);
779
+ if (release) {
780
+ try {
781
+ finishState(env, "rollback", attemptedAt, result, void 0, keys);
782
+ } catch {
783
+ }
936
784
  }
785
+ return result;
786
+ } finally {
787
+ release?.();
788
+ }
789
+ function performRollback() {
790
+ if (!isManagedFirstPartyHarnessReleasePath(firstPartyHarnessBinaryPath(env), env))
791
+ return fail("install-failed", "active engine is outside the managed release store; install an explicitly pinned signed release before rolling back");
792
+ const previous = readLink(p.previous);
793
+ const current = readLink(p.current);
794
+ if (!previous || !current || !previous.startsWith("releases/") || import_node_path.default.resolve(p.home, previous).startsWith(p.releases + import_node_path.default.sep) === false)
795
+ return fail("install-failed", "no managed previous release to roll back to");
796
+ const restored = inspectBinary(import_node_path.default.join(p.home, previous, import_node_path.default.basename(firstPartyHarnessBinaryPath(env))), keys);
797
+ if (!restored.verified || !restored.version)
798
+ return fail("artifact-unverified", "previous release provenance is missing or invalid; install an explicitly pinned signed release for recovery");
799
+ const floor = retainedMinimum(env, keys);
800
+ if (floor && (0, import_releaseVersions.compareReleaseVersions)(restored.version, floor) < 0)
801
+ return fail("minimum-version", `previous release is below the retained signed minimum ${floor}`);
802
+ atomicLink(previous, p.current);
803
+ atomicLink(current, p.previous);
804
+ stableLinks(env);
805
+ return {
806
+ ok: true,
807
+ changed: true,
808
+ replaced: true,
809
+ binaryPath: firstPartyHarnessBinaryPath(env),
810
+ version: restored.version,
811
+ platform: restored.provenance?.platform
812
+ };
813
+ }
937
814
  }
938
815
  function installedFirstPartyHarnessSize(env = process.env) {
939
- try {
940
- return (0, node_fs_1.statSync)(firstPartyHarnessBinaryPath(env)).size;
941
- }
942
- catch {
943
- return null;
944
- }
945
- }
816
+ try {
817
+ return (0, import_node_fs.statSync)(firstPartyHarnessBinaryPath(env)).size;
818
+ } catch {
819
+ return null;
820
+ }
821
+ }
822
+ // Annotate the CommonJS export names for ESM import in node:
823
+ 0 && (module.exports = {
824
+ FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS,
825
+ MAX_ARTIFACT_BYTES,
826
+ PREVIOUS_SUFFIX,
827
+ PROVENANCE_SUFFIX,
828
+ activateVerifiedFirstPartyHarnessArtifact,
829
+ checkFirstPartyHarnessUpdate,
830
+ fetchVerifiedManifest,
831
+ firstPartyHarnessBinaryPath,
832
+ firstPartyHarnessFeedBase,
833
+ firstPartyHarnessFeedCandidates,
834
+ firstPartyHarnessInstallDir,
835
+ firstPartyHarnessManifestFile,
836
+ firstPartyHarnessPlatformKey,
837
+ getVerifiedInstalledFirstPartyHarness,
838
+ installFirstPartyHarness,
839
+ installedFirstPartyHarnessSize,
840
+ isManagedFirstPartyHarnessReleasePath,
841
+ readFirstPartyHarnessUpdateState,
842
+ rollbackFirstPartyHarness
843
+ });