copilotz 1.0.0-rc.3 → 1.0.0-rc.31

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