copilotz 1.0.0-rc.3 → 1.0.0-rc.30

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 (1562) hide show
  1. package/CHANGELOG.md +2087 -0
  2. package/README.md +1120 -165
  3. package/hosts/terminal/contract.d.ts +1 -1
  4. package/hosts/terminal/host.js +1 -1
  5. package/hosts/web/assets.d.ts +14 -11
  6. package/hosts/web/assets.js +27 -18
  7. package/hosts/web/host-words.d.ts +1 -0
  8. package/hosts/web/host-words.js +24 -0
  9. package/hosts/web/host.d.ts +20 -4
  10. package/hosts/web/host.js +96 -26
  11. package/hosts/web/lazy.js +1 -1
  12. package/hosts/web/mod.d.ts +9 -7
  13. package/hosts/web/mod.js +14 -6
  14. package/hosts/web/node/bundle.d.ts +5 -0
  15. package/hosts/web/node/bundle.js +2 -2
  16. package/hosts/web/node/mod.d.ts +45 -19
  17. package/hosts/web/node/mod.js +45 -19
  18. package/hosts/web/node/serve.d.ts +57 -34
  19. package/hosts/web/node/serve.js +95 -28
  20. package/hosts/web/palette/palette.js +10 -10
  21. package/hosts/web/palette/sources.js +1 -1
  22. package/hosts/web/palette/words.d.ts +1 -0
  23. package/hosts/web/palette/words.js +23 -0
  24. package/hosts/web/part.js +5 -4
  25. package/hosts/web/pwa.js +1 -1
  26. package/hosts/web/server.d.ts +47 -93
  27. package/hosts/web/server.js +177 -162
  28. package/hosts/web/signin-email.d.ts +56 -0
  29. package/hosts/web/signin-email.js +389 -0
  30. package/hosts/web/signin-words.d.ts +146 -0
  31. package/hosts/web/signin-words.js +167 -0
  32. package/hosts/web/signin.d.ts +26 -12
  33. package/hosts/web/signin.js +92 -56
  34. package/hosts/web/style.d.ts +1 -1
  35. package/hosts/web/style.js +10 -0
  36. package/hosts/web/surface.d.ts +20 -0
  37. package/hosts/web/surface.js +42 -0
  38. package/hosts/web/theme/css.d.ts +3 -2
  39. package/hosts/web/theme/css.js +10 -3
  40. package/hosts/web/theme/default.d.ts +1 -1
  41. package/hosts/web/theme/files/mod.d.ts +1 -1
  42. package/hosts/web/toolkit/ago.d.ts +0 -5
  43. package/hosts/web/toolkit/ago.js +17 -17
  44. package/hosts/web/toolkit/audio-player.d.ts +1 -1
  45. package/hosts/web/toolkit/audio-player.js +12 -7
  46. package/hosts/web/toolkit/button.js +6 -0
  47. package/hosts/web/toolkit/code-block.js +4 -3
  48. package/hosts/web/toolkit/copy-button.js +8 -2
  49. package/hosts/web/toolkit/detail-value.js +11 -7
  50. package/hosts/web/toolkit/dialog.js +2 -1
  51. package/hosts/web/toolkit/drawer.js +2 -1
  52. package/hosts/web/toolkit/formula.js +3 -2
  53. package/hosts/web/toolkit/humanize.d.ts +0 -12
  54. package/hosts/web/toolkit/humanize.js +2 -1
  55. package/hosts/web/toolkit/icon-button.js +6 -0
  56. package/hosts/web/toolkit/icon.d.ts +2 -0
  57. package/hosts/web/toolkit/icon.js +4 -0
  58. package/hosts/web/toolkit/inline-edit.js +2 -1
  59. package/hosts/web/toolkit/input.js +6 -0
  60. package/hosts/web/toolkit/long-text.js +2 -1
  61. package/hosts/web/toolkit/markdown/markdown.js +4 -3
  62. package/hosts/web/toolkit/terminal.js +5 -4
  63. package/hosts/web/toolkit/time.js +4 -2
  64. package/hosts/web/toolkit/words.d.ts +1 -0
  65. package/hosts/web/toolkit/words.js +60 -0
  66. package/hosts/web/update.js +2 -1
  67. package/hosts/web/widget.d.ts +31 -0
  68. package/hosts/web/widget.js +430 -0
  69. package/hosts/web/widgets.d.ts +43 -0
  70. package/hosts/web/widgets.js +118 -0
  71. package/hosts/web/words.d.ts +76 -0
  72. package/hosts/web/words.js +114 -0
  73. package/package.json +25 -13
  74. package/plugins/access/accounts/actions/callback.d.ts +0 -1
  75. package/plugins/access/accounts/actions/callback.js +19 -33
  76. package/plugins/access/accounts/actions/complete.js +2 -2
  77. package/plugins/access/accounts/actions/connect.js +2 -2
  78. package/plugins/access/accounts/actions/disconnect.js +8 -6
  79. package/plugins/access/accounts/actions/model-key.d.ts +5 -0
  80. package/plugins/access/accounts/actions/model-key.js +102 -0
  81. package/plugins/access/accounts/collections/account.d.ts +2 -2
  82. package/plugins/access/accounts/collections/account.js +1 -2
  83. package/plugins/access/accounts/collections/flow.d.ts +2 -2
  84. package/plugins/access/accounts/collections/model-key.d.ts +58 -0
  85. package/plugins/access/accounts/collections/model-key.js +17 -0
  86. package/plugins/access/accounts/contract.d.ts +1 -1
  87. package/plugins/access/accounts/mod.d.ts +7 -2
  88. package/plugins/access/accounts/mod.js +20 -5
  89. package/plugins/access/accounts/resources/models.js +2 -0
  90. package/plugins/access/accounts/routes/callback.d.ts +10 -0
  91. package/plugins/access/accounts/routes/callback.js +33 -0
  92. package/plugins/access/accounts/shared/flow.js +1 -1
  93. package/plugins/access/accounts/shared/oauth.d.ts +2 -2
  94. package/plugins/access/accounts/shared/oauth.js +2 -2
  95. package/plugins/access/accounts/shared/renew.js +4 -1
  96. package/plugins/access/accounts/shared/rules.d.ts +4 -2
  97. package/plugins/access/accounts/shared/rules.js +20 -5
  98. package/plugins/access/accounts/shared/settings.js +2 -2
  99. package/plugins/access/accounts/web.js +3 -3
  100. package/plugins/access/contacts/actions/chat.d.ts +1 -0
  101. package/plugins/access/contacts/actions/chat.js +45 -0
  102. package/plugins/access/contacts/actions/forget.d.ts +1 -0
  103. package/plugins/access/contacts/actions/forget.js +58 -0
  104. package/plugins/access/contacts/actions/start.d.ts +1 -0
  105. package/plugins/access/contacts/actions/start.js +60 -0
  106. package/plugins/access/contacts/collections/contact.d.ts +81 -0
  107. package/plugins/access/contacts/collections/contact.js +58 -0
  108. package/plugins/access/contacts/contract.d.ts +10 -0
  109. package/plugins/access/contacts/contract.js +10 -0
  110. package/plugins/access/contacts/mod.d.ts +31 -0
  111. package/plugins/access/contacts/mod.js +60 -0
  112. package/plugins/access/contacts/views/contact.d.ts +8 -0
  113. package/plugins/access/contacts/views/contact.js +26 -0
  114. package/plugins/access/contacts/web.d.ts +7 -0
  115. package/plugins/access/contacts/web.js +11 -0
  116. package/plugins/access/dev/actions/sign-in.d.ts +1 -0
  117. package/plugins/access/dev/actions/sign-in.js +52 -0
  118. package/plugins/access/dev/mod.d.ts +17 -0
  119. package/plugins/access/dev/mod.js +32 -0
  120. package/plugins/access/dev/routes/sign-in.d.ts +8 -0
  121. package/plugins/access/dev/routes/sign-in.js +25 -0
  122. package/plugins/access/dev/shared/here.d.ts +4 -0
  123. package/plugins/access/dev/shared/here.js +32 -0
  124. package/plugins/access/dev/shared/nearby.d.ts +2 -0
  125. package/plugins/access/dev/shared/nearby.js +27 -0
  126. package/plugins/access/directory/actions/code.d.ts +4 -0
  127. package/plugins/access/directory/actions/code.js +135 -0
  128. package/plugins/access/directory/actions/host.d.ts +2 -0
  129. package/plugins/access/directory/actions/host.js +55 -0
  130. package/plugins/access/directory/actions/invite.js +4 -5
  131. package/plugins/access/directory/actions/org.d.ts +0 -1
  132. package/plugins/access/directory/actions/org.js +33 -39
  133. package/plugins/access/directory/collections/credit-code.d.ts +114 -0
  134. package/plugins/access/directory/collections/credit-code.js +28 -0
  135. package/plugins/access/directory/collections/invite.d.ts +1 -1
  136. package/plugins/access/directory/collections/org-host.d.ts +62 -0
  137. package/plugins/access/directory/collections/org-host.js +30 -0
  138. package/plugins/access/directory/collections/org.d.ts +2 -2
  139. package/plugins/access/directory/collections/org.js +23 -1
  140. package/plugins/access/directory/contract.d.ts +8 -0
  141. package/plugins/access/directory/contract.js +8 -0
  142. package/plugins/access/directory/mod.d.ts +55 -12
  143. package/plugins/access/directory/mod.js +88 -14
  144. package/plugins/access/directory/routes/console.d.ts +26 -0
  145. package/plugins/access/directory/routes/console.js +129 -0
  146. package/plugins/access/directory/routes/enter.d.ts +18 -0
  147. package/plugins/access/directory/routes/enter.js +47 -0
  148. package/plugins/access/directory/routes/forward.d.ts +35 -0
  149. package/plugins/access/directory/routes/forward.js +119 -0
  150. package/plugins/access/directory/routes/orgs.d.ts +25 -0
  151. package/plugins/access/directory/routes/orgs.js +113 -0
  152. package/plugins/access/directory/routes/signout.d.ts +11 -0
  153. package/plugins/access/directory/routes/signout.js +36 -0
  154. package/plugins/access/directory/shared/enter.d.ts +36 -0
  155. package/plugins/access/directory/shared/enter.js +82 -0
  156. package/plugins/access/directory/shared/http.d.ts +42 -0
  157. package/plugins/access/directory/shared/http.js +77 -0
  158. package/plugins/access/directory/shared/member.d.ts +21 -0
  159. package/plugins/access/directory/shared/member.js +73 -0
  160. package/plugins/access/directory/shared/settings.d.ts +36 -4
  161. package/plugins/access/directory/shared/state.d.ts +74 -0
  162. package/plugins/access/directory/shared/state.js +101 -0
  163. package/{hosts/web/orgs.d.ts → plugins/access/directory/web.d.ts} +36 -0
  164. package/{hosts/web/orgs.js → plugins/access/directory/web.js} +34 -11
  165. package/plugins/access/directory/words.d.ts +1 -0
  166. package/plugins/access/directory/words.js +6 -0
  167. package/plugins/access/email/actions/import.d.ts +1 -0
  168. package/plugins/access/email/actions/import.js +54 -0
  169. package/plugins/access/email/actions/invite.d.ts +5 -0
  170. package/plugins/access/email/actions/invite.js +139 -0
  171. package/plugins/access/email/actions/prune.d.ts +1 -0
  172. package/plugins/access/email/actions/prune.js +20 -0
  173. package/plugins/access/email/actions/reset.d.ts +2 -0
  174. package/plugins/access/email/actions/reset.js +98 -0
  175. package/plugins/access/email/actions/send.d.ts +1 -0
  176. package/plugins/access/email/actions/send.js +41 -0
  177. package/plugins/access/email/actions/sign-in.d.ts +1 -0
  178. package/plugins/access/email/actions/sign-in.js +68 -0
  179. package/plugins/access/email/actions/sign-up.d.ts +4 -0
  180. package/plugins/access/email/actions/sign-up.js +105 -0
  181. package/plugins/access/email/adapters/console.d.ts +8 -0
  182. package/plugins/access/email/adapters/console.js +8 -0
  183. package/plugins/access/email/adapters/resend.d.ts +8 -0
  184. package/plugins/access/email/adapters/resend.js +29 -0
  185. package/plugins/access/email/collections/code.d.ts +118 -0
  186. package/plugins/access/email/collections/code.js +39 -0
  187. package/plugins/access/email/collections/login.d.ts +78 -0
  188. package/plugins/access/email/collections/login.js +28 -0
  189. package/plugins/access/email/collections/rate.d.ts +51 -0
  190. package/plugins/access/email/collections/rate.js +14 -0
  191. package/plugins/access/email/contract.d.ts +94 -0
  192. package/plugins/access/email/contract.js +7 -0
  193. package/plugins/access/email/mod.d.ts +63 -0
  194. package/plugins/access/email/mod.js +145 -0
  195. package/plugins/access/email/resources/messages.d.ts +9 -0
  196. package/plugins/access/email/resources/messages.js +55 -0
  197. package/plugins/access/email/routes/sign-in.d.ts +30 -0
  198. package/plugins/access/email/routes/sign-in.js +107 -0
  199. package/plugins/access/email/shared/codes.d.ts +41 -0
  200. package/plugins/access/email/shared/codes.js +90 -0
  201. package/plugins/access/email/shared/inputs.d.ts +32 -0
  202. package/plugins/access/email/shared/inputs.js +41 -0
  203. package/plugins/access/email/shared/limits.d.ts +31 -0
  204. package/plugins/access/email/shared/limits.js +56 -0
  205. package/plugins/access/email/shared/mail.d.ts +11 -0
  206. package/plugins/access/email/shared/mail.js +13 -0
  207. package/plugins/access/email/shared/password.d.ts +36 -0
  208. package/plugins/access/email/shared/password.js +85 -0
  209. package/plugins/access/email/shared/people.d.ts +33 -0
  210. package/plugins/access/email/shared/people.js +53 -0
  211. package/plugins/access/email/shared/settings.d.ts +29 -0
  212. package/plugins/access/email/shared/settings.js +39 -0
  213. package/plugins/access/google/actions/sign-in.js +3 -1
  214. package/plugins/access/google/adapters/keys.d.ts +4 -4
  215. package/plugins/access/google/adapters/keys.js +2 -2
  216. package/plugins/access/google/mod.d.ts +4 -2
  217. package/plugins/access/google/mod.js +6 -2
  218. package/plugins/access/google/routes/sign-in.d.ts +12 -0
  219. package/plugins/access/google/routes/sign-in.js +36 -0
  220. package/plugins/access/identity/actions/session.js +10 -6
  221. package/plugins/access/identity/collections/credential.d.ts +9 -19
  222. package/plugins/access/identity/collections/credential.js +9 -24
  223. package/plugins/access/identity/contract.d.ts +16 -2
  224. package/plugins/access/identity/contract.js +18 -1
  225. package/plugins/access/identity/mod.d.ts +13 -6
  226. package/plugins/access/identity/mod.js +38 -16
  227. package/plugins/access/identity/routes/session.d.ts +17 -0
  228. package/plugins/access/identity/routes/session.js +35 -0
  229. package/plugins/access/mod.d.ts +20 -3
  230. package/plugins/access/mod.js +9 -2
  231. package/plugins/access/spaces/actions/agents.js +15 -12
  232. package/plugins/access/spaces/actions/archive.js +4 -5
  233. package/plugins/access/spaces/actions/can.js +4 -4
  234. package/plugins/access/spaces/actions/create.js +17 -5
  235. package/plugins/access/spaces/actions/invitation.js +16 -13
  236. package/plugins/access/spaces/actions/keep.d.ts +1 -0
  237. package/plugins/access/spaces/actions/keep.js +55 -0
  238. package/plugins/access/spaces/actions/leave.js +2 -2
  239. package/plugins/access/spaces/actions/member.js +53 -39
  240. package/plugins/access/spaces/actions/org.d.ts +3 -2
  241. package/plugins/access/spaces/actions/org.js +26 -17
  242. package/plugins/access/spaces/actions/personal.js +7 -3
  243. package/plugins/access/spaces/actions/rename.js +8 -5
  244. package/plugins/access/spaces/actions/request.js +8 -13
  245. package/plugins/access/spaces/actions/share.js +2 -3
  246. package/plugins/access/spaces/collections/invitation.js +2 -2
  247. package/plugins/access/spaces/collections/member.d.ts +1 -1
  248. package/plugins/access/spaces/collections/profile.d.ts +61 -0
  249. package/plugins/access/spaces/collections/profile.js +54 -0
  250. package/plugins/access/spaces/collections/request.d.ts +1 -1
  251. package/plugins/access/spaces/collections/request.js +2 -2
  252. package/plugins/access/spaces/collections/space.d.ts +9 -0
  253. package/plugins/access/spaces/collections/space.js +33 -4
  254. package/plugins/access/spaces/contract.d.ts +65 -7
  255. package/plugins/access/spaces/contract.js +3 -0
  256. package/plugins/access/spaces/mod.d.ts +12 -1
  257. package/plugins/access/spaces/mod.js +28 -5
  258. package/plugins/access/spaces/processors/profile.d.ts +7 -0
  259. package/plugins/access/spaces/processors/profile.js +10 -0
  260. package/plugins/access/spaces/resources/commands.js +15 -5
  261. package/plugins/access/spaces/resources/tools.d.ts +0 -5
  262. package/plugins/access/spaces/resources/tools.js +14 -2
  263. package/plugins/access/spaces/shared/agents.js +2 -2
  264. package/plugins/access/spaces/shared/can.d.ts +27 -0
  265. package/plugins/access/spaces/shared/can.js +51 -0
  266. package/plugins/access/spaces/shared/declared.d.ts +21 -0
  267. package/plugins/access/spaces/shared/declared.js +8 -0
  268. package/plugins/access/spaces/shared/labels.d.ts +7 -1
  269. package/plugins/access/spaces/shared/labels.js +79 -11
  270. package/plugins/access/spaces/shared/managers.js +3 -3
  271. package/plugins/access/spaces/shared/names.d.ts +70 -0
  272. package/plugins/access/spaces/shared/names.js +105 -0
  273. package/plugins/access/spaces/shared/personal.d.ts +3 -2
  274. package/plugins/access/spaces/shared/personal.js +5 -3
  275. package/plugins/access/spaces/shared/profile.d.ts +21 -0
  276. package/plugins/access/spaces/shared/profile.js +27 -0
  277. package/plugins/access/spaces/shared/reach.d.ts +43 -7
  278. package/plugins/access/spaces/shared/reach.js +94 -20
  279. package/plugins/access/spaces/shared/rules.d.ts +26 -8
  280. package/plugins/access/spaces/shared/rules.js +118 -17
  281. package/plugins/access/spaces/shared/seat.d.ts +10 -0
  282. package/plugins/access/spaces/shared/seat.js +32 -0
  283. package/plugins/access/spaces/terminal.js +1 -1
  284. package/plugins/access/spaces/views/elsewhere.d.ts +2 -1
  285. package/plugins/access/spaces/views/elsewhere.js +30 -8
  286. package/plugins/access/spaces/views/web/agents.d.ts +6 -1
  287. package/plugins/access/spaces/views/web/agents.js +21 -21
  288. package/plugins/access/spaces/views/web/header.d.ts +3 -1
  289. package/plugins/access/spaces/views/web/header.js +26 -25
  290. package/plugins/access/spaces/views/web/invitation.d.ts +3 -1
  291. package/plugins/access/spaces/views/web/invitation.js +13 -10
  292. package/plugins/access/spaces/views/web/invitations.js +5 -2
  293. package/plugins/access/spaces/views/web/invite-dialog.d.ts +2 -2
  294. package/plugins/access/spaces/views/web/invite-dialog.js +6 -5
  295. package/plugins/access/spaces/views/web/invite.js +6 -5
  296. package/plugins/access/spaces/views/web/invited.js +4 -1
  297. package/plugins/access/spaces/views/web/inviting.js +11 -6
  298. package/plugins/access/spaces/views/web/members.d.ts +4 -1
  299. package/plugins/access/spaces/views/web/members.js +65 -23
  300. package/plugins/access/spaces/views/web/new-space.js +4 -3
  301. package/plugins/access/spaces/views/web/not-here.js +12 -16
  302. package/plugins/access/spaces/views/web/org-about.js +19 -16
  303. package/plugins/access/spaces/views/web/org-members.d.ts +1 -1
  304. package/plugins/access/spaces/views/web/org-members.js +34 -27
  305. package/plugins/access/spaces/views/web/palette.js +44 -33
  306. package/plugins/access/spaces/views/web/panel.d.ts +3 -2
  307. package/plugins/access/spaces/views/web/panel.js +36 -19
  308. package/plugins/access/spaces/views/web/pending.d.ts +3 -1
  309. package/plugins/access/spaces/views/web/pending.js +10 -7
  310. package/plugins/access/spaces/views/web/pick.js +10 -6
  311. package/plugins/access/spaces/views/web/sections.d.ts +31 -0
  312. package/plugins/access/spaces/views/web/sections.js +23 -0
  313. package/plugins/access/spaces/views/web/settings.js +26 -29
  314. package/plugins/access/spaces/views/web/space.d.ts +4 -2
  315. package/plugins/access/spaces/views/web/space.js +31 -14
  316. package/plugins/access/spaces/views/web/spaces.js +3 -2
  317. package/plugins/access/spaces/views/web/steps.js +19 -20
  318. package/plugins/access/spaces/views/web/style.d.ts +1 -1
  319. package/plugins/access/spaces/views/web/style.js +41 -0
  320. package/plugins/access/spaces/views/web/tabs.d.ts +18 -6
  321. package/plugins/access/spaces/views/web/tabs.js +26 -9
  322. package/plugins/access/spaces/views/web/tree.d.ts +3 -1
  323. package/plugins/access/spaces/views/web/tree.js +21 -17
  324. package/plugins/access/spaces/views/web/who.d.ts +30 -17
  325. package/plugins/access/spaces/views/web/who.js +80 -28
  326. package/plugins/access/spaces/views/web/words.d.ts +1 -0
  327. package/plugins/access/spaces/views/web/words.js +286 -0
  328. package/plugins/access/spaces/views/where.d.ts +4 -2
  329. package/plugins/access/spaces/views/where.js +18 -3
  330. package/plugins/access/spaces/web.js +64 -19
  331. package/plugins/access/web.d.ts +2 -0
  332. package/plugins/access/web.js +3 -0
  333. package/plugins/agents/chat/actions/attach.d.ts +3 -0
  334. package/plugins/agents/chat/actions/attach.js +92 -0
  335. package/plugins/agents/chat/actions/erase.d.ts +1 -0
  336. package/plugins/agents/chat/actions/erase.js +51 -0
  337. package/plugins/agents/chat/actions/fork.js +2 -2
  338. package/plugins/agents/chat/actions/import.d.ts +1 -0
  339. package/plugins/agents/chat/actions/import.js +244 -0
  340. package/plugins/agents/chat/actions/move.js +2 -2
  341. package/plugins/agents/chat/actions/open.d.ts +1 -0
  342. package/plugins/agents/chat/actions/open.js +49 -0
  343. package/plugins/agents/chat/actions/prune.d.ts +3 -0
  344. package/plugins/agents/chat/actions/prune.js +20 -0
  345. package/plugins/agents/chat/actions/quiet.d.ts +1 -0
  346. package/plugins/agents/chat/actions/quiet.js +33 -0
  347. package/plugins/agents/chat/actions/say.d.ts +1 -0
  348. package/plugins/agents/chat/actions/say.js +165 -0
  349. package/plugins/agents/chat/actions/send.d.ts +10 -0
  350. package/plugins/agents/chat/actions/send.js +202 -66
  351. package/plugins/agents/chat/actions/shown.d.ts +1 -0
  352. package/plugins/agents/chat/actions/shown.js +35 -0
  353. package/plugins/agents/chat/actions/stop.js +9 -2
  354. package/plugins/agents/chat/collections/file.d.ts +72 -4
  355. package/plugins/agents/chat/collections/file.js +58 -7
  356. package/plugins/agents/chat/collections/intent.d.ts +183 -0
  357. package/plugins/agents/chat/collections/intent.js +73 -0
  358. package/plugins/agents/chat/collections/live.d.ts +11 -0
  359. package/plugins/agents/chat/collections/live.js +11 -1
  360. package/plugins/agents/chat/collections/message.d.ts +227 -7
  361. package/plugins/agents/chat/collections/message.js +73 -6
  362. package/plugins/agents/chat/collections/shown.d.ts +105 -0
  363. package/plugins/agents/chat/collections/shown.js +34 -0
  364. package/plugins/agents/chat/collections/thread.d.ts +9 -0
  365. package/plugins/agents/chat/collections/thread.js +6 -4
  366. package/plugins/agents/chat/collections/wait.d.ts +13 -4
  367. package/plugins/agents/chat/collections/wait.js +4 -2
  368. package/plugins/agents/chat/contract.d.ts +22 -9
  369. package/plugins/agents/chat/contract.js +10 -0
  370. package/plugins/agents/chat/mod.d.ts +51 -8
  371. package/plugins/agents/chat/mod.js +134 -17
  372. package/plugins/agents/chat/processors/failed.js +30 -6
  373. package/plugins/agents/chat/processors/turn.d.ts +1 -1
  374. package/plugins/agents/chat/processors/turn.js +220 -51
  375. package/plugins/agents/chat/resources/commands.js +11 -2
  376. package/plugins/agents/chat/routes/files.d.ts +39 -0
  377. package/plugins/agents/chat/routes/files.js +169 -0
  378. package/plugins/agents/chat/shared/agents.d.ts +17 -2
  379. package/plugins/agents/chat/shared/agents.js +22 -4
  380. package/plugins/agents/chat/shared/contact-send.d.ts +32 -0
  381. package/plugins/agents/chat/shared/contact-send.js +18 -0
  382. package/plugins/agents/chat/shared/delivery.d.ts +23 -3
  383. package/plugins/agents/chat/shared/delivery.js +96 -10
  384. package/plugins/agents/chat/shared/lineage.d.ts +31 -5
  385. package/plugins/agents/chat/shared/lineage.js +65 -21
  386. package/plugins/agents/chat/shared/live.d.ts +4 -2
  387. package/plugins/agents/chat/shared/live.js +2 -1
  388. package/plugins/agents/chat/shared/origin.d.ts +22 -0
  389. package/plugins/agents/chat/shared/origin.js +11 -0
  390. package/plugins/agents/chat/shared/send.d.ts +3 -1
  391. package/plugins/agents/chat/shared/send.js +82 -3
  392. package/plugins/agents/chat/shared/tools.d.ts +33 -0
  393. package/plugins/agents/chat/shared/tools.js +28 -0
  394. package/plugins/agents/chat/shared/types.d.ts +146 -10
  395. package/plugins/agents/chat/shared/types.js +3 -0
  396. package/plugins/agents/chat/terminal.js +6 -6
  397. package/plugins/agents/chat/views/context.d.ts +4 -2
  398. package/plugins/agents/chat/views/context.js +7 -3
  399. package/plugins/agents/chat/views/history.d.ts +4 -0
  400. package/plugins/agents/chat/views/history.js +1 -1
  401. package/plugins/agents/chat/views/message.d.ts +8 -2
  402. package/plugins/agents/chat/views/message.js +55 -15
  403. package/plugins/agents/chat/views/participants.js +7 -1
  404. package/plugins/agents/chat/views/prompt.d.ts +3 -1
  405. package/plugins/agents/chat/views/prompt.js +66 -18
  406. package/plugins/agents/chat/views/terminal/agent-prompt.js +2 -2
  407. package/plugins/agents/chat/views/terminal/author.js +5 -1
  408. package/plugins/agents/chat/views/terminal/conversation.js +2 -2
  409. package/plugins/agents/chat/views/web/attach.d.ts +9 -3
  410. package/plugins/agents/chat/views/web/attach.js +17 -6
  411. package/plugins/agents/chat/views/web/chats.js +9 -6
  412. package/plugins/agents/chat/views/web/composer.d.ts +20 -4
  413. package/plugins/agents/chat/views/web/composer.js +64 -28
  414. package/plugins/agents/chat/views/web/conversation.d.ts +3 -2
  415. package/plugins/agents/chat/views/web/conversation.js +26 -12
  416. package/plugins/agents/chat/views/web/download.js +2 -1
  417. package/plugins/agents/chat/views/web/header.d.ts +2 -1
  418. package/plugins/agents/chat/views/web/header.js +8 -7
  419. package/plugins/agents/chat/views/web/held.d.ts +10 -9
  420. package/plugins/agents/chat/views/web/held.js +27 -20
  421. package/plugins/agents/chat/views/web/home.d.ts +3 -2
  422. package/plugins/agents/chat/views/web/home.js +11 -16
  423. package/plugins/agents/chat/views/web/listed.js +9 -7
  424. package/plugins/agents/chat/views/web/live.js +7 -6
  425. package/plugins/agents/chat/views/web/message.d.ts +10 -1
  426. package/plugins/agents/chat/views/web/message.js +45 -14
  427. package/plugins/agents/chat/views/web/missing.js +2 -1
  428. package/plugins/agents/chat/views/web/move.js +4 -3
  429. package/plugins/agents/chat/views/web/new-thread.js +2 -1
  430. package/plugins/agents/chat/views/web/over.d.ts +13 -9
  431. package/plugins/agents/chat/views/web/over.js +18 -10
  432. package/plugins/agents/chat/views/web/palette.js +20 -14
  433. package/plugins/agents/chat/views/web/picture.js +2 -1
  434. package/plugins/agents/chat/views/web/queued.js +3 -3
  435. package/plugins/agents/chat/views/web/recent.js +4 -3
  436. package/plugins/agents/chat/views/web/record.js +10 -12
  437. package/plugins/agents/chat/views/web/recorder.js +10 -9
  438. package/plugins/agents/chat/views/web/retrying.js +5 -4
  439. package/plugins/agents/chat/views/web/steps.js +8 -5
  440. package/plugins/agents/chat/views/web/style.d.ts +1 -1
  441. package/plugins/agents/chat/views/web/style.js +19 -6
  442. package/plugins/agents/chat/views/web/transcript.js +3 -2
  443. package/plugins/agents/chat/views/web/voice-failed.js +2 -1
  444. package/plugins/agents/chat/views/web/voice-note.js +2 -1
  445. package/plugins/agents/chat/views/web/who.js +4 -1
  446. package/plugins/agents/chat/views/web/words.d.ts +1 -0
  447. package/plugins/agents/chat/views/web/words.js +199 -0
  448. package/plugins/agents/chat/web.d.ts +5 -1
  449. package/plugins/agents/chat/web.js +14 -10
  450. package/plugins/agents/history/collections/outline.d.ts +76 -9
  451. package/plugins/agents/history/collections/outline.js +20 -4
  452. package/plugins/agents/history/collections/summary.d.ts +2 -2
  453. package/plugins/agents/history/mod.d.ts +14 -6
  454. package/plugins/agents/history/mod.js +19 -10
  455. package/plugins/agents/history/processors/compact.d.ts +6 -1
  456. package/plugins/agents/history/processors/compact.js +112 -43
  457. package/plugins/agents/history/processors/erase.d.ts +3 -0
  458. package/plugins/agents/history/processors/erase.js +11 -0
  459. package/plugins/agents/history/resources/tools.js +12 -3
  460. package/plugins/agents/history/shared/lines.d.ts +5 -2
  461. package/plugins/agents/history/shared/lines.js +10 -2
  462. package/plugins/agents/history/shared/settings.d.ts +5 -1
  463. package/plugins/agents/history/shared/weight.d.ts +28 -0
  464. package/plugins/agents/history/shared/weight.js +62 -0
  465. package/plugins/agents/history/views/history.d.ts +4 -1
  466. package/plugins/agents/history/views/history.js +22 -8
  467. package/plugins/agents/history/views/since.d.ts +6 -3
  468. package/plugins/agents/history/views/since.js +9 -2
  469. package/plugins/agents/memory/actions/import.d.ts +1 -0
  470. package/plugins/agents/memory/actions/import.js +88 -0
  471. package/plugins/agents/memory/collections/memory.js +31 -6
  472. package/plugins/agents/memory/mod.d.ts +2 -0
  473. package/plugins/agents/memory/mod.js +19 -4
  474. package/plugins/agents/memory/processors/extract.d.ts +1 -1
  475. package/plugins/agents/memory/processors/extract.js +14 -4
  476. package/plugins/agents/memory/resources/commands.js +1 -1
  477. package/plugins/agents/memory/resources/context.d.ts +9 -1
  478. package/plugins/agents/memory/resources/context.js +7 -1
  479. package/plugins/agents/memory/resources/tools.js +12 -9
  480. package/plugins/agents/memory/shared/scope.d.ts +12 -3
  481. package/plugins/agents/memory/shared/scope.js +25 -6
  482. package/plugins/agents/memory/shared/search.d.ts +3 -1
  483. package/plugins/agents/memory/shared/search.js +18 -4
  484. package/plugins/agents/memory/shared/settings.d.ts +12 -4
  485. package/plugins/agents/memory/shared/settings.js +15 -4
  486. package/plugins/agents/memory/terminal.js +1 -1
  487. package/plugins/agents/memory/views/context.d.ts +4 -7
  488. package/plugins/agents/memory/views/context.js +53 -43
  489. package/plugins/agents/memory/views/memory.d.ts +1 -0
  490. package/plugins/agents/memory/views/memory.js +4 -2
  491. package/plugins/agents/memory/views/terminal/memory.d.ts +4 -1
  492. package/plugins/agents/memory/views/terminal/memory.js +7 -2
  493. package/plugins/agents/memory/views/web/card.d.ts +4 -2
  494. package/plugins/agents/memory/views/web/card.js +12 -8
  495. package/plugins/agents/memory/views/web/list.d.ts +3 -1
  496. package/plugins/agents/memory/views/web/list.js +30 -18
  497. package/plugins/agents/memory/views/web/memories.js +9 -4
  498. package/plugins/agents/memory/views/web/move.js +4 -3
  499. package/plugins/agents/memory/views/web/palette.js +8 -5
  500. package/plugins/agents/memory/views/web/pick.js +15 -10
  501. package/plugins/agents/memory/views/web/words.d.ts +1 -0
  502. package/plugins/agents/memory/views/web/words.js +48 -0
  503. package/plugins/agents/memory/web.js +12 -4
  504. package/plugins/agents/mod.d.ts +9 -3
  505. package/plugins/agents/mod.js +9 -3
  506. package/plugins/agents/openapi/actions/operation.d.ts +11 -0
  507. package/plugins/agents/openapi/actions/operation.js +86 -0
  508. package/plugins/agents/openapi/contract.d.ts +77 -0
  509. package/plugins/agents/openapi/contract.js +1 -0
  510. package/plugins/agents/openapi/mod.d.ts +5 -0
  511. package/plugins/agents/openapi/mod.js +75 -0
  512. package/plugins/agents/openapi/resources/tools.d.ts +9 -0
  513. package/plugins/agents/openapi/resources/tools.js +23 -0
  514. package/plugins/agents/openapi/shared/files.d.ts +4 -0
  515. package/plugins/agents/openapi/shared/files.js +128 -0
  516. package/plugins/agents/openapi/shared/plan.d.ts +34 -0
  517. package/plugins/agents/openapi/shared/plan.js +122 -0
  518. package/plugins/agents/openapi/shared/request.d.ts +15 -0
  519. package/plugins/agents/openapi/shared/request.js +87 -0
  520. package/plugins/agents/openapi/shared/response.d.ts +24 -0
  521. package/plugins/agents/openapi/shared/response.js +133 -0
  522. package/plugins/agents/openapi/shared/schema.d.ts +20 -0
  523. package/plugins/agents/openapi/shared/schema.js +128 -0
  524. package/plugins/agents/openapi/shared/settings.d.ts +22 -0
  525. package/plugins/agents/openapi/shared/settings.js +34 -0
  526. package/plugins/agents/openapi/shared/spec.d.ts +55 -0
  527. package/plugins/agents/openapi/shared/spec.js +99 -0
  528. package/plugins/agents/routines/actions/create.js +24 -12
  529. package/plugins/agents/routines/actions/delete.js +2 -2
  530. package/plugins/agents/routines/actions/origin.d.ts +1 -0
  531. package/plugins/agents/routines/actions/origin.js +32 -0
  532. package/plugins/agents/routines/actions/pause.js +2 -2
  533. package/plugins/agents/routines/actions/resume.js +2 -2
  534. package/plugins/agents/routines/actions/run.js +4 -4
  535. package/plugins/agents/routines/actions/update.js +18 -10
  536. package/plugins/agents/routines/collections/routine.d.ts +16 -4
  537. package/plugins/agents/routines/collections/routine.js +14 -8
  538. package/plugins/agents/routines/collections/run.d.ts +10 -1
  539. package/plugins/agents/routines/collections/run.js +2 -0
  540. package/plugins/agents/routines/contract.d.ts +7 -1
  541. package/plugins/agents/routines/mod.d.ts +10 -2
  542. package/plugins/agents/routines/mod.js +23 -3
  543. package/plugins/agents/routines/resources/tools.js +64 -13
  544. package/plugins/agents/routines/shared/fire.d.ts +5 -2
  545. package/plugins/agents/routines/shared/fire.js +30 -14
  546. package/plugins/agents/routines/shared/routines.d.ts +17 -8
  547. package/plugins/agents/routines/shared/routines.js +33 -19
  548. package/plugins/agents/routines/shared/schedule.d.ts +5 -0
  549. package/plugins/agents/routines/shared/schedule.js +12 -1
  550. package/plugins/agents/routines/views/web/form.d.ts +4 -3
  551. package/plugins/agents/routines/views/web/form.js +29 -7
  552. package/plugins/agents/routines/views/web/new.js +1 -1
  553. package/plugins/agents/routines/views/web/page.d.ts +2 -1
  554. package/plugins/agents/routines/views/web/page.js +32 -10
  555. package/plugins/agents/routines/views/web/routines.d.ts +2 -1
  556. package/plugins/agents/routines/views/web/routines.js +1 -1
  557. package/plugins/agents/routines/views/web/step.js +3 -1
  558. package/plugins/agents/routines/views/web/style.d.ts +1 -1
  559. package/plugins/agents/routines/views/web/style.js +1 -0
  560. package/plugins/agents/routines/web.js +6 -6
  561. package/plugins/agents/skills/actions/create.js +2 -2
  562. package/plugins/agents/skills/actions/delete.js +2 -2
  563. package/plugins/agents/skills/actions/update.js +2 -2
  564. package/plugins/agents/skills/collections/skill.js +4 -4
  565. package/plugins/agents/skills/mod.js +11 -2
  566. package/plugins/agents/skills/shared/write.d.ts +2 -3
  567. package/plugins/agents/skills/shared/write.js +2 -1
  568. package/plugins/agents/skills/views/web/page.js +7 -3
  569. package/plugins/agents/skills/web.js +8 -6
  570. package/plugins/agents/team/actions/agent.js +5 -6
  571. package/plugins/agents/team/collections/agent.js +3 -3
  572. package/plugins/agents/team/contract.d.ts +7 -4
  573. package/plugins/agents/team/mod.js +8 -1
  574. package/plugins/agents/team/views/web/agent-add.js +4 -3
  575. package/plugins/agents/team/views/web/agent-fields.js +20 -16
  576. package/plugins/agents/team/views/web/agent-known.js +9 -8
  577. package/plugins/agents/team/views/web/agent-new.js +17 -12
  578. package/plugins/agents/team/views/web/agent-palette.js +37 -34
  579. package/plugins/agents/team/views/web/agent-steps.js +12 -8
  580. package/plugins/agents/team/views/web/agent.js +46 -36
  581. package/plugins/agents/team/views/web/agents.d.ts +1 -1
  582. package/plugins/agents/team/views/web/agents.js +6 -2
  583. package/plugins/agents/team/views/web/model-pick.d.ts +25 -0
  584. package/plugins/agents/team/views/web/model-pick.js +39 -0
  585. package/plugins/agents/team/views/web/model-picker.d.ts +57 -0
  586. package/plugins/agents/team/views/web/model-picker.js +218 -0
  587. package/plugins/agents/team/views/web/places.js +2 -7
  588. package/plugins/agents/team/views/web/style.d.ts +2 -2
  589. package/plugins/agents/team/views/web/style.js +52 -1
  590. package/plugins/agents/team/views/web/words.d.ts +1 -0
  591. package/plugins/agents/team/views/web/words.js +208 -0
  592. package/plugins/agents/team/web.d.ts +4 -2
  593. package/plugins/agents/team/web.js +9 -5
  594. package/plugins/agents/tiers/actions/choose.d.ts +2 -0
  595. package/plugins/agents/tiers/actions/choose.js +98 -0
  596. package/plugins/agents/tiers/actions/model.d.ts +1 -0
  597. package/plugins/agents/tiers/actions/model.js +36 -0
  598. package/plugins/agents/tiers/collections/choice.d.ts +48 -0
  599. package/plugins/agents/tiers/collections/choice.js +59 -0
  600. package/plugins/agents/tiers/contract.d.ts +19 -0
  601. package/plugins/agents/tiers/contract.js +1 -0
  602. package/plugins/agents/tiers/mod.d.ts +54 -0
  603. package/plugins/agents/tiers/mod.js +92 -0
  604. package/plugins/agents/tiers/shared/shown.d.ts +87 -0
  605. package/plugins/agents/tiers/shared/shown.js +155 -0
  606. package/plugins/agents/tiers/shared/tiers.d.ts +103 -0
  607. package/plugins/agents/tiers/shared/tiers.js +129 -0
  608. package/plugins/agents/tiers/views/web/org.d.ts +38 -0
  609. package/plugins/agents/tiers/views/web/org.js +142 -0
  610. package/plugins/agents/tiers/views/web/space.d.ts +43 -0
  611. package/plugins/agents/tiers/views/web/space.js +103 -0
  612. package/plugins/agents/tiers/views/web/style.d.ts +7 -0
  613. package/plugins/agents/tiers/views/web/style.js +87 -0
  614. package/plugins/agents/tiers/views/web/words.d.ts +21 -0
  615. package/plugins/agents/tiers/views/web/words.js +49 -0
  616. package/plugins/agents/tiers/web.d.ts +18 -0
  617. package/plugins/agents/tiers/web.js +40 -0
  618. package/plugins/agents/web.d.ts +1 -0
  619. package/plugins/agents/web.js +1 -0
  620. package/plugins/agents/webtools/adapters/duckduckgo.d.ts +21 -0
  621. package/plugins/agents/webtools/adapters/duckduckgo.js +168 -0
  622. package/plugins/agents/webtools/adapters/fake.d.ts +3 -0
  623. package/plugins/agents/webtools/adapters/fake.js +8 -0
  624. package/plugins/agents/webtools/adapters/serper.d.ts +2 -0
  625. package/plugins/agents/webtools/adapters/serper.js +30 -0
  626. package/plugins/agents/webtools/contract.d.ts +72 -0
  627. package/plugins/agents/webtools/contract.js +1 -0
  628. package/plugins/agents/webtools/mod.d.ts +55 -0
  629. package/plugins/agents/webtools/mod.js +75 -0
  630. package/plugins/agents/webtools/resources/tools.d.ts +2 -0
  631. package/plugins/agents/webtools/resources/tools.js +82 -0
  632. package/plugins/agents/webtools/shared/address.d.ts +9 -0
  633. package/plugins/agents/webtools/shared/address.js +112 -0
  634. package/plugins/agents/webtools/shared/read.d.ts +11 -0
  635. package/plugins/agents/webtools/shared/read.js +129 -0
  636. package/plugins/agents/webtools/shared/search.d.ts +15 -0
  637. package/plugins/agents/webtools/shared/search.js +54 -0
  638. package/plugins/agents/webtools/shared/settings.d.ts +20 -0
  639. package/plugins/agents/webtools/shared/settings.js +21 -0
  640. package/plugins/agents/webtools/shared/text.d.ts +15 -0
  641. package/plugins/agents/webtools/shared/text.js +88 -0
  642. package/plugins/billing/credits/actions/check.d.ts +5 -0
  643. package/plugins/billing/credits/actions/check.js +97 -0
  644. package/plugins/billing/credits/actions/manage.d.ts +9 -0
  645. package/plugins/billing/credits/actions/manage.js +266 -0
  646. package/plugins/billing/credits/actions/state.d.ts +2 -0
  647. package/plugins/billing/credits/actions/state.js +172 -0
  648. package/plugins/billing/credits/collections/credit.d.ts +110 -0
  649. package/plugins/billing/credits/collections/credit.js +31 -0
  650. package/plugins/billing/credits/collections/payment.d.ts +139 -0
  651. package/plugins/billing/credits/collections/payment.js +32 -0
  652. package/plugins/billing/credits/collections/plan.d.ts +428 -0
  653. package/plugins/billing/credits/collections/plan.js +97 -0
  654. package/plugins/billing/credits/collections/room.d.ts +85 -0
  655. package/plugins/billing/credits/collections/room.js +24 -0
  656. package/plugins/billing/credits/contract.d.ts +19 -0
  657. package/plugins/billing/credits/contract.js +12 -0
  658. package/plugins/billing/credits/mod.d.ts +38 -0
  659. package/plugins/billing/credits/mod.js +72 -0
  660. package/plugins/billing/credits/shared/apply.d.ts +66 -0
  661. package/plugins/billing/credits/shared/apply.js +106 -0
  662. package/plugins/billing/credits/shared/settings.d.ts +70 -0
  663. package/plugins/billing/credits/shared/settings.js +28 -0
  664. package/plugins/billing/credits/shared/standing.d.ts +71 -0
  665. package/plugins/billing/credits/shared/standing.js +235 -0
  666. package/plugins/billing/credits/shared/walk.d.ts +50 -0
  667. package/plugins/billing/credits/shared/walk.js +127 -0
  668. package/plugins/billing/credits/views/web/add.d.ts +25 -0
  669. package/plugins/billing/credits/views/web/add.js +92 -0
  670. package/plugins/billing/credits/views/web/budget.d.ts +16 -0
  671. package/plugins/billing/credits/views/web/budget.js +62 -0
  672. package/plugins/billing/credits/views/web/composer.d.ts +13 -0
  673. package/plugins/billing/credits/views/web/composer.js +65 -0
  674. package/plugins/billing/credits/views/web/history.d.ts +12 -0
  675. package/plugins/billing/credits/views/web/history.js +55 -0
  676. package/plugins/billing/credits/views/web/numbers.d.ts +256 -0
  677. package/plugins/billing/credits/views/web/numbers.js +291 -0
  678. package/plugins/billing/credits/views/web/org.d.ts +31 -0
  679. package/plugins/billing/credits/views/web/org.js +238 -0
  680. package/plugins/billing/credits/views/web/plan.d.ts +28 -0
  681. package/plugins/billing/credits/views/web/plan.js +84 -0
  682. package/plugins/billing/credits/views/web/staff.d.ts +20 -0
  683. package/plugins/billing/credits/views/web/staff.js +265 -0
  684. package/plugins/billing/credits/views/web/style.d.ts +9 -0
  685. package/plugins/billing/credits/views/web/style.js +190 -0
  686. package/plugins/billing/credits/views/web/types.d.ts +17 -0
  687. package/plugins/billing/credits/views/web/types.js +32 -0
  688. package/plugins/billing/credits/web.d.ts +12 -0
  689. package/plugins/billing/credits/web.js +33 -0
  690. package/plugins/billing/mod.d.ts +8 -3
  691. package/plugins/billing/mod.js +7 -3
  692. package/plugins/billing/stripe/actions/checkout.d.ts +4 -0
  693. package/plugins/billing/stripe/actions/checkout.js +188 -0
  694. package/plugins/billing/stripe/actions/fact.d.ts +1 -0
  695. package/plugins/billing/stripe/actions/fact.js +39 -0
  696. package/plugins/billing/stripe/mod.d.ts +30 -0
  697. package/plugins/billing/stripe/mod.js +52 -0
  698. package/plugins/billing/stripe/routes/webhook.d.ts +16 -0
  699. package/plugins/billing/stripe/routes/webhook.js +56 -0
  700. package/plugins/billing/stripe/shared/api.d.ts +14 -0
  701. package/plugins/billing/stripe/shared/api.js +42 -0
  702. package/plugins/billing/stripe/shared/events.d.ts +42 -0
  703. package/plugins/billing/stripe/shared/events.js +226 -0
  704. package/plugins/billing/stripe/shared/settings.d.ts +39 -0
  705. package/plugins/billing/stripe/shared/settings.js +10 -0
  706. package/plugins/billing/usage/actions/activity.d.ts +84 -0
  707. package/plugins/billing/usage/actions/activity.js +310 -0
  708. package/plugins/billing/usage/actions/close.js +36 -5
  709. package/plugins/billing/usage/actions/org.d.ts +29 -1
  710. package/plugins/billing/usage/actions/org.js +32 -62
  711. package/plugins/billing/usage/actions/quote.d.ts +7 -0
  712. package/plugins/billing/usage/actions/quote.js +86 -0
  713. package/plugins/billing/usage/actions/rerate.js +23 -2
  714. package/plugins/billing/usage/collections/closed.d.ts +11 -1
  715. package/plugins/billing/usage/collections/closed.js +4 -1
  716. package/plugins/billing/usage/collections/rollup.d.ts +82 -3
  717. package/plugins/billing/usage/collections/rollup.js +16 -4
  718. package/plugins/billing/usage/collections/usage.d.ts +77 -7
  719. package/plugins/billing/usage/collections/usage.js +34 -15
  720. package/plugins/billing/usage/mod.d.ts +31 -11
  721. package/plugins/billing/usage/mod.js +41 -13
  722. package/plugins/billing/usage/resources/commands.js +1 -1
  723. package/plugins/billing/usage/shared/categories.d.ts +24 -0
  724. package/plugins/billing/usage/shared/categories.js +40 -0
  725. package/plugins/billing/usage/shared/names.d.ts +45 -0
  726. package/plugins/billing/usage/shared/names.js +60 -0
  727. package/plugins/billing/usage/shared/rate.d.ts +39 -11
  728. package/plugins/billing/usage/shared/rate.js +90 -32
  729. package/plugins/billing/usage/shared/settings.d.ts +18 -1
  730. package/plugins/billing/usage/shared/settings.js +11 -2
  731. package/plugins/billing/usage/shared/totals.d.ts +38 -8
  732. package/plugins/billing/usage/shared/totals.js +87 -22
  733. package/plugins/billing/usage/shared/use.d.ts +13 -2
  734. package/plugins/billing/usage/shared/use.js +14 -7
  735. package/plugins/billing/usage/terminal.js +1 -1
  736. package/plugins/billing/usage/views/terminal/totals.d.ts +6 -2
  737. package/plugins/billing/usage/views/terminal/totals.js +38 -6
  738. package/plugins/billing/usage/views/web/chart.d.ts +25 -10
  739. package/plugins/billing/usage/views/web/chart.js +73 -40
  740. package/plugins/billing/usage/views/web/numbers.d.ts +145 -48
  741. package/plugins/billing/usage/views/web/numbers.js +294 -69
  742. package/plugins/billing/usage/views/web/org.d.ts +123 -6
  743. package/plugins/billing/usage/views/web/org.js +579 -124
  744. package/plugins/billing/usage/views/web/style.d.ts +9 -5
  745. package/plugins/billing/usage/views/web/style.js +148 -65
  746. package/plugins/billing/usage/views/web/words.d.ts +1 -0
  747. package/plugins/billing/usage/views/web/words.js +173 -0
  748. package/plugins/billing/usage/web.d.ts +8 -5
  749. package/plugins/billing/usage/web.js +9 -6
  750. package/plugins/billing/web.d.ts +3 -0
  751. package/plugins/billing/web.js +3 -0
  752. package/plugins/compute/apps/actions/build.d.ts +1 -0
  753. package/plugins/compute/apps/actions/build.js +99 -0
  754. package/plugins/compute/apps/actions/configure.d.ts +1 -0
  755. package/plugins/compute/apps/actions/configure.js +74 -0
  756. package/plugins/compute/apps/actions/list.d.ts +1 -0
  757. package/plugins/compute/apps/actions/list.js +13 -0
  758. package/plugins/compute/apps/actions/meter.d.ts +1 -0
  759. package/plugins/compute/apps/actions/meter.js +43 -0
  760. package/plugins/compute/apps/actions/publish.d.ts +1 -0
  761. package/plugins/compute/apps/actions/publish.js +41 -0
  762. package/plugins/compute/apps/actions/redeploy.d.ts +1 -0
  763. package/plugins/compute/apps/actions/redeploy.js +26 -0
  764. package/plugins/compute/apps/actions/remove.d.ts +1 -0
  765. package/plugins/compute/apps/actions/remove.js +47 -0
  766. package/plugins/compute/apps/adapters/cloudrun.d.ts +90 -0
  767. package/plugins/compute/apps/adapters/cloudrun.js +353 -0
  768. package/plugins/compute/apps/adapters/front.d.ts +24 -0
  769. package/plugins/compute/apps/adapters/front.js +131 -0
  770. package/plugins/compute/apps/adapters/local.d.ts +15 -0
  771. package/plugins/compute/apps/adapters/local.js +139 -0
  772. package/plugins/compute/apps/adapters/tar.d.ts +29 -0
  773. package/plugins/compute/apps/adapters/tar.js +178 -0
  774. package/plugins/compute/apps/collections/app.d.ts +143 -0
  775. package/plugins/compute/apps/collections/app.js +60 -0
  776. package/plugins/compute/apps/contract.d.ts +73 -0
  777. package/plugins/compute/apps/contract.js +8 -0
  778. package/plugins/compute/apps/mod.d.ts +42 -0
  779. package/plugins/compute/apps/mod.js +76 -0
  780. package/plugins/compute/apps/resources/tools.d.ts +10 -0
  781. package/plugins/compute/apps/resources/tools.js +85 -0
  782. package/plugins/compute/apps/shared/archive.d.ts +24 -0
  783. package/plugins/compute/apps/shared/archive.js +69 -0
  784. package/plugins/compute/apps/shared/claims.d.ts +28 -0
  785. package/plugins/compute/apps/shared/claims.js +18 -0
  786. package/plugins/compute/apps/shared/environment.d.ts +8 -0
  787. package/plugins/compute/apps/shared/environment.js +15 -0
  788. package/plugins/compute/apps/shared/errors.d.ts +4 -0
  789. package/plugins/compute/apps/shared/errors.js +4 -0
  790. package/plugins/compute/apps/shared/host.d.ts +19 -0
  791. package/plugins/compute/apps/shared/host.js +19 -0
  792. package/plugins/compute/apps/shared/label.d.ts +21 -0
  793. package/plugins/compute/apps/shared/label.js +51 -0
  794. package/plugins/compute/apps/shared/meter.d.ts +17 -0
  795. package/plugins/compute/apps/shared/meter.js +29 -0
  796. package/plugins/compute/apps/shared/publish.d.ts +41 -0
  797. package/plugins/compute/apps/shared/publish.js +141 -0
  798. package/plugins/compute/apps/shared/settings.d.ts +49 -0
  799. package/plugins/compute/apps/shared/settings.js +22 -0
  800. package/plugins/compute/apps/views/web/apps.d.ts +54 -0
  801. package/plugins/compute/apps/views/web/apps.js +48 -0
  802. package/plugins/compute/apps/views/web/env.d.ts +54 -0
  803. package/plugins/compute/apps/views/web/env.js +195 -0
  804. package/plugins/compute/apps/views/web/publish.d.ts +24 -0
  805. package/plugins/compute/apps/views/web/publish.js +158 -0
  806. package/plugins/compute/apps/views/web/space.d.ts +16 -0
  807. package/plugins/compute/apps/views/web/space.js +138 -0
  808. package/plugins/compute/apps/views/web/style.d.ts +7 -0
  809. package/plugins/compute/apps/views/web/style.js +155 -0
  810. package/plugins/compute/apps/web.d.ts +17 -0
  811. package/plugins/compute/apps/web.js +35 -0
  812. package/plugins/compute/cloud/actions/create.d.ts +1 -0
  813. package/plugins/compute/cloud/actions/create.js +76 -0
  814. package/plugins/compute/cloud/actions/daily.d.ts +1 -0
  815. package/plugins/compute/cloud/actions/daily.js +75 -0
  816. package/plugins/compute/cloud/actions/destroy.d.ts +1 -0
  817. package/plugins/compute/cloud/actions/destroy.js +71 -0
  818. package/plugins/compute/cloud/actions/may.d.ts +1 -0
  819. package/plugins/compute/cloud/actions/may.js +15 -0
  820. package/plugins/compute/cloud/actions/org.d.ts +1 -0
  821. package/plugins/compute/cloud/actions/org.js +21 -0
  822. package/plugins/compute/cloud/actions/pool-tick.d.ts +4 -0
  823. package/plugins/compute/cloud/actions/pool-tick.js +96 -0
  824. package/plugins/compute/cloud/actions/pool.d.ts +3 -0
  825. package/plugins/compute/cloud/actions/pool.js +100 -0
  826. package/plugins/compute/cloud/actions/release.d.ts +1 -0
  827. package/plugins/compute/cloud/actions/release.js +58 -0
  828. package/plugins/compute/cloud/actions/remote.d.ts +10 -0
  829. package/plugins/compute/cloud/actions/remote.js +26 -0
  830. package/plugins/compute/cloud/actions/tick.d.ts +1 -0
  831. package/plugins/compute/cloud/actions/tick.js +105 -0
  832. package/plugins/compute/cloud/actions/touch.d.ts +1 -0
  833. package/plugins/compute/cloud/actions/touch.js +32 -0
  834. package/plugins/compute/cloud/actions/vms.d.ts +7 -0
  835. package/plugins/compute/cloud/actions/vms.js +213 -0
  836. package/plugins/compute/cloud/actions/wake.d.ts +1 -0
  837. package/plugins/compute/cloud/actions/wake.js +153 -0
  838. package/plugins/compute/cloud/adapters/gce/index.d.ts +73 -0
  839. package/plugins/compute/cloud/adapters/gce/index.js +242 -0
  840. package/plugins/compute/cloud/adapters/local.d.ts +48 -0
  841. package/plugins/compute/cloud/adapters/local.js +188 -0
  842. package/plugins/compute/cloud/collections/cloud-computer.d.ts +109 -0
  843. package/plugins/compute/cloud/collections/cloud-computer.js +89 -0
  844. package/plugins/compute/cloud/collections/pool-vm.d.ts +79 -0
  845. package/plugins/compute/cloud/collections/pool-vm.js +36 -0
  846. package/plugins/compute/cloud/collections/pool-want.d.ts +94 -0
  847. package/plugins/compute/cloud/collections/pool-want.js +27 -0
  848. package/plugins/compute/cloud/contract.d.ts +242 -0
  849. package/plugins/compute/cloud/contract.js +73 -0
  850. package/plugins/compute/cloud/mod.d.ts +97 -0
  851. package/plugins/compute/cloud/mod.js +209 -0
  852. package/plugins/compute/cloud/processors/mark.d.ts +9 -0
  853. package/plugins/compute/cloud/processors/mark.js +13 -0
  854. package/plugins/compute/cloud/resources/tools.d.ts +3 -0
  855. package/plugins/compute/cloud/resources/tools.js +237 -0
  856. package/plugins/compute/cloud/shared/google.d.ts +75 -0
  857. package/plugins/compute/cloud/shared/google.js +218 -0
  858. package/plugins/compute/cloud/shared/host.d.ts +11 -0
  859. package/plugins/compute/cloud/shared/host.js +29 -0
  860. package/plugins/compute/cloud/shared/may.d.ts +21 -0
  861. package/plugins/compute/cloud/shared/may.js +22 -0
  862. package/plugins/compute/cloud/shared/meter.d.ts +36 -0
  863. package/plugins/compute/cloud/shared/meter.js +68 -0
  864. package/plugins/compute/cloud/shared/names.d.ts +10 -0
  865. package/plugins/compute/cloud/shared/names.js +11 -0
  866. package/plugins/compute/cloud/shared/people.d.ts +19 -0
  867. package/plugins/compute/cloud/shared/people.js +12 -0
  868. package/plugins/compute/cloud/shared/records.d.ts +31 -0
  869. package/plugins/compute/cloud/shared/records.js +18 -0
  870. package/plugins/compute/cloud/shared/settings.d.ts +70 -0
  871. package/plugins/compute/cloud/shared/settings.js +47 -0
  872. package/plugins/compute/cloud/shared/time.d.ts +21 -0
  873. package/plugins/compute/cloud/shared/time.js +33 -0
  874. package/plugins/compute/cloud/views/web/cloud.d.ts +79 -0
  875. package/plugins/compute/cloud/views/web/cloud.js +122 -0
  876. package/plugins/compute/cloud/views/web/computer.d.ts +37 -0
  877. package/plugins/compute/cloud/views/web/computer.js +195 -0
  878. package/plugins/compute/cloud/views/web/new.d.ts +27 -0
  879. package/plugins/compute/cloud/views/web/new.js +103 -0
  880. package/plugins/compute/cloud/views/web/style.d.ts +6 -0
  881. package/plugins/compute/cloud/views/web/style.js +84 -0
  882. package/plugins/compute/cloud/web.d.ts +19 -0
  883. package/plugins/compute/cloud/web.js +61 -0
  884. package/plugins/compute/computers/actions/admit.js +2 -0
  885. package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
  886. package/plugins/compute/computers/actions/allow-origin.js +48 -0
  887. package/plugins/compute/computers/actions/allowed.d.ts +1 -0
  888. package/plugins/compute/computers/actions/allowed.js +50 -0
  889. package/plugins/compute/computers/actions/approve.js +48 -10
  890. package/plugins/compute/computers/actions/code.js +6 -4
  891. package/plugins/compute/computers/actions/default.js +4 -8
  892. package/plugins/compute/computers/actions/enrollment.d.ts +1 -0
  893. package/plugins/compute/computers/actions/enrollment.js +51 -0
  894. package/plugins/compute/computers/actions/env.d.ts +3 -0
  895. package/plugins/compute/computers/actions/env.js +134 -0
  896. package/plugins/compute/computers/actions/forget-grant.d.ts +1 -0
  897. package/plugins/compute/computers/actions/forget-grant.js +16 -0
  898. package/plugins/compute/computers/actions/forget.js +15 -3
  899. package/plugins/compute/computers/actions/mark.d.ts +1 -0
  900. package/plugins/compute/computers/actions/mark.js +36 -0
  901. package/plugins/compute/computers/actions/move.js +5 -4
  902. package/plugins/compute/computers/actions/preview.d.ts +4 -0
  903. package/plugins/compute/computers/actions/preview.js +183 -0
  904. package/plugins/compute/computers/actions/provision.d.ts +1 -0
  905. package/plugins/compute/computers/actions/provision.js +51 -0
  906. package/plugins/compute/computers/actions/rename.js +2 -2
  907. package/plugins/compute/computers/actions/running.d.ts +1 -0
  908. package/plugins/compute/computers/actions/running.js +33 -0
  909. package/plugins/compute/computers/actions/scope.d.ts +1 -0
  910. package/plugins/compute/computers/actions/scope.js +61 -0
  911. package/plugins/compute/computers/actions/share.js +5 -4
  912. package/plugins/compute/computers/actions/unshare.js +5 -8
  913. package/plugins/compute/computers/actions/view.d.ts +1 -0
  914. package/plugins/compute/computers/actions/view.js +29 -0
  915. package/plugins/compute/computers/actions/work.js +44 -6
  916. package/plugins/compute/computers/collections/approval.d.ts +81 -5
  917. package/plugins/compute/computers/collections/approval.js +25 -5
  918. package/plugins/compute/computers/collections/computer.d.ts +69 -0
  919. package/plugins/compute/computers/collections/computer.js +18 -2
  920. package/plugins/compute/computers/collections/desk.d.ts +53 -0
  921. package/plugins/compute/computers/collections/desk.js +11 -3
  922. package/plugins/compute/computers/collections/env-var.d.ts +122 -0
  923. package/plugins/compute/computers/collections/env-var.js +51 -0
  924. package/plugins/compute/computers/collections/grant.d.ts +20 -3
  925. package/plugins/compute/computers/collections/grant.js +21 -5
  926. package/plugins/compute/computers/collections/preview.d.ts +111 -0
  927. package/plugins/compute/computers/collections/preview.js +58 -0
  928. package/plugins/compute/computers/contract.d.ts +18 -0
  929. package/plugins/compute/computers/contract.js +8 -0
  930. package/plugins/compute/computers/mod.d.ts +10 -1
  931. package/plugins/compute/computers/mod.js +62 -8
  932. package/plugins/compute/computers/processors/left.d.ts +8 -0
  933. package/plugins/compute/computers/processors/left.js +31 -0
  934. package/plugins/compute/computers/program/version.d.ts +1 -1
  935. package/plugins/compute/computers/program/version.js +1 -1
  936. package/plugins/compute/computers/resources/commands.js +29 -13
  937. package/plugins/compute/computers/resources/downloads.js +11 -13
  938. package/plugins/compute/computers/resources/previews.d.ts +29 -0
  939. package/plugins/compute/computers/resources/previews.js +408 -0
  940. package/plugins/compute/computers/resources/tools.d.ts +11 -5
  941. package/plugins/compute/computers/resources/tools.js +155 -22
  942. package/plugins/compute/computers/shared/ask.d.ts +17 -5
  943. package/plugins/compute/computers/shared/ask.js +89 -14
  944. package/plugins/compute/computers/shared/asks.d.ts +2 -2
  945. package/plugins/compute/computers/shared/asks.js +3 -2
  946. package/plugins/compute/computers/shared/desks.d.ts +1 -5
  947. package/plugins/compute/computers/shared/desks.js +2 -11
  948. package/plugins/compute/computers/shared/env.d.ts +20 -0
  949. package/plugins/compute/computers/shared/env.js +50 -0
  950. package/plugins/compute/computers/shared/grants.d.ts +32 -0
  951. package/plugins/compute/computers/shared/grants.js +64 -0
  952. package/plugins/compute/computers/shared/jobs.d.ts +13 -0
  953. package/plugins/compute/computers/shared/jobs.js +16 -0
  954. package/plugins/compute/computers/shared/preview-url.d.ts +5 -0
  955. package/plugins/compute/computers/shared/preview-url.js +5 -0
  956. package/plugins/compute/computers/shared/seal.d.ts +4 -0
  957. package/plugins/compute/computers/shared/seal.js +60 -0
  958. package/plugins/compute/computers/shared/settings.d.ts +32 -5
  959. package/plugins/compute/computers/shared/settings.js +12 -0
  960. package/plugins/compute/computers/shared/wake.d.ts +43 -0
  961. package/plugins/compute/computers/shared/wake.js +80 -0
  962. package/plugins/compute/computers/shared/where.d.ts +34 -7
  963. package/plugins/compute/computers/shared/where.js +81 -11
  964. package/plugins/compute/computers/shared/workloads.d.ts +50 -0
  965. package/plugins/compute/computers/shared/workloads.js +4 -0
  966. package/plugins/compute/computers/terminal.js +1 -1
  967. package/plugins/compute/computers/views/context.d.ts +7 -6
  968. package/plugins/compute/computers/views/context.js +121 -42
  969. package/plugins/compute/computers/views/terminal/approvals.js +3 -1
  970. package/plugins/compute/computers/views/web/add.d.ts +41 -0
  971. package/plugins/compute/computers/views/web/add.js +60 -0
  972. package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
  973. package/plugins/compute/computers/views/web/allowed.js +38 -0
  974. package/plugins/compute/computers/views/web/asked.d.ts +26 -7
  975. package/plugins/compute/computers/views/web/asked.js +47 -10
  976. package/plugins/compute/computers/views/web/asks.d.ts +14 -8
  977. package/plugins/compute/computers/views/web/asks.js +46 -18
  978. package/plugins/compute/computers/views/web/calls.js +5 -2
  979. package/plugins/compute/computers/views/web/computer.d.ts +4 -1
  980. package/plugins/compute/computers/views/web/computer.js +21 -2
  981. package/plugins/compute/computers/views/web/connect.d.ts +18 -3
  982. package/plugins/compute/computers/views/web/connect.js +52 -35
  983. package/plugins/compute/computers/views/web/desks.d.ts +19 -8
  984. package/plugins/compute/computers/views/web/desks.js +67 -37
  985. package/plugins/compute/computers/views/web/env.d.ts +32 -0
  986. package/plugins/compute/computers/views/web/env.js +154 -0
  987. package/plugins/compute/computers/views/web/environment.d.ts +23 -0
  988. package/plugins/compute/computers/views/web/environment.js +47 -0
  989. package/plugins/compute/computers/views/web/jobs.d.ts +18 -6
  990. package/plugins/compute/computers/views/web/jobs.js +56 -21
  991. package/plugins/compute/computers/views/web/kinds.d.ts +102 -0
  992. package/plugins/compute/computers/views/web/kinds.js +37 -0
  993. package/plugins/compute/computers/views/web/mark.d.ts +7 -2
  994. package/plugins/compute/computers/views/web/mark.js +2 -2
  995. package/plugins/compute/computers/views/web/names.d.ts +3 -2
  996. package/plugins/compute/computers/views/web/names.js +5 -3
  997. package/plugins/compute/computers/views/web/page.d.ts +14 -2
  998. package/plugins/compute/computers/views/web/page.js +48 -26
  999. package/plugins/compute/computers/views/web/previews.d.ts +44 -0
  1000. package/plugins/compute/computers/views/web/previews.js +33 -0
  1001. package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
  1002. package/plugins/compute/computers/views/web/routine-panel.js +91 -0
  1003. package/plugins/compute/computers/views/web/serve.d.ts +47 -0
  1004. package/plugins/compute/computers/views/web/serve.js +168 -0
  1005. package/plugins/compute/computers/views/web/space-tab.d.ts +4 -3
  1006. package/plugins/compute/computers/views/web/space-tab.js +39 -9
  1007. package/plugins/compute/computers/views/web/step.js +7 -1
  1008. package/plugins/compute/computers/views/web/style.d.ts +1 -1
  1009. package/plugins/compute/computers/views/web/style.js +166 -2
  1010. package/plugins/compute/computers/views/web/workspace.d.ts +16 -3
  1011. package/plugins/compute/computers/views/web/workspace.js +49 -6
  1012. package/plugins/compute/computers/web.d.ts +17 -4
  1013. package/plugins/compute/computers/web.js +38 -11
  1014. package/plugins/compute/mod.d.ts +8 -1
  1015. package/plugins/compute/mod.js +8 -1
  1016. package/plugins/compute/web.d.ts +13 -0
  1017. package/plugins/compute/web.js +13 -0
  1018. package/plugins/interfaces/api/actions/create.js +51 -26
  1019. package/plugins/interfaces/api/actions/revoke.js +19 -9
  1020. package/plugins/interfaces/api/collections/key.d.ts +125 -55
  1021. package/plugins/interfaces/api/collections/key.js +37 -38
  1022. package/plugins/interfaces/api/contract.d.ts +11 -11
  1023. package/plugins/interfaces/api/contract.js +1 -1
  1024. package/plugins/interfaces/api/mod.d.ts +18 -13
  1025. package/plugins/interfaces/api/mod.js +24 -15
  1026. package/plugins/interfaces/api/processors/left.d.ts +7 -0
  1027. package/plugins/interfaces/api/processors/left.js +19 -0
  1028. package/plugins/interfaces/api/resources/presets.d.ts +3 -2
  1029. package/plugins/interfaces/api/resources/presets.js +6 -4
  1030. package/plugins/interfaces/api/shared/actor.d.ts +22 -16
  1031. package/plugins/interfaces/api/shared/actor.js +32 -22
  1032. package/plugins/interfaces/api/shared/end.d.ts +9 -0
  1033. package/plugins/interfaces/api/shared/end.js +10 -0
  1034. package/plugins/interfaces/api/shared/rules.d.ts +7 -11
  1035. package/plugins/interfaces/api/shared/rules.js +20 -24
  1036. package/plugins/interfaces/api/views/web/create.d.ts +7 -5
  1037. package/plugins/interfaces/api/views/web/create.js +38 -33
  1038. package/plugins/interfaces/api/views/web/keys.d.ts +21 -4
  1039. package/plugins/interfaces/api/views/web/keys.js +22 -19
  1040. package/plugins/interfaces/api/views/web/members.d.ts +13 -0
  1041. package/plugins/interfaces/api/views/web/members.js +35 -0
  1042. package/plugins/interfaces/api/views/web/reference.d.ts +6 -6
  1043. package/plugins/interfaces/api/views/web/reference.js +17 -7
  1044. package/plugins/interfaces/api/views/web/snippet.d.ts +18 -13
  1045. package/plugins/interfaces/api/views/web/snippet.js +27 -16
  1046. package/plugins/interfaces/api/views/web/style.d.ts +4 -3
  1047. package/plugins/interfaces/api/views/web/style.js +31 -2
  1048. package/plugins/interfaces/api/web.d.ts +5 -4
  1049. package/plugins/interfaces/api/web.js +11 -6
  1050. package/plugins/interfaces/maintenance/actions/read.d.ts +4 -0
  1051. package/plugins/interfaces/maintenance/actions/read.js +76 -0
  1052. package/plugins/interfaces/maintenance/actions/write.d.ts +4 -0
  1053. package/plugins/interfaces/maintenance/actions/write.js +64 -0
  1054. package/plugins/interfaces/maintenance/contract.d.ts +60 -0
  1055. package/plugins/interfaces/maintenance/contract.js +2 -0
  1056. package/plugins/interfaces/maintenance/mod.d.ts +54 -0
  1057. package/plugins/interfaces/maintenance/mod.js +66 -0
  1058. package/plugins/interfaces/maintenance/resources/routes.d.ts +61 -0
  1059. package/plugins/interfaces/maintenance/resources/routes.js +452 -0
  1060. package/plugins/interfaces/maintenance/shared/ops.d.ts +4 -0
  1061. package/plugins/interfaces/maintenance/shared/ops.js +19 -0
  1062. package/plugins/interfaces/mcp/actions/call.d.ts +15 -0
  1063. package/plugins/interfaces/mcp/actions/call.js +406 -0
  1064. package/plugins/interfaces/mcp/actions/conversation.d.ts +1 -0
  1065. package/plugins/interfaces/mcp/actions/conversation.js +49 -0
  1066. package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
  1067. package/plugins/interfaces/mcp/actions/prune.js +20 -0
  1068. package/plugins/interfaces/mcp/collections/closed.d.ts +23 -0
  1069. package/plugins/interfaces/mcp/collections/closed.js +17 -0
  1070. package/plugins/interfaces/mcp/collections/opening.d.ts +24 -0
  1071. package/plugins/interfaces/mcp/collections/opening.js +28 -0
  1072. package/plugins/interfaces/mcp/collections/rate.d.ts +27 -0
  1073. package/plugins/interfaces/mcp/collections/rate.js +18 -0
  1074. package/plugins/interfaces/mcp/collections/receipt.d.ts +46 -0
  1075. package/plugins/interfaces/mcp/collections/receipt.js +46 -0
  1076. package/plugins/interfaces/mcp/contract.d.ts +8 -0
  1077. package/plugins/interfaces/mcp/contract.js +8 -0
  1078. package/plugins/interfaces/mcp/mod.d.ts +108 -0
  1079. package/plugins/interfaces/mcp/mod.js +157 -0
  1080. package/plugins/interfaces/mcp/processors/closed.d.ts +13 -0
  1081. package/plugins/interfaces/mcp/processors/closed.js +16 -0
  1082. package/plugins/interfaces/mcp/resources/running.d.ts +21 -0
  1083. package/plugins/interfaces/mcp/resources/running.js +36 -0
  1084. package/plugins/interfaces/mcp/resources/server.d.ts +56 -0
  1085. package/plugins/interfaces/mcp/resources/server.js +560 -0
  1086. package/plugins/interfaces/mcp/resources/tools.d.ts +188 -0
  1087. package/plugins/interfaces/mcp/resources/tools.js +417 -0
  1088. package/plugins/interfaces/mcp/resources/widgets.d.ts +161 -0
  1089. package/plugins/interfaces/mcp/resources/widgets.js +246 -0
  1090. package/plugins/interfaces/mcp/shared/keys.d.ts +56 -0
  1091. package/plugins/interfaces/mcp/shared/keys.js +99 -0
  1092. package/plugins/interfaces/mcp/shared/settings.d.ts +199 -0
  1093. package/plugins/interfaces/mcp/shared/settings.js +185 -0
  1094. package/plugins/interfaces/mcp/views/offered.d.ts +19 -0
  1095. package/plugins/interfaces/mcp/views/offered.js +20 -0
  1096. package/plugins/interfaces/mod.d.ts +6 -1
  1097. package/plugins/interfaces/mod.js +6 -1
  1098. package/plugins/interfaces/terminal/actions/print.js +1 -1
  1099. package/plugins/interfaces/terminal/actions/set.js +1 -1
  1100. package/plugins/interfaces/terminal/collections/output.d.ts +1 -1
  1101. package/plugins/interfaces/terminal/collections/shell.js +1 -1
  1102. package/plugins/interfaces/terminal/terminal.js +3 -3
  1103. package/plugins/interfaces/terminal/views/shell.js +8 -3
  1104. package/plugins/interfaces/voice/actions/block.d.ts +2 -0
  1105. package/plugins/interfaces/voice/actions/block.js +74 -0
  1106. package/plugins/interfaces/voice/actions/call.d.ts +19 -0
  1107. package/plugins/interfaces/voice/actions/call.js +253 -0
  1108. package/plugins/interfaces/voice/actions/prune.d.ts +1 -0
  1109. package/plugins/interfaces/voice/actions/prune.js +43 -0
  1110. package/plugins/interfaces/voice/actions/ring.d.ts +6 -0
  1111. package/plugins/interfaces/voice/actions/ring.js +165 -0
  1112. package/plugins/interfaces/voice/collections/blocked.d.ts +87 -0
  1113. package/plugins/interfaces/voice/collections/blocked.js +34 -0
  1114. package/plugins/interfaces/voice/collections/call.d.ts +279 -0
  1115. package/plugins/interfaces/voice/collections/call.js +77 -0
  1116. package/plugins/interfaces/voice/collections/phone.d.ts +74 -0
  1117. package/plugins/interfaces/voice/collections/phone.js +26 -0
  1118. package/plugins/interfaces/voice/contract.d.ts +14 -0
  1119. package/plugins/interfaces/voice/contract.js +2 -0
  1120. package/plugins/interfaces/voice/mod.d.ts +56 -0
  1121. package/plugins/interfaces/voice/mod.js +124 -0
  1122. package/plugins/interfaces/voice/processors/forget.d.ts +13 -0
  1123. package/plugins/interfaces/voice/processors/forget.js +27 -0
  1124. package/plugins/interfaces/voice/resources/tools.d.ts +1 -0
  1125. package/plugins/interfaces/voice/resources/tools.js +27 -0
  1126. package/plugins/interfaces/voice/routes/hook.d.ts +21 -0
  1127. package/plugins/interfaces/voice/routes/hook.js +114 -0
  1128. package/plugins/interfaces/voice/routes/relay.d.ts +20 -0
  1129. package/plugins/interfaces/voice/routes/relay.js +487 -0
  1130. package/plugins/interfaces/voice/shared/caller.d.ts +27 -0
  1131. package/plugins/interfaces/voice/shared/caller.js +38 -0
  1132. package/plugins/interfaces/voice/shared/settings.d.ts +128 -0
  1133. package/plugins/interfaces/voice/shared/settings.js +115 -0
  1134. package/plugins/interfaces/voice/shared/signature.d.ts +11 -0
  1135. package/plugins/interfaces/voice/shared/signature.js +34 -0
  1136. package/plugins/interfaces/voice/views/call.d.ts +48 -0
  1137. package/plugins/interfaces/voice/views/call.js +42 -0
  1138. package/plugins/interfaces/voice/views/context.d.ts +9 -0
  1139. package/plugins/interfaces/voice/views/context.js +14 -0
  1140. package/plugins/interfaces/voice/views/message.d.ts +17 -0
  1141. package/plugins/interfaces/voice/views/message.js +41 -0
  1142. package/plugins/interfaces/web/actions/arrive.d.ts +1 -0
  1143. package/plugins/interfaces/web/actions/arrive.js +104 -0
  1144. package/plugins/interfaces/web/actions/prune.d.ts +1 -0
  1145. package/plugins/interfaces/web/actions/prune.js +51 -0
  1146. package/plugins/interfaces/web/actions/sending.d.ts +1 -0
  1147. package/plugins/interfaces/web/actions/sending.js +226 -0
  1148. package/plugins/interfaces/web/actions/spent.d.ts +2 -0
  1149. package/plugins/interfaces/web/actions/spent.js +59 -0
  1150. package/plugins/interfaces/web/collections/rate.d.ts +122 -0
  1151. package/plugins/interfaces/web/collections/rate.js +37 -0
  1152. package/plugins/interfaces/web/collections/visitor.d.ts +110 -0
  1153. package/plugins/interfaces/web/collections/visitor.js +65 -0
  1154. package/plugins/interfaces/web/contract.d.ts +4 -0
  1155. package/plugins/interfaces/web/contract.js +1 -0
  1156. package/plugins/interfaces/web/lines.d.ts +35 -0
  1157. package/plugins/interfaces/web/lines.js +83 -0
  1158. package/plugins/interfaces/web/mod.d.ts +2 -2
  1159. package/plugins/interfaces/web/mod.js +6 -6
  1160. package/plugins/interfaces/web/processors/forget.d.ts +10 -0
  1161. package/plugins/interfaces/web/processors/forget.js +14 -0
  1162. package/plugins/interfaces/web/resources/spend.d.ts +2 -0
  1163. package/plugins/interfaces/web/resources/spend.js +62 -0
  1164. package/plugins/interfaces/web/routes/arrive.d.ts +20 -0
  1165. package/plugins/interfaces/web/routes/arrive.js +92 -0
  1166. package/plugins/interfaces/web/shared/budget.d.ts +65 -0
  1167. package/plugins/interfaces/web/shared/budget.js +134 -0
  1168. package/plugins/interfaces/web/shared/codes.d.ts +27 -0
  1169. package/plugins/interfaces/web/shared/codes.js +50 -0
  1170. package/plugins/interfaces/web/shared/lines.d.ts +147 -0
  1171. package/plugins/interfaces/web/shared/lines.js +147 -0
  1172. package/plugins/interfaces/web/shared/orgs.d.ts +10 -10
  1173. package/plugins/interfaces/web/shared/orgs.js +28 -11
  1174. package/plugins/interfaces/web/shared/panel.d.ts +0 -5
  1175. package/plugins/interfaces/web/shared/panel.js +5 -1
  1176. package/plugins/interfaces/web/shared/secret.d.ts +33 -0
  1177. package/plugins/interfaces/web/shared/secret.js +86 -0
  1178. package/plugins/interfaces/web/shared/style.d.ts +1 -1
  1179. package/plugins/interfaces/web/shared/style.js +3 -0
  1180. package/plugins/interfaces/web/views/console-codes.d.ts +37 -0
  1181. package/plugins/interfaces/web/views/console-codes.js +166 -0
  1182. package/plugins/interfaces/web/views/console.d.ts +26 -2
  1183. package/plugins/interfaces/web/views/console.js +59 -48
  1184. package/plugins/interfaces/web/views/default.d.ts +2 -2
  1185. package/plugins/interfaces/web/views/default.js +5 -3
  1186. package/plugins/interfaces/web/views/frame.js +15 -13
  1187. package/plugins/interfaces/web/views/me.js +6 -5
  1188. package/plugins/interfaces/web/views/org.js +23 -15
  1189. package/plugins/interfaces/web/views/orgs.d.ts +2 -1
  1190. package/plugins/interfaces/web/views/orgs.js +70 -52
  1191. package/plugins/interfaces/web/views/panel.js +3 -2
  1192. package/plugins/interfaces/web/views/shell.js +8 -2
  1193. package/plugins/interfaces/web/views/words.d.ts +1 -0
  1194. package/plugins/interfaces/web/views/words.js +228 -0
  1195. package/plugins/interfaces/whatsapp/actions/connect.js +13 -12
  1196. package/plugins/interfaces/whatsapp/actions/disconnect.js +6 -3
  1197. package/plugins/interfaces/whatsapp/actions/hook.d.ts +8 -1
  1198. package/plugins/interfaces/whatsapp/actions/hook.js +97 -60
  1199. package/plugins/interfaces/whatsapp/actions/link.js +12 -15
  1200. package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
  1201. package/plugins/interfaces/whatsapp/actions/set.js +121 -0
  1202. package/plugins/interfaces/whatsapp/collections/blocked.d.ts +29 -0
  1203. package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
  1204. package/plugins/interfaces/whatsapp/collections/code.d.ts +1 -1
  1205. package/plugins/interfaces/whatsapp/collections/number.d.ts +90 -4
  1206. package/plugins/interfaces/whatsapp/collections/number.js +36 -4
  1207. package/plugins/interfaces/whatsapp/collections/phone.d.ts +16 -6
  1208. package/plugins/interfaces/whatsapp/collections/phone.js +9 -3
  1209. package/plugins/interfaces/whatsapp/collections/rate.d.ts +27 -0
  1210. package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
  1211. package/plugins/interfaces/whatsapp/collections/sent.d.ts +24 -12
  1212. package/plugins/interfaces/whatsapp/collections/sent.js +11 -7
  1213. package/plugins/interfaces/whatsapp/collections/thread.d.ts +14 -6
  1214. package/plugins/interfaces/whatsapp/collections/thread.js +7 -5
  1215. package/plugins/interfaces/whatsapp/collections/typing.d.ts +70 -0
  1216. package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
  1217. package/plugins/interfaces/whatsapp/contract.d.ts +27 -4
  1218. package/plugins/interfaces/whatsapp/contract.js +34 -1
  1219. package/plugins/interfaces/whatsapp/events/undelivered.d.ts +8 -0
  1220. package/plugins/interfaces/whatsapp/events/undelivered.js +17 -0
  1221. package/plugins/interfaces/whatsapp/mod.d.ts +34 -6
  1222. package/plugins/interfaces/whatsapp/mod.js +77 -13
  1223. package/plugins/interfaces/whatsapp/processors/forget.d.ts +6 -0
  1224. package/plugins/interfaces/whatsapp/processors/forget.js +11 -0
  1225. package/plugins/interfaces/whatsapp/processors/receive.d.ts +19 -4
  1226. package/plugins/interfaces/whatsapp/processors/receive.js +277 -92
  1227. package/plugins/interfaces/whatsapp/processors/reply.d.ts +25 -5
  1228. package/plugins/interfaces/whatsapp/processors/reply.js +216 -20
  1229. package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
  1230. package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
  1231. package/plugins/interfaces/whatsapp/routes/hook.d.ts +16 -0
  1232. package/plugins/interfaces/whatsapp/routes/hook.js +52 -0
  1233. package/plugins/interfaces/whatsapp/shared/customers.d.ts +13 -0
  1234. package/plugins/interfaces/whatsapp/shared/customers.js +16 -0
  1235. package/plugins/interfaces/whatsapp/shared/graph.d.ts +33 -7
  1236. package/plugins/interfaces/whatsapp/shared/graph.js +121 -12
  1237. package/plugins/interfaces/whatsapp/shared/media.d.ts +24 -0
  1238. package/plugins/interfaces/whatsapp/shared/media.js +49 -0
  1239. package/plugins/interfaces/whatsapp/shared/number.d.ts +19 -8
  1240. package/plugins/interfaces/whatsapp/shared/number.js +65 -8
  1241. package/plugins/interfaces/whatsapp/shared/parts.d.ts +94 -0
  1242. package/plugins/interfaces/whatsapp/shared/parts.js +184 -0
  1243. package/plugins/interfaces/whatsapp/shared/payload.d.ts +27 -1
  1244. package/plugins/interfaces/whatsapp/shared/payload.js +36 -1
  1245. package/plugins/interfaces/whatsapp/shared/rules.d.ts +4 -4
  1246. package/plugins/interfaces/whatsapp/shared/rules.js +6 -9
  1247. package/plugins/interfaces/whatsapp/shared/settings.d.ts +47 -13
  1248. package/plugins/interfaces/whatsapp/shared/settings.js +8 -9
  1249. package/plugins/interfaces/whatsapp/views/message.d.ts +13 -0
  1250. package/plugins/interfaces/whatsapp/views/message.js +13 -0
  1251. package/plugins/interfaces/whatsapp/views/web/line.d.ts +24 -0
  1252. package/plugins/interfaces/whatsapp/views/web/line.js +44 -0
  1253. package/plugins/interfaces/whatsapp/views/web/space.d.ts +7 -5
  1254. package/plugins/interfaces/whatsapp/views/web/space.js +17 -10
  1255. package/plugins/interfaces/whatsapp/views/web/style.d.ts +1 -1
  1256. package/plugins/interfaces/whatsapp/views/web/style.js +8 -0
  1257. package/plugins/interfaces/whatsapp/web.js +10 -3
  1258. package/plugins/models/actions/check.d.ts +1 -0
  1259. package/plugins/models/actions/check.js +29 -1
  1260. package/plugins/models/actions/image.d.ts +1 -0
  1261. package/plugins/models/actions/image.js +46 -0
  1262. package/plugins/models/actions/offered.d.ts +34 -0
  1263. package/plugins/models/actions/offered.js +186 -0
  1264. package/plugins/models/adapters/image/fake.d.ts +6 -0
  1265. package/plugins/models/adapters/image/fake.js +8 -0
  1266. package/plugins/models/adapters/image/gemini.d.ts +2 -0
  1267. package/plugins/models/adapters/image/gemini.js +111 -0
  1268. package/plugins/models/adapters/image/openai.d.ts +2 -0
  1269. package/plugins/models/adapters/image/openai.js +69 -0
  1270. package/plugins/models/adapters/llm/anthropic.d.ts +1 -1
  1271. package/plugins/models/adapters/llm/anthropic.js +38 -20
  1272. package/plugins/models/adapters/llm/gemini.d.ts +1 -1
  1273. package/plugins/models/adapters/llm/gemini.js +7 -2
  1274. package/plugins/models/adapters/llm/openai-compatible.d.ts +1 -1
  1275. package/plugins/models/adapters/llm/openai-compatible.js +36 -7
  1276. package/plugins/models/adapters/llm/openai.d.ts +1 -1
  1277. package/plugins/models/adapters/llm/openai.js +158 -28
  1278. package/plugins/models/collections/image.d.ts +96 -0
  1279. package/plugins/models/collections/image.js +27 -0
  1280. package/plugins/models/contract.d.ts +20 -5
  1281. package/plugins/models/contract.js +2 -1
  1282. package/plugins/models/mod.d.ts +26 -5
  1283. package/plugins/models/mod.js +42 -6
  1284. package/plugins/models/resources/providers.d.ts +2 -2
  1285. package/plugins/models/resources/providers.js +2 -2
  1286. package/plugins/models/shared/catalog.json +9208 -8909
  1287. package/plugins/models/shared/choice.d.ts +31 -0
  1288. package/plugins/models/shared/choice.js +19 -3
  1289. package/plugins/models/shared/generate.d.ts +3 -1
  1290. package/plugins/models/shared/generate.js +52 -11
  1291. package/plugins/models/shared/image.d.ts +110 -0
  1292. package/plugins/models/shared/image.js +171 -0
  1293. package/plugins/models/shared/provider.d.ts +5 -0
  1294. package/plugins/models/shared/provider.js +14 -0
  1295. package/plugins/models/shared/retry.d.ts +9 -2
  1296. package/plugins/models/shared/retry.js +26 -2
  1297. package/plugins/models/shared/telemetry.d.ts +4 -2
  1298. package/plugins/models/shared/transcribe.js +7 -1
  1299. package/plugins/models/shared/types.d.ts +21 -2
  1300. package/plugins/models/shared/types.js +10 -0
  1301. package/plugins/models/shared/use.d.ts +42 -5
  1302. package/plugins/models/shared/use.js +84 -4
  1303. package/plugins/work/boards/actions/create-board.d.ts +1 -0
  1304. package/plugins/work/boards/actions/create-board.js +47 -0
  1305. package/plugins/work/boards/actions/create-card.d.ts +1 -0
  1306. package/plugins/work/boards/actions/create-card.js +85 -0
  1307. package/plugins/work/boards/actions/delete-board.d.ts +1 -0
  1308. package/plugins/work/boards/actions/delete-board.js +30 -0
  1309. package/plugins/work/boards/actions/delete-card.d.ts +1 -0
  1310. package/plugins/work/boards/actions/delete-card.js +24 -0
  1311. package/plugins/work/boards/actions/move-card.d.ts +1 -0
  1312. package/plugins/work/boards/actions/move-card.js +85 -0
  1313. package/plugins/work/boards/actions/update-board.d.ts +1 -0
  1314. package/plugins/work/boards/actions/update-board.js +110 -0
  1315. package/plugins/work/boards/actions/update-card.d.ts +1 -0
  1316. package/plugins/work/boards/actions/update-card.js +67 -0
  1317. package/plugins/work/boards/collections/board.d.ts +71 -0
  1318. package/plugins/work/boards/collections/board.js +32 -0
  1319. package/plugins/work/boards/collections/card.d.ts +74 -0
  1320. package/plugins/work/boards/collections/card.js +29 -0
  1321. package/plugins/work/boards/contract.d.ts +67 -0
  1322. package/plugins/work/boards/contract.js +20 -0
  1323. package/plugins/work/boards/mod.d.ts +34 -0
  1324. package/plugins/work/boards/mod.js +72 -0
  1325. package/plugins/work/boards/resources/tools.d.ts +2 -0
  1326. package/plugins/work/boards/resources/tools.js +416 -0
  1327. package/plugins/work/boards/shared/columns.d.ts +39 -0
  1328. package/plugins/work/boards/shared/columns.js +88 -0
  1329. package/plugins/work/boards/shared/dates.d.ts +11 -0
  1330. package/plugins/work/boards/shared/dates.js +22 -0
  1331. package/plugins/work/boards/shared/errors.d.ts +24 -0
  1332. package/plugins/work/boards/shared/errors.js +20 -0
  1333. package/plugins/work/boards/shared/fields.d.ts +65 -0
  1334. package/plugins/work/boards/shared/fields.js +44 -0
  1335. package/plugins/work/boards/shared/load.d.ts +22 -0
  1336. package/plugins/work/boards/shared/load.js +32 -0
  1337. package/plugins/work/boards/shared/order.d.ts +30 -0
  1338. package/plugins/work/boards/shared/order.js +47 -0
  1339. package/plugins/work/boards/shared/people.d.ts +30 -0
  1340. package/plugins/work/boards/shared/people.js +87 -0
  1341. package/plugins/work/boards/shared/said.d.ts +28 -0
  1342. package/plugins/work/boards/shared/said.js +30 -0
  1343. package/plugins/work/boards/views/web/board-head.d.ts +62 -0
  1344. package/plugins/work/boards/views/web/board-head.js +170 -0
  1345. package/plugins/work/boards/views/web/board-page.d.ts +17 -0
  1346. package/plugins/work/boards/views/web/board-page.js +97 -0
  1347. package/plugins/work/boards/views/web/board-view.d.ts +40 -0
  1348. package/plugins/work/boards/views/web/board-view.js +341 -0
  1349. package/plugins/work/boards/views/web/boards-tab.d.ts +13 -0
  1350. package/plugins/work/boards/views/web/boards-tab.js +109 -0
  1351. package/plugins/work/boards/views/web/card-sheet.d.ts +47 -0
  1352. package/plugins/work/boards/views/web/card-sheet.js +314 -0
  1353. package/plugins/work/boards/views/web/card-tile.d.ts +29 -0
  1354. package/plugins/work/boards/views/web/card-tile.js +20 -0
  1355. package/plugins/work/boards/views/web/column.d.ts +38 -0
  1356. package/plugins/work/boards/views/web/column.js +171 -0
  1357. package/plugins/work/boards/views/web/drag.d.ts +36 -0
  1358. package/plugins/work/boards/views/web/drag.js +276 -0
  1359. package/plugins/work/boards/views/web/glyphs.d.ts +29 -0
  1360. package/plugins/work/boards/views/web/glyphs.js +25 -0
  1361. package/plugins/work/boards/views/web/load.d.ts +32 -0
  1362. package/plugins/work/boards/views/web/load.js +33 -0
  1363. package/plugins/work/boards/views/web/palette.d.ts +15 -0
  1364. package/plugins/work/boards/views/web/palette.js +180 -0
  1365. package/plugins/work/boards/views/web/pickers.d.ts +45 -0
  1366. package/plugins/work/boards/views/web/pickers.js +83 -0
  1367. package/plugins/work/boards/views/web/shown.d.ts +77 -0
  1368. package/plugins/work/boards/views/web/shown.js +136 -0
  1369. package/plugins/work/boards/views/web/step.d.ts +13 -0
  1370. package/plugins/work/boards/views/web/step.js +41 -0
  1371. package/plugins/work/boards/views/web/style.d.ts +10 -0
  1372. package/plugins/work/boards/views/web/style.js +380 -0
  1373. package/plugins/work/boards/views/web/toolbar.d.ts +21 -0
  1374. package/plugins/work/boards/views/web/toolbar.js +39 -0
  1375. package/plugins/work/boards/web.d.ts +26 -0
  1376. package/plugins/work/boards/web.js +52 -0
  1377. package/plugins/work/documents/actions/create.d.ts +1 -0
  1378. package/plugins/work/documents/actions/create.js +28 -0
  1379. package/plugins/work/documents/actions/delete.d.ts +1 -0
  1380. package/plugins/work/documents/actions/delete.js +32 -0
  1381. package/plugins/work/documents/actions/presence.d.ts +1 -0
  1382. package/plugins/work/documents/actions/presence.js +45 -0
  1383. package/plugins/work/documents/actions/rename.d.ts +1 -0
  1384. package/plugins/work/documents/actions/rename.js +33 -0
  1385. package/plugins/work/documents/actions/restore.d.ts +1 -0
  1386. package/plugins/work/documents/actions/restore.js +39 -0
  1387. package/plugins/work/documents/actions/save.d.ts +1 -0
  1388. package/plugins/work/documents/actions/save.js +78 -0
  1389. package/plugins/work/documents/collections/document-presence.d.ts +79 -0
  1390. package/plugins/work/documents/collections/document-presence.js +25 -0
  1391. package/plugins/work/documents/collections/document-version.d.ts +166 -0
  1392. package/plugins/work/documents/collections/document-version.js +60 -0
  1393. package/plugins/work/documents/collections/document.d.ts +131 -0
  1394. package/plugins/work/documents/collections/document.js +72 -0
  1395. package/plugins/work/documents/contract.d.ts +17 -0
  1396. package/plugins/work/documents/contract.js +1 -0
  1397. package/plugins/work/documents/mod.d.ts +38 -0
  1398. package/plugins/work/documents/mod.js +75 -0
  1399. package/plugins/work/documents/resources/tools.d.ts +2 -0
  1400. package/plugins/work/documents/resources/tools.js +255 -0
  1401. package/plugins/work/documents/shared/diff.d.ts +37 -0
  1402. package/plugins/work/documents/shared/diff.js +148 -0
  1403. package/plugins/work/documents/shared/merge.d.ts +29 -0
  1404. package/plugins/work/documents/shared/merge.js +120 -0
  1405. package/plugins/work/documents/shared/presence.d.ts +7 -0
  1406. package/plugins/work/documents/shared/presence.js +7 -0
  1407. package/plugins/work/documents/shared/text.d.ts +36 -0
  1408. package/plugins/work/documents/shared/text.js +67 -0
  1409. package/plugins/work/documents/shared/who.d.ts +23 -0
  1410. package/plugins/work/documents/shared/who.js +39 -0
  1411. package/plugins/work/documents/shared/write.d.ts +54 -0
  1412. package/plugins/work/documents/shared/write.js +123 -0
  1413. package/plugins/work/documents/views/web/changes.d.ts +22 -0
  1414. package/plugins/work/documents/views/web/changes.js +57 -0
  1415. package/plugins/work/documents/views/web/conflict.d.ts +38 -0
  1416. package/plugins/work/documents/views/web/conflict.js +96 -0
  1417. package/plugins/work/documents/views/web/draft.d.ts +18 -0
  1418. package/plugins/work/documents/views/web/draft.js +32 -0
  1419. package/plugins/work/documents/views/web/editor.d.ts +57 -0
  1420. package/plugins/work/documents/views/web/editor.js +268 -0
  1421. package/plugins/work/documents/views/web/format.d.ts +56 -0
  1422. package/plugins/work/documents/views/web/format.js +245 -0
  1423. package/plugins/work/documents/views/web/history.d.ts +23 -0
  1424. package/plugins/work/documents/views/web/history.js +118 -0
  1425. package/plugins/work/documents/views/web/list.d.ts +37 -0
  1426. package/plugins/work/documents/views/web/list.js +211 -0
  1427. package/plugins/work/documents/views/web/page.d.ts +35 -0
  1428. package/plugins/work/documents/views/web/page.js +416 -0
  1429. package/plugins/work/documents/views/web/palette.d.ts +16 -0
  1430. package/plugins/work/documents/views/web/palette.js +168 -0
  1431. package/plugins/work/documents/views/web/people.d.ts +60 -0
  1432. package/plugins/work/documents/views/web/people.js +63 -0
  1433. package/plugins/work/documents/views/web/presence.d.ts +30 -0
  1434. package/plugins/work/documents/views/web/presence.js +75 -0
  1435. package/plugins/work/documents/views/web/step.d.ts +25 -0
  1436. package/plugins/work/documents/views/web/step.js +81 -0
  1437. package/plugins/work/documents/views/web/style.d.ts +7 -0
  1438. package/plugins/work/documents/views/web/style.js +266 -0
  1439. package/plugins/work/documents/web.d.ts +18 -0
  1440. package/plugins/work/documents/web.js +46 -0
  1441. package/plugins/work/mod.d.ts +3 -0
  1442. package/plugins/work/mod.js +3 -0
  1443. package/plugins/work/web.d.ts +10 -0
  1444. package/plugins/work/web.js +10 -0
  1445. package/runtime/actor.d.ts +69 -0
  1446. package/runtime/actor.js +54 -0
  1447. package/runtime/address.d.ts +11 -0
  1448. package/runtime/address.js +48 -0
  1449. package/runtime/aggregate.js +8 -2
  1450. package/runtime/api.d.ts +49 -0
  1451. package/runtime/api.js +670 -0
  1452. package/runtime/blobs.d.ts +15 -12
  1453. package/runtime/blobs.js +58 -11
  1454. package/runtime/body.d.ts +16 -0
  1455. package/runtime/body.js +57 -0
  1456. package/runtime/browsers.d.ts +171 -24
  1457. package/runtime/browsers.js +340 -38
  1458. package/runtime/cache.d.ts +6 -0
  1459. package/runtime/cache.js +44 -6
  1460. package/runtime/caller.d.ts +126 -0
  1461. package/runtime/caller.js +226 -0
  1462. package/runtime/client.d.ts +155 -12
  1463. package/runtime/client.js +352 -50
  1464. package/runtime/collection.d.ts +2 -0
  1465. package/runtime/collection.js +2 -1
  1466. package/runtime/cookies.d.ts +72 -0
  1467. package/runtime/cookies.js +125 -0
  1468. package/runtime/define.d.ts +131 -19
  1469. package/runtime/errors.d.ts +36 -0
  1470. package/runtime/errors.js +13 -0
  1471. package/runtime/executor.d.ts +2 -0
  1472. package/runtime/executor.js +47 -21
  1473. package/runtime/expiring.d.ts +23 -0
  1474. package/runtime/expiring.js +64 -0
  1475. package/runtime/fetch.d.ts +97 -0
  1476. package/runtime/fetch.js +404 -0
  1477. package/runtime/links.d.ts +54 -0
  1478. package/runtime/links.js +98 -0
  1479. package/runtime/maintain.d.ts +88 -0
  1480. package/runtime/maintain.js +120 -0
  1481. package/runtime/memory.js +109 -19
  1482. package/runtime/mod.d.ts +15 -3
  1483. package/runtime/mod.js +13 -0
  1484. package/runtime/mongo.d.ts +46 -4
  1485. package/runtime/mongo.js +152 -8
  1486. package/runtime/observe.d.ts +4 -2
  1487. package/runtime/observe.js +117 -40
  1488. package/runtime/ops.d.ts +22 -1
  1489. package/runtime/ops.js +113 -1
  1490. package/runtime/owner.d.ts +93 -20
  1491. package/runtime/owner.js +564 -113
  1492. package/runtime/presence.d.ts +18 -0
  1493. package/runtime/presence.js +25 -0
  1494. package/runtime/reads.d.ts +3 -3
  1495. package/runtime/reads.js +9 -7
  1496. package/runtime/registry.d.ts +20 -3
  1497. package/runtime/registry.js +40 -6
  1498. package/runtime/rest.d.ts +10 -0
  1499. package/runtime/rest.js +247 -0
  1500. package/runtime/routes.d.ts +51 -0
  1501. package/runtime/routes.js +79 -0
  1502. package/runtime/runtime.d.ts +9 -5
  1503. package/runtime/runtime.js +19 -10
  1504. package/runtime/runtimes.d.ts +43 -0
  1505. package/runtime/runtimes.js +86 -0
  1506. package/runtime/site.d.ts +47 -0
  1507. package/runtime/site.js +170 -0
  1508. package/runtime/store.d.ts +58 -1
  1509. package/runtime/tickets.d.ts +15 -0
  1510. package/runtime/tickets.js +65 -0
  1511. package/runtime/timers.js +2 -0
  1512. package/runtime/views.d.ts +2 -4
  1513. package/runtime/views.js +8 -11
  1514. package/runtime/wire.d.ts +13 -2
  1515. package/runtime/wire.js +20 -2
  1516. package/stores/blobs/files/mod.js +4 -2
  1517. package/stores/blobs/gcs/mod.d.ts +30 -0
  1518. package/stores/blobs/gcs/mod.js +106 -0
  1519. package/stores/blobs/http/mod.d.ts +1 -1
  1520. package/stores/blobs/http/mod.js +2 -1
  1521. package/stores/latency/mod.js +5 -1
  1522. package/stores/sql/postgres/lease.d.ts +55 -0
  1523. package/stores/sql/postgres/lease.js +102 -0
  1524. package/stores/sql/postgres/maintenance.d.ts +31 -0
  1525. package/stores/sql/postgres/maintenance.js +325 -0
  1526. package/stores/sql/postgres/mod.d.ts +29 -4
  1527. package/stores/sql/postgres/mod.js +377 -96
  1528. package/stores/sql/postgres/update.js +3 -1
  1529. package/stores/sql/shared/capped.d.ts +2 -0
  1530. package/stores/sql/shared/capped.js +22 -0
  1531. package/stores/sql/shared/rows.d.ts +14 -0
  1532. package/stores/sql/shared/rows.js +29 -0
  1533. package/stores/sql/shared/statement.d.ts +12 -0
  1534. package/stores/sql/shared/statement.js +244 -0
  1535. package/stores/sql/sqlite/apart.d.ts +11 -0
  1536. package/stores/sql/sqlite/apart.js +219 -0
  1537. package/stores/sql/sqlite/mod.d.ts +16 -2
  1538. package/stores/sql/sqlite/mod.js +246 -51
  1539. package/testing/mod.d.ts +16 -0
  1540. package/testing/mod.js +31 -2
  1541. package/hosts/orgs/mod.d.ts +0 -82
  1542. package/hosts/orgs/mod.js +0 -519
  1543. package/hosts/web/files.d.ts +0 -24
  1544. package/hosts/web/files.js +0 -83
  1545. package/hosts/web/routes.d.ts +0 -89
  1546. package/hosts/web/routes.js +0 -132
  1547. package/hosts/web/tickets.d.ts +0 -20
  1548. package/hosts/web/tickets.js +0 -21
  1549. package/plugins/access/identity/actions/key.d.ts +0 -2
  1550. package/plugins/access/identity/actions/key.js +0 -48
  1551. package/plugins/compute/computers/shared/person.d.ts +0 -3
  1552. package/plugins/compute/computers/shared/person.js +0 -8
  1553. package/plugins/interfaces/api/shared/events.d.ts +0 -26
  1554. package/plugins/interfaces/api/shared/events.js +0 -142
  1555. package/plugins/interfaces/api/shared/http.d.ts +0 -28
  1556. package/plugins/interfaces/api/shared/http.js +0 -93
  1557. package/plugins/interfaces/api/shared/reference.d.ts +0 -48
  1558. package/plugins/interfaces/api/shared/reference.js +0 -37
  1559. package/plugins/interfaces/api/shared/server.d.ts +0 -34
  1560. package/plugins/interfaces/api/shared/server.js +0 -177
  1561. package/plugins/interfaces/whatsapp/shared/http.d.ts +0 -47
  1562. package/plugins/interfaces/whatsapp/shared/http.js +0 -22
package/CHANGELOG.md CHANGED
@@ -1,3 +1,2090 @@
1
+ ## Unreleased
2
+
3
+ ## 1.0.0-rc.30 — 2026-11-08
4
+
5
+ **Upgrading.** `chat.send` no longer takes a file's content. Upload each file first with
6
+ `chat.attach` (`{ name, type, data, voice? }`, as `files` took it), and send what it answers by id:
7
+
8
+ ```ts
9
+ const { id } = await runtime.call("chat.attach", {
10
+ name: "plan.pdf",
11
+ type: "application/pdf",
12
+ data,
13
+ });
14
+ await runtime.call("chat.send", { text: "The plan", files: [{ id }] });
15
+ ```
16
+
17
+ Call both as the same sender: a draft is sent only by its uploader's message. An API key that sends
18
+ files needs `chat.attach` in its scope: the "Chat" preset has it now, and a key made with it before
19
+ is made again (or given `chat.attach`).
20
+
21
+ - **Files of about 10 MB go, ten to a message.** `chat.send` carried every file's content, on record
22
+ with what it wrote too, in one call, and a call carries at most 16 MiB to the owner: a file past
23
+ about 6 MB was refused (`payload_too_large`). Now each file is its own call (`chat.attach`,
24
+ unrecorded), kept as its sender's draft (`draft`, in no conversation: nobody else reads it, a rule
25
+ of chat's own), and the message names it: its commit makes it the conversation's, under the rules
26
+ as the message is. The web composer uploads each file as it's chosen (reading, uploading, its
27
+ size, or why it couldn't), so sending is instant; a voice message uploads once, also when it's
28
+ sent again without a transcript. WhatsApp uploads what a phone sends the same way.
29
+ - **Drafts are bounded:** a sender holds 20 at most (the oldest go past them), and `chat.prune`
30
+ (chat's schedule, every hour) drops those not sent within a day. A contact's upload is let in by
31
+ the `contactSend` hooks as a message to nobody carrying it: a web line's file rules apply as it's
32
+ uploaded, and it counts against the visitor's limits.
33
+
34
+ ## 1.0.0-rc.29 — 2026-11-07
35
+
36
+ - **An agent waiting on your yes waits within its turn.** A command, job or file write that needs a
37
+ person's OK used to end the agent's turn ("Waiting for ana's yes…"). The turn's answer went to
38
+ whoever had asked it, and the yes then started a new turn that answered the person. So when one
39
+ agent asked another, and that one needed a yes, the first got "I'm waiting on your yes" as its
40
+ answer and the real answer went to the person. Now the turn pauses, as it does for the messages it
41
+ sends. The call asks its person a question: the agent's message to them, answered on the approval
42
+ card. The answer is a reply to that question, and the same turn goes on. The call runs again as
43
+ itself, in a step after the answer, so the agent reads its question, the answer, then what the
44
+ command did, and its answer goes to whoever started the turn. Several asks in one step wait
45
+ together, and the turn goes on once, when the last is answered: what was allowed runs, and what
46
+ wasn't says no. A yes in this conversation, or always, answers the agent's other asks it covers,
47
+ and their turns go on too. A reply typed to the question isn't a yes: the call doesn't run, and
48
+ says what they said. A card asked in a side thread shows in its conversation too ("in a side
49
+ thread"). A card answered before its step is written is refused (`busy`, "answer in a moment");
50
+ the card shows only once the step is written anyway. Forgetting a computer tells a turn waiting on
51
+ it no. A model outside (MCP) still gets "Waiting for…" and asks again later, as before.
52
+ - **Tools can wait for a person** (`ToolContext.ask`, in chat's contract). In a turn, a tool asks
53
+ `{ to, text }` and gets the question's id; the turn waits for a reply to it (a message with that
54
+ `replyTo`), then runs the call again with `answer` (who answered, and what they said). The
55
+ question is written with the step. Steps record it (`Step.asked`), as they record what they sent
56
+ (`sent`). The `conversation` resource's Views get the conversation's side threads too (hint
57
+ `side`).
58
+
59
+ ## 1.0.0-rc.28 — 2026-11-07
60
+
61
+ - **A deploy hands over instead of fencing** (`serve` in `copilotz/web/node`, `lease` in
62
+ `copilotz/stores/postgres`). While a deploy moves traffic, the platform keeps the old process
63
+ running for as long as its browsers' sockets stay open, and the new process's store fenced it:
64
+ every write those browsers sent failed ("This owner was fenced"). Now one process at a time holds
65
+ the store's lease: `serve` listens first (a request is told it's starting: a 503 to retry, a page
66
+ that reloads itself), waits for the lease, then opens the app; the old process, asked for it,
67
+ stops listening (its browsers reconnect, to the new one), lets running work finish, and lets go.
68
+ Only a deploy at least as new asks (`revision`); a process that loses the lease stops. Its table
69
+ is `copilotz_lease`, in the schema it's given (`public` by default).
70
+ - **A contact's message may go to nobody** (`chat.send` with `to: []`), as a person's already could:
71
+ it's kept in the chat, its agents read it the next time they answer there (with its `tap`, as
72
+ `[tapped: <id>]`), and none answers it. It's how a page beside the chat says what the customer did
73
+ there (a trip chosen in a booking panel) without a turn for each tap. A contact still names no
74
+ agent: any other `to` goes to its chat's agents, as before. `contactSend` hooks are told
75
+ (`to: []`): a web line's visitor's message to nobody counts against its limits but holds none of
76
+ the line's budget, since no turn will be charged for it.
77
+
78
+ ## 1.0.0-rc.27 — 2026-11-06
79
+
80
+ **Upgrading.** Chat's `file.content` query is `file.about`, and answers a file without its content
81
+ (`data`). Host code that wants the content reads it as bytes, in parts:
82
+ `runtime.bytes("file", { _id }, "data", { actor })`, or serves it at `/files/<id>`. A file's content
83
+ is plain base64 (no line breaks, no `data:` prefix): `chat.send` refuses anything else.
84
+
85
+ - **Files of any size are served** (`GET /files/<id>`): a picture or a recording whose base64 passed
86
+ 1 MiB (about 750 KB) was answered as missing (404), so it showed broken. The route read the whole
87
+ file through a query, whose answer comes from an executor over Oxian in one chunk, and Oxian takes
88
+ at most 1 MiB a chunk. Now it reads what the file is (`file.about`, as whoever the request is),
89
+ then its content from the owner, as them again (`runtime.bytes`), and decodes it as the response
90
+ is read, 192 KiB at a time; a range (`206`) decodes only its part. Who reads a file is unchanged:
91
+ the request's actor, a signed link as the system, and a file out of reach is a 404 alike. A
92
+ failure that isn't about reach is now a 500, logged, not a 404.
93
+ - **`runtime.bytes(collection, filter, field, { actor })`**: a large value's bytes for trusted host
94
+ code, read by the owner itself, under the rules as `actor` (the system without one), its `size`
95
+ and `read(start, end)`, from the document or its blob (loaded once, at the first part). The blob's
96
+ reference never leaves the owner.
97
+ - **Projections:** `find` and `findOne` take `{ projection }`, as MongoDB's (`{ name: 1 }` keeps,
98
+ `{ data: 0 }` leaves out, `_id` either way; dotted paths into objects). The owner applies it
99
+ before it loads any blob: a field left out costs no blob read. Stores never see it.
100
+ - **Answers past 1 MiB go in parts:** a job's output (a query's answer, an Action's result, a
101
+ View's) and what a browser is pushed are written in parts of at most 1 MiB, Oxian's bound on a
102
+ chunk. A long history, a prompt with pictures (`thread.prompt`, `/prompt`) or a large read a
103
+ browser watches failed whole before (the executor "lost", the browser's session closed).
104
+ - **A message's files reach the prompt one read each:** `llm.message` read all of a message's files
105
+ in one answer of the owner's, which carries at most 16 MiB; pictures that together passed it
106
+ failed the turn.
107
+ - **WhatsApp links a file without reading its content:** sending a chat's file by signed link reads
108
+ only whether its recipient may see it; Meta's fetch streams the content from `/files/<id>`.
109
+ - **Every word Copilotz's web front ends show is the app's to change.** An app in another language
110
+ no longer rewrites the page as it is drawn: it gives a `words` resource
111
+ (`{ "chat.send":
112
+ "Enviar" }`), on any plugin the page runs, merged over the English in order.
113
+ Words are by key (`hosts/web/WORDS.md` lists them: the shell, chat, spaces, memory, team, usage,
114
+ the command palette, the toolkit and the host's notices), with `{blanks}` for names and numbers
115
+ and plural forms by the page's language (`{ one, other }`). Dates, times, numbers and currency
116
+ follow the page's `lang` (`webPage({ lang })`) instead of the browser's. Front ends of an app's
117
+ own use the same way: `defineWords(area, { … })` from `copilotz/web`. English is unchanged, so an
118
+ app that sets nothing looks as before. Not covered: the other front ends (billing's credits,
119
+ routines, skills, computers, apps, API keys, WhatsApp, tiers), text the server sends, and the
120
+ offline page.
121
+ - **Boards and documents are Copilotz's** (`copilotz/plugins/work`, front ends in
122
+ `copilotz/plugins/work/web`). `boards` is kanban in a space (boards with ordered columns, cards
123
+ dragged between them, owners, labels, due dates; Actions `board.*` and `card.*`; agents' tools
124
+ `list_boards`, `read_board`, `create_board`, `create_card`, `update_card`, `move_card`).
125
+ `documents` is shared Markdown in a space (every save a version, saves merged line by line or
126
+ refused as a `conflict`, restoring, presence; Actions `document.*`; agents' tools
127
+ `list_documents`, `read_document`, `write_document`, `append_document`, `edit_document`). Each has
128
+ its web front end (`boardsWeb`, `documentsWeb`). The empty Board tab's line about agents is the
129
+ app's: `resources.boardsText.agentHint`.
130
+ - **A `@word` is a mention only when it names someone.** Chat took any `@word` as a mention, so a
131
+ message with a social handle ("my profile is @ana.marca") and no agent named reached no agent. Now
132
+ a mention counts only when it names an agent, or a person in the conversation; any other `@word`
133
+ is plain text, and the message goes where it would without it (the conversation's agents, or the
134
+ space's default).
135
+ - **A failed recall never sinks a turn.** When memory recall fails at the start of a turn (the
136
+ embedder's provider refuses the key, or times out), the turn goes on without recalled memories.
137
+ The failure is logged (`memory: recall failed…`) and counted (`copilotz.memory.recall_failures`).
138
+ A failing `remember` is still a tool error the agent sees.
139
+ - **Web tools** (`webTools`, in `copilotz/plugins/agents`): agents search the web and read a page
140
+ without a computer. `web_search` `{ query, count?, language?, country? }` →
141
+ `{ title, url,
142
+ snippet }` results, through a new `search` adapter port (`duckduckgo`, the
143
+ default: its HTML page, no key, no cost, a bot challenge or empty page is a public "search is
144
+ unavailable" error; `serper`, optional; `fake`; one more adapter adds Brave or Google), and
145
+ `read_page` `{ url, start? }` → the final URL, title, main text and links, in parts, marked as
146
+ data. Reading refuses non-http(s) URLs, private, loopback, link-local and metadata addresses (the
147
+ host resolved, checked again on every redirect), other ports than 80 and 443 unless
148
+ `webTools.ports` lists them, pages over 2 MB or 15 s, and non-text types; a turn reads at most 8
149
+ pages. A search is a `search` use of the usage ledger (in the `agents` category), priced from
150
+ resources, asked of the `modelUse` listeners and the `spending` check first. The models contract
151
+ now exports `mayUse` and `used`, for uses outside model calls.
152
+ - **An agent's message with files.** `chat.say` takes `files`, and `text` may be left out when there
153
+ are files. Trusted code, such as a tool during a turn, can now post what it made without writing
154
+ chat's collections itself. Each file is one of these:
155
+ - `{ id, collection? }`: a document the caller reads that holds a file as `type` and `data`.
156
+ That's chat's own `file` by default, or another plugin's, such as the models plugin's `image`.
157
+ - `{ name, type, data }`: the file given as it is.
158
+
159
+ Each becomes a file of the chat, with its `thread` and space. People and contacts read it there as
160
+ they read people's files, and it meets the same limits: ten at most, about 10 MB each, and a media
161
+ type. Its content is the same blob, so a picture kept elsewhere isn't stored twice. The answer
162
+ adds the files' ids: `{ message, files }`. Saying it again sends nothing, files included. An
163
+ agent's own message tells it next time what it sent: `[sent: logo.png]`.
164
+
165
+ - **A refusal says why.** A turn that fails with a refusal written for people answers in that
166
+ refusal's own words, where only the codes `credits` and `budget` did before. That covers any
167
+ failure made public, including the `spending` check's refusal whatever its `why`: an app's own
168
+ reason, such as an inactive subscription, no longer needs to borrow `credits`. The `spending`
169
+ refusal is now public, so a model outside the app reads its message too. A web line's spent budget
170
+ now shows its own words ("This chat has done all it can for today…"). Every other failure still
171
+ shows people the short line, with the details in the event. Moving in from another app. Nothing
172
+ changes for an app that doesn't call these.
173
+
174
+ - **`chat.import`** (the system's: a migration) brings a conversation in as it was: its thread (the
175
+ importer's id) in a space, with its title, and its messages with who said them (a person's id or
176
+ an agent's name), to whom, what, their files (`data`, or the `id` of a document holding one:
177
+ chat's `file` by default) and when (ISO 8601 with a zone, kept to the millisecond). Nothing runs:
178
+ no turn, no transcript, nothing delivered. Importing again replaces what it made; a long
179
+ conversation comes in several calls, and the thread's summary (count, first, latest, when it last
180
+ moved) is worked out from every message it has. A thread already in another space is refused
181
+ (`chat.move` moves it). Unrecorded: the documents it writes are their own record.
182
+ - **`memory.import`** (the system's) brings memories in as they were, in a space: text, whom each is
183
+ about, who wrote it, `core`, when it was learned and last changed, under the importer's ids. Each
184
+ is embedded as it's kept (with an embedder), so recall finds it by meaning.
185
+ - **Dev sign-in reaches someone already there:** an email a person has (one who moved in under an id
186
+ of its own) signs in as them, and the id of someone there signs in as them too, both as they are
187
+ (their name isn't touched). Anyone else signs in as before.
188
+
189
+ ## 1.0.0-rc.26 — 2026-11-06
190
+
191
+ **Upgrading from rc.25.** The `hosts` resource names the app's own hosts an entry each, without the
192
+ `own` key it had alone. An app that names its hosts changes one line; one that doesn't changes
193
+ nothing. The shape before is refused at start, saying what's expected.
194
+
195
+ ```ts
196
+ // rc.25
197
+ resources: { hosts: { own: ["app.example.com", "*.run.app"] } }
198
+ // now
199
+ resources: { hosts: { "app.example.com": true, "*.run.app": true } }
200
+ ```
201
+
202
+ - **`resources.hosts` is an entry per host** (`{ "app.example.com": true }`), in place of
203
+ `{ own: [...] }`, like every other resource: a later plugin adds a host, or takes one away with
204
+ `null`, without restating the rest. What it does is unchanged: with the app's hosts named, any
205
+ other host is answered only by routes that take it. `HostsSettings` is `Record<string, true>`.
206
+ - **Email sign-in** (`emailSignIn`, in `copilotz/plugins/access`, with identity and `email`): people
207
+ sign in with an email and a password. Nothing changes for apps that don't add it.
208
+ - **Flows,** each an unrecorded Action behind a route, those that end signed in answering with
209
+ identity's `signedIn`: `email.sign-up` (a six-digit code by email, the password waiting for it)
210
+ and `email.verify` (the person made, and a session); `email.sign-in`, refused with `unverified`
211
+ (and a new code sent) until the address is confirmed; `email.forgot` (the same answer for any
212
+ address) and `email.reset` (the password set, the person's other sessions ended);
213
+ `email.invite`, trusted code's (a webhook after a purchase: the person, answered at once, and a
214
+ link that works once for a day, `/#email-invite=<token>`), `email.invitation` and `email.accept`
215
+ (the password chosen, signed in); and `email.import`, the system's, which keeps another app's
216
+ password hashes as they are, for a migration, with the person ids the importer chooses. Routes:
217
+ `GET /signin/email` (it's here; `signUp`), `POST /signin/email`, and `/signin/email/sign-up`,
218
+ `verify`, `forgot`, `reset`, `invitation`, `accept`; a refusal answers `{ error, code }`.
219
+ - **Passwords:** legacy hashes (`"<saltHex>:<hashHex>"`, PBKDF2-HMAC-SHA256 at 100,000, as
220
+ Copilotz 0.x apps kept them) verify as stored and are hashed again at the next sign-in; new ones
221
+ are `pbkdf2-sha256$6x100000$<salt>$<hash>` (PBKDF2 in six stages of 100,000, each salted with
222
+ the stage before: workerd refuses more than 100,000 in one call), on WebCrypto, compared in
223
+ constant time, in a private field (`email_login.hash`) no event or actor's read holds.
224
+ - **Codes and links** are kept only as HMACs under the `links` secret (still matching under its
225
+ `previous` while it changes), used once; codes last 15 minutes and five wrong tries. A stranger
226
+ signing up first with someone's address can't choose their password: each code confirms the
227
+ password its sign-up came with. Messages to an address (5 an hour), tries at it (10 in 15
228
+ minutes) and one caller's asks (30, by the `caller` resource or the socket's address) are
229
+ limited (`too_many`), the same whether or not the address has an account (`emailSignIn.limits`).
230
+ What's past goes every ten minutes (`email.prune`).
231
+ - **Its words** are the `emailSignIn` resource's `messages` (`verify`, `reset`, `invite`,
232
+ `exists`), English unless the app gives its own; `app` names the app in them (the `links`
233
+ origin's host unless said). It needs the `links` resource (`{ origin, secret }`) to start.
234
+ - **`email`, the app's email port:** `email.send` `{ to, subject, text, html? }` (trusted code's,
235
+ unrecorded) through the adapter the `email` resource names: `resend` (Resend's API, through
236
+ `ctx.fetch`, with its `apiKey` and `from`) or `console` (each message in the log, for a laptop;
237
+ refused where the `links` origin is public). `EmailAdapter` and the settings' types are in its
238
+ contract.
239
+ - **The sign-in page offers email** when `GET /signin/email` says it's there: sign in, create an
240
+ account, the code (sent on once typed or pasted; a new one every 30 seconds), a new password by
241
+ code, and arriving by an invitation's link to choose a password. Signing in by name moves under
242
+ it, a click away. The toolkit has an `eye-off` icon. The example web app takes `EMAIL=1` (and
243
+ `EMAIL_INVITE=<address>`) to try it, its messages in the terminal.
244
+ - **The sign-in page is the app's, in every word** (the `signInPage` resource of the browser's
245
+ plugins, merged over Copilotz's as the theme is): `words` patch its phrases one by one by key
246
+ (`SIGN_IN_WORDS` in `copilotz/web`: every heading, label, placeholder, button, hint and refusal of
247
+ Google's, email's and dev sign-in's screens, refusals said by their code, never in the server's
248
+ words); `about`, the panel beside the form (a headline, its quieter end, points with icons), is
249
+ given whole (no Copilotz pitch stays beside an app's own), and `null` leaves the form alone. Its
250
+ logo is the theme's and its name the page's title, as before; an app that says nothing shows
251
+ Copilotz's words and pitch, as before. Google's button speaks `page.lang`. New in `copilotz/web`:
252
+ `SIGN_IN_WORDS`, `COPILOTZ_ABOUT`, `signInPageOf` and the `SignInPage`, `SignInWords`,
253
+ `SignInAbout` and `SignInPoint` types.
254
+ - **Image generation** in `models`: `image.generate`
255
+ `{ model, prompt, references?, count?, aspectRatio?, size?, tags? }` answers
256
+ `{ images: [{ id, type, size }], text, usage }`. The images are kept in the `image` collection, a
257
+ document each, with the content as a blob, and the answer names them by id. A reference is an
258
+ image made here (`{ id }`), a document the caller may read that holds a file as `type` and `data`
259
+ (`{ id, collection: "file" }`, read as the caller), or inline data (`{ data, type }`, or a data
260
+ URL). Models are chosen as `llm`'s are: an alias, settings around one, or a list tried in order.
261
+ Adapters go under `adapters.image`: `gemini` (`generateContent` with `responseModalities`; `count`
262
+ images are that many calls, made together), `openai` (`/images/generations`, or `/images/edits`
263
+ with references), and `fake` (`"fake/image"`).
264
+ - **Metered like every model call.** The org's own key comes first. `modelUse` listeners and the
265
+ `spending` check go before the call. Its tokens are told to the ledger after, with meter
266
+ `image`, priced from the catalog as `llm`'s are, and counted under agents. The provider's
267
+ `silence` and `retry` apply.
268
+ - **Refusals are final.** A model whose safety rules say no fails `image_refused`, and no other
269
+ model is asked. One that makes nothing fails `no_image` once the list is spent. Both are public
270
+ messages: an agent's tool tells its model why.
271
+ - **Recorded, unlike the other ports' Actions.** It writes what it made, so a job that runs again
272
+ finds the call done and doesn't pay twice. `models.check` takes `port: "image"`.
273
+ - `keyed` and `mayRun` (the org's own key, and the spending check) moved from the llm port to
274
+ `shared/use.ts`, so every port that spends asks the same way. Nothing changes for `llm`.
275
+
276
+ ## 1.0.0-rc.25 — 2026-11-06
277
+
278
+ **Upgrading from rc.24.** The runtime now answers HTTP itself. `runtime.fetch(request)` is a fetch
279
+ handler (a function from a web-standard `Request` to a `Response`) that every host calls; plugins
280
+ declare their HTTP as `routes` (plain functions by URL pattern) and say who a request is with `who`
281
+ (a function from a request to an actor, or nothing); the runtime names and sets every cookie; the
282
+ page is a plugin (`webPage`); and many orgs are the directory's routes, forwarding each request to
283
+ its org's runtime. Every URL, webhook path and cookie name stays as it was, so nobody signs in
284
+ again. Developer keys made before stop working: make them again (step 7). The steps, in order:
285
+
286
+ 1. **Composition: the page is a plugin, and the runtime takes no browser options.** Drop
287
+ `transports: [socket]` and `admit: tickets.admit`: the runtime keeps its own one-time tickets and
288
+ takes its own socket at `/oxian`. Add `webPage` (from `copilotz/web/server`) with a `page`
289
+ resource. What `serve` and `webServer` took as options are resources now: `code`, `title`,
290
+ `lang`, `assets` and `base` go in `page`; `theme` in `theme`; `front: { secret }` is the `caller`
291
+ resource's `front` (beside its `header`); `widgets` go in `widgets`. `code` may be a function
292
+ that bundles once, on the page's first request.
293
+
294
+ ```ts
295
+ // rc.24
296
+ const tickets = createTickets(); // copilotz/web/tickets
297
+ const runtime = await createRuntime({
298
+ store,
299
+ plugins: [...plugins, devSignIn],
300
+ transports: [socket], // copilotz/web/server
301
+ admit: tickets.admit,
302
+ });
303
+
304
+ // now
305
+ const runtime = await createRuntime({
306
+ store,
307
+ plugins: [
308
+ ...plugins,
309
+ devSignIn,
310
+ webPage,
311
+ definePlugin({
312
+ name: "page",
313
+ resources: {
314
+ page: { title: "Notes", code: () => bundle(new URL("./browser.tsx", import.meta.url)) },
315
+ theme: themeOf([]),
316
+ },
317
+ }),
318
+ ],
319
+ });
320
+ ```
321
+
322
+ 2. **Serving: a listener calls `runtime.fetch`.** On Node and Bun, `listen(runtime.fetch, options)`
323
+ from `copilotz/web/node` replaces `serve({ runtime, tickets, code, … })`. It answers a
324
+ `Listener`, whose `shutdown()` stops listening, and you close the runtime yourself
325
+ (`runtime.close({ drain })`). On Deno, `Deno.serve(runtime.fetch)` replaces serving
326
+ `webServer({ …, upgrade })` with Oxian's Deno handler, and needs no `setClientAddress`: the
327
+ runtime reads the socket's address from what `Deno.serve` hands it. On workerd,
328
+ `export default { fetch: runtime.fetch }`. Bun's own `Bun.serve({ fetch: runtime.fetch })` serves
329
+ requests but not the runtime's socket, so use `listen` there.
330
+
331
+ ```ts
332
+ // rc.24
333
+ const server = await serve({ runtime, tickets, code, theme, port: 8080 });
334
+ process.once("SIGTERM", () => server.close({ drain: 8_000 }));
335
+
336
+ // now
337
+ const server = await listen(runtime.fetch, { port: 8080 });
338
+ process.once("SIGTERM", async () => {
339
+ await server.shutdown();
340
+ await runtime.close({ drain: 8_000 });
341
+ });
342
+ ```
343
+
344
+ 3. **Settings: flat named entries, one `caller`, and `ctx.fetch`.** Each interface plugin's resource
345
+ is a map of what the app declares, by name, with no `lines` key. `web.caller` and `mcp.caller`
346
+ are one `caller` resource. `caller.exempt` is the MCP server's own `exempt`, `voice.keep` each
347
+ number's `keep`, and `mcp.atOnce` each server's `limits.atOnce`; `whatsapp.codeMinutes` and
348
+ `whatsapp.maxFileMb` are constants now, and a declared entry's `org` is gone (each org's runtime
349
+ declares its own). Types: `WhatsAppLine` is `DeclaredNumber`, `VoiceLine` `DeclaredVoiceNumber`,
350
+ `McpLine` `DeclaredServer`, `WebLine` `DeclaredSite`, and `McpCaller` `CallerSettings`. Plugin
351
+ code calls outside services through `ctx.fetch` (step 10), so the `whatsapp.graph` setting,
352
+ Stripe's `settings.fetch`, `googleKeys(fetcher)`'s argument and openapi's `fetch` setting are
353
+ gone.
354
+
355
+ ```ts
356
+ // rc.24
357
+ resources: {
358
+ web: {
359
+ caller: { header: "cf-connecting-ip", front },
360
+ lines: { site: { in: "visitors", agent: "guide" } },
361
+ },
362
+ whatsapp: {
363
+ lines: { vendas: { in: "customers", phoneId, token, secret, verify, agent: "mobi" } },
364
+ },
365
+ mcp: { atOnce: 4, lines: { chatgpt: { in: "customers", tools } } },
366
+ }
367
+
368
+ // now
369
+ resources: {
370
+ caller: { header: "cf-connecting-ip", front },
371
+ web: { site: { in: "visitors", agent: "guide" } },
372
+ whatsapp: { vendas: { in: "customers", phoneId, token, secret, verify, agent: "mobi" } },
373
+ mcp: { chatgpt: { in: "customers", tools } },
374
+ }
375
+ ```
376
+
377
+ 4. **Routes: plain functions on a plugin.** The `routes` resource goes, with its three shapes
378
+ (`{ path, action }`, `{ path, serve }`, `{ host, serve }`), `methods`, `HttpRequest`,
379
+ `HttpAnswer` and `Served`. A plugin's `routes` field maps a `URLPattern` pathname to a `Route`:
380
+ `(request, { runtime, actor, params, cookies }) => Response`. A path that took everything under
381
+ it (`"/hooks/"`) is `"/hooks/*"`; a host route is a whole URL pattern (`"*://*-preview.*:*/*"`);
382
+ a route checks its own method. `host.runtime` is `ctx.runtime`, `await host.whom()` is
383
+ `ctx.actor`, `host.host` is the request's own URL (already the site the browser asked for),
384
+ `host.upgrade()` is Oxian's `upgradeWebSocket(request)`, and `host.widgets` is the `widgets`
385
+ resource. A route calls Actions as trusted code, as the system unless it names an actor
386
+ (`runtime.call(name, input, { actor })`): an Action that took an `HttpRequest` behind
387
+ `{ path, action }` takes plain data now, and one only a route calls needs no `allow`.
388
+
389
+ ```ts
390
+ // rc.24
391
+ resources: {
392
+ routes: {
393
+ ping: {
394
+ path: "/hooks/ping",
395
+ methods: ["POST"],
396
+ serve: async (request, host) =>
397
+ Response.json(await host.runtime.call("relay.ping", { body: await request.text() })),
398
+ },
399
+ },
400
+ },
401
+
402
+ // now
403
+ routes: {
404
+ "/hooks/ping": async (request, { runtime }) => {
405
+ if (request.method !== "POST") return new Response("Only POST", { status: 405 });
406
+ return Response.json(await runtime.call("relay.ping", { body: await request.text() }));
407
+ },
408
+ },
409
+ ```
410
+
411
+ 5. **Sign-in: plugins' routes, `who`, and the runtime's cookies.** The `entrances` and `signIn`
412
+ resources go. Apps on `googleSignIn` and `devSignIn` change nothing: their routes are
413
+ `POST /signin/google` (with `GET /google` for the button's client id) and `/signin/dev`, which
414
+ the page already used. A sign-in method of your own is a plugin built on identity whose route
415
+ calls its Action and answers with identity's `signedIn` (from `copilotz/plugins/access`), which
416
+ sets the session's cookie. A credential of your own (an entrance's `cookie` and `query`) is a
417
+ plugin's `who`, and its cookie is set and cleared with `ctx.cookies`: no plugin writes
418
+ `Set-Cookie`. Identity's `POST /signout` ends the session, disconnects its browsers and clears
419
+ its cookie; its `GET /me` says whom the page shows.
420
+
421
+ ```ts
422
+ // rc.24
423
+ resources: {
424
+ signIn: { mine: { action: "mine.sign-in" } },
425
+ entrances: { badge: { cookie: "badge", query: "badge.actor" } },
426
+ },
427
+
428
+ // now
429
+ definePlugin({
430
+ name: "mine-sign-in",
431
+ requires: ["identity"],
432
+ actions: { "mine.sign-in": signInAction }, // answers { person, session }, as before
433
+ routes: {
434
+ "/signin/mine": async (request, { runtime, cookies }) =>
435
+ signedIn(cookies, await runtime.call("mine.sign-in", await request.json())),
436
+ },
437
+ who: (_request, { cookies, query }) => {
438
+ const secret = cookies.get("badge");
439
+ return secret ? query("badge.actor", { secret }) : null;
440
+ },
441
+ });
442
+ ```
443
+
444
+ 6. **The site chat: its own route.** `web({ arrive: { line } })` is `web({ arrive: { name } })`. The
445
+ page posts to the site chat's route, `POST /web/<name>` (with `{ challenge }` when it has one),
446
+ before it connects, and `/connect` takes no JSON. `contact.arrive` loses its `secret` input. The
447
+ cookie (`visitor`) and the limits are the same.
448
+
449
+ ```tsx
450
+ // rc.24
451
+ await web({ root, plugins: [siteShell, chatWeb], arrive: { line: "site", challenge: token } });
452
+
453
+ // now
454
+ await web({ root, plugins: [siteShell, chatWeb], arrive: { name: "site", challenge: token } });
455
+ ```
456
+
457
+ 7. **Keys: members of their space, with a scope.** Every key is the api plugin's, and every key has
458
+ a scope: `api_key.create` takes `scope` (`call`, `query`, `view`, `read`, `write`) in place of
459
+ `actions`, `queries` and `views`, and `apiPresets` are `{ title, description, scope }`. An Action
460
+ that takes a space gets no default from a key: the key names `in`. Identity's unscoped keys
461
+ (`key.create`, `key.revoke`, `credential.keys`) are gone. Keys made before stop working: make
462
+ them again.
463
+
464
+ ```ts
465
+ // rc.24
466
+ await runtime.call("api_key.create", {
467
+ in: space,
468
+ name: "Bot",
469
+ actions: ["chat.send"],
470
+ queries: ["thread.recent"],
471
+ }, { actor });
472
+
473
+ // now
474
+ await runtime.call("api_key.create", {
475
+ in: space,
476
+ name: "Bot",
477
+ scope: { call: ["chat.send"], query: ["thread.recent"] },
478
+ }, { actor });
479
+ ```
480
+
481
+ 8. **REST and the client.** `/api/` is the runtime's own now (the api plugin's `serveApi` is gone),
482
+ answered for whoever `who` says: a key, a session from the app's own page, or anonymous. Its
483
+ paths are unchanged, with more beside them (below). A View over `/api/` asked with `?follow=1` is
484
+ asked with `Accept: text/event-stream`, and `?id=` is `?item=` (the item, as JSON). A script
485
+ connects with the client instead of hand-made requests, over the socket or over HTTP, and its
486
+ collections are spelled as plugin code's.
487
+
488
+ ```ts
489
+ // rc.24
490
+ const headers = { authorization: `Bearer ${key}`, "content-type": "application/json" };
491
+ await fetch(`${app}/api/actions/booking.cancel`, {
492
+ method: "POST",
493
+ headers,
494
+ body: '{"id":"42"}',
495
+ });
496
+ await fetch(`${app}/api/views/booking.panel?id=42&follow=1`, { headers });
497
+
498
+ // now
499
+ const client = await connect(app, { key }); // the socket; { key, over: "http" } for the REST API
500
+ await client.call("booking.cancel", { id: "42" });
501
+ const stop = client.db.collection("booking").watch({ _id: "42" }, (rows) => show(rows));
502
+ // by hand: GET /api/views/booking.panel?item={"_id":"42"}, with Accept: text/event-stream
503
+ ```
504
+
505
+ 9. **Many orgs: the directory's routes.** `orgsHost` (`copilotz/orgs`) goes. The directory's runtime
506
+ is the app's `fetch`, and its plugin's routes forward each request, untouched and sockets
507
+ included, to its org's runtime. Its `directory` resource takes the orgs' runtimes as a pool
508
+ (`orgs`: `runtimes(open)`, from `copilotz`) and a `lobby` for someone signed in nowhere (a
509
+ runtime with the page), beside `staff` and `operations`; `hosts` is the `hosts` resource's `own`.
510
+ Each org's runtime gets `directory.member(dir, org)`, in place of what `open` was given
511
+ (`plugins`, `admit`, `transports`) and of `here(org)`. `listen(dir.fetch)` carries sockets too:
512
+ no `hypervisor` picker. `org.get` is the `org.info` query, and front ends import the orgs'
513
+ browser half (`useOrgs`, `enterOrg`…) from `copilotz/plugins/access/web`. Stripe's webhook is the
514
+ `stripeWebhook` plugin, in the directory's runtime with the pool as the `stripe` resource's
515
+ `orgs` (below).
516
+
517
+ ```ts
518
+ // rc.24
519
+ const host = orgsHost({
520
+ directory: await createRuntime({ store, plugins: [identity, directory, devSignIn] }),
521
+ open: async (org, given) =>
522
+ await createRuntime({
523
+ store: storeOf(org),
524
+ plugins: [...plugins, ...given.plugins],
525
+ transports: given.transports,
526
+ admit: given.admit,
527
+ browsers: given.browsers,
528
+ }),
529
+ upgrade: () => new Response("Connect again", { status: 503 }),
530
+ code,
531
+ theme,
532
+ });
533
+ await listen({ fetch: host.serve, hypervisor: (r) => host.openRuntime(r)?.hypervisor, port });
534
+
535
+ // now
536
+ const orgs = runtimes(async (id) => {
537
+ const org = await dir.query<OrgInfo | null>("org.info", { org: id });
538
+ if (!org) return undefined;
539
+ return await createRuntime({
540
+ store: await storeOf(org),
541
+ plugins: [...plugins, ...page, directory.member(dir, org)], // page: webPage and its resource
542
+ browsers: { pool: visitors }, // const visitors = contactsPool()
543
+ });
544
+ });
545
+ const lobby = await createRuntime({ store: memoryStore(), plugins: page });
546
+ const dir: Runtime = await createRuntime({
547
+ store,
548
+ plugins: [
549
+ identity,
550
+ directory,
551
+ devSignIn,
552
+ definePlugin({
553
+ name: "directory-settings",
554
+ resources: { directory: { orgs, lobby } },
555
+ }),
556
+ ],
557
+ });
558
+ await listen(dir.fetch, { port });
559
+ ```
560
+
561
+ 10. **Tests: `testWho`, `ticketFor`, `runtime.fetch` and `createRuntime({ fetch })`.** A test that
562
+ made browsers with `createRuntime({ admit })` adds `testWho` (from `copilotz/testing`: a `who`
563
+ that believes the `x-test-actor` header, for tests alone) and takes each ticket from the
564
+ runtime's `/connect` with `ticketFor(runtime, actor)`. HTTP needs no listener:
565
+ `await runtime.fetch(new Request(url, init))`. A fake outside service (Meta's Graph API, Stripe,
566
+ Google's keys) is the `fetch` the runtime gives plugin code, as `clock` is replaced.
567
+
568
+ ```ts
569
+ // rc.24
570
+ const tickets = new Map<string, Actor>();
571
+ const runtime = await createRuntime({
572
+ store,
573
+ plugins: [
574
+ ...plugins,
575
+ definePlugin({ name: "t", resources: { whatsapp: { graph: fake.url } } }),
576
+ ],
577
+ transports: [transport],
578
+ admit: (secret) => tickets.get(secret),
579
+ });
580
+ const ticket = () => {
581
+ const secret = crypto.randomUUID();
582
+ tickets.set(secret, ana);
583
+ return Promise.resolve(secret);
584
+ };
585
+
586
+ // now
587
+ const runtime = await createRuntime({
588
+ store,
589
+ plugins: [...plugins, testWho],
590
+ transports: [transport],
591
+ fetch: fakeMeta,
592
+ });
593
+ const ticket = () => ticketFor(runtime, ana);
594
+ const hook = await runtime.fetch(new Request("http://localhost/hooks/whatsapp/vendas", init));
595
+ ```
596
+
597
+ **What changes, and what goes:**
598
+
599
+ - **`runtime.fetch(request, info?)`** answers every request: a route with a host first (a host it
600
+ takes is that route's alone); the socket (`/oxian`, and `<base>/oxian`); then requests from other
601
+ sites are refused; `POST /connect`; the REST API (`/api/`); plugins' routes; `GET /health` when no
602
+ route takes it (`ok`); else a 404. What a listener passes beside the request (Deno's `info`, Bun's
603
+ server) says the socket's address. Another runtime's route may forward a request to it
604
+ (`other.fetch(request)`), sockets included: a socket `Deno.serve` gave stays Deno's to accept. The
605
+ runtime accepts its own socket: Deno's upgrade under `Deno.serve`, a `WebSocketPair` on workerd
606
+ (not tested yet), else Oxian's route upgrade, whose decision `listen` takes directly (Oxian
607
+ 0.23.4's asynchronous `prepare`).
608
+ - **The site** is decided once, before anything else: the address the browser asked for, on the host
609
+ the app's front says when the request carries the front's secret (`x-copilotz-front`, the `caller`
610
+ resource's `front`; then `x-forwarded-host`), and under the app's base (`resources.page.base`: a
611
+ route sees `/o/acme/x` as `/x`). Routes are matched, and cookies named and secured, by it. Without
612
+ the secret, forwarded headers are ignored.
613
+ - **Requests from other sites are refused** (403), in one rule in place of the web host's
614
+ `fromPage`: a request that may change something (anything but GET, HEAD and OPTIONS), whose
615
+ `Sec-Fetch-Site` isn't `same-origin` (or `none`) or whose `Origin` isn't the site's own, unless it
616
+ carries `Authorization`. It holds for every route, not only `/connect`; a sibling host under the
617
+ same domain is another site; webhooks send no `Origin`, and pass. So an MCP server's `origins`
618
+ lets a browser's call through only with `Authorization`.
619
+ - **`resources.hosts`** (`{ own: ["app.example.com", "*.run.app"] }`): the app's own hosts. With
620
+ them named, a request to any other host is answered only by routes that take its host (a 404 when
621
+ none does), never by the runtime's paths, its socket or `/connect`; and the app's own hosts are
622
+ never a host route's. A host route for every host (`*`) takes only hosts that aren't the app's
623
+ own: with none named, none.
624
+ - **`who`** (`Plugin.who`, the `Who` and `WhoContext` types): asked in plugin order, once per
625
+ request and when `/connect` issues a ticket; the first answer wins, and none is anonymous
626
+ (`{ kind: "anonymous", id: "" }`). A `who` can't answer the system. What it queries is kept five
627
+ seconds per query and params, and dropped when the actor is disconnected. `WhoContext` has
628
+ `resources`, `query` and `call` (as the system: the api plugin notes a key's last use) and
629
+ `cookies.get`. A request with both a session cookie and a key is whoever the first plugin in order
630
+ says (usually the cookie). A store's failure while asking is a 500, never anonymous.
631
+ - **Routes** (`Plugin.routes`, the `Route` and `RouteContext` types): matched more specific first,
632
+ segment by segment (a literal before a parameter before a wildcard, deeper before shallower), `/*`
633
+ last, and among patterns alike in plugin order; a later plugin's route replaces an earlier one of
634
+ the same pattern, and `null` removes it. A route that isn't a pattern, or takes `/connect`,
635
+ `/oxian`, `/api` or anything under `/api/`, stops the runtime from starting. What a route throws
636
+ answers by its code: `invalid` 400, `unauthorized` 401, `forbidden` 403, `not_found` 404,
637
+ `too_many` 429 (with `retry-after`), anything else 500 (logged), its words only when they're
638
+ public.
639
+ - **Cookies** (`ctx.cookies`, the `Cookies` type): `get(name)`,
640
+ `set(name, secret, { days, sameSite })` and `clear(name, { sameSite })`, by the plain name; the
641
+ runtime puts them on the route's response. Every cookie is httpOnly, `Path=/`, with no `Domain`;
642
+ `Secure` and named `__Host-<name>` anywhere but plain http to this machine or one on its network;
643
+ `SameSite=Lax` (30 days) unless said. A value is 1 to 512 cookie-safe characters (letters, digits
644
+ and `._~+/=-`): a short one is fine where it's no secret; a cookie holding anything else reads as
645
+ none. A response that sets or clears one is `no-store`. A name is the first plugin's to set;
646
+ another may only when one builds on the other (`requires`), or both on the same one (Google's and
647
+ dev sign-in's, and the directory's sign-out, all set identity's session); anything else is a
648
+ plugin's mistake, and a 500. The `cookies` resource (`{ names, suffix }`, the `CookieSettings`
649
+ type) renames them: `names` maps a name to the one it goes by, and `suffix` follows every other.
650
+ - **Cookies the web host kept, and no longer does:** a leftover plain `session` cookie beside
651
+ `__Host-session` is no longer cleared (it's ignored); a cookie that proves no one (forged, ended)
652
+ is no longer cleared, and reads as nobody; `POST /signout` clears identity's `session` only (a
653
+ site visitor's cookie stays).
654
+ - **Tickets are the runtime's** (`runtime/tickets.ts`): one works once, for a minute; an actor has
655
+ 30 a minute (`browsers.tickets`), past which `/connect` is a 429 with `retry-after`. Disconnecting
656
+ an actor ends its tickets not yet used; a person's key has its own, apart from its person's.
657
+ `createRuntime`'s `admit` is gone, and the runtime always has a key for remote executors (a new
658
+ one each start, unless given).
659
+ - **`POST /connect`** (POST only: else 405) answers `{ ticket, actor: { kind, id } }` (no `name`:
660
+ the page asks `GET /me`), 401 for anonymous, and reads no body: arriving at a site chat is
661
+ `POST /web/<name>`.
662
+ - **Checked at start:** routes' patterns, `page.base` (a path with no trailing slash), the `cookies`
663
+ and `hosts` resources, and the `links` secret (too short to sign with stops the start, rather than
664
+ failing each link).
665
+ - **New in `copilotz`:** `runtimes` and `Runtimes`; `connect` and the client's types
666
+ (`ClientCollection`, `RemoteOptions`, `Watcher`…); `inScope` and `Scope`; `clientAddress`,
667
+ `setClientAddress` and `loopbackAddress` (were in `copilotz/web/server`); `bodyOf` and `jsonOf`;
668
+ `cookieSafe` and `CookieSettings`; `hostMatches`, `HostsSettings`, `ownHost`, `vouched`,
669
+ `loopback` and `nearby`; `callerOf` and `exemptProblem`; and the `Route`, `RouteContext`, `Who`,
670
+ `WhoContext` and `Cookies` types.
671
+ - **`runtimes(open, { idleMs })`:** runtimes by id, each opened on its first `get`, the same one
672
+ after (a failed opening is tried again), closed once idle (no browsers, nothing pending, 30
673
+ minutes unless said) and opened again on its next use; `peek(id)` and `entries()` never open one;
674
+ `close(id)` closes one now, and a `get` meanwhile opens another only once it has closed, so one id
675
+ never has two writers; `close()` closes them all.
676
+ - **`listen(fetch, { hostname, port, signal })`** (was `listen({ fetch, hypervisor, … })`) serves
677
+ any fetch handler on Node, Bun and Deno through Oxian's Node adapter, sockets included, and
678
+ answers a `Listener` (`url`, `finished`, `shutdown()`). `serve`, `ServeOptions` and `Server` are
679
+ gone.
680
+ - **The page plugin** (`webPage`, `copilotz/web/server`): `/app/*` (the code; the entry `no-cache`,
681
+ chunks kept a year), `/assets/*`, `/manifest.webmanifest`, `/sw.js`, and `/*` for GET navigations
682
+ only (`Sec-Fetch-Mode: navigate`, or an `Accept` with HTML, `*/*` or none): a script's `fetch`
683
+ there is a 404, not the page. Its `/*` takes `GET /health` too, so the runtime's `ok` answers only
684
+ an app without a page (with a page, `/health` was the page before as well). It refuses to start
685
+ without `page.code`. The page tells its code the base (`appBase()`), and its `/connect` and socket
686
+ follow it.
687
+ - **The page in the browser:** `web()` posts to `/web/<name>` first when it arrives as a visitor
688
+ (`arrive: { name, challenge? }`), asks identity's `GET /me` for the person's name while it takes
689
+ its ticket, and finds the ways to sign in by asking `GET /google` and `GET /signin/dev`.
690
+ - **Sign-in and sign-out are plugins' routes:** identity's `POST /signout` (ends the session,
691
+ disconnects whoever it was, clears the cookie) and `GET /me` (401 for anyone but a person), and
692
+ its contract's `signedIn` (sets the session's cookie, `SameSite=Lax` so an OAuth redirect back
693
+ carries it, and answers `{ person }`); Google's `POST /signin/google` (`{ idToken }`) and
694
+ `GET /google` (the first client id, cached five minutes); dev sign-in's `/signin/dev` (GET says
695
+ it's there, POST `{ name }` signs in), from this machine only, as before. Nothing refuses to start
696
+ with a recorded sign-in Action any more (the web host did): keep yours `record: false`, since its
697
+ answer is the session's secret. `credential.revoke` (taking someone out of an org) disconnects
698
+ their browsers and drops what `who` kept for them, so their next request is nobody at once.
699
+ - **Webhooks and other plugins' HTTP are routes; their URLs are unchanged:**
700
+ - WhatsApp: `/hooks/whatsapp/*` does Meta's handshake and checks the signature, then calls
701
+ `whatsapp.receive` with `{ number, payload }`; `whatsapp.number` finds a number by its path.
702
+ Both are the system's (no `allow`); `whatsapp.hook` is gone. `hookRoute` is exported, for a
703
+ number's own path.
704
+ - Voice: `/hooks/voice/<name>` and `/hooks/voice/<name>/over` check Twilio's signature and call
705
+ `voice.ring` and `voice.hangup` (`voice.hook` is gone); `/hooks/voice/<name>/relay` takes the
706
+ call's socket with Oxian's `upgradeWebSocket`.
707
+ - MCP: `/mcp/*`, finding the app's widgets in the `widgets` resource (was
708
+ `webServer({ widgets })`).
709
+ - Maintenance: `/maintenance/*`; an org's runtime (`resources.org`) still never serves it.
710
+ - Chat: `GET /files/<id>` is chat's route (was the web host's), read as whoever the request is, or
711
+ by a link signed for the file.
712
+ - Connected accounts: `GET /accounts/callback/<provider>` calls `account.callback` with
713
+ `{ provider, code, state, error? }` as the session's person, and sends them back to Connected
714
+ accounts.
715
+ - Computers: previews are one route for every host shaped like a preview's
716
+ (`*://*-preview.*:*/*`), answering only for the app's `previews.domain`, with the grant at
717
+ `/__copilotz/previews/grant`; a release's downloads (`computerDownloads({ dir })`) are
718
+ `/computer/download/*`.
719
+ - Stripe: `stripeWebhook` is a plugin (was a function the app routed to by hand),
720
+ `POST /__stripe/<seller>`: it checks the signature on the raw text, reads the event as facts
721
+ (`stripe.fact`, asking Stripe for a dispute's charge through `ctx.fetch`), and hands them to the
722
+ org's runtime as `billing.apply` under the event's id. Which runtime is the org's: the `stripe`
723
+ resource's `orgs` (the directory's pool), or without them this runtime, when the event is for
724
+ its org. The plan an org goes back to is the `billing` resource's `start` ("free" unless said),
725
+ not a `start` option. What can be tried again answers 500; what never can, 200.
726
+ - The cloud pool: its VMs' socket (`/__pool/oxian`) is `cloudPool`'s route, answered by its
727
+ runtime's own socket.
728
+ - **The site chat:** `POST /web/<name>` limits newcomers by address, runs the site's challenge,
729
+ calls `contact.arrive` and sets the visitor cookie (`SameSite=Strict`); the site chat's `who`
730
+ reads it. `contact_visitor.actor` now answers a visitor that hasn't spoken yet too.
731
+ - **`ctx.fetch`** (`Context.fetch`, `ReadContext.fetch`): what plugin code calls outside services
732
+ with, in Actions, Processors and queries, remote executors included; the platform's `fetch` unless
733
+ `createRuntime({ fetch })` gives another. Adapters stay for real ports (model providers).
734
+ - **The REST API is the runtime's own** (`/api/`, answered by `runtime.fetch` for whoever `who`
735
+ says): collections (`GET /api/collections/<name>?filter=…`, `…/<id>`; `POST`, `PATCH`, `PUT`,
736
+ `DELETE`), Actions by the caller's own call id (`Idempotency-Key`), queries (`GET ?params=` or
737
+ `POST`), Views, emits (`POST /api/events/<type>`), the events stream, and the reference
738
+ (`GET /api/`); any GET with `Accept: text/event-stream` is a watch. A credential that proves
739
+ nobody is a 401, and so is a refusal to anonymous. Any origin may call it with a key; with a
740
+ session's cookie, only the app's own page. Streams end at once when their actor is disconnected,
741
+ and at each ping (every 20 s, on the runtime's clock) when `who` says someone else. The api
742
+ plugin's `serveApi`, `Served`, its own HTTP, events and reference, and its `api_key.see` and
743
+ `api_key.get` queries are gone; the reference says `actor` (no `key` record).
744
+ - **Direct writes from outside** (REST, and the socket's new `core.write`): only where a rule speaks
745
+ for the collection's writes (`Guard`'s operation gains `direct`), never `sys.*`, never a private
746
+ field (nor a filter, sort or update that names one, over the socket too; a replacement keeps
747
+ them), within the caller's reach, schema-checked, and recorded as the caller's events.
748
+ **Breaking:** plugins' records change through their Actions: their rules refuse direct writes for
749
+ spaces, memberships, invitations and requests; identity's people and sessions; keys; contacts;
750
+ chat's messages, `live`, threads, files and what was shown (`shown`); memories; skills and their
751
+ files; routines and their runs; the computers plugin's records; apps; cloud computers; agents;
752
+ accounts; WhatsApp's phones and numbers; and voice blocks. Still writable directly, each under its
753
+ rule: apps' own collections (an app guards its own the same way when its rules assume its
754
+ Actions). Following events or watching a read holds a request open: an anonymous caller gets 401.
755
+ The events stream follows the rules: a change is sent when the reader's rule matches the event's
756
+ document.
757
+ - **Identity: only a session proves someone.** `credential.actor` asks for `kind: "session"`: a key
758
+ identity made before (`kind: "key"`, unscoped) proves nobody.
759
+ - **The client** (`connect`, from `copilotz` and `copilotz/web`): `client.db.collection(name)`
760
+ (`find` with `.toArray()`, `findOne`, `countDocuments`, `insertOne`, `updateOne`, `replaceOne`,
761
+ `deleteOne`, `query`, `watch(filter, options?, onChange)`), `client.call(action, input, { id })`,
762
+ and `connect(url, { key, over: "socket" | "http", plugins?, fetch? })` for scripts, beside the
763
+ page's `connect({ transport, ticket, plugins })`. The socket gains a call's own id.
764
+ - **Developer keys** are members of their space, with a scope. A key's actor is
765
+ `{ kind: "person", id, key, scope }` (`within` is gone): `people` still lets it in and `inPerson`
766
+ keeps it out. It's a member of its space (`key:<id>`), an editor when its scope calls or writes,
767
+ else a viewer, never more than its person may be there, and reaches what both its membership and
768
+ its person reach, with no org role (an admin's key reaches only its space). Its `scope` (exact
769
+ names, no wildcards) is checked by the runtime (`inScope`) only where a call from outside comes
770
+ in: calls, queries, Views rendered for it, direct reads and writes; a scoped actor emits nothing.
771
+ Never inside a job: an Action it may call writes as usual. `api_key` records keep `scope` and
772
+ `role`; their id is the start of the secret's hash (`hash` is private); they live in their space
773
+ (`shared`), where its members see them in the Members tab and its managers revoke them.
774
+ `api_key.actor` answers the actor; `api_key.revoke` (its person, or a manager) ends the key, its
775
+ membership and its connections, and so does its person leaving the space or the org;
776
+ `ctx.disconnect` of a key ends only its own. Spaces add `spaceMembers` (a section of the Members
777
+ tab). A key's default space is gone: the runtime knows no spaces, and REST and the socket must
778
+ behave the same.
779
+ - **Identity makes no keys:** `key.create`, `key.revoke` and `credential.keys` are gone, and a
780
+ credential is a session. People and sessions change only through identity's Actions.
781
+ - **Many orgs, by forwarding** (see design/tenancy.md): the directory's routes forward `/o/<org>/…`
782
+ to that org (404 for none, 403 when suspended), `/*` to the org the browser is in (a page asked
783
+ for without a session there goes in first, to the org they were in, else their last, else their
784
+ own, made now, then 302s back), and a host an org claimed to that org's host routes; anything else
785
+ for someone signed in nowhere is the lobby's (without one, a 401). Entering an org (`POST /orgs`,
786
+ `/orgs/enter`, `/orgs/invites/answer`, and a page's way in) is `org.enter`, then a signed handoff,
787
+ a minute long and never out of the process, to the org's own `POST /enter`, which keeps who they
788
+ are, joins them the first time, starts its session and sets its cookie (`s_<org>`). The
789
+ directory's own: `GET /orgs`, `POST /signout` out of every org it holds a session for (each ended
790
+ where its org is open; signing out never opens one), staff's `/console/orgs…` and
791
+ `/console/codes…`, and the front's `/__copilotz/hosts/resolve` on any host. `directory.member`
792
+ gives each org's runtime `resources.org` (id, name, kind, address), `page.base`, its cookies'
793
+ names (`{ names: { session: "s_<org>" }, suffix: "_<org>" }`), the app's own hosts, the
794
+ directory's hooks (invitations, leaving, renaming, claiming and releasing hosts, gift codes) and
795
+ its `/enter`. The directory's session is still `__Host-dir` (the directory plugin's `cookies`
796
+ resource), and which org a browser is in, `__Host-org`. `org.info` (a query, in place of the
797
+ `org.get` Action) is kept 10 seconds, hosts' claims a minute, each forgotten at once when the
798
+ directory changes it. The orgs host's tests are ported (`plugins/access/tests/orgs*.test.ts`).
799
+ - **Removed entry points and exports:** `copilotz/web/tickets` (`createTickets`) and `copilotz/orgs`
800
+ (`orgsHost`). From `copilotz/web/server`: `webServer`, `WebServerOptions`, `socket`, `Entrance`,
801
+ `SignIn`, `Arrived`, `Door`, `Whom`, `whomOf`, `cookieOf`, `hostCookie`, `setCookie`, `siteOf`,
802
+ `ANONYMOUS` (write `{ kind: "anonymous", id: "" }`), `Front`, `hostOf`, `HttpRequest`,
803
+ `HttpAnswer`, `httpRequest`, `Route` (now the runtime's, a function), `RouteSocket` and `Served`;
804
+ `clientAddress`, `setClientAddress` and `hostMatches` moved to `copilotz`. From `copilotz/web`:
805
+ the orgs' browser half (now `copilotz/plugins/access/web`). From `copilotz/web/node`: `serve`,
806
+ `ServeOptions` and `Server`. From `copilotz/plugins/interfaces`: `serveApi`, `WebLine` and the
807
+ other `*Line` types. The `entrances`, `signIn` and `routes` resources; `createRuntime`'s `admit`;
808
+ the actor's `within`; `whatsapp.hook` and `voice.hook`.
809
+
810
+ - **Oxian 0.23.5:** the Node adapter keeps an error listener on each request and response for their
811
+ whole life, so a client leaving mid-response (a server-sent stream it stops) never reaches the
812
+ process as an unhandled error (it did under Bun).
813
+
814
+ ## 1.0.0-rc.24 — 2026-11-06
815
+
816
+ **Upgrading from rc.23** (two breaking renames; no aliases, no data moves):
817
+
818
+ 1. **Views are found by name alone; the medium is gone.** Flatten `views`:
819
+ `{ "booking.panel": { web: BookingPanel } }` becomes `{ "booking.panel": BookingPanel }` (`Views`
820
+ is `Record<string, View>`). `render(medium, name, item, options)` and
821
+ `observe(medium, name, item, options)` lose their first argument:
822
+ `ctx.render("llm", "thread", t)` is `ctx.render("llm.thread", t)`,
823
+ `client.observe("web", "booking.panel", item)` is `client.observe("booking.panel", item)`.
824
+ `ViewContext` loses `medium`, and its `kind` is now `name`. `ctx.show(name, item)` shows exactly
825
+ the View it names: there is no inheritance by place. The `"*"` fallback is gone; the hosts ask
826
+ for their own default (`web.default`, `terminal.default`) when a name has no View.
827
+ `runtime.describe().views` is the list of names. `GET /api/views/<name>` takes the name
828
+ (`llm.thread`) and no longer reads `?medium=`; API keys that list a View by `thread` or `message`
829
+ list `llm.thread` or `llm.message`. An MCP widget's `_meta` names the View without a medium.
830
+ Where the same thing is shown in several places the name takes the place as a prefix; seven kinds
831
+ were renamed:
832
+ | Was | Is |
833
+ | ------------------------- | ------------------------------------------------------------------------------------------- |
834
+ | `message` | `llm.message`, `web.message`, `terminal.message`, `whatsapp.message`, `voice.message` |
835
+ | `thread` | `llm.thread`, `web.thread`, `terminal.thread` |
836
+ | `memory` | `llm.memory`, `terminal.memory` |
837
+ | `live`, `shell`, `spaces` | `web.live`, `web.shell`, `web.spaces`; `terminal.live`, `terminal.shell`, `terminal.spaces` |
838
+ | `*` | `web.default`, `terminal.default` |
839
+
840
+ Every other name stays (`tool:<name>`, `context:<name>`, `addition:<name>`, `mcp:offered`, and
841
+ the rest). The last plugin to register a name still wins, so an app replaces WhatsApp's message
842
+ with its own `whatsapp.message`. A page's address still names its View as before
843
+ (`/thread/<id>`): the web shell looks for that name, then `web.<name>`, then `web.default` (hint
844
+ `of` names the address's kind); the terminal's `open` does the same with `terminal.`.
845
+ 2. **The anonymous actor is `anonymous`, not `visitor`:** a request nobody is signed in to is
846
+ `{ kind: "anonymous", id: "" }` (`VISITOR` is `ANONYMOUS` in `copilotz/web/server`). Rules that
847
+ named `visitor` name `anonymous` (identity's `callback` allows `person` or `anonymous`). The
848
+ `visitor` entrance and its cookie keep their names. `runtime/actor.ts` now lists all six kinds
849
+ (person, agent, contact, system, maintenance, anonymous); `routine` is an origin and `space` a
850
+ kind of member, not actors.
851
+
852
+ - **Oxian 0.23.4:** its adapters await an asynchronous `prepare`, so a front serving several
853
+ runtimes behind one listener can open the right one before deciding a socket upgrade.
854
+
855
+ ## 1.0.0-rc.23 — 2026-11-05
856
+
857
+ **Upgrading from rc.22** (three renames and one host change; nothing else needs doing):
858
+
859
+ 1. **`renderer` is `medium`:** rename `ctx.renderer` to `ctx.medium` in Views and in hand-made test
860
+ contexts (`renderer: "web"` to `medium: "web"`). No alias.
861
+ 2. **Web lines moved to the web interface:** add `webLines` beside `...access`
862
+ (`plugins: [models, chat, ...access, webLines]`) and import `WebLine`, `WebLimits`, `WebSettings`
863
+ and `WEB_LIMITS` from `copilotz/plugins/interfaces`. The `contactSend` hook's key is `web` (was
864
+ `contacts`). No data moves.
865
+ 3. **One web host:** `serveRoutes`, `routeHost` and `RouteListener` are gone, and so are `serve`'s
866
+ `google` and `dev` options: declare sign-in with `googleSignIn` and `devSignIn` plugins instead.
867
+ `serve` answers a `Server` (`close({ drain })`); `/connect` answers `{ ticket, actor, name? }`
868
+ (`person` is gone).
869
+
870
+ - **Breaking: web lines are the web interface's, not contacts'.** `resources.web.lines`, arrival,
871
+ the `visitor` entrance, the budget, the challenge, prune and the limits moved from
872
+ `plugins/access/contacts` into `plugins/interfaces/web`, as one plugin, `webLines` (exported from
873
+ `copilotz/plugins/interfaces`), as WhatsApp's, the phone's and MCP's lines are in theirs. The
874
+ resource shape is the same (`web: { caller?, lines: { … } }`), and so are the Actions
875
+ (`contact.arrive`, `contact.sending`, `contact.prune`, `contact.spent`, `contact.budget`) and
876
+ collections (`contact_visitor`, `contact_rate`): nothing is renamed, so no data moves. Migrate by
877
+ adding `webLines` beside `...access` (`plugins: [models, chat, ...access, webLines]`) and
878
+ importing `WebLine`, `WebLimits`, `WebSettings` and `WEB_LIMITS` from
879
+ `copilotz/plugins/interfaces` instead of `…/access`. Contacts keeps the contact, `contact.start`,
880
+ `contact.chat` and `contact.forget`; erasing a visitor's contact now ends its cookie and its
881
+ connections in a processor of `contact.deleted` (`web.forget`), a moment after the erasure, not in
882
+ the same transaction. The `contactSend` hook's key is `web` (was `contacts`).
883
+ - **Breaking: `renderer` is `medium`.** The docs said "medium" and the API said `renderer`; now one
884
+ word. A View's context field `ctx.renderer` is `ctx.medium`, and the wire/owner `render` job's
885
+ `renderer` field is `medium`. Migrate by renaming `ctx.renderer` to `ctx.medium` (and a test's
886
+ hand-made context `renderer: "web"` to `medium: "web"`); `render(medium, kind, item)` already took
887
+ the medium by position. The medium names are unchanged (`llm`, `web`, `terminal`, `whatsapp`,
888
+ `voice`). No alias.
889
+ - **One web host, its parts from the app's plugins.** `serve` (and `webServer` beneath it) is the
890
+ host for every app: routes from `routes` resources, as before; the page and its code from `code`
891
+ (none: no page, the routes and `/health`); who a browser is from a new `entrances` resource; how
892
+ people sign in from a new `signIn` resource; browsers connecting with `tickets` (none: no browser
893
+ connects). `serveRoutes`, `routeHost` and `RouteListener` are gone, and so are the host's `google`
894
+ and `dev` options; `serve` answers a `Server`, whose `close({ drain })` stops listening and then
895
+ closes the runtime.
896
+ - **Entrances:** each is a cookie and the query that says who its secret is (`{ secret }` in, an
897
+ actor out), asked in `order`; one may let a newcomer in on `POST /connect` (`arrive`, given the
898
+ socket's address and the secret its cookie holds when that's no one yet), and end what it is on
899
+ sign-out (`end`). The host keeps every cookie (httpOnly; `Secure` but over plain http to this
900
+ machine or a LAN host, by the host the request is for as the app's front says it; `sameSite` lax
901
+ or strict; `hostOnly`: `__Host-<name>` wherever it's Secure), clears one that's no one (forged,
902
+ ended), and never takes a store's failure for no one. Identity declares the session (`session`,
903
+ host-only, read by `credential.actor`, ended by `session.end`, which now takes `{ secret }` and
904
+ is unrecorded: its secret was in the log). `/connect` answers `{ ticket, actor, name? }`
905
+ (`person` is gone); `web()` connects as whoever it is (`start(client, actor)`), and
906
+ `web({ arrive })` is what the page asks coming in, at the app's `base` (an org's, with many).
907
+ - **Sign-in:** `POST /signin/<name>` for each way a plugin declares: an unrecorded Action (the
908
+ host refuses to start with a recorded one), called as the system with the request's JSON,
909
+ answering `{ person, session }`; `local` ones from this machine only: the socket's address (as
910
+ the listener saw it, `clientAddress`) and the host must both be loopback, a request whose
911
+ address nobody set is refused, and so is one carrying any header a proxy adds (`forwarded`,
912
+ `via`, `x-forwarded-*`, `x-real-ip`, `cf-connecting-ip`…: a proxy on this machine that rewrites
913
+ `Host` made every request this machine's). `devSignIn` refuses to start in an app whose `links`
914
+ origin is public (a proxy that adds no header, as nginx's `proxy_pass` as it comes, can't be
915
+ told from this machine). `googleSignIn` declares `google` (the page shows its button for the
916
+ first client id); the new `devSignIn` plugin declares `dev` (by name or email, this machine
917
+ only). The orgs host signs in with whatever its directory declares (`signIn: { at: directory }`
918
+ for its orgs' pages). `describe()` marks unrecorded Actions (`record: false`).
919
+ - **Visitors** (the contacts plugin's web lines, `resources.web.lines.<name>`: `in`, `agent`,
920
+ `title`, `days`, `limits`, `files`, `transcribe`, `org`; `web.caller`, as MCP's; and the app's
921
+ `links` secret, which visitors' cookies are signed with): a page asking to come in by a line
922
+ (`{ line }`) that isn't anyone becomes a visitor, its browser keeping a signed secret in a
923
+ `SameSite=Strict` cookie (`__Host-visitor` wherever it's Secure) that's the same visitor for
924
+ `days` (30). Coming in makes and keeps nothing, in memory either: the visitor the server issues
925
+ carries its line (`web`) and its networks' tags (`from`: HMACs, never the address), which its
926
+ messages are counted by. Its first message (`chat.send`, naming no chat) makes its contact
927
+ (`via: "web"`), its own chat in the line's space and its record (`contact_visitor`), through
928
+ chat's new `contactSend` hook (`contact.sending`). Limits, each a plain 429 for that caller
929
+ alone, by address held for each network it's in (`networksOf`: an IPv4 address and its /24, an
930
+ IPv6 /64, its /56 and its /48, each as many callers' worth as it counts, `SCALE`: 8, 4 and 8):
931
+ new visitors an hour from one address (`ipVisitorsPerHour`, 20), and as many first messages,
932
+ counted by the address the app's front says, else the socket's (with neither, nobody's let in,
933
+ said loudly; all from one private address, said once); a visitor's messages a minute and a day
934
+ (`perMinute` 10, `perDay` 200), its address's (`ipPerMinute` 30, `ipPerDay` 1,000), the line's a
935
+ minute (`linePerMinute` 300, of which newcomers, who hadn't spoken before the minute, send
936
+ `newcomersPerMinute` 200: the rest is kept for conversations going on), and new visitors who
937
+ speak an hour (`visitorsPerHour`, 600), each place taken in one conditional write, so messages
938
+ at once can't pass a limit. A line's `budget`: what its visitors' turns may be charged a day
939
+ (UTC), as the usage ledger prices them (`usage.quote`, through `modelUse`); past it, its
940
+ visitors' messages wait for tomorrow. A line's `challenge`: an Action of the app's a newcomer
941
+ passes first (a CAPTCHA's check, given what the page sent,
942
+ `web({ arrive: { line, challenge }
943
+ })`). Files only on a line that takes them
944
+ (`files: { count, bytes }`, 1 of 5 MB unless said), each with a media type; audio transcribed
945
+ only with `transcribe: true`. `contact.forget` ends a visitor's cookie and its browsers'
946
+ connections at once (its record stays, ended, until its cookie's time is past), and so does
947
+ removing its line. Every ten minutes (`contact.prune`) what's past goes: counters, records past
948
+ their time, a contact made for a first message that never went in. A visitor fetches its own
949
+ chat's files (`file.content` is open to contacts, under the rules), and finds its chats by its
950
+ own memberships (`member` by its key, `contact:<id>`). Checked at start (a challenge that's no
951
+ Action, a budget without the usage plugin).
952
+ - **What a contact reads:** never an agent's private steps (each tool's input and output), a tool
953
+ call being written, a step's words before it's known to be an answer, why a model's call broke
954
+ (the provider's words), nor a tool's files. The access rules' `shared` resource takes `contact`,
955
+ a filter a contact acting itself (never the agent working for it) reads and writes through:
956
+ chat's messages without `private` or `toolCalls`; `live` without a tool call or a `retry`, and
957
+ with words only of a turn that offers no tools (`open: true`, every step an answer; of one that
958
+ does, a contact sees only that the agent is at work); files without a tool's (`private`, as
959
+ OpenAPI's are now). A turn stopped mid-step keeps its words only when they were surely an
960
+ answer. A contact's own reads from its browser name what of its own they read (its chat:
961
+ `thread`, or `_id`, 32 at most, its read 2 KB of JSON at most: `CONTACT_READ`; of spaces and
962
+ memberships, only its memberships by its key), else they're refused and never watched; it reads
963
+ no `aggregate` or `nearest` directly. The voice relay reads its call as the line's agent working
964
+ for the caller (only what both may read), and says what a web visitor reads: answers, never a
965
+ step's words before its tools, and words as they're written only of a turn that offers no tools
966
+ but those called beside an answer (a tool's new `aside: true`, as the voice plugin's `end_call`
967
+ is): one with other tools says its answer once it's whole. A contact's message says 4,096
968
+ characters at most (`CONTACT_TEXT`), never what sent it (`via`), and never titles its chat or
969
+ lets an agent rename it (`title`, `renamable`); a file's media type is one (`MEDIA_TYPE`, 127
970
+ characters at most, `MEDIA_TYPE_LENGTH`), which the agent is told. WhatsApp, voice and MCP
971
+ contacts never held a browser connection: they read only through the app's own code.
972
+ - **Security:** `/connect`, sign-in and sign-out (and the orgs host's own POSTs) answer only the
973
+ app's own page: an `Origin` that isn't this host (as the front says it), over https off this
974
+ machine and its LAN, or a cross-site `Sec-Fetch-Site`, is a 403, so another site can't make its
975
+ visitors arrive here or sign anyone in. Bodies there are JSON objects of 16 KiB at most; route
976
+ bodies are refused (413) as soon as `content-length` is over 10 MB, and read no further than
977
+ that while streaming. What either host answers in JSON is `cache-control: no-store`, and what
978
+ goes wrong says only its public words, with its code's status (500s are logged). So does a
979
+ route's Action that refuses (`forbidden`, `invalid`, `not_found`, `unauthorized`: its status,
980
+ and its words only when public). The caller's address parser (`callerFrom`, `callerProblem`,
981
+ `CallerSettings`, and `countedOf` for a socket's) moved from MCP into the runtime, so MCP and
982
+ web lines read callers one way. `mcp.call` refuses a contact without an MCP line (a web
983
+ visitor), naming a line or not.
984
+ - **Limits on browsers:** 30 tickets per actor a minute (`createTickets({ perMinute })`; past them
985
+ `/connect` is a 429 with `retry-after`, and `issue` throws `too_many`), 16 browsers (worker ids)
986
+ per actor, each on two connections at most (one coming while the last goes), 512 watched reads
987
+ per connection (past them, `too_many`; those watched keep going), 16 resume credentials per
988
+ actor (the oldest dropped), each working once, for the browser it was given to. A connection
989
+ counts from the moment it's let in (Welcome) until it goes, ready or not, and one that doesn't
990
+ say it's ready within 10 seconds is closed (the owner's Hypervisor `readyTimeoutMs`, for every
991
+ worker: none starts anything before Ready). A contact far less: 2 browsers, 32 watched reads on
992
+ each connection; and contacts together 16 connections from a network (as many times as it
993
+ counts: by the tags of `actor.from`, `scaleOf`), 300 on a web line, 400 in all: well under what
994
+ a listener holds (`LISTENER`, Oxian's Node adapter's 1,000), so people find room. Runtimes on
995
+ one listener count their contacts together with one `contactsPool()`: the orgs host gives each
996
+ org one (`open`'s `given.browsers`, for `createRuntime({ browsers })`). The limits are settings:
997
+ `createRuntime({ browsers })` (`BrowserLimits`: `sockets`, `watches`, `resumes`, `contact`,
998
+ `network`, `line`, `contacts`, `pool`), checked at start; people never count against contacts'.
999
+ A contact's browser is told a failure's words only when they're for anyone (`public`), as MCP's
1000
+ callers are: never a provider's (a transcription's raw error said a key's prefix). Tickets and
1001
+ resumes expire on a timer (`runtime/expiring.ts`), never by looking through them all on each one
1002
+ issued.
1003
+ - **Cookie names, and a one-time sign-out:** every entrance's cookie is the host's alone unless it
1004
+ says `hostOnly: false`: identity's session is `__Host-session` wherever it's Secure, and the
1005
+ orgs host's own cookies (`dir`, `org`, `s_<org>`) and every org's entrances' are `__Host-` too,
1006
+ so no other host under the domain (a preview's page) can set one to make a browser someone it
1007
+ chose. The names change: every browser signed in before is signed out once, on upgrade, and what
1008
+ it held under the old plain name is ended where it lives and cleared (on `/connect` and on
1009
+ sign-out), so a version rolled back that reads the plain names finds no one there. Stripping
1010
+ `Domain` from a preview's Set-Cookie (as previews do) doesn't stop that by itself: a preview's
1011
+ page script can still set `document.cookie` with `Domain=<parent>`; the `__Host-` names are what
1012
+ stop it.
1013
+ - **Signing out, and erasing a contact, end their browsers** (`runtime.disconnect(actor)`, and
1014
+ `ctx.disconnect` from an Action): their resume credentials go and each connection closes. A
1015
+ browser comes back only with a new ticket: the client now asks for one when its way back is
1016
+ refused (it used to stop, until its page reloaded), which only a cookie that's still someone
1017
+ gets; another device of the same person comes straight back. A connection let in before (not yet
1018
+ ready) is never ready, and tickets handed out to them not yet used are no one's (`Tickets.end`,
1019
+ which sign-out calls). An org's own (`bound:`) executor can't end anyone's browsers; plugins are
1020
+ trusted code, as with `cancel`. With the orgs host, sign-out ends every open org's session the
1021
+ browser holds.
1022
+ - **Migration:** `serveRoutes({ runtime, … })` is `serve({ runtime, … })` with no `code`.
1023
+ `google: { clientId }` and `dev: true` are the plugins' resources now: add `googleSignIn` (with
1024
+ the `google` resource) and `devSignIn` to the runtime's plugins (the directory's, with orgs). A
1025
+ listener of the app's own (`Deno.serve`) says where each request came from
1026
+ (`setClientAddress(request, info.remoteAddr.hostname)`, from `copilotz/web/server`), and so do
1027
+ tests that sign in with dev sign-in through a hand-made `Request`
1028
+ (`setClientAddress(request, "127.0.0.1")`); `serve` and `listen` do it themselves. Web lines
1029
+ need the `links` resource. `whomOf(runtime, { cookie?, front? })` (was
1030
+ `whomOf(runtime,
1031
+ cookie?)`), and `setCookie` takes the request's site
1032
+ (`siteOf(request, front)`). An entrance whose cookie something else under the domain reads says
1033
+ `hostOnly: false`. A visitor's page finds its chat through its memberships (`member`
1034
+ `{ member: "contact:<id>" }`), not by reading every `thread`. An app that ran this branch
1035
+ before: visitors' cookies (their secret's format and key changed) and links signed before
1036
+ upgrading don't open; visitors are newcomers once.
1037
+ - **The runtime, for the web host's limits** (from the second security review of the one host):
1038
+ - **The in-memory store reaches a document by its id at once.** A filter that keeps to ids (`_id`
1039
+ a string, `$eq` one, `$in` strings, also in a top-level `$and`) looks them up, rather than
1040
+ copying and scanning the whole collection on every read and write; other reads scan without a
1041
+ copy, and stop at a `limit` without a `sort`. The `durable: false` collections (`live`, the web
1042
+ lines' counters, billing's `room`) share that store and its one transaction queue, so their cost
1043
+ no longer grows with what they hold. Results come in the same order.
1044
+ - **Links are signed with a key of their own** (`keyOf(secret, use)`, HKDF-SHA256 of the `links`
1045
+ secret; web visitors' cookies use another), never the secret itself, and the `links` resource
1046
+ takes the one before it (`previous`), while what it signed should still open: a link until it
1047
+ expires, a visitor's cookie (the same contact) while it lasts. **Breaking:** links signed before
1048
+ upgrading (an hour's) no longer open. A secret that leaked is never given as `previous`: it goes
1049
+ at once.
1050
+ - **A rule hears a browser's own reads** (`Guard`'s `direct`, asked with the read's filter before
1051
+ it's watched) and may refuse one it won't watch, throwing. Plugins' `check` sees every Action
1052
+ (`merged.actions`). A contact reads its own memberships by its key (anyone else, memberships as
1053
+ far as they reach: a key `within` a space, that space's).
1054
+ - **An aggregate with its own `$match` works under a rule:** the rule's filter joins it in one
1055
+ `$match`; before, every such read failed `invalid`.
1056
+ - **Who calls, by network:** `networksOf(counted)` (an address's wider networks, each with its
1057
+ prefix and `scale`), `SCALE`, `scaleOf(tag)`, `privateAddress(address)`.
1058
+ - **From the third security review of the one host:**
1059
+ - **A watched read is matched only against changes it could concern.** A read whose filter names
1060
+ values of a field of its own (a string, `$eq`, `$in` of up to 256 strings: a chat's `thread`, an
1061
+ `_id`) is filed under them; a change to a document holding none of them (before or after, in
1062
+ that field or an array there) skips it before any matching. The owner's read cache does the same
1063
+ for the queries it keeps. Results are exactly as before. New in the reference
1064
+ (`runtime/mongo.ts`): `namedBy(filter)`, `valuesAt(doc, field)`.
1065
+ - **A web line's budget holds, and fails closed.** Each visitor's message holds an estimate of its
1066
+ turn's cost as it goes in (the most one of the line's visitors' model calls cost lately; before
1067
+ any is known, the rest of the day's budget, so one turn goes at a time until a cost is),
1068
+ released as its first call is charged, or lapsing in two minutes: messages at once can't all
1069
+ pass a budget only one fits. Before each model call (and transcription) for a visitor, a spent
1070
+ budget refuses it, for good, so a turn's tool loop stops there: the models plugin's `modelUse`
1071
+ listeners may now refuse a call before it's made (`may`, its refusal `final`; `mayUse`,
1072
+ `ModelCall`). Use the ledger prices at nothing (no price for the model, or pricing failing)
1073
+ closes the line for the day, said in the log. New: `contact.budget`; `contact.spent` takes
1074
+ `contact`, and `unpriced`.
1075
+ - **Web visitors:** a secret dated more than 5 minutes ahead is nobody's. An erased visitor's
1076
+ record is kept as long as any cookie made before could last (400 days, the most a line may say,
1077
+ `MOST_DAYS`), so raising a line's `days` can't bring an erased visitor back.
1078
+ - **MCP's ids** (contacts, chats, users, addresses) are HMACs with the `mcp` key of the app's
1079
+ secret (`keyOf`), never the secret itself; with `links.previous`, a conversation made under the
1080
+ one before goes on as itself (the new system-only `mcp.conversation`; `mcp.call` takes the chat
1081
+ the route found, `thread`). **Breaking:** every MCP conversation from before is new once (no
1082
+ deployment uses the MCP interface yet).
1083
+ - **MCP widgets: an app's web Views drawn inside ChatGPT and other MCP Apps hosts** (#165). A line's
1084
+ tool can name a web View (`mcp.lines.<name>.tools.<tool>.widget`); the web host serves one
1085
+ `ui://<line>/widget-<version>.html` template per line (`webServer({ widgets: widgetsOf(...) })`),
1086
+ and a result carries the View, a snapshot of what it reads, and a short-lived grant in `_meta`
1087
+ only, never in what the model reads. Widget-only tools (`visibility: ["app"]`, `action`) refuse
1088
+ calls without a grant for that conversation. The widget host is `copilotz/web/widget`
1089
+ (`widget({ plugins, root })`), speaking MCP Apps' postMessage bridge with ChatGPT's
1090
+ `window.openai` as fallback.
1091
+ - **A tab comes back after a network flap.** A new connection on a worker id that already has two
1092
+ closes the oldest instead of being refused (a Welcome lost on the way no longer locks the tab
1093
+ out), and a client that was in once keeps re-enrolling, longer apart, when it's refused.
1094
+ - **A model the app doesn't pay for is checked against a web line's budget too** (`paid`-tagged ones
1095
+ skipped `may`, so a visitor's tool loop could go on past a spent day).
1096
+ - **A web line's budget loses no charge under load:** `charge` is one atomic write (`$inc` the
1097
+ spend, `$unset` the hold), and `hold` retries with jitter until a deadline instead of eight
1098
+ immediate tries (no more false "busy"). One call costing more than the whole budget no longer
1099
+ closes the line for 30 days: with nothing held, a message holds at most what's left.
1100
+ - **Voice: a line's `waiting` phrase** (`voice.lines.<name>.waiting`, none by default) is spoken
1101
+ once when a turn starts running tools before any answer, so a caller doesn't hear silence. Never
1102
+ for an answer without tools, nor for `end_call`.
1103
+
1104
+ ## 1.0.0-rc.22 — 2026-11-04
1105
+
1106
+ **A security release: upgrade now.** Before it, a Google sign-in wrote the new session's secret to
1107
+ the event log, and connecting a computer wrote the computer's secret (the first entry below). After
1108
+ upgrading, every deployment should:
1109
+
1110
+ 1. **End every session made before the upgrade:** delete the `credential` documents of
1111
+ `kind: "session"`, so every signed-in person signs in again. Keys are unaffected.
1112
+ 2. **Scrub the old events that hold these secrets**, from the store and from anything that copied it
1113
+ (backups, exports, exporters): the `action.started` and `action.completed` events of
1114
+ `google.sign-in`, `computer.code`, `computer.enrollment` and `computer.work`, and the
1115
+ `action.started` events of `session.end`, `computer.admit`, `pool.admit` and `pool.serve`.
1116
+ 3. **Reconnect computers whose log may have been read:** forget each one (`computer.forget`) and
1117
+ connect it again with a new code. A computer's secret can't be rotated yet.
1118
+
1119
+ - **Security: a Google sign-in no longer writes the session's secret to the log.** `google.sign-in`
1120
+ was a recorded Action, so the event log kept its input, the Google ID token, and its result,
1121
+ `{ person, session }`, with the new session's secret in plain text. Anyone who could read the log
1122
+ (a database reader, a backup, an export, an exporter) could sign in as that person, staff
1123
+ included. The identity plugin keeps secrets only as hashes, and this Action undid that. It is now
1124
+ unrecorded (`record: false`), like `session.start`. So is `session.end`, whose input is the secret
1125
+ being ended. Found by a security review.
1126
+ - **Computers' secrets are kept out of the log too**, found by checking every Action for the same
1127
+ mistake. These are now unrecorded: `computer.admit`, whose input is a computer's secret (or the
1128
+ code connecting it) on every connect; `pool.admit`, whose input is a pool VM's identity token;
1129
+ `computer.code`, whose result is the code that connects a computer as its person; and
1130
+ `computer.work`, whose input and result are what a person types and sees in their shell, files'
1131
+ contents and the env values they pass. `computer.enrollment`'s result (`code`) and
1132
+ `pool.serve`'s `assign.code` and `assign.secret` (also when forwarded by `remotePool`) are
1133
+ private: still recorded, so a retried wake gets the same code, but the code isn't logged.
1134
+ - **Deployments should end every session made before this fix.** Delete the `credential` documents
1135
+ of `kind: "session"`, so every signed-in person signs in again. Keys are unaffected. A
1136
+ computer's secret can't be rotated yet: where the log may have been read, forget the computer
1137
+ (`computer.forget`) and connect it again with a new code.
1138
+ - **Old events still hold these secrets until they're scrubbed**, from the store and from anything
1139
+ that copied it: the `action.started` and `action.completed` events of `google.sign-in`,
1140
+ `computer.code`, `computer.enrollment` and `computer.work`, and the `action.started` events of
1141
+ `session.end`, `computer.admit`, `pool.admit` and `pool.serve`. Ended sessions, used codes and
1142
+ expired tokens prove nobody, but scrub them anyway.
1143
+
1144
+ - **MCP: a conversation whose first call an owner stopped no longer ends for good.** A new
1145
+ conversation's chat is made (`chat.open`) and then shared with its contact (`member.set`), two
1146
+ writes; an owner that stopped between them (a deploy, which doesn't wait for running calls, or a
1147
+ crash) left a chat its contact couldn't reach, which is how a contact its people took out of its
1148
+ chat looks, so every later call said "This conversation with the app is over". A new
1149
+ conversation's opening is now noted with its first call's counts (`mcp_opening`, durable, no
1150
+ events, gone with its receipts after 15 minutes) and dropped once the chat is shared: a chat out
1151
+ of its contact's reach, with its opening noted, goes on as new (asked again within 15 minutes, its
1152
+ contact not erased); without one, it stays over. Erasure's tombstones are read first, as before.
1153
+ This is what failed the MCP restart test on slower machines (macOS CI); the test now waits on what
1154
+ it watches for, not on fixed times, and a new one stops an owner at each of a first call's writes.
1155
+ - **Contacts: a start cut short after a contact's record, before sharing it with the contact, is
1156
+ finished when it's started again** (`contact.start`, on WhatsApp, voice and MCP): the contact, and
1157
+ the agent working for it, read the record again. A known contact was returned as it was.
1158
+ - **Maintenance SQL can run as the store's own role, told so:**
1159
+ `postgresStore({ url, schema, maintenance: { storeRole: true } })`, beside a role of its own
1160
+ (`maintenance: { url }`; both at once stop the store from opening, and neither still refuses raw
1161
+ SQL on a server, its message naming both). Anyone holding the maintenance key can then do whatever
1162
+ the store's role can: drop or truncate its tables, delete from the log, read every schema it
1163
+ reaches. Only the allowlist check is skipped; the statement filter, a connection of its own for
1164
+ each statement over the extended protocol, the timeouts, caps and `connections`, fenced writes in
1165
+ the owner with their `maintenance.sql` event, the rollback of what changes `meta` or makes a
1166
+ trigger, and the emptied cache all hold. Still refused, before each statement and after a write: a
1167
+ role that is or may become a superuser, a member of `pg_execute_server_program`,
1168
+ `pg_read_server_files` or `pg_write_server_files`, one with `CREATEROLE` before PostgreSQL 16, or
1169
+ one that may run the server's file functions (`pg_read_file`, `lo_import`, `lo_export`…). Cloud
1170
+ SQL's `postgres` user passes from PostgreSQL 16. An orgs host's orgs still don't get the plugin.
1171
+
1172
+ ## 1.0.0-rc.21 — 2026-11-04
1173
+
1174
+ - **Security: a burst of calls no longer drops an executor's connection** (Oxian 0.23.3). About 35
1175
+ concurrent calls on one executor (around 20 holding transactions) filled Oxian's queues, and the
1176
+ connection was lost with every job in flight on it (`executor_lost`): a remote DoS on any app with
1177
+ a public entry point, flagged by a security review. Full queues now hold senders back instead.
1178
+ Long-lived workers also move to a fresh connection before one's streams run out, instead of
1179
+ failing calls with `capacity`; Copilotz treats the move as the same worker (#154).
1180
+ - **MCP: models outside the app call its tools** (the new `mcp` interface; widgets come next). An
1181
+ app declares lines in `resources.mcp.lines.<name>`, each an MCP server at `POST /mcp/<name>`
1182
+ (`/o/<org>/mcp/<name>` under many orgs): the space its chats live in (`in`), the tools it offers
1183
+ (`tools`, by name: only these, never an agent's; each needs its `tool:<name>` View, else it isn't
1184
+ offered, and one whose `offer` says no to a contact isn't either), how each is shown (`title`,
1185
+ `annotations`, ChatGPT's `invoking`/`invoked` lines, 64 characters), who calls (`client`, the
1186
+ steps' sender), `title`, `version`, `instructions`, `handles`, `origins`, `org` and `limits`; and
1187
+ plugin-wide, how it knows a caller's address (`caller`) and calls at once in the process
1188
+ (`atOnce`, 8). Checked at start; it needs the `links` resource's secret.
1189
+ - **The protocol:** Streamable HTTP and JSON-RPC 2.0, written in the plugin, answered as JSON,
1190
+ with no session (GET and DELETE are 405; no `Mcp-Session-Id`). MCP 2026-07-28 (per-request
1191
+ `_meta`, `server/discover`, the `MCP-Protocol-Version`, `Mcp-Method`, `Mcp-Name` and
1192
+ `Mcp-Param-*` headers checked against the body: -32020) and 2025-11-25, 2025-06-18 and
1193
+ 2025-03-26 (`initialize`; batches only for 2025-03-26, 10 messages at most, one after another).
1194
+ Unknown versions are -32022 with the supported ones. Every tool says `noauth`, and all four of
1195
+ MCP's hints. A request with an `Origin` the line doesn't name is 403; input nested past 64
1196
+ levels, or holding a `$blob`, is -32602.
1197
+ - **Conversations:** ChatGPT's `_meta["openai/session"]` (with `openai/subject`) names one; a
1198
+ client that names none gets a `chat` handle (128 random bits, an optional input on every tool,
1199
+ said once, at the end of the first answer), or with `handles: false` is refused. Each is a
1200
+ contact (`via: "mcp"`) in a chat of its own in the line's space, its ids HMACs of the key with
1201
+ the `links` secret: no table. A handle the app never gave is refused; a chat whose contact its
1202
+ people took out, or that was erased (`contact.forget`, `chat.erase`: a tombstone, `mcp_closed`,
1203
+ no personal data), is over for good.
1204
+ - **A call** is `mcp.call`, called by the route as the conversation's contact (an actor only the
1205
+ route makes: `{ kind: "contact", id, mcp, client }`, which the Action's `allow` asks for). It
1206
+ runs the tool through chat's runner, writes a private step from the line's `client` in the chat
1207
+ (in its space as it is now; only input that fit the tool's schema, else a note of what was
1208
+ sent), and answers with the tool's View, read as the contact, never its output as it is. Only a
1209
+ public error (below) says its message. `ctx.callId` is the step's id (the call's,
1210
+ `mcp:<thread>:<hash of the request id>:<hash of tool and input>`, and when it began), the same
1211
+ however often a call cut short runs again; a new call has a new one. A tool that changes things
1212
+ keeps a receipt (`mcp_receipt`, durable, no events, gone after 15 minutes) by what it asks in
1213
+ its conversation (tool and input), whatever the request's id: the same call while it runs waits
1214
+ for that run; asked again, under any id, within two minutes of its end it's answered what it
1215
+ said (kept up to 8,000 characters), beginning with a line saying it wasn't done again (so a
1216
+ second, deliberate purchase isn't taken for done); begun and never done (stopped, an owner
1217
+ restarted, or failed by accident and told to try again), it runs again as the same step, with
1218
+ `retry` and the same `callId`. A public refusal is an answer, and is said again. A read-only
1219
+ tool always runs.
1220
+ - **Limits** (`limits`): calls at once in the runtime (`mcp.atOnce`, 4: each org's own under the
1221
+ orgs host), on the line (4: an executor's connection takes about that many tools that change
1222
+ things at once until Oxian's send backpressure is released), from one caller's address (2; a
1223
+ batch's every call counts) and in one conversation (2), past any of which it's 503 busy, -31000
1224
+ (a batch, an error for each of its requests; a batch with more tool calls than `addressAtOnce`
1225
+ is refused, -32600); how long the route waits for an answer (`timeout`, 20 s: then the model is
1226
+ told it's still working, as long as few calls are, `lateAtOnce` 2 on the line and
1227
+ `addressLateAtOnce` 1 from an address, else it's stopped) and a call may run (`stop`, 60 s: then
1228
+ it's stopped; tools should honour `ctx.signal`); a request's body (64 KiB), calls a minute by
1229
+ conversation (30), by caller's address (60) and on the line (600), new conversations an hour by
1230
+ user (30, ChatGPT's `openai/subject`), by address (20) and on the line (600), and an answer's
1231
+ length (100,000 characters). Only calls taken count, and a new conversation once it's made. The
1232
+ address is believed only as the app's front says it (`caller`: its header, with the front's
1233
+ secret, a request without which is refused, or the proxies' `hops`, which a list header such as
1234
+ `x-forwarded-for` needs); IPv6 is counted by its /64, IPv4 written as IPv6 as IPv4, and an
1235
+ address that can't be read with every other such call, as one. Ranges in `caller.exempt`
1236
+ (OpenAI's) aren't limited by address.
1237
+ - **A failure can be public** (`failure(code, message, { public: true })`, `isPublic`): its message
1238
+ is for any caller, even a model outside the app over MCP, which no other error's words reach. It
1239
+ stays public from job to job. A code alone isn't public: libraries' errors have codes too.
1240
+ - **Chat's tool runner is in its contract** (`runTool`, `toolText`): a tool's input checked, run,
1241
+ and its result read as agents read it, as a turn does; the turn uses them. Input that doesn't fit
1242
+ a tool's schema is a public failure, and the runner says so (`unchecked`). `Tool` gains `title`
1243
+ and `annotations` (`readOnly`, `destructive`, `idempotent`, `openWorld`).
1244
+
1245
+ - **Phone calls: the `voice` plugin** (in `copilotz/plugins/interfaces`), on Twilio's
1246
+ ConversationRelay. The app declares its lines (`resources.voice.lines.<name>`: `in`, `account`,
1247
+ `token`, `origin`, and optionally `agent`, `language`, `tts`, `voice`, `stt`, `texts`, `gap`,
1248
+ `trustCallerId`, `keys`, `limits`, `org`), each a Twilio number open to anyone who calls; their
1249
+ settings are checked at start.
1250
+ - **Twilio's webhook** is `POST /hooks/voice/<line>` (the `voice.hook` route): checked against
1251
+ `X-Twilio-Signature` with the line's auth token. A caller the line's managers blocked isn't
1252
+ taken (`voice.block { thread, days? }`, kept by the number's hash; `voice.unblock { block }`
1253
+ lifts it by its id, whatever is left of the call); then a call is taken within its caller's
1254
+ limits (`callerAtOnce` 1, `callerPerDay` 10; withheld numbers, together, their own
1255
+ `hiddenAtOnce` and `hiddenPerDay`, by default the line's `atOnce` and half its `perDay`), then
1256
+ the line's (`atOnce` 2, `perDay` 50 calls that went on in any 24 hours), or rejected as busy
1257
+ (`<Reject reason="busy"/>`: nothing is spent). A call taken gets TwiML that opens the line's
1258
+ socket (`<Connect><ConversationRelay>`, the line's language, greeting and voice) with a ticket
1259
+ good once, for a minute; `POST /hooks/voice/<line>/over` hears the relay end and hangs up.
1260
+ - **The socket** (`GET /hooks/voice/<line>/relay`, a `serve` route): its signature checked, its
1261
+ ticket used, then Twilio's `setup` must name the call the ticket was for. The caller is a
1262
+ contact (`via: "voice"`) in a chat of their own in the line's space, answered by the line's
1263
+ agent (a line whose agent doesn't answer there fails the call). A number isn't proof of who's
1264
+ calling: calling back goes on in the same contact and chat (until the line's `gap`, 12 hours,
1265
+ and never into a chat with another call on, checked in the write that puts the call live) only
1266
+ when Twilio verified the number (`StirVerstat` `TN-Validation-Passed-A`) or the line sets
1267
+ `trustCallerId`; otherwise, and for withheld numbers (Twilio's placeholders, `+266696687`,
1268
+ `+7378742833` and the like), each call is a new contact.
1269
+ - **What's said:** what the caller says goes to the agent at once, one prompt after the other; a
1270
+ prompt said while the answer to the one before is still being written stops that turn, and the
1271
+ next turn reads both (Twilio already waits for the caller to finish: a quiet window would add to
1272
+ every answer). What the agent writes is said as it writes it, word by word (a step's words
1273
+ before its tools, then its answer), through the `voice_call` View read as the caller, and only
1274
+ of the turns the caller's own words started: a staff member's turn in their chat isn't said.
1275
+ Speaking over it (`interrupt`) cuts what was being said, and the agent is told what was heard
1276
+ (the `voice` context). Keys pressed (with `keys`) come as a tap, `keys:<digits>`.
1277
+ - **What a call may cost** (`limits`): an answer that failed, or took longer than `turn` (25 s,
1278
+ then stopped), says the line's `failed` text, never the error; one past `said` characters
1279
+ (1,200) is cut at a word and stopped; `idle` (90 s) of silence, a call past `call` (600 s) or
1280
+ past `turns` prompts (30) says `bye` and ends it. The goodbye waits 15 seconds at most for
1281
+ what's being said; a call is over by its hard end (`call`, the goodbye and closing), and holds
1282
+ its place among the line's calls until then. A call that ends stops its turn, and any turn of it
1283
+ that starts just after. The agent ends a call too, once its goodbye is said (the `end_call`
1284
+ tool, offered to whoever answers a call while it goes on). Twilio's `end` says why
1285
+ (`handoffData`).
1286
+ - **The phone is a medium:** messages are said through their `message` View (renderer `voice`: the
1287
+ words without Markdown, a link's words, a web address's site), which an app may replace.
1288
+ - Each call is a small record (`voice_call`, no events: when, how long, why it ended, whether the
1289
+ number was verified; the caller's number private), and `voice_phone` keeps each verified
1290
+ caller's contact and chat. Erasing a contact erases its number from both; erasing a chat
1291
+ (`chat.erase`, `contact.forget` with `chats`) erases what the calls kept of it. Calls' records
1292
+ go after the plugin's `keep` days (30, at least 1: `voice.prune`, daily), once they're over: a
1293
+ call going on is never pruned. Agents working for a caller are told it's a phone call, and that
1294
+ the number isn't proof of who they are (the `contact` context).
1295
+ - It needs a host that takes a route's socket (`host.upgrade()`: `serveRoutes`, or `serve`, from
1296
+ `copilotz/web/node`).
1297
+
1298
+ - **Maintenance endpoints** (the new `maintenance` plugin, in `copilotz/plugins/interfaces`): HTTP
1299
+ under `/maintenance/` for an app's operators when they can't reach its database. A key (`key`, or
1300
+ several in `keys` to rotate one; 32 random characters at least, a weak one stops the app),
1301
+ compared in constant time; without one, every request is unauthorized. Requests act as the
1302
+ maintenance actor (`{ kind: "maintenance", by }`), whose Actions run as the system on the record,
1303
+ and each writes a line (`log`) before it runs. An orgs host's orgs don't get it.
1304
+ - `POST /maintenance/sql`: one read-only statement, with `params`, at most `limit` rows and
1305
+ `bytes`, cut off after `timeout`.
1306
+ - `POST /maintenance/collections/<collection>/<op>`: insertOne… deleteMany, find… aggregate,
1307
+ through the owner's write path: schema-checked, recorded, cached, heard by Processors.
1308
+ - `POST /maintenance/queries/<collection>.<name>`: a collection's named query, the body its
1309
+ params, read as the system.
1310
+ - `POST /maintenance/sql/write`: one statement that writes, run by the owner alone among its
1311
+ writes, fenced by its epoch, with a `maintenance.sql` audit event in the same commit; then the
1312
+ owner empties its read cache, runs observed Views again and re-reads its timers. A statement
1313
+ that changes `meta` (the epoch, Processors' positions) is rolled back. An `Idempotency-Key`
1314
+ makes it safe to send again.
1315
+ - `GET /maintenance/blobs/<id>`: a blob's bytes, as a download.
1316
+ - **SQL on the store port, for maintenance only:**
1317
+ `Store.inspect?(sql, params?, { limit, timeout })` (now SQLite's too), a transaction's
1318
+ `execute?(sql, params?)` and `transaction(…, { maintenance })`. Both run exactly one statement: a
1319
+ second, or one that ends the transaction or changes the connection (`COMMIT`, `SET`…), is refused
1320
+ (PostgreSQL ran every statement of an unparameterized `inspect` before; PostgreSQL's line comments
1321
+ end at a CR too). `runtime.maintenance` is the owner's way to them; plugin code has none. The
1322
+ cache gains `clear()`, observers `stale()`.
1323
+ - **PostgreSQL servers:** raw SQL runs only as a role of its own
1324
+ (`postgresStore({ maintenance: { url, connections } })`), which must hold exactly maintenance's
1325
+ grants: no attribute but LOGIN, membership in no role (but Cloud SQL's IAM marker, itself held
1326
+ to the same), no settings of its own, nothing owned (a large object neither), nothing granted
1327
+ outside the store's schema, `CREATE` nowhere, no large object, table or column of another's to
1328
+ read, nothing on the store's tables beyond what it needs, no `SECURITY DEFINER` function to run,
1329
+ no `dblink` or `postgres_fdw`, no trigger on the store's tables: checked before each statement
1330
+ and again after a write, in its transaction, reading only `pg_catalog`'s names. `ALTER ROLE`,
1331
+ `DO` and `LOCK` don't run; a password literal is kept as `PASSWORD '***'`. Each statement on a
1332
+ connection of its own, over the extended protocol, closed after; at most 2 at once, else `busy`.
1333
+ A read stops fetching before a row would pass its bytes. PGlite runs it as its one session, and
1334
+ discards what it left there.
1335
+ - **SQLite:** the store names its tables in `main`, so a temporary object can't stand in for them
1336
+ (a write that leaves one, or a trigger, is rolled back); a read runs in a process of its own
1337
+ (`deno`, `node` or `bun` itself, never a compiled app; an empty environment; on Deno and Node,
1338
+ read access to the database's files alone), killed at its timeout. Else, on the reading
1339
+ connection, a pragma only from those that only read, said once and on each answer
1340
+ (`inline: true`).
1341
+
1342
+ - **Security: a forged blob reference is refused, never loaded.** Large strings are kept as blobs
1343
+ and documents hold `{ $blob, size, type }` in their place; the owner loaded any object with a
1344
+ string `$blob` on every read. So an Action that stores what it's given (a tool's input, a
1345
+ webhook's body) could plant one: an id no blob has made every read of that document fail (a chat
1346
+ that can't be read or erased, Processors giving up on its events); another document's hash pulled
1347
+ that content in; and a path or a name read a file (`fileBlobs`) or any object in the bucket
1348
+ (`gcsBlobs` without a prefix).
1349
+ - What plugin code writes (documents, updates, upserts' filters, edges, events, records, timers'
1350
+ inputs, Action results) and what an Action is called with may hold no `$blob` key: `invalid`.
1351
+ The owner checks it as it walks what it offloads, so it costs no extra pass.
1352
+ - No part of an update's field path may start with `$` (as MongoDB refuses) or be `__proto__`
1353
+ (`invalid`): `{ $set: { "bio.$blob": … } }` made a reference out of plain strings, and on Node
1354
+ and Bun `{ $set: { "__proto__.x": … } }` set `x` on every object's prototype (Deno has no
1355
+ `__proto__`). `constructor` and `prototype` are fields like any other: paths read and make a
1356
+ document's own fields only, so a filter on `constructor` no longer finds `Object` in every
1357
+ document.
1358
+ - A path ends at a blob reference as it does at a string, so a large string is treated like a
1359
+ small one (`$set: { "text.note": 1 }` replaced the reference's insides, losing the text), and at
1360
+ any other object with a `$blob` key, so no update turns a planted one into a reference.
1361
+ - An aggregate's `$group` can't name a field `$…` either: `_id: { $blob: …, size, type }` built a
1362
+ reference from strings, which a browser's own read then loaded.
1363
+ - The API's event stream sends a call's result whole; one over 16 KiB went as its reference.
1364
+ Published events (`runtime.subscribe`) have `full()`: the event with its large values.
1365
+ - Only an exact reference loads a blob: the keys `$blob`, `size` and `type`, a `sha256-<64 hex>`
1366
+ id, a numeric size and a string type. Any other object is data.
1367
+ - Every blob store (memory, SQLite, PostgreSQL, `fileBlobs`, `httpBlobs`, `gcsBlobs`) takes only a
1368
+ blob's id (`checkBlobId`, exported for your own `Blobs`).
1369
+ - Fixed on the way: a timer's input over 16 KiB reached its Action as a reference; it comes whole.
1370
+ An occurrence of one that a deploy to this version cuts short fails once when it resumes
1371
+ (`id_conflict`: it started with the reference as its input); the timer's next ones run.
1372
+ - A store may already hold planted references: an exact one still loads (its blob gone, reads
1373
+ fail), and any other, carried on, is now refused. #155 has read-only queries (PostgreSQL,
1374
+ SQLite) that find them; clean every one, `sys.timers` first.
1375
+
1376
+ - **Contacts: people outside the org who talk to its agents** (the new `contacts` plugin, part of
1377
+ `access`). A WhatsApp customer is a contact, its own kind of actor (`{ kind: "contact", id }`),
1378
+ never a person: every `allow: people` Action and query stays shut to it, and nothing that asks for
1379
+ a person (`personOf`) finds one. The runtime's `principalOf` says whom work is for, a person or a
1380
+ contact (it moved there from chat), and `peopleOrContacts` is what an Action opened to contacts
1381
+ allows: today only `chat.send`, whose message is then from `contact:<id>`.
1382
+ - A contact's chat is shared with it on its own (a membership `on` the thread, made by
1383
+ `contact.chat`): it reaches that chat, what's said and filed there, and its own record, nothing
1384
+ else. The space's people reach it as any chat there; the agent working for the contact reaches
1385
+ exactly that chat. Three generic completions in spaces make it so, and help people too (a person
1386
+ can now share one chat): a shared collection's documents can be part of another's (`part`: a
1387
+ message's `thread`), reached with it; an agent working for someone reaches a document one of
1388
+ them reaches on its own in a space the other reaches; and `present(ctx, space)` says whether
1389
+ someone reaches a space or a document in it, so `space.roster` tells a contact in its chat who
1390
+ answers (agents only).
1391
+ - A contact is let into documents only, never a whole space (`member.set`, a request granted), and
1392
+ never manages one. `request_access` isn't offered to agents working for a contact, nor memory: a
1393
+ customer's chat keeps to itself.
1394
+ - `contact.start` (trusted code, idempotent by id) and `contact.chat`; `contactOf(actor)` says
1395
+ whose work an event's actor's is (the contact's id, through the agent working for them too);
1396
+ agents are told whom they talk with (the `contact` context) and see them by name: the `names`
1397
+ resource is now a map of sources
1398
+ (`{ people: { collection: "profile" }, contact: { collection: "contact", prefix:
1399
+ "contact:" } }`),
1400
+ replacing `{ collection }`. On the web, add `contactsWeb` to show contacts by name.
1401
+ - **A WhatsApp number can be a customer line.** Its space's managers open it to anyone
1402
+ (`whatsapp.set { number, open, agent, gap }`). A stranger who writes is then a contact, in a chat
1403
+ of their own in the number's space, answered by the number's agent (or who answers new chats
1404
+ there); a chat quiet for `gap` hours (12 by default) is over, and their next message starts a new
1405
+ one. Their text always goes to the agent (commands stay linked people's); a code from the app
1406
+ still links a phone, and linked phones keep working as their person. The `whatsapp` plugin now
1407
+ requires `contacts`.
1408
+ - **WhatsApp is a medium.** A View for it (renderer `whatsapp`) returns parts, each one WhatsApp
1409
+ message, built with the toolkit in WhatsApp's contract (`text`, `buttons`, `list`, `carousel`,
1410
+ `image`, `document`, and `clip` for titles), which checks Meta's limits and throws `invalid`
1411
+ instead of cutting anything short. A message goes out as its `message` View there (the plugin's:
1412
+ its text as WhatsApp formats it; an app's replaces it).
1413
+ - **Additions:** chat declares the `additions` resource kind (`{ order?, agents? }`, each an
1414
+ `addition:<name>` View in the medium, given `{ thread, answer }`, returning `Addition`s:
1415
+ `{ key, parts, fallback?, note? }`). After an agent's final answer that didn't fail
1416
+ (`isAnswer`), each goes once per chat per key, recorded in chat's new `shown` ledger through
1417
+ `chat.shown` (trusted code, unrecorded); its `note` is told to the model after that answer
1418
+ (`[then shown: …]`).
1419
+ - **One message, not two:** an answer's last text goes as the first addition's body (or caption)
1420
+ when there's room, as Meta charges per message. A part Meta refuses (a 400 that isn't the token
1421
+ or the 24-hour window) sends the addition's fallback instead, with the answer joined to it;
1422
+ without one, it's logged. A retried delivery sends only what didn't go (`whatsapp_sent` now
1423
+ keeps each part by id, with its addition's `key` and `thread`).
1424
+ - **Taps:** a button's, a list row's, a carousel card's or a template's reply comes as its title
1425
+ with `tap: { id, title, key }` (`chat.send` takes `tap`; messages keep it), answering the
1426
+ message it was on; agents read `Carla: PIX [tapped: pay:pix]`. Typing the title is just text. A
1427
+ tap is a choice, not a permission: anyone can send any id, so a tool acting on one checks it
1428
+ against what was shown there. A quote or a tap answers only what went out in its own chat.
1429
+ - What a message and its additions show is read as whom they go to, never with the reach of
1430
+ whoever's work the answer was.
1431
+ - **"Typing…" while agents work:** each step an agent takes in a WhatsApp chat shows it again once
1432
+ WhatsApp may have hidden it (after 20 s, for up to five minutes); nothing says "please wait".
1433
+ - **Media:** a part's picture or file is a public https link (as given), one of the app's routes
1434
+ (`{ route, params }`: a link signed for a day with its params, which the route checks with
1435
+ `verifyLink`), or a chat's file (`{ file }`: a signed link to `/files/<id>`, or, without the
1436
+ app's `links`, uploaded to Meta and sent by its id). A carousel's pictures must be links: a file
1437
+ with nowhere to link it sends the fallback. A message's files go as images (jpeg, png up to 5
1438
+ MB) or documents, a short text as the first one's caption.
1439
+ - **WhatsApp lines for an app, as it uses them**:
1440
+ - **A line the app declares** in its settings (`resources.whatsapp.lines.<name>`: the space,
1441
+ Meta's number id, token and app secret, its own verify token, a webhook path it routes to
1442
+ `whatsapp.hook`, its agent, gap, rate, quiet window and language): open to anyone, kept as the
1443
+ settings say at every use, with no person connecting or opening it; people can't change it
1444
+ (`whatsapp.set`, `whatsapp.credentials` and `whatsapp.disconnect` refuse), and the web tab
1445
+ leaves it alone. `whatsapp.set` stays for numbers people connect.
1446
+ - **Spaces the app declares** (the spaces plugin's `spaces` resource, by id: `{ name, agents }`):
1447
+ the app's own, owned by no person, made and kept by the system when something needs them
1448
+ (`space.keep`, trusted code; a declared line keeps the space it's `in`). Its agents are editors
1449
+ there, the first answering its new chats; people neither take them out, nor change their role,
1450
+ nor rename the space. Otherwise it's a space like any other.
1451
+ - **The reply is the body:** after an answer, an addition's own words (a question its buttons ask)
1452
+ are what it says without one; with the answer, the answer is its whole body. A fallback keeps
1453
+ its words after the answer.
1454
+ - **What Meta took but couldn't deliver** (a failed status on the webhook, such as a picture it
1455
+ couldn't fetch: `whatsapp.undelivered`) sends that addition's fallback, once, with the answer's
1456
+ text when it went in the same message.
1457
+ - **A burst gets one answer:** a customer's messages wait for the line's quiet window (`quiet`, 4
1458
+ s by default, up to 30) before the agent answers, all of them in one turn and one reply
1459
+ (`chat.send`'s new `quiet`: a durable timer each message sets again, `chat.quiet`, so a restart
1460
+ in the window still answers once).
1461
+ - **A failed turn** tells a customer only that, in their line's language, never its error.
1462
+ - Each sender's quiet window is their own (`quiet:<thread>:<sender>:<agent>`): a staff member's
1463
+ message never takes a customer's place, nor the reverse. Erasing a chat ends its windows, and a
1464
+ window whose message is gone (or no longer theirs to read) starts no turn.
1465
+ - A declared line is one org's with the orgs host: it names the org (`org`), and every other org's
1466
+ runtime has nothing of it; a line naming none is a single-org app's.
1467
+ - What Meta couldn't deliver is rendered again as its addressee, as any reply is.
1468
+ - **Signed links** (the runtime's `signLink` and `verifyLink`, with the app's `links` resource:
1469
+ `{ origin, secret }`, a secret of at least 32 bytes, checked at start): the app's origin, a path,
1470
+ its params and an expiry (an hour unless said), HMAC-signed, with a line break between origin and
1471
+ path, so a link for one app or org never opens another (under `hosts/orgs`, give each org its own
1472
+ origin). The web host checks the secret as it starts serving. A chat's file is linked or uploaded
1473
+ only for someone who may read it. The web host serves a file at a signed `/files/<id>` link
1474
+ without a session, as the system; expired or altered, a 404.
1475
+ - **Chat in spaces declares its own `shared` entries** (`thread`, `message` with labels, `file`,
1476
+ `live` and `shown`, each a part of its thread). `chat.open` opens an empty chat in a space;
1477
+ `chat.say { id, thread, from, text, to? }` has an agent say a fixed message in a chat without a
1478
+ turn (trusted code only; the same `id` is said once), sent out like any of its answers.
1479
+ - **What a contact's chat shows stays theirs to see** (from a security review):
1480
+ - A document others are parts of (a chat) labels as itself, and so do its parts: a write into a
1481
+ chat shared with someone outside its space (a contact) that drew on anything else, even the same
1482
+ space, carries that space as its source (staff read it; the contact doesn't), or an agent
1483
+ writing it is refused (`needs_share`). WhatsApp sends only what its addressee may read.
1484
+ - Agents are told who else is in a chat from outside the org (the `where` context), from a chat's
1485
+ members on its own, which its space's people now read by asking for that chat.
1486
+ - A part of a shared document, and a document shared on its own, are reached only where it lives:
1487
+ nothing written as one lands in another space. `may`, `must` and `present` never take a document
1488
+ shared on its own for a space (`may(ctx, verb, id, on)` asks about the document).
1489
+ - A contact's message goes to whom its chat is with (or the agent that wrote what it replies to):
1490
+ never to agents it names. Anyone's `replyTo` is kept only for a message of the same chat that
1491
+ they read.
1492
+ - A tool whose `offer` is a function decides for agents that name it too; `request_access` refuses
1493
+ for a contact; computers aren't woken (or billed) for work that's no person's; memory declares
1494
+ its own `shared` entry; the identity guard keeps people's records to people.
1495
+ - `chat.say`'s message is `<thread>:say:<id>`, said only by an agent answering in that chat.
1496
+ - Work handed to another space from a chat shared with a contact comes back labelled with that
1497
+ space (`sources`): the contact doesn't read it (spaces' contract: `sharedWith`).
1498
+ - The `shared` resource's entries are its own keys: a collection named like what objects inherit
1499
+ (`constructor`) is none.
1500
+ - **Erasure:** `contact.forget { contact, chats? }` (managers of its space) ends a contact's access
1501
+ at once, deletes its record (`contact.deleted`: WhatsApp erases its phone, but a block on it
1502
+ stays, by the phone's hash) and, with `chats`, its chats, each for someone who manages that chat's
1503
+ space (chat's new `chat.erase`, trusted code only: messages, files, waits, steps in flight; the
1504
+ history plugin erases its summaries on `thread.deleted`). The event log keeps what happened (what
1505
+ WhatsApp delivered, each change with its document) until retention removes it; memories learned in
1506
+ staff's chats, and chats a hand-over opened elsewhere, aren't erased.
1507
+ - **An open line, kept in hand:** `whatsapp.block { thread, blocked }` (managers) blocks the phone
1508
+ behind a chat: what it sends goes nowhere, unanswered. A customer sending more than the number's
1509
+ `rate` a minute (20) goes unanswered. One taken out of their chat is heard again once it's been
1510
+ quiet for the gap. Customers are told what can't go on in the number's `language` (`en`, `pt`),
1511
+ never in an error's own words.
1512
+ - **Fixed:** `message.questions`, and the terminal's `shell.mine`, `shell.set` and `shell.print`,
1513
+ let anyone whose id matched in; they're a person's own now.
1514
+
1515
+ - **Private fields for recorded Actions.** `private: ["buyer", "passengers"]` on an Action (dot
1516
+ paths, as a collection's): its calls are recorded without them, in `action.started`'s input and
1517
+ `action.completed`'s result alike, so the personal data a booking's buyer gives (names, CPFs,
1518
+ emails) never lands in the log, while the calls are still recorded, retried and deduplicated.
1519
+ - The call's `inputHash`, and so a nested call's id, still covers the whole input: a retry with
1520
+ the same input answers from the log, and a changed one is a new call (under an outside call id,
1521
+ `id_conflict`).
1522
+ - A result that had private fields is kept whole in `sys.results` (a document by call id, written
1523
+ in the completion's commit, no events), and `action.completed` says `private: true`: a retry
1524
+ answers with all of it, as it would without them.
1525
+
1526
+ - **A host without the web app: `serveRoutes`** (`copilotz/web/node`), for an app people use on
1527
+ WhatsApp or on the phone. Given the runtime, it serves the app's routes alone (webhooks),
1528
+ `/health` (unless a route takes it), and 404 for anything else: no page, no code, no sign-in; a
1529
+ route's Action is called as a visitor. Its `close({ drain })` stops listening, letting running
1530
+ requests finish, then closes the runtime with those options. A runtime that declares the `socket`
1531
+ transport still takes its sockets at `/oxian`. `routeHost(runtime)` (`copilotz/web/server`) is the
1532
+ same as a fetch handler. On Node, Deno and Bun (`examples/web-node/routes.ts`).
1533
+ - **A route can take a WebSocket** (a voice call's relay): a `serve` route calls `host.upgrade()`,
1534
+ and answers with the response it gives; its `socket` is a browser's `WebSocket` as far as
1535
+ `onmessage`, `send` and `close` go. It can refuse first, before any handshake. `serveRoutes` and
1536
+ the web host's `serve` take it, through Oxian's adapter (route sockets, Oxian 0.23).
1537
+
1538
+ - **A tool call runs once, even when its turn is tried again.** A step that failed after its tools
1539
+ ran (a tool's `llm` View throwing, a commit failing) was run again whole: its model asked again,
1540
+ its tools run again, with whatever input the model now chose, and the model never saw the first
1541
+ run. Now a step's calls are written before any of them runs (chat's new `intent` collection, one
1542
+ document per running turn, no events), and what each returns as soon as it does. A retried turn
1543
+ goes on with those calls without asking its model: a call that returned answers from its record,
1544
+ and one cut short (its executor lost, the runtime closed) runs again as itself.
1545
+ - Tools get `ctx.callId`, the same however many times the call runs (`<turn>:<step>:<n>`): the
1546
+ idempotency key for what they do outside. `ctx.retry` is now true only for a call that may have
1547
+ run before. The recorded Actions a tool calls answer from the log when it runs again.
1548
+ - A turn that ends without its step (failed for good, or stopped mid-tool) keeps the step, with
1549
+ what each call returned, or that it never did ("Interrupted before it returned: it may or may
1550
+ not have taken effect…"); a stopped answer no longer repeats that step's text.
1551
+ - A tool step costs one more commit (its calls, before they run) and one per tool call (what it
1552
+ returned). A step that only sends messages costs nothing more: they commit with it.
1553
+ - **Closing drops no turn.** `runtime.close()` returned from a delivery it cut short as if it were
1554
+ done, then saved its Processor's cursor past it, so a turn running at a deploy never answered. Now
1555
+ closing starts no more deliveries or timer occurrences, gives the running ones `drain` ms to
1556
+ finish (`close({ drain })`, 5 s by default), and keeps each cursor before an event it didn't
1557
+ finish: the next owner delivers it again, with `retry`, and with the above it doesn't repeat its
1558
+ tools. Workers are told they're gone after the drain, so running work can still use them. The orgs
1559
+ host's `close({ drain })` passes it on to every org's runtime.
1560
+
1561
+ - **Fixed: messages in a row ended an agent's prompt with its own answer.** A person writing several
1562
+ messages a few seconds apart starts a turn for each; one that ran after the agent had answered
1563
+ (while it wrote, or with the next turn) was sent a conversation ending with that answer, which
1564
+ Anthropic's newer models refuse ("assistant message prefill", HTTP 400), so it failed. Now an
1565
+ answer keeps how far its turn had read its thread (`knew`, the `at` of the newest message there);
1566
+ the prompt reads what others said after that, while it wrote, after the answer; and the turn of a
1567
+ person's message that an answer to them had already read ends without a model call. Adapters never
1568
+ send a conversation ending with the model's own message: a user turn ("Continue.") follows it, for
1569
+ every provider alike.
1570
+ - **Fixed: a failed turn's answer said what its provider said.** "booking failed: Anthropic 400:
1571
+ {…}" was written in the chat, where everyone there read it (and a WhatsApp customer got it). It
1572
+ now says "booking failed: something went wrong, so it couldn't answer. Try again in a moment."
1573
+ What went wrong stays in the `processor.failed` event; a missing key still says who can add one.
1574
+ - **Fixed: MiniMax's usage counted no input.** Anthropic's adapter read input and cache counts only
1575
+ from `message_start`; MiniMax (on Anthropic's protocol) says them in `message_delta`, so its calls
1576
+ were recorded with 0 input tokens. It now reads every count from both, the greatest of each (they
1577
+ are totals so far), so Anthropic's, said in both, count once.
1578
+ - **OpenAI keeps nothing: `store: false`.** The Responses API stores every response (30 days) unless
1579
+ told not to, and Copilotz never read them back: a model's reasoning already comes back encrypted
1580
+ and goes back with each call. A server that refuses `store` is asked again without it, from then
1581
+ on, as one refusing `include` is. A model's `options` can still set it.
1582
+
1583
+ - **Fixed: a collection's private fields reached the log on PostgreSQL.** Writes that go as the
1584
+ store's single command (most of them) recorded `.created`, `.updated` and `.deleted` with the
1585
+ whole document, so `private` fields (a computer's `pending` secret, unsealed account tokens) were
1586
+ in the log there; memory and SQLite left them out. The command now records documents without them
1587
+ too. Events already written still hold them.
1588
+
1589
+ ## 1.0.0-rc.20 — 2026-11-04
1590
+
1591
+ - **A model thinking past two minutes isn't a dropped call.** A call counted as dropped once its
1592
+ adapter yielded nothing for `silence` (2 minutes), and was retried or handed to the next model. A
1593
+ reasoning model yields nothing while it thinks, though its provider's stream goes on (GPT-6 Luna
1594
+ at xhigh on a hard problem: 108 s before its first word), so its thinking was thrown away past two
1595
+ minutes while the page showed the agent thinking. Adapters now say a stream is alive (`thinking`
1596
+ chunks, at most about once a second, for every provider); `generate` passes them on without
1597
+ counting them as written, so a model that thinks and then truly stalls still hands over.
1598
+ `complete` no longer reads a chunk it doesn't know as usage.
1599
+ - **`terminal`: a running command is seen again by its `commandId` alone.** rc.19 said so, but sent
1600
+ the computer no input with it, and every look at a slow command answered "stdin is required". A
1601
+ `commandId` beside a blank `command` is a look too; beside a real one, the refusal says how to
1602
+ look, type into it or stop it.
1603
+ - **An agent's OK shows once its own turn is over.** With agents answering in parallel, the
1604
+ computer's approval cards waited for every agent's turn to end, so one that asked and finished
1605
+ waited on a card that didn't show. Chat's `conversation` Views get `busy` (the agents whose turns
1606
+ run, each held 600 ms after its last step) beside `working`.
1607
+ - **People show by name on the web.** The browser loads only front ends, and the `names` resource
1608
+ was declared only by the spaces plugin: everyone signed in with a sign-in id (`google:…`) showed
1609
+ as "someone", in Members, a chat's people and messages, memories, computers and routines. The
1610
+ spaces front end declares it too.
1611
+ - **People's pictures beside their names**, in a space's Members, a chat's "In this chat" and a
1612
+ person's messages: a `profile.pictures` query (`{ ids }`), and `picturesIn` for Views.
1613
+ - **`openai-compatible` sends a model's thinking back.** `reasoning_content` (DeepSeek, Moonshot,
1614
+ Qwen, vLLM) is kept as the answer's state and goes back with it, as Anthropic's, Gemini's and
1615
+ OpenAI's already did; DeepSeek asks for it once tools are given.
1616
+ - **OpenAPI tools** (`openapi({ name, spec })`, in `copilotz/plugins/agents`): an API's operations
1617
+ as recorded Actions (`<name>.<operationId>`, not called again when a turn is retried) and agent
1618
+ tools (`<name>_<operationId>`); settings per deployment in `resources.openapi.<name>` (base URL,
1619
+ headers, query, timeouts, size limits, file fields).
1620
+ - **History by age:** an agent's `history: { maxAge }` (ms) leaves older messages out of its prompt
1621
+ (they stay in the chat), counted back from the newest message it sees, its start on a grid of a
1622
+ tenth of `maxAge` so the prompt cache holds between steps.
1623
+ - **Blobs in Google Cloud Storage:** `gcsBlobs({ bucket, prefix? })` (`copilotz/blobs/gcs`), signed
1624
+ in as the process's service account on Cloud Run or Compute Engine.
1625
+
1626
+ ## 1.0.0-rc.19 — 2026-11-03
1627
+
1628
+ - **`terminal` takes the command in `command`.** It took it in `stdin`, while `start_job` takes
1629
+ `command`, and the tool answered any other field with an empty success: a model that sent
1630
+ `command` (gpt-6-luna in 21 of 22 calls in our tests, Claude Haiku 5.5 in 7 of 35) was told it ran
1631
+ when nothing had. Now `command` runs a command; `commandId` with `stdin` answers a running one,
1632
+ and with `operation: "interrupt"` stops it. A call it can't read (another field, both a command
1633
+ and a commandId, an empty command, `stdin` without a commandId) runs nothing and says what to give
1634
+ instead. The computer program is unchanged. A chat shows the command from `command`, and from
1635
+ `stdin` on calls made before.
1636
+
1637
+ ## 1.0.0-rc.18 — 2026-11-03
1638
+
1639
+ - **Model tiers for the app's agents** (the new `tiers` plugin, in `copilotz/plugins/agents`). An
1640
+ app declares its tiers (`tiers` resource: a title, what it's good for, and a model for each of its
1641
+ agents, as an agent's `model` takes one). Which one an agent thinks with, first that applies: a
1642
+ model picked for it in the space, the space's tier, a model picked for it by the org, the org's
1643
+ tier, the tier the org's plan names (`planTier`), else its own model.
1644
+ - An org's owners and admins choose for the org, a space's managers for the space (`tiers.choose`,
1645
+ `tiers.pick`); everyone who reaches them sees it (`modelChoice.offered`, `modelChoice.agent`).
1646
+ Choices keep the tier's name, so retuning a tier moves everyone on it.
1647
+ - A pick keeps the tier's list behind it as fallback, and carries the `maxTokens` of the entry it
1648
+ replaces, and its `effort` when the picked model takes it (`models.efforts`, from the catalog).
1649
+ - Chat asks through a new `agentModel` resource, once per run, for the app's agents only; agents
1650
+ people make keep their own model. A turn's usage now says its `space`.
1651
+ - On the web (`tiersWeb`): "Agents' models" in org settings (the tiers with a typical reply's
1652
+ price, choosing one with Undo, a model per agent), and on a space's Members tab its tier and
1653
+ each app agent's model with where it comes from. Team's model picker is a View (`model.pick`)
1654
+ other plugins show.
1655
+ - **Plans say whom they're for and which tier they give.** `PlanTerms.for` (`"personal"` or
1656
+ `"team"`) is enforced on every move to a plan (checkout, staff, a provider's webhook);
1657
+ `PlanTerms.models` names the plan's tier (`billing.tier`). The Billing page offers an org only the
1658
+ plans for its kind that its seller can sell (`billing.sellable`), says how much of this period's
1659
+ plan credits is left and when they lapse, and speaks of seats only to teams.
1660
+ - **The Usage page, rebuilt around money.** One line: spent this billing month, against the budget,
1661
+ what's left and how long it lasts at this pace. One "By" switch (kind, space, person, agent,
1662
+ model) drives a stacked daily chart and a ranked list; a row filters the page. Activity shows
1663
+ turns, computer sessions, app days and conversation upkeep instead of ledger records; staff see
1664
+ cost and margin in place.
1665
+ - `usage.calls` is gone: `usage.activity` replaces it. `usage.org` groups and filters by
1666
+ `category` (agents, computers, apps; `usage.categories`) and by `tags.space`, and names what it
1667
+ groups by as the caller reads them, through a new `usageNames` resource kind each owning plugin
1668
+ contributes (spaces, conversations, computers, apps).
1669
+ - Cloud computers' records say their `space` and, for VM time, their `session`; summaries, memory
1670
+ notes and their embeddings say their conversation's `thread` and `space`.
1671
+ - Rollups keep `tags.space`. A closed day remembers its shape; days closed with an older one are
1672
+ read from records until `usage.close` closes them again (the next nightly close, or by hand).
1673
+ - **An app's own instructions are sent as instructions.** A `context` entry with
1674
+ `instructions: true` (`system` only) goes right after the agent's instructions, without the
1675
+ `<context>` tag that marks other contexts as information, not instructions.
1676
+
1677
+ ## 1.0.0-rc.17 — 2026-11-03
1678
+
1679
+ - **A model's state goes back with its answers.** What a model returns to be sent back (Anthropic's
1680
+ signed thinking, Gemini's thought signatures) was kept on tool steps but dropped on the final
1681
+ answer, so the next turn started without it. Answers keep it now, and agents are sent it on
1682
+ text-only messages too. A message's `state` is private, like `told`: people's reads and events go
1683
+ without it, and an answer handed back to another space doesn't carry it.
1684
+ - **OpenAI's reasoning goes back to it.** The Responses adapter asks for a reasoning model's
1685
+ reasoning, encrypted (`include: ["reasoning.encrypted_content"]`), keeps it as its answer's state,
1686
+ in its place among the answer's text and calls, without ids, and sends it back. Between tool steps
1687
+ the model carries on instead of thinking again: on gpt-6.1-sol, a two-turn tool task wrote 42%
1688
+ fewer output tokens. A server that refuses `include` is asked again without it, and not asked
1689
+ again. Sent back, past reasoning stays in later prompts (a probe: 616 input tokens with it, 48
1690
+ without), so a state now says about what it adds (`LlmState.tokens`), and history counts it.
1691
+ - **History counts what a prompt really carries.** The history plugin's tail is measured in
1692
+ estimated tokens of what an agent is sent for each message: its text, its model's state, text
1693
+ files' content, transcripts, images (1,600 each) and PDFs (2,000 a page), and agents' tool steps,
1694
+ which leave the tail without a line. `tail` is in tokens now (was bytes), and its default stays
1695
+ `[16_000, 48_000]`, so a text-only conversation keeps about four times more whole.
1696
+ - Until the tail first cuts, every message is sent: no 50-message cut before anything is
1697
+ summarized. That holds for threads whose outline began with them; older ones get chat's window
1698
+ until their first cut.
1699
+ - The four newest shared messages always stay whole, so a big file stays while it's talked about.
1700
+ - A message's line names its files, and `zoom(id, 1)` gives the message as the agent is sent it,
1701
+ text files' content included.
1702
+ - After a cut, state from before it (thinking bound to how the conversation began) isn't sent
1703
+ again; and when a provider refuses a model's own state as stale anyway, the call is tried once
1704
+ more without any.
1705
+ - Outlines no longer log events.
1706
+ - **Without the history plugin,** an agent's window holds 50 to 100 messages and drops 50 at a time
1707
+ (was the latest 50, one off every turn), so the prompt cache holds between drops. `lineage`
1708
+ (exported) takes `batched`; its `since: ""` now means every message, and its db needs
1709
+ `countDocuments`.
1710
+ - **Fixed:** lifting a usage waiver gave back nothing for a use recorded in the very millisecond it
1711
+ was lifted (a flaky billing test showed it).
1712
+
1713
+ ## 1.0.0-rc.16 — 2026-11-02
1714
+
1715
+ - **Fixed:** staff by email weren't staff anywhere but going into an org. `org.mine` asked without
1716
+ their email, so anyone signed in with Google, whose id isn't their email, had no console and no
1717
+ "Enter as staff". It takes `email` now, and the orgs host passes the one they verified.
1718
+
1719
+ ## 1.0.0-rc.15 — 2026-11-02
1720
+
1721
+ - **Enter as staff, in your own org too.** Staff who belong to an org go in as one of its people, as
1722
+ before, but can now ask to go in as staff: from the console, or the org switcher. They keep their
1723
+ role, get the staff tools, and "Continue as Owner" takes them back. `POST /orgs/enter` takes
1724
+ `staff: true`, `org.enter` takes `staff`, and `GET /orgs` says `asStaff`, which `asStaff()` now
1725
+ reads instead of guessing from membership.
1726
+
1727
+ ## 1.0.0-rc.14 — 2026-11-02
1728
+
1729
+ - **Credits** (`plugins/billing/credits`): what an org can spend. Plans, credits and payments are
1730
+ its own rows, the balance is walked from them and the ledger, and one check stops model calls,
1731
+ computers and builds at the limit, in plain words. Staff set plans, give credits, waive usage or
1732
+ seats, and record payments; gift codes wait in the directory.
1733
+ - **Stripe** (`plugins/billing/stripe`): Checkout, the customer portal and signed webhooks, for one
1734
+ or more accounts. A subscription's credits come with its paid invoice.
1735
+ - **Prices:** a use on an org's own key costs nothing; a plan can name a price list; `usage.quotes`;
1736
+ the model picker shows the org's real price.
1737
+ - **Removed:** the cloud plugin's `create` and `budgetUsd` settings. Anyone in an org but its guests
1738
+ makes a computer; what the org can spend keeps the cost.
1739
+ - **Fixed:** model use listeners are awaited, so a late record isn't lost; a VM's seconds stop at
1740
+ its lease, so an org closed for days isn't charged for a VM long gone.
1741
+ - `composerNotes`, a note above the composer from another front end.
1742
+
1743
+ ## 1.0.0-rc.13 — 2026-11-01
1744
+
1745
+ - **Choose an agent's model from the catalog, with your own key.** The agent editor searches every
1746
+ provider and model in the models.dev catalog an agent can work with (`models.offered`): those with
1747
+ a protocol we speak and an address of their own. An org's owners and admins add a key for a
1748
+ provider right there (`modelKey.set`): it's sealed, shows only its end, and its agents' calls to
1749
+ that provider use it, over the app's. Those uses are tagged `paid: "own-key"`. The catalog now
1750
+ keeps names, release dates, and which models can't call tools or answer in text.
1751
+ - **Secrets stay out of the log.** `env.set` and `apps.configure` recorded their input, so a space's
1752
+ or an app's secret was kept in plain text in its `action.started` event, sealed field or not. Both
1753
+ are unrecorded now. Secrets set before this remain in events already written: rotate them.
1754
+ - **Agents manage cloud computers.** `list_computers`, `create_computer` and `manage_computer` (add,
1755
+ remove, rename, default, destroy) work in the conversation's space, as the person the agent works
1756
+ for, through the same Actions and rules a person has. Nothing asks first except destroying, which
1757
+ loses the disk: like publishing, it's asked every time and only "once" allows it. A person's own
1758
+ machine isn't an agent's to manage. An agent in a space with no computer is told it can make one.
1759
+ - **A query an Action runs knows who asks.** Named queries called from an Action or a transaction
1760
+ lost the actor for what they call themselves, so a query asking another Action could fail, or
1761
+ answer as though nobody asked.
1762
+ - **A read's answer no longer overwrites something newer.** The owner answers a batch of reads once
1763
+ its slowest is ready, so a change could be pushed before the answer that didn't include it. The
1764
+ client then showed the older answer until the read next changed: on a page's first load (the push
1765
+ was dropped) and after a reconnect (the push was overwritten). What's pushed while a read is asked
1766
+ for now wins over its answer, and a connection that's been replaced is no longer listened to.
1767
+
1768
+ ## 1.0.0-rc.12 — 2026-11-01
1769
+
1770
+ - **An agent can hand work to itself in another space.** "Itself" now means the same agent in the
1771
+ same chat: North in Personal and North in Project management are two pieces of work. Whoever a
1772
+ space says answers takes what's handed there, even the agent that sent it, instead of being
1773
+ skipped for someone else, so a space where only that agent answers can receive work too. It reads
1774
+ what it handed over, and the answer back, as input (`You (via delegated "Solo"): …`), not as
1775
+ something it said.
1776
+ - **Delegated messages name the other space:** "Delegated: Personal" there, "Delegated: Project
1777
+ management" back, with an icon of their own.
1778
+
1779
+ ## 1.0.0-rc.11 — 2026-10-31
1780
+
1781
+ - **A routine can run with nobody watching.** What its agent needs a yes for can now be allowed for
1782
+ that routine alone: "Allow for this routine" on the card, or "What it can do without asking" on
1783
+ its page (run commands, start jobs, change files, per computer), ahead of its first run. Allowing
1784
+ it answers every run already stopped on the same thing. What a run waits on shows on the routine's
1785
+ page, with the way to its chat. In the terminal: `/approve <n> routine`.
1786
+ - **That yes covers only that routine's runs, as it was.** A run's work carries the routine as its
1787
+ `origin`, on the actor (`originOf`, chat's contract), which only code can set: a person's own
1788
+ message to the same agent still asks, even one claiming `via` a routine. Changing what a routine
1789
+ does (what it asks, whom, as whom) makes a new version (`routine.rev`), which the yes doesn't
1790
+ cover: its page says so and offers "Allow again". Name and schedule don't count. Where a
1791
+ computer's owner keeps the answers, only they can say it (`computer.allowOrigin`).
1792
+ - **Plugins can add to a routine's page:** the `routinePanels` resource (`{ view, order? }`), a View
1793
+ given the routine.
1794
+ - **Authorization is one model.** `personOf`, `forbidden`, `invalid`, `failure`, `people` and
1795
+ `inPerson` come from the runtime; `may`, `must` and `mustOwnOr` from the spaces contract,
1796
+ replacing seven `personOf` copies, about 25 hand-written checks and about 30 local error helpers.
1797
+ `reachOf` is the only answer to what someone may do, and respects every limit on them.
1798
+ - **Fixed: taking over a space.** A thread named after a space could be used to become its manager.
1799
+ A document's memberships now live under its own name (`note:n1`), and only shared collections can
1800
+ be named.
1801
+ - **Fixed: keys left their space.** Actions that checked reach, then wrote as the system, ignored a
1802
+ key's limit. Reach respects it now (`within`, which replaces `at` on a key's actor), and the API's
1803
+ own narrowing rules are gone. Keys can't answer approvals.
1804
+ - **Fixed: agents asked by agents ran as the agent that asked.** A turn is always its own agent, for
1805
+ the person the work is for, including where a computer's owner answered.
1806
+ - **Publishing is asked every time.** Nothing wider than once is offered or honored.
1807
+ - **Approvals can be taken back,** from the Computer tab. What's allowed for a routine comes from
1808
+ the routine (`origins` resource), not from what the caller says.
1809
+ - **Roles are given one way** (`seat`): a granted request can't name a role that doesn't exist or
1810
+ make an agent a manager, and custom roles count everywhere.
1811
+ - **An archived space isn't written in,** which only views enforced before.
1812
+ - **Replacing or rebuilding an app** takes its publisher or a manager. **Where a computer's owner
1813
+ answers,** only they change anything on it directly; others still read it.
1814
+ - **Leaving ends what someone left behind,** however they left: desks, yeses and keys for that
1815
+ space, and out of the org, all of them and their own computers. Cloud computers stay for those who
1816
+ run the org. A preview's cookie asks whether its person is still a member on each request.
1817
+ - **Agents can hand work to other spaces.** `send_message` takes `space`: any space the person can
1818
+ write in, listed in the agent's context with who answers there. A new chat opens there, visible to
1819
+ its members and marked as delegated, for the same person; the answer comes back to the chat it
1820
+ came from, and stopping that chat stops the work. An agent can't hand work to itself.
1821
+
1822
+ ## 1.0.0-rc.10 — 2026-10-31
1823
+
1824
+ - **A routine made from a chat posts back in that chat.** `schedule_routine` keeps the chat it was
1825
+ called from (`routine.thread`), where before no setting could reach it: `same` meant a new chat
1826
+ made by the first run. `routine.create` takes `thread` (a chat in that space its maker can see),
1827
+ and `post` now defaults to `same`, in the web form too. Its confirmation says where it posts. If
1828
+ the chat is deleted or moved to another space, the run starts a new one and says why
1829
+ (`routineRun.note`).
1830
+ - **A new chat each run is a first-class choice,** for runs to open later (a daily analysis):
1831
+ `post:
1832
+ "new"`. Each chat is named by `chatName`, with `{name}`, `{date}`, `{time}` (its
1833
+ timezone) and `{run}` filled in; by default its name and the day (and time, for `hours` and
1834
+ `cron`), so runs no longer all share one name. Its agent may then name it for what it found, with
1835
+ the new `name_chat` tool, offered only in those chats. The routine's page lists runs by their
1836
+ chats' names. The form and the agent's confirmation say how many chats a day it comes to, when it
1837
+ runs at least hourly.
1838
+ - **A routine's messages say they're its.** `chat.send` takes `via` (`{ kind, name, path? }`): the
1839
+ message is still its sender's, but shows "Routine: Pricing", linked to the routine, and agents
1840
+ read `ana (via routine "Pricing"): …`, so they know nobody typed it just now. `chat.send` also
1841
+ takes `title` and `renamable` for a new thread, in the same commit as its first message.
1842
+
1843
+ ## 1.0.0-rc.9 — 2026-10-31
1844
+
1845
+ - **A space's page has a few tabs, and their sections.** A `spaceTabs` entry `under` another tab is
1846
+ a section of it, listed in its menu, with an optional `group` heading; a tab with sections names
1847
+ its own View among them (`own`) and shows them in a menu beside (`menu: "side"`) or as tabs above
1848
+ (`top`, the default). A section's key opens its tab there (`?tab=memories`), so every address
1849
+ still works, and the palette lists sections too. The tabs now: Chats, Board and Documents (an
1850
+ app's), Computer (Computers, Environment, Apps), Routines and Settings (General, Members,
1851
+ Memories, Skills, Channels: WhatsApp, API). Where there's no room for a menu beside (a phone),
1852
+ Settings is a list to tap into, and a section says how to get back; in the side panel, sections
1853
+ are tabs under the panel's. Who's waiting to join shows on Settings and on Members.
1854
+ - **On phones, an app's page.** The viewport spans the screen (`viewport-fit=cover`; the composer
1855
+ keeps clear of the home bar) and the keyboard resizes the page where browsers allow
1856
+ (`interactive-widget`); pinching still zooms. The page never scrolls sideways or bounces as a
1857
+ whole, and a tap is a tap (no double-tap zoom, no grey flash). On touch screens, text is 16px,
1858
+ fields too at least (so Safari never zooms in on one you type in), and buttons, icon buttons,
1859
+ fields and copy buttons are 44px targets (40px small).
1860
+ - **A conversation scrolls up and down only.** What's wider (a table, code) scrolls in its own box;
1861
+ text wraps; a file's chip and a tool call being written no longer widen it.
1862
+ - **What an agent asks you never covers the conversation.** The command or the file it shows scrolls
1863
+ within a few lines (a command can wrap into dozens), with a copy button, so the answers are always
1864
+ in sight; the cards keep to at most 60% of the chat's height and scroll there.
1865
+
1866
+ ## 1.0.0-rc.8 — 2026-10-31
1867
+
1868
+ - **Agents' prompts only grow, so the prompt cache keeps them whole.** A turn context (the
1869
+ computers', the spaces elsewhere, memories, an app's) is sent after the conversation only when it
1870
+ says something new: when its text isn't what the agent was last told there. The turn's first
1871
+ message keeps what it was told (`told`, `[{ name, text }]`, a private field: people's reads come
1872
+ without it), and later turns are sent it there. So each model call starts with the whole call
1873
+ before it, tool steps and earlier contexts included, where before a turn's context, dropped the
1874
+ next turn, cut the cached prefix at the turn's start. `Prompt.turn` is now `{ name, text }[]`:
1875
+ what's new this turn.
1876
+ - **OpenAI's newer models keep the prefix where told.** Since GPT-5.6, OpenAI caches only at
1877
+ breakpoints: its implicit one falls at the end of the latest user message, the turn's context,
1878
+ which the next turn didn't send, so a conversation reused only its system text. The Responses
1879
+ adapter now marks a message with `cache` (the end of the history) with an explicit
1880
+ `prompt_cache_breakpoint`, on the user's or tool's input at or before it. A model that refuses
1881
+ breakpoints (earlier ones, other servers) is asked again without, and never again. What OpenAI
1882
+ wrote to the cache is metered as `cacheWrite` (billed at a premium by models that report it).
1883
+ - **Memory: the system text says how to remember; what's remembered is told.** The `memory` context
1884
+ (system) is the guide alone, the same in every conversation, so the system text is cached across
1885
+ all of an agent's conversations in a space. Core memories about who's here are the new
1886
+ `remembered` turn context: those learned before the conversation began, told at its start and kept
1887
+ there. Core memories learned since come up in `recall` when relevant (query `relevant` takes
1888
+ `since`; `core` takes `before`), so a memory learned mid-conversation never rewrites its prompt.
1889
+ - **History summarizes a message when it leaves the tail**, not when it comes: only then is its line
1890
+ read (in the outline, or by `zoom`). A conversation that stays within the tail never calls the
1891
+ summarizer; a longer one builds the same tree, in batches, as its tail shrinks. The outline keeps
1892
+ the tail's message ids (`tailIds`); threads summarized before keep the lines they have.
1893
+ - Measured on Compass's own plugins with real OpenAI calls (gpt-6.1-sol; a 12-turn conversation,
1894
+ then a 4-turn one with tool steps, the same agent in the same space): the agent's calls read 95.5%
1895
+ of their input from the prompt cache, up from 59.3%, and every model call in the run (memory
1896
+ extraction included) 92.4%, up from 44.4%, with no summarizer call (101 before). A 24-turn
1897
+ conversation that outgrew its tail: 92.4% for the agent, its one miss when the outline arrives
1898
+ (the prompt is new from there).
1899
+
1900
+ ## 1.0.0-rc.7 — 2026-10-30
1901
+
1902
+ - **Agents choose among a space's computers.** Every computer tool (the terminal, jobs, files, the
1903
+ browser, web search, `preview`, and the apps' `publish`) takes `computer`: one of the space's
1904
+ computers by its name (any case, or part of it when only one has it) or its id; the space's
1905
+ default otherwise. An unknown or ambiguous name, or a computer that's offline, is told with the
1906
+ ones to choose from; naming a cloud computer that's asleep wakes it. Each turn, an agent's context
1907
+ lists the space's computers (whose, a cloud computer or a machine, how it is now, its system, what
1908
+ it asks first, the default marked) when there are several; one stays as it was. In a space with
1909
+ several, an answer says the computer it came from (`computer`), and the web's tool steps show it.
1910
+ - **A job is found on whichever computer runs it:** `computer.preview` and `computer.scope` (and so
1911
+ `app.publish` and the agents' `preview` and `publish`) take a job without a computer and look for
1912
+ it on the space's computers that are online, the default first. `computer.preview`,
1913
+ `computer.scope`, `computer.allowed` and `app.publish` take `computer` (a name or an id).
1914
+ - **The default computer** is named so on the web (a "Default" badge, "Make it the default") and in
1915
+ `/computers`.
1916
+ - **Apps: what serves a preview serves the app.** A folder with no Dockerfile is built into an image
1917
+ made for it (no more buildpacks, which found nothing to build in a plain folder): the computer's
1918
+ system (Debian 12) with Node.js 24 and Python, the folder as it was sent, its dependencies
1919
+ installed again (npm, pnpm, yarn; `requirements.txt`) and its `build` script run, then its job's
1920
+ command behind a front that passes the platform's port on to the job's port on localhost,
1921
+ WebSockets included. A job bound to `127.0.0.1` (as previews allow) is served all the same; the
1922
+ job is given its own port as `PORT`. `AppHost.build` answers the port its image serves on. Without
1923
+ a Dockerfile, an app is published from its job (its command).
1924
+ - **A space's environment: variables and secrets.** Each space has its own (collection `envVar`,
1925
+ `{ name, value, secret, computers, by, at }`, names like `API_URL`). Its managers change it
1926
+ (`env.set` `{ in, name, value?, secret?, computers? }`, `env.unset`); its members read names and
1927
+ the values of variables. A secret is sealed at rest (AES-GCM, with the new `computers: { key }`
1928
+ resource, else kept as given) and never read back by anyone: people see only that it's there (and
1929
+ a long one's last 4 characters), agents only its name. Every job and shell started in the space,
1930
+ from the web or by an agent, gets the variables with `computers` (true unless said), under its own
1931
+ `env` (`jobs.start` and `terminal` take `env`; the `start_job` tool too); a job kept running keeps
1932
+ its env on the computer's disk and starts again with it. A secret given to computers can be read
1933
+ by any process there, and the web says so where it's given. Agents' computer context lists the
1934
+ names they have (`$NAME`), never a value.
1935
+ - **Apps get the space's environment.** An app is deployed with all of its space's variables and
1936
+ secrets, and its own over them (`envVar` with `app`; queries `here` and `apps`), passed to Cloud
1937
+ Run as its env. `app.configure` `{ app, env? }` (its publisher, or the space's managers) changes
1938
+ its own and deploys its image again with them, without a build (the port the image serves is kept
1939
+ as `served`). A change to the space's environment doesn't redeploy anything: it reaches an app
1940
+ when it's published again, or at once with "Apply to apps". Taking an app down removes its own
1941
+ environment (`env.unset` `{ in, app }`).
1942
+ - **Web: Environment.** A space's Environment tab lists its variables (a secret masked, whether its
1943
+ computers get it, who set it and when); its managers add, change and remove them, with the honest
1944
+ limit shown beside a secret given to computers. Under it, its live apps and "Apply to apps"
1945
+ (through computers' new `envActions` resource). An app's row opens its environment: the space's
1946
+ shown, its own edited, saved with a redeploy. The job start form takes its own environment
1947
+ (`NAME=value` lines). The toolkit's `Time` also draws on a server.
1948
+ - **People by name, everywhere:** agents' prompts, notes, the terminal and the web show a person's
1949
+ name where they showed their id (`google:1139…`). The spaces plugin keeps each person's profile
1950
+ (collection `profile`: their name as sign-in verified it, else their email's name, and picture;
1951
+ never their email), from the identity plugin's `person` as it changes, at `org.join`, and on
1952
+ `space.personal` (each page load), so people known before it get one the next time they come.
1953
+ Anyone in the org reads names through the query `profile.names` `{ ids }` (a browser reads
1954
+ profiles only through it); two people of one name stay apart ("Ana (2762)"). The new `names`
1955
+ resource says where names are (`{ collection: "profile" }`), and the spaces contract (and
1956
+ `copilotz/plugins/access`) gives `nameOf`, `namesOf`, `namesIn` (Views), `namesFor` (Actions,
1957
+ Processors, tools), `withNames`, `idsIn` and `PROFILE`. A sign-in's id is never shown as a name:
1958
+ without a profile, it's "someone".
1959
+ - **Agents' prompts:** others' messages read "Ana Lima: …", "People here:" names people, a
1960
+ conversation's space is "Ana Lima's Personal space", the computers context says whose computer it
1961
+ is and who says yes by name, as do waiting asks, routines (who made one, whom it runs as), history
1962
+ summaries and zoom, and recall. Memory extraction writes names, and `remember`'s `about` takes a
1963
+ person by name.
1964
+ - **Notes and summaries written before names:** a memory or a summary that says someone's id
1965
+ (`google:1139…'s cloud computer…`) reads with their name wherever it shows (prompts, recall, the
1966
+ Memories page, the terminal), substituted when it's shown: nothing stored is changed, and nothing
1967
+ needs migrating.
1968
+ - **The web:** the Members tab (people, requests to join, invitations), the space header's faces,
1969
+ other people's Personal spaces ("Ana Lima's Personal"), invitations ("Ana Lima invited you"), chat
1970
+ messages and the conversation's people, memories (grouped, by whom, search), routines, skills
1971
+ ("Made by"), apps ("by"), computers (whose each is, who asks first, who started a job or made a
1972
+ preview), usage and the org's people show names. **The terminal:** `/computers`, `/approvals`,
1973
+ `/requests`, `/grant`, `/invitations`, memories and messages, likewise; `/remove` takes a person's
1974
+ id with a colon (`google:1139…`).
1975
+ - **Share refusals** name the spaces a write would reveal ("Ana Lima's Personal space"), not their
1976
+ ids. An org invitation made by a space invitation says who invited them.
1977
+
1978
+ ## 1.0.0-rc.6 — 2026-10-30
1979
+
1980
+ - **Computer program:** an app on another machine over plain `ws:` (an `http://` address that isn't
1981
+ localhost) fails at once, saying to use https, instead of waiting to connect forever: Oxian
1982
+ refuses plain `ws:` but to this machine.
1983
+ - **Cloud pools:** a pool grown for a wake isn't shrunk while its VM boots. `pool.take` records what
1984
+ it waits for (`poolWant`), and `pool.tick` sizes each pool to its floor, the takes of the last 2
1985
+ minutes and the wakes still waiting. Before, the next minute's sizing set the pool back to its
1986
+ floor, deleting the VM a wake had grown it for before it connected.
1987
+ - **Cloud computers:** `cloudComputer.sizes` also says whether the person asking may make one now
1988
+ (`create`, and `why` not: `admins`, `budget`), and the warm and view minutes; `cloud.may` says
1989
+ just that. The web's "Use a cloud computer" choice shows why it can't be picked, and the copy says
1990
+ the app's minutes.
1991
+ - **Cloud computers shared into a space:** each computer's state is kept on it and its desks
1992
+ (`status`: `{ kind: "cloud", state, size }`, set with the new system Action `computer.mark`, as
1993
+ the cloud plugin sees it change), so the space's members see how anyone's is (asleep, waking,
1994
+ awake), not "offline".
1995
+ - **Previews:** `preview.here` records carry their address (`url`); the web no longer works it out.
1996
+ `computer.preview` and `computer.scope` take a `desk` (one of the space's), and so does
1997
+ `app.publish`: the web makes previews and publishes apps from the computer it's on, not the
1998
+ space's default.
1999
+ - **Apps:** an agent's `publish` asks its person with where the app will be ("wants to publish Shop
2000
+ at https://shop.copilotz.app").
2001
+ - **`org.me`** isn't recorded (it only reads), so reads (queries, Views) ask it too.
2002
+ - **The local cloud host** is one per app and account, whichever executor asks: with several
2003
+ executors, a VM one started was turned away by another.
2004
+
2005
+ ## 1.0.0-rc.5 — 2026-10-30
2006
+
2007
+ - **Cloud computers** (plugin `cloud`, see design/cloud-computers.md): computers the app hosts for
2008
+ its people. A cloud computer is a disk; a VM from a pool serves it for one wake, then goes.
2009
+ `cloud.create` `{ size, in?, name? }` makes one (an org's owners and admins, or its members when
2010
+ the settings say, under the org's monthly `budgetUsd`); work for one that's asleep wakes it (a few
2011
+ seconds; about 30 from cold); unused for `warmMinutes` (10) it's released, and after `coldDays`
2012
+ (7) it goes cold, kept as a snapshot. A person with it open (`computer.view`, every few minutes
2013
+ from its panel) keeps it awake up to `viewMinutes` (120). Its agents ask their person nothing
2014
+ first (the `cloud` settings' `approve`, `[]` by default, in place of the computers plugin's;
2015
+ publishing an app is always asked). `cloud.destroy`, `cloud.org`, queries `cloudComputer.mine` and
2016
+ `cloudComputer.sizes` (each size priced an hour). Hosts are adapters: Compute Engine (`gceHost`:
2017
+ managed instance groups as pools, pd-balanced disks, VMs admitted by their Google identity tokens)
2018
+ and a local one for development and tests. Metered under `computer` as `cloud/<size>` (VM
2019
+ seconds), `cloud/disk` and `cloud/snapshot` (GB-hours).
2020
+ - **Cloud pools** (plugin `cloudPool`): the pools' VMs, where they connect (the `pool` worker kind),
2021
+ and the Actions `cloud` reaches them through: `pool.take`, `pool.serve`, `pool.stop`, `pool.drop`,
2022
+ `pool.renew`, and `pool.tick` each minute (pools sized by the hour). Each VM given is leased:
2023
+ renewed each minute while its computer uses it, deleted once nobody does. A VM serving a computer
2024
+ connects again as itself when its socket drops, until it's told to stop; then, or gone, never
2025
+ again. One runtime has both plugins; an app of many orgs runs `cloudPool` once (its directory's
2026
+ runtime, needing nothing else) and gives each org's runtime `remotePool(call, org)`, the same
2027
+ Actions forwarded there, each org touching only its own VMs.
2028
+ - **Computer program:** `computer pool --app <url>`, a free VM of an app's pool: it waits to serve a
2029
+ computer, mounts its disk, and runs it, connected at the address it's told (its org's). Given the
2030
+ app's socket (`wss://…`), its identity is still for the app's https origin. scripts/cloud has a
2031
+ Google Cloud project's setup and the pool VMs' startup script.
2032
+ - **Previews:** what a job serves, at `https://<computer>-preview.<domain>`, carried to the computer
2033
+ over its own connection (no inbound network), streamed both ways (`computer.http`). For a space's
2034
+ members (a signed cookie, given by the app) or anyone with the link. `computer.preview`,
2035
+ `computer.previews`, `computer.unpreview`, and the agents' `preview` tool. Settings
2036
+ `computers.previews` `{ domain, key }`. WebSockets aren't carried yet.
2037
+ - **Apps** (plugin `apps`): what a job serves, published to run on its own at
2038
+ `https://<label>.copilotz.app`. The space's folder is archived by its computer
2039
+ (`computer.archive`), built (its Dockerfile, else buildpacks) and deployed as a service that
2040
+ scales to zero. `app.publish` (and the agents' `publish` tool, always asked), `app.list`,
2041
+ `app.redeploy`, `app.remove`; builds and running metered under `app`. Hosts: Cloud Run
2042
+ (`cloudRun`) and a local one (`localApps`).
2043
+ - **Apps' safety:** services and images are named `cz-app-<name>` (an app never replaces another
2044
+ service in its project); builds run as `cz-build@<project>` (`buildServiceAccount`), never the
2045
+ project's default service account, as they run the app's own Dockerfile. `app.publish`'s `port`
2046
+ wins over its job's.
2047
+ - **Previews' safety:** a preview's `Set-Cookie` loses its `Domain` (no preview sets cookies for the
2048
+ domain's other hosts); a request with several `cz_preview` cookies gets in when any is its host's.
2049
+ - **Jobs** can say their `port` (a preview's) and be kept (`keep`): a kept job runs again when its
2050
+ computer wakes.
2051
+ - **A person's panel** (`computer.work`): `wake` wakes a computer that sleeps (its page opened);
2052
+ what only reads (`jobs.list`, `jobs.logs`, `files.list`, `files.read`, `search`) neither wakes it
2053
+ nor keeps it awake, so a page left open lets it sleep (`computer.view` keeps it awake while
2054
+ viewed, up to the limit). A computer the app makes says what its agents ask about
2055
+ (`computer.provision`'s `approve`, kept on it and its desks).
2056
+ - **On the web** (`copilotz/plugins/compute/web`: `computersWeb`, `cloudWeb`, `appsWeb`):
2057
+ - adding a computer is one choice: a cloud computer (its sizes, priced an hour), your own machine,
2058
+ or one of yours;
2059
+ - a cloud computer shows its state, how long it's been awake and about what that came to; asleep,
2060
+ waking it, with honest progress; deleting it, asked first;
2061
+ - a job serving a port can be previewed (members, or anyone with the link), opened, copied and
2062
+ published as an app (live as it builds), and a space has an Apps tab;
2063
+ - jobs can be kept running.
2064
+ - **Web host:** routes by host (`{ host }` beside `{ path }`); a trusted front (`front`: a secret
2065
+ header and the host it forwards) for apps behind a proxy; orgs claim hosts in the directory
2066
+ (`orgHost`), resolved at `/__copilotz/hosts/resolve`.
2067
+ - **Runtime:** `runtime.workers.dispatch(kind, id, workload, body?)`, for host code (a route)
2068
+ streaming work to a connected worker.
2069
+ - **Usage:** `usage.quote` prices quantities as a use would be, without recording one.
2070
+
2071
+ ## 1.0.0-rc.4 — 2026-10-30
2072
+
2073
+ - **Usage: every use has a price.** It's the cost (a margin of 0) unless the app's price book says
2074
+ otherwise: rates of its own, or a gross `margin` on the cost (`{ margin: 0.9 }` is ten times the
2075
+ cost), from its `since` date on. `markup` is gone: a margin says it. Uses recorded before count at
2076
+ their cost, in totals and when re-rated.
2077
+ - **Usage: by part.** Each record keeps its cost and price by part (input, cache reads, cache
2078
+ writes, output, reasoning…) and what caching saved; totals and rollups sum them.
2079
+ - **Usage: people see prices.** `usage.totals`, `usage.org` and `usage.calls` give people prices
2080
+ only; costs (and so margins) only platform staff and the system. Each of `usage.org` and
2081
+ `usage.calls` says whether it shows costs (`costs`).
2082
+ - **Usage page and `/usage`:** spend (the price) everywhere, with caching visible: hit rate, what
2083
+ reading and writing the cache was charged, and what it saved, overall and by model; cached tokens
2084
+ in the chart and in each call. Platform staff also see cost and gross margin, marked staff-only.
2085
+ - **Models:** OpenAI-compatible providers' cache reads and writes are read as each reports them
2086
+ (DeepSeek's cache hits, Moonshot's cached tokens, OpenRouter's cache writes).
2087
+
1
2088
  ## 1.0.0-rc.3 — 2026-10-30
2
2089
 
3
2090
  - **Computers:** connecting one more app (`computer install <app> --code`) no longer stops the