@skrr-ai/cli 0.1.115 → 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 (1590) 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 +1 -0
  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/context.d.ts +2 -2
  431. package/dist/commands/context.js +18 -4
  432. package/dist/commands/convos/archive.d.ts +2 -2
  433. package/dist/commands/convos/delete.d.ts +2 -2
  434. package/dist/commands/convos/duplicate.d.ts +3 -3
  435. package/dist/commands/convos/fork.d.ts +6 -6
  436. package/dist/commands/convos/handover.d.ts +6 -6
  437. package/dist/commands/convos/import.d.ts +2 -2
  438. package/dist/commands/convos/import.js +2 -35
  439. package/dist/commands/convos/list.d.ts +8 -8
  440. package/dist/commands/convos/messages.d.ts +5 -5
  441. package/dist/commands/convos/recovery.d.ts +14 -0
  442. package/dist/commands/convos/recovery.js +62 -0
  443. package/dist/commands/convos/search.d.ts +4 -4
  444. package/dist/commands/convos/show.d.ts +2 -2
  445. package/dist/commands/convos/unarchive.d.ts +2 -2
  446. package/dist/commands/convos/update.d.ts +4 -4
  447. package/dist/commands/create-token.d.ts +2 -2
  448. package/dist/commands/daemon/logs.d.ts +6 -6
  449. package/dist/commands/daemon/usage.d.ts +3 -3
  450. package/dist/commands/dm/list.d.ts +1 -1
  451. package/dist/commands/dm/messages.d.ts +4 -4
  452. package/dist/commands/dm/show.d.ts +3 -3
  453. package/dist/commands/dm/thread/broadcast.d.ts +7 -7
  454. package/dist/commands/dm/thread/follow.d.ts +6 -6
  455. package/dist/commands/dm/thread/messages.d.ts +7 -7
  456. package/dist/commands/dm/thread/mute.d.ts +6 -6
  457. package/dist/commands/dm/thread/share.d.ts +5 -5
  458. package/dist/commands/dm/thread/show.d.ts +5 -5
  459. package/dist/commands/dm/threads.d.ts +6 -6
  460. package/dist/commands/dm/work.d.ts +10 -10
  461. package/dist/commands/doctor.d.ts +1 -1
  462. package/dist/commands/earnings/attributions.d.ts +1 -1
  463. package/dist/commands/earnings/index.d.ts +1 -1
  464. package/dist/commands/earnings/payouts.d.ts +3 -3
  465. package/dist/commands/earnings/statements.d.ts +4 -4
  466. package/dist/commands/engagement/annotate.d.ts +5 -5
  467. package/dist/commands/engagement/continue.d.ts +3 -3
  468. package/dist/commands/engagement/react.d.ts +4 -4
  469. package/dist/commands/engagement/reactions.d.ts +3 -3
  470. package/dist/commands/engagement/share.d.ts +6 -6
  471. package/dist/commands/enterprise/budgets/create.d.ts +2 -2
  472. package/dist/commands/enterprise/budgets/evaluate.d.ts +2 -2
  473. package/dist/commands/enterprise/budgets/publish.d.ts +3 -3
  474. package/dist/commands/enterprise/contracts/activate.d.ts +3 -3
  475. package/dist/commands/enterprise/contracts/create.d.ts +2 -2
  476. package/dist/commands/enterprise/contracts/issue.d.ts +3 -3
  477. package/dist/commands/enterprise/domains/begin.d.ts +3 -3
  478. package/dist/commands/enterprise/domains/verify.d.ts +3 -3
  479. package/dist/commands/enterprise/external-config/activate.d.ts +2 -2
  480. package/dist/commands/enterprise/external-config/set.d.ts +6 -6
  481. package/dist/commands/enterprise/external-config/show.d.ts +2 -2
  482. package/dist/commands/enterprise/external-config/suspend.d.ts +3 -3
  483. package/dist/commands/enterprise/finance/close-snapshot.d.ts +2 -2
  484. package/dist/commands/enterprise/finance/record-document.d.ts +2 -2
  485. package/dist/commands/enterprise/profile.d.ts +3 -3
  486. package/dist/commands/feeds/create.d.ts +7 -7
  487. package/dist/commands/feeds/delete.d.ts +2 -2
  488. package/dist/commands/feeds/list.d.ts +4 -4
  489. package/dist/commands/feeds/update.d.ts +6 -6
  490. package/dist/commands/followups/act.d.ts +10 -10
  491. package/dist/commands/followups/cancel.d.ts +3 -3
  492. package/dist/commands/followups/checkin.d.ts +10 -10
  493. package/dist/commands/followups/list.d.ts +7 -7
  494. package/dist/commands/followups/observability.d.ts +3 -3
  495. package/dist/commands/followups/plans/accepted.d.ts +15 -0
  496. package/dist/commands/followups/plans/accepted.js +76 -0
  497. package/dist/commands/followups/plans/cancel-batch.d.ts +18 -0
  498. package/dist/commands/followups/plans/cancel-batch.js +107 -0
  499. package/dist/commands/followups/plans/cancel.d.ts +4 -4
  500. package/dist/commands/followups/plans/capacity.d.ts +2 -2
  501. package/dist/commands/followups/plans/create.d.ts +3 -3
  502. package/dist/commands/followups/plans/list.d.ts +6 -6
  503. package/dist/commands/followups/plans/observability.d.ts +4 -4
  504. package/dist/commands/followups/plans/preferences/set.d.ts +10 -0
  505. package/dist/commands/followups/plans/preferences/set.js +50 -0
  506. package/dist/commands/followups/plans/preferences.d.ts +9 -0
  507. package/dist/commands/followups/plans/preferences.js +29 -0
  508. package/dist/commands/followups/plans/revise.d.ts +4 -4
  509. package/dist/commands/followups/plans/show.d.ts +2 -2
  510. package/dist/commands/followups/plans/show.js +10 -3
  511. package/dist/commands/followups/remind.d.ts +11 -11
  512. package/dist/commands/followups/reschedule.d.ts +4 -4
  513. package/dist/commands/followups/resolve.d.ts +4 -4
  514. package/dist/commands/followups/show.d.ts +2 -2
  515. package/dist/commands/followups/watch.d.ts +28 -28
  516. package/dist/commands/generate-recovery-code.d.ts +4 -4
  517. package/dist/commands/github/allow-tools.d.ts +10 -10
  518. package/dist/commands/github/app/install.d.ts +7 -7
  519. package/dist/commands/github/app/status.d.ts +6 -6
  520. package/dist/commands/github/connect.d.ts +10 -10
  521. package/dist/commands/github/connections.d.ts +8 -8
  522. package/dist/commands/github/disconnect.d.ts +8 -8
  523. package/dist/commands/github/finalize.d.ts +10 -10
  524. package/dist/commands/github/reconnect.d.ts +10 -10
  525. package/dist/commands/github/run.d.ts +12 -12
  526. package/dist/commands/github/tools.d.ts +11 -11
  527. package/dist/commands/goals/archive.d.ts +3 -3
  528. package/dist/commands/goals/briefing/disable.d.ts +1 -1
  529. package/dist/commands/goals/briefing/enable.d.ts +2 -2
  530. package/dist/commands/goals/briefing/preview.d.ts +1 -1
  531. package/dist/commands/goals/create.d.ts +13 -13
  532. package/dist/commands/goals/delete.d.ts +2 -2
  533. package/dist/commands/goals/descendants.d.ts +3 -3
  534. package/dist/commands/goals/key-results/create.d.ts +9 -9
  535. package/dist/commands/goals/key-results/delete.d.ts +3 -3
  536. package/dist/commands/goals/key-results/list.d.ts +2 -2
  537. package/dist/commands/goals/key-results/show.d.ts +3 -3
  538. package/dist/commands/goals/key-results/update.d.ts +11 -11
  539. package/dist/commands/goals/labels/add.d.ts +3 -3
  540. package/dist/commands/goals/labels/list.d.ts +2 -2
  541. package/dist/commands/goals/labels/remove.d.ts +3 -3
  542. package/dist/commands/goals/list.d.ts +9 -9
  543. package/dist/commands/goals/open.d.ts +4 -4
  544. package/dist/commands/goals/plan-now.d.ts +3 -3
  545. package/dist/commands/goals/planner-config.d.ts +7 -7
  546. package/dist/commands/goals/revisions.d.ts +2 -2
  547. package/dist/commands/goals/show.d.ts +2 -2
  548. package/dist/commands/goals/tasks.d.ts +5 -5
  549. package/dist/commands/goals/update.d.ts +13 -13
  550. package/dist/commands/google-chat/list-channels.d.ts +3 -3
  551. package/dist/commands/google-chat/list-users.d.ts +4 -4
  552. package/dist/commands/google-chat/read-channel.d.ts +5 -5
  553. package/dist/commands/google-chat/read-thread.d.ts +6 -6
  554. package/dist/commands/google-chat/run.d.ts +5 -5
  555. package/dist/commands/google-chat/search.d.ts +5 -5
  556. package/dist/commands/google-chat/send-as-agent.d.ts +6 -6
  557. package/dist/commands/google-chat/tools.d.ts +2 -2
  558. package/dist/commands/grants/create.d.ts +11 -11
  559. package/dist/commands/grants/delete.d.ts +2 -2
  560. package/dist/commands/grants/list.d.ts +4 -4
  561. package/dist/commands/grants/revoke.d.ts +3 -3
  562. package/dist/commands/grants/rotate.d.ts +4 -4
  563. package/dist/commands/grants/update.d.ts +3 -3
  564. package/dist/commands/harnesses/alias.d.ts +4 -4
  565. package/dist/commands/harnesses/forget.d.ts +3 -3
  566. package/dist/commands/harnesses/grants/add.d.ts +10 -10
  567. package/dist/commands/harnesses/grants/list.d.ts +3 -3
  568. package/dist/commands/harnesses/grants/revoke.d.ts +3 -3
  569. package/dist/commands/harnesses/install-token.d.ts +2 -2
  570. package/dist/commands/harnesses/install.d.ts +4 -4
  571. package/dist/commands/harnesses/installers.d.ts +2 -2
  572. package/dist/commands/harnesses/leases/action.d.ts +4 -4
  573. package/dist/commands/harnesses/leases/billing.d.ts +4 -4
  574. package/dist/commands/harnesses/leases/list.d.ts +4 -4
  575. package/dist/commands/harnesses/leases/release.d.ts +3 -3
  576. package/dist/commands/harnesses/leases/show.d.ts +2 -2
  577. package/dist/commands/harnesses/list.d.ts +9 -9
  578. package/dist/commands/harnesses/models.d.ts +2 -2
  579. package/dist/commands/harnesses/ping.d.ts +3 -3
  580. package/dist/commands/harnesses/products.d.ts +1 -1
  581. package/dist/commands/harnesses/prune.d.ts +4 -4
  582. package/dist/commands/harnesses/quota.d.ts +7 -7
  583. package/dist/commands/harnesses/set-default.d.ts +3 -3
  584. package/dist/commands/harnesses/show.d.ts +2 -2
  585. package/dist/commands/harnesses/update.d.ts +11 -11
  586. package/dist/commands/harnesses/usage.d.ts +2 -2
  587. package/dist/commands/inbox/index.d.ts +7 -7
  588. package/dist/commands/ingress/create.d.ts +8 -8
  589. package/dist/commands/ingress/delete.d.ts +2 -2
  590. package/dist/commands/ingress/list.d.ts +1 -1
  591. package/dist/commands/ingress/rotate.d.ts +2 -2
  592. package/dist/commands/initiatives/decide.d.ts +8 -8
  593. package/dist/commands/initiatives/list.d.ts +6 -6
  594. package/dist/commands/instruction-blocks/create.d.ts +11 -11
  595. package/dist/commands/instruction-blocks/delete.d.ts +3 -3
  596. package/dist/commands/instruction-blocks/list.d.ts +4 -4
  597. package/dist/commands/instruction-blocks/show.d.ts +2 -2
  598. package/dist/commands/instruction-blocks/update.d.ts +12 -12
  599. package/dist/commands/instructions/activate.d.ts +3 -3
  600. package/dist/commands/instructions/archive-version.d.ts +3 -3
  601. package/dist/commands/instructions/create.d.ts +6 -6
  602. package/dist/commands/instructions/delete.d.ts +3 -3
  603. package/dist/commands/instructions/diff.d.ts +4 -4
  604. package/dist/commands/instructions/guide.d.ts +8 -8
  605. package/dist/commands/instructions/guide.js +8 -1
  606. package/dist/commands/instructions/install.d.ts +10 -10
  607. package/dist/commands/instructions/list.d.ts +3 -3
  608. package/dist/commands/instructions/purge-target.d.ts +4 -4
  609. package/dist/commands/instructions/remove.d.ts +2 -2
  610. package/dist/commands/instructions/restore-target.d.ts +2 -2
  611. package/dist/commands/instructions/restore.d.ts +2 -2
  612. package/dist/commands/instructions/setup.d.ts +6 -6
  613. package/dist/commands/instructions/show.d.ts +3 -3
  614. package/dist/commands/instructions/status.d.ts +2 -2
  615. package/dist/commands/instructions/update-target.d.ts +7 -7
  616. package/dist/commands/instructions/update.d.ts +8 -8
  617. package/dist/commands/integrations/connections/connect.d.ts +11 -11
  618. package/dist/commands/integrations/connections/disconnect.d.ts +9 -9
  619. package/dist/commands/integrations/connections/finalize.d.ts +10 -10
  620. package/dist/commands/integrations/connections/list.d.ts +8 -8
  621. package/dist/commands/integrations/connections/reconnect.d.ts +11 -11
  622. package/dist/commands/integrations/execute.d.ts +12 -12
  623. package/dist/commands/integrations/search.d.ts +10 -10
  624. package/dist/commands/integrations/toolkits.d.ts +7 -7
  625. package/dist/commands/integrations/tools/allow.d.ts +10 -10
  626. package/dist/commands/integrations/tools/list.d.ts +9 -9
  627. package/dist/commands/labels/archive.d.ts +2 -2
  628. package/dist/commands/labels/create.d.ts +10 -10
  629. package/dist/commands/labels/delete.d.ts +3 -3
  630. package/dist/commands/labels/list.d.ts +6 -6
  631. package/dist/commands/labels/palette.d.ts +1 -1
  632. package/dist/commands/labels/reorder.d.ts +4 -4
  633. package/dist/commands/labels/restore.d.ts +3 -3
  634. package/dist/commands/labels/update.d.ts +11 -11
  635. package/dist/commands/lark/list-channels.d.ts +3 -3
  636. package/dist/commands/lark/list-users.d.ts +4 -4
  637. package/dist/commands/lark/read-channel.d.ts +5 -5
  638. package/dist/commands/lark/read-thread.d.ts +6 -6
  639. package/dist/commands/lark/run.d.ts +5 -5
  640. package/dist/commands/lark/search.d.ts +5 -5
  641. package/dist/commands/lark/send-as-agent.d.ts +6 -6
  642. package/dist/commands/lark/tools.d.ts +2 -2
  643. package/dist/commands/learning/adapters.d.ts +6 -6
  644. package/dist/commands/learning/delete.d.ts +2 -2
  645. package/dist/commands/learning/export.d.ts +5 -5
  646. package/dist/commands/learning/reset.d.ts +2 -2
  647. package/dist/commands/learning/set.d.ts +3 -3
  648. package/dist/commands/learning/status.d.ts +1 -1
  649. package/dist/commands/list-daemons.d.ts +3 -3
  650. package/dist/commands/list-tokens.d.ts +2 -2
  651. package/dist/commands/login.d.ts +7 -7
  652. package/dist/commands/logout.d.ts +2 -2
  653. package/dist/commands/machines/computer-adoption.d.ts +1 -1
  654. package/dist/commands/machines/dedicated/agent-browser.d.ts +4 -4
  655. package/dist/commands/machines/dedicated/archive.d.ts +4 -4
  656. package/dist/commands/machines/dedicated/attach.d.ts +5 -5
  657. package/dist/commands/machines/dedicated/audit.d.ts +8 -8
  658. package/dist/commands/machines/dedicated/catalog.d.ts +1 -1
  659. package/dist/commands/machines/dedicated/computer.d.ts +4 -4
  660. package/dist/commands/machines/dedicated/cp.d.ts +6 -6
  661. package/dist/commands/machines/dedicated/create.d.ts +17 -17
  662. package/dist/commands/machines/dedicated/current.d.ts +2 -2
  663. package/dist/commands/machines/dedicated/destroy.d.ts +8 -8
  664. package/dist/commands/machines/dedicated/exec.d.ts +8 -8
  665. package/dist/commands/machines/dedicated/git-status.d.ts +3 -3
  666. package/dist/commands/machines/dedicated/grow.d.ts +7 -7
  667. package/dist/commands/machines/dedicated/health-check.d.ts +2 -2
  668. package/dist/commands/machines/dedicated/incident-close.d.ts +3 -3
  669. package/dist/commands/machines/dedicated/list.d.ts +3 -3
  670. package/dist/commands/machines/dedicated/logs.d.ts +5 -5
  671. package/dist/commands/machines/dedicated/ls.d.ts +6 -6
  672. package/dist/commands/machines/dedicated/mkdir.d.ts +3 -3
  673. package/dist/commands/machines/dedicated/mv.d.ts +5 -5
  674. package/dist/commands/machines/dedicated/power/explain.d.ts +2 -2
  675. package/dist/commands/machines/dedicated/power/keep-awake.d.ts +5 -5
  676. package/dist/commands/machines/dedicated/power/set.d.ts +6 -6
  677. package/dist/commands/machines/dedicated/power/show.d.ts +2 -2
  678. package/dist/commands/machines/dedicated/power/waiting.d.ts +2 -2
  679. package/dist/commands/machines/dedicated/price-book.d.ts +1 -1
  680. package/dist/commands/machines/dedicated/restart.d.ts +5 -5
  681. package/dist/commands/machines/dedicated/restore.d.ts +9 -9
  682. package/dist/commands/machines/dedicated/rm.d.ts +5 -5
  683. package/dist/commands/machines/dedicated/search.d.ts +9 -9
  684. package/dist/commands/machines/dedicated/service/apply.d.ts +3 -3
  685. package/dist/commands/machines/dedicated/service/approve.d.ts +4 -4
  686. package/dist/commands/machines/dedicated/service/create.d.ts +16 -16
  687. package/dist/commands/machines/dedicated/service/edit.d.ts +4 -4
  688. package/dist/commands/machines/dedicated/service/exec.d.ts +5 -5
  689. package/dist/commands/machines/dedicated/service/export.d.ts +5 -5
  690. package/dist/commands/machines/dedicated/service/logs.d.ts +5 -5
  691. package/dist/commands/machines/dedicated/service/ls.d.ts +2 -2
  692. package/dist/commands/machines/dedicated/service/restart.d.ts +3 -3
  693. package/dist/commands/machines/dedicated/service/rm.d.ts +3 -3
  694. package/dist/commands/machines/dedicated/service/secret/rm.d.ts +4 -4
  695. package/dist/commands/machines/dedicated/service/secret/set.d.ts +5 -5
  696. package/dist/commands/machines/dedicated/service/start.d.ts +3 -3
  697. package/dist/commands/machines/dedicated/service/status.d.ts +3 -3
  698. package/dist/commands/machines/dedicated/service/stop.d.ts +3 -3
  699. package/dist/commands/machines/dedicated/service/top.d.ts +3 -3
  700. package/dist/commands/machines/dedicated/show.d.ts +2 -2
  701. package/dist/commands/machines/dedicated/sign-in-status.d.ts +2 -2
  702. package/dist/commands/machines/dedicated/sign-in.d.ts +2 -2
  703. package/dist/commands/machines/dedicated/snapshot.d.ts +5 -5
  704. package/dist/commands/machines/dedicated/spending-limit.d.ts +4 -4
  705. package/dist/commands/machines/dedicated/ssh-config.d.ts +4 -4
  706. package/dist/commands/machines/dedicated/ssh-proxy.d.ts +1 -1
  707. package/dist/commands/machines/dedicated/ssh.d.ts +2 -2
  708. package/dist/commands/machines/dedicated/start.d.ts +5 -5
  709. package/dist/commands/machines/dedicated/stat.d.ts +4 -4
  710. package/dist/commands/machines/dedicated/stop.d.ts +5 -5
  711. package/dist/commands/machines/dedicated/terminal/kill.d.ts +3 -3
  712. package/dist/commands/machines/dedicated/terminal/ls.d.ts +2 -2
  713. package/dist/commands/machines/dedicated/terminal/rename.d.ts +4 -4
  714. package/dist/commands/machines/dedicated/terminal.d.ts +6 -6
  715. package/dist/commands/machines/dedicated/update-image.d.ts +5 -5
  716. package/dist/commands/machines/disconnect.d.ts +3 -3
  717. package/dist/commands/machines/hosted/connect.d.ts +4 -4
  718. package/dist/commands/machines/hosted/destroy.d.ts +3 -3
  719. package/dist/commands/machines/hosted/exec.d.ts +7 -7
  720. package/dist/commands/machines/hosted/list.d.ts +4 -4
  721. package/dist/commands/machines/hosted/pause.d.ts +3 -3
  722. package/dist/commands/machines/hosted/pull.d.ts +9 -9
  723. package/dist/commands/machines/hosted/resume.d.ts +6 -6
  724. package/dist/commands/machines/hosted/start.d.ts +18 -18
  725. package/dist/commands/machines/hosted/status.d.ts +6 -6
  726. package/dist/commands/machines/list.d.ts +2 -2
  727. package/dist/commands/machines/services/declare.d.ts +6 -6
  728. package/dist/commands/machines/services/ls.d.ts +2 -2
  729. package/dist/commands/machines/services/withdraw.d.ts +3 -3
  730. package/dist/commands/machines/share.d.ts +4 -4
  731. package/dist/commands/machines/shared.d.ts +1 -1
  732. package/dist/commands/machines/shares.d.ts +2 -2
  733. package/dist/commands/machines/show.d.ts +3 -3
  734. package/dist/commands/machines/unshare.d.ts +3 -3
  735. package/dist/commands/machines/update.d.ts +6 -6
  736. package/dist/commands/managed-execution/show.d.ts +1 -1
  737. package/dist/commands/measures/confirm.d.ts +4 -4
  738. package/dist/commands/measures/create.d.ts +10 -10
  739. package/dist/commands/measures/list.d.ts +4 -4
  740. package/dist/commands/measures/record.d.ts +7 -7
  741. package/dist/commands/measures/show.d.ts +2 -2
  742. package/dist/commands/measures/tasks.d.ts +7 -7
  743. package/dist/commands/memory/approvals/issue.d.ts +11 -11
  744. package/dist/commands/memory/commit.d.ts +5 -5
  745. package/dist/commands/memory/context.d.ts +8 -8
  746. package/dist/commands/memory/daily-log.d.ts +3 -3
  747. package/dist/commands/memory/delete.d.ts +5 -5
  748. package/dist/commands/memory/governance/index.d.ts +2 -2
  749. package/dist/commands/memory/governance/set.d.ts +7 -7
  750. package/dist/commands/memory/list.d.ts +4 -4
  751. package/dist/commands/memory/maintain.d.ts +4 -4
  752. package/dist/commands/memory/mounts/resolve.d.ts +3 -3
  753. package/dist/commands/memory/observe.d.ts +9 -9
  754. package/dist/commands/memory/preferences.d.ts +3 -3
  755. package/dist/commands/memory/proposals/commit.d.ts +9 -9
  756. package/dist/commands/memory/proposals/create.d.ts +11 -11
  757. package/dist/commands/memory/proposals/list.d.ts +6 -6
  758. package/dist/commands/memory/proposals/promote.d.ts +15 -15
  759. package/dist/commands/memory/proposals/reject.d.ts +7 -7
  760. package/dist/commands/memory/provenance.d.ts +3 -3
  761. package/dist/commands/memory/read.d.ts +5 -5
  762. package/dist/commands/memory/rebuild-index.d.ts +11 -11
  763. package/dist/commands/memory/rebuild.d.ts +3 -3
  764. package/dist/commands/memory/save.d.ts +7 -7
  765. package/dist/commands/memory/search.d.ts +10 -10
  766. package/dist/commands/memory/show.d.ts +5 -5
  767. package/dist/commands/memory/stores/archive.d.ts +7 -7
  768. package/dist/commands/memory/stores/create.d.ts +5 -5
  769. package/dist/commands/memory/stores/delete.d.ts +8 -8
  770. package/dist/commands/memory/stores/list.d.ts +3 -3
  771. package/dist/commands/memory/stores/show.d.ts +5 -5
  772. package/dist/commands/memory/stores/update.d.ts +8 -8
  773. package/dist/commands/memory/sync/delete.d.ts +4 -4
  774. package/dist/commands/memory/sync/pull.d.ts +12 -12
  775. package/dist/commands/memory/sync/push.d.ts +11 -11
  776. package/dist/commands/memory/sync/resolve.d.ts +14 -14
  777. package/dist/commands/memory/sync/status.d.ts +2 -2
  778. package/dist/commands/memory/topics/archive.d.ts +11 -11
  779. package/dist/commands/memory/topics/create.d.ts +16 -16
  780. package/dist/commands/memory/topics/delete.d.ts +13 -13
  781. package/dist/commands/memory/topics/forget.d.ts +13 -13
  782. package/dist/commands/memory/topics/list.d.ts +6 -6
  783. package/dist/commands/memory/topics/move.d.ts +13 -13
  784. package/dist/commands/memory/topics/show.d.ts +8 -8
  785. package/dist/commands/memory/topics/update.d.ts +14 -14
  786. package/dist/commands/memory/tree.d.ts +6 -6
  787. package/dist/commands/memory/update.d.ts +7 -7
  788. package/dist/commands/memory/versions/list.d.ts +7 -7
  789. package/dist/commands/memory/versions/redact.d.ts +12 -12
  790. package/dist/commands/memory/versions/restore.d.ts +11 -11
  791. package/dist/commands/memory/versions/show.d.ts +6 -6
  792. package/dist/commands/messages/edit-artifact.d.ts +6 -6
  793. package/dist/commands/messages/feedback.d.ts +7 -7
  794. package/dist/commands/messages/list.d.ts +5 -5
  795. package/dist/commands/messages/show.d.ts +3 -3
  796. package/dist/commands/messages/update-content.d.ts +5 -5
  797. package/dist/commands/messages/update.d.ts +5 -5
  798. package/dist/commands/native/allow-all.d.ts +2 -2
  799. package/dist/commands/native/allow.d.ts +3 -3
  800. package/dist/commands/native/deny.d.ts +3 -3
  801. package/dist/commands/native/disable.d.ts +2 -2
  802. package/dist/commands/native/enable.d.ts +3 -3
  803. package/dist/commands/native/list-apps.d.ts +2 -2
  804. package/dist/commands/native/restrict-to.d.ts +3 -3
  805. package/dist/commands/native/status.d.ts +2 -2
  806. package/dist/commands/native.d.ts +1 -1
  807. package/dist/commands/northstars/create.d.ts +12 -12
  808. package/dist/commands/northstars/delete.d.ts +3 -3
  809. package/dist/commands/northstars/governance/configure.d.ts +20 -20
  810. package/dist/commands/northstars/governance/show.d.ts +2 -2
  811. package/dist/commands/northstars/intents/decide.d.ts +6 -6
  812. package/dist/commands/northstars/intents/list.d.ts +4 -4
  813. package/dist/commands/northstars/link.d.ts +4 -4
  814. package/dist/commands/northstars/list.d.ts +3 -3
  815. package/dist/commands/northstars/recommendations/apply.d.ts +3 -3
  816. package/dist/commands/northstars/recommendations/dismiss.d.ts +3 -3
  817. package/dist/commands/northstars/recommendations/list.d.ts +3 -3
  818. package/dist/commands/northstars/review-now.d.ts +2 -2
  819. package/dist/commands/northstars/reviews.d.ts +5 -5
  820. package/dist/commands/northstars/show.d.ts +2 -2
  821. package/dist/commands/northstars/unlink.d.ts +3 -3
  822. package/dist/commands/northstars/update.d.ts +15 -15
  823. package/dist/commands/open.d.ts +3 -3
  824. package/dist/commands/outbox/drop.d.ts +2 -2
  825. package/dist/commands/outbox/list.d.ts +1 -1
  826. package/dist/commands/outbox/retry.d.ts +3 -3
  827. package/dist/commands/payments/wallet.d.ts +2 -2
  828. package/dist/commands/profiles/list.d.ts +1 -1
  829. package/dist/commands/projects/activity.d.ts +5 -5
  830. package/dist/commands/projects/archive.d.ts +5 -5
  831. package/dist/commands/projects/create.d.ts +9 -9
  832. package/dist/commands/projects/delete.d.ts +5 -5
  833. package/dist/commands/projects/docs/attach.d.ts +5 -5
  834. package/dist/commands/projects/docs/detach.d.ts +5 -5
  835. package/dist/commands/projects/docs/list.d.ts +3 -3
  836. package/dist/commands/projects/goals.d.ts +6 -6
  837. package/dist/commands/projects/list.d.ts +9 -9
  838. package/dist/commands/projects/members.d.ts +7 -7
  839. package/dist/commands/projects/open.d.ts +5 -5
  840. package/dist/commands/projects/overview.d.ts +5 -5
  841. package/dist/commands/projects/promote.d.ts +4 -4
  842. package/dist/commands/projects/reorder.d.ts +4 -4
  843. package/dist/commands/projects/revisions.d.ts +5 -5
  844. package/dist/commands/projects/show.d.ts +3 -3
  845. package/dist/commands/projects/summary.d.ts +3 -3
  846. package/dist/commands/projects/tasks.d.ts +6 -6
  847. package/dist/commands/projects/update.d.ts +8 -8
  848. package/dist/commands/projects/updates/add.d.ts +10 -10
  849. package/dist/commands/projects/updates/archive.d.ts +4 -4
  850. package/dist/commands/projects/updates/cadence.d.ts +10 -10
  851. package/dist/commands/projects/updates/draft.d.ts +4 -4
  852. package/dist/commands/projects/updates/edit.d.ts +10 -10
  853. package/dist/commands/projects/updates/list.d.ts +5 -5
  854. package/dist/commands/projects/updates/post.d.ts +7 -7
  855. package/dist/commands/projects/updates/show.d.ts +4 -4
  856. package/dist/commands/projects/upsert.d.ts +9 -9
  857. package/dist/commands/proposals/discard.d.ts +2 -2
  858. package/dist/commands/proposals/keep.d.ts +2 -2
  859. package/dist/commands/proposals/list.d.ts +8 -8
  860. package/dist/commands/proposals/show.d.ts +3 -3
  861. package/dist/commands/proposals/snooze.d.ts +2 -2
  862. package/dist/commands/requests/cancel.d.ts +2 -2
  863. package/dist/commands/requests/comments/add.d.ts +5 -5
  864. package/dist/commands/requests/comments/delete.d.ts +3 -3
  865. package/dist/commands/requests/comments/list.d.ts +3 -3
  866. package/dist/commands/requests/create.d.ts +9 -9
  867. package/dist/commands/requests/list.d.ts +3 -3
  868. package/dist/commands/requests/pending.d.ts +1 -1
  869. package/dist/commands/requests/resolve.d.ts +6 -6
  870. package/dist/commands/requests/show.d.ts +2 -2
  871. package/dist/commands/revoke-daemon.d.ts +3 -3
  872. package/dist/commands/revoke-token.d.ts +2 -2
  873. package/dist/commands/search/agents.d.ts +4 -4
  874. package/dist/commands/search/all.d.ts +3 -3
  875. package/dist/commands/search/skills.d.ts +5 -5
  876. package/dist/commands/search/spaces.d.ts +5 -5
  877. package/dist/commands/search/tasks.d.ts +6 -6
  878. package/dist/commands/search/teams.d.ts +3 -3
  879. package/dist/commands/security/overview.d.ts +2 -2
  880. package/dist/commands/service/logs.d.ts +3 -3
  881. package/dist/commands/service/ls.d.ts +1 -1
  882. package/dist/commands/service/propose.d.ts +12 -12
  883. package/dist/commands/service/status.d.ts +2 -2
  884. package/dist/commands/set-capabilities.d.ts +3 -3
  885. package/dist/commands/shares/create.d.ts +3 -3
  886. package/dist/commands/shares/delete.d.ts +2 -2
  887. package/dist/commands/shares/get.d.ts +2 -2
  888. package/dist/commands/shares/link-for.d.ts +2 -2
  889. package/dist/commands/shares/list.d.ts +7 -7
  890. package/dist/commands/shares/update.d.ts +2 -2
  891. package/dist/commands/shortcuts/create.d.ts +11 -11
  892. package/dist/commands/shortcuts/create.js +1 -34
  893. package/dist/commands/shortcuts/delete.d.ts +2 -2
  894. package/dist/commands/shortcuts/list.d.ts +2 -2
  895. package/dist/commands/shortcuts/reorder.d.ts +3 -3
  896. package/dist/commands/shortcuts/show.d.ts +2 -2
  897. package/dist/commands/shortcuts/trigger.d.ts +2 -2
  898. package/dist/commands/shortcuts/update.d.ts +11 -11
  899. package/dist/commands/shortcuts/update.js +1 -34
  900. package/dist/commands/signals/monitors/create.d.ts +2 -2
  901. package/dist/commands/signals/monitors/list.d.ts +1 -1
  902. package/dist/commands/signals/monitors/pause.d.ts +2 -2
  903. package/dist/commands/signals/monitors/resume.d.ts +2 -2
  904. package/dist/commands/signals/monitors/revise.d.ts +3 -3
  905. package/dist/commands/signals/monitors/show.d.ts +2 -2
  906. package/dist/commands/signals/monitors/test.d.ts +3 -3
  907. package/dist/commands/signals/monitors/transitions.d.ts +2 -2
  908. package/dist/commands/signals/monitors/validate.d.ts +2 -2
  909. package/dist/commands/signals/schemas/list.d.ts +1 -1
  910. package/dist/commands/signals/schemas/show.d.ts +2 -2
  911. package/dist/commands/signals/sources/list.d.ts +1 -1
  912. package/dist/commands/signals/sources/receipts.d.ts +2 -2
  913. package/dist/commands/signals/sources/show.d.ts +2 -2
  914. package/dist/commands/skills/browse.d.ts +4 -4
  915. package/dist/commands/skills/categories.d.ts +3 -3
  916. package/dist/commands/skills/details.d.ts +2 -2
  917. package/dist/commands/skills/duplicate.d.ts +4 -4
  918. package/dist/commands/skills/featured.d.ts +2 -2
  919. package/dist/commands/skills/import-as-actions.d.ts +9 -9
  920. package/dist/commands/skills/install.d.ts +4 -4
  921. package/dist/commands/skills/invocable.d.ts +3 -3
  922. package/dist/commands/skills/library.d.ts +4 -4
  923. package/dist/commands/skills/local.d.ts +5 -5
  924. package/dist/commands/skills/search.d.ts +5 -5
  925. package/dist/commands/skills/visibility.d.ts +5 -5
  926. package/dist/commands/slack/list-channels.d.ts +7 -7
  927. package/dist/commands/slack/list-usergroups.d.ts +4 -4
  928. package/dist/commands/slack/list-users.d.ts +7 -7
  929. package/dist/commands/slack/read-channel.d.ts +8 -8
  930. package/dist/commands/slack/read-thread.d.ts +7 -7
  931. package/dist/commands/slack/run.d.ts +5 -5
  932. package/dist/commands/slack/search.d.ts +8 -8
  933. package/dist/commands/slack/send-as-agent.d.ts +8 -8
  934. package/dist/commands/slack/tools.d.ts +2 -2
  935. package/dist/commands/space-directory-views/create.d.ts +6 -6
  936. package/dist/commands/space-directory-views/delete.d.ts +4 -4
  937. package/dist/commands/space-directory-views/list.d.ts +1 -1
  938. package/dist/commands/space-directory-views/show.d.ts +2 -2
  939. package/dist/commands/space-directory-views/update.d.ts +7 -7
  940. package/dist/commands/spaces/actions/add.d.ts +9 -9
  941. package/dist/commands/spaces/actions/available.d.ts +2 -2
  942. package/dist/commands/spaces/actions/delete.d.ts +4 -4
  943. package/dist/commands/spaces/actions/list.d.ts +3 -3
  944. package/dist/commands/spaces/actions/replace.d.ts +5 -5
  945. package/dist/commands/spaces/actions/run.d.ts +3 -3
  946. package/dist/commands/spaces/actions/update.d.ts +9 -9
  947. package/dist/commands/spaces/archive.d.ts +2 -2
  948. package/dist/commands/spaces/auto-executor/preview.d.ts +2 -2
  949. package/dist/commands/spaces/auto-executor/run.d.ts +2 -2
  950. package/dist/commands/spaces/auto-executor/runs.d.ts +3 -3
  951. package/dist/commands/spaces/auto-executor/update.d.ts +11 -11
  952. package/dist/commands/spaces/bootstrap.d.ts +2 -2
  953. package/dist/commands/spaces/briefs/delete.d.ts +4 -4
  954. package/dist/commands/spaces/briefs/get.d.ts +4 -4
  955. package/dist/commands/spaces/briefs/list.d.ts +2 -2
  956. package/dist/commands/spaces/briefs/set.d.ts +10 -10
  957. package/dist/commands/spaces/capacity.d.ts +3 -3
  958. package/dist/commands/spaces/claim.d.ts +2 -2
  959. package/dist/commands/spaces/conversations.d.ts +4 -4
  960. package/dist/commands/spaces/create.d.ts +17 -17
  961. package/dist/commands/spaces/cycles/create.d.ts +7 -7
  962. package/dist/commands/spaces/cycles/graph.d.ts +4 -4
  963. package/dist/commands/spaces/cycles/list.d.ts +4 -4
  964. package/dist/commands/spaces/cycles/settings.d.ts +6 -6
  965. package/dist/commands/spaces/cycles/show.d.ts +3 -3
  966. package/dist/commands/spaces/cycles/update.d.ts +8 -8
  967. package/dist/commands/spaces/delete.d.ts +2 -2
  968. package/dist/commands/spaces/expertise-suggestions.d.ts +2 -2
  969. package/dist/commands/spaces/files/delete.d.ts +4 -4
  970. package/dist/commands/spaces/files/folders/create.d.ts +5 -5
  971. package/dist/commands/spaces/files/folders/delete.d.ts +5 -5
  972. package/dist/commands/spaces/files/folders/list.d.ts +2 -2
  973. package/dist/commands/spaces/files/folders/update.d.ts +7 -7
  974. package/dist/commands/spaces/files/list.d.ts +2 -2
  975. package/dist/commands/spaces/files/move.d.ts +5 -5
  976. package/dist/commands/spaces/files/rename.d.ts +4 -4
  977. package/dist/commands/spaces/files/upload.d.ts +4 -4
  978. package/dist/commands/spaces/github-automations/set.d.ts +3 -3
  979. package/dist/commands/spaces/github-automations/show.d.ts +2 -2
  980. package/dist/commands/spaces/goals.d.ts +2 -2
  981. package/dist/commands/spaces/heartbeats/create.d.ts +11 -11
  982. package/dist/commands/spaces/heartbeats/delete.d.ts +4 -4
  983. package/dist/commands/spaces/heartbeats/list.d.ts +2 -2
  984. package/dist/commands/spaces/heartbeats/status.d.ts +3 -3
  985. package/dist/commands/spaces/heartbeats/update.d.ts +12 -12
  986. package/dist/commands/spaces/index.d.ts +1 -1
  987. package/dist/commands/spaces/insights.d.ts +14 -14
  988. package/dist/commands/spaces/install-template.d.ts +7 -7
  989. package/dist/commands/spaces/label-summaries.d.ts +1 -1
  990. package/dist/commands/spaces/labels/add.d.ts +3 -3
  991. package/dist/commands/spaces/labels/list.d.ts +2 -2
  992. package/dist/commands/spaces/labels/remove.d.ts +3 -3
  993. package/dist/commands/spaces/list.d.ts +11 -11
  994. package/dist/commands/spaces/live/cards/create.d.ts +10 -10
  995. package/dist/commands/spaces/live/cards/delete.d.ts +4 -4
  996. package/dist/commands/spaces/live/cards/list.d.ts +2 -2
  997. package/dist/commands/spaces/live/cards/reorder.d.ts +4 -4
  998. package/dist/commands/spaces/live/cards/update.d.ts +11 -11
  999. package/dist/commands/spaces/live/scene.d.ts +4 -4
  1000. package/dist/commands/spaces/members/add.d.ts +8 -8
  1001. package/dist/commands/spaces/members/list.d.ts +3 -3
  1002. package/dist/commands/spaces/members/remove.d.ts +5 -5
  1003. package/dist/commands/spaces/members/search.d.ts +3 -3
  1004. package/dist/commands/spaces/move.d.ts +4 -4
  1005. package/dist/commands/spaces/open.d.ts +4 -4
  1006. package/dist/commands/spaces/ownership.d.ts +2 -2
  1007. package/dist/commands/spaces/pin.d.ts +2 -2
  1008. package/dist/commands/spaces/preferences/show.d.ts +2 -2
  1009. package/dist/commands/spaces/preferences/tabs.d.ts +5 -5
  1010. package/dist/commands/spaces/reorder.d.ts +6 -6
  1011. package/dist/commands/spaces/revisions.d.ts +2 -2
  1012. package/dist/commands/spaces/room/ensure.d.ts +2 -2
  1013. package/dist/commands/spaces/room/messages.d.ts +5 -5
  1014. package/dist/commands/spaces/room/send.d.ts +8 -8
  1015. package/dist/commands/spaces/room/show.d.ts +2 -2
  1016. package/dist/commands/spaces/show.d.ts +2 -2
  1017. package/dist/commands/spaces/skills/add.d.ts +3 -3
  1018. package/dist/commands/spaces/skills/list.d.ts +2 -2
  1019. package/dist/commands/spaces/skills/pin.d.ts +4 -4
  1020. package/dist/commands/spaces/skills/remove.d.ts +3 -3
  1021. package/dist/commands/spaces/snapshot.d.ts +11 -11
  1022. package/dist/commands/spaces/states/archive.d.ts +3 -3
  1023. package/dist/commands/spaces/states/create.d.ts +7 -7
  1024. package/dist/commands/spaces/states/list.d.ts +2 -2
  1025. package/dist/commands/spaces/states/reorder.d.ts +3 -3
  1026. package/dist/commands/spaces/states/update.d.ts +6 -6
  1027. package/dist/commands/spaces/subspaces.d.ts +3 -3
  1028. package/dist/commands/spaces/summary.d.ts +2 -2
  1029. package/dist/commands/spaces/task-rollups.d.ts +1 -1
  1030. package/dist/commands/spaces/tasks.d.ts +7 -7
  1031. package/dist/commands/spaces/templates/create.d.ts +9 -9
  1032. package/dist/commands/spaces/templates/delete.d.ts +3 -3
  1033. package/dist/commands/spaces/templates/fork.d.ts +4 -4
  1034. package/dist/commands/spaces/templates/index.d.ts +7 -7
  1035. package/dist/commands/spaces/templates/purchase-status.d.ts +2 -2
  1036. package/dist/commands/spaces/templates/rate.d.ts +4 -4
  1037. package/dist/commands/spaces/templates/report.d.ts +4 -4
  1038. package/dist/commands/spaces/templates/show.d.ts +3 -3
  1039. package/dist/commands/spaces/templates/update.d.ts +11 -11
  1040. package/dist/commands/spaces/templates/visibility.d.ts +7 -7
  1041. package/dist/commands/spaces/transfer-workspace.d.ts +3 -3
  1042. package/dist/commands/spaces/triggers/delete.d.ts +3 -3
  1043. package/dist/commands/spaces/triggers/set.d.ts +26 -26
  1044. package/dist/commands/spaces/triggers/show.d.ts +2 -2
  1045. package/dist/commands/spaces/unarchive.d.ts +2 -2
  1046. package/dist/commands/spaces/update.d.ts +26 -26
  1047. package/dist/commands/spaces/usage.d.ts +3 -3
  1048. package/dist/commands/spaces/views/create.d.ts +8 -8
  1049. package/dist/commands/spaces/views/delete.d.ts +4 -4
  1050. package/dist/commands/spaces/views/duplicate.d.ts +3 -3
  1051. package/dist/commands/spaces/views/list.d.ts +2 -2
  1052. package/dist/commands/spaces/views/reorder.d.ts +5 -5
  1053. package/dist/commands/spaces/views/subscribe.d.ts +7 -7
  1054. package/dist/commands/spaces/views/subscriptions.d.ts +3 -3
  1055. package/dist/commands/spaces/views/unsubscribe.d.ts +3 -3
  1056. package/dist/commands/spaces/views/update.d.ts +10 -10
  1057. package/dist/commands/spaces/widgets/add.d.ts +4 -4
  1058. package/dist/commands/spaces/widgets/list.d.ts +2 -2
  1059. package/dist/commands/spaces/widgets/remove.d.ts +4 -4
  1060. package/dist/commands/spaces/work-graph.d.ts +4 -4
  1061. package/dist/commands/spaces/work-sync/reconcile.d.ts +2 -2
  1062. package/dist/commands/spaces/work-sync/telemetry.d.ts +3 -3
  1063. package/dist/commands/spaces/workflow-templates/archive.d.ts +4 -4
  1064. package/dist/commands/spaces/workflow-templates/create.d.ts +8 -8
  1065. package/dist/commands/spaces/workflow-templates/extract.d.ts +9 -9
  1066. package/dist/commands/spaces/workflow-templates/insert.d.ts +9 -9
  1067. package/dist/commands/spaces/workflow-templates/list.d.ts +7 -7
  1068. package/dist/commands/spaces/workflow-templates/promote.d.ts +5 -5
  1069. package/dist/commands/spaces/workflow-templates/publish.d.ts +4 -4
  1070. package/dist/commands/spaces/workflow-templates/show.d.ts +5 -5
  1071. package/dist/commands/spaces/workflow-templates/update.d.ts +8 -8
  1072. package/dist/commands/spaces/workflow-templates/versions.d.ts +3 -3
  1073. package/dist/commands/spaces/workflows/archive.d.ts +4 -4
  1074. package/dist/commands/spaces/workflows/artifact.d.ts +5 -5
  1075. package/dist/commands/spaces/workflows/cancel-node.d.ts +6 -6
  1076. package/dist/commands/spaces/workflows/cancel.d.ts +5 -5
  1077. package/dist/commands/spaces/workflows/create.d.ts +7 -7
  1078. package/dist/commands/spaces/workflows/events.d.ts +4 -4
  1079. package/dist/commands/spaces/workflows/fixtures/create.d.ts +11 -11
  1080. package/dist/commands/spaces/workflows/fixtures/list.d.ts +4 -4
  1081. package/dist/commands/spaces/workflows/lifecycle-diagnostics.d.ts +2 -2
  1082. package/dist/commands/spaces/workflows/list.d.ts +2 -2
  1083. package/dist/commands/spaces/workflows/node-types.d.ts +2 -2
  1084. package/dist/commands/spaces/workflows/pause.d.ts +5 -5
  1085. package/dist/commands/spaces/workflows/plan/show.d.ts +3 -3
  1086. package/dist/commands/spaces/workflows/plan/update.d.ts +7 -7
  1087. package/dist/commands/spaces/workflows/proposals/apply.d.ts +5 -5
  1088. package/dist/commands/spaces/workflows/proposals/confirm.d.ts +5 -5
  1089. package/dist/commands/spaces/workflows/proposals/create.d.ts +7 -7
  1090. package/dist/commands/spaces/workflows/proposals/dismiss.d.ts +5 -5
  1091. package/dist/commands/spaces/workflows/proposals/list.d.ts +3 -3
  1092. package/dist/commands/spaces/workflows/publish.d.ts +3 -3
  1093. package/dist/commands/spaces/workflows/reconcile.d.ts +3 -3
  1094. package/dist/commands/spaces/workflows/resume.d.ts +4 -4
  1095. package/dist/commands/spaces/workflows/retry.d.ts +4 -4
  1096. package/dist/commands/spaces/workflows/run.d.ts +4 -4
  1097. package/dist/commands/spaces/workflows/runs.d.ts +6 -6
  1098. package/dist/commands/spaces/workflows/show.d.ts +3 -3
  1099. package/dist/commands/spaces/workflows/signal.d.ts +7 -7
  1100. package/dist/commands/spaces/workflows/start.d.ts +6 -6
  1101. package/dist/commands/spaces/workflows/task-execution/create.d.ts +5 -5
  1102. package/dist/commands/spaces/workflows/test.d.ts +7 -7
  1103. package/dist/commands/spaces/workflows/triggers/create.d.ts +7 -7
  1104. package/dist/commands/spaces/workflows/triggers/fire.d.ts +7 -7
  1105. package/dist/commands/spaces/workflows/triggers/list.d.ts +3 -3
  1106. package/dist/commands/spaces/workflows/triggers/update.d.ts +8 -8
  1107. package/dist/commands/spaces/workflows/update.d.ts +13 -13
  1108. package/dist/commands/spaces/workflows/validate.d.ts +3 -3
  1109. package/dist/commands/step-up.d.ts +4 -4
  1110. package/dist/commands/store/acquisitions/approve.d.ts +3 -3
  1111. package/dist/commands/store/acquisitions/decline.d.ts +2 -2
  1112. package/dist/commands/store/acquisitions/list.d.ts +3 -3
  1113. package/dist/commands/store/acquisitions/show.d.ts +2 -2
  1114. package/dist/commands/store/admissions/approve.d.ts +5 -5
  1115. package/dist/commands/store/admissions/list.d.ts +2 -2
  1116. package/dist/commands/store/admissions/refuse.d.ts +5 -5
  1117. package/dist/commands/store/advisories/artifact.d.ts +6 -6
  1118. package/dist/commands/store/advisories/cancel.d.ts +2 -2
  1119. package/dist/commands/store/advisories/close.d.ts +4 -4
  1120. package/dist/commands/store/advisories/confirm.d.ts +3 -3
  1121. package/dist/commands/store/advisories/issue.d.ts +6 -6
  1122. package/dist/commands/store/advisories/list.d.ts +4 -4
  1123. package/dist/commands/store/advisories/show.d.ts +2 -2
  1124. package/dist/commands/store/artifacts/release.d.ts +8 -8
  1125. package/dist/commands/store/artifacts/used-by.d.ts +3 -3
  1126. package/dist/commands/store/browse.d.ts +11 -11
  1127. package/dist/commands/store/channel.d.ts +3 -3
  1128. package/dist/commands/store/follow.d.ts +4 -4
  1129. package/dist/commands/store/follows/list.d.ts +2 -2
  1130. package/dist/commands/store/follows/remove.d.ts +2 -2
  1131. package/dist/commands/store/governance/artifacts.d.ts +8 -8
  1132. package/dist/commands/store/governance/assign.d.ts +5 -5
  1133. package/dist/commands/store/governance/create-license.d.ts +2 -2
  1134. package/dist/commands/store/governance/install-plan.d.ts +6 -6
  1135. package/dist/commands/store/governance/license-policy.d.ts +6 -6
  1136. package/dist/commands/store/governance/policy.d.ts +7 -7
  1137. package/dist/commands/store/governance/publish-release.d.ts +2 -2
  1138. package/dist/commands/store/governance/requests.d.ts +7 -7
  1139. package/dist/commands/store/install.d.ts +9 -9
  1140. package/dist/commands/store/installs.d.ts +1 -1
  1141. package/dist/commands/store/issues.d.ts +10 -10
  1142. package/dist/commands/store/maintainers/add.d.ts +4 -4
  1143. package/dist/commands/store/maintainers/remove.d.ts +5 -5
  1144. package/dist/commands/store/publishers/approve.d.ts +4 -4
  1145. package/dist/commands/store/publishers/cancel.d.ts +2 -2
  1146. package/dist/commands/store/publishers/claim.d.ts +3 -3
  1147. package/dist/commands/store/publishers/confirm.d.ts +2 -2
  1148. package/dist/commands/store/publishers/domains/begin.d.ts +3 -3
  1149. package/dist/commands/store/publishers/domains/list.d.ts +2 -2
  1150. package/dist/commands/store/publishers/domains/verify.d.ts +3 -3
  1151. package/dist/commands/store/publishers/namespaces.d.ts +1 -1
  1152. package/dist/commands/store/publishers/profile/draft.d.ts +4 -4
  1153. package/dist/commands/store/publishers/profile/handle.d.ts +3 -3
  1154. package/dist/commands/store/publishers/profile/hide.d.ts +3 -3
  1155. package/dist/commands/store/publishers/profile/preview.d.ts +2 -2
  1156. package/dist/commands/store/publishers/profile/publish.d.ts +3 -3
  1157. package/dist/commands/store/publishers/profile/restore.d.ts +4 -4
  1158. package/dist/commands/store/publishers/profile/revisions.d.ts +2 -2
  1159. package/dist/commands/store/publishers/profile/show.d.ts +2 -2
  1160. package/dist/commands/store/publishers/verified.d.ts +2 -2
  1161. package/dist/commands/store/refund.d.ts +5 -5
  1162. package/dist/commands/store/releases.d.ts +2 -2
  1163. package/dist/commands/store/report.d.ts +5 -5
  1164. package/dist/commands/store/reports/confirm-ban.d.ts +3 -3
  1165. package/dist/commands/store/reports/disposition.d.ts +4 -4
  1166. package/dist/commands/store/reports/list.d.ts +4 -4
  1167. package/dist/commands/store/reports/withdraw-ban.d.ts +3 -3
  1168. package/dist/commands/store/reports.d.ts +2 -2
  1169. package/dist/commands/store/review.d.ts +5 -5
  1170. package/dist/commands/store/reviews.d.ts +8 -8
  1171. package/dist/commands/store/show.d.ts +2 -2
  1172. package/dist/commands/store/signals.d.ts +2 -2
  1173. package/dist/commands/store/star.d.ts +3 -3
  1174. package/dist/commands/store/stars.d.ts +1 -1
  1175. package/dist/commands/store/stats.d.ts +3 -3
  1176. package/dist/commands/store/tip.d.ts +4 -4
  1177. package/dist/commands/store/trial.d.ts +2 -2
  1178. package/dist/commands/store/uninstall.d.ts +4 -4
  1179. package/dist/commands/store/update.d.ts +7 -7
  1180. package/dist/commands/store/updates.d.ts +1 -1
  1181. package/dist/commands/store/watch.d.ts +3 -3
  1182. package/dist/commands/subscriptions/cancel.d.ts +4 -4
  1183. package/dist/commands/subscriptions/health.d.ts +2 -2
  1184. package/dist/commands/subscriptions/list.d.ts +1 -1
  1185. package/dist/commands/subscriptions/status.d.ts +2 -2
  1186. package/dist/commands/subscriptions/subscribe.d.ts +6 -6
  1187. package/dist/commands/tasks/actionability.d.ts +3 -3
  1188. package/dist/commands/tasks/actions/attach.d.ts +5 -5
  1189. package/dist/commands/tasks/actions/detach.d.ts +5 -5
  1190. package/dist/commands/tasks/active.d.ts +4 -4
  1191. package/dist/commands/tasks/activity.d.ts +3 -3
  1192. package/dist/commands/tasks/ancestors.d.ts +2 -2
  1193. package/dist/commands/tasks/approvals/create.d.ts +5 -5
  1194. package/dist/commands/tasks/approvals/delete.d.ts +3 -3
  1195. package/dist/commands/tasks/approvals/list.d.ts +2 -2
  1196. package/dist/commands/tasks/approvals/resolve.d.ts +5 -5
  1197. package/dist/commands/tasks/archive.d.ts +3 -3
  1198. package/dist/commands/tasks/assign.d.ts +13 -13
  1199. package/dist/commands/tasks/attachments/delete.d.ts +3 -3
  1200. package/dist/commands/tasks/attachments/download.d.ts +4 -4
  1201. package/dist/commands/tasks/attachments/list.d.ts +2 -2
  1202. package/dist/commands/tasks/attachments/set-role.d.ts +4 -4
  1203. package/dist/commands/tasks/attachments/upload.d.ts +4 -4
  1204. package/dist/commands/tasks/bulk-update.d.ts +5 -5
  1205. package/dist/commands/tasks/calendar.d.ts +3 -3
  1206. package/dist/commands/tasks/cancel-cascade.d.ts +3 -3
  1207. package/dist/commands/tasks/cascade-status.d.ts +2 -2
  1208. package/dist/commands/tasks/chat/exchange.d.ts +8 -8
  1209. package/dist/commands/tasks/chat/index.d.ts +8 -8
  1210. package/dist/commands/tasks/chat/read.d.ts +3 -3
  1211. package/dist/commands/tasks/chat/reindex.d.ts +2 -2
  1212. package/dist/commands/tasks/chat/reopen.d.ts +3 -3
  1213. package/dist/commands/tasks/chat/repair-attention.d.ts +2 -2
  1214. package/dist/commands/tasks/chat/rotate.d.ts +4 -4
  1215. package/dist/commands/tasks/chat/send.d.ts +5 -5
  1216. package/dist/commands/tasks/checkout.d.ts +3 -3
  1217. package/dist/commands/tasks/children.d.ts +2 -2
  1218. package/dist/commands/tasks/comments/add.d.ts +12 -12
  1219. package/dist/commands/tasks/comments/add.js +8 -36
  1220. package/dist/commands/tasks/comments/anchor.d.ts +12 -12
  1221. package/dist/commands/tasks/comments/delete.d.ts +3 -3
  1222. package/dist/commands/tasks/comments/list.d.ts +5 -5
  1223. package/dist/commands/tasks/comments/react.d.ts +4 -4
  1224. package/dist/commands/tasks/comments/reopen.d.ts +3 -3
  1225. package/dist/commands/tasks/comments/resolve.d.ts +3 -3
  1226. package/dist/commands/tasks/communications.d.ts +4 -4
  1227. package/dist/commands/tasks/complete.d.ts +20 -20
  1228. package/dist/commands/tasks/complete.js +1 -34
  1229. package/dist/commands/tasks/continue-ready.d.ts +10 -10
  1230. package/dist/commands/tasks/continue.d.ts +8 -8
  1231. package/dist/commands/tasks/create-tree.d.ts +16 -16
  1232. package/dist/commands/tasks/create.d.ts +44 -44
  1233. package/dist/commands/tasks/current.d.ts +1 -1
  1234. package/dist/commands/tasks/delete.d.ts +3 -3
  1235. package/dist/commands/tasks/deliverable/add.d.ts +14 -14
  1236. package/dist/commands/tasks/deliverable/archive.d.ts +5 -5
  1237. package/dist/commands/tasks/deliverable/confirm.d.ts +4 -4
  1238. package/dist/commands/tasks/deliverable/list.d.ts +3 -3
  1239. package/dist/commands/tasks/descendants.d.ts +3 -3
  1240. package/dist/commands/tasks/dri-plan.d.ts +2 -2
  1241. package/dist/commands/tasks/dri-run.d.ts +2 -2
  1242. package/dist/commands/tasks/dri-status.d.ts +2 -2
  1243. package/dist/commands/tasks/duplicate-pipeline.d.ts +4 -4
  1244. package/dist/commands/tasks/economics-compare.d.ts +5 -5
  1245. package/dist/commands/tasks/events/append.d.ts +11 -11
  1246. package/dist/commands/tasks/events/list.d.ts +8 -8
  1247. package/dist/commands/tasks/events/tail.d.ts +6 -6
  1248. package/dist/commands/tasks/execution-state.d.ts +2 -2
  1249. package/dist/commands/tasks/execution-summary.d.ts +2 -2
  1250. package/dist/commands/tasks/execution-timeline.d.ts +4 -4
  1251. package/dist/commands/tasks/expectations/assess.d.ts +14 -14
  1252. package/dist/commands/tasks/expectations/evaluate.d.ts +4 -4
  1253. package/dist/commands/tasks/expectations.d.ts +2 -2
  1254. package/dist/commands/tasks/export.d.ts +35 -35
  1255. package/dist/commands/tasks/follow-up.d.ts +26 -26
  1256. package/dist/commands/tasks/fork.d.ts +8 -8
  1257. package/dist/commands/tasks/forward.d.ts +4 -4
  1258. package/dist/commands/tasks/from-message.d.ts +3 -3
  1259. package/dist/commands/tasks/guide.d.ts +1 -1
  1260. package/dist/commands/tasks/handover.d.ts +7 -7
  1261. package/dist/commands/tasks/import.d.ts +10 -10
  1262. package/dist/commands/tasks/input/answer.d.ts +6 -6
  1263. package/dist/commands/tasks/input/dismiss.d.ts +3 -3
  1264. package/dist/commands/tasks/input/show.d.ts +2 -2
  1265. package/dist/commands/tasks/interrupt.d.ts +3 -3
  1266. package/dist/commands/tasks/judge.d.ts +5 -5
  1267. package/dist/commands/tasks/labels/attach.d.ts +3 -3
  1268. package/dist/commands/tasks/labels/create.d.ts +5 -5
  1269. package/dist/commands/tasks/labels/delete.d.ts +2 -2
  1270. package/dist/commands/tasks/labels/detach.d.ts +3 -3
  1271. package/dist/commands/tasks/labels/list.d.ts +1 -1
  1272. package/dist/commands/tasks/labels/suggest.d.ts +2 -2
  1273. package/dist/commands/tasks/lifecycle/attach.d.ts +5 -5
  1274. package/dist/commands/tasks/lifecycle/definitions.d.ts +2 -2
  1275. package/dist/commands/tasks/lifecycle/detach.d.ts +4 -4
  1276. package/dist/commands/tasks/lifecycle/history.d.ts +4 -4
  1277. package/dist/commands/tasks/lifecycle/migrate.d.ts +4 -4
  1278. package/dist/commands/tasks/lifecycle/reconcile.d.ts +2 -2
  1279. package/dist/commands/tasks/lifecycle/reopen.d.ts +5 -5
  1280. package/dist/commands/tasks/lifecycle/show.d.ts +2 -2
  1281. package/dist/commands/tasks/lifecycle/start.d.ts +3 -3
  1282. package/dist/commands/tasks/lifecycle/transition.d.ts +6 -6
  1283. package/dist/commands/tasks/list.d.ts +49 -49
  1284. package/dist/commands/tasks/mark-duplicate.d.ts +3 -3
  1285. package/dist/commands/tasks/monitor.d.ts +6 -6
  1286. package/dist/commands/tasks/move.d.ts +8 -8
  1287. package/dist/commands/tasks/open.d.ts +5 -5
  1288. package/dist/commands/tasks/output.d.ts +4 -4
  1289. package/dist/commands/tasks/pause-schedule.d.ts +2 -2
  1290. package/dist/commands/tasks/plan/add-subtask.d.ts +7 -7
  1291. package/dist/commands/tasks/plan/cancel.d.ts +4 -4
  1292. package/dist/commands/tasks/plan/create.d.ts +2 -2
  1293. package/dist/commands/tasks/plan/pause.d.ts +5 -5
  1294. package/dist/commands/tasks/plan/reconcile.d.ts +3 -3
  1295. package/dist/commands/tasks/plan/resume.d.ts +4 -4
  1296. package/dist/commands/tasks/plan/retry.d.ts +4 -4
  1297. package/dist/commands/tasks/plan/run-update.d.ts +7 -7
  1298. package/dist/commands/tasks/plan/run.d.ts +3 -3
  1299. package/dist/commands/tasks/plan/show.d.ts +2 -2
  1300. package/dist/commands/tasks/plan/start.d.ts +3 -3
  1301. package/dist/commands/tasks/plan/sync.d.ts +2 -2
  1302. package/dist/commands/tasks/plan/update.d.ts +3 -3
  1303. package/dist/commands/tasks/pr.d.ts +3 -3
  1304. package/dist/commands/tasks/preflight.d.ts +4 -4
  1305. package/dist/commands/tasks/promote.d.ts +5 -5
  1306. package/dist/commands/tasks/prompt-log.d.ts +2 -2
  1307. package/dist/commands/tasks/ready.d.ts +7 -7
  1308. package/dist/commands/tasks/rearm-recurrence.d.ts +4 -4
  1309. package/dist/commands/tasks/release.d.ts +2 -2
  1310. package/dist/commands/tasks/remind.d.ts +3 -3
  1311. package/dist/commands/tasks/replay.d.ts +3 -3
  1312. package/dist/commands/tasks/report.d.ts +10 -10
  1313. package/dist/commands/tasks/resource/add.d.ts +13 -13
  1314. package/dist/commands/tasks/resource/list.d.ts +4 -4
  1315. package/dist/commands/tasks/result/show.d.ts +4 -4
  1316. package/dist/commands/tasks/result/submit.d.ts +17 -17
  1317. package/dist/commands/tasks/result/submit.js +1 -34
  1318. package/dist/commands/tasks/resume/save.d.ts +7 -7
  1319. package/dist/commands/tasks/resume/show.d.ts +4 -4
  1320. package/dist/commands/tasks/resume-schedule.d.ts +2 -2
  1321. package/dist/commands/tasks/retry-schedule.d.ts +3 -3
  1322. package/dist/commands/tasks/retry.d.ts +5 -5
  1323. package/dist/commands/tasks/review-queue.d.ts +5 -5
  1324. package/dist/commands/tasks/review.d.ts +8 -8
  1325. package/dist/commands/tasks/revisions.d.ts +2 -2
  1326. package/dist/commands/tasks/runs.d.ts +2 -2
  1327. package/dist/commands/tasks/schedule.d.ts +8 -8
  1328. package/dist/commands/tasks/self-schedule.d.ts +8 -8
  1329. package/dist/commands/tasks/show.d.ts +5 -5
  1330. package/dist/commands/tasks/skills/pin.d.ts +5 -5
  1331. package/dist/commands/tasks/skills/unpin.d.ts +5 -5
  1332. package/dist/commands/tasks/snooze.d.ts +6 -6
  1333. package/dist/commands/tasks/start-all.d.ts +3 -3
  1334. package/dist/commands/tasks/start.d.ts +6 -6
  1335. package/dist/commands/tasks/subscribe.d.ts +3 -3
  1336. package/dist/commands/tasks/tags/add.d.ts +3 -3
  1337. package/dist/commands/tasks/tags/remove.d.ts +3 -3
  1338. package/dist/commands/tasks/templates/create.d.ts +11 -11
  1339. package/dist/commands/tasks/templates/create.js +1 -34
  1340. package/dist/commands/tasks/templates/delete.d.ts +2 -2
  1341. package/dist/commands/tasks/templates/list.d.ts +2 -2
  1342. package/dist/commands/tasks/templates/reorder.d.ts +3 -3
  1343. package/dist/commands/tasks/templates/show.d.ts +2 -2
  1344. package/dist/commands/tasks/templates/update.d.ts +10 -10
  1345. package/dist/commands/tasks/templates/update.js +1 -34
  1346. package/dist/commands/tasks/timeline.d.ts +7 -7
  1347. package/dist/commands/tasks/today.d.ts +7 -7
  1348. package/dist/commands/tasks/transcript.d.ts +6 -6
  1349. package/dist/commands/tasks/tree.d.ts +6 -6
  1350. package/dist/commands/tasks/triage.d.ts +8 -8
  1351. package/dist/commands/tasks/trust.d.ts +5 -5
  1352. package/dist/commands/tasks/unschedule.d.ts +2 -2
  1353. package/dist/commands/tasks/unsnooze.d.ts +3 -3
  1354. package/dist/commands/tasks/unsubscribe.d.ts +3 -3
  1355. package/dist/commands/tasks/update.d.ts +45 -45
  1356. package/dist/commands/tasks/updates/add.d.ts +13 -13
  1357. package/dist/commands/tasks/updates/add.js +1 -34
  1358. package/dist/commands/tasks/updates/list.d.ts +6 -6
  1359. package/dist/commands/tasks/upsert.d.ts +20 -20
  1360. package/dist/commands/tasks/wait.d.ts +9 -9
  1361. package/dist/commands/tasks/waive.d.ts +4 -4
  1362. package/dist/commands/tasks/watch.d.ts +8 -8
  1363. package/dist/commands/tasks/workflow/approve-merge.d.ts +2 -2
  1364. package/dist/commands/tasks/workflow/cancel.d.ts +3 -3
  1365. package/dist/commands/tasks/workflow/e2e-complete.d.ts +7 -7
  1366. package/dist/commands/tasks/workflow/index.d.ts +2 -2
  1367. package/dist/commands/tasks/workflow/retry-stage.d.ts +3 -3
  1368. package/dist/commands/tasks/workflow/start.d.ts +2 -2
  1369. package/dist/commands/tasks/workflow-await.d.ts +5 -5
  1370. package/dist/commands/tasks/workflow-context.d.ts +3 -3
  1371. package/dist/commands/tasks/workflow-findings.d.ts +5 -5
  1372. package/dist/commands/teams/list-channels.d.ts +3 -3
  1373. package/dist/commands/teams/list-users.d.ts +4 -4
  1374. package/dist/commands/teams/read-channel.d.ts +5 -5
  1375. package/dist/commands/teams/read-thread.d.ts +6 -6
  1376. package/dist/commands/teams/run.d.ts +5 -5
  1377. package/dist/commands/teams/search.d.ts +5 -5
  1378. package/dist/commands/teams/send-as-agent.d.ts +6 -6
  1379. package/dist/commands/teams/tools.d.ts +2 -2
  1380. package/dist/commands/token/list.d.ts +3 -3
  1381. package/dist/commands/token/mint.d.ts +3 -3
  1382. package/dist/commands/token/revoke.d.ts +2 -2
  1383. package/dist/commands/tokens/create.d.ts +7 -7
  1384. package/dist/commands/tokens/list.d.ts +2 -2
  1385. package/dist/commands/tokens/revoke.d.ts +3 -3
  1386. package/dist/commands/tones/apply.d.ts +4 -4
  1387. package/dist/commands/tones/create.d.ts +11 -11
  1388. package/dist/commands/tones/default.d.ts +3 -3
  1389. package/dist/commands/tones/delete.d.ts +2 -2
  1390. package/dist/commands/tones/export.d.ts +6 -6
  1391. package/dist/commands/tones/import.d.ts +4 -4
  1392. package/dist/commands/tones/list.d.ts +4 -4
  1393. package/dist/commands/tones/policy/set.d.ts +8 -8
  1394. package/dist/commands/tones/policy/show.d.ts +2 -2
  1395. package/dist/commands/tones/show.d.ts +2 -2
  1396. package/dist/commands/tones/update.d.ts +11 -11
  1397. package/dist/commands/triggers/actions.d.ts +2 -2
  1398. package/dist/commands/triggers/audit.d.ts +9 -9
  1399. package/dist/commands/triggers/capabilities.d.ts +2 -2
  1400. package/dist/commands/triggers/create.d.ts +73 -73
  1401. package/dist/commands/triggers/delete.d.ts +3 -3
  1402. package/dist/commands/triggers/disable.d.ts +2 -2
  1403. package/dist/commands/triggers/enable.d.ts +2 -2
  1404. package/dist/commands/triggers/event-catalog.d.ts +1 -1
  1405. package/dist/commands/triggers/fire-detail.d.ts +3 -3
  1406. package/dist/commands/triggers/fire.d.ts +4 -4
  1407. package/dist/commands/triggers/list.d.ts +7 -7
  1408. package/dist/commands/triggers/parse-intent.d.ts +8 -8
  1409. package/dist/commands/triggers/preflight.d.ts +4 -4
  1410. package/dist/commands/triggers/prune.d.ts +8 -8
  1411. package/dist/commands/triggers/replay.d.ts +4 -4
  1412. package/dist/commands/triggers/rotate-secret.d.ts +2 -2
  1413. package/dist/commands/triggers/runs.d.ts +5 -5
  1414. package/dist/commands/triggers/show.d.ts +2 -2
  1415. package/dist/commands/triggers/update.d.ts +63 -63
  1416. package/dist/commands/update.d.ts +5 -5
  1417. package/dist/commands/usage.d.ts +3 -3
  1418. package/dist/commands/views/create.d.ts +19 -19
  1419. package/dist/commands/views/delete.d.ts +3 -3
  1420. package/dist/commands/views/list.d.ts +1 -1
  1421. package/dist/commands/views/show.d.ts +2 -2
  1422. package/dist/commands/views/subscribe.d.ts +6 -6
  1423. package/dist/commands/views/subscriptions.d.ts +2 -2
  1424. package/dist/commands/views/unsubscribe.d.ts +2 -2
  1425. package/dist/commands/views/update.d.ts +16 -16
  1426. package/dist/commands/webhooks/create.d.ts +5 -5
  1427. package/dist/commands/webhooks/delete.d.ts +2 -2
  1428. package/dist/commands/webhooks/deliveries.d.ts +3 -3
  1429. package/dist/commands/webhooks/list.d.ts +3 -3
  1430. package/dist/commands/webhooks/test.d.ts +2 -2
  1431. package/dist/commands/whoami.d.ts +1 -1
  1432. package/dist/commands/widgets/add.d.ts +5 -5
  1433. package/dist/commands/widgets/check.d.ts +5 -5
  1434. package/dist/commands/widgets/list.d.ts +2 -2
  1435. package/dist/commands/widgets/remove.d.ts +3 -3
  1436. package/dist/commands/widgets/reorder.d.ts +4 -4
  1437. package/dist/commands/widgets/revert.d.ts +4 -4
  1438. package/dist/commands/widgets/save-as-app.d.ts +3 -3
  1439. package/dist/commands/widgets/show.d.ts +3 -3
  1440. package/dist/commands/widgets/update.d.ts +5 -5
  1441. package/dist/commands/widgets/versions.d.ts +4 -4
  1442. package/dist/commands/wiki/cat.d.ts +5 -5
  1443. package/dist/commands/wiki/ls.d.ts +4 -4
  1444. package/dist/commands/wiki/mkdir.d.ts +3 -3
  1445. package/dist/commands/wiki/mv.d.ts +5 -5
  1446. package/dist/commands/wiki/rm.d.ts +6 -6
  1447. package/dist/commands/wiki/rmdir.d.ts +5 -5
  1448. package/dist/commands/wiki/search.d.ts +4 -4
  1449. package/dist/commands/wiki/tree.d.ts +3 -3
  1450. package/dist/commands/wiki/update.d.ts +7 -7
  1451. package/dist/commands/wiki/write.d.ts +9 -9
  1452. package/dist/commands/work-views/create.d.ts +5 -5
  1453. package/dist/commands/work-views/delete.d.ts +4 -4
  1454. package/dist/commands/work-views/list.d.ts +1 -1
  1455. package/dist/commands/work-views/result.d.ts +2 -2
  1456. package/dist/commands/work-views/update.d.ts +6 -6
  1457. package/dist/commands/worklog/list.d.ts +6 -6
  1458. package/dist/commands/worklog/rm.d.ts +3 -3
  1459. package/dist/commands/worklog/save.d.ts +8 -8
  1460. package/dist/commands/worklog/search.d.ts +4 -4
  1461. package/dist/commands/worklog/show.d.ts +3 -3
  1462. package/dist/commands/worklog/stats.d.ts +2 -2
  1463. package/dist/commands/worklog/update.d.ts +7 -7
  1464. package/dist/commands/workspaces/attribution.d.ts +4 -4
  1465. package/dist/commands/workspaces/audit.d.ts +8 -8
  1466. package/dist/commands/workspaces/grants.d.ts +2 -2
  1467. package/dist/commands/workspaces/list.d.ts +1 -1
  1468. package/dist/commands/workspaces/members.d.ts +3 -3
  1469. package/dist/commands/workspaces/stewardship.d.ts +3 -3
  1470. package/dist/commands/workspaces/use.d.ts +3 -3
  1471. package/dist/generated/managed-instruction-guides.json +2 -2
  1472. package/dist/lib/agentic-stream.d.ts +5 -0
  1473. package/dist/lib/agentic-stream.js +51 -2
  1474. package/dist/lib/artifact-export.d.ts +8 -8
  1475. package/dist/lib/channel-command-runners.d.ts +11 -11
  1476. package/dist/lib/commerce-command.d.ts +2 -2
  1477. package/dist/lib/commitment-endpoints.d.ts +1 -1
  1478. package/dist/lib/computer-use.js +6 -1
  1479. package/dist/lib/continuityPreferences.d.ts +3 -0
  1480. package/dist/lib/continuityPreferences.js +42 -0
  1481. package/dist/lib/dedicated-lease-command.d.ts +3 -3
  1482. package/dist/lib/dedicated-service-command.d.ts +9 -9
  1483. package/dist/lib/exec-runtime-binary.d.ts +1 -1
  1484. package/dist/lib/exec-runtime-binary.js +3 -3
  1485. package/dist/lib/first-party-harness-remote-install.d.ts +3 -3
  1486. package/dist/lib/first-party-harness-remote-update.d.ts +3 -3
  1487. package/dist/lib/followups.d.ts +1 -1
  1488. package/dist/lib/label-scope.d.ts +3 -3
  1489. package/dist/lib/list-output.d.ts +3 -3
  1490. package/dist/lib/lookbackPlans.d.ts +14 -2
  1491. package/dist/lib/lookbackPlans.js +34 -15
  1492. package/dist/lib/member-output.d.ts +1 -1
  1493. package/dist/lib/memory-scope.d.ts +3 -3
  1494. package/dist/lib/proposal-decision-command.d.ts +7 -7
  1495. package/dist/lib/publisher-profile-flags.d.ts +2 -2
  1496. package/dist/lib/scoped-memory-command.d.ts +25 -25
  1497. package/dist/lib/session-task-write.d.ts +1 -1
  1498. package/dist/lib/space-custom-actions.d.ts +2 -2
  1499. package/dist/lib/task-resolver.d.ts +8 -0
  1500. package/dist/lib/task-resolver.js +18 -0
  1501. package/dist/lib/write-target.d.ts +1 -1
  1502. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/aead.js +75 -59
  1503. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authExpiredDetector.js +67 -80
  1504. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authHelper.js +240 -294
  1505. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/cliHandoffWire.js +138 -165
  1506. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/commitmentExecutionContract.js +376 -492
  1507. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerUse.js +362 -330
  1508. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerWire.js +1106 -1235
  1509. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/configRoot.js +45 -59
  1510. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelope.js +135 -202
  1511. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +565 -888
  1512. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialResolver.js +277 -417
  1513. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialSession.js +82 -103
  1514. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonPair.js +362 -459
  1515. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.js +58 -90
  1516. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonToolApproval.js +144 -205
  1517. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +554 -623
  1518. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeBusyWire.js +113 -146
  1519. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeWakeWire.js +86 -108
  1520. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/desktopWire.js +74 -40
  1521. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceIdentityBridge.js +533 -730
  1522. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceKey.js +214 -329
  1523. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dpop.js +132 -162
  1524. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/fdToken.js +173 -220
  1525. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.js +322 -505
  1526. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessChannels.js +70 -146
  1527. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessHome.js +233 -343
  1528. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessReleaseKeys.js +33 -103
  1529. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessUpdater.js +761 -863
  1530. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/githubPushRefusal.js +59 -41
  1531. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessPermissionControls.js +64 -57
  1532. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessSkillLayout.js +44 -91
  1533. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessTrust.js +65 -110
  1534. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/headers-helper.js +228 -304
  1535. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +568 -446
  1536. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/jwtUtils.js +44 -56
  1537. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/index.js +145 -195
  1538. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/linux.js +361 -596
  1539. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/macos.js +332 -546
  1540. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/types.js +32 -40
  1541. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/windows.js +226 -330
  1542. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/zeroize-registry.js +39 -54
  1543. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/legacyStatePreflight.js +117 -134
  1544. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/localIdentity.js +39 -56
  1545. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginLocalhost.js +216 -321
  1546. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginWithLocalhost.js +212 -337
  1547. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loopbackHttp.js +214 -241
  1548. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineId.js +129 -212
  1549. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.js +265 -405
  1550. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/messages.js +51 -59
  1551. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/pkce.js +77 -145
  1552. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/profileStateDir.js +239 -344
  1553. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/recoveryCode.js +112 -190
  1554. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +494 -953
  1555. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.js +79 -126
  1556. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshScheduler.js +236 -310
  1557. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseKeys.js +36 -92
  1558. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseManifest.js +146 -283
  1559. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releasePolicy.js +126 -151
  1560. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseVersions.js +64 -41
  1561. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.d.ts +10 -0
  1562. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.js +148 -0
  1563. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.js +95 -109
  1564. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +42 -39
  1565. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +370 -453
  1566. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/spawnEnv.js +178 -266
  1567. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/telemetryRedaction.js +149 -237
  1568. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.js +245 -339
  1569. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.d.ts +16 -0
  1570. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.js +75 -0
  1571. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ttlParser.js +71 -83
  1572. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +51 -32
  1573. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.js +45 -45
  1574. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.d.ts +10 -0
  1575. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.js +138 -0
  1576. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.d.ts +16 -0
  1577. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.js +40 -0
  1578. package/dist/node_modules/@skrr-ai/auth-core/package.json +21 -1
  1579. package/dist/node_modules/@skrr-ai/data-provider/index.js +19880 -27012
  1580. package/dist/node_modules/@skrr-ai/data-provider/package.json +1 -1
  1581. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/contract.js +93 -141
  1582. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/index.js +57 -89
  1583. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/loopback-server.js +204 -262
  1584. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.js +681 -1041
  1585. package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-renewal.js +145 -286
  1586. package/dist/node_modules/@skrr-ai/inference-broker/package.json +1 -1
  1587. package/dist/signal-command.d.ts +5 -5
  1588. package/docs/v1/lookback-plans.md +58 -0
  1589. package/oclif.manifest.json +432 -2
  1590. package/package.json +4 -5
@@ -1,1311 +1,1182 @@
1
1
  "use strict";
2
- /**
3
- * computerWire.ts — the ONE declaration of every name the computer protocol
4
- * puts on the wire, and the pure rules the daemon applies to them (design
5
- * docs/architecture/dedicated-runtime-computer-2026-10-01.md §4, §7.1).
6
- *
7
- * The daemon is published and cannot depend on `@skrr-ai/data-provider`, which
8
- * is private. Without this module it would declare its own copy of the event
9
- * names and refusal codes, and two hand-typed copies of a wire contract drift
10
- * in exactly the way neither copy's tests can see (OSK-8588). So the names live
11
- * here, in the published package, the way `firstPartyHarness.ts` does for the
12
- * harness; `@skrr-ai/data-provider` re-exports this module and builds its zod
13
- * schemas over these constants (`z.enum(COMPUTER_REFUSAL_CODES)`), so each name
14
- * is still declared exactly once. `packages/data-provider/specs/computerWireBoundary.spec.ts`
15
- * fails on a `computer:*` event name or a refusal-code table declared anywhere
16
- * else.
17
- *
18
- * Pure TypeScript: no zod, no Node-only imports, so the browser, React Native
19
- * and a bun-compiled daemon all load it. Most payload SHAPES are not here — they
20
- * are zod schemas in data-provider; the daemon re-validates every field it
21
- * reads. The exceptions are shapes the DAEMON produces and the API re-validates
22
- * (activity details, the browser key input): those are declared here as plain
23
- * interfaces, and data-provider's zod schemas are checked against them at
24
- * compile time, because a producer and a validator that each spell the shape
25
- * dropped every command event for a release (OSK-13605).
26
- */
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.COMPUTER_BROWSER_DIALOG_KINDS = exports.COMPUTER_INPUT_TEXT_MAX_LENGTH = exports.COMPUTER_BROWSER_INPUT_PLATFORMS = exports.COMPUTER_BROWSER_VIEWPORT_LIMITS = exports.COMPUTER_BROWSER_INPUT_TYPES = exports.COMPUTER_TERMINAL_CAVEATS = exports.COMPUTER_TERMINAL_HISTORY_CAUSES = exports.COMPUTER_TERMINAL_LIFETIMES = exports.COMPUTER_TERMINAL_INPUT_TYPES = exports.COMPUTER_TERMINAL_SIGNALS = exports.COMPUTER_DIAGNOSTICS_MAX_STREAMS = exports.COMPUTER_DIAGNOSTICS_INTERVAL_MS = exports.COMPUTER_DIAGNOSTIC_COUNTERS = exports.COMPUTER_FRAME_ACK_TIMEOUT_MS = exports.COMPUTER_FRAME_MAX_BYTES = exports.COMPUTER_BROWSER_VIEWPORT = exports.COMPUTER_SURFACE_END_REASONS = exports.COMPUTER_SURFACE_STATES = exports.COMPUTER_SURFACE_KINDS = exports.COMPUTER_CONTROL_ACTIVITY_CHANGES = exports.COMPUTER_CONTROL_CHANGE_REASONS = exports.COMPUTER_SURFACE_UNPIN_REASONS = exports.COMPUTER_SURFACE_PIN_ACTIONS = exports.COMPUTER_SHARE_MODES = exports.COMPUTER_SHARE_ACTIONS = exports.COMPUTER_CONTROL_ACTIONS = exports.COMPUTER_AGENT_WRITE_WAIT_MS = exports.COMPUTER_RECONNECT_GRACE_MS = exports.COMPUTER_RECLAIM_WARNING_MS = exports.COMPUTER_CONTROL_IDLE_MS = exports.COMPUTER_HANDBACK_NOTE_MAX_LENGTH = exports.COMPUTER_GRANT_TIERS = exports.COMPUTER_OPERATIONS = exports.COMPUTER_ACCESS_LEVELS = exports.COMPUTER_ACTOR_ENGINE_MAX_LENGTH = exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = exports.COMPUTER_ACTIVITY_ACTOR_KINDS = exports.COMPUTER_ACTOR_KINDS = exports.COMPUTER_REFUSAL_CODES = exports.COMPUTER_CAPABILITY_VALUES = exports.COMPUTER_CAPABILITIES = exports.COMPUTER_MANIFEST_REORDER_WAIT_MS = exports.COMPUTER_RESYNC_TIMEOUT_MS = exports.COMPUTER_API_ANSWERED_EVENT_KEYS = exports.COMPUTER_SERVER_EVENT_KEYS = exports.DAEMON_COMPUTER_REPORT_EVENT_KEYS = exports.DAEMON_COMPUTER_EVENT_NAMES = exports.COMPUTER_EVENT_NAMES = exports.DAEMON_COMPUTER_EVENTS = exports.COMPUTER_EVENTS = void 0;
29
- exports.COMPUTER_DECLARED_SERVICES_MAX = exports.COMPUTER_DECLARED_SERVICE_PROTOCOLS = exports.COMPUTER_SERVICES_TOOL_ERROR_PREFIX = exports.COMPUTER_SERVICES_TOOL_NAME = exports.COMPUTER_DECLARED_SERVICE_ACTIONS = exports.COMPUTER_COMMAND_OUTPUT_STREAMS = exports.COMPUTER_COMMAND_START_REFUSALS = exports.COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = exports.COMPUTER_COMMAND_NOT_STARTED_SIGNAL = exports.COMPUTER_COMMAND_OUTCOMES = exports.COMPUTER_LIFECYCLE_EVENTS = exports.COMPUTER_COMMAND_PHASES = exports.COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER = exports.COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH = exports.COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH = exports.COMPUTER_ACTIVITY_KINDS = exports.COMPUTER_FILE_CONTENTS_TAG_PATTERN = exports.COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = exports.COMPUTER_FILE_CHANGES = exports.COMPUTER_FILES_CHANGED_MAX_CHANGES = exports.COMPUTER_FILES_WATCH_DEGRADED_REASONS = exports.COMPUTER_FILE_WITHHELD_REASONS = exports.COMPUTER_FILE_TYPES = exports.COMPUTER_FILE_GIT_STATUS_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH = exports.COMPUTER_FILE_SEARCH_MAX_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_MAX_LIMIT = exports.COMPUTER_FILE_SEARCH_DEFAULT_LIMIT = exports.COMPUTER_FILE_GIT_MARKS = exports.COMPUTER_FILE_SEARCH_STATES = exports.COMPUTER_FILE_SEARCH_OPERATIONS = exports.COMPUTER_FILE_OPERATIONS = exports.COMPUTER_BROWSER_URL_MAX_LENGTH = exports.COMPUTER_BROWSER_TAB_ACTIONS = exports.COMPUTER_BROWSER_HISTORY_ACTIONS = exports.COMPUTER_BROWSER_COPY_MAX_LENGTH = exports.COMPUTER_TERMINAL_CWD_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES = exports.COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES = exports.COMPUTER_BROWSER_FILE_CHOOSER_MODES = exports.COMPUTER_BROWSER_DOWNLOADS_MAX = exports.COMPUTER_BROWSER_DOWNLOAD_STATES = exports.COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_ANSWERERS = exports.COMPUTER_BROWSER_DIALOG_OUTCOMES = void 0;
30
- exports.COMPUTER_DAEMON_LOG_LIMITS = exports.COMPUTER_DAEMON_LOG_LEVELS = exports.COMPUTER_LEASE_STATE_POWER_PHASE = exports.COMPUTER_START_REFUSALS = exports.COMPUTER_PERSONAL_SIGN_IN_REASONS = exports.COMPUTER_PERSONAL_POWER_PHASES = exports.COMPUTER_POWER_PHASES = exports.COMPUTER_MACHINE_KINDS = exports.COMPUTER_DECLARED_SERVICE_PROBLEMS = exports.COMPUTER_DECLARED_SERVICE_NAME_PATTERN = exports.COMPUTER_DECLARED_SERVICE_HOST = exports.COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH = exports.COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH = void 0;
31
- exports.normalizeComputerRefusalCode = normalizeComputerRefusalCode;
32
- exports.isComputerPlatformRouteSession = isComputerPlatformRouteSession;
33
- exports.computerTierOperations = computerTierOperations;
34
- exports.computerOperationAllowed = computerOperationAllowed;
35
- exports.computerAccessOperations = computerAccessOperations;
36
- exports.computerControlChangeIsHolderChange = computerControlChangeIsHolderChange;
37
- exports.computerLeaseInputRefusal = computerLeaseInputRefusal;
38
- exports.computerLeaseAcceptsInput = computerLeaseAcceptsInput;
39
- exports.clampComputerBrowserViewport = clampComputerBrowserViewport;
40
- exports.computerFileEntityTagsEqual = computerFileEntityTagsEqual;
41
- exports.computerDeclaredServiceOperation = computerDeclaredServiceOperation;
42
- exports.computerDeclaredServiceSpec = computerDeclaredServiceSpec;
43
- exports.computerDeclaredServiceUrl = computerDeclaredServiceUrl;
44
- exports.computerPowerPhaseForLeaseState = computerPowerPhaseForLeaseState;
45
- exports.computerShowsDesktop = computerShowsDesktop;
46
- exports.computerOffersPowerActions = computerOffersPowerActions;
47
- exports.normalizeBrowserActivityOriginPolicy = normalizeBrowserActivityOriginPolicy;
48
- exports.browserActivityOriginAllowed = browserActivityOriginAllowed;
49
- // ---------------------------------------------------------------------------
50
- // Events (§7.1)
51
- // ---------------------------------------------------------------------------
52
- /**
53
- * Client ⇄ API, on the existing `/ws/agentic` socket. A request the client
54
- * needs answered is acknowledged through the Socket.IO acknowledgement
55
- * callback.
56
- */
57
- exports.COMPUTER_EVENTS = {
58
- /** client → API: attach to a machine. */
59
- attach: 'computer:attach',
60
- /** client → API: leave. */
61
- detach: 'computer:detach',
62
- /**
63
- * client → API: read the whole manifest again ON THE SAME ATTACHMENT, after
64
- * a missed delta or a `stale_epoch` (OSK-13815). The ack carries what an
65
- * attach's does — the attachment id (unchanged), the manifest and the
66
- * operations — or a typed refusal; `not_found` means the attachment is gone
67
- * and only then does the client attach afresh. Re-reading state must never
68
- * change who the reader is: a control lease is bound to the attachment
69
- * (`holderAttachmentId`), and a resync that detached and attached again
70
- * orphaned the hold the person had just taken. Answered by the API, which
71
- * renews the binding with the daemon exactly as its periodic re-check does
72
- * (a repeated `daemon:computer:attach` with the same id), so it has no
73
- * daemon mirror and needs no daemon capability. An API that predates it
74
- * never answers; the client bounds the wait and falls back to attaching
75
- * afresh.
76
- */
77
- resync: 'computer:resync',
78
- /** API → client: this attachment was detached, with the reason (revoked, stale generation, …). */
79
- detached: 'computer:detached',
80
- /** API → client: a whole manifest, or a revisioned delta. */
81
- manifest: 'computer:manifest',
82
- /** client → API: observe one surface. */
83
- subscribe: 'computer:surface:subscribe',
84
- /** client → API: stop observing one surface. */
85
- unsubscribe: 'computer:surface:unsubscribe',
86
- /** API → client: terminal bytes with a byte cursor, or a page frame. */
87
- data: 'computer:surface:data',
88
- /**
89
- * client → API: this viewer painted the page frame `seq` and wants the next.
90
- * A viewer's slot is latest-wins: until it acknowledges, newer frames
91
- * replace the one waiting for it and nothing queues (§6.2, §7.2 R3).
92
- * Never acknowledged.
93
- */
94
- frameAck: 'computer:surface:frame:ack',
95
- /** client → API: take / release / request / grant / decline. */
96
- control: 'computer:surface:control',
97
- /** client → API: share or unshare one of the person's own surfaces with an agent session. */
98
- share: 'computer:surface:share',
99
- /** client → API: one input, carrying the lease epoch. Never acknowledged. */
100
- input: 'computer:surface:input',
101
- /** client → API: open a person's own terminal or browser window. */
102
- open: 'computer:surface:open',
103
- /** client → API: close a surface. */
104
- close: 'computer:surface:close',
105
- /** API → client: activity events. */
106
- activity: 'computer:activity',
107
- /** client → API: the activity events after a `seq`, to fill a gap. */
108
- activityFill: 'computer:activity:fill',
109
- /** client → API: the directories expanded and files open, which scope the file watches. */
110
- filesWatch: 'computer:files:watch',
111
- /**
112
- * API → client: what this attachment's scoped watches saw — paths and kinds,
113
- * never contents — or that they went stale and the tree must be refreshed
114
- * (§6.3 layer 2). Needs `computer_files_watch_v1`.
115
- */
116
- filesChanged: 'computer:files:changed',
117
- /**
118
- * client → API: answer a dialog the page is blocked on. Only the attachment
119
- * holding the browser's lease, at the current epoch. Needs
120
- * `computer_browser_page_v1`.
121
- */
122
- dialog: 'computer:surface:dialog',
123
- /**
124
- * client → API: copy-out — the text the person selected on the page, answered
125
- * to the asking attachment alone and only while it holds the lease at the
126
- * current epoch. Needs `computer_browser_page_v1`.
127
- */
128
- copy: 'computer:surface:copy',
129
- /**
130
- * client → API: answer the file chooser a page opened (§6.2 "a file chooser
131
- * opens a picker over the computer's files, or a local upload"): paths on the
132
- * computer, or none to cancel. Only the attachment holding the browser's
133
- * lease, at the current epoch; the paths are read as the file surface reads
134
- * them. Needs `computer_browser_file_chooser_v1`.
135
- */
136
- fileChooser: 'computer:surface:filechooser',
137
- /** Deliberate semantic teaching in the browser controlled by this attachment. */
138
- teaching: 'computer:surface:teaching',
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
139
9
  };
140
- /**
141
- * API ⇄ daemon. The daemon transports (Socket.IO and SSE) carry no
142
- * acknowledgement callback, so a request the API needs answered carries a
143
- * `requestId` and the daemon answers with `daemon:computer:ack`.
144
- */
145
- exports.DAEMON_COMPUTER_EVENTS = {
146
- // API → daemon
147
- /** Bind an attachment: its principal, operations and (dedicated) generation. */
148
- attach: 'daemon:computer:attach',
149
- detach: 'daemon:computer:detach',
150
- /** The machine's grant set, whole, on registration and on every change. */
151
- grants: 'daemon:computer:grants',
152
- subscribe: 'daemon:computer:surface:subscribe',
153
- unsubscribe: 'daemon:computer:surface:unsubscribe',
154
- frameAck: 'daemon:computer:surface:frame:ack',
155
- control: 'daemon:computer:surface:control',
156
- share: 'daemon:computer:surface:share',
157
- input: 'daemon:computer:surface:input',
158
- open: 'daemon:computer:surface:open',
159
- close: 'daemon:computer:surface:close',
160
- activityFill: 'daemon:computer:activity:fill',
161
- filesWatch: 'daemon:computer:files:watch',
162
- /** One file operation, relayed from `/api/machines/:machineId/files/<op>`. */
163
- files: 'daemon:computer:files',
164
- dialog: 'daemon:computer:surface:dialog',
165
- copy: 'daemon:computer:surface:copy',
166
- fileChooser: 'daemon:computer:surface:filechooser',
167
- teaching: 'daemon:computer:surface:teaching',
168
- /**
169
- * Pin or unpin the surface an open human-input request names (§8): a pinned
170
- * surface is not reclaimed by idle or wall-clock expiry. Fire-and-forget,
171
- * idempotent on the pin id, bounded by its own `until`. Needs
172
- * `computer_surface_pin_v1`.
173
- */
174
- pin: 'daemon:computer:surface:pin',
175
- /**
176
- * Declare, withdraw or list the machine's declared services (§20.5): a web
177
- * service someone started on the machine, named and opened in the
178
- * computer's own browser. Carries a `requestId`, the principal the API
179
- * authorized and, for a declaration, who declared it; the daemon checks the
180
- * principal against the grant set it holds. Needs
181
- * `computer_declared_services_v1`.
182
- */
183
- services: 'daemon:computer:services',
184
- /**
185
- * Read the tail of the daemon's OWN process log (a bounded, redacted copy of
186
- * what its logger wrote since it started), for the owner who asks why their
187
- * machine reconnected. Carries a `requestId` and the principal the API
188
- * authorized (`observe`); the daemon checks the principal against the grant
189
- * set it holds. Needs `computer_daemon_log_v1`.
190
- */
191
- daemonLog: 'daemon:computer:log',
192
- // daemon → API
193
- /** The answer to any request that carried a `requestId`. */
194
- ack: 'daemon:computer:ack',
195
- manifest: 'daemon:computer:manifest',
196
- data: 'daemon:computer:surface:data',
197
- activity: 'daemon:computer:activity',
198
- /** The daemon detached an attachment itself, e.g. its grant was revoked. */
199
- detached: 'daemon:computer:detached',
200
- /** One attachment's scoped watches saw changes, or went stale (§6.3). */
201
- filesChanged: 'daemon:computer:files:changed',
202
- /**
203
- * The daemon's own frame-lane counters (§7.2, OSK-13616), every
204
- * `COMPUTER_DIAGNOSTICS_INTERVAL_MS` while anyone is attached: counters and
205
- * per-viewer timestamps from a closed vocabulary, never content. Needs
206
- * `computer_diagnostics_v1`. Fire-and-forget; a lost report is the next one.
207
- */
208
- diagnostics: 'daemon:computer:diagnostics',
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
209
17
  };
210
- exports.COMPUTER_EVENT_NAMES = Object.values(exports.COMPUTER_EVENTS);
211
- exports.DAEMON_COMPUTER_EVENT_NAMES = Object.values(exports.DAEMON_COMPUTER_EVENTS);
212
- /** The daemon → API events; every other `daemon:computer:*` event flows API → daemon. */
213
- exports.DAEMON_COMPUTER_REPORT_EVENT_KEYS = [
214
- 'ack',
215
- 'manifest',
216
- 'data',
217
- 'activity',
218
- 'detached',
219
- 'filesChanged',
220
- 'diagnostics',
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var computerWire_exports = {};
20
+ __export(computerWire_exports, {
21
+ COMPUTER_ACCESS_LEVELS: () => COMPUTER_ACCESS_LEVELS,
22
+ COMPUTER_ACTIVITY_ACTOR_KINDS: () => COMPUTER_ACTIVITY_ACTOR_KINDS,
23
+ COMPUTER_ACTIVITY_KINDS: () => COMPUTER_ACTIVITY_KINDS,
24
+ COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH: () => COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH,
25
+ COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH: () => COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH,
26
+ COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER: () => COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER,
27
+ COMPUTER_ACTOR_ENGINE_MAX_LENGTH: () => COMPUTER_ACTOR_ENGINE_MAX_LENGTH,
28
+ COMPUTER_ACTOR_KINDS: () => COMPUTER_ACTOR_KINDS,
29
+ COMPUTER_AGENT_WRITE_WAIT_MS: () => COMPUTER_AGENT_WRITE_WAIT_MS,
30
+ COMPUTER_API_ANSWERED_EVENT_KEYS: () => COMPUTER_API_ANSWERED_EVENT_KEYS,
31
+ COMPUTER_BROWSER_COPY_MAX_LENGTH: () => COMPUTER_BROWSER_COPY_MAX_LENGTH,
32
+ COMPUTER_BROWSER_DIALOG_ANSWERERS: () => COMPUTER_BROWSER_DIALOG_ANSWERERS,
33
+ COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH,
34
+ COMPUTER_BROWSER_DIALOG_KINDS: () => COMPUTER_BROWSER_DIALOG_KINDS,
35
+ COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH,
36
+ COMPUTER_BROWSER_DIALOG_OUTCOMES: () => COMPUTER_BROWSER_DIALOG_OUTCOMES,
37
+ COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH,
38
+ COMPUTER_BROWSER_DOWNLOADS_MAX: () => COMPUTER_BROWSER_DOWNLOADS_MAX,
39
+ COMPUTER_BROWSER_DOWNLOAD_STATES: () => COMPUTER_BROWSER_DOWNLOAD_STATES,
40
+ COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH: () => COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH,
41
+ COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES: () => COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES,
42
+ COMPUTER_BROWSER_FILE_CHOOSER_MODES: () => COMPUTER_BROWSER_FILE_CHOOSER_MODES,
43
+ COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES: () => COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES,
44
+ COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH: () => COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH,
45
+ COMPUTER_BROWSER_HISTORY_ACTIONS: () => COMPUTER_BROWSER_HISTORY_ACTIONS,
46
+ COMPUTER_BROWSER_INPUT_PLATFORMS: () => COMPUTER_BROWSER_INPUT_PLATFORMS,
47
+ COMPUTER_BROWSER_INPUT_TYPES: () => COMPUTER_BROWSER_INPUT_TYPES,
48
+ COMPUTER_BROWSER_TAB_ACTIONS: () => COMPUTER_BROWSER_TAB_ACTIONS,
49
+ COMPUTER_BROWSER_URL_MAX_LENGTH: () => COMPUTER_BROWSER_URL_MAX_LENGTH,
50
+ COMPUTER_BROWSER_VIEWPORT: () => COMPUTER_BROWSER_VIEWPORT,
51
+ COMPUTER_BROWSER_VIEWPORT_LIMITS: () => COMPUTER_BROWSER_VIEWPORT_LIMITS,
52
+ COMPUTER_CAPABILITIES: () => COMPUTER_CAPABILITIES,
53
+ COMPUTER_CAPABILITY_VALUES: () => COMPUTER_CAPABILITY_VALUES,
54
+ COMPUTER_COMMAND_NOT_STARTED_SIGNAL: () => COMPUTER_COMMAND_NOT_STARTED_SIGNAL,
55
+ COMPUTER_COMMAND_OUTCOMES: () => COMPUTER_COMMAND_OUTCOMES,
56
+ COMPUTER_COMMAND_OUTPUT_STREAMS: () => COMPUTER_COMMAND_OUTPUT_STREAMS,
57
+ COMPUTER_COMMAND_PHASES: () => COMPUTER_COMMAND_PHASES,
58
+ COMPUTER_COMMAND_START_REFUSALS: () => COMPUTER_COMMAND_START_REFUSALS,
59
+ COMPUTER_COMMAND_UNKNOWN_END_SIGNAL: () => COMPUTER_COMMAND_UNKNOWN_END_SIGNAL,
60
+ COMPUTER_CONTROL_ACTIONS: () => COMPUTER_CONTROL_ACTIONS,
61
+ COMPUTER_CONTROL_ACTIVITY_CHANGES: () => COMPUTER_CONTROL_ACTIVITY_CHANGES,
62
+ COMPUTER_CONTROL_CHANGE_REASONS: () => COMPUTER_CONTROL_CHANGE_REASONS,
63
+ COMPUTER_CONTROL_IDLE_MS: () => COMPUTER_CONTROL_IDLE_MS,
64
+ COMPUTER_DAEMON_LOG_LEVELS: () => COMPUTER_DAEMON_LOG_LEVELS,
65
+ COMPUTER_DAEMON_LOG_LIMITS: () => COMPUTER_DAEMON_LOG_LIMITS,
66
+ COMPUTER_DECLARED_SERVICES_MAX: () => COMPUTER_DECLARED_SERVICES_MAX,
67
+ COMPUTER_DECLARED_SERVICE_ACTIONS: () => COMPUTER_DECLARED_SERVICE_ACTIONS,
68
+ COMPUTER_DECLARED_SERVICE_HOST: () => COMPUTER_DECLARED_SERVICE_HOST,
69
+ COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH: () => COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH,
70
+ COMPUTER_DECLARED_SERVICE_NAME_PATTERN: () => COMPUTER_DECLARED_SERVICE_NAME_PATTERN,
71
+ COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH: () => COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH,
72
+ COMPUTER_DECLARED_SERVICE_PROBLEMS: () => COMPUTER_DECLARED_SERVICE_PROBLEMS,
73
+ COMPUTER_DECLARED_SERVICE_PROTOCOLS: () => COMPUTER_DECLARED_SERVICE_PROTOCOLS,
74
+ COMPUTER_DIAGNOSTICS_INTERVAL_MS: () => COMPUTER_DIAGNOSTICS_INTERVAL_MS,
75
+ COMPUTER_DIAGNOSTICS_MAX_STREAMS: () => COMPUTER_DIAGNOSTICS_MAX_STREAMS,
76
+ COMPUTER_DIAGNOSTIC_COUNTERS: () => COMPUTER_DIAGNOSTIC_COUNTERS,
77
+ COMPUTER_EVENTS: () => COMPUTER_EVENTS,
78
+ COMPUTER_EVENT_NAMES: () => COMPUTER_EVENT_NAMES,
79
+ COMPUTER_FILES_CHANGED_MAX_CHANGES: () => COMPUTER_FILES_CHANGED_MAX_CHANGES,
80
+ COMPUTER_FILES_WATCH_DEGRADED_REASONS: () => COMPUTER_FILES_WATCH_DEGRADED_REASONS,
81
+ COMPUTER_FILE_CHANGES: () => COMPUTER_FILE_CHANGES,
82
+ COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES: () => COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES,
83
+ COMPUTER_FILE_CONTENTS_TAG_PATTERN: () => COMPUTER_FILE_CONTENTS_TAG_PATTERN,
84
+ COMPUTER_FILE_GIT_MARKS: () => COMPUTER_FILE_GIT_MARKS,
85
+ COMPUTER_FILE_GIT_STATUS_BUDGET_MS: () => COMPUTER_FILE_GIT_STATUS_BUDGET_MS,
86
+ COMPUTER_FILE_OPERATIONS: () => COMPUTER_FILE_OPERATIONS,
87
+ COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS: () => COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS,
88
+ COMPUTER_FILE_SEARCH_DEFAULT_LIMIT: () => COMPUTER_FILE_SEARCH_DEFAULT_LIMIT,
89
+ COMPUTER_FILE_SEARCH_MAX_BUDGET_MS: () => COMPUTER_FILE_SEARCH_MAX_BUDGET_MS,
90
+ COMPUTER_FILE_SEARCH_MAX_LIMIT: () => COMPUTER_FILE_SEARCH_MAX_LIMIT,
91
+ COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH: () => COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH,
92
+ COMPUTER_FILE_SEARCH_OPERATIONS: () => COMPUTER_FILE_SEARCH_OPERATIONS,
93
+ COMPUTER_FILE_SEARCH_STATES: () => COMPUTER_FILE_SEARCH_STATES,
94
+ COMPUTER_FILE_TYPES: () => COMPUTER_FILE_TYPES,
95
+ COMPUTER_FILE_WITHHELD_REASONS: () => COMPUTER_FILE_WITHHELD_REASONS,
96
+ COMPUTER_FRAME_ACK_TIMEOUT_MS: () => COMPUTER_FRAME_ACK_TIMEOUT_MS,
97
+ COMPUTER_FRAME_MAX_BYTES: () => COMPUTER_FRAME_MAX_BYTES,
98
+ COMPUTER_GRANT_TIERS: () => COMPUTER_GRANT_TIERS,
99
+ COMPUTER_HANDBACK_NOTE_MAX_LENGTH: () => COMPUTER_HANDBACK_NOTE_MAX_LENGTH,
100
+ COMPUTER_INPUT_TEXT_MAX_LENGTH: () => COMPUTER_INPUT_TEXT_MAX_LENGTH,
101
+ COMPUTER_LEASE_STATE_POWER_PHASE: () => COMPUTER_LEASE_STATE_POWER_PHASE,
102
+ COMPUTER_LIFECYCLE_EVENTS: () => COMPUTER_LIFECYCLE_EVENTS,
103
+ COMPUTER_MACHINE_KINDS: () => COMPUTER_MACHINE_KINDS,
104
+ COMPUTER_MANIFEST_REORDER_WAIT_MS: () => COMPUTER_MANIFEST_REORDER_WAIT_MS,
105
+ COMPUTER_OPERATIONS: () => COMPUTER_OPERATIONS,
106
+ COMPUTER_PERSONAL_POWER_PHASES: () => COMPUTER_PERSONAL_POWER_PHASES,
107
+ COMPUTER_PERSONAL_SIGN_IN_REASONS: () => COMPUTER_PERSONAL_SIGN_IN_REASONS,
108
+ COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES: () => COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES,
109
+ COMPUTER_POWER_PHASES: () => COMPUTER_POWER_PHASES,
110
+ COMPUTER_RECLAIM_WARNING_MS: () => COMPUTER_RECLAIM_WARNING_MS,
111
+ COMPUTER_RECONNECT_GRACE_MS: () => COMPUTER_RECONNECT_GRACE_MS,
112
+ COMPUTER_REFUSAL_CODES: () => COMPUTER_REFUSAL_CODES,
113
+ COMPUTER_RESYNC_TIMEOUT_MS: () => COMPUTER_RESYNC_TIMEOUT_MS,
114
+ COMPUTER_SERVER_EVENT_KEYS: () => COMPUTER_SERVER_EVENT_KEYS,
115
+ COMPUTER_SERVICES_TOOL_ERROR_PREFIX: () => COMPUTER_SERVICES_TOOL_ERROR_PREFIX,
116
+ COMPUTER_SERVICES_TOOL_NAME: () => COMPUTER_SERVICES_TOOL_NAME,
117
+ COMPUTER_SHARE_ACTIONS: () => COMPUTER_SHARE_ACTIONS,
118
+ COMPUTER_SHARE_MODES: () => COMPUTER_SHARE_MODES,
119
+ COMPUTER_START_REFUSALS: () => COMPUTER_START_REFUSALS,
120
+ COMPUTER_SURFACE_END_REASONS: () => COMPUTER_SURFACE_END_REASONS,
121
+ COMPUTER_SURFACE_KINDS: () => COMPUTER_SURFACE_KINDS,
122
+ COMPUTER_SURFACE_PIN_ACTIONS: () => COMPUTER_SURFACE_PIN_ACTIONS,
123
+ COMPUTER_SURFACE_STATES: () => COMPUTER_SURFACE_STATES,
124
+ COMPUTER_SURFACE_UNPIN_REASONS: () => COMPUTER_SURFACE_UNPIN_REASONS,
125
+ COMPUTER_TERMINAL_CAVEATS: () => COMPUTER_TERMINAL_CAVEATS,
126
+ COMPUTER_TERMINAL_CWD_MAX_LENGTH: () => COMPUTER_TERMINAL_CWD_MAX_LENGTH,
127
+ COMPUTER_TERMINAL_HISTORY_CAUSES: () => COMPUTER_TERMINAL_HISTORY_CAUSES,
128
+ COMPUTER_TERMINAL_INPUT_TYPES: () => COMPUTER_TERMINAL_INPUT_TYPES,
129
+ COMPUTER_TERMINAL_LIFETIMES: () => COMPUTER_TERMINAL_LIFETIMES,
130
+ COMPUTER_TERMINAL_SIGNALS: () => COMPUTER_TERMINAL_SIGNALS,
131
+ DAEMON_COMPUTER_EVENTS: () => DAEMON_COMPUTER_EVENTS,
132
+ DAEMON_COMPUTER_EVENT_NAMES: () => DAEMON_COMPUTER_EVENT_NAMES,
133
+ DAEMON_COMPUTER_REPORT_EVENT_KEYS: () => DAEMON_COMPUTER_REPORT_EVENT_KEYS,
134
+ browserActivityOriginAllowed: () => browserActivityOriginAllowed,
135
+ clampComputerBrowserViewport: () => clampComputerBrowserViewport,
136
+ computerAccessOperations: () => computerAccessOperations,
137
+ computerControlChangeIsHolderChange: () => computerControlChangeIsHolderChange,
138
+ computerDeclaredServiceOperation: () => computerDeclaredServiceOperation,
139
+ computerDeclaredServiceSpec: () => computerDeclaredServiceSpec,
140
+ computerDeclaredServiceUrl: () => computerDeclaredServiceUrl,
141
+ computerFileEntityTagsEqual: () => computerFileEntityTagsEqual,
142
+ computerLeaseAcceptsInput: () => computerLeaseAcceptsInput,
143
+ computerLeaseInputRefusal: () => computerLeaseInputRefusal,
144
+ computerOffersPowerActions: () => computerOffersPowerActions,
145
+ computerOperationAllowed: () => computerOperationAllowed,
146
+ computerPowerPhaseForLeaseState: () => computerPowerPhaseForLeaseState,
147
+ computerShowsDesktop: () => computerShowsDesktop,
148
+ computerTierOperations: () => computerTierOperations,
149
+ isComputerPlatformRouteSession: () => isComputerPlatformRouteSession,
150
+ normalizeBrowserActivityOriginPolicy: () => normalizeBrowserActivityOriginPolicy,
151
+ normalizeComputerRefusalCode: () => normalizeComputerRefusalCode
152
+ });
153
+ module.exports = __toCommonJS(computerWire_exports);
154
+ const COMPUTER_EVENTS = {
155
+ /** client → API: attach to a machine. */
156
+ attach: "computer:attach",
157
+ /** client → API: leave. */
158
+ detach: "computer:detach",
159
+ /**
160
+ * client → API: read the whole manifest again ON THE SAME ATTACHMENT, after
161
+ * a missed delta or a `stale_epoch` (OSK-13815). The ack carries what an
162
+ * attach's does — the attachment id (unchanged), the manifest and the
163
+ * operations — or a typed refusal; `not_found` means the attachment is gone
164
+ * and only then does the client attach afresh. Re-reading state must never
165
+ * change who the reader is: a control lease is bound to the attachment
166
+ * (`holderAttachmentId`), and a resync that detached and attached again
167
+ * orphaned the hold the person had just taken. Answered by the API, which
168
+ * renews the binding with the daemon exactly as its periodic re-check does
169
+ * (a repeated `daemon:computer:attach` with the same id), so it has no
170
+ * daemon mirror and needs no daemon capability. An API that predates it
171
+ * never answers; the client bounds the wait and falls back to attaching
172
+ * afresh.
173
+ */
174
+ resync: "computer:resync",
175
+ /** API → client: this attachment was detached, with the reason (revoked, stale generation, …). */
176
+ detached: "computer:detached",
177
+ /** API → client: a whole manifest, or a revisioned delta. */
178
+ manifest: "computer:manifest",
179
+ /** client → API: observe one surface. */
180
+ subscribe: "computer:surface:subscribe",
181
+ /** client → API: stop observing one surface. */
182
+ unsubscribe: "computer:surface:unsubscribe",
183
+ /** API → client: terminal bytes with a byte cursor, or a page frame. */
184
+ data: "computer:surface:data",
185
+ /**
186
+ * client → API: this viewer painted the page frame `seq` and wants the next.
187
+ * A viewer's slot is latest-wins: until it acknowledges, newer frames
188
+ * replace the one waiting for it and nothing queues (§6.2, §7.2 R3).
189
+ * Never acknowledged.
190
+ */
191
+ frameAck: "computer:surface:frame:ack",
192
+ /** client → API: take / release / request / grant / decline. */
193
+ control: "computer:surface:control",
194
+ /** client → API: share or unshare one of the person's own surfaces with an agent session. */
195
+ share: "computer:surface:share",
196
+ /** client → API: one input, carrying the lease epoch. Never acknowledged. */
197
+ input: "computer:surface:input",
198
+ /** client → API: open a person's own terminal or browser window. */
199
+ open: "computer:surface:open",
200
+ /** client → API: close a surface. */
201
+ close: "computer:surface:close",
202
+ /** API → client: activity events. */
203
+ activity: "computer:activity",
204
+ /** client → API: the activity events after a `seq`, to fill a gap. */
205
+ activityFill: "computer:activity:fill",
206
+ /** client → API: the directories expanded and files open, which scope the file watches. */
207
+ filesWatch: "computer:files:watch",
208
+ /**
209
+ * API → client: what this attachment's scoped watches saw — paths and kinds,
210
+ * never contents — or that they went stale and the tree must be refreshed
211
+ * (§6.3 layer 2). Needs `computer_files_watch_v1`.
212
+ */
213
+ filesChanged: "computer:files:changed",
214
+ /**
215
+ * client → API: answer a dialog the page is blocked on. Only the attachment
216
+ * holding the browser's lease, at the current epoch. Needs
217
+ * `computer_browser_page_v1`.
218
+ */
219
+ dialog: "computer:surface:dialog",
220
+ /**
221
+ * client → API: copy-out — the text the person selected on the page, answered
222
+ * to the asking attachment alone and only while it holds the lease at the
223
+ * current epoch. Needs `computer_browser_page_v1`.
224
+ */
225
+ copy: "computer:surface:copy",
226
+ /**
227
+ * client → API: answer the file chooser a page opened (§6.2 "a file chooser
228
+ * opens a picker over the computer's files, or a local upload"): paths on the
229
+ * computer, or none to cancel. Only the attachment holding the browser's
230
+ * lease, at the current epoch; the paths are read as the file surface reads
231
+ * them. Needs `computer_browser_file_chooser_v1`.
232
+ */
233
+ fileChooser: "computer:surface:filechooser",
234
+ /** Deliberate semantic teaching in the browser controlled by this attachment. */
235
+ teaching: "computer:surface:teaching"
236
+ };
237
+ const DAEMON_COMPUTER_EVENTS = {
238
+ // API → daemon
239
+ /** Bind an attachment: its principal, operations and (dedicated) generation. */
240
+ attach: "daemon:computer:attach",
241
+ detach: "daemon:computer:detach",
242
+ /** The machine's grant set, whole, on registration and on every change. */
243
+ grants: "daemon:computer:grants",
244
+ subscribe: "daemon:computer:surface:subscribe",
245
+ unsubscribe: "daemon:computer:surface:unsubscribe",
246
+ frameAck: "daemon:computer:surface:frame:ack",
247
+ control: "daemon:computer:surface:control",
248
+ share: "daemon:computer:surface:share",
249
+ input: "daemon:computer:surface:input",
250
+ open: "daemon:computer:surface:open",
251
+ close: "daemon:computer:surface:close",
252
+ activityFill: "daemon:computer:activity:fill",
253
+ filesWatch: "daemon:computer:files:watch",
254
+ /** One file operation, relayed from `/api/machines/:machineId/files/<op>`. */
255
+ files: "daemon:computer:files",
256
+ dialog: "daemon:computer:surface:dialog",
257
+ copy: "daemon:computer:surface:copy",
258
+ fileChooser: "daemon:computer:surface:filechooser",
259
+ teaching: "daemon:computer:surface:teaching",
260
+ /**
261
+ * Pin or unpin the surface an open human-input request names (§8): a pinned
262
+ * surface is not reclaimed by idle or wall-clock expiry. Fire-and-forget,
263
+ * idempotent on the pin id, bounded by its own `until`. Needs
264
+ * `computer_surface_pin_v1`.
265
+ */
266
+ pin: "daemon:computer:surface:pin",
267
+ /**
268
+ * Declare, withdraw or list the machine's declared services (§20.5): a web
269
+ * service someone started on the machine, named and opened in the
270
+ * computer's own browser. Carries a `requestId`, the principal the API
271
+ * authorized and, for a declaration, who declared it; the daemon checks the
272
+ * principal against the grant set it holds. Needs
273
+ * `computer_declared_services_v1`.
274
+ */
275
+ services: "daemon:computer:services",
276
+ /**
277
+ * Read the tail of the daemon's OWN process log (a bounded, redacted copy of
278
+ * what its logger wrote since it started), for the owner who asks why their
279
+ * machine reconnected. Carries a `requestId` and the principal the API
280
+ * authorized (`observe`); the daemon checks the principal against the grant
281
+ * set it holds. Needs `computer_daemon_log_v1`.
282
+ */
283
+ daemonLog: "daemon:computer:log",
284
+ // daemon → API
285
+ /** The answer to any request that carried a `requestId`. */
286
+ ack: "daemon:computer:ack",
287
+ manifest: "daemon:computer:manifest",
288
+ data: "daemon:computer:surface:data",
289
+ activity: "daemon:computer:activity",
290
+ /** The daemon detached an attachment itself, e.g. its grant was revoked. */
291
+ detached: "daemon:computer:detached",
292
+ /** One attachment's scoped watches saw changes, or went stale (§6.3). */
293
+ filesChanged: "daemon:computer:files:changed",
294
+ /**
295
+ * The daemon's own frame-lane counters (§7.2, OSK-13616), every
296
+ * `COMPUTER_DIAGNOSTICS_INTERVAL_MS` while anyone is attached: counters and
297
+ * per-viewer timestamps from a closed vocabulary, never content. Needs
298
+ * `computer_diagnostics_v1`. Fire-and-forget; a lost report is the next one.
299
+ */
300
+ diagnostics: "daemon:computer:diagnostics"
301
+ };
302
+ const COMPUTER_EVENT_NAMES = Object.values(COMPUTER_EVENTS);
303
+ const DAEMON_COMPUTER_EVENT_NAMES = Object.values(DAEMON_COMPUTER_EVENTS);
304
+ const DAEMON_COMPUTER_REPORT_EVENT_KEYS = [
305
+ "ack",
306
+ "manifest",
307
+ "data",
308
+ "activity",
309
+ "detached",
310
+ "filesChanged",
311
+ "diagnostics"
221
312
  ];
222
- /** The API → client events; every other `computer:*` event flows client → API. */
223
- exports.COMPUTER_SERVER_EVENT_KEYS = [
224
- 'detached',
225
- 'manifest',
226
- 'data',
227
- 'activity',
228
- 'filesChanged',
313
+ const COMPUTER_SERVER_EVENT_KEYS = [
314
+ "detached",
315
+ "manifest",
316
+ "data",
317
+ "activity",
318
+ "filesChanged"
229
319
  ];
230
- /**
231
- * Client → API requests the API answers itself, with no `daemon:computer:*`
232
- * mirror: every other client request is relayed to the daemon under the same
233
- * key. `resync` renews the binding through the daemon's existing attach
234
- * (OSK-13815).
235
- */
236
- exports.COMPUTER_API_ANSWERED_EVENT_KEYS = [
237
- 'resync',
320
+ const COMPUTER_API_ANSWERED_EVENT_KEYS = [
321
+ "resync"
238
322
  ];
239
- /** How long the client waits for a `computer:resync` answer before attaching afresh (an API that predates it never answers). */
240
- exports.COMPUTER_RESYNC_TIMEOUT_MS = 12_000;
241
- /**
242
- * How long a client holds a manifest delta that arrived AHEAD of its
243
- * predecessor before reading the hole as a loss (OSK-13815). Deltas fan out
244
- * through a relay of several replicas; a reorder is milliseconds, a loss is
245
- * forever, and only a loss needs the whole manifest again.
246
- */
247
- exports.COMPUTER_MANIFEST_REORDER_WAIT_MS = 300;
248
- // ---------------------------------------------------------------------------
249
- // Capabilities (§7.1)
250
- // ---------------------------------------------------------------------------
251
- /**
252
- * One capability per wire addition, each withheld positively at dispatch: the
253
- * API never sends a computer event to a daemon that did not announce the
254
- * capability that event belongs to. Activity is part of `computer_v1`.
255
- */
256
- exports.COMPUTER_CAPABILITIES = {
257
- /** Manifest, surfaces, control leases, terminal surfaces, activity core. */
258
- computer: 'computer_v1',
259
- /** The grant set and the daemon's own check of every attachment against it (§9). */
260
- access: 'computer_access_v1',
261
- /** The file surface: `daemon:computer:files` and `computer:files:watch` (§6.3). */
262
- files: 'computer_files_v1',
263
- /**
264
- * Filename and content search and git status decorations over the tenant
265
- * roots, as the workload (§6.3 "Later, same contract"): the `FileSearch` and
266
- * `FileGitStatus` tools. A daemon without it is never asked.
267
- */
268
- filesSearch: 'computer_files_search_v1',
269
- /**
270
- * File mutations fenced on what the person saw (review CW-01, CW-02 and the
271
- * folder-delete finding): an upload commits create-only (`exists` when the
272
- * name was claimed) or over exactly the version chosen to be replaced
273
- * (`replaceTag`, else `file_changed`); a committed transfer leaves a receipt,
274
- * so a resume after a lost final acknowledgement answers "already
275
- * committed"; and `stat` with `contents: true` gives a folder a contents tag that
276
- * a recursive delete presents. A daemon without it would ignore those
277
- * conditions, so the API refuses them `capability_missing` instead of
278
- * sending them.
279
- */
280
- filesFenced: 'computer_files_fenced_v1',
281
- /** Observe attachments on a browser surface, separate from control (§6.2). */
282
- browserObserve: 'computer_browser_observe_v1',
283
- /** A browser surface's tab strip and tab input (§6.2). */
284
- browserTabs: 'computer_browser_tabs_v1',
285
- /**
286
- * The rest of a real browser on a browser surface (§6.2): its pending
287
- * dialogs and its downloads on the descriptor, answering a dialog
288
- * (`computer:surface:dialog`) and copy-out (`computer:surface:copy`).
289
- * Permission prompts are not part of it: Chromium exposes no CDP event for
290
- * them (headless refuses them), so no surface may claim to show one.
291
- */
292
- browserPage: 'computer_browser_page_v1',
293
- browserTeaching: 'computer_browser_teaching_v1',
294
- /** Separately consented, origin-filtered semantic activity review. */
295
- browserActivityReview: 'computer_browser_activity_review_v1',
296
- /** Sharing a person's own surface with an agent session (§5.4). */
297
- surfaceShare: 'computer_surface_share_v1',
298
- /** Pinning a surface an open human-input request names: `daemon:computer:surface:pin` (§8). */
299
- surfacePin: 'computer_surface_pin_v1',
300
- /**
301
- * "Reset browser" — sign out everywhere (§6.2, OSK-13499): the
302
- * `reset_browser` control action on a browser surface. Announced only by a
303
- * daemon whose browser keeps one profile across sessions (a Dedicated
304
- * Runtime guest); a personal machine's browser keeps nothing to reset.
305
- */
306
- browserReset: 'computer_browser_reset_v1',
307
- /**
308
- * Scoped file watches (§6.3 layer 2): `computer:files:watch` is served and
309
- * `computer:files:changed` reports. Announced only where the daemon runs a
310
- * watcher it can stand behind; without it the file tree says it does not
311
- * update by itself and offers a refresh.
312
- */
313
- filesWatch: 'computer_files_watch_v1',
314
- /**
315
- * The file chooser a page opens while a person holds the browser (§6.2,
316
- * OSK-13481): the pending chooser on the descriptor (`fileChooser`) and
317
- * answering it with files on the computer (`computer:surface:file-chooser`).
318
- * Announced only by a daemon whose browser intercepts the chooser.
319
- */
320
- browserFileChooser: 'computer_browser_file_chooser_v1',
321
- /**
322
- * A person's own terminal opens in a folder (§6.3 "Open a terminal here",
323
- * OSK-13615): `computer:surface:open` carries `cwd`, which the daemon checks
324
- * the way the file surface would (the tenant roots as the workload; on a
325
- * personal machine the deny set, `blockedPaths` and home) and refuses typed
326
- * when it may not. Without it the client types `cd` once it holds control.
327
- */
328
- terminalCwd: 'computer_terminal_cwd_v1',
329
- /**
330
- * A run in an agent's interactive shell (`terminal.run`, tool `Terminal`)
331
- * says where in its terminal's byte stream it began: `streamOffset` on its
332
- * `command` activity, the terminal lane's cursor at that moment (§6.1, task
333
- * 5-04b, OSK-13614). A client places such a block inline at that point of
334
- * the terminal; without the capability it keeps every block in the list
335
- * below the terminal, as before.
336
- */
337
- terminalCommandOffset: 'computer_terminal_command_offset_v1',
338
- /**
339
- * The daemon reports its frame-lane counters (`daemon:computer:diagnostics`,
340
- * OSK-13616), so the API's own logs can tell "the daemon stopped sending"
341
- * from "the page did not change". Announced by the relay that sends them;
342
- * the API asks nothing of a daemon without it, and reads its silence as
343
- * "unreported", never as healthy.
344
- */
345
- diagnostics: 'computer_diagnostics_v1',
346
- /**
347
- * Declared services (§20.5, 9-17, OSK-13579): the manifest carries
348
- * `services`, the web services an agent or a person declared on this
349
- * machine, and `daemon:computer:services` (and the agent's
350
- * `computer.services` tool call) declares, withdraws and lists them. A
351
- * service is a localhost port on the machine, opened in the computer's own
352
- * browser; nothing is proxied to it. Announced by the relay that serves it.
353
- */
354
- declaredServices: 'computer_declared_services_v1',
355
- /**
356
- * The daemon serves the tail of its own process log
357
- * (`daemon:computer:log`): an in-memory ring of lines its logger
358
- * wrote, redacted before they enter the ring, read at the `watch` tier. It
359
- * is NOT syslog or the journal and never reads either. Announced by the relay
360
- * that serves it; a personal machine's daemon announces it too and refuses
361
- * the read `consent_missing` until `skrr computer allow`.
362
- */
363
- daemonLog: 'computer_daemon_log_v1',
364
- /**
365
- * The page follows the controlling window (§6.2 "a stable viewport", §7.1,
366
- * OSK-13808): a browser `viewport` input, sent only by the attachment that
367
- * holds the browser's lease at the current epoch, sizes the streamed page
368
- * to that window's content box (`COMPUTER_BROWSER_VIEWPORT_LIMITS`). Only
369
- * while a person holds control: handing back — or the hold lapsing, being
370
- * revoked or moving to the agent any other way — restores the browser's own
371
- * viewport before the agent can act, so an agent never inherits a person's
372
- * size. Watchers keep seeing the page at whatever size it is, scaled to
373
- * fit. Announced only where the browser driver can override and restore
374
- * the page's metrics; without it the window scales the fixed page, as
375
- * before, and never sends the input.
376
- */
377
- browserViewport: 'computer_browser_viewport_v1',
378
- /**
379
- * A browser surface whose browser is still starting says so (OSK-13824): its
380
- * descriptor carries `starting: { since }` from the moment its Chromium
381
- * begins to launch until that launch ends (running, or failed), and the
382
- * window shows "Starting the browser…" instead of subscribing into a
383
- * refusal. A cold start on a fresh guest takes 25–30 s. A daemon announcing
384
- * this states the ABSENCE of `starting` too: a browser surface without it
385
- * is not starting. Without the announcement a client cannot tell, and falls
386
- * back to reading a surface it saw open moments ago as starting.
387
- */
388
- browserStarting: 'computer_browser_starting_v1',
389
- /**
390
- * An agent actor on the machine's activity and control leases (OSK-13827)
391
- * names the REAL agent: `agentId` is the agent's own id for tool-call and
392
- * browser sessions too (v1 daemons put the SESSION id there for tool calls,
393
- * so no reader could ever name them), and may carry `engine`, the harness
394
- * the session runs on, so one agent's sessions on different engines can be
395
- * told apart. A daemon announcing this states what it sends; the server
396
- * withholds `engine` from every other daemon's actors, and a reader treats
397
- * an actor without it as it always did.
398
- */
399
- activityActorV2: 'computer_activity_actor_v2',
323
+ const COMPUTER_RESYNC_TIMEOUT_MS = 12e3;
324
+ const COMPUTER_MANIFEST_REORDER_WAIT_MS = 300;
325
+ const COMPUTER_CAPABILITIES = {
326
+ /** Manifest, surfaces, control leases, terminal surfaces, activity core. */
327
+ computer: "computer_v1",
328
+ /** The grant set and the daemon's own check of every attachment against it (§9). */
329
+ access: "computer_access_v1",
330
+ /** The file surface: `daemon:computer:files` and `computer:files:watch` (§6.3). */
331
+ files: "computer_files_v1",
332
+ /**
333
+ * Filename and content search and git status decorations over the tenant
334
+ * roots, as the workload (§6.3 "Later, same contract"): the `FileSearch` and
335
+ * `FileGitStatus` tools. A daemon without it is never asked.
336
+ */
337
+ filesSearch: "computer_files_search_v1",
338
+ /**
339
+ * File mutations fenced on what the person saw (review CW-01, CW-02 and the
340
+ * folder-delete finding): an upload commits create-only (`exists` when the
341
+ * name was claimed) or over exactly the version chosen to be replaced
342
+ * (`replaceTag`, else `file_changed`); a committed transfer leaves a receipt,
343
+ * so a resume after a lost final acknowledgement answers "already
344
+ * committed"; and `stat` with `contents: true` gives a folder a contents tag that
345
+ * a recursive delete presents. A daemon without it would ignore those
346
+ * conditions, so the API refuses them `capability_missing` instead of
347
+ * sending them.
348
+ */
349
+ filesFenced: "computer_files_fenced_v1",
350
+ /** Observe attachments on a browser surface, separate from control (§6.2). */
351
+ browserObserve: "computer_browser_observe_v1",
352
+ /** A browser surface's tab strip and tab input (§6.2). */
353
+ browserTabs: "computer_browser_tabs_v1",
354
+ /**
355
+ * The rest of a real browser on a browser surface (§6.2): its pending
356
+ * dialogs and its downloads on the descriptor, answering a dialog
357
+ * (`computer:surface:dialog`) and copy-out (`computer:surface:copy`).
358
+ * Permission prompts are not part of it: Chromium exposes no CDP event for
359
+ * them (headless refuses them), so no surface may claim to show one.
360
+ */
361
+ browserPage: "computer_browser_page_v1",
362
+ browserTeaching: "computer_browser_teaching_v1",
363
+ /** Separately consented, origin-filtered semantic activity review. */
364
+ browserActivityReview: "computer_browser_activity_review_v1",
365
+ /** Sharing a person's own surface with an agent session (§5.4). */
366
+ surfaceShare: "computer_surface_share_v1",
367
+ /** Pinning a surface an open human-input request names: `daemon:computer:surface:pin` (§8). */
368
+ surfacePin: "computer_surface_pin_v1",
369
+ /**
370
+ * "Reset browser" — sign out everywhere (§6.2, OSK-13499): the
371
+ * `reset_browser` control action on a browser surface. Announced only by a
372
+ * daemon whose browser keeps one profile across sessions (a Dedicated
373
+ * Runtime guest); a personal machine's browser keeps nothing to reset.
374
+ */
375
+ browserReset: "computer_browser_reset_v1",
376
+ /**
377
+ * Scoped file watches (§6.3 layer 2): `computer:files:watch` is served and
378
+ * `computer:files:changed` reports. Announced only where the daemon runs a
379
+ * watcher it can stand behind; without it the file tree says it does not
380
+ * update by itself and offers a refresh.
381
+ */
382
+ filesWatch: "computer_files_watch_v1",
383
+ /**
384
+ * The file chooser a page opens while a person holds the browser (§6.2,
385
+ * OSK-13481): the pending chooser on the descriptor (`fileChooser`) and
386
+ * answering it with files on the computer (`computer:surface:file-chooser`).
387
+ * Announced only by a daemon whose browser intercepts the chooser.
388
+ */
389
+ browserFileChooser: "computer_browser_file_chooser_v1",
390
+ /**
391
+ * A person's own terminal opens in a folder (§6.3 "Open a terminal here",
392
+ * OSK-13615): `computer:surface:open` carries `cwd`, which the daemon checks
393
+ * the way the file surface would (the tenant roots as the workload; on a
394
+ * personal machine the deny set, `blockedPaths` and home) and refuses typed
395
+ * when it may not. Without it the client types `cd` once it holds control.
396
+ */
397
+ terminalCwd: "computer_terminal_cwd_v1",
398
+ /**
399
+ * A run in an agent's interactive shell (`terminal.run`, tool `Terminal`)
400
+ * says where in its terminal's byte stream it began: `streamOffset` on its
401
+ * `command` activity, the terminal lane's cursor at that moment (§6.1, task
402
+ * 5-04b, OSK-13614). A client places such a block inline at that point of
403
+ * the terminal; without the capability it keeps every block in the list
404
+ * below the terminal, as before.
405
+ */
406
+ terminalCommandOffset: "computer_terminal_command_offset_v1",
407
+ /**
408
+ * The daemon reports its frame-lane counters (`daemon:computer:diagnostics`,
409
+ * OSK-13616), so the API's own logs can tell "the daemon stopped sending"
410
+ * from "the page did not change". Announced by the relay that sends them;
411
+ * the API asks nothing of a daemon without it, and reads its silence as
412
+ * "unreported", never as healthy.
413
+ */
414
+ diagnostics: "computer_diagnostics_v1",
415
+ /**
416
+ * Declared services (§20.5, 9-17, OSK-13579): the manifest carries
417
+ * `services`, the web services an agent or a person declared on this
418
+ * machine, and `daemon:computer:services` (and the agent's
419
+ * `computer.services` tool call) declares, withdraws and lists them. A
420
+ * service is a localhost port on the machine, opened in the computer's own
421
+ * browser; nothing is proxied to it. Announced by the relay that serves it.
422
+ */
423
+ declaredServices: "computer_declared_services_v1",
424
+ /**
425
+ * The daemon serves the tail of its own process log
426
+ * (`daemon:computer:log`): an in-memory ring of lines its logger
427
+ * wrote, redacted before they enter the ring, read at the `watch` tier. It
428
+ * is NOT syslog or the journal and never reads either. Announced by the relay
429
+ * that serves it; a personal machine's daemon announces it too and refuses
430
+ * the read `consent_missing` until `skrr computer allow`.
431
+ */
432
+ daemonLog: "computer_daemon_log_v1",
433
+ /**
434
+ * The page follows the controlling window (§6.2 "a stable viewport", §7.1,
435
+ * OSK-13808): a browser `viewport` input, sent only by the attachment that
436
+ * holds the browser's lease at the current epoch, sizes the streamed page
437
+ * to that window's content box (`COMPUTER_BROWSER_VIEWPORT_LIMITS`). Only
438
+ * while a person holds control: handing back — or the hold lapsing, being
439
+ * revoked or moving to the agent any other way — restores the browser's own
440
+ * viewport before the agent can act, so an agent never inherits a person's
441
+ * size. Watchers keep seeing the page at whatever size it is, scaled to
442
+ * fit. Announced only where the browser driver can override and restore
443
+ * the page's metrics; without it the window scales the fixed page, as
444
+ * before, and never sends the input.
445
+ */
446
+ browserViewport: "computer_browser_viewport_v1",
447
+ /**
448
+ * A browser surface whose browser is still starting says so (OSK-13824): its
449
+ * descriptor carries `starting: { since }` from the moment its Chromium
450
+ * begins to launch until that launch ends (running, or failed), and the
451
+ * window shows "Starting the browser…" instead of subscribing into a
452
+ * refusal. A cold start on a fresh guest takes 25–30 s. A daemon announcing
453
+ * this states the ABSENCE of `starting` too: a browser surface without it
454
+ * is not starting. Without the announcement a client cannot tell, and falls
455
+ * back to reading a surface it saw open moments ago as starting.
456
+ */
457
+ browserStarting: "computer_browser_starting_v1",
458
+ /**
459
+ * An agent actor on the machine's activity and control leases (OSK-13827)
460
+ * names the REAL agent: `agentId` is the agent's own id for tool-call and
461
+ * browser sessions too (v1 daemons put the SESSION id there for tool calls,
462
+ * so no reader could ever name them), and may carry `engine`, the harness
463
+ * the session runs on, so one agent's sessions on different engines can be
464
+ * told apart. A daemon announcing this states what it sends; the server
465
+ * withholds `engine` from every other daemon's actors, and a reader treats
466
+ * an actor without it as it always did.
467
+ */
468
+ activityActorV2: "computer_activity_actor_v2"
400
469
  };
401
- exports.COMPUTER_CAPABILITY_VALUES = Object.values(exports.COMPUTER_CAPABILITIES);
402
- // ---------------------------------------------------------------------------
403
- // Refusals (§5.2, §6.3, §7.2 R4/R8, §9, §18)
404
- // ---------------------------------------------------------------------------
405
- /**
406
- * Every refusal and limit the computer protocol can answer with. Callers branch
407
- * on the code; a message beside it is free text and may change.
408
- */
409
- exports.COMPUTER_REFUSAL_CODES = [
410
- /** A person holds the surface; the agent may wait, do other work, or ask. */
411
- 'human_control',
412
- /** The input was issued under a lease epoch that is no longer current. */
413
- 'stale_epoch',
414
- /** The attachment is bound to a Dedicated Runtime generation that has been replaced. */
415
- 'stale_generation',
416
- /** The file changed since it was read; the refusal carries the current tag. */
417
- 'file_changed',
418
- /** The machine's daemon did not announce the capability this needs. */
419
- 'capability_missing',
420
- /** The principal may not perform this operation on this machine. */
421
- 'unauthorized',
422
- /** Control cannot move this way, e.g. an agent asking to take from a person. */
423
- 'control_denied',
424
- /** The attachment does not hold the lease it is acting under. */
425
- 'not_holder',
426
- 'attachment_limit',
427
- 'observer_limit',
428
- 'watch_limit',
429
- 'grant_limit',
430
- /** The machine runs as many browsers as it allows; a person's own window waits for one to close. */
431
- 'browser_limit',
432
- 'rate_limited',
433
- /** The machine, surface, tab or request does not exist. */
434
- 'not_found',
435
- /** The surface has ended. */
436
- 'surface_ended',
437
- /** The machine is not running (§10 decides the picture). */
438
- 'machine_unavailable',
439
- /** The machine's daemon is not answering. */
440
- 'daemon_unreachable',
441
- /**
442
- * The relay failed while answering — an exception, not a fact about the
443
- * machine. Retryable; the API log carries the same `correlationId`
444
- * (OSK-13823). Never `machine_unavailable`, which says the machine is down.
445
- */
446
- 'relay_error',
447
- /** A bounded wait ran out (§7.2 R4). */
448
- 'timeout',
449
- 'invalid_request',
450
- /** A personal machine has not allowed this part of the computer (§18, D11). */
451
- 'consent_missing',
452
- /** The path is withheld by the daemon's deny set, `blockedPaths` or a sensitive pattern (§18). */
453
- 'path_withheld',
454
- /** The file is over the size the editor or the read accepts. */
455
- 'too_large',
456
- /** The machine has as many declared services as it allows (`COMPUTER_DECLARED_SERVICES_MAX`). */
457
- 'service_limit',
470
+ const COMPUTER_CAPABILITY_VALUES = Object.values(COMPUTER_CAPABILITIES);
471
+ const COMPUTER_REFUSAL_CODES = [
472
+ /** A person holds the surface; the agent may wait, do other work, or ask. */
473
+ "human_control",
474
+ /** The input was issued under a lease epoch that is no longer current. */
475
+ "stale_epoch",
476
+ /** The attachment is bound to a Dedicated Runtime generation that has been replaced. */
477
+ "stale_generation",
478
+ /** The file changed since it was read; the refusal carries the current tag. */
479
+ "file_changed",
480
+ /** The machine's daemon did not announce the capability this needs. */
481
+ "capability_missing",
482
+ /** The principal may not perform this operation on this machine. */
483
+ "unauthorized",
484
+ /** Control cannot move this way, e.g. an agent asking to take from a person. */
485
+ "control_denied",
486
+ /** The attachment does not hold the lease it is acting under. */
487
+ "not_holder",
488
+ "attachment_limit",
489
+ "observer_limit",
490
+ "watch_limit",
491
+ "grant_limit",
492
+ /** The machine runs as many browsers as it allows; a person's own window waits for one to close. */
493
+ "browser_limit",
494
+ "rate_limited",
495
+ /** The machine, surface, tab or request does not exist. */
496
+ "not_found",
497
+ /** The surface has ended. */
498
+ "surface_ended",
499
+ /** The machine is not running (§10 decides the picture). */
500
+ "machine_unavailable",
501
+ /** The machine's daemon is not answering. */
502
+ "daemon_unreachable",
503
+ /**
504
+ * The relay failed while answering — an exception, not a fact about the
505
+ * machine. Retryable; the API log carries the same `correlationId`
506
+ * (OSK-13823). Never `machine_unavailable`, which says the machine is down.
507
+ */
508
+ "relay_error",
509
+ /** A bounded wait ran out (§7.2 R4). */
510
+ "timeout",
511
+ "invalid_request",
512
+ /** A personal machine has not allowed this part of the computer (§18, D11). */
513
+ "consent_missing",
514
+ /** The path is withheld by the daemon's deny set, `blockedPaths` or a sensitive pattern (§18). */
515
+ "path_withheld",
516
+ /** The file is over the size the editor or the read accepts. */
517
+ "too_large",
518
+ /** The machine has as many declared services as it allows (`COMPUTER_DECLARED_SERVICES_MAX`). */
519
+ "service_limit"
458
520
  ];
459
- /**
460
- * The code when it is a computer refusal, else `null`. There is one spelling
461
- * per code: the browser's older spelling of `human_control` was accepted for
462
- * one release and retired with the old browser events (§5.2, OSK-13509).
463
- */
464
521
  function normalizeComputerRefusalCode(code) {
465
- if (typeof code !== 'string') {
466
- return null;
467
- }
468
- return exports.COMPUTER_REFUSAL_CODES.includes(code)
469
- ? code
470
- : null;
522
+ if (typeof code !== "string") {
523
+ return null;
524
+ }
525
+ return COMPUTER_REFUSAL_CODES.includes(code) ? code : null;
471
526
  }
472
- // ---------------------------------------------------------------------------
473
- // Actors, operations and grant tiers (§4.2, §9, D10)
474
- // ---------------------------------------------------------------------------
475
- exports.COMPUTER_ACTOR_KINDS = ['agent', 'human'];
476
- /**
477
- * Who an activity event is attributed to. `system` is what happened with no
478
- * actor behind it — a process exited, the machine stopped — and appears ONLY
479
- * on activity: it never holds a lease, is never present, is never audited as
480
- * an actor. Without it on the wire every lifecycle event was dropped by the
481
- * API and a client saw a `seq` hole no fill could close.
482
- */
483
- exports.COMPUTER_ACTIVITY_ACTOR_KINDS = [...exports.COMPUTER_ACTOR_KINDS, 'system'];
484
- /**
485
- * The session ids the PLATFORM's own routes run daemon tools under — the web
486
- * Files surface (`computer-files:` on a personal machine, `dedicated-runtime:`
487
- * on a Dedicated Runtime) and the owner's `skrr machines dedicated` commands.
488
- * No agent and no model is behind such a session: the person who asked is
489
- * known to the API (which audits it), not to the daemon. So an activity event
490
- * produced under one names no agent (OSK-13790: a person's upload used to read
491
- * "agent created …"). Built by `ComputerFileService.runPersonalMachineTool`
492
- * and `DedicatedRuntimeMachineAccess.runDedicatedRuntimeTool`.
493
- */
494
- exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = [
495
- 'dedicated-runtime:',
496
- 'computer-files:',
527
+ const COMPUTER_ACTOR_KINDS = ["agent", "human"];
528
+ const COMPUTER_ACTIVITY_ACTOR_KINDS = [...COMPUTER_ACTOR_KINDS, "system"];
529
+ const COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = [
530
+ "dedicated-runtime:",
531
+ "computer-files:"
497
532
  ];
498
- /** Whether a tool call's session is one of the platform's own routes, not an agent's. */
499
533
  function isComputerPlatformRouteSession(sessionId) {
500
- return (typeof sessionId === 'string' &&
501
- exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES.some((prefix) => sessionId.startsWith(prefix)));
534
+ return typeof sessionId === "string" && COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES.some((prefix) => sessionId.startsWith(prefix));
502
535
  }
503
- /** The longest `engine` the wire carries; a longer one is not an engine name. */
504
- exports.COMPUTER_ACTOR_ENGINE_MAX_LENGTH = 64;
505
- /**
506
- * How a person present on the machine reached it: as its owner, or through a
507
- * grant at one of the two tiers. Agents carry no access level — an agent
508
- * session acts with its own run's authority, not a grant.
509
- */
510
- exports.COMPUTER_ACCESS_LEVELS = ['owner', 'watch', 'operate'];
511
- /**
512
- * What a principal may do on a computer. Kept separate so a refusal says
513
- * exactly what was refused. `power`, closing other people's surfaces and
514
- * managing grants stay with the owner; no tier contains `power`.
515
- */
516
- exports.COMPUTER_OPERATIONS = [
517
- 'observe',
518
- 'control',
519
- 'files.read',
520
- 'files.write',
521
- 'open',
522
- 'power',
536
+ const COMPUTER_ACTOR_ENGINE_MAX_LENGTH = 64;
537
+ const COMPUTER_ACCESS_LEVELS = ["owner", "watch", "operate"];
538
+ const COMPUTER_OPERATIONS = [
539
+ "observe",
540
+ "control",
541
+ "files.read",
542
+ "files.write",
543
+ "open",
544
+ "power"
523
545
  ];
524
- /** A grant is one of two fixed tiers: a finer grant cannot be enforced on a shell. */
525
- exports.COMPUTER_GRANT_TIERS = ['watch', 'operate'];
546
+ const COMPUTER_GRANT_TIERS = ["watch", "operate"];
526
547
  const TIER_OPERATIONS = Object.freeze({
527
- /** See every surface on the machine and its activity. No input, no file browsing. */
528
- watch: Object.freeze(['observe']),
529
- /** The machine's account in another person's hands. */
530
- operate: Object.freeze(['observe', 'control', 'files.read', 'files.write', 'open']),
548
+ /** See every surface on the machine and its activity. No input, no file browsing. */
549
+ watch: Object.freeze(["observe"]),
550
+ /** The machine's account in another person's hands. */
551
+ operate: Object.freeze(["observe", "control", "files.read", "files.write", "open"])
531
552
  });
532
- /** The fixed set of operations a grant tier carries. */
533
553
  function computerTierOperations(tier) {
534
- return TIER_OPERATIONS[tier];
554
+ return TIER_OPERATIONS[tier];
535
555
  }
536
- /** Whether a grant tier carries `operation`. */
537
556
  function computerOperationAllowed(tier, operation) {
538
- return TIER_OPERATIONS[tier].includes(operation);
557
+ return TIER_OPERATIONS[tier].includes(operation);
539
558
  }
540
- /** The operations an access level carries: the owner holds every one. */
541
559
  function computerAccessOperations(level) {
542
- return level === 'owner' ? exports.COMPUTER_OPERATIONS : TIER_OPERATIONS[level];
560
+ return level === "owner" ? COMPUTER_OPERATIONS : TIER_OPERATIONS[level];
543
561
  }
544
- // ---------------------------------------------------------------------------
545
- // Control leases (§4.3, §5)
546
- // ---------------------------------------------------------------------------
547
- /** A person releasing control may leave a note for the agent (§8). */
548
- exports.COMPUTER_HANDBACK_NOTE_MAX_LENGTH = 2000;
549
- /** A person holding control is released after this long without human input (§5.1 rule 4). */
550
- exports.COMPUTER_CONTROL_IDLE_MS = 10 * 60 * 1000;
551
- /** How long before idle reclaim of a person's hold the daemon says it is coming (§8). */
552
- exports.COMPUTER_RECLAIM_WARNING_MS = 60 * 1000;
553
- /** A transport blip shorter than this changes no lease (§7.2 R6). */
554
- exports.COMPUTER_RECONNECT_GRACE_MS = 10 * 1000;
555
- /** An agent terminal write waits this long for a person to hand back before refusing (§5.2). */
556
- exports.COMPUTER_AGENT_WRITE_WAIT_MS = 60 * 1000;
557
- /** What a person can do to a surface's lease (§5.1, §5.3). */
558
- exports.COMPUTER_CONTROL_ACTIONS = [
559
- /** A person takes an agent-held surface. Human priority over the agent is unconditional. */
560
- 'take',
561
- /** The holder hands back, optionally with a note. */
562
- 'release',
563
- /** Ask a PERSON who holds the surface for it; leaves the lease untouched. */
564
- 'request',
565
- /** The holding person gives the surface to the person who requested it. */
566
- 'grant',
567
- /** The holding person declines a request. Changes nothing. */
568
- 'decline',
569
- /**
570
- * The person who stopped driving a browser without handing it back says the
571
- * agent may see the page again (D12). Changes no holder.
572
- */
573
- 'reveal',
574
- /**
575
- * Sign out everywhere (§6.2, OSK-13499): end every browser window on the
576
- * computer — the agent's and the person's, which share one cookie jar —
577
- * stop the browser and remove its profile. On a browser surface, by the
578
- * owner or the person holding it; never an observer. Needs
579
- * `computer_browser_reset_v1`. Answers with the asking surface's last lease.
580
- */
581
- 'reset_browser',
562
+ const COMPUTER_HANDBACK_NOTE_MAX_LENGTH = 2e3;
563
+ const COMPUTER_CONTROL_IDLE_MS = 10 * 60 * 1e3;
564
+ const COMPUTER_RECLAIM_WARNING_MS = 60 * 1e3;
565
+ const COMPUTER_RECONNECT_GRACE_MS = 10 * 1e3;
566
+ const COMPUTER_AGENT_WRITE_WAIT_MS = 60 * 1e3;
567
+ const COMPUTER_CONTROL_ACTIONS = [
568
+ /** A person takes an agent-held surface. Human priority over the agent is unconditional. */
569
+ "take",
570
+ /** The holder hands back, optionally with a note. */
571
+ "release",
572
+ /** Ask a PERSON who holds the surface for it; leaves the lease untouched. */
573
+ "request",
574
+ /** The holding person gives the surface to the person who requested it. */
575
+ "grant",
576
+ /** The holding person declines a request. Changes nothing. */
577
+ "decline",
578
+ /**
579
+ * The person who stopped driving a browser without handing it back says the
580
+ * agent may see the page again (D12). Changes no holder.
581
+ */
582
+ "reveal",
583
+ /**
584
+ * Sign out everywhere (§6.2, OSK-13499): end every browser window on the
585
+ * computer — the agent's and the person's, which share one cookie jar —
586
+ * stop the browser and remove its profile. On a browser surface, by the
587
+ * owner or the person holding it; never an observer. Needs
588
+ * `computer_browser_reset_v1`. Answers with the asking surface's last lease.
589
+ */
590
+ "reset_browser"
582
591
  ];
583
- /** Sharing one of a person's own surfaces with one agent session (§5.4). */
584
- exports.COMPUTER_SHARE_ACTIONS = ['share', 'unshare'];
585
- exports.COMPUTER_SHARE_MODES = ['observe', 'control'];
586
- /** `daemon:computer:surface:pin` actions (§8). */
587
- exports.COMPUTER_SURFACE_PIN_ACTIONS = ['pin', 'unpin'];
588
- /** Why a pin ended: the request it held the surface for left `open`. */
589
- exports.COMPUTER_SURFACE_UNPIN_REASONS = ['answered', 'dismissed', 'expired'];
590
- /** Why a lease changed holder. Carried by `control` activity events and the audit record. */
591
- exports.COMPUTER_CONTROL_CHANGE_REASONS = [
592
- 'take',
593
- 'release',
594
- 'grant',
595
- /** No human input for `COMPUTER_CONTROL_IDLE_MS`. */
596
- 'idle',
597
- /** The holding client stayed disconnected past the reconnect grace. */
598
- 'disconnect',
599
- /** A person's surface was shared with an agent session for control. */
600
- 'share',
601
- /** The share ended: unshared, or the agent session ended. */
602
- 'unshare',
603
- /** The holder's grant was revoked. */
604
- 'revoked',
605
- 'machine_stopped',
592
+ const COMPUTER_SHARE_ACTIONS = ["share", "unshare"];
593
+ const COMPUTER_SHARE_MODES = ["observe", "control"];
594
+ const COMPUTER_SURFACE_PIN_ACTIONS = ["pin", "unpin"];
595
+ const COMPUTER_SURFACE_UNPIN_REASONS = ["answered", "dismissed", "expired"];
596
+ const COMPUTER_CONTROL_CHANGE_REASONS = [
597
+ "take",
598
+ "release",
599
+ "grant",
600
+ /** No human input for `COMPUTER_CONTROL_IDLE_MS`. */
601
+ "idle",
602
+ /** The holding client stayed disconnected past the reconnect grace. */
603
+ "disconnect",
604
+ /** A person's surface was shared with an agent session for control. */
605
+ "share",
606
+ /** The share ended: unshared, or the agent session ended. */
607
+ "unshare",
608
+ /** The holder's grant was revoked. */
609
+ "revoked",
610
+ "machine_stopped"
606
611
  ];
607
- /**
608
- * What a `control` activity event reports: a change of holder (one of
609
- * `COMPUTER_CONTROL_CHANGE_REASONS`), a person-to-person request's lifecycle,
610
- * or a reveal (D12). Only the first changes the holder or the epoch's owner;
611
- * {@link computerControlChangeIsHolderChange} tells them apart.
612
- */
613
- exports.COMPUTER_CONTROL_ACTIVITY_CHANGES = [
614
- ...exports.COMPUTER_CONTROL_CHANGE_REASONS,
615
- /** A person asked the holding person for the surface. */
616
- 'request',
617
- 'request_declined',
618
- 'request_expired',
619
- 'request_withdrawn',
620
- /** The page is visible to the agent again; no holder changed. */
621
- 'revealed',
612
+ const COMPUTER_CONTROL_ACTIVITY_CHANGES = [
613
+ ...COMPUTER_CONTROL_CHANGE_REASONS,
614
+ /** A person asked the holding person for the surface. */
615
+ "request",
616
+ "request_declined",
617
+ "request_expired",
618
+ "request_withdrawn",
619
+ /** The page is visible to the agent again; no holder changed. */
620
+ "revealed"
622
621
  ];
623
- /** Whether a `control` activity change moved the lease to a new holder. */
624
622
  function computerControlChangeIsHolderChange(change) {
625
- return exports.COMPUTER_CONTROL_CHANGE_REASONS.includes(change);
623
+ return COMPUTER_CONTROL_CHANGE_REASONS.includes(change);
626
624
  }
627
- /**
628
- * Why an input from `attachmentId`, issued under `epoch`, must be dropped — or
629
- * `null` when the lease accepts it.
630
- *
631
- * The epoch is checked first: an input issued under an epoch that is no longer
632
- * current is the in-flight keystroke the fence exists for, whoever sent it.
633
- * Only a current-epoch input from an attachment that does not hold the lease
634
- * is `not_holder`. An agent-held lease accepts no attachment's input.
635
- */
636
625
  function computerLeaseInputRefusal(lease, attachmentId, epoch) {
637
- if (lease.epoch !== epoch) {
638
- return 'stale_epoch';
639
- }
640
- if (lease.holder.kind !== 'human' || !lease.holderAttachmentId) {
641
- return 'not_holder';
642
- }
643
- return lease.holderAttachmentId === attachmentId ? null : 'not_holder';
626
+ if (lease.epoch !== epoch) {
627
+ return "stale_epoch";
628
+ }
629
+ if (lease.holder.kind !== "human" || !lease.holderAttachmentId) {
630
+ return "not_holder";
631
+ }
632
+ return lease.holderAttachmentId === attachmentId ? null : "not_holder";
644
633
  }
645
- /** Whether the lease accepts an input from `attachmentId` issued under `epoch`. */
646
634
  function computerLeaseAcceptsInput(lease, attachmentId, epoch) {
647
- return computerLeaseInputRefusal(lease, attachmentId, epoch) === null;
635
+ return computerLeaseInputRefusal(lease, attachmentId, epoch) === null;
648
636
  }
649
- // ---------------------------------------------------------------------------
650
- // Surfaces and lanes (§4.2, §6.1, §6.2, §7.2 R3/R7)
651
- // ---------------------------------------------------------------------------
652
- /** Files are a namespace, not a leased surface (§6.3). */
653
- exports.COMPUTER_SURFACE_KINDS = ['terminal', 'browser'];
654
- exports.COMPUTER_SURFACE_STATES = ['live', 'ended'];
655
- /**
656
- * Why a surface ended (§10). An ended surface stays as a tombstone with its
657
- * history until dismissed, and its reason is shown, never swallowed.
658
- */
659
- exports.COMPUTER_SURFACE_END_REASONS = [
660
- 'machine_stopped',
661
- /** The machine's owner closed a surface someone else opened (§5.1 rule 8). */
662
- 'closed_by_owner',
663
- /** Whoever opened the surface closed it. */
664
- 'closed',
665
- 'process_exited',
666
- 'daemon_restarted',
667
- 'browser_crashed',
668
- /** The browser session was reclaimed by idle or wall-clock expiry. */
669
- 'expired',
670
- /** Someone signed the computer's browser out everywhere, which ends every browser window. */
671
- 'browser_reset',
637
+ const COMPUTER_SURFACE_KINDS = ["terminal", "browser"];
638
+ const COMPUTER_SURFACE_STATES = ["live", "ended"];
639
+ const COMPUTER_SURFACE_END_REASONS = [
640
+ "machine_stopped",
641
+ /** The machine's owner closed a surface someone else opened (§5.1 rule 8). */
642
+ "closed_by_owner",
643
+ /** Whoever opened the surface closed it. */
644
+ "closed",
645
+ "process_exited",
646
+ "daemon_restarted",
647
+ "browser_crashed",
648
+ /** The browser session was reclaimed by idle or wall-clock expiry. */
649
+ "expired",
650
+ /** Someone signed the computer's browser out everywhere, which ends every browser window. */
651
+ "browser_reset"
672
652
  ];
673
- /**
674
- * The browser's logical viewport whoever is looking (§6.2): what the agent
675
- * always works at. A person holding control may size the page to their window
676
- * (`computer_browser_viewport_v1`); handing back restores this.
677
- */
678
- exports.COMPUTER_BROWSER_VIEWPORT = Object.freeze({ width: 1280, height: 800 });
679
- /** One frame never exceeds this, so it fits the SSE transport every guest uses (§7.2 R7). */
680
- exports.COMPUTER_FRAME_MAX_BYTES = 1024 * 1024;
681
- /**
682
- * A viewer's frame slot frees itself after this long without the viewer's
683
- * acknowledgement. The relay cannot promise delivery of the acknowledgement
684
- * either, and a lost one must not freeze a viewer that is still painting; a
685
- * viewer that really stalled still gets at most one frame per bound, never a
686
- * backlog.
687
- */
688
- exports.COMPUTER_FRAME_ACK_TIMEOUT_MS = 5_000;
689
- /**
690
- * The daemon's frame-lane counters (`daemon:computer:diagnostics`, OSK-13616).
691
- * Cumulative since `since`, so a lost report loses nothing but its moment.
692
- */
693
- exports.COMPUTER_DIAGNOSTIC_COUNTERS = [
694
- /** The browser handed the lane a frame for a live viewer: the page changed. */
695
- 'frames_produced',
696
- /** A browser frame handed to the transport for a viewer. */
697
- 'frames_sent',
698
- /** The transport was down when a frame was produced; the live view keeps it for its resume. */
699
- 'frames_held_disconnected',
700
- /** A frame larger than the smallest transport, dropped at the source (R7). */
701
- 'frames_dropped_oversize',
702
- /** The transport refused a frame; the next one is the newest anyway. */
703
- 'frames_send_failed',
704
- /** A viewer acknowledged the frame in flight. */
705
- 'frames_acked',
706
- /** No acknowledgement within the bound: the slot freed itself. */
707
- 'frames_ack_timeout',
708
- /** A viewer's frame slot was freed by a resubscribe, detach or stop. */
709
- 'frame_slots_released',
653
+ const COMPUTER_BROWSER_VIEWPORT = Object.freeze({ width: 1280, height: 800 });
654
+ const COMPUTER_FRAME_MAX_BYTES = 1024 * 1024;
655
+ const COMPUTER_FRAME_ACK_TIMEOUT_MS = 5e3;
656
+ const COMPUTER_DIAGNOSTIC_COUNTERS = [
657
+ /** The browser handed the lane a frame for a live viewer: the page changed. */
658
+ "frames_produced",
659
+ /** A browser frame handed to the transport for a viewer. */
660
+ "frames_sent",
661
+ /** The transport was down when a frame was produced; the live view keeps it for its resume. */
662
+ "frames_held_disconnected",
663
+ /** A frame larger than the smallest transport, dropped at the source (R7). */
664
+ "frames_dropped_oversize",
665
+ /** The transport refused a frame; the next one is the newest anyway. */
666
+ "frames_send_failed",
667
+ /** A viewer acknowledged the frame in flight. */
668
+ "frames_acked",
669
+ /** No acknowledgement within the bound: the slot freed itself. */
670
+ "frames_ack_timeout",
671
+ /** A viewer's frame slot was freed by a resubscribe, detach or stop. */
672
+ "frame_slots_released"
710
673
  ];
711
- /** How often a daemon with anyone attached reports its counters. */
712
- exports.COMPUTER_DIAGNOSTICS_INTERVAL_MS = 15_000;
713
- /** Viewers one report names, newest first; the rest are in the totals only. */
714
- exports.COMPUTER_DIAGNOSTICS_MAX_STREAMS = 64;
715
- exports.COMPUTER_TERMINAL_SIGNALS = ['interrupt', 'eof'];
716
- /** Input a terminal surface takes. */
717
- exports.COMPUTER_TERMINAL_INPUT_TYPES = ['bytes', 'paste', 'resize', 'signal'];
718
- /**
719
- * How long a terminal lives (§6.1, §18), so its window can say so instead of
720
- * implying a guest's guarantees on a laptop (OSK-13535):
721
- * - `host`: its shell is in the terminal host; a daemon restart or update
722
- * leaves it running. Off a guest the host closes it an hour after its
723
- * daemon stopped for good. Its output is kept on disk, so after the machine
724
- * (or the host) restarts it reopens with its history above a divider;
725
- * - `tmux`: a guest's persistent terminal from before the host; it outlives
726
- * the daemon and ends with the machine, with no history;
727
- * - `daemon`: its shell is in the daemon's own process and ends with it.
728
- */
729
- exports.COMPUTER_TERMINAL_LIFETIMES = ['host', 'tmux', 'daemon'];
730
- /**
731
- * Why a reopened terminal's shell is not the one that wrote the history above
732
- * its divider (OSK-13474). The terminal host decides it from its records.
733
- */
734
- exports.COMPUTER_TERMINAL_HISTORY_CAUSES = [
735
- /** The machine stopped or rebooted. */
736
- 'machine_restarted',
737
- /** The terminal host was stopped while the shell ran. */
738
- 'host_stopped',
739
- /** Off a guest: the host closed its terminals after its daemon stayed away for an hour. */
740
- 'host_orphaned',
741
- /** The terminal host died without stopping and was started again. */
742
- 'host_restarted',
674
+ const COMPUTER_DIAGNOSTICS_INTERVAL_MS = 15e3;
675
+ const COMPUTER_DIAGNOSTICS_MAX_STREAMS = 64;
676
+ const COMPUTER_TERMINAL_SIGNALS = ["interrupt", "eof"];
677
+ const COMPUTER_TERMINAL_INPUT_TYPES = ["bytes", "paste", "resize", "signal"];
678
+ const COMPUTER_TERMINAL_LIFETIMES = ["host", "tmux", "daemon"];
679
+ const COMPUTER_TERMINAL_HISTORY_CAUSES = [
680
+ /** The machine stopped or rebooted. */
681
+ "machine_restarted",
682
+ /** The terminal host was stopped while the shell ran. */
683
+ "host_stopped",
684
+ /** Off a guest: the host closed its terminals after its daemon stayed away for an hour. */
685
+ "host_orphaned",
686
+ /** The terminal host died without stopping and was started again. */
687
+ "host_restarted"
743
688
  ];
744
- /**
745
- * What a terminal's window cannot promise on this machine, said rather than
746
- * left silent. `windows_pty_unverified`: a Windows machine's terminal is a
747
- * ConPTY in the daemon's process; its resize and PTY behaviour have not been
748
- * verified (OSK-13535).
749
- */
750
- exports.COMPUTER_TERMINAL_CAVEATS = ['windows_pty_unverified'];
751
- /**
752
- * Input a browser surface takes. `tab` needs `computer_browser_tabs_v1`;
753
- * `viewport` needs `computer_browser_viewport_v1`.
754
- */
755
- exports.COMPUTER_BROWSER_INPUT_TYPES = [
756
- 'pointer',
757
- 'key',
758
- 'text',
759
- 'navigate',
760
- 'history',
761
- 'tab',
762
- 'viewport',
689
+ const COMPUTER_TERMINAL_CAVEATS = ["windows_pty_unverified"];
690
+ const COMPUTER_BROWSER_INPUT_TYPES = [
691
+ "pointer",
692
+ "key",
693
+ "text",
694
+ "navigate",
695
+ "history",
696
+ "tab",
697
+ "viewport"
763
698
  ];
764
- /**
765
- * What a `viewport` input may ask of the page (OSK-13808), in CSS pixels: the
766
- * controlling window's content box, bounded so no window can make the page
767
- * absurd for the agent that gets it back, and aspect-clamped (`minAspect` and
768
- * `maxAspect` are width ÷ height) so a sliver of a window cannot either.
769
- * Device pixel ratio is not part of it: the page keeps the browser's own, so a
770
- * high-density screen changes no layout and no picture size.
771
- */
772
- exports.COMPUTER_BROWSER_VIEWPORT_LIMITS = Object.freeze({
773
- minWidth: 320,
774
- maxWidth: 2560,
775
- minHeight: 240,
776
- maxHeight: 1600,
777
- minAspect: 0.4,
778
- maxAspect: 3.2,
699
+ const COMPUTER_BROWSER_VIEWPORT_LIMITS = Object.freeze({
700
+ minWidth: 320,
701
+ maxWidth: 2560,
702
+ minHeight: 240,
703
+ maxHeight: 1600,
704
+ minAspect: 0.4,
705
+ maxAspect: 3.2
779
706
  });
780
- /**
781
- * The size a `viewport` input asks for, made legal: whole CSS pixels inside
782
- * `COMPUTER_BROWSER_VIEWPORT_LIMITS`, its aspect inside the clamp. Total and
783
- * idempotent: the window sends what this returns and the daemon applies what
784
- * this returns, so both ends agree on the page a size produces. Null for a size
785
- * with no area (a hidden or collapsed window asks for nothing).
786
- */
787
707
  function clampComputerBrowserViewport(size) {
788
- const { width: rawWidth, height: rawHeight } = size ?? {};
789
- if (!Number.isFinite(rawWidth) || !Number.isFinite(rawHeight))
790
- return null;
791
- if (!(rawWidth > 0) || !(rawHeight > 0))
792
- return null;
793
- const limits = exports.COMPUTER_BROWSER_VIEWPORT_LIMITS;
794
- const bound = (value, low, high) => Math.max(low, Math.min(high, Math.round(value)));
795
- let width = bound(rawWidth, limits.minWidth, limits.maxWidth);
796
- let height = bound(rawHeight, limits.minHeight, limits.maxHeight);
708
+ const { width: rawWidth, height: rawHeight } = size ?? {};
709
+ if (!Number.isFinite(rawWidth) || !Number.isFinite(rawHeight))
710
+ return null;
711
+ if (!(rawWidth > 0) || !(rawHeight > 0))
712
+ return null;
713
+ const limits = COMPUTER_BROWSER_VIEWPORT_LIMITS;
714
+ const bound = (value, low, high) => Math.max(low, Math.min(high, Math.round(value)));
715
+ let width = bound(rawWidth, limits.minWidth, limits.maxWidth);
716
+ let height = bound(rawHeight, limits.minHeight, limits.maxHeight);
717
+ if (width / height > limits.maxAspect) {
718
+ width = Math.max(limits.minWidth, Math.floor(height * limits.maxAspect));
797
719
  if (width / height > limits.maxAspect) {
798
- // Too wide: narrow it first; a height already at its floor cannot grow the other way.
799
- width = Math.max(limits.minWidth, Math.floor(height * limits.maxAspect));
800
- if (width / height > limits.maxAspect) {
801
- height = Math.min(limits.maxHeight, Math.ceil(width / limits.maxAspect));
802
- }
720
+ height = Math.min(limits.maxHeight, Math.ceil(width / limits.maxAspect));
803
721
  }
804
- else if (width / height < limits.minAspect) {
805
- // Too tall: shorten it first, then widen if the width is at its floor.
806
- height = Math.max(limits.minHeight, Math.floor(width / limits.minAspect));
807
- if (width / height < limits.minAspect) {
808
- width = Math.min(limits.maxWidth, Math.ceil(height * limits.minAspect));
809
- }
722
+ } else if (width / height < limits.minAspect) {
723
+ height = Math.max(limits.minHeight, Math.floor(width / limits.minAspect));
724
+ if (width / height < limits.minAspect) {
725
+ width = Math.min(limits.maxWidth, Math.ceil(height * limits.minAspect));
810
726
  }
811
- return { width, height };
727
+ }
728
+ return { width, height };
812
729
  }
813
- /**
814
- * The client OS a browser `key` input comes from. A person's shortcuts are
815
- * mapped onto the Linux page's by the daemon: on `mac`, Command is Control,
816
- * Command+Arrow is Home/End and Option+Arrow is Control+Arrow. Omitted, the
817
- * keys are sent as they are (the client has already mapped them, or needs none).
818
- */
819
- exports.COMPUTER_BROWSER_INPUT_PLATFORMS = ['mac', 'windows', 'linux', 'other'];
820
- /** The most text one `text` input, `paste` input or `key` input's `text` carries. */
821
- exports.COMPUTER_INPUT_TEXT_MAX_LENGTH = 16 * 1024;
822
- /** What a page can block on until someone answers (§6.2). Permission prompts have no CDP event. */
823
- exports.COMPUTER_BROWSER_DIALOG_KINDS = [
824
- 'alert',
825
- 'confirm',
826
- 'prompt',
827
- 'beforeunload',
828
- 'auth',
730
+ const COMPUTER_BROWSER_INPUT_PLATFORMS = ["mac", "windows", "linux", "other"];
731
+ const COMPUTER_INPUT_TEXT_MAX_LENGTH = 16 * 1024;
732
+ const COMPUTER_BROWSER_DIALOG_KINDS = [
733
+ "alert",
734
+ "confirm",
735
+ "prompt",
736
+ "beforeunload",
737
+ "auth"
829
738
  ];
830
- /** How a dialog ended; `cancelled` is the page or a navigation closing it first. */
831
- exports.COMPUTER_BROWSER_DIALOG_OUTCOMES = [
832
- 'accepted',
833
- 'dismissed',
834
- 'credentials_supplied',
835
- 'cancelled',
739
+ const COMPUTER_BROWSER_DIALOG_OUTCOMES = [
740
+ "accepted",
741
+ "dismissed",
742
+ "credentials_supplied",
743
+ "cancelled"
836
744
  ];
837
- /** Who answered: the standing policy, the agent, the person, or the page itself. */
838
- exports.COMPUTER_BROWSER_DIALOG_ANSWERERS = [
839
- 'agent_policy',
840
- 'agent',
841
- 'person',
842
- 'page',
745
+ const COMPUTER_BROWSER_DIALOG_ANSWERERS = [
746
+ "agent_policy",
747
+ "agent",
748
+ "person",
749
+ "page"
843
750
  ];
844
- /** The most of a dialog's message the surface carries; the page's text is cut there. */
845
- exports.COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH = 2000;
846
- /** The longest answer a `prompt` dialog takes. */
847
- exports.COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH = 4096;
848
- /** The longest username or password an `auth` dialog takes; forwarded to the page only. */
849
- exports.COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH = 1024;
850
- /** A download's state on the surface (§6.2); a finished one also appears in Files. */
851
- exports.COMPUTER_BROWSER_DOWNLOAD_STATES = ['in_progress', 'completed', 'canceled'];
852
- /** The downloads one browser surface lists, newest first; older ones are in Files. */
853
- exports.COMPUTER_BROWSER_DOWNLOADS_MAX = 20;
854
- /** Whether the page's file input takes one file or several. */
855
- exports.COMPUTER_BROWSER_FILE_CHOOSER_MODES = ['single', 'multiple'];
856
- /** How a file chooser ended: files went to the page, or the person chose none. */
857
- exports.COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES = ['files_chosen', 'cancelled'];
858
- /** The most files one answer hands the page. */
859
- exports.COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES = 32;
860
- /** The longest `accept` attribute the descriptor carries; the page's is cut there. */
861
- exports.COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH = 512;
862
- /** The longest path one answer names. */
863
- exports.COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH = 4096;
864
- /** The longest folder `computer:surface:open` may name as a terminal's `cwd`. */
865
- exports.COMPUTER_TERMINAL_CWD_MAX_LENGTH = 4096;
866
- /** The most text one copy-out returns; a longer selection is cut there. */
867
- exports.COMPUTER_BROWSER_COPY_MAX_LENGTH = 64 * 1024;
868
- /** `history` input: the browser's own back, forward and reload. */
869
- exports.COMPUTER_BROWSER_HISTORY_ACTIONS = ['back', 'forward', 'reload'];
870
- /** `tab` input. `activate` and `close` name a `tabId`; `open` opens a blank tab. */
871
- exports.COMPUTER_BROWSER_TAB_ACTIONS = ['activate', 'open', 'close'];
872
- /** The longest URL a `navigate` input carries. */
873
- exports.COMPUTER_BROWSER_URL_MAX_LENGTH = 4096;
874
- // ---------------------------------------------------------------------------
875
- // Files (§6.3, §18)
876
- // ---------------------------------------------------------------------------
877
- exports.COMPUTER_FILE_OPERATIONS = [
878
- 'list',
879
- 'stat',
880
- 'read',
881
- 'write',
882
- 'mkdir',
883
- 'move',
884
- 'delete',
885
- 'archive',
751
+ const COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH = 2e3;
752
+ const COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH = 4096;
753
+ const COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH = 1024;
754
+ const COMPUTER_BROWSER_DOWNLOAD_STATES = ["in_progress", "completed", "canceled"];
755
+ const COMPUTER_BROWSER_DOWNLOADS_MAX = 20;
756
+ const COMPUTER_BROWSER_FILE_CHOOSER_MODES = ["single", "multiple"];
757
+ const COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES = ["files_chosen", "cancelled"];
758
+ const COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES = 32;
759
+ const COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH = 512;
760
+ const COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH = 4096;
761
+ const COMPUTER_TERMINAL_CWD_MAX_LENGTH = 4096;
762
+ const COMPUTER_BROWSER_COPY_MAX_LENGTH = 64 * 1024;
763
+ const COMPUTER_BROWSER_HISTORY_ACTIONS = ["back", "forward", "reload"];
764
+ const COMPUTER_BROWSER_TAB_ACTIONS = ["activate", "open", "close"];
765
+ const COMPUTER_BROWSER_URL_MAX_LENGTH = 4096;
766
+ const COMPUTER_FILE_OPERATIONS = [
767
+ "list",
768
+ "stat",
769
+ "read",
770
+ "write",
771
+ "mkdir",
772
+ "move",
773
+ "delete",
774
+ "archive"
886
775
  ];
887
- /**
888
- * The read-only file routes that arrived with `computer_files_search_v1`
889
- * (§6.3). A separate list: the operations above are the original contract and
890
- * the audit/activity vocabulary pins them; these two never mutate.
891
- */
892
- exports.COMPUTER_FILE_SEARCH_OPERATIONS = ['search', 'gitstatus'];
893
- /** How a search ended: all of it read, cut at the result limit, or cut at the time bound. */
894
- exports.COMPUTER_FILE_SEARCH_STATES = ['complete', 'truncated', 'timed_out'];
895
- /** What `git status` says about one entry of a directory. */
896
- exports.COMPUTER_FILE_GIT_MARKS = [
897
- 'modified',
898
- 'added',
899
- 'untracked',
900
- 'ignored',
901
- 'conflicted',
776
+ const COMPUTER_FILE_SEARCH_OPERATIONS = ["search", "gitstatus"];
777
+ const COMPUTER_FILE_SEARCH_STATES = ["complete", "truncated", "timed_out"];
778
+ const COMPUTER_FILE_GIT_MARKS = [
779
+ "modified",
780
+ "added",
781
+ "untracked",
782
+ "ignored",
783
+ "conflicted"
902
784
  ];
903
- /** Search bounds, one declaration for the daemon, the API and the client. */
904
- exports.COMPUTER_FILE_SEARCH_DEFAULT_LIMIT = 200;
905
- exports.COMPUTER_FILE_SEARCH_MAX_LIMIT = 1000;
906
- exports.COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS = 8_000;
907
- exports.COMPUTER_FILE_SEARCH_MAX_BUDGET_MS = 20_000;
908
- exports.COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH = 200;
909
- exports.COMPUTER_FILE_GIT_STATUS_BUDGET_MS = 4_000;
910
- exports.COMPUTER_FILE_TYPES = ['file', 'directory', 'symlink', 'other'];
911
- /**
912
- * Why an entry is withheld rather than listed as readable (§18): the daemon's
913
- * own deny set, the machine's `blockedPaths`, a built-in sensitive pattern, or
914
- * an operating-system privacy control denying the daemon the folder.
915
- */
916
- exports.COMPUTER_FILE_WITHHELD_REASONS = [
917
- 'deny_set',
918
- 'blocked_path',
919
- 'sensitive_pattern',
920
- 'os_permission',
785
+ const COMPUTER_FILE_SEARCH_DEFAULT_LIMIT = 200;
786
+ const COMPUTER_FILE_SEARCH_MAX_LIMIT = 1e3;
787
+ const COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS = 8e3;
788
+ const COMPUTER_FILE_SEARCH_MAX_BUDGET_MS = 2e4;
789
+ const COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH = 200;
790
+ const COMPUTER_FILE_GIT_STATUS_BUDGET_MS = 4e3;
791
+ const COMPUTER_FILE_TYPES = ["file", "directory", "symlink", "other"];
792
+ const COMPUTER_FILE_WITHHELD_REASONS = [
793
+ "deny_set",
794
+ "blocked_path",
795
+ "sensitive_pattern",
796
+ "os_permission"
921
797
  ];
922
- /**
923
- * Why an attachment's scoped watches went stale (§6.3 "degrades to stale, not
924
- * to wrong"). The tree then says so and offers a refresh — it never sits on a
925
- * silently partial picture.
926
- *
927
- * - `spawn_failed`: the watcher could not start.
928
- * - `watcher_exited`: the watcher ended (tenant code may kill it on a guest).
929
- * - `watch_quota`: the account's watch quota is spent.
930
- * - `events_overflow`: more changes arrived than are forwarded (a build
931
- * writing thousands of files), so the watcher stopped rather than queue.
932
- * - `delivery_gap`: a report was lost between the machine and this viewer.
933
- */
934
- exports.COMPUTER_FILES_WATCH_DEGRADED_REASONS = [
935
- 'spawn_failed',
936
- 'watcher_exited',
937
- 'watch_quota',
938
- 'events_overflow',
939
- 'delivery_gap',
798
+ const COMPUTER_FILES_WATCH_DEGRADED_REASONS = [
799
+ "spawn_failed",
800
+ "watcher_exited",
801
+ "watch_quota",
802
+ "events_overflow",
803
+ "delivery_gap"
940
804
  ];
941
- /** Changes one `computer:files:changed` report carries; more in one window is `events_overflow`. */
942
- exports.COMPUTER_FILES_CHANGED_MAX_CHANGES = 256;
943
- /** The kinds of change a `file_change` activity event reports. */
944
- exports.COMPUTER_FILE_CHANGES = ['created', 'modified', 'deleted', 'moved'];
945
- /** The most entries below a folder a contents tag covers; a larger folder is `too_large`. */
946
- exports.COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = 100_000;
947
- /** A contents tag's shape: SHA-256 as lowercase hex. */
948
- exports.COMPUTER_FILE_CONTENTS_TAG_PATTERN = /^[0-9a-f]{64}$/;
805
+ const COMPUTER_FILES_CHANGED_MAX_CHANGES = 256;
806
+ const COMPUTER_FILE_CHANGES = ["created", "modified", "deleted", "moved"];
807
+ const COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = 1e5;
808
+ const COMPUTER_FILE_CONTENTS_TAG_PATTERN = /^[0-9a-f]{64}$/;
949
809
  function computerFileEntityTagsEqual(a, b) {
950
- return (a.inode === b.inode &&
951
- a.size === b.size &&
952
- a.mtimeNs === b.mtimeNs &&
953
- (a.contents ?? null) === (b.contents ?? null));
810
+ return a.inode === b.inode && a.size === b.size && a.mtimeNs === b.mtimeNs && (a.contents ?? null) === (b.contents ?? null);
954
811
  }
955
- // ---------------------------------------------------------------------------
956
- // Activity (§4.4, §6.4)
957
- // ---------------------------------------------------------------------------
958
- exports.COMPUTER_ACTIVITY_KINDS = [
959
- 'command',
960
- 'browser_action',
961
- 'file_change',
962
- 'control',
963
- 'lifecycle',
812
+ const COMPUTER_ACTIVITY_KINDS = [
813
+ "command",
814
+ "browser_action",
815
+ "file_change",
816
+ "control",
817
+ "lifecycle"
964
818
  ];
965
- /** `summary` is one line, safe to show. */
966
- exports.COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH = 500;
967
- /** The most command output one event carries; longer output is split across events. */
968
- exports.COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH = 64 * 1024;
969
- /**
970
- * What a viewer without file access reads where a withheld path stood
971
- * (security review PM-10, OSK-13701): one stable token, so a client can say
972
- * "withheld" rather than render a path-shaped string.
973
- */
974
- exports.COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER = '[withheld]';
975
- exports.COMPUTER_COMMAND_PHASES = ['started', 'output', 'exited'];
976
- exports.COMPUTER_LIFECYCLE_EVENTS = [
977
- 'surface_opened',
978
- 'surface_ended',
979
- 'surface_shared',
980
- 'surface_unshared',
981
- /**
982
- * A person whose access was revoked left this surface open: it is theirs and
983
- * still running, and closing it is the owner's visible decision (§5.1 rule 8).
984
- */
985
- 'surface_orphaned',
986
- /**
987
- * A person holds this surface and idle reclaim will hand it back to the agent
988
- * at `deadline` unless they provide input or take it again (§8, D12). Emitted
989
- * `COMPUTER_RECLAIM_WARNING_MS` before the deadline, once per idle window;
990
- * input moves the deadline and the warning is stale from that moment.
991
- */
992
- 'reclaim_imminent',
993
- 'power',
994
- /** The computer's browser was signed out everywhere: its profile removed, every window ended. */
995
- 'browser_reset',
819
+ const COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH = 500;
820
+ const COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH = 64 * 1024;
821
+ const COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER = "[withheld]";
822
+ const COMPUTER_COMMAND_PHASES = ["started", "output", "exited"];
823
+ const COMPUTER_LIFECYCLE_EVENTS = [
824
+ "surface_opened",
825
+ "surface_ended",
826
+ "surface_shared",
827
+ "surface_unshared",
828
+ /**
829
+ * A person whose access was revoked left this surface open: it is theirs and
830
+ * still running, and closing it is the owner's visible decision (§5.1 rule 8).
831
+ */
832
+ "surface_orphaned",
833
+ /**
834
+ * A person holds this surface and idle reclaim will hand it back to the agent
835
+ * at `deadline` unless they provide input or take it again (§8, D12). Emitted
836
+ * `COMPUTER_RECLAIM_WARNING_MS` before the deadline, once per idle window;
837
+ * input moves the deadline and the warning is stale from that moment.
838
+ */
839
+ "reclaim_imminent",
840
+ "power",
841
+ /** The computer's browser was signed out everywhere: its profile removed, every window ended. */
842
+ "browser_reset"
996
843
  ];
997
- /** How a command call ended, as its producer stated it — never inferred from output. */
998
- exports.COMPUTER_COMMAND_OUTCOMES = ['succeeded', 'failed'];
999
- /**
1000
- * The `signal` of a command that ended without a process exit status, beyond
1001
- * `timeout`, `error`, `cancelled` and signal names (task 5-04b, OSK-13614):
1002
- * `not_started` — the run was refused before it began, and `refusal` says
1003
- * why; `unknown` — the shell it ran in ended first, so its own exit status
1004
- * cannot be known.
1005
- */
1006
- exports.COMPUTER_COMMAND_NOT_STARTED_SIGNAL = 'not_started';
1007
- exports.COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = 'unknown';
1008
- /**
1009
- * Why a run in an agent's shell never started (`refusal` beside
1010
- * `signal: 'not_started'`): the shell was busy with another run, had ended,
1011
- * was still opening, a person held the terminal, the command could not be
1012
- * handed to the shell, or the request was incomplete. A client shows an
1013
- * unknown value as "did not start" without a reason.
1014
- */
1015
- exports.COMPUTER_COMMAND_START_REFUSALS = [
1016
- 'session_busy',
1017
- 'session_closed',
1018
- 'session_not_ready',
1019
- 'human_control',
1020
- 'start_failed',
1021
- 'invalid_request',
844
+ const COMPUTER_COMMAND_OUTCOMES = ["succeeded", "failed"];
845
+ const COMPUTER_COMMAND_NOT_STARTED_SIGNAL = "not_started";
846
+ const COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = "unknown";
847
+ const COMPUTER_COMMAND_START_REFUSALS = [
848
+ "session_busy",
849
+ "session_closed",
850
+ "session_not_ready",
851
+ "human_control",
852
+ "start_failed",
853
+ "invalid_request"
1022
854
  ];
1023
- exports.COMPUTER_COMMAND_OUTPUT_STREAMS = ['stdout', 'stderr'];
1024
- // ---------------------------------------------------------------------------
1025
- // Declared services (§20.5; 9-17, OSK-13579)
1026
- // ---------------------------------------------------------------------------
1027
- /**
1028
- * What `daemon:computer:services` (and the agent's `computer.services` call)
1029
- * asks of the machine: add or replace one service by name, remove one, or
1030
- * answer the list. Declaring and withdrawing need `open`; listing needs
1031
- * `observe`.
1032
- */
1033
- exports.COMPUTER_DECLARED_SERVICE_ACTIONS = ['declare', 'withdraw', 'list'];
1034
- /**
1035
- * The tool an agent session's declaration rides to its own daemon: the same
1036
- * `daemon:tool:request` channel that carries its other calls, answered by the
1037
- * same gate as `daemon:computer:services`. The input is the API's (action,
1038
- * principal, agent, service or name); the session is the request's own.
1039
- */
1040
- exports.COMPUTER_SERVICES_TOOL_NAME = 'computer.services';
1041
- /** A refused `computer.services` call: this prefix, then the refusal as JSON. */
1042
- exports.COMPUTER_SERVICES_TOOL_ERROR_PREFIX = 'computer_services_refused:';
1043
- /** The operation each action needs, by the one access vocabulary. */
855
+ const COMPUTER_COMMAND_OUTPUT_STREAMS = ["stdout", "stderr"];
856
+ const COMPUTER_DECLARED_SERVICE_ACTIONS = ["declare", "withdraw", "list"];
857
+ const COMPUTER_SERVICES_TOOL_NAME = "computer.services";
858
+ const COMPUTER_SERVICES_TOOL_ERROR_PREFIX = "computer_services_refused:";
1044
859
  function computerDeclaredServiceOperation(action) {
1045
- return action === 'list' ? 'observe' : 'open';
860
+ return action === "list" ? "observe" : "open";
1046
861
  }
1047
- exports.COMPUTER_DECLARED_SERVICE_PROTOCOLS = ['http', 'https'];
1048
- /** Services one machine holds at once; one more is `service_limit`. */
1049
- exports.COMPUTER_DECLARED_SERVICES_MAX = 16;
1050
- exports.COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH = 48;
1051
- exports.COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH = 512;
1052
- /**
1053
- * The one host a declared service names. A declaration carries a port and a
1054
- * path, never a host or a URL: the target is always this machine's own
1055
- * loopback, by construction, and a request that names anything else is
1056
- * refused as malformed rather than narrowed.
1057
- */
1058
- exports.COMPUTER_DECLARED_SERVICE_HOST = 'localhost';
1059
- /** A service's name: its key on the machine, lower case, shown as written. */
1060
- exports.COMPUTER_DECLARED_SERVICE_NAME_PATTERN = /^[a-z0-9][a-z0-9._-]*$/;
1061
- /**
1062
- * A path on the service: absolute, no query and no fragment (a token in a
1063
- * query string would be shown to everyone who can see the machine), no
1064
- * whitespace or backslash, and not starting with two slashes.
1065
- */
862
+ const COMPUTER_DECLARED_SERVICE_PROTOCOLS = ["http", "https"];
863
+ const COMPUTER_DECLARED_SERVICES_MAX = 16;
864
+ const COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH = 48;
865
+ const COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH = 512;
866
+ const COMPUTER_DECLARED_SERVICE_HOST = "localhost";
867
+ const COMPUTER_DECLARED_SERVICE_NAME_PATTERN = /^[a-z0-9][a-z0-9._-]*$/;
1066
868
  const DECLARED_SERVICE_PATH_PATTERN = /^\/(?!\/)[A-Za-z0-9\-._~!$&'()*+,;=:@%/]*$/;
1067
- const DECLARED_SERVICE_KEYS = new Set(['name', 'port', 'path', 'protocol']);
1068
- /** Which part of a declaration was refused. */
1069
- exports.COMPUTER_DECLARED_SERVICE_PROBLEMS = [
1070
- /** Not an object, or a field other than name, port, path and protocol (a host, a URL). */
1071
- 'shape',
1072
- 'name',
1073
- 'port',
1074
- 'path',
1075
- 'protocol',
869
+ const DECLARED_SERVICE_KEYS = /* @__PURE__ */ new Set(["name", "port", "path", "protocol"]);
870
+ const COMPUTER_DECLARED_SERVICE_PROBLEMS = [
871
+ /** Not an object, or a field other than name, port, path and protocol (a host, a URL). */
872
+ "shape",
873
+ "name",
874
+ "port",
875
+ "path",
876
+ "protocol"
1076
877
  ];
1077
- /**
1078
- * A declaration, checked and filled in, or the part of it that was refused.
1079
- * The daemon, the API, the client and the CLI all read a declaration through
1080
- * this one rule, so a service none of them would accept never reaches the
1081
- * manifest.
1082
- */
1083
878
  function computerDeclaredServiceSpec(raw) {
1084
- if (!raw || typeof raw !== 'object' || Array.isArray(raw)) {
1085
- return { ok: false, problem: 'shape' };
1086
- }
1087
- const data = raw;
1088
- if (Object.keys(data).some((key) => !DECLARED_SERVICE_KEYS.has(key))) {
1089
- return { ok: false, problem: 'shape' };
1090
- }
1091
- const { name, port, path, protocol } = data;
1092
- if (typeof name !== 'string' ||
1093
- name.length === 0 ||
1094
- name.length > exports.COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH ||
1095
- !exports.COMPUTER_DECLARED_SERVICE_NAME_PATTERN.test(name)) {
1096
- return { ok: false, problem: 'name' };
879
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
880
+ return { ok: false, problem: "shape" };
881
+ }
882
+ const data = raw;
883
+ if (Object.keys(data).some((key) => !DECLARED_SERVICE_KEYS.has(key))) {
884
+ return { ok: false, problem: "shape" };
885
+ }
886
+ const { name, port, path, protocol } = data;
887
+ if (typeof name !== "string" || name.length === 0 || name.length > COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH || !COMPUTER_DECLARED_SERVICE_NAME_PATTERN.test(name)) {
888
+ return { ok: false, problem: "name" };
889
+ }
890
+ if (typeof port !== "number" || !Number.isInteger(port) || port < 1 || port > 65535) {
891
+ return { ok: false, problem: "port" };
892
+ }
893
+ if (path !== void 0 && (typeof path !== "string" || path.length > COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH || !DECLARED_SERVICE_PATH_PATTERN.test(path))) {
894
+ return { ok: false, problem: "path" };
895
+ }
896
+ if (protocol !== void 0 && (typeof protocol !== "string" || !COMPUTER_DECLARED_SERVICE_PROTOCOLS.includes(protocol))) {
897
+ return { ok: false, problem: "protocol" };
898
+ }
899
+ return {
900
+ ok: true,
901
+ spec: {
902
+ name,
903
+ port,
904
+ path: typeof path === "string" ? path : "/",
905
+ protocol: protocol ?? "http"
1097
906
  }
1098
- if (typeof port !== 'number' || !Number.isInteger(port) || port < 1 || port > 65535) {
1099
- return { ok: false, problem: 'port' };
1100
- }
1101
- if (path !== undefined &&
1102
- (typeof path !== 'string' ||
1103
- path.length > exports.COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH ||
1104
- !DECLARED_SERVICE_PATH_PATTERN.test(path))) {
1105
- return { ok: false, problem: 'path' };
1106
- }
1107
- if (protocol !== undefined &&
1108
- (typeof protocol !== 'string' ||
1109
- !exports.COMPUTER_DECLARED_SERVICE_PROTOCOLS.includes(protocol))) {
1110
- return { ok: false, problem: 'protocol' };
1111
- }
1112
- return {
1113
- ok: true,
1114
- spec: {
1115
- name,
1116
- port,
1117
- path: typeof path === 'string' ? path : '/',
1118
- protocol: protocol ?? 'http',
1119
- },
1120
- };
907
+ };
1121
908
  }
1122
- /**
1123
- * The address a declared service opens at in the computer's browser: always
1124
- * this machine's loopback. Throws on a spec the rule above would refuse, so a
1125
- * caller can never be handed an address off the machine.
1126
- */
1127
909
  function computerDeclaredServiceUrl(service) {
1128
- const checked = computerDeclaredServiceSpec({
1129
- name: 'service',
1130
- port: service.port,
1131
- ...(service.path !== undefined ? { path: service.path } : {}),
1132
- ...(service.protocol !== undefined ? { protocol: service.protocol } : {}),
1133
- });
1134
- if (!checked.ok) {
1135
- throw new Error(`not a declared service address (${checked.problem})`);
1136
- }
1137
- const { protocol, port, path } = checked.spec;
1138
- return `${protocol}://${exports.COMPUTER_DECLARED_SERVICE_HOST}:${port}${path}`;
910
+ const checked = computerDeclaredServiceSpec({
911
+ name: "service",
912
+ port: service.port,
913
+ ...service.path !== void 0 ? { path: service.path } : {},
914
+ ...service.protocol !== void 0 ? { protocol: service.protocol } : {}
915
+ });
916
+ if (!checked.ok) {
917
+ throw new Error(`not a declared service address (${checked.problem})`);
918
+ }
919
+ const { protocol, port, path } = checked.spec;
920
+ return `${protocol}://${COMPUTER_DECLARED_SERVICE_HOST}:${port}${path}`;
1139
921
  }
1140
- // ---------------------------------------------------------------------------
1141
- // Machines and power (§10, §18)
1142
- // ---------------------------------------------------------------------------
1143
- exports.COMPUTER_MACHINE_KINDS = ['dedicated', 'personal', 'space'];
1144
- /**
1145
- * One picture per machine state; none of them is a spinner without a bound,
1146
- * and none collapses two states into the reassuring one.
1147
- */
1148
- exports.COMPUTER_POWER_PHASES = [
1149
- // A Dedicated Runtime, from its lease state.
1150
- /** `ready`, `active`, `idle`: the desktop. */
1151
- 'on',
1152
- /** On the way up: a boot screen naming the step, with elapsed time. */
1153
- 'booting',
1154
- /** `stopping`, `snapshotting`: saving files, with the checkpoint outcome when known. */
1155
- 'stopping',
1156
- /** `stopped`: off, files preserved. */
1157
- 'off',
1158
- /** Files retained until a date. */
1159
- 'archived',
1160
- /** `terminating`: being removed. */
1161
- 'removing',
1162
- /** `failed`, `lost`, `terminated`: the reason, and what is recoverable. */
1163
- 'gone',
1164
- /** The provider could not be read. Explicitly not "off". */
1165
- 'blind',
1166
- /** The lease is healthy and the daemon is not answering. */
1167
- 'unresponsive',
1168
- /** A lease state that belongs to another machine product (`pausing`, `paused`, `resuming`). */
1169
- 'not_a_computer',
1170
- // Either kind.
1171
- /** The daemon does not announce `computer_v1`. */
1172
- 'needs_update',
1173
- // A personal machine: no lease, no power actions.
1174
- 'online',
1175
- 'offline',
1176
- 'needs_sign_in',
1177
- /** The machine has not allowed the computer (§18). */
1178
- 'not_allowed',
922
+ const COMPUTER_MACHINE_KINDS = ["dedicated", "personal", "space"];
923
+ const COMPUTER_POWER_PHASES = [
924
+ // A Dedicated Runtime, from its lease state.
925
+ /** `ready`, `active`, `idle`: the desktop. */
926
+ "on",
927
+ /** On the way up: a boot screen naming the step, with elapsed time. */
928
+ "booting",
929
+ /** `stopping`, `snapshotting`: saving files, with the checkpoint outcome when known. */
930
+ "stopping",
931
+ /** `stopped`: off, files preserved. */
932
+ "off",
933
+ /** Files retained until a date. */
934
+ "archived",
935
+ /** `terminating`: being removed. */
936
+ "removing",
937
+ /** `failed`, `lost`, `terminated`: the reason, and what is recoverable. */
938
+ "gone",
939
+ /** The provider could not be read. Explicitly not "off". */
940
+ "blind",
941
+ /** The lease is healthy and the daemon is not answering. */
942
+ "unresponsive",
943
+ /** A lease state that belongs to another machine product (`pausing`, `paused`, `resuming`). */
944
+ "not_a_computer",
945
+ // Either kind.
946
+ /** The daemon does not announce `computer_v1`. */
947
+ "needs_update",
948
+ // A personal machine: no lease, no power actions.
949
+ "online",
950
+ "offline",
951
+ "needs_sign_in",
952
+ /** The machine has not allowed the computer (§18). */
953
+ "not_allowed"
1179
954
  ];
1180
- /**
1181
- * Phases a personal machine can be in. `blind` is shared with a Dedicated
1182
- * Runtime: the machine's presence could not be READ, which is not the same
1183
- * fact as "offline" and must not be shown as it (§10, §18; 10-09).
1184
- */
1185
- exports.COMPUTER_PERSONAL_POWER_PHASES = [
1186
- 'online',
1187
- 'offline',
1188
- 'needs_sign_in',
1189
- 'not_allowed',
1190
- 'needs_update',
1191
- 'blind',
955
+ const COMPUTER_PERSONAL_POWER_PHASES = [
956
+ "online",
957
+ "offline",
958
+ "needs_sign_in",
959
+ "not_allowed",
960
+ "needs_update",
961
+ "blind"
1192
962
  ];
1193
- /**
1194
- * Why a personal machine needs signing in again — `power.reason` on
1195
- * `needs_sign_in`. `needs_reauth`: the daemon's credential stopped refreshing
1196
- * (it latches the Harness mark and waits). `revoked`: the machine's sign-in was
1197
- * revoked from the account, so it is no longer this person's machine until it
1198
- * is signed in again. Same next action, different fact, different picture.
1199
- */
1200
- exports.COMPUTER_PERSONAL_SIGN_IN_REASONS = ['needs_reauth', 'revoked'];
1201
- /** Why a stopped machine would also refuse a start, so the screen does not offer one (§10). */
1202
- exports.COMPUTER_START_REFUSALS = ['spend_cap', 'entitlement'];
1203
- /**
1204
- * The picture for each Dedicated Runtime lease state. Its keys are the lease
1205
- * states; `@skrr-ai/data-provider` asserts at compile time that they are
1206
- * exactly `MachineLeaseStateName`, so a new lease state fails to compile there
1207
- * until it is given a picture here — never a default.
1208
- */
1209
- exports.COMPUTER_LEASE_STATE_POWER_PHASE = Object.freeze({
1210
- ready: 'on',
1211
- active: 'on',
1212
- idle: 'on',
1213
- requested: 'booting',
1214
- provisioning: 'booting',
1215
- bootstrapping: 'booting',
1216
- starting: 'booting',
1217
- restarting: 'booting',
1218
- recovering: 'booting',
1219
- stopping: 'stopping',
1220
- snapshotting: 'stopping',
1221
- stopped: 'off',
1222
- archived: 'archived',
1223
- terminating: 'removing',
1224
- failed: 'gone',
1225
- lost: 'gone',
1226
- terminated: 'gone',
1227
- pausing: 'not_a_computer',
1228
- paused: 'not_a_computer',
1229
- resuming: 'not_a_computer',
963
+ const COMPUTER_PERSONAL_SIGN_IN_REASONS = ["needs_reauth", "revoked"];
964
+ const COMPUTER_START_REFUSALS = ["spend_cap", "entitlement"];
965
+ const COMPUTER_LEASE_STATE_POWER_PHASE = Object.freeze({
966
+ ready: "on",
967
+ active: "on",
968
+ idle: "on",
969
+ requested: "booting",
970
+ provisioning: "booting",
971
+ bootstrapping: "booting",
972
+ starting: "booting",
973
+ restarting: "booting",
974
+ recovering: "booting",
975
+ stopping: "stopping",
976
+ snapshotting: "stopping",
977
+ stopped: "off",
978
+ archived: "archived",
979
+ terminating: "removing",
980
+ failed: "gone",
981
+ lost: "gone",
982
+ terminated: "gone",
983
+ pausing: "not_a_computer",
984
+ paused: "not_a_computer",
985
+ resuming: "not_a_computer"
1230
986
  });
1231
- /** The phase a Dedicated Runtime lease state shows as, or `null` for a state this build does not know. */
1232
987
  function computerPowerPhaseForLeaseState(state) {
1233
- return typeof state === 'string' &&
1234
- Object.prototype.hasOwnProperty.call(exports.COMPUTER_LEASE_STATE_POWER_PHASE, state)
1235
- ? exports.COMPUTER_LEASE_STATE_POWER_PHASE[state]
1236
- : null;
988
+ return typeof state === "string" && Object.prototype.hasOwnProperty.call(COMPUTER_LEASE_STATE_POWER_PHASE, state) ? COMPUTER_LEASE_STATE_POWER_PHASE[state] : null;
1237
989
  }
1238
- /** Whether the phase shows the desktop. */
1239
990
  function computerShowsDesktop(phase) {
1240
- return phase === 'on' || phase === 'online';
991
+ return phase === "on" || phase === "online";
1241
992
  }
1242
- /** Power actions are offered for a Dedicated Runtime only; a personal machine has none (§18). */
1243
993
  function computerOffersPowerActions(machineKind) {
1244
- return machineKind === 'dedicated' || machineKind === 'space';
994
+ return machineKind === "dedicated" || machineKind === "space";
1245
995
  }
1246
- // ---------------------------------------------------------------------------
1247
- // The daemon's own log (`computer_daemon_log_v1`)
1248
- // ---------------------------------------------------------------------------
1249
- /**
1250
- * Why the daemon's log is a wire feature at all: the tenant uid on a Dedicated
1251
- * Runtime guest cannot read syslog or the journal, so an owner could not see
1252
- * why their machine's daemon reconnected or failed. The daemon keeps the last
1253
- * lines its OWN logger wrote in memory and serves them; it opens no file and no
1254
- * system log for this.
1255
- */
1256
- exports.COMPUTER_DAEMON_LOG_LEVELS = ['trace', 'debug', 'info', 'warn', 'error'];
1257
- /** Every bound is the daemon's to enforce and the API's to validate against. */
1258
- exports.COMPUTER_DAEMON_LOG_LIMITS = {
1259
- /** Lines the daemon keeps in memory; older ones fall off the front. */
1260
- ringLines: 2000,
1261
- /** A line longer than this is cut and marked, never kept whole. */
1262
- lineChars: 1000,
1263
- /** Lines returned when the caller names none. */
1264
- defaultLines: 100,
1265
- /** The most lines one answer carries. */
1266
- maxLines: 500,
1267
- /** The most bytes (UTF-8) one answer's text carries; far under the 1 MiB SSE frame. */
1268
- maxBytes: 192 * 1024,
1269
- /** The longest look-back a `sinceMs` may ask for (24 h; the ring is shorter anyway). */
1270
- maxSinceMs: 24 * 60 * 60 * 1000,
1271
- /** Requests the daemon answers per `rateWindowMs`; one more is `rate_limited`. */
1272
- rateMax: 30,
1273
- rateWindowMs: 60 * 1000,
996
+ const COMPUTER_DAEMON_LOG_LEVELS = ["trace", "debug", "info", "warn", "error"];
997
+ const COMPUTER_DAEMON_LOG_LIMITS = {
998
+ /** Lines the daemon keeps in memory; older ones fall off the front. */
999
+ ringLines: 2e3,
1000
+ /** A line longer than this is cut and marked, never kept whole. */
1001
+ lineChars: 1e3,
1002
+ /** Lines returned when the caller names none. */
1003
+ defaultLines: 100,
1004
+ /** The most lines one answer carries. */
1005
+ maxLines: 500,
1006
+ /** The most bytes (UTF-8) one answer's text carries; far under the 1 MiB SSE frame. */
1007
+ maxBytes: 192 * 1024,
1008
+ /** The longest look-back a `sinceMs` may ask for (24 h; the ring is shorter anyway). */
1009
+ maxSinceMs: 24 * 60 * 60 * 1e3,
1010
+ /** Requests the daemon answers per `rateWindowMs`; one more is `rate_limited`. */
1011
+ rateMax: 30,
1012
+ rateWindowMs: 60 * 1e3
1274
1013
  };
1275
1014
  function normalizeBrowserActivityOriginPolicy(input) {
1276
- if (!input || typeof input !== 'object' || Array.isArray(input))
1277
- throw new Error('Choose exact allowed and excluded web origins');
1278
- const value = input;
1279
- if (Object.keys(value).some((key) => !['allowOrigins', 'excludeOrigins'].includes(key)))
1280
- throw new Error('Unsupported source filter');
1281
- const origins = (items, required) => {
1282
- if (!Array.isArray(items) || items.length > 20 || (required && !items.length))
1283
- throw new Error('Choose from one to twenty allowed origins and up to twenty excluded origins');
1284
- return [...new Set(items.map((item) => {
1285
- if (typeof item !== 'string' || item.length > 500)
1286
- throw new Error('Use an exact http or https origin without a path, credentials, query or fragment');
1287
- let url;
1288
- try {
1289
- url = new URL(item);
1290
- }
1291
- catch {
1292
- throw new Error('Use an exact http or https origin');
1293
- }
1294
- if (!['http:', 'https:'].includes(url.protocol) || url.hostname.includes('*') || url.username || url.password || item !== url.origin)
1295
- throw new Error('Use an exact http or https origin without a path, credentials, query or fragment');
1296
- return url.origin;
1297
- }))].sort();
1298
- };
1299
- return { allowOrigins: origins(value.allowOrigins, true), excludeOrigins: origins(value.excludeOrigins, false) };
1015
+ if (!input || typeof input !== "object" || Array.isArray(input))
1016
+ throw new Error("Choose exact allowed and excluded web origins");
1017
+ const value = input;
1018
+ if (Object.keys(value).some((key) => !["allowOrigins", "excludeOrigins"].includes(key)))
1019
+ throw new Error("Unsupported source filter");
1020
+ const origins = (items, required) => {
1021
+ if (!Array.isArray(items) || items.length > 20 || required && !items.length)
1022
+ throw new Error("Choose from one to twenty allowed origins and up to twenty excluded origins");
1023
+ return [...new Set(items.map((item) => {
1024
+ if (typeof item !== "string" || item.length > 500)
1025
+ throw new Error("Use an exact http or https origin without a path, credentials, query or fragment");
1026
+ let url;
1027
+ try {
1028
+ url = new URL(item);
1029
+ } catch {
1030
+ throw new Error("Use an exact http or https origin");
1031
+ }
1032
+ if (!["http:", "https:"].includes(url.protocol) || url.hostname.includes("*") || url.username || url.password || item !== url.origin)
1033
+ throw new Error("Use an exact http or https origin without a path, credentials, query or fragment");
1034
+ return url.origin;
1035
+ }))].sort();
1036
+ };
1037
+ return { allowOrigins: origins(value.allowOrigins, true), excludeOrigins: origins(value.excludeOrigins, false) };
1300
1038
  }
1301
1039
  function browserActivityOriginAllowed(policy, url) {
1302
- if (typeof url !== 'string')
1303
- return false;
1304
- try {
1305
- const origin = new URL(url).origin;
1306
- return ['http:', 'https:'].includes(new URL(url).protocol) && policy.allowOrigins.includes(origin) && !policy.excludeOrigins.includes(origin);
1307
- }
1308
- catch {
1309
- return false;
1310
- }
1040
+ if (typeof url !== "string")
1041
+ return false;
1042
+ try {
1043
+ const origin = new URL(url).origin;
1044
+ return ["http:", "https:"].includes(new URL(url).protocol) && policy.allowOrigins.includes(origin) && !policy.excludeOrigins.includes(origin);
1045
+ } catch {
1046
+ return false;
1047
+ }
1311
1048
  }
1049
+ // Annotate the CommonJS export names for ESM import in node:
1050
+ 0 && (module.exports = {
1051
+ COMPUTER_ACCESS_LEVELS,
1052
+ COMPUTER_ACTIVITY_ACTOR_KINDS,
1053
+ COMPUTER_ACTIVITY_KINDS,
1054
+ COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH,
1055
+ COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH,
1056
+ COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER,
1057
+ COMPUTER_ACTOR_ENGINE_MAX_LENGTH,
1058
+ COMPUTER_ACTOR_KINDS,
1059
+ COMPUTER_AGENT_WRITE_WAIT_MS,
1060
+ COMPUTER_API_ANSWERED_EVENT_KEYS,
1061
+ COMPUTER_BROWSER_COPY_MAX_LENGTH,
1062
+ COMPUTER_BROWSER_DIALOG_ANSWERERS,
1063
+ COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH,
1064
+ COMPUTER_BROWSER_DIALOG_KINDS,
1065
+ COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH,
1066
+ COMPUTER_BROWSER_DIALOG_OUTCOMES,
1067
+ COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH,
1068
+ COMPUTER_BROWSER_DOWNLOADS_MAX,
1069
+ COMPUTER_BROWSER_DOWNLOAD_STATES,
1070
+ COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH,
1071
+ COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES,
1072
+ COMPUTER_BROWSER_FILE_CHOOSER_MODES,
1073
+ COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES,
1074
+ COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH,
1075
+ COMPUTER_BROWSER_HISTORY_ACTIONS,
1076
+ COMPUTER_BROWSER_INPUT_PLATFORMS,
1077
+ COMPUTER_BROWSER_INPUT_TYPES,
1078
+ COMPUTER_BROWSER_TAB_ACTIONS,
1079
+ COMPUTER_BROWSER_URL_MAX_LENGTH,
1080
+ COMPUTER_BROWSER_VIEWPORT,
1081
+ COMPUTER_BROWSER_VIEWPORT_LIMITS,
1082
+ COMPUTER_CAPABILITIES,
1083
+ COMPUTER_CAPABILITY_VALUES,
1084
+ COMPUTER_COMMAND_NOT_STARTED_SIGNAL,
1085
+ COMPUTER_COMMAND_OUTCOMES,
1086
+ COMPUTER_COMMAND_OUTPUT_STREAMS,
1087
+ COMPUTER_COMMAND_PHASES,
1088
+ COMPUTER_COMMAND_START_REFUSALS,
1089
+ COMPUTER_COMMAND_UNKNOWN_END_SIGNAL,
1090
+ COMPUTER_CONTROL_ACTIONS,
1091
+ COMPUTER_CONTROL_ACTIVITY_CHANGES,
1092
+ COMPUTER_CONTROL_CHANGE_REASONS,
1093
+ COMPUTER_CONTROL_IDLE_MS,
1094
+ COMPUTER_DAEMON_LOG_LEVELS,
1095
+ COMPUTER_DAEMON_LOG_LIMITS,
1096
+ COMPUTER_DECLARED_SERVICES_MAX,
1097
+ COMPUTER_DECLARED_SERVICE_ACTIONS,
1098
+ COMPUTER_DECLARED_SERVICE_HOST,
1099
+ COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH,
1100
+ COMPUTER_DECLARED_SERVICE_NAME_PATTERN,
1101
+ COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH,
1102
+ COMPUTER_DECLARED_SERVICE_PROBLEMS,
1103
+ COMPUTER_DECLARED_SERVICE_PROTOCOLS,
1104
+ COMPUTER_DIAGNOSTICS_INTERVAL_MS,
1105
+ COMPUTER_DIAGNOSTICS_MAX_STREAMS,
1106
+ COMPUTER_DIAGNOSTIC_COUNTERS,
1107
+ COMPUTER_EVENTS,
1108
+ COMPUTER_EVENT_NAMES,
1109
+ COMPUTER_FILES_CHANGED_MAX_CHANGES,
1110
+ COMPUTER_FILES_WATCH_DEGRADED_REASONS,
1111
+ COMPUTER_FILE_CHANGES,
1112
+ COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES,
1113
+ COMPUTER_FILE_CONTENTS_TAG_PATTERN,
1114
+ COMPUTER_FILE_GIT_MARKS,
1115
+ COMPUTER_FILE_GIT_STATUS_BUDGET_MS,
1116
+ COMPUTER_FILE_OPERATIONS,
1117
+ COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS,
1118
+ COMPUTER_FILE_SEARCH_DEFAULT_LIMIT,
1119
+ COMPUTER_FILE_SEARCH_MAX_BUDGET_MS,
1120
+ COMPUTER_FILE_SEARCH_MAX_LIMIT,
1121
+ COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH,
1122
+ COMPUTER_FILE_SEARCH_OPERATIONS,
1123
+ COMPUTER_FILE_SEARCH_STATES,
1124
+ COMPUTER_FILE_TYPES,
1125
+ COMPUTER_FILE_WITHHELD_REASONS,
1126
+ COMPUTER_FRAME_ACK_TIMEOUT_MS,
1127
+ COMPUTER_FRAME_MAX_BYTES,
1128
+ COMPUTER_GRANT_TIERS,
1129
+ COMPUTER_HANDBACK_NOTE_MAX_LENGTH,
1130
+ COMPUTER_INPUT_TEXT_MAX_LENGTH,
1131
+ COMPUTER_LEASE_STATE_POWER_PHASE,
1132
+ COMPUTER_LIFECYCLE_EVENTS,
1133
+ COMPUTER_MACHINE_KINDS,
1134
+ COMPUTER_MANIFEST_REORDER_WAIT_MS,
1135
+ COMPUTER_OPERATIONS,
1136
+ COMPUTER_PERSONAL_POWER_PHASES,
1137
+ COMPUTER_PERSONAL_SIGN_IN_REASONS,
1138
+ COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES,
1139
+ COMPUTER_POWER_PHASES,
1140
+ COMPUTER_RECLAIM_WARNING_MS,
1141
+ COMPUTER_RECONNECT_GRACE_MS,
1142
+ COMPUTER_REFUSAL_CODES,
1143
+ COMPUTER_RESYNC_TIMEOUT_MS,
1144
+ COMPUTER_SERVER_EVENT_KEYS,
1145
+ COMPUTER_SERVICES_TOOL_ERROR_PREFIX,
1146
+ COMPUTER_SERVICES_TOOL_NAME,
1147
+ COMPUTER_SHARE_ACTIONS,
1148
+ COMPUTER_SHARE_MODES,
1149
+ COMPUTER_START_REFUSALS,
1150
+ COMPUTER_SURFACE_END_REASONS,
1151
+ COMPUTER_SURFACE_KINDS,
1152
+ COMPUTER_SURFACE_PIN_ACTIONS,
1153
+ COMPUTER_SURFACE_STATES,
1154
+ COMPUTER_SURFACE_UNPIN_REASONS,
1155
+ COMPUTER_TERMINAL_CAVEATS,
1156
+ COMPUTER_TERMINAL_CWD_MAX_LENGTH,
1157
+ COMPUTER_TERMINAL_HISTORY_CAUSES,
1158
+ COMPUTER_TERMINAL_INPUT_TYPES,
1159
+ COMPUTER_TERMINAL_LIFETIMES,
1160
+ COMPUTER_TERMINAL_SIGNALS,
1161
+ DAEMON_COMPUTER_EVENTS,
1162
+ DAEMON_COMPUTER_EVENT_NAMES,
1163
+ DAEMON_COMPUTER_REPORT_EVENT_KEYS,
1164
+ browserActivityOriginAllowed,
1165
+ clampComputerBrowserViewport,
1166
+ computerAccessOperations,
1167
+ computerControlChangeIsHolderChange,
1168
+ computerDeclaredServiceOperation,
1169
+ computerDeclaredServiceSpec,
1170
+ computerDeclaredServiceUrl,
1171
+ computerFileEntityTagsEqual,
1172
+ computerLeaseAcceptsInput,
1173
+ computerLeaseInputRefusal,
1174
+ computerOffersPowerActions,
1175
+ computerOperationAllowed,
1176
+ computerPowerPhaseForLeaseState,
1177
+ computerShowsDesktop,
1178
+ computerTierOperations,
1179
+ isComputerPlatformRouteSession,
1180
+ normalizeBrowserActivityOriginPolicy,
1181
+ normalizeComputerRefusalCode
1182
+ });