copilotz 1.0.0-rc.2 → 1.0.0-rc.21

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 (1014) hide show
  1. package/CHANGELOG.md +927 -0
  2. package/README.md +351 -35
  3. package/hosts/orgs/mod.d.ts +29 -3
  4. package/hosts/orgs/mod.js +135 -12
  5. package/hosts/web/files.d.ts +6 -2
  6. package/hosts/web/files.js +36 -3
  7. package/hosts/web/mod.d.ts +1 -1
  8. package/hosts/web/mod.js +1 -1
  9. package/hosts/web/node/mod.d.ts +1 -1
  10. package/hosts/web/node/mod.js +1 -1
  11. package/hosts/web/node/serve.d.ts +26 -0
  12. package/hosts/web/node/serve.js +27 -2
  13. package/hosts/web/orgs.d.ts +36 -0
  14. package/hosts/web/orgs.js +21 -3
  15. package/hosts/web/pwa.js +1 -1
  16. package/hosts/web/routes.d.ts +90 -6
  17. package/hosts/web/routes.js +190 -34
  18. package/hosts/web/server.d.ts +13 -2
  19. package/hosts/web/server.js +12 -4
  20. package/hosts/web/style.d.ts +1 -1
  21. package/hosts/web/style.js +10 -0
  22. package/hosts/web/toolkit/button.js +6 -0
  23. package/hosts/web/toolkit/copy-button.js +4 -0
  24. package/hosts/web/toolkit/icon-button.js +6 -0
  25. package/hosts/web/toolkit/icon.d.ts +1 -0
  26. package/hosts/web/toolkit/icon.js +2 -0
  27. package/hosts/web/toolkit/input.js +6 -0
  28. package/hosts/web/toolkit/time.js +2 -1
  29. package/package.json +10 -6
  30. package/plugins/access/accounts/actions/complete.js +2 -2
  31. package/plugins/access/accounts/actions/connect.js +2 -2
  32. package/plugins/access/accounts/actions/disconnect.js +2 -2
  33. package/plugins/access/accounts/actions/model-key.d.ts +5 -0
  34. package/plugins/access/accounts/actions/model-key.js +102 -0
  35. package/plugins/access/accounts/collections/account.d.ts +2 -2
  36. package/plugins/access/accounts/collections/account.js +1 -2
  37. package/plugins/access/accounts/collections/flow.d.ts +1 -1
  38. package/plugins/access/accounts/collections/model-key.d.ts +58 -0
  39. package/plugins/access/accounts/collections/model-key.js +17 -0
  40. package/plugins/access/accounts/mod.d.ts +5 -0
  41. package/plugins/access/accounts/mod.js +14 -1
  42. package/plugins/access/accounts/resources/models.js +2 -0
  43. package/plugins/access/accounts/shared/rules.js +1 -1
  44. package/plugins/access/accounts/shared/settings.js +2 -2
  45. package/plugins/access/contacts/actions/chat.d.ts +1 -0
  46. package/plugins/access/contacts/actions/chat.js +45 -0
  47. package/plugins/access/contacts/actions/forget.d.ts +1 -0
  48. package/plugins/access/contacts/actions/forget.js +56 -0
  49. package/plugins/access/contacts/actions/start.d.ts +1 -0
  50. package/plugins/access/contacts/actions/start.js +50 -0
  51. package/plugins/access/contacts/collections/contact.d.ts +81 -0
  52. package/plugins/access/contacts/collections/contact.js +58 -0
  53. package/plugins/access/contacts/contract.d.ts +10 -0
  54. package/plugins/access/contacts/contract.js +10 -0
  55. package/plugins/access/contacts/mod.d.ts +27 -0
  56. package/plugins/access/contacts/mod.js +49 -0
  57. package/plugins/access/contacts/views/contact.d.ts +8 -0
  58. package/plugins/access/contacts/views/contact.js +25 -0
  59. package/plugins/access/contacts/web.d.ts +7 -0
  60. package/plugins/access/contacts/web.js +11 -0
  61. package/plugins/access/directory/actions/code.d.ts +4 -0
  62. package/plugins/access/directory/actions/code.js +135 -0
  63. package/plugins/access/directory/actions/host.d.ts +2 -0
  64. package/plugins/access/directory/actions/host.js +54 -0
  65. package/plugins/access/directory/actions/invite.js +1 -2
  66. package/plugins/access/directory/actions/org.js +19 -9
  67. package/plugins/access/directory/collections/credit-code.d.ts +114 -0
  68. package/plugins/access/directory/collections/credit-code.js +28 -0
  69. package/plugins/access/directory/collections/invite.d.ts +1 -1
  70. package/plugins/access/directory/collections/org-host.d.ts +61 -0
  71. package/plugins/access/directory/collections/org-host.js +29 -0
  72. package/plugins/access/directory/collections/org.d.ts +3 -3
  73. package/plugins/access/directory/mod.d.ts +4 -1
  74. package/plugins/access/directory/mod.js +13 -2
  75. package/plugins/access/identity/actions/key.js +3 -3
  76. package/plugins/access/identity/actions/session.js +2 -2
  77. package/plugins/access/identity/collections/credential.d.ts +1 -1
  78. package/plugins/access/identity/collections/credential.js +2 -2
  79. package/plugins/access/identity/mod.js +8 -6
  80. package/plugins/access/mod.d.ts +7 -1
  81. package/plugins/access/mod.js +7 -2
  82. package/plugins/access/spaces/actions/agents.js +15 -12
  83. package/plugins/access/spaces/actions/archive.js +4 -5
  84. package/plugins/access/spaces/actions/can.js +4 -4
  85. package/plugins/access/spaces/actions/create.js +12 -3
  86. package/plugins/access/spaces/actions/invitation.js +16 -13
  87. package/plugins/access/spaces/actions/keep.d.ts +1 -0
  88. package/plugins/access/spaces/actions/keep.js +55 -0
  89. package/plugins/access/spaces/actions/leave.js +2 -2
  90. package/plugins/access/spaces/actions/member.js +46 -38
  91. package/plugins/access/spaces/actions/org.d.ts +1 -0
  92. package/plugins/access/spaces/actions/org.js +26 -17
  93. package/plugins/access/spaces/actions/personal.js +5 -2
  94. package/plugins/access/spaces/actions/rename.js +8 -5
  95. package/plugins/access/spaces/actions/request.js +8 -13
  96. package/plugins/access/spaces/actions/share.js +2 -3
  97. package/plugins/access/spaces/collections/invitation.js +2 -2
  98. package/plugins/access/spaces/collections/member.d.ts +1 -1
  99. package/plugins/access/spaces/collections/profile.d.ts +61 -0
  100. package/plugins/access/spaces/collections/profile.js +54 -0
  101. package/plugins/access/spaces/collections/request.d.ts +1 -1
  102. package/plugins/access/spaces/collections/request.js +2 -2
  103. package/plugins/access/spaces/collections/space.d.ts +9 -0
  104. package/plugins/access/spaces/collections/space.js +33 -4
  105. package/plugins/access/spaces/contract.d.ts +50 -6
  106. package/plugins/access/spaces/contract.js +3 -0
  107. package/plugins/access/spaces/mod.d.ts +12 -1
  108. package/plugins/access/spaces/mod.js +26 -3
  109. package/plugins/access/spaces/processors/profile.d.ts +7 -0
  110. package/plugins/access/spaces/processors/profile.js +10 -0
  111. package/plugins/access/spaces/resources/commands.js +14 -4
  112. package/plugins/access/spaces/resources/tools.d.ts +0 -5
  113. package/plugins/access/spaces/resources/tools.js +14 -2
  114. package/plugins/access/spaces/shared/agents.js +2 -2
  115. package/plugins/access/spaces/shared/can.d.ts +27 -0
  116. package/plugins/access/spaces/shared/can.js +51 -0
  117. package/plugins/access/spaces/shared/declared.d.ts +21 -0
  118. package/plugins/access/spaces/shared/declared.js +8 -0
  119. package/plugins/access/spaces/shared/labels.d.ts +7 -1
  120. package/plugins/access/spaces/shared/labels.js +79 -11
  121. package/plugins/access/spaces/shared/managers.js +3 -3
  122. package/plugins/access/spaces/shared/names.d.ts +70 -0
  123. package/plugins/access/spaces/shared/names.js +105 -0
  124. package/plugins/access/spaces/shared/profile.d.ts +21 -0
  125. package/plugins/access/spaces/shared/profile.js +27 -0
  126. package/plugins/access/spaces/shared/reach.d.ts +28 -4
  127. package/plugins/access/spaces/shared/reach.js +81 -14
  128. package/plugins/access/spaces/shared/rules.d.ts +10 -5
  129. package/plugins/access/spaces/shared/rules.js +39 -12
  130. package/plugins/access/spaces/shared/seat.d.ts +10 -0
  131. package/plugins/access/spaces/shared/seat.js +29 -0
  132. package/plugins/access/spaces/views/elsewhere.d.ts +2 -1
  133. package/plugins/access/spaces/views/elsewhere.js +30 -8
  134. package/plugins/access/spaces/views/web/agents.d.ts +6 -1
  135. package/plugins/access/spaces/views/web/agents.js +7 -5
  136. package/plugins/access/spaces/views/web/header.d.ts +3 -1
  137. package/plugins/access/spaces/views/web/header.js +5 -5
  138. package/plugins/access/spaces/views/web/invitation.d.ts +3 -1
  139. package/plugins/access/spaces/views/web/invitation.js +2 -2
  140. package/plugins/access/spaces/views/web/invitations.js +3 -1
  141. package/plugins/access/spaces/views/web/invited.js +3 -1
  142. package/plugins/access/spaces/views/web/inviting.js +5 -3
  143. package/plugins/access/spaces/views/web/members.d.ts +3 -1
  144. package/plugins/access/spaces/views/web/members.js +52 -19
  145. package/plugins/access/spaces/views/web/org-about.js +3 -3
  146. package/plugins/access/spaces/views/web/org-members.d.ts +1 -1
  147. package/plugins/access/spaces/views/web/org-members.js +8 -7
  148. package/plugins/access/spaces/views/web/palette.js +18 -10
  149. package/plugins/access/spaces/views/web/panel.d.ts +3 -2
  150. package/plugins/access/spaces/views/web/panel.js +33 -17
  151. package/plugins/access/spaces/views/web/pending.d.ts +3 -1
  152. package/plugins/access/spaces/views/web/pending.js +5 -5
  153. package/plugins/access/spaces/views/web/sections.d.ts +31 -0
  154. package/plugins/access/spaces/views/web/sections.js +22 -0
  155. package/plugins/access/spaces/views/web/space.d.ts +4 -2
  156. package/plugins/access/spaces/views/web/space.js +25 -9
  157. package/plugins/access/spaces/views/web/spaces.js +3 -2
  158. package/plugins/access/spaces/views/web/style.d.ts +1 -1
  159. package/plugins/access/spaces/views/web/style.js +41 -0
  160. package/plugins/access/spaces/views/web/tabs.d.ts +18 -6
  161. package/plugins/access/spaces/views/web/tabs.js +24 -8
  162. package/plugins/access/spaces/views/web/tree.d.ts +3 -1
  163. package/plugins/access/spaces/views/web/tree.js +10 -9
  164. package/plugins/access/spaces/views/web/who.d.ts +14 -5
  165. package/plugins/access/spaces/views/web/who.js +25 -10
  166. package/plugins/access/spaces/views/where.d.ts +4 -2
  167. package/plugins/access/spaces/views/where.js +18 -3
  168. package/plugins/access/spaces/web.js +19 -2
  169. package/plugins/access/web.d.ts +1 -0
  170. package/plugins/access/web.js +1 -0
  171. package/plugins/agents/chat/actions/erase.d.ts +1 -0
  172. package/plugins/agents/chat/actions/erase.js +51 -0
  173. package/plugins/agents/chat/actions/fork.js +2 -2
  174. package/plugins/agents/chat/actions/move.js +2 -2
  175. package/plugins/agents/chat/actions/open.d.ts +1 -0
  176. package/plugins/agents/chat/actions/open.js +49 -0
  177. package/plugins/agents/chat/actions/quiet.d.ts +1 -0
  178. package/plugins/agents/chat/actions/quiet.js +33 -0
  179. package/plugins/agents/chat/actions/say.d.ts +1 -0
  180. package/plugins/agents/chat/actions/say.js +82 -0
  181. package/plugins/agents/chat/actions/send.js +77 -18
  182. package/plugins/agents/chat/actions/shown.d.ts +1 -0
  183. package/plugins/agents/chat/actions/shown.js +35 -0
  184. package/plugins/agents/chat/actions/stop.js +9 -2
  185. package/plugins/agents/chat/collections/file.d.ts +2 -0
  186. package/plugins/agents/chat/collections/file.js +4 -2
  187. package/plugins/agents/chat/collections/intent.d.ts +124 -0
  188. package/plugins/agents/chat/collections/intent.js +52 -0
  189. package/plugins/agents/chat/collections/message.d.ts +223 -3
  190. package/plugins/agents/chat/collections/message.js +73 -6
  191. package/plugins/agents/chat/collections/shown.d.ts +105 -0
  192. package/plugins/agents/chat/collections/shown.js +34 -0
  193. package/plugins/agents/chat/collections/thread.d.ts +9 -0
  194. package/plugins/agents/chat/collections/thread.js +5 -3
  195. package/plugins/agents/chat/contract.d.ts +19 -8
  196. package/plugins/agents/chat/contract.js +9 -0
  197. package/plugins/agents/chat/mod.d.ts +30 -7
  198. package/plugins/agents/chat/mod.js +62 -9
  199. package/plugins/agents/chat/processors/failed.js +21 -5
  200. package/plugins/agents/chat/processors/turn.d.ts +1 -1
  201. package/plugins/agents/chat/processors/turn.js +139 -43
  202. package/plugins/agents/chat/shared/agents.d.ts +9 -0
  203. package/plugins/agents/chat/shared/delivery.d.ts +23 -3
  204. package/plugins/agents/chat/shared/delivery.js +96 -10
  205. package/plugins/agents/chat/shared/lineage.d.ts +31 -5
  206. package/plugins/agents/chat/shared/lineage.js +65 -21
  207. package/plugins/agents/chat/shared/origin.d.ts +22 -0
  208. package/plugins/agents/chat/shared/origin.js +11 -0
  209. package/plugins/agents/chat/shared/send.d.ts +3 -1
  210. package/plugins/agents/chat/shared/send.js +82 -3
  211. package/plugins/agents/chat/shared/tools.d.ts +33 -0
  212. package/plugins/agents/chat/shared/tools.js +28 -0
  213. package/plugins/agents/chat/shared/types.d.ts +105 -9
  214. package/plugins/agents/chat/shared/types.js +3 -0
  215. package/plugins/agents/chat/views/context.d.ts +4 -2
  216. package/plugins/agents/chat/views/context.js +7 -3
  217. package/plugins/agents/chat/views/history.d.ts +4 -0
  218. package/plugins/agents/chat/views/message.d.ts +8 -2
  219. package/plugins/agents/chat/views/message.js +46 -10
  220. package/plugins/agents/chat/views/participants.js +7 -1
  221. package/plugins/agents/chat/views/prompt.d.ts +3 -1
  222. package/plugins/agents/chat/views/prompt.js +66 -18
  223. package/plugins/agents/chat/views/terminal/agent-prompt.js +2 -2
  224. package/plugins/agents/chat/views/terminal/author.js +5 -1
  225. package/plugins/agents/chat/views/web/composer.d.ts +7 -2
  226. package/plugins/agents/chat/views/web/composer.js +9 -1
  227. package/plugins/agents/chat/views/web/conversation.d.ts +3 -2
  228. package/plugins/agents/chat/views/web/conversation.js +18 -5
  229. package/plugins/agents/chat/views/web/header.d.ts +2 -1
  230. package/plugins/agents/chat/views/web/header.js +1 -1
  231. package/plugins/agents/chat/views/web/held.d.ts +10 -9
  232. package/plugins/agents/chat/views/web/held.js +27 -20
  233. package/plugins/agents/chat/views/web/home.d.ts +3 -2
  234. package/plugins/agents/chat/views/web/home.js +1 -1
  235. package/plugins/agents/chat/views/web/message.d.ts +10 -1
  236. package/plugins/agents/chat/views/web/message.js +23 -5
  237. package/plugins/agents/chat/views/web/over.d.ts +9 -8
  238. package/plugins/agents/chat/views/web/over.js +10 -9
  239. package/plugins/agents/chat/views/web/style.d.ts +1 -1
  240. package/plugins/agents/chat/views/web/style.js +19 -6
  241. package/plugins/agents/chat/web.d.ts +5 -1
  242. package/plugins/agents/chat/web.js +5 -1
  243. package/plugins/agents/history/collections/outline.d.ts +74 -7
  244. package/plugins/agents/history/collections/outline.js +20 -4
  245. package/plugins/agents/history/collections/summary.d.ts +1 -1
  246. package/plugins/agents/history/mod.d.ts +14 -6
  247. package/plugins/agents/history/mod.js +16 -7
  248. package/plugins/agents/history/processors/compact.d.ts +6 -1
  249. package/plugins/agents/history/processors/compact.js +112 -43
  250. package/plugins/agents/history/processors/erase.d.ts +3 -0
  251. package/plugins/agents/history/processors/erase.js +11 -0
  252. package/plugins/agents/history/resources/tools.js +12 -3
  253. package/plugins/agents/history/shared/lines.d.ts +5 -2
  254. package/plugins/agents/history/shared/lines.js +10 -2
  255. package/plugins/agents/history/shared/settings.d.ts +5 -1
  256. package/plugins/agents/history/shared/weight.d.ts +28 -0
  257. package/plugins/agents/history/shared/weight.js +62 -0
  258. package/plugins/agents/history/views/history.d.ts +4 -1
  259. package/plugins/agents/history/views/history.js +21 -7
  260. package/plugins/agents/history/views/since.d.ts +6 -3
  261. package/plugins/agents/history/views/since.js +9 -2
  262. package/plugins/agents/memory/collections/memory.js +17 -6
  263. package/plugins/agents/memory/mod.js +4 -3
  264. package/plugins/agents/memory/processors/extract.d.ts +1 -1
  265. package/plugins/agents/memory/processors/extract.js +14 -4
  266. package/plugins/agents/memory/resources/context.d.ts +9 -1
  267. package/plugins/agents/memory/resources/context.js +7 -1
  268. package/plugins/agents/memory/resources/tools.js +12 -9
  269. package/plugins/agents/memory/shared/scope.d.ts +12 -3
  270. package/plugins/agents/memory/shared/scope.js +25 -6
  271. package/plugins/agents/memory/shared/search.d.ts +3 -1
  272. package/plugins/agents/memory/shared/search.js +18 -4
  273. package/plugins/agents/memory/shared/settings.d.ts +12 -4
  274. package/plugins/agents/memory/shared/settings.js +15 -4
  275. package/plugins/agents/memory/views/context.d.ts +4 -1
  276. package/plugins/agents/memory/views/context.js +27 -11
  277. package/plugins/agents/memory/views/memory.d.ts +1 -0
  278. package/plugins/agents/memory/views/memory.js +4 -2
  279. package/plugins/agents/memory/views/terminal/memory.d.ts +4 -1
  280. package/plugins/agents/memory/views/terminal/memory.js +7 -2
  281. package/plugins/agents/memory/views/web/card.d.ts +4 -2
  282. package/plugins/agents/memory/views/web/card.js +4 -3
  283. package/plugins/agents/memory/views/web/list.d.ts +3 -1
  284. package/plugins/agents/memory/views/web/list.js +20 -9
  285. package/plugins/agents/memory/views/web/memories.js +5 -1
  286. package/plugins/agents/memory/views/web/pick.js +8 -5
  287. package/plugins/agents/memory/web.js +9 -1
  288. package/plugins/agents/mod.d.ts +7 -3
  289. package/plugins/agents/mod.js +7 -3
  290. package/plugins/agents/openapi/actions/operation.d.ts +11 -0
  291. package/plugins/agents/openapi/actions/operation.js +86 -0
  292. package/plugins/agents/openapi/contract.d.ts +79 -0
  293. package/plugins/agents/openapi/contract.js +1 -0
  294. package/plugins/agents/openapi/mod.d.ts +5 -0
  295. package/plugins/agents/openapi/mod.js +78 -0
  296. package/plugins/agents/openapi/resources/tools.d.ts +9 -0
  297. package/plugins/agents/openapi/resources/tools.js +23 -0
  298. package/plugins/agents/openapi/shared/files.d.ts +4 -0
  299. package/plugins/agents/openapi/shared/files.js +126 -0
  300. package/plugins/agents/openapi/shared/plan.d.ts +34 -0
  301. package/plugins/agents/openapi/shared/plan.js +122 -0
  302. package/plugins/agents/openapi/shared/request.d.ts +15 -0
  303. package/plugins/agents/openapi/shared/request.js +87 -0
  304. package/plugins/agents/openapi/shared/response.d.ts +24 -0
  305. package/plugins/agents/openapi/shared/response.js +133 -0
  306. package/plugins/agents/openapi/shared/schema.d.ts +20 -0
  307. package/plugins/agents/openapi/shared/schema.js +128 -0
  308. package/plugins/agents/openapi/shared/settings.d.ts +22 -0
  309. package/plugins/agents/openapi/shared/settings.js +34 -0
  310. package/plugins/agents/openapi/shared/spec.d.ts +55 -0
  311. package/plugins/agents/openapi/shared/spec.js +99 -0
  312. package/plugins/agents/routines/actions/create.js +24 -12
  313. package/plugins/agents/routines/actions/delete.js +2 -2
  314. package/plugins/agents/routines/actions/origin.d.ts +1 -0
  315. package/plugins/agents/routines/actions/origin.js +32 -0
  316. package/plugins/agents/routines/actions/pause.js +2 -2
  317. package/plugins/agents/routines/actions/resume.js +2 -2
  318. package/plugins/agents/routines/actions/run.js +4 -4
  319. package/plugins/agents/routines/actions/update.js +18 -10
  320. package/plugins/agents/routines/collections/routine.d.ts +15 -3
  321. package/plugins/agents/routines/collections/routine.js +14 -8
  322. package/plugins/agents/routines/collections/run.d.ts +10 -1
  323. package/plugins/agents/routines/collections/run.js +2 -0
  324. package/plugins/agents/routines/contract.d.ts +7 -1
  325. package/plugins/agents/routines/mod.d.ts +10 -2
  326. package/plugins/agents/routines/mod.js +14 -2
  327. package/plugins/agents/routines/resources/tools.js +64 -13
  328. package/plugins/agents/routines/shared/fire.d.ts +5 -2
  329. package/plugins/agents/routines/shared/fire.js +30 -14
  330. package/plugins/agents/routines/shared/routines.d.ts +17 -8
  331. package/plugins/agents/routines/shared/routines.js +33 -19
  332. package/plugins/agents/routines/shared/schedule.d.ts +5 -0
  333. package/plugins/agents/routines/shared/schedule.js +12 -1
  334. package/plugins/agents/routines/views/web/form.d.ts +4 -3
  335. package/plugins/agents/routines/views/web/form.js +29 -7
  336. package/plugins/agents/routines/views/web/new.js +1 -1
  337. package/plugins/agents/routines/views/web/page.d.ts +2 -1
  338. package/plugins/agents/routines/views/web/page.js +32 -10
  339. package/plugins/agents/routines/views/web/routines.d.ts +2 -1
  340. package/plugins/agents/routines/views/web/routines.js +1 -1
  341. package/plugins/agents/routines/views/web/step.js +3 -1
  342. package/plugins/agents/routines/views/web/style.d.ts +1 -1
  343. package/plugins/agents/routines/views/web/style.js +1 -0
  344. package/plugins/agents/routines/web.js +1 -1
  345. package/plugins/agents/skills/actions/create.js +2 -2
  346. package/plugins/agents/skills/actions/delete.js +2 -2
  347. package/plugins/agents/skills/actions/update.js +2 -2
  348. package/plugins/agents/skills/collections/skill.js +4 -4
  349. package/plugins/agents/skills/shared/write.d.ts +2 -3
  350. package/plugins/agents/skills/shared/write.js +2 -1
  351. package/plugins/agents/skills/views/web/page.js +7 -3
  352. package/plugins/agents/skills/web.js +3 -1
  353. package/plugins/agents/team/actions/agent.js +5 -6
  354. package/plugins/agents/team/collections/agent.js +3 -3
  355. package/plugins/agents/team/contract.d.ts +7 -4
  356. package/plugins/agents/team/views/web/agent-fields.js +3 -4
  357. package/plugins/agents/team/views/web/model-pick.d.ts +25 -0
  358. package/plugins/agents/team/views/web/model-pick.js +39 -0
  359. package/plugins/agents/team/views/web/model-picker.d.ts +23 -0
  360. package/plugins/agents/team/views/web/model-picker.js +206 -0
  361. package/plugins/agents/team/views/web/style.d.ts +2 -2
  362. package/plugins/agents/team/views/web/style.js +52 -1
  363. package/plugins/agents/team/web.d.ts +4 -2
  364. package/plugins/agents/team/web.js +6 -2
  365. package/plugins/agents/tiers/actions/choose.d.ts +2 -0
  366. package/plugins/agents/tiers/actions/choose.js +98 -0
  367. package/plugins/agents/tiers/actions/model.d.ts +1 -0
  368. package/plugins/agents/tiers/actions/model.js +36 -0
  369. package/plugins/agents/tiers/collections/choice.d.ts +48 -0
  370. package/plugins/agents/tiers/collections/choice.js +59 -0
  371. package/plugins/agents/tiers/contract.d.ts +19 -0
  372. package/plugins/agents/tiers/contract.js +1 -0
  373. package/plugins/agents/tiers/mod.d.ts +54 -0
  374. package/plugins/agents/tiers/mod.js +92 -0
  375. package/plugins/agents/tiers/shared/shown.d.ts +87 -0
  376. package/plugins/agents/tiers/shared/shown.js +155 -0
  377. package/plugins/agents/tiers/shared/tiers.d.ts +103 -0
  378. package/plugins/agents/tiers/shared/tiers.js +129 -0
  379. package/plugins/agents/tiers/views/web/org.d.ts +38 -0
  380. package/plugins/agents/tiers/views/web/org.js +142 -0
  381. package/plugins/agents/tiers/views/web/space.d.ts +43 -0
  382. package/plugins/agents/tiers/views/web/space.js +103 -0
  383. package/plugins/agents/tiers/views/web/style.d.ts +7 -0
  384. package/plugins/agents/tiers/views/web/style.js +87 -0
  385. package/plugins/agents/tiers/views/web/words.d.ts +21 -0
  386. package/plugins/agents/tiers/views/web/words.js +49 -0
  387. package/plugins/agents/tiers/web.d.ts +18 -0
  388. package/plugins/agents/tiers/web.js +40 -0
  389. package/plugins/agents/web.d.ts +1 -0
  390. package/plugins/agents/web.js +1 -0
  391. package/plugins/billing/credits/actions/check.d.ts +5 -0
  392. package/plugins/billing/credits/actions/check.js +97 -0
  393. package/plugins/billing/credits/actions/manage.d.ts +9 -0
  394. package/plugins/billing/credits/actions/manage.js +266 -0
  395. package/plugins/billing/credits/actions/state.d.ts +2 -0
  396. package/plugins/billing/credits/actions/state.js +172 -0
  397. package/plugins/billing/credits/collections/credit.d.ts +110 -0
  398. package/plugins/billing/credits/collections/credit.js +31 -0
  399. package/plugins/billing/credits/collections/payment.d.ts +139 -0
  400. package/plugins/billing/credits/collections/payment.js +32 -0
  401. package/plugins/billing/credits/collections/plan.d.ts +428 -0
  402. package/plugins/billing/credits/collections/plan.js +97 -0
  403. package/plugins/billing/credits/collections/room.d.ts +85 -0
  404. package/plugins/billing/credits/collections/room.js +24 -0
  405. package/plugins/billing/credits/contract.d.ts +19 -0
  406. package/plugins/billing/credits/contract.js +12 -0
  407. package/plugins/billing/credits/mod.d.ts +38 -0
  408. package/plugins/billing/credits/mod.js +72 -0
  409. package/plugins/billing/credits/shared/apply.d.ts +66 -0
  410. package/plugins/billing/credits/shared/apply.js +106 -0
  411. package/plugins/billing/credits/shared/settings.d.ts +70 -0
  412. package/plugins/billing/credits/shared/settings.js +28 -0
  413. package/plugins/billing/credits/shared/standing.d.ts +71 -0
  414. package/plugins/billing/credits/shared/standing.js +235 -0
  415. package/plugins/billing/credits/shared/walk.d.ts +50 -0
  416. package/plugins/billing/credits/shared/walk.js +127 -0
  417. package/plugins/billing/credits/views/web/add.d.ts +25 -0
  418. package/plugins/billing/credits/views/web/add.js +92 -0
  419. package/plugins/billing/credits/views/web/budget.d.ts +16 -0
  420. package/plugins/billing/credits/views/web/budget.js +62 -0
  421. package/plugins/billing/credits/views/web/composer.d.ts +13 -0
  422. package/plugins/billing/credits/views/web/composer.js +64 -0
  423. package/plugins/billing/credits/views/web/history.d.ts +12 -0
  424. package/plugins/billing/credits/views/web/history.js +55 -0
  425. package/plugins/billing/credits/views/web/numbers.d.ts +256 -0
  426. package/plugins/billing/credits/views/web/numbers.js +291 -0
  427. package/plugins/billing/credits/views/web/org.d.ts +31 -0
  428. package/plugins/billing/credits/views/web/org.js +238 -0
  429. package/plugins/billing/credits/views/web/plan.d.ts +28 -0
  430. package/plugins/billing/credits/views/web/plan.js +84 -0
  431. package/plugins/billing/credits/views/web/staff.d.ts +20 -0
  432. package/plugins/billing/credits/views/web/staff.js +265 -0
  433. package/plugins/billing/credits/views/web/style.d.ts +9 -0
  434. package/plugins/billing/credits/views/web/style.js +190 -0
  435. package/plugins/billing/credits/views/web/types.d.ts +17 -0
  436. package/plugins/billing/credits/views/web/types.js +32 -0
  437. package/plugins/billing/credits/web.d.ts +12 -0
  438. package/plugins/billing/credits/web.js +33 -0
  439. package/plugins/billing/mod.d.ts +8 -3
  440. package/plugins/billing/mod.js +7 -3
  441. package/plugins/billing/stripe/actions/checkout.d.ts +4 -0
  442. package/plugins/billing/stripe/actions/checkout.js +188 -0
  443. package/plugins/billing/stripe/mod.d.ts +18 -0
  444. package/plugins/billing/stripe/mod.js +33 -0
  445. package/plugins/billing/stripe/shared/api.d.ts +14 -0
  446. package/plugins/billing/stripe/shared/api.js +42 -0
  447. package/plugins/billing/stripe/shared/events.d.ts +42 -0
  448. package/plugins/billing/stripe/shared/events.js +226 -0
  449. package/plugins/billing/stripe/shared/settings.d.ts +34 -0
  450. package/plugins/billing/stripe/shared/settings.js +10 -0
  451. package/plugins/billing/stripe/webhook.d.ts +17 -0
  452. package/plugins/billing/stripe/webhook.js +45 -0
  453. package/plugins/billing/usage/actions/activity.d.ts +84 -0
  454. package/plugins/billing/usage/actions/activity.js +310 -0
  455. package/plugins/billing/usage/actions/close.js +36 -5
  456. package/plugins/billing/usage/actions/org.d.ts +29 -1
  457. package/plugins/billing/usage/actions/org.js +32 -62
  458. package/plugins/billing/usage/actions/quote.d.ts +7 -0
  459. package/plugins/billing/usage/actions/quote.js +86 -0
  460. package/plugins/billing/usage/actions/rerate.js +23 -2
  461. package/plugins/billing/usage/collections/closed.d.ts +11 -1
  462. package/plugins/billing/usage/collections/closed.js +4 -1
  463. package/plugins/billing/usage/collections/rollup.d.ts +81 -2
  464. package/plugins/billing/usage/collections/rollup.js +16 -4
  465. package/plugins/billing/usage/collections/usage.d.ts +75 -5
  466. package/plugins/billing/usage/collections/usage.js +34 -15
  467. package/plugins/billing/usage/mod.d.ts +31 -11
  468. package/plugins/billing/usage/mod.js +41 -13
  469. package/plugins/billing/usage/resources/commands.js +1 -1
  470. package/plugins/billing/usage/shared/categories.d.ts +23 -0
  471. package/plugins/billing/usage/shared/categories.js +40 -0
  472. package/plugins/billing/usage/shared/names.d.ts +45 -0
  473. package/plugins/billing/usage/shared/names.js +60 -0
  474. package/plugins/billing/usage/shared/rate.d.ts +39 -11
  475. package/plugins/billing/usage/shared/rate.js +90 -32
  476. package/plugins/billing/usage/shared/settings.d.ts +18 -1
  477. package/plugins/billing/usage/shared/settings.js +11 -2
  478. package/plugins/billing/usage/shared/totals.d.ts +38 -8
  479. package/plugins/billing/usage/shared/totals.js +87 -22
  480. package/plugins/billing/usage/shared/use.d.ts +12 -1
  481. package/plugins/billing/usage/shared/use.js +14 -7
  482. package/plugins/billing/usage/views/terminal/totals.d.ts +6 -2
  483. package/plugins/billing/usage/views/terminal/totals.js +38 -6
  484. package/plugins/billing/usage/views/web/chart.d.ts +25 -10
  485. package/plugins/billing/usage/views/web/chart.js +67 -39
  486. package/plugins/billing/usage/views/web/numbers.d.ts +143 -48
  487. package/plugins/billing/usage/views/web/numbers.js +250 -56
  488. package/plugins/billing/usage/views/web/org.d.ts +32 -6
  489. package/plugins/billing/usage/views/web/org.js +538 -123
  490. package/plugins/billing/usage/views/web/style.d.ts +9 -5
  491. package/plugins/billing/usage/views/web/style.js +148 -65
  492. package/plugins/billing/usage/web.d.ts +8 -5
  493. package/plugins/billing/usage/web.js +8 -5
  494. package/plugins/billing/web.d.ts +3 -0
  495. package/plugins/billing/web.js +3 -0
  496. package/plugins/compute/apps/actions/build.d.ts +1 -0
  497. package/plugins/compute/apps/actions/build.js +99 -0
  498. package/plugins/compute/apps/actions/configure.d.ts +1 -0
  499. package/plugins/compute/apps/actions/configure.js +74 -0
  500. package/plugins/compute/apps/actions/list.d.ts +1 -0
  501. package/plugins/compute/apps/actions/list.js +13 -0
  502. package/plugins/compute/apps/actions/meter.d.ts +1 -0
  503. package/plugins/compute/apps/actions/meter.js +43 -0
  504. package/plugins/compute/apps/actions/publish.d.ts +1 -0
  505. package/plugins/compute/apps/actions/publish.js +41 -0
  506. package/plugins/compute/apps/actions/redeploy.d.ts +1 -0
  507. package/plugins/compute/apps/actions/redeploy.js +26 -0
  508. package/plugins/compute/apps/actions/remove.d.ts +1 -0
  509. package/plugins/compute/apps/actions/remove.js +47 -0
  510. package/plugins/compute/apps/adapters/cloudrun.d.ts +90 -0
  511. package/plugins/compute/apps/adapters/cloudrun.js +353 -0
  512. package/plugins/compute/apps/adapters/front.d.ts +24 -0
  513. package/plugins/compute/apps/adapters/front.js +131 -0
  514. package/plugins/compute/apps/adapters/local.d.ts +15 -0
  515. package/plugins/compute/apps/adapters/local.js +139 -0
  516. package/plugins/compute/apps/adapters/tar.d.ts +29 -0
  517. package/plugins/compute/apps/adapters/tar.js +178 -0
  518. package/plugins/compute/apps/collections/app.d.ts +143 -0
  519. package/plugins/compute/apps/collections/app.js +60 -0
  520. package/plugins/compute/apps/contract.d.ts +73 -0
  521. package/plugins/compute/apps/contract.js +8 -0
  522. package/plugins/compute/apps/mod.d.ts +42 -0
  523. package/plugins/compute/apps/mod.js +69 -0
  524. package/plugins/compute/apps/resources/tools.d.ts +10 -0
  525. package/plugins/compute/apps/resources/tools.js +85 -0
  526. package/plugins/compute/apps/shared/archive.d.ts +24 -0
  527. package/plugins/compute/apps/shared/archive.js +69 -0
  528. package/plugins/compute/apps/shared/claims.d.ts +28 -0
  529. package/plugins/compute/apps/shared/claims.js +18 -0
  530. package/plugins/compute/apps/shared/environment.d.ts +8 -0
  531. package/plugins/compute/apps/shared/environment.js +15 -0
  532. package/plugins/compute/apps/shared/errors.d.ts +4 -0
  533. package/plugins/compute/apps/shared/errors.js +4 -0
  534. package/plugins/compute/apps/shared/host.d.ts +19 -0
  535. package/plugins/compute/apps/shared/host.js +19 -0
  536. package/plugins/compute/apps/shared/label.d.ts +21 -0
  537. package/plugins/compute/apps/shared/label.js +51 -0
  538. package/plugins/compute/apps/shared/meter.d.ts +17 -0
  539. package/plugins/compute/apps/shared/meter.js +29 -0
  540. package/plugins/compute/apps/shared/publish.d.ts +41 -0
  541. package/plugins/compute/apps/shared/publish.js +141 -0
  542. package/plugins/compute/apps/shared/settings.d.ts +49 -0
  543. package/plugins/compute/apps/shared/settings.js +22 -0
  544. package/plugins/compute/apps/views/web/apps.d.ts +54 -0
  545. package/plugins/compute/apps/views/web/apps.js +48 -0
  546. package/plugins/compute/apps/views/web/env.d.ts +54 -0
  547. package/plugins/compute/apps/views/web/env.js +195 -0
  548. package/plugins/compute/apps/views/web/publish.d.ts +24 -0
  549. package/plugins/compute/apps/views/web/publish.js +158 -0
  550. package/plugins/compute/apps/views/web/space.d.ts +16 -0
  551. package/plugins/compute/apps/views/web/space.js +138 -0
  552. package/plugins/compute/apps/views/web/style.d.ts +7 -0
  553. package/plugins/compute/apps/views/web/style.js +155 -0
  554. package/plugins/compute/apps/web.d.ts +17 -0
  555. package/plugins/compute/apps/web.js +35 -0
  556. package/plugins/compute/cloud/actions/create.d.ts +1 -0
  557. package/plugins/compute/cloud/actions/create.js +76 -0
  558. package/plugins/compute/cloud/actions/daily.d.ts +1 -0
  559. package/plugins/compute/cloud/actions/daily.js +75 -0
  560. package/plugins/compute/cloud/actions/destroy.d.ts +1 -0
  561. package/plugins/compute/cloud/actions/destroy.js +71 -0
  562. package/plugins/compute/cloud/actions/may.d.ts +1 -0
  563. package/plugins/compute/cloud/actions/may.js +15 -0
  564. package/plugins/compute/cloud/actions/org.d.ts +1 -0
  565. package/plugins/compute/cloud/actions/org.js +21 -0
  566. package/plugins/compute/cloud/actions/pool-tick.d.ts +4 -0
  567. package/plugins/compute/cloud/actions/pool-tick.js +96 -0
  568. package/plugins/compute/cloud/actions/pool.d.ts +3 -0
  569. package/plugins/compute/cloud/actions/pool.js +98 -0
  570. package/plugins/compute/cloud/actions/release.d.ts +1 -0
  571. package/plugins/compute/cloud/actions/release.js +58 -0
  572. package/plugins/compute/cloud/actions/remote.d.ts +10 -0
  573. package/plugins/compute/cloud/actions/remote.js +24 -0
  574. package/plugins/compute/cloud/actions/tick.d.ts +1 -0
  575. package/plugins/compute/cloud/actions/tick.js +105 -0
  576. package/plugins/compute/cloud/actions/touch.d.ts +1 -0
  577. package/plugins/compute/cloud/actions/touch.js +32 -0
  578. package/plugins/compute/cloud/actions/vms.d.ts +7 -0
  579. package/plugins/compute/cloud/actions/vms.js +211 -0
  580. package/plugins/compute/cloud/actions/wake.d.ts +1 -0
  581. package/plugins/compute/cloud/actions/wake.js +153 -0
  582. package/plugins/compute/cloud/adapters/gce/index.d.ts +73 -0
  583. package/plugins/compute/cloud/adapters/gce/index.js +242 -0
  584. package/plugins/compute/cloud/adapters/local.d.ts +48 -0
  585. package/plugins/compute/cloud/adapters/local.js +188 -0
  586. package/plugins/compute/cloud/collections/cloud-computer.d.ts +109 -0
  587. package/plugins/compute/cloud/collections/cloud-computer.js +89 -0
  588. package/plugins/compute/cloud/collections/pool-vm.d.ts +79 -0
  589. package/plugins/compute/cloud/collections/pool-vm.js +36 -0
  590. package/plugins/compute/cloud/collections/pool-want.d.ts +94 -0
  591. package/plugins/compute/cloud/collections/pool-want.js +27 -0
  592. package/plugins/compute/cloud/contract.d.ts +236 -0
  593. package/plugins/compute/cloud/contract.js +67 -0
  594. package/plugins/compute/cloud/mod.d.ts +97 -0
  595. package/plugins/compute/cloud/mod.js +197 -0
  596. package/plugins/compute/cloud/processors/mark.d.ts +9 -0
  597. package/plugins/compute/cloud/processors/mark.js +13 -0
  598. package/plugins/compute/cloud/resources/tools.d.ts +3 -0
  599. package/plugins/compute/cloud/resources/tools.js +237 -0
  600. package/plugins/compute/cloud/shared/google.d.ts +75 -0
  601. package/plugins/compute/cloud/shared/google.js +218 -0
  602. package/plugins/compute/cloud/shared/host.d.ts +11 -0
  603. package/plugins/compute/cloud/shared/host.js +29 -0
  604. package/plugins/compute/cloud/shared/may.d.ts +21 -0
  605. package/plugins/compute/cloud/shared/may.js +22 -0
  606. package/plugins/compute/cloud/shared/meter.d.ts +36 -0
  607. package/plugins/compute/cloud/shared/meter.js +68 -0
  608. package/plugins/compute/cloud/shared/names.d.ts +10 -0
  609. package/plugins/compute/cloud/shared/names.js +11 -0
  610. package/plugins/compute/cloud/shared/people.d.ts +19 -0
  611. package/plugins/compute/cloud/shared/people.js +12 -0
  612. package/plugins/compute/cloud/shared/records.d.ts +31 -0
  613. package/plugins/compute/cloud/shared/records.js +18 -0
  614. package/plugins/compute/cloud/shared/settings.d.ts +70 -0
  615. package/plugins/compute/cloud/shared/settings.js +47 -0
  616. package/plugins/compute/cloud/shared/time.d.ts +21 -0
  617. package/plugins/compute/cloud/shared/time.js +33 -0
  618. package/plugins/compute/cloud/views/web/cloud.d.ts +79 -0
  619. package/plugins/compute/cloud/views/web/cloud.js +122 -0
  620. package/plugins/compute/cloud/views/web/computer.d.ts +37 -0
  621. package/plugins/compute/cloud/views/web/computer.js +195 -0
  622. package/plugins/compute/cloud/views/web/new.d.ts +27 -0
  623. package/plugins/compute/cloud/views/web/new.js +103 -0
  624. package/plugins/compute/cloud/views/web/style.d.ts +6 -0
  625. package/plugins/compute/cloud/views/web/style.js +84 -0
  626. package/plugins/compute/cloud/web.d.ts +19 -0
  627. package/plugins/compute/cloud/web.js +61 -0
  628. package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
  629. package/plugins/compute/computers/actions/allow-origin.js +48 -0
  630. package/plugins/compute/computers/actions/allowed.d.ts +1 -0
  631. package/plugins/compute/computers/actions/allowed.js +50 -0
  632. package/plugins/compute/computers/actions/approve.js +19 -10
  633. package/plugins/compute/computers/actions/code.js +4 -4
  634. package/plugins/compute/computers/actions/default.js +4 -8
  635. package/plugins/compute/computers/actions/enrollment.d.ts +1 -0
  636. package/plugins/compute/computers/actions/enrollment.js +49 -0
  637. package/plugins/compute/computers/actions/env.d.ts +3 -0
  638. package/plugins/compute/computers/actions/env.js +134 -0
  639. package/plugins/compute/computers/actions/forget-grant.d.ts +1 -0
  640. package/plugins/compute/computers/actions/forget-grant.js +16 -0
  641. package/plugins/compute/computers/actions/forget.js +2 -2
  642. package/plugins/compute/computers/actions/mark.d.ts +1 -0
  643. package/plugins/compute/computers/actions/mark.js +36 -0
  644. package/plugins/compute/computers/actions/move.js +5 -4
  645. package/plugins/compute/computers/actions/preview.d.ts +4 -0
  646. package/plugins/compute/computers/actions/preview.js +183 -0
  647. package/plugins/compute/computers/actions/provision.d.ts +1 -0
  648. package/plugins/compute/computers/actions/provision.js +51 -0
  649. package/plugins/compute/computers/actions/rename.js +2 -2
  650. package/plugins/compute/computers/actions/running.d.ts +1 -0
  651. package/plugins/compute/computers/actions/running.js +33 -0
  652. package/plugins/compute/computers/actions/scope.d.ts +1 -0
  653. package/plugins/compute/computers/actions/scope.js +61 -0
  654. package/plugins/compute/computers/actions/share.js +5 -4
  655. package/plugins/compute/computers/actions/unshare.js +5 -8
  656. package/plugins/compute/computers/actions/view.d.ts +1 -0
  657. package/plugins/compute/computers/actions/view.js +29 -0
  658. package/plugins/compute/computers/actions/work.js +41 -6
  659. package/plugins/compute/computers/collections/approval.d.ts +57 -5
  660. package/plugins/compute/computers/collections/approval.js +16 -4
  661. package/plugins/compute/computers/collections/computer.d.ts +70 -1
  662. package/plugins/compute/computers/collections/computer.js +18 -2
  663. package/plugins/compute/computers/collections/desk.d.ts +53 -0
  664. package/plugins/compute/computers/collections/desk.js +11 -3
  665. package/plugins/compute/computers/collections/env-var.d.ts +122 -0
  666. package/plugins/compute/computers/collections/env-var.js +51 -0
  667. package/plugins/compute/computers/collections/grant.d.ts +20 -3
  668. package/plugins/compute/computers/collections/grant.js +21 -5
  669. package/plugins/compute/computers/collections/preview.d.ts +111 -0
  670. package/plugins/compute/computers/collections/preview.js +58 -0
  671. package/plugins/compute/computers/contract.d.ts +18 -0
  672. package/plugins/compute/computers/contract.js +8 -0
  673. package/plugins/compute/computers/mod.d.ts +9 -1
  674. package/plugins/compute/computers/mod.js +50 -6
  675. package/plugins/compute/computers/processors/left.d.ts +8 -0
  676. package/plugins/compute/computers/processors/left.js +31 -0
  677. package/plugins/compute/computers/program/version.d.ts +1 -1
  678. package/plugins/compute/computers/program/version.js +1 -1
  679. package/plugins/compute/computers/resources/commands.js +29 -13
  680. package/plugins/compute/computers/resources/downloads.js +1 -1
  681. package/plugins/compute/computers/resources/previews.d.ts +48 -0
  682. package/plugins/compute/computers/resources/previews.js +391 -0
  683. package/plugins/compute/computers/resources/tools.d.ts +11 -5
  684. package/plugins/compute/computers/resources/tools.js +155 -22
  685. package/plugins/compute/computers/shared/ask.d.ts +7 -3
  686. package/plugins/compute/computers/shared/ask.js +36 -11
  687. package/plugins/compute/computers/shared/asks.d.ts +2 -2
  688. package/plugins/compute/computers/shared/asks.js +3 -2
  689. package/plugins/compute/computers/shared/desks.d.ts +1 -5
  690. package/plugins/compute/computers/shared/desks.js +2 -11
  691. package/plugins/compute/computers/shared/env.d.ts +20 -0
  692. package/plugins/compute/computers/shared/env.js +50 -0
  693. package/plugins/compute/computers/shared/grants.d.ts +26 -0
  694. package/plugins/compute/computers/shared/grants.js +49 -0
  695. package/plugins/compute/computers/shared/jobs.d.ts +13 -0
  696. package/plugins/compute/computers/shared/jobs.js +16 -0
  697. package/plugins/compute/computers/shared/preview-url.d.ts +5 -0
  698. package/plugins/compute/computers/shared/preview-url.js +5 -0
  699. package/plugins/compute/computers/shared/seal.d.ts +4 -0
  700. package/plugins/compute/computers/shared/seal.js +60 -0
  701. package/plugins/compute/computers/shared/settings.d.ts +32 -5
  702. package/plugins/compute/computers/shared/settings.js +12 -0
  703. package/plugins/compute/computers/shared/wake.d.ts +43 -0
  704. package/plugins/compute/computers/shared/wake.js +80 -0
  705. package/plugins/compute/computers/shared/where.d.ts +34 -7
  706. package/plugins/compute/computers/shared/where.js +81 -11
  707. package/plugins/compute/computers/shared/workloads.d.ts +50 -0
  708. package/plugins/compute/computers/shared/workloads.js +4 -0
  709. package/plugins/compute/computers/views/context.d.ts +6 -3
  710. package/plugins/compute/computers/views/context.js +85 -6
  711. package/plugins/compute/computers/views/terminal/approvals.js +3 -1
  712. package/plugins/compute/computers/views/web/add.d.ts +41 -0
  713. package/plugins/compute/computers/views/web/add.js +60 -0
  714. package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
  715. package/plugins/compute/computers/views/web/allowed.js +38 -0
  716. package/plugins/compute/computers/views/web/asked.d.ts +26 -7
  717. package/plugins/compute/computers/views/web/asked.js +47 -10
  718. package/plugins/compute/computers/views/web/asks.d.ts +10 -5
  719. package/plugins/compute/computers/views/web/asks.js +38 -13
  720. package/plugins/compute/computers/views/web/calls.js +5 -2
  721. package/plugins/compute/computers/views/web/computer.d.ts +4 -1
  722. package/plugins/compute/computers/views/web/computer.js +21 -2
  723. package/plugins/compute/computers/views/web/connect.d.ts +18 -3
  724. package/plugins/compute/computers/views/web/connect.js +52 -35
  725. package/plugins/compute/computers/views/web/desks.d.ts +19 -8
  726. package/plugins/compute/computers/views/web/desks.js +67 -37
  727. package/plugins/compute/computers/views/web/env.d.ts +32 -0
  728. package/plugins/compute/computers/views/web/env.js +154 -0
  729. package/plugins/compute/computers/views/web/environment.d.ts +23 -0
  730. package/plugins/compute/computers/views/web/environment.js +47 -0
  731. package/plugins/compute/computers/views/web/jobs.d.ts +18 -6
  732. package/plugins/compute/computers/views/web/jobs.js +56 -21
  733. package/plugins/compute/computers/views/web/kinds.d.ts +102 -0
  734. package/plugins/compute/computers/views/web/kinds.js +37 -0
  735. package/plugins/compute/computers/views/web/mark.d.ts +7 -2
  736. package/plugins/compute/computers/views/web/mark.js +2 -2
  737. package/plugins/compute/computers/views/web/names.d.ts +3 -2
  738. package/plugins/compute/computers/views/web/names.js +5 -3
  739. package/plugins/compute/computers/views/web/page.d.ts +14 -2
  740. package/plugins/compute/computers/views/web/page.js +48 -26
  741. package/plugins/compute/computers/views/web/previews.d.ts +44 -0
  742. package/plugins/compute/computers/views/web/previews.js +33 -0
  743. package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
  744. package/plugins/compute/computers/views/web/routine-panel.js +91 -0
  745. package/plugins/compute/computers/views/web/serve.d.ts +47 -0
  746. package/plugins/compute/computers/views/web/serve.js +168 -0
  747. package/plugins/compute/computers/views/web/space-tab.d.ts +4 -3
  748. package/plugins/compute/computers/views/web/space-tab.js +39 -9
  749. package/plugins/compute/computers/views/web/step.js +7 -1
  750. package/plugins/compute/computers/views/web/style.d.ts +1 -1
  751. package/plugins/compute/computers/views/web/style.js +166 -2
  752. package/plugins/compute/computers/views/web/workspace.d.ts +16 -3
  753. package/plugins/compute/computers/views/web/workspace.js +49 -6
  754. package/plugins/compute/computers/web.d.ts +17 -4
  755. package/plugins/compute/computers/web.js +32 -5
  756. package/plugins/compute/mod.d.ts +8 -1
  757. package/plugins/compute/mod.js +8 -1
  758. package/plugins/compute/web.d.ts +13 -0
  759. package/plugins/compute/web.js +13 -0
  760. package/plugins/interfaces/api/actions/create.js +2 -3
  761. package/plugins/interfaces/api/actions/revoke.js +2 -2
  762. package/plugins/interfaces/api/collections/key.d.ts +2 -2
  763. package/plugins/interfaces/api/collections/key.js +3 -3
  764. package/plugins/interfaces/api/mod.js +2 -0
  765. package/plugins/interfaces/api/processors/left.d.ts +6 -0
  766. package/plugins/interfaces/api/processors/left.js +12 -0
  767. package/plugins/interfaces/api/shared/actor.d.ts +3 -11
  768. package/plugins/interfaces/api/shared/actor.js +1 -23
  769. package/plugins/interfaces/api/shared/events.js +7 -6
  770. package/plugins/interfaces/api/shared/rules.d.ts +3 -10
  771. package/plugins/interfaces/api/shared/rules.js +8 -24
  772. package/plugins/interfaces/api/shared/server.js +1 -1
  773. package/plugins/interfaces/api/web.js +3 -1
  774. package/plugins/interfaces/maintenance/actions/read.d.ts +4 -0
  775. package/plugins/interfaces/maintenance/actions/read.js +76 -0
  776. package/plugins/interfaces/maintenance/actions/write.d.ts +4 -0
  777. package/plugins/interfaces/maintenance/actions/write.js +64 -0
  778. package/plugins/interfaces/maintenance/contract.d.ts +60 -0
  779. package/plugins/interfaces/maintenance/contract.js +2 -0
  780. package/plugins/interfaces/maintenance/mod.d.ts +52 -0
  781. package/plugins/interfaces/maintenance/mod.js +66 -0
  782. package/plugins/interfaces/maintenance/resources/routes.d.ts +71 -0
  783. package/plugins/interfaces/maintenance/resources/routes.js +457 -0
  784. package/plugins/interfaces/maintenance/shared/ops.d.ts +4 -0
  785. package/plugins/interfaces/maintenance/shared/ops.js +19 -0
  786. package/plugins/interfaces/mcp/actions/call.d.ts +11 -0
  787. package/plugins/interfaces/mcp/actions/call.js +304 -0
  788. package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
  789. package/plugins/interfaces/mcp/actions/prune.js +18 -0
  790. package/plugins/interfaces/mcp/collections/closed.d.ts +23 -0
  791. package/plugins/interfaces/mcp/collections/closed.js +17 -0
  792. package/plugins/interfaces/mcp/collections/rate.d.ts +27 -0
  793. package/plugins/interfaces/mcp/collections/rate.js +18 -0
  794. package/plugins/interfaces/mcp/collections/receipt.d.ts +46 -0
  795. package/plugins/interfaces/mcp/collections/receipt.js +46 -0
  796. package/plugins/interfaces/mcp/contract.d.ts +9 -0
  797. package/plugins/interfaces/mcp/contract.js +9 -0
  798. package/plugins/interfaces/mcp/mod.d.ts +84 -0
  799. package/plugins/interfaces/mcp/mod.js +122 -0
  800. package/plugins/interfaces/mcp/processors/closed.d.ts +13 -0
  801. package/plugins/interfaces/mcp/processors/closed.js +16 -0
  802. package/plugins/interfaces/mcp/resources/running.d.ts +21 -0
  803. package/plugins/interfaces/mcp/resources/running.js +36 -0
  804. package/plugins/interfaces/mcp/resources/server.d.ts +54 -0
  805. package/plugins/interfaces/mcp/resources/server.js +423 -0
  806. package/plugins/interfaces/mcp/resources/tools.d.ts +114 -0
  807. package/plugins/interfaces/mcp/resources/tools.js +324 -0
  808. package/plugins/interfaces/mcp/shared/caller.d.ts +45 -0
  809. package/plugins/interfaces/mcp/shared/caller.js +99 -0
  810. package/plugins/interfaces/mcp/shared/keys.d.ts +50 -0
  811. package/plugins/interfaces/mcp/shared/keys.js +53 -0
  812. package/plugins/interfaces/mcp/shared/settings.d.ts +187 -0
  813. package/plugins/interfaces/mcp/shared/settings.js +176 -0
  814. package/plugins/interfaces/mcp/views/offered.d.ts +20 -0
  815. package/plugins/interfaces/mcp/views/offered.js +20 -0
  816. package/plugins/interfaces/mod.d.ts +5 -1
  817. package/plugins/interfaces/mod.js +5 -1
  818. package/plugins/interfaces/terminal/actions/print.js +1 -1
  819. package/plugins/interfaces/terminal/actions/set.js +1 -1
  820. package/plugins/interfaces/terminal/collections/output.d.ts +1 -1
  821. package/plugins/interfaces/terminal/collections/shell.js +1 -1
  822. package/plugins/interfaces/voice/actions/block.d.ts +2 -0
  823. package/plugins/interfaces/voice/actions/block.js +74 -0
  824. package/plugins/interfaces/voice/actions/call.d.ts +19 -0
  825. package/plugins/interfaces/voice/actions/call.js +253 -0
  826. package/plugins/interfaces/voice/actions/hook.d.ts +5 -0
  827. package/plugins/interfaces/voice/actions/hook.js +225 -0
  828. package/plugins/interfaces/voice/actions/prune.d.ts +1 -0
  829. package/plugins/interfaces/voice/actions/prune.js +35 -0
  830. package/plugins/interfaces/voice/collections/blocked.d.ts +87 -0
  831. package/plugins/interfaces/voice/collections/blocked.js +34 -0
  832. package/plugins/interfaces/voice/collections/call.d.ts +279 -0
  833. package/plugins/interfaces/voice/collections/call.js +77 -0
  834. package/plugins/interfaces/voice/collections/phone.d.ts +74 -0
  835. package/plugins/interfaces/voice/collections/phone.js +26 -0
  836. package/plugins/interfaces/voice/contract.d.ts +14 -0
  837. package/plugins/interfaces/voice/contract.js +2 -0
  838. package/plugins/interfaces/voice/mod.d.ts +57 -0
  839. package/plugins/interfaces/voice/mod.js +118 -0
  840. package/plugins/interfaces/voice/processors/forget.d.ts +13 -0
  841. package/plugins/interfaces/voice/processors/forget.js +27 -0
  842. package/plugins/interfaces/voice/resources/relay.d.ts +77 -0
  843. package/plugins/interfaces/voice/resources/relay.js +428 -0
  844. package/plugins/interfaces/voice/resources/tools.d.ts +1 -0
  845. package/plugins/interfaces/voice/resources/tools.js +25 -0
  846. package/plugins/interfaces/voice/shared/caller.d.ts +27 -0
  847. package/plugins/interfaces/voice/shared/caller.js +38 -0
  848. package/plugins/interfaces/voice/shared/settings.d.ts +136 -0
  849. package/plugins/interfaces/voice/shared/settings.js +121 -0
  850. package/plugins/interfaces/voice/shared/signature.d.ts +11 -0
  851. package/plugins/interfaces/voice/shared/signature.js +34 -0
  852. package/plugins/interfaces/voice/views/call.d.ts +41 -0
  853. package/plugins/interfaces/voice/views/call.js +30 -0
  854. package/plugins/interfaces/voice/views/context.d.ts +9 -0
  855. package/plugins/interfaces/voice/views/context.js +14 -0
  856. package/plugins/interfaces/voice/views/message.d.ts +17 -0
  857. package/plugins/interfaces/voice/views/message.js +41 -0
  858. package/plugins/interfaces/web/shared/codes.d.ts +31 -0
  859. package/plugins/interfaces/web/shared/codes.js +44 -0
  860. package/plugins/interfaces/web/shared/orgs.d.ts +1 -1
  861. package/plugins/interfaces/web/shared/orgs.js +1 -1
  862. package/plugins/interfaces/web/shared/style.d.ts +1 -1
  863. package/plugins/interfaces/web/shared/style.js +3 -0
  864. package/plugins/interfaces/web/views/console-codes.d.ts +14 -0
  865. package/plugins/interfaces/web/views/console-codes.js +159 -0
  866. package/plugins/interfaces/web/views/console.d.ts +4 -2
  867. package/plugins/interfaces/web/views/console.js +24 -10
  868. package/plugins/interfaces/web/views/org.js +12 -6
  869. package/plugins/interfaces/web/views/orgs.js +13 -3
  870. package/plugins/interfaces/whatsapp/actions/connect.js +11 -10
  871. package/plugins/interfaces/whatsapp/actions/disconnect.js +6 -3
  872. package/plugins/interfaces/whatsapp/actions/hook.js +27 -11
  873. package/plugins/interfaces/whatsapp/actions/link.js +10 -13
  874. package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
  875. package/plugins/interfaces/whatsapp/actions/set.js +121 -0
  876. package/plugins/interfaces/whatsapp/collections/blocked.d.ts +29 -0
  877. package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
  878. package/plugins/interfaces/whatsapp/collections/code.d.ts +1 -1
  879. package/plugins/interfaces/whatsapp/collections/number.d.ts +90 -4
  880. package/plugins/interfaces/whatsapp/collections/number.js +36 -4
  881. package/plugins/interfaces/whatsapp/collections/phone.d.ts +14 -4
  882. package/plugins/interfaces/whatsapp/collections/phone.js +9 -3
  883. package/plugins/interfaces/whatsapp/collections/rate.d.ts +27 -0
  884. package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
  885. package/plugins/interfaces/whatsapp/collections/sent.d.ts +24 -12
  886. package/plugins/interfaces/whatsapp/collections/sent.js +11 -7
  887. package/plugins/interfaces/whatsapp/collections/thread.d.ts +14 -6
  888. package/plugins/interfaces/whatsapp/collections/thread.js +7 -5
  889. package/plugins/interfaces/whatsapp/collections/typing.d.ts +70 -0
  890. package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
  891. package/plugins/interfaces/whatsapp/contract.d.ts +27 -4
  892. package/plugins/interfaces/whatsapp/contract.js +34 -1
  893. package/plugins/interfaces/whatsapp/events/undelivered.d.ts +8 -0
  894. package/plugins/interfaces/whatsapp/events/undelivered.js +17 -0
  895. package/plugins/interfaces/whatsapp/mod.d.ts +28 -2
  896. package/plugins/interfaces/whatsapp/mod.js +65 -6
  897. package/plugins/interfaces/whatsapp/processors/forget.d.ts +6 -0
  898. package/plugins/interfaces/whatsapp/processors/forget.js +11 -0
  899. package/plugins/interfaces/whatsapp/processors/receive.d.ts +17 -3
  900. package/plugins/interfaces/whatsapp/processors/receive.js +267 -91
  901. package/plugins/interfaces/whatsapp/processors/reply.d.ts +25 -5
  902. package/plugins/interfaces/whatsapp/processors/reply.js +216 -20
  903. package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
  904. package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
  905. package/plugins/interfaces/whatsapp/shared/customers.d.ts +13 -0
  906. package/plugins/interfaces/whatsapp/shared/customers.js +16 -0
  907. package/plugins/interfaces/whatsapp/shared/graph.d.ts +31 -6
  908. package/plugins/interfaces/whatsapp/shared/graph.js +117 -10
  909. package/plugins/interfaces/whatsapp/shared/media.d.ts +23 -0
  910. package/plugins/interfaces/whatsapp/shared/media.js +46 -0
  911. package/plugins/interfaces/whatsapp/shared/number.d.ts +19 -8
  912. package/plugins/interfaces/whatsapp/shared/number.js +64 -7
  913. package/plugins/interfaces/whatsapp/shared/parts.d.ts +94 -0
  914. package/plugins/interfaces/whatsapp/shared/parts.js +184 -0
  915. package/plugins/interfaces/whatsapp/shared/payload.d.ts +27 -1
  916. package/plugins/interfaces/whatsapp/shared/payload.js +36 -1
  917. package/plugins/interfaces/whatsapp/shared/rules.d.ts +1 -3
  918. package/plugins/interfaces/whatsapp/shared/rules.js +1 -9
  919. package/plugins/interfaces/whatsapp/shared/settings.d.ts +49 -1
  920. package/plugins/interfaces/whatsapp/shared/settings.js +11 -0
  921. package/plugins/interfaces/whatsapp/views/message.d.ts +13 -0
  922. package/plugins/interfaces/whatsapp/views/message.js +13 -0
  923. package/plugins/interfaces/whatsapp/views/web/line.d.ts +24 -0
  924. package/plugins/interfaces/whatsapp/views/web/line.js +44 -0
  925. package/plugins/interfaces/whatsapp/views/web/space.d.ts +7 -5
  926. package/plugins/interfaces/whatsapp/views/web/space.js +17 -10
  927. package/plugins/interfaces/whatsapp/views/web/style.d.ts +1 -1
  928. package/plugins/interfaces/whatsapp/views/web/style.js +8 -0
  929. package/plugins/interfaces/whatsapp/web.js +8 -1
  930. package/plugins/models/actions/check.d.ts +1 -0
  931. package/plugins/models/actions/check.js +25 -0
  932. package/plugins/models/actions/offered.d.ts +34 -0
  933. package/plugins/models/actions/offered.js +186 -0
  934. package/plugins/models/adapters/llm/anthropic.d.ts +1 -1
  935. package/plugins/models/adapters/llm/anthropic.js +38 -20
  936. package/plugins/models/adapters/llm/gemini.d.ts +1 -1
  937. package/plugins/models/adapters/llm/gemini.js +7 -2
  938. package/plugins/models/adapters/llm/openai-compatible.d.ts +1 -1
  939. package/plugins/models/adapters/llm/openai-compatible.js +36 -7
  940. package/plugins/models/adapters/llm/openai.d.ts +1 -1
  941. package/plugins/models/adapters/llm/openai.js +158 -28
  942. package/plugins/models/contract.d.ts +6 -1
  943. package/plugins/models/mod.d.ts +7 -1
  944. package/plugins/models/mod.js +12 -2
  945. package/plugins/models/shared/catalog.json +9208 -8909
  946. package/plugins/models/shared/choice.d.ts +31 -0
  947. package/plugins/models/shared/choice.js +19 -3
  948. package/plugins/models/shared/generate.d.ts +3 -1
  949. package/plugins/models/shared/generate.js +91 -11
  950. package/plugins/models/shared/provider.d.ts +5 -0
  951. package/plugins/models/shared/provider.js +14 -0
  952. package/plugins/models/shared/types.d.ts +21 -2
  953. package/plugins/models/shared/types.js +10 -0
  954. package/plugins/models/shared/use.d.ts +6 -2
  955. package/plugins/models/shared/use.js +15 -5
  956. package/runtime/actor.d.ts +15 -0
  957. package/runtime/actor.js +14 -0
  958. package/runtime/aggregate.js +8 -2
  959. package/runtime/blobs.d.ts +15 -12
  960. package/runtime/blobs.js +58 -11
  961. package/runtime/cache.d.ts +6 -0
  962. package/runtime/cache.js +19 -1
  963. package/runtime/client.js +28 -5
  964. package/runtime/define.d.ts +10 -0
  965. package/runtime/errors.d.ts +36 -0
  966. package/runtime/errors.js +13 -0
  967. package/runtime/executor.js +29 -13
  968. package/runtime/links.d.ts +31 -0
  969. package/runtime/links.js +60 -0
  970. package/runtime/maintain.d.ts +88 -0
  971. package/runtime/maintain.js +120 -0
  972. package/runtime/memory.js +7 -4
  973. package/runtime/mod.d.ts +6 -2
  974. package/runtime/mod.js +5 -0
  975. package/runtime/mongo.d.ts +13 -0
  976. package/runtime/mongo.js +39 -8
  977. package/runtime/observe.d.ts +2 -0
  978. package/runtime/observe.js +14 -10
  979. package/runtime/ops.d.ts +5 -0
  980. package/runtime/ops.js +10 -1
  981. package/runtime/owner.d.ts +31 -2
  982. package/runtime/owner.js +159 -59
  983. package/runtime/presence.d.ts +18 -0
  984. package/runtime/presence.js +25 -0
  985. package/runtime/registry.d.ts +5 -0
  986. package/runtime/registry.js +18 -0
  987. package/runtime/runtime.js +9 -3
  988. package/runtime/store.d.ts +48 -1
  989. package/runtime/wire.d.ts +1 -0
  990. package/runtime/wire.js +3 -1
  991. package/stores/blobs/files/mod.js +4 -2
  992. package/stores/blobs/gcs/mod.d.ts +30 -0
  993. package/stores/blobs/gcs/mod.js +106 -0
  994. package/stores/blobs/http/mod.d.ts +1 -1
  995. package/stores/blobs/http/mod.js +2 -1
  996. package/stores/latency/mod.js +5 -1
  997. package/stores/sql/postgres/maintenance.d.ts +24 -0
  998. package/stores/sql/postgres/maintenance.js +258 -0
  999. package/stores/sql/postgres/mod.d.ts +20 -4
  1000. package/stores/sql/postgres/mod.js +363 -96
  1001. package/stores/sql/postgres/update.js +3 -1
  1002. package/stores/sql/shared/capped.d.ts +2 -0
  1003. package/stores/sql/shared/capped.js +22 -0
  1004. package/stores/sql/shared/rows.d.ts +14 -0
  1005. package/stores/sql/shared/rows.js +29 -0
  1006. package/stores/sql/shared/statement.d.ts +12 -0
  1007. package/stores/sql/shared/statement.js +244 -0
  1008. package/stores/sql/sqlite/apart.d.ts +11 -0
  1009. package/stores/sql/sqlite/apart.js +219 -0
  1010. package/stores/sql/sqlite/mod.d.ts +16 -2
  1011. package/stores/sql/sqlite/mod.js +246 -51
  1012. package/testing/mod.js +1 -1
  1013. package/plugins/compute/computers/shared/person.d.ts +0 -3
  1014. package/plugins/compute/computers/shared/person.js +0 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,930 @@
1
+ ## 1.0.0-rc.21 — 2026-11-04
2
+
3
+ - **Security: a burst of calls no longer drops an executor's connection** (Oxian 0.23.3). About 35
4
+ concurrent calls on one executor (around 20 holding transactions) filled Oxian's queues, and the
5
+ connection was lost with every job in flight on it (`executor_lost`): a remote DoS on any app with
6
+ a public entry point, flagged by a security review. Full queues now hold senders back instead.
7
+ Long-lived workers also move to a fresh connection before one's streams run out, instead of
8
+ failing calls with `capacity`; Copilotz treats the move as the same worker (#154).
9
+ - **MCP: models outside the app call its tools** (the new `mcp` interface; widgets come next). An
10
+ app declares lines in `resources.mcp.lines.<name>`, each an MCP server at `POST /mcp/<name>`
11
+ (`/o/<org>/mcp/<name>` under many orgs): the space its chats live in (`in`), the tools it offers
12
+ (`tools`, by name: only these, never an agent's; each needs its `tool:<name>` View, else it isn't
13
+ offered, and one whose `offer` says no to a contact isn't either), how each is shown (`title`,
14
+ `annotations`, ChatGPT's `invoking`/`invoked` lines, 64 characters), who calls (`client`, the
15
+ steps' sender), `title`, `version`, `instructions`, `handles`, `origins`, `org` and `limits`; and
16
+ plugin-wide, how it knows a caller's address (`caller`) and calls at once in the process
17
+ (`atOnce`, 8). Checked at start; it needs the `links` resource's secret.
18
+ - **The protocol:** Streamable HTTP and JSON-RPC 2.0, written in the plugin, answered as JSON,
19
+ with no session (GET and DELETE are 405; no `Mcp-Session-Id`). MCP 2026-07-28 (per-request
20
+ `_meta`, `server/discover`, the `MCP-Protocol-Version`, `Mcp-Method`, `Mcp-Name` and
21
+ `Mcp-Param-*` headers checked against the body: -32020) and 2025-11-25, 2025-06-18 and
22
+ 2025-03-26 (`initialize`; batches only for 2025-03-26, 10 messages at most, one after another).
23
+ Unknown versions are -32022 with the supported ones. Every tool says `noauth`, and all four of
24
+ MCP's hints. A request with an `Origin` the line doesn't name is 403; input nested past 64
25
+ levels, or holding a `$blob`, is -32602.
26
+ - **Conversations:** ChatGPT's `_meta["openai/session"]` (with `openai/subject`) names one; a
27
+ client that names none gets a `chat` handle (128 random bits, an optional input on every tool,
28
+ said once, at the end of the first answer), or with `handles: false` is refused. Each is a
29
+ contact (`via: "mcp"`) in a chat of its own in the line's space, its ids HMACs of the key with
30
+ the `links` secret: no table. A handle the app never gave is refused; a chat whose contact its
31
+ people took out, or that was erased (`contact.forget`, `chat.erase`: a tombstone, `mcp_closed`,
32
+ no personal data), is over for good.
33
+ - **A call** is `mcp.call`, called by the route as the conversation's contact (an actor only the
34
+ route makes: `{ kind: "contact", id, mcp, client }`, which the Action's `allow` asks for). It
35
+ runs the tool through chat's runner, writes a private step from the line's `client` in the chat
36
+ (in its space as it is now; only input that fit the tool's schema, else a note of what was
37
+ sent), and answers with the tool's View, read as the contact, never its output as it is. Only a
38
+ public error (below) says its message. `ctx.callId` is the step's id (the call's,
39
+ `mcp:<thread>:<hash of the request id>:<hash of tool and input>`, and when it began), the same
40
+ however often a call cut short runs again; a new call has a new one. A tool that changes things
41
+ keeps a receipt (`mcp_receipt`, durable, no events, gone after 15 minutes) by what it asks in
42
+ its conversation (tool and input), whatever the request's id: the same call while it runs waits
43
+ for that run; asked again, under any id, within two minutes of its end it's answered what it
44
+ said (kept up to 8,000 characters), beginning with a line saying it wasn't done again (so a
45
+ second, deliberate purchase isn't taken for done); begun and never done (stopped, an owner
46
+ restarted, or failed by accident and told to try again), it runs again as the same step, with
47
+ `retry` and the same `callId`. A public refusal is an answer, and is said again. A read-only
48
+ tool always runs.
49
+ - **Limits** (`limits`): calls at once in the runtime (`mcp.atOnce`, 4: each org's own under the
50
+ orgs host), on the line (4: an executor's connection takes about that many tools that change
51
+ things at once until Oxian's send backpressure is released), from one caller's address (2; a
52
+ batch's every call counts) and in one conversation (2), past any of which it's 503 busy, -31000
53
+ (a batch, an error for each of its requests; a batch with more tool calls than `addressAtOnce`
54
+ is refused, -32600); how long the route waits for an answer (`timeout`, 20 s: then the model is
55
+ told it's still working, as long as few calls are, `lateAtOnce` 2 on the line and
56
+ `addressLateAtOnce` 1 from an address, else it's stopped) and a call may run (`stop`, 60 s: then
57
+ it's stopped; tools should honour `ctx.signal`); a request's body (64 KiB), calls a minute by
58
+ conversation (30), by caller's address (60) and on the line (600), new conversations an hour by
59
+ user (30, ChatGPT's `openai/subject`), by address (20) and on the line (600), and an answer's
60
+ length (100,000 characters). Only calls taken count, and a new conversation once it's made. The
61
+ address is believed only as the app's front says it (`caller`: its header, with the front's
62
+ secret, a request without which is refused, or the proxies' `hops`, which a list header such as
63
+ `x-forwarded-for` needs); IPv6 is counted by its /64, IPv4 written as IPv6 as IPv4, and an
64
+ address that can't be read with every other such call, as one. Ranges in `caller.exempt`
65
+ (OpenAI's) aren't limited by address.
66
+ - **A failure can be public** (`failure(code, message, { public: true })`, `isPublic`): its message
67
+ is for any caller, even a model outside the app over MCP, which no other error's words reach. It
68
+ stays public from job to job. A code alone isn't public: libraries' errors have codes too.
69
+ - **Chat's tool runner is in its contract** (`runTool`, `toolText`): a tool's input checked, run,
70
+ and its result read as agents read it, as a turn does; the turn uses them. Input that doesn't fit
71
+ a tool's schema is a public failure, and the runner says so (`unchecked`). `Tool` gains `title`
72
+ and `annotations` (`readOnly`, `destructive`, `idempotent`, `openWorld`).
73
+
74
+ - **Phone calls: the `voice` plugin** (in `copilotz/plugins/interfaces`), on Twilio's
75
+ ConversationRelay. The app declares its lines (`resources.voice.lines.<name>`: `in`, `account`,
76
+ `token`, `origin`, and optionally `agent`, `language`, `tts`, `voice`, `stt`, `texts`, `gap`,
77
+ `trustCallerId`, `keys`, `limits`, `org`), each a Twilio number open to anyone who calls; their
78
+ settings are checked at start.
79
+ - **Twilio's webhook** is `POST /hooks/voice/<line>` (the `voice.hook` route): checked against
80
+ `X-Twilio-Signature` with the line's auth token. A caller the line's managers blocked isn't
81
+ taken (`voice.block { thread, days? }`, kept by the number's hash; `voice.unblock { block }`
82
+ lifts it by its id, whatever is left of the call); then a call is taken within its caller's
83
+ limits (`callerAtOnce` 1, `callerPerDay` 10; withheld numbers, together, their own
84
+ `hiddenAtOnce` and `hiddenPerDay`, by default the line's `atOnce` and half its `perDay`), then
85
+ the line's (`atOnce` 2, `perDay` 50 calls that went on in any 24 hours), or rejected as busy
86
+ (`<Reject reason="busy"/>`: nothing is spent). A call taken gets TwiML that opens the line's
87
+ socket (`<Connect><ConversationRelay>`, the line's language, greeting and voice) with a ticket
88
+ good once, for a minute; `POST /hooks/voice/<line>/over` hears the relay end and hangs up.
89
+ - **The socket** (`GET /hooks/voice/<line>/relay`, a `serve` route): its signature checked, its
90
+ ticket used, then Twilio's `setup` must name the call the ticket was for. The caller is a
91
+ contact (`via: "voice"`) in a chat of their own in the line's space, answered by the line's
92
+ agent (a line whose agent doesn't answer there fails the call). A number isn't proof of who's
93
+ calling: calling back goes on in the same contact and chat (until the line's `gap`, 12 hours,
94
+ and never into a chat with another call on, checked in the write that puts the call live) only
95
+ when Twilio verified the number (`StirVerstat` `TN-Validation-Passed-A`) or the line sets
96
+ `trustCallerId`; otherwise, and for withheld numbers (Twilio's placeholders, `+266696687`,
97
+ `+7378742833` and the like), each call is a new contact.
98
+ - **What's said:** what the caller says goes to the agent at once, one prompt after the other; a
99
+ prompt said while the answer to the one before is still being written stops that turn, and the
100
+ next turn reads both (Twilio already waits for the caller to finish: a quiet window would add to
101
+ every answer). What the agent writes is said as it writes it, word by word (a step's words
102
+ before its tools, then its answer), through the `voice_call` View read as the caller, and only
103
+ of the turns the caller's own words started: a staff member's turn in their chat isn't said.
104
+ Speaking over it (`interrupt`) cuts what was being said, and the agent is told what was heard
105
+ (the `voice` context). Keys pressed (with `keys`) come as a tap, `keys:<digits>`.
106
+ - **What a call may cost** (`limits`): an answer that failed, or took longer than `turn` (25 s,
107
+ then stopped), says the line's `failed` text, never the error; one past `said` characters
108
+ (1,200) is cut at a word and stopped; `idle` (90 s) of silence, a call past `call` (600 s) or
109
+ past `turns` prompts (30) says `bye` and ends it. The goodbye waits 15 seconds at most for
110
+ what's being said; a call is over by its hard end (`call`, the goodbye and closing), and holds
111
+ its place among the line's calls until then. A call that ends stops its turn, and any turn of it
112
+ that starts just after. The agent ends a call too, once its goodbye is said (the `end_call`
113
+ tool, offered to whoever answers a call while it goes on). Twilio's `end` says why
114
+ (`handoffData`).
115
+ - **The phone is a medium:** messages are said through their `message` View (renderer `voice`: the
116
+ words without Markdown, a link's words, a web address's site), which an app may replace.
117
+ - Each call is a small record (`voice_call`, no events: when, how long, why it ended, whether the
118
+ number was verified; the caller's number private), and `voice_phone` keeps each verified
119
+ caller's contact and chat. Erasing a contact erases its number from both; erasing a chat
120
+ (`chat.erase`, `contact.forget` with `chats`) erases what the calls kept of it. Calls' records
121
+ go after the plugin's `keep` days (30, at least 1: `voice.prune`, daily), once they're over: a
122
+ call going on is never pruned. Agents working for a caller are told it's a phone call, and that
123
+ the number isn't proof of who they are (the `contact` context).
124
+ - It needs a host that takes a route's socket (`host.upgrade()`: `serveRoutes`, or `serve`, from
125
+ `copilotz/web/node`).
126
+
127
+ - **Maintenance endpoints** (the new `maintenance` plugin, in `copilotz/plugins/interfaces`): HTTP
128
+ under `/maintenance/` for an app's operators when they can't reach its database. A key (`key`, or
129
+ several in `keys` to rotate one; 32 random characters at least, a weak one stops the app),
130
+ compared in constant time; without one, every request is unauthorized. Requests act as the
131
+ maintenance actor (`{ kind: "maintenance", by }`), whose Actions run as the system on the record,
132
+ and each writes a line (`log`) before it runs. An orgs host's orgs don't get it.
133
+ - `POST /maintenance/sql`: one read-only statement, with `params`, at most `limit` rows and
134
+ `bytes`, cut off after `timeout`.
135
+ - `POST /maintenance/collections/<collection>/<op>`: insertOne… deleteMany, find… aggregate,
136
+ through the owner's write path: schema-checked, recorded, cached, heard by Processors.
137
+ - `POST /maintenance/queries/<collection>.<name>`: a collection's named query, the body its
138
+ params, read as the system.
139
+ - `POST /maintenance/sql/write`: one statement that writes, run by the owner alone among its
140
+ writes, fenced by its epoch, with a `maintenance.sql` audit event in the same commit; then the
141
+ owner empties its read cache, runs observed Views again and re-reads its timers. A statement
142
+ that changes `meta` (the epoch, Processors' positions) is rolled back. An `Idempotency-Key`
143
+ makes it safe to send again.
144
+ - `GET /maintenance/blobs/<id>`: a blob's bytes, as a download.
145
+ - **SQL on the store port, for maintenance only:**
146
+ `Store.inspect?(sql, params?, { limit, timeout })` (now SQLite's too), a transaction's
147
+ `execute?(sql, params?)` and `transaction(…, { maintenance })`. Both run exactly one statement: a
148
+ second, or one that ends the transaction or changes the connection (`COMMIT`, `SET`…), is refused
149
+ (PostgreSQL ran every statement of an unparameterized `inspect` before; PostgreSQL's line comments
150
+ end at a CR too). `runtime.maintenance` is the owner's way to them; plugin code has none. The
151
+ cache gains `clear()`, observers `stale()`.
152
+ - **PostgreSQL servers:** raw SQL runs only as a role of its own
153
+ (`postgresStore({ maintenance: { url, connections } })`), which must hold exactly maintenance's
154
+ grants: no attribute but LOGIN, membership in no role (but Cloud SQL's IAM marker, itself held
155
+ to the same), no settings of its own, nothing owned (a large object neither), nothing granted
156
+ outside the store's schema, `CREATE` nowhere, no large object, table or column of another's to
157
+ read, nothing on the store's tables beyond what it needs, no `SECURITY DEFINER` function to run,
158
+ no `dblink` or `postgres_fdw`, no trigger on the store's tables: checked before each statement
159
+ and again after a write, in its transaction, reading only `pg_catalog`'s names. `ALTER ROLE`,
160
+ `DO` and `LOCK` don't run; a password literal is kept as `PASSWORD '***'`. Each statement on a
161
+ connection of its own, over the extended protocol, closed after; at most 2 at once, else `busy`.
162
+ A read stops fetching before a row would pass its bytes. PGlite runs it as its one session, and
163
+ discards what it left there.
164
+ - **SQLite:** the store names its tables in `main`, so a temporary object can't stand in for them
165
+ (a write that leaves one, or a trigger, is rolled back); a read runs in a process of its own
166
+ (`deno`, `node` or `bun` itself, never a compiled app; an empty environment; on Deno and Node,
167
+ read access to the database's files alone), killed at its timeout. Else, on the reading
168
+ connection, a pragma only from those that only read, said once and on each answer
169
+ (`inline: true`).
170
+
171
+ - **Security: a forged blob reference is refused, never loaded.** Large strings are kept as blobs
172
+ and documents hold `{ $blob, size, type }` in their place; the owner loaded any object with a
173
+ string `$blob` on every read. So an Action that stores what it's given (a tool's input, a
174
+ webhook's body) could plant one: an id no blob has made every read of that document fail (a chat
175
+ that can't be read or erased, Processors giving up on its events); another document's hash pulled
176
+ that content in; and a path or a name read a file (`fileBlobs`) or any object in the bucket
177
+ (`gcsBlobs` without a prefix).
178
+ - What plugin code writes (documents, updates, upserts' filters, edges, events, records, timers'
179
+ inputs, Action results) and what an Action is called with may hold no `$blob` key: `invalid`.
180
+ The owner checks it as it walks what it offloads, so it costs no extra pass.
181
+ - No part of an update's field path may start with `$` (as MongoDB refuses) or be `__proto__`
182
+ (`invalid`): `{ $set: { "bio.$blob": … } }` made a reference out of plain strings, and on Node
183
+ and Bun `{ $set: { "__proto__.x": … } }` set `x` on every object's prototype (Deno has no
184
+ `__proto__`). `constructor` and `prototype` are fields like any other: paths read and make a
185
+ document's own fields only, so a filter on `constructor` no longer finds `Object` in every
186
+ document.
187
+ - A path ends at a blob reference as it does at a string, so a large string is treated like a
188
+ small one (`$set: { "text.note": 1 }` replaced the reference's insides, losing the text), and at
189
+ any other object with a `$blob` key, so no update turns a planted one into a reference.
190
+ - An aggregate's `$group` can't name a field `$…` either: `_id: { $blob: …, size, type }` built a
191
+ reference from strings, which a browser's own read then loaded.
192
+ - The API's event stream sends a call's result whole; one over 16 KiB went as its reference.
193
+ Published events (`runtime.subscribe`) have `full()`: the event with its large values.
194
+ - Only an exact reference loads a blob: the keys `$blob`, `size` and `type`, a `sha256-<64 hex>`
195
+ id, a numeric size and a string type. Any other object is data.
196
+ - Every blob store (memory, SQLite, PostgreSQL, `fileBlobs`, `httpBlobs`, `gcsBlobs`) takes only a
197
+ blob's id (`checkBlobId`, exported for your own `Blobs`).
198
+ - Fixed on the way: a timer's input over 16 KiB reached its Action as a reference; it comes whole.
199
+ An occurrence of one that a deploy to this version cuts short fails once when it resumes
200
+ (`id_conflict`: it started with the reference as its input); the timer's next ones run.
201
+ - A store may already hold planted references: an exact one still loads (its blob gone, reads
202
+ fail), and any other, carried on, is now refused. #155 has read-only queries (PostgreSQL,
203
+ SQLite) that find them; clean every one, `sys.timers` first.
204
+
205
+ - **Contacts: people outside the org who talk to its agents** (the new `contacts` plugin, part of
206
+ `access`). A WhatsApp customer is a contact, its own kind of actor (`{ kind: "contact", id }`),
207
+ never a person: every `allow: people` Action and query stays shut to it, and nothing that asks for
208
+ a person (`personOf`) finds one. The runtime's `principalOf` says whom work is for, a person or a
209
+ contact (it moved there from chat), and `peopleOrContacts` is what an Action opened to contacts
210
+ allows: today only `chat.send`, whose message is then from `contact:<id>`.
211
+ - A contact's chat is shared with it on its own (a membership `on` the thread, made by
212
+ `contact.chat`): it reaches that chat, what's said and filed there, and its own record, nothing
213
+ else. The space's people reach it as any chat there; the agent working for the contact reaches
214
+ exactly that chat. Three generic completions in spaces make it so, and help people too (a person
215
+ can now share one chat): a shared collection's documents can be part of another's (`part`: a
216
+ message's `thread`), reached with it; an agent working for someone reaches a document one of
217
+ them reaches on its own in a space the other reaches; and `present(ctx, space)` says whether
218
+ someone reaches a space or a document in it, so `space.roster` tells a contact in its chat who
219
+ answers (agents only).
220
+ - A contact is let into documents only, never a whole space (`member.set`, a request granted), and
221
+ never manages one. `request_access` isn't offered to agents working for a contact, nor memory: a
222
+ customer's chat keeps to itself.
223
+ - `contact.start` (trusted code, idempotent by id) and `contact.chat`; `contactOf(actor)` says
224
+ whose work an event's actor's is (the contact's id, through the agent working for them too);
225
+ agents are told whom they talk with (the `contact` context) and see them by name: the `names`
226
+ resource is now a map of sources
227
+ (`{ people: { collection: "profile" }, contact: { collection: "contact", prefix:
228
+ "contact:" } }`),
229
+ replacing `{ collection }`. On the web, add `contactsWeb` to show contacts by name.
230
+ - **A WhatsApp number can be a customer line.** Its space's managers open it to anyone
231
+ (`whatsapp.set { number, open, agent, gap }`). A stranger who writes is then a contact, in a chat
232
+ of their own in the number's space, answered by the number's agent (or who answers new chats
233
+ there); a chat quiet for `gap` hours (12 by default) is over, and their next message starts a new
234
+ one. Their text always goes to the agent (commands stay linked people's); a code from the app
235
+ still links a phone, and linked phones keep working as their person. The `whatsapp` plugin now
236
+ requires `contacts`.
237
+ - **WhatsApp is a medium.** A View for it (renderer `whatsapp`) returns parts, each one WhatsApp
238
+ message, built with the toolkit in WhatsApp's contract (`text`, `buttons`, `list`, `carousel`,
239
+ `image`, `document`, and `clip` for titles), which checks Meta's limits and throws `invalid`
240
+ instead of cutting anything short. A message goes out as its `message` View there (the plugin's:
241
+ its text as WhatsApp formats it; an app's replaces it).
242
+ - **Additions:** chat declares the `additions` resource kind (`{ order?, agents? }`, each an
243
+ `addition:<name>` View in the medium, given `{ thread, answer }`, returning `Addition`s:
244
+ `{ key, parts, fallback?, note? }`). After an agent's final answer that didn't fail
245
+ (`isAnswer`), each goes once per chat per key, recorded in chat's new `shown` ledger through
246
+ `chat.shown` (trusted code, unrecorded); its `note` is told to the model after that answer
247
+ (`[then shown: …]`).
248
+ - **One message, not two:** an answer's last text goes as the first addition's body (or caption)
249
+ when there's room, as Meta charges per message. A part Meta refuses (a 400 that isn't the token
250
+ or the 24-hour window) sends the addition's fallback instead, with the answer joined to it;
251
+ without one, it's logged. A retried delivery sends only what didn't go (`whatsapp_sent` now
252
+ keeps each part by id, with its addition's `key` and `thread`).
253
+ - **Taps:** a button's, a list row's, a carousel card's or a template's reply comes as its title
254
+ with `tap: { id, title, key }` (`chat.send` takes `tap`; messages keep it), answering the
255
+ message it was on; agents read `Carla: PIX [tapped: pay:pix]`. Typing the title is just text. A
256
+ tap is a choice, not a permission: anyone can send any id, so a tool acting on one checks it
257
+ against what was shown there. A quote or a tap answers only what went out in its own chat.
258
+ - What a message and its additions show is read as whom they go to, never with the reach of
259
+ whoever's work the answer was.
260
+ - **"Typing…" while agents work:** each step an agent takes in a WhatsApp chat shows it again once
261
+ WhatsApp may have hidden it (after 20 s, for up to five minutes); nothing says "please wait".
262
+ - **Media:** a part's picture or file is a public https link (as given), one of the app's routes
263
+ (`{ route, params }`: a link signed for a day with its params, which the route checks with
264
+ `verifyLink`), or a chat's file (`{ file }`: a signed link to `/files/<id>`, or, without the
265
+ app's `links`, uploaded to Meta and sent by its id). A carousel's pictures must be links: a file
266
+ with nowhere to link it sends the fallback. A message's files go as images (jpeg, png up to 5
267
+ MB) or documents, a short text as the first one's caption.
268
+ - **WhatsApp lines for an app, as it uses them** (for Mobizap):
269
+ - **A line the app declares** in its settings (`resources.whatsapp.lines.<name>`: the space,
270
+ Meta's number id, token and app secret, its own verify token, a webhook path it routes to
271
+ `whatsapp.hook`, its agent, gap, rate, quiet window and language): open to anyone, kept as the
272
+ settings say at every use, with no person connecting or opening it; people can't change it
273
+ (`whatsapp.set`, `whatsapp.credentials` and `whatsapp.disconnect` refuse), and the web tab
274
+ leaves it alone. `whatsapp.set` stays for numbers people connect.
275
+ - **Spaces the app declares** (the spaces plugin's `spaces` resource, by id: `{ name, agents }`):
276
+ the app's own, owned by no person, made and kept by the system when something needs them
277
+ (`space.keep`, trusted code; a declared line keeps the space it's `in`). Its agents are editors
278
+ there, the first answering its new chats; people neither take them out, nor change their role,
279
+ nor rename the space. Otherwise it's a space like any other.
280
+ - **The reply is the body:** after an answer, an addition's own words (a question its buttons ask)
281
+ are what it says without one; with the answer, the answer is its whole body. A fallback keeps
282
+ its words after the answer.
283
+ - **What Meta took but couldn't deliver** (a failed status on the webhook, such as a picture it
284
+ couldn't fetch: `whatsapp.undelivered`) sends that addition's fallback, once, with the answer's
285
+ text when it went in the same message.
286
+ - **A burst gets one answer:** a customer's messages wait for the line's quiet window (`quiet`, 4
287
+ s by default, up to 30) before the agent answers, all of them in one turn and one reply
288
+ (`chat.send`'s new `quiet`: a durable timer each message sets again, `chat.quiet`, so a restart
289
+ in the window still answers once).
290
+ - **A failed turn** tells a customer only that, in their line's language, never its error.
291
+ - Each sender's quiet window is their own (`quiet:<thread>:<sender>:<agent>`): a staff member's
292
+ message never takes a customer's place, nor the reverse. Erasing a chat ends its windows, and a
293
+ window whose message is gone (or no longer theirs to read) starts no turn.
294
+ - A declared line is one org's with the orgs host: it names the org (`org`), and every other org's
295
+ runtime has nothing of it; a line naming none is a single-org app's.
296
+ - What Meta couldn't deliver is rendered again as its addressee, as any reply is.
297
+ - **Signed links** (the runtime's `signLink` and `verifyLink`, with the app's `links` resource:
298
+ `{ origin, secret }`, a secret of at least 32 bytes, checked at start): the app's origin, a path,
299
+ its params and an expiry (an hour unless said), HMAC-signed, with a line break between origin and
300
+ path, so a link for one app or org never opens another (under `hosts/orgs`, give each org its own
301
+ origin). The web host checks the secret as it starts serving. A chat's file is linked or uploaded
302
+ only for someone who may read it. The web host serves a file at a signed `/files/<id>` link
303
+ without a session, as the system; expired or altered, a 404.
304
+ - **Chat in spaces declares its own `shared` entries** (`thread`, `message` with labels, `file`,
305
+ `live` and `shown`, each a part of its thread). `chat.open` opens an empty chat in a space;
306
+ `chat.say { id, thread, from, text, to? }` has an agent say a fixed message in a chat without a
307
+ turn (trusted code only; the same `id` is said once), sent out like any of its answers.
308
+ - **What a contact's chat shows stays theirs to see** (from a security review):
309
+ - A document others are parts of (a chat) labels as itself, and so do its parts: a write into a
310
+ chat shared with someone outside its space (a contact) that drew on anything else, even the same
311
+ space, carries that space as its source (staff read it; the contact doesn't), or an agent
312
+ writing it is refused (`needs_share`). WhatsApp sends only what its addressee may read.
313
+ - Agents are told who else is in a chat from outside the org (the `where` context), from a chat's
314
+ members on its own, which its space's people now read by asking for that chat.
315
+ - A part of a shared document, and a document shared on its own, are reached only where it lives:
316
+ nothing written as one lands in another space. `may`, `must` and `present` never take a document
317
+ shared on its own for a space (`may(ctx, verb, id, on)` asks about the document).
318
+ - A contact's message goes to whom its chat is with (or the agent that wrote what it replies to):
319
+ never to agents it names. Anyone's `replyTo` is kept only for a message of the same chat that
320
+ they read.
321
+ - A tool whose `offer` is a function decides for agents that name it too; `request_access` refuses
322
+ for a contact; computers aren't woken (or billed) for work that's no person's; memory declares
323
+ its own `shared` entry; the identity guard keeps people's records to people.
324
+ - `chat.say`'s message is `<thread>:say:<id>`, said only by an agent answering in that chat.
325
+ - Work handed to another space from a chat shared with a contact comes back labelled with that
326
+ space (`sources`): the contact doesn't read it (spaces' contract: `sharedWith`).
327
+ - The `shared` resource's entries are its own keys: a collection named like what objects inherit
328
+ (`constructor`) is none.
329
+ - **Erasure:** `contact.forget { contact, chats? }` (managers of its space) ends a contact's access
330
+ at once, deletes its record (`contact.deleted`: WhatsApp erases its phone, but a block on it
331
+ stays, by the phone's hash) and, with `chats`, its chats, each for someone who manages that chat's
332
+ space (chat's new `chat.erase`, trusted code only: messages, files, waits, steps in flight; the
333
+ history plugin erases its summaries on `thread.deleted`). The event log keeps what happened (what
334
+ WhatsApp delivered, each change with its document) until retention removes it; memories learned in
335
+ staff's chats, and chats a hand-over opened elsewhere, aren't erased.
336
+ - **An open line, kept in hand:** `whatsapp.block { thread, blocked }` (managers) blocks the phone
337
+ behind a chat: what it sends goes nowhere, unanswered. A customer sending more than the number's
338
+ `rate` a minute (20) goes unanswered. One taken out of their chat is heard again once it's been
339
+ quiet for the gap. Customers are told what can't go on in the number's `language` (`en`, `pt`),
340
+ never in an error's own words.
341
+ - **Fixed:** `message.questions`, and the terminal's `shell.mine`, `shell.set` and `shell.print`,
342
+ let anyone whose id matched in; they're a person's own now.
343
+
344
+ - **Private fields for recorded Actions.** `private: ["buyer", "passengers"]` on an Action (dot
345
+ paths, as a collection's): its calls are recorded without them, in `action.started`'s input and
346
+ `action.completed`'s result alike, so the personal data a booking's buyer gives (names, CPFs,
347
+ emails) never lands in the log, while the calls are still recorded, retried and deduplicated.
348
+ - The call's `inputHash`, and so a nested call's id, still covers the whole input: a retry with
349
+ the same input answers from the log, and a changed one is a new call (under an outside call id,
350
+ `id_conflict`).
351
+ - A result that had private fields is kept whole in `sys.results` (a document by call id, written
352
+ in the completion's commit, no events), and `action.completed` says `private: true`: a retry
353
+ answers with all of it, as it would without them.
354
+
355
+ - **A host without the web app: `serveRoutes`** (`copilotz/web/node`), for an app people use on
356
+ WhatsApp or on the phone. Given the runtime, it serves the app's routes alone (webhooks),
357
+ `/health` (unless a route takes it), and 404 for anything else: no page, no code, no sign-in; a
358
+ route's Action is called as a visitor. Its `close({ drain })` stops listening, letting running
359
+ requests finish, then closes the runtime with those options. A runtime that declares the `socket`
360
+ transport still takes its sockets at `/oxian`. `routeHost(runtime)` (`copilotz/web/server`) is the
361
+ same as a fetch handler. On Node, Deno and Bun (`examples/web-node/routes.ts`).
362
+ - **A route can take a WebSocket** (a voice call's relay): a `serve` route calls `host.upgrade()`,
363
+ and answers with the response it gives; its `socket` is a browser's `WebSocket` as far as
364
+ `onmessage`, `send` and `close` go. It can refuse first, before any handshake. `serveRoutes` and
365
+ the web host's `serve` take it, through Oxian's adapter (route sockets, Oxian 0.23).
366
+
367
+ - **A tool call runs once, even when its turn is tried again.** A step that failed after its tools
368
+ ran (a tool's `llm` View throwing, a commit failing) was run again whole: its model asked again,
369
+ its tools run again, with whatever input the model now chose, and the model never saw the first
370
+ run. Now a step's calls are written before any of them runs (chat's new `intent` collection, one
371
+ document per running turn, no events), and what each returns as soon as it does. A retried turn
372
+ goes on with those calls without asking its model: a call that returned answers from its record,
373
+ and one cut short (its executor lost, the runtime closed) runs again as itself.
374
+ - Tools get `ctx.callId`, the same however many times the call runs (`<turn>:<step>:<n>`): the
375
+ idempotency key for what they do outside. `ctx.retry` is now true only for a call that may have
376
+ run before. The recorded Actions a tool calls answer from the log when it runs again.
377
+ - A turn that ends without its step (failed for good, or stopped mid-tool) keeps the step, with
378
+ what each call returned, or that it never did ("Interrupted before it returned: it may or may
379
+ not have taken effect…"); a stopped answer no longer repeats that step's text.
380
+ - A tool step costs one more commit (its calls, before they run) and one per tool call (what it
381
+ returned). A step that only sends messages costs nothing more: they commit with it.
382
+ - **Closing drops no turn.** `runtime.close()` returned from a delivery it cut short as if it were
383
+ done, then saved its Processor's cursor past it, so a turn running at a deploy never answered. Now
384
+ closing starts no more deliveries or timer occurrences, gives the running ones `drain` ms to
385
+ finish (`close({ drain })`, 5 s by default), and keeps each cursor before an event it didn't
386
+ finish: the next owner delivers it again, with `retry`, and with the above it doesn't repeat its
387
+ tools. Workers are told they're gone after the drain, so running work can still use them. The orgs
388
+ host's `close({ drain })` passes it on to every org's runtime.
389
+
390
+ - **Fixed: messages in a row ended an agent's prompt with its own answer.** A person writing several
391
+ messages a few seconds apart starts a turn for each; one that ran after the agent had answered
392
+ (while it wrote, or with the next turn) was sent a conversation ending with that answer, which
393
+ Anthropic's newer models refuse ("assistant message prefill", HTTP 400), so it failed. Now an
394
+ answer keeps how far its turn had read its thread (`knew`, the `at` of the newest message there);
395
+ the prompt reads what others said after that, while it wrote, after the answer; and the turn of a
396
+ person's message that an answer to them had already read ends without a model call. Adapters never
397
+ send a conversation ending with the model's own message: a user turn ("Continue.") follows it, for
398
+ every provider alike.
399
+ - **Fixed: a failed turn's answer said what its provider said.** "booking failed: Anthropic 400:
400
+ {…}" was written in the chat, where everyone there read it (and a WhatsApp customer got it). It
401
+ now says "booking failed: something went wrong, so it couldn't answer. Try again in a moment."
402
+ What went wrong stays in the `processor.failed` event; a missing key still says who can add one.
403
+ - **Fixed: MiniMax's usage counted no input.** Anthropic's adapter read input and cache counts only
404
+ from `message_start`; MiniMax (on Anthropic's protocol) says them in `message_delta`, so its calls
405
+ were recorded with 0 input tokens. It now reads every count from both, the greatest of each (they
406
+ are totals so far), so Anthropic's, said in both, count once.
407
+ - **OpenAI keeps nothing: `store: false`.** The Responses API stores every response (30 days) unless
408
+ told not to, and Copilotz never read them back: a model's reasoning already comes back encrypted
409
+ and goes back with each call. A server that refuses `store` is asked again without it, from then
410
+ on, as one refusing `include` is. A model's `options` can still set it.
411
+
412
+ - **Fixed: a collection's private fields reached the log on PostgreSQL.** Writes that go as the
413
+ store's single command (most of them) recorded `.created`, `.updated` and `.deleted` with the
414
+ whole document, so `private` fields (a computer's `pending` secret, unsealed account tokens) were
415
+ in the log there; memory and SQLite left them out. The command now records documents without them
416
+ too. Events already written still hold them.
417
+
418
+ ## 1.0.0-rc.20 — 2026-11-04
419
+
420
+ - **A model thinking past two minutes isn't a dropped call.** A call counted as dropped once its
421
+ adapter yielded nothing for `silence` (2 minutes), and was retried or handed to the next model. A
422
+ reasoning model yields nothing while it thinks, though its provider's stream goes on (GPT-6 Luna
423
+ at xhigh on a hard problem: 108 s before its first word), so its thinking was thrown away past two
424
+ minutes while the page showed the agent thinking. Adapters now say a stream is alive (`thinking`
425
+ chunks, at most about once a second, for every provider); `generate` passes them on without
426
+ counting them as written, so a model that thinks and then truly stalls still hands over.
427
+ `complete` no longer reads a chunk it doesn't know as usage.
428
+ - **`terminal`: a running command is seen again by its `commandId` alone.** rc.19 said so, but sent
429
+ the computer no input with it, and every look at a slow command answered "stdin is required". A
430
+ `commandId` beside a blank `command` is a look too; beside a real one, the refusal says how to
431
+ look, type into it or stop it.
432
+ - **An agent's OK shows once its own turn is over.** With agents answering in parallel, the
433
+ computer's approval cards waited for every agent's turn to end, so one that asked and finished
434
+ waited on a card that didn't show. Chat's `conversation` Views get `busy` (the agents whose turns
435
+ run, each held 600 ms after its last step) beside `working`.
436
+ - **People show by name on the web.** The browser loads only front ends, and the `names` resource
437
+ was declared only by the spaces plugin: everyone signed in with a sign-in id (`google:…`) showed
438
+ as "someone", in Members, a chat's people and messages, memories, computers and routines. The
439
+ spaces front end declares it too.
440
+ - **People's pictures beside their names**, in a space's Members, a chat's "In this chat" and a
441
+ person's messages: a `profile.pictures` query (`{ ids }`), and `picturesIn` for Views.
442
+ - **`openai-compatible` sends a model's thinking back.** `reasoning_content` (DeepSeek, Moonshot,
443
+ Qwen, vLLM) is kept as the answer's state and goes back with it, as Anthropic's, Gemini's and
444
+ OpenAI's already did; DeepSeek asks for it once tools are given.
445
+ - **OpenAPI tools** (`openapi({ name, spec })`, in `copilotz/plugins/agents`): an API's operations
446
+ as recorded Actions (`<name>.<operationId>`, not called again when a turn is retried) and agent
447
+ tools (`<name>_<operationId>`); settings per deployment in `resources.openapi.<name>` (base URL,
448
+ headers, query, timeouts, size limits, file fields).
449
+ - **History by age:** an agent's `history: { maxAge }` (ms) leaves older messages out of its prompt
450
+ (they stay in the chat), counted back from the newest message it sees, its start on a grid of a
451
+ tenth of `maxAge` so the prompt cache holds between steps.
452
+ - **Blobs in Google Cloud Storage:** `gcsBlobs({ bucket, prefix? })` (`copilotz/blobs/gcs`), signed
453
+ in as the process's service account on Cloud Run or Compute Engine.
454
+
455
+ ## 1.0.0-rc.19 — 2026-11-03
456
+
457
+ - **`terminal` takes the command in `command`.** It took it in `stdin`, while `start_job` takes
458
+ `command`, and the tool answered any other field with an empty success: a model that sent
459
+ `command` (gpt-6-luna in 21 of 22 calls in our tests, Claude Haiku 5.5 in 7 of 35) was told it ran
460
+ when nothing had. Now `command` runs a command; `commandId` with `stdin` answers a running one,
461
+ and with `operation: "interrupt"` stops it. A call it can't read (another field, both a command
462
+ and a commandId, an empty command, `stdin` without a commandId) runs nothing and says what to give
463
+ instead. The computer program is unchanged. A chat shows the command from `command`, and from
464
+ `stdin` on calls made before.
465
+
466
+ ## 1.0.0-rc.18 — 2026-11-03
467
+
468
+ - **Model tiers for the app's agents** (the new `tiers` plugin, in `copilotz/plugins/agents`). An
469
+ app declares its tiers (`tiers` resource: a title, what it's good for, and a model for each of its
470
+ agents, as an agent's `model` takes one). Which one an agent thinks with, first that applies: a
471
+ model picked for it in the space, the space's tier, a model picked for it by the org, the org's
472
+ tier, the tier the org's plan names (`planTier`), else its own model.
473
+ - An org's owners and admins choose for the org, a space's managers for the space (`tiers.choose`,
474
+ `tiers.pick`); everyone who reaches them sees it (`modelChoice.offered`, `modelChoice.agent`).
475
+ Choices keep the tier's name, so retuning a tier moves everyone on it.
476
+ - A pick keeps the tier's list behind it as fallback, and carries the `maxTokens` of the entry it
477
+ replaces, and its `effort` when the picked model takes it (`models.efforts`, from the catalog).
478
+ - Chat asks through a new `agentModel` resource, once per run, for the app's agents only; agents
479
+ people make keep their own model. A turn's usage now says its `space`.
480
+ - On the web (`tiersWeb`): "Agents' models" in org settings (the tiers with a typical reply's
481
+ price, choosing one with Undo, a model per agent), and on a space's Members tab its tier and
482
+ each app agent's model with where it comes from. Team's model picker is a View (`model.pick`)
483
+ other plugins show.
484
+ - **Plans say whom they're for and which tier they give.** `PlanTerms.for` (`"personal"` or
485
+ `"team"`) is enforced on every move to a plan (checkout, staff, a provider's webhook);
486
+ `PlanTerms.models` names the plan's tier (`billing.tier`). The Billing page offers an org only the
487
+ plans for its kind that its seller can sell (`billing.sellable`), says how much of this period's
488
+ plan credits is left and when they lapse, and speaks of seats only to teams.
489
+ - **The Usage page, rebuilt around money.** One line: spent this billing month, against the budget,
490
+ what's left and how long it lasts at this pace. One "By" switch (kind, space, person, agent,
491
+ model) drives a stacked daily chart and a ranked list; a row filters the page. Activity shows
492
+ turns, computer sessions, app days and conversation upkeep instead of ledger records; staff see
493
+ cost and margin in place.
494
+ - `usage.calls` is gone: `usage.activity` replaces it. `usage.org` groups and filters by
495
+ `category` (agents, computers, apps; `usage.categories`) and by `tags.space`, and names what it
496
+ groups by as the caller reads them, through a new `usageNames` resource kind each owning plugin
497
+ contributes (spaces, conversations, computers, apps).
498
+ - Cloud computers' records say their `space` and, for VM time, their `session`; summaries, memory
499
+ notes and their embeddings say their conversation's `thread` and `space`.
500
+ - Rollups keep `tags.space`. A closed day remembers its shape; days closed with an older one are
501
+ read from records until `usage.close` closes them again (the next nightly close, or by hand).
502
+ - **An app's own instructions are sent as instructions.** A `context` entry with
503
+ `instructions: true` (`system` only) goes right after the agent's instructions, without the
504
+ `<context>` tag that marks other contexts as information, not instructions.
505
+
506
+ ## 1.0.0-rc.17 — 2026-11-03
507
+
508
+ - **A model's state goes back with its answers.** What a model returns to be sent back (Anthropic's
509
+ signed thinking, Gemini's thought signatures) was kept on tool steps but dropped on the final
510
+ answer, so the next turn started without it. Answers keep it now, and agents are sent it on
511
+ text-only messages too. A message's `state` is private, like `told`: people's reads and events go
512
+ without it, and an answer handed back to another space doesn't carry it.
513
+ - **OpenAI's reasoning goes back to it.** The Responses adapter asks for a reasoning model's
514
+ reasoning, encrypted (`include: ["reasoning.encrypted_content"]`), keeps it as its answer's state,
515
+ in its place among the answer's text and calls, without ids, and sends it back. Between tool steps
516
+ the model carries on instead of thinking again: on gpt-6.1-sol, a two-turn tool task wrote 42%
517
+ fewer output tokens. A server that refuses `include` is asked again without it, and not asked
518
+ again. Sent back, past reasoning stays in later prompts (a probe: 616 input tokens with it, 48
519
+ without), so a state now says about what it adds (`LlmState.tokens`), and history counts it.
520
+ - **History counts what a prompt really carries.** The history plugin's tail is measured in
521
+ estimated tokens of what an agent is sent for each message: its text, its model's state, text
522
+ files' content, transcripts, images (1,600 each) and PDFs (2,000 a page), and agents' tool steps,
523
+ which leave the tail without a line. `tail` is in tokens now (was bytes), and its default stays
524
+ `[16_000, 48_000]`, so a text-only conversation keeps about four times more whole.
525
+ - Until the tail first cuts, every message is sent: no 50-message cut before anything is
526
+ summarized. That holds for threads whose outline began with them; older ones get chat's window
527
+ until their first cut.
528
+ - The four newest shared messages always stay whole, so a big file stays while it's talked about.
529
+ - A message's line names its files, and `zoom(id, 1)` gives the message as the agent is sent it,
530
+ text files' content included.
531
+ - After a cut, state from before it (thinking bound to how the conversation began) isn't sent
532
+ again; and when a provider refuses a model's own state as stale anyway, the call is tried once
533
+ more without any.
534
+ - Outlines no longer log events.
535
+ - **Without the history plugin,** an agent's window holds 50 to 100 messages and drops 50 at a time
536
+ (was the latest 50, one off every turn), so the prompt cache holds between drops. `lineage`
537
+ (exported) takes `batched`; its `since: ""` now means every message, and its db needs
538
+ `countDocuments`.
539
+ - **Fixed:** lifting a usage waiver gave back nothing for a use recorded in the very millisecond it
540
+ was lifted (a flaky billing test showed it).
541
+
542
+ ## 1.0.0-rc.16 — 2026-11-02
543
+
544
+ - **Fixed:** staff by email weren't staff anywhere but going into an org. `org.mine` asked without
545
+ their email, so anyone signed in with Google, whose id isn't their email, had no console and no
546
+ "Enter as staff". It takes `email` now, and the orgs host passes the one they verified.
547
+
548
+ ## 1.0.0-rc.15 — 2026-11-02
549
+
550
+ - **Enter as staff, in your own org too.** Staff who belong to an org go in as one of its people, as
551
+ before, but can now ask to go in as staff: from the console, or the org switcher. They keep their
552
+ role, get the staff tools, and "Continue as Owner" takes them back. `POST /orgs/enter` takes
553
+ `staff: true`, `org.enter` takes `staff`, and `GET /orgs` says `asStaff`, which `asStaff()` now
554
+ reads instead of guessing from membership.
555
+
556
+ ## 1.0.0-rc.14 — 2026-11-02
557
+
558
+ - **Credits** (`plugins/billing/credits`): what an org can spend. Plans, credits and payments are
559
+ its own rows, the balance is walked from them and the ledger, and one check stops model calls,
560
+ computers and builds at the limit, in plain words. Staff set plans, give credits, waive usage or
561
+ seats, and record payments; gift codes wait in the directory.
562
+ - **Stripe** (`plugins/billing/stripe`): Checkout, the customer portal and signed webhooks, for one
563
+ or more accounts. A subscription's credits come with its paid invoice.
564
+ - **Prices:** a use on an org's own key costs nothing; a plan can name a price list; `usage.quotes`;
565
+ the model picker shows the org's real price.
566
+ - **Removed:** the cloud plugin's `create` and `budgetUsd` settings. Anyone in an org but its guests
567
+ makes a computer; what the org can spend keeps the cost.
568
+ - **Fixed:** model use listeners are awaited, so a late record isn't lost; a VM's seconds stop at
569
+ its lease, so an org closed for days isn't charged for a VM long gone.
570
+ - `composerNotes`, a note above the composer from another front end.
571
+
572
+ ## 1.0.0-rc.13 — 2026-11-01
573
+
574
+ - **Choose an agent's model from the catalog, with your own key.** The agent editor searches every
575
+ provider and model in the models.dev catalog an agent can work with (`models.offered`): those with
576
+ a protocol we speak and an address of their own. An org's owners and admins add a key for a
577
+ provider right there (`modelKey.set`): it's sealed, shows only its end, and its agents' calls to
578
+ that provider use it, over the app's. Those uses are tagged `paid: "own-key"`. The catalog now
579
+ keeps names, release dates, and which models can't call tools or answer in text.
580
+ - **Secrets stay out of the log.** `env.set` and `apps.configure` recorded their input, so a space's
581
+ or an app's secret was kept in plain text in its `action.started` event, sealed field or not. Both
582
+ are unrecorded now. Secrets set before this remain in events already written: rotate them.
583
+ - **Agents manage cloud computers.** `list_computers`, `create_computer` and `manage_computer` (add,
584
+ remove, rename, default, destroy) work in the conversation's space, as the person the agent works
585
+ for, through the same Actions and rules a person has. Nothing asks first except destroying, which
586
+ loses the disk: like publishing, it's asked every time and only "once" allows it. A person's own
587
+ machine isn't an agent's to manage. An agent in a space with no computer is told it can make one.
588
+ - **A query an Action runs knows who asks.** Named queries called from an Action or a transaction
589
+ lost the actor for what they call themselves, so a query asking another Action could fail, or
590
+ answer as though nobody asked.
591
+ - **A read's answer no longer overwrites something newer.** The owner answers a batch of reads once
592
+ its slowest is ready, so a change could be pushed before the answer that didn't include it. The
593
+ client then showed the older answer until the read next changed: on a page's first load (the push
594
+ was dropped) and after a reconnect (the push was overwritten). What's pushed while a read is asked
595
+ for now wins over its answer, and a connection that's been replaced is no longer listened to.
596
+
597
+ ## 1.0.0-rc.12 — 2026-11-01
598
+
599
+ - **An agent can hand work to itself in another space.** "Itself" now means the same agent in the
600
+ same chat: North in Personal and North in Project management are two pieces of work. Whoever a
601
+ space says answers takes what's handed there, even the agent that sent it, instead of being
602
+ skipped for someone else, so a space where only that agent answers can receive work too. It reads
603
+ what it handed over, and the answer back, as input (`You (via delegated "Solo"): …`), not as
604
+ something it said.
605
+ - **Delegated messages name the other space:** "Delegated: Personal" there, "Delegated: Project
606
+ management" back, with an icon of their own.
607
+
608
+ ## 1.0.0-rc.11 — 2026-10-31
609
+
610
+ - **A routine can run with nobody watching.** What its agent needs a yes for can now be allowed for
611
+ that routine alone: "Allow for this routine" on the card, or "What it can do without asking" on
612
+ its page (run commands, start jobs, change files, per computer), ahead of its first run. Allowing
613
+ it answers every run already stopped on the same thing. What a run waits on shows on the routine's
614
+ page, with the way to its chat. In the terminal: `/approve <n> routine`.
615
+ - **That yes covers only that routine's runs, as it was.** A run's work carries the routine as its
616
+ `origin`, on the actor (`originOf`, chat's contract), which only code can set: a person's own
617
+ message to the same agent still asks, even one claiming `via` a routine. Changing what a routine
618
+ does (what it asks, whom, as whom) makes a new version (`routine.rev`), which the yes doesn't
619
+ cover: its page says so and offers "Allow again". Name and schedule don't count. Where a
620
+ computer's owner keeps the answers, only they can say it (`computer.allowOrigin`).
621
+ - **Plugins can add to a routine's page:** the `routinePanels` resource (`{ view, order? }`), a View
622
+ given the routine.
623
+ - **Authorization is one model.** `personOf`, `forbidden`, `invalid`, `failure`, `people` and
624
+ `inPerson` come from the runtime; `may`, `must` and `mustOwnOr` from the spaces contract,
625
+ replacing seven `personOf` copies, about 25 hand-written checks and about 30 local error helpers.
626
+ `reachOf` is the only answer to what someone may do, and respects every limit on them.
627
+ - **Fixed: taking over a space.** A thread named after a space could be used to become its manager.
628
+ A document's memberships now live under its own name (`note:n1`), and only shared collections can
629
+ be named.
630
+ - **Fixed: keys left their space.** Actions that checked reach, then wrote as the system, ignored a
631
+ key's limit. Reach respects it now (`within`, which replaces `at` on a key's actor), and the API's
632
+ own narrowing rules are gone. Keys can't answer approvals.
633
+ - **Fixed: agents asked by agents ran as the agent that asked.** A turn is always its own agent, for
634
+ the person the work is for, including where a computer's owner answered.
635
+ - **Publishing is asked every time.** Nothing wider than once is offered or honored.
636
+ - **Approvals can be taken back,** from the Computer tab. What's allowed for a routine comes from
637
+ the routine (`origins` resource), not from what the caller says.
638
+ - **Roles are given one way** (`seat`): a granted request can't name a role that doesn't exist or
639
+ make an agent a manager, and custom roles count everywhere.
640
+ - **An archived space isn't written in,** which only views enforced before.
641
+ - **Replacing or rebuilding an app** takes its publisher or a manager. **Where a computer's owner
642
+ answers,** only they change anything on it directly; others still read it.
643
+ - **Leaving ends what someone left behind,** however they left: desks, yeses and keys for that
644
+ space, and out of the org, all of them and their own computers. Cloud computers stay for those who
645
+ run the org. A preview's cookie asks whether its person is still a member on each request.
646
+ - **Agents can hand work to other spaces.** `send_message` takes `space`: any space the person can
647
+ write in, listed in the agent's context with who answers there. A new chat opens there, visible to
648
+ its members and marked as delegated, for the same person; the answer comes back to the chat it
649
+ came from, and stopping that chat stops the work. An agent can't hand work to itself.
650
+
651
+ ## 1.0.0-rc.10 — 2026-10-31
652
+
653
+ - **A routine made from a chat posts back in that chat.** `schedule_routine` keeps the chat it was
654
+ called from (`routine.thread`), where before no setting could reach it: `same` meant a new chat
655
+ made by the first run. `routine.create` takes `thread` (a chat in that space its maker can see),
656
+ and `post` now defaults to `same`, in the web form too. Its confirmation says where it posts. If
657
+ the chat is deleted or moved to another space, the run starts a new one and says why
658
+ (`routineRun.note`).
659
+ - **A new chat each run is a first-class choice,** for runs to open later (a daily analysis):
660
+ `post:
661
+ "new"`. Each chat is named by `chatName`, with `{name}`, `{date}`, `{time}` (its
662
+ timezone) and `{run}` filled in; by default its name and the day (and time, for `hours` and
663
+ `cron`), so runs no longer all share one name. Its agent may then name it for what it found, with
664
+ the new `name_chat` tool, offered only in those chats. The routine's page lists runs by their
665
+ chats' names. The form and the agent's confirmation say how many chats a day it comes to, when it
666
+ runs at least hourly.
667
+ - **A routine's messages say they're its.** `chat.send` takes `via` (`{ kind, name, path? }`): the
668
+ message is still its sender's, but shows "Routine: Pricing", linked to the routine, and agents
669
+ read `ana (via routine "Pricing"): …`, so they know nobody typed it just now. `chat.send` also
670
+ takes `title` and `renamable` for a new thread, in the same commit as its first message.
671
+
672
+ ## 1.0.0-rc.9 — 2026-10-31
673
+
674
+ - **A space's page has a few tabs, and their sections.** A `spaceTabs` entry `under` another tab is
675
+ a section of it, listed in its menu, with an optional `group` heading; a tab with sections names
676
+ its own View among them (`own`) and shows them in a menu beside (`menu: "side"`) or as tabs above
677
+ (`top`, the default). A section's key opens its tab there (`?tab=memories`), so every address
678
+ still works, and the palette lists sections too. The tabs now: Chats, Board and Documents (an
679
+ app's), Computer (Computers, Environment, Apps), Routines and Settings (General, Members,
680
+ Memories, Skills, Channels: WhatsApp, API). Where there's no room for a menu beside (a phone),
681
+ Settings is a list to tap into, and a section says how to get back; in the side panel, sections
682
+ are tabs under the panel's. Who's waiting to join shows on Settings and on Members.
683
+ - **On phones, an app's page.** The viewport spans the screen (`viewport-fit=cover`; the composer
684
+ keeps clear of the home bar) and the keyboard resizes the page where browsers allow
685
+ (`interactive-widget`); pinching still zooms. The page never scrolls sideways or bounces as a
686
+ whole, and a tap is a tap (no double-tap zoom, no grey flash). On touch screens, text is 16px,
687
+ fields too at least (so Safari never zooms in on one you type in), and buttons, icon buttons,
688
+ fields and copy buttons are 44px targets (40px small).
689
+ - **A conversation scrolls up and down only.** What's wider (a table, code) scrolls in its own box;
690
+ text wraps; a file's chip and a tool call being written no longer widen it.
691
+ - **What an agent asks you never covers the conversation.** The command or the file it shows scrolls
692
+ within a few lines (a command can wrap into dozens), with a copy button, so the answers are always
693
+ in sight; the cards keep to at most 60% of the chat's height and scroll there.
694
+
695
+ ## 1.0.0-rc.8 — 2026-10-31
696
+
697
+ - **Agents' prompts only grow, so the prompt cache keeps them whole.** A turn context (the
698
+ computers', the spaces elsewhere, memories, an app's) is sent after the conversation only when it
699
+ says something new: when its text isn't what the agent was last told there. The turn's first
700
+ message keeps what it was told (`told`, `[{ name, text }]`, a private field: people's reads come
701
+ without it), and later turns are sent it there. So each model call starts with the whole call
702
+ before it, tool steps and earlier contexts included, where before a turn's context, dropped the
703
+ next turn, cut the cached prefix at the turn's start. `Prompt.turn` is now `{ name, text }[]`:
704
+ what's new this turn.
705
+ - **OpenAI's newer models keep the prefix where told.** Since GPT-5.6, OpenAI caches only at
706
+ breakpoints: its implicit one falls at the end of the latest user message, the turn's context,
707
+ which the next turn didn't send, so a conversation reused only its system text. The Responses
708
+ adapter now marks a message with `cache` (the end of the history) with an explicit
709
+ `prompt_cache_breakpoint`, on the user's or tool's input at or before it. A model that refuses
710
+ breakpoints (earlier ones, other servers) is asked again without, and never again. What OpenAI
711
+ wrote to the cache is metered as `cacheWrite` (billed at a premium by models that report it).
712
+ - **Memory: the system text says how to remember; what's remembered is told.** The `memory` context
713
+ (system) is the guide alone, the same in every conversation, so the system text is cached across
714
+ all of an agent's conversations in a space. Core memories about who's here are the new
715
+ `remembered` turn context: those learned before the conversation began, told at its start and kept
716
+ there. Core memories learned since come up in `recall` when relevant (query `relevant` takes
717
+ `since`; `core` takes `before`), so a memory learned mid-conversation never rewrites its prompt.
718
+ - **History summarizes a message when it leaves the tail**, not when it comes: only then is its line
719
+ read (in the outline, or by `zoom`). A conversation that stays within the tail never calls the
720
+ summarizer; a longer one builds the same tree, in batches, as its tail shrinks. The outline keeps
721
+ the tail's message ids (`tailIds`); threads summarized before keep the lines they have.
722
+ - Measured on Compass's own plugins with real OpenAI calls (gpt-6.1-sol; a 12-turn conversation,
723
+ then a 4-turn one with tool steps, the same agent in the same space): the agent's calls read 95.5%
724
+ of their input from the prompt cache, up from 59.3%, and every model call in the run (memory
725
+ extraction included) 92.4%, up from 44.4%, with no summarizer call (101 before). A 24-turn
726
+ conversation that outgrew its tail: 92.4% for the agent, its one miss when the outline arrives
727
+ (the prompt is new from there).
728
+
729
+ ## 1.0.0-rc.7 — 2026-10-30
730
+
731
+ - **Agents choose among a space's computers.** Every computer tool (the terminal, jobs, files, the
732
+ browser, web search, `preview`, and the apps' `publish`) takes `computer`: one of the space's
733
+ computers by its name (any case, or part of it when only one has it) or its id; the space's
734
+ default otherwise. An unknown or ambiguous name, or a computer that's offline, is told with the
735
+ ones to choose from; naming a cloud computer that's asleep wakes it. Each turn, an agent's context
736
+ lists the space's computers (whose, a cloud computer or a machine, how it is now, its system, what
737
+ it asks first, the default marked) when there are several; one stays as it was. In a space with
738
+ several, an answer says the computer it came from (`computer`), and the web's tool steps show it.
739
+ - **A job is found on whichever computer runs it:** `computer.preview` and `computer.scope` (and so
740
+ `app.publish` and the agents' `preview` and `publish`) take a job without a computer and look for
741
+ it on the space's computers that are online, the default first. `computer.preview`,
742
+ `computer.scope`, `computer.allowed` and `app.publish` take `computer` (a name or an id).
743
+ - **The default computer** is named so on the web (a "Default" badge, "Make it the default") and in
744
+ `/computers`.
745
+ - **Apps: what serves a preview serves the app.** A folder with no Dockerfile is built into an image
746
+ made for it (no more buildpacks, which found nothing to build in a plain folder): the computer's
747
+ system (Debian 12) with Node.js 24 and Python, the folder as it was sent, its dependencies
748
+ installed again (npm, pnpm, yarn; `requirements.txt`) and its `build` script run, then its job's
749
+ command behind a front that passes the platform's port on to the job's port on localhost,
750
+ WebSockets included. A job bound to `127.0.0.1` (as previews allow) is served all the same; the
751
+ job is given its own port as `PORT`. `AppHost.build` answers the port its image serves on. Without
752
+ a Dockerfile, an app is published from its job (its command).
753
+ - **A space's environment: variables and secrets.** Each space has its own (collection `envVar`,
754
+ `{ name, value, secret, computers, by, at }`, names like `API_URL`). Its managers change it
755
+ (`env.set` `{ in, name, value?, secret?, computers? }`, `env.unset`); its members read names and
756
+ the values of variables. A secret is sealed at rest (AES-GCM, with the new `computers: { key }`
757
+ resource, else kept as given) and never read back by anyone: people see only that it's there (and
758
+ a long one's last 4 characters), agents only its name. Every job and shell started in the space,
759
+ from the web or by an agent, gets the variables with `computers` (true unless said), under its own
760
+ `env` (`jobs.start` and `terminal` take `env`; the `start_job` tool too); a job kept running keeps
761
+ its env on the computer's disk and starts again with it. A secret given to computers can be read
762
+ by any process there, and the web says so where it's given. Agents' computer context lists the
763
+ names they have (`$NAME`), never a value.
764
+ - **Apps get the space's environment.** An app is deployed with all of its space's variables and
765
+ secrets, and its own over them (`envVar` with `app`; queries `here` and `apps`), passed to Cloud
766
+ Run as its env. `app.configure` `{ app, env? }` (its publisher, or the space's managers) changes
767
+ its own and deploys its image again with them, without a build (the port the image serves is kept
768
+ as `served`). A change to the space's environment doesn't redeploy anything: it reaches an app
769
+ when it's published again, or at once with "Apply to apps". Taking an app down removes its own
770
+ environment (`env.unset` `{ in, app }`).
771
+ - **Web: Environment.** A space's Environment tab lists its variables (a secret masked, whether its
772
+ computers get it, who set it and when); its managers add, change and remove them, with the honest
773
+ limit shown beside a secret given to computers. Under it, its live apps and "Apply to apps"
774
+ (through computers' new `envActions` resource). An app's row opens its environment: the space's
775
+ shown, its own edited, saved with a redeploy. The job start form takes its own environment
776
+ (`NAME=value` lines). The toolkit's `Time` also draws on a server.
777
+ - **People by name, everywhere:** agents' prompts, notes, the terminal and the web show a person's
778
+ name where they showed their id (`google:1139…`). The spaces plugin keeps each person's profile
779
+ (collection `profile`: their name as sign-in verified it, else their email's name, and picture;
780
+ never their email), from the identity plugin's `person` as it changes, at `org.join`, and on
781
+ `space.personal` (each page load), so people known before it get one the next time they come.
782
+ Anyone in the org reads names through the query `profile.names` `{ ids }` (a browser reads
783
+ profiles only through it); two people of one name stay apart ("Ana (2762)"). The new `names`
784
+ resource says where names are (`{ collection: "profile" }`), and the spaces contract (and
785
+ `copilotz/plugins/access`) gives `nameOf`, `namesOf`, `namesIn` (Views), `namesFor` (Actions,
786
+ Processors, tools), `withNames`, `idsIn` and `PROFILE`. A sign-in's id is never shown as a name:
787
+ without a profile, it's "someone".
788
+ - **Agents' prompts:** others' messages read "Ana Lima: …", "People here:" names people, a
789
+ conversation's space is "Ana Lima's Personal space", the computers context says whose computer it
790
+ is and who says yes by name, as do waiting asks, routines (who made one, whom it runs as), history
791
+ summaries and zoom, and recall. Memory extraction writes names, and `remember`'s `about` takes a
792
+ person by name.
793
+ - **Notes and summaries written before names:** a memory or a summary that says someone's id
794
+ (`google:1139…'s cloud computer…`) reads with their name wherever it shows (prompts, recall, the
795
+ Memories page, the terminal), substituted when it's shown: nothing stored is changed, and nothing
796
+ needs migrating.
797
+ - **The web:** the Members tab (people, requests to join, invitations), the space header's faces,
798
+ other people's Personal spaces ("Ana Lima's Personal"), invitations ("Ana Lima invited you"), chat
799
+ messages and the conversation's people, memories (grouped, by whom, search), routines, skills
800
+ ("Made by"), apps ("by"), computers (whose each is, who asks first, who started a job or made a
801
+ preview), usage and the org's people show names. **The terminal:** `/computers`, `/approvals`,
802
+ `/requests`, `/grant`, `/invitations`, memories and messages, likewise; `/remove` takes a person's
803
+ id with a colon (`google:1139…`).
804
+ - **Share refusals** name the spaces a write would reveal ("Ana Lima's Personal space"), not their
805
+ ids. An org invitation made by a space invitation says who invited them.
806
+
807
+ ## 1.0.0-rc.6 — 2026-10-30
808
+
809
+ - **Computer program:** an app on another machine over plain `ws:` (an `http://` address that isn't
810
+ localhost) fails at once, saying to use https, instead of waiting to connect forever: Oxian
811
+ refuses plain `ws:` but to this machine.
812
+ - **Cloud pools:** a pool grown for a wake isn't shrunk while its VM boots. `pool.take` records what
813
+ it waits for (`poolWant`), and `pool.tick` sizes each pool to its floor, the takes of the last 2
814
+ minutes and the wakes still waiting. Before, the next minute's sizing set the pool back to its
815
+ floor, deleting the VM a wake had grown it for before it connected.
816
+ - **Cloud computers:** `cloudComputer.sizes` also says whether the person asking may make one now
817
+ (`create`, and `why` not: `admins`, `budget`), and the warm and view minutes; `cloud.may` says
818
+ just that. The web's "Use a cloud computer" choice shows why it can't be picked, and the copy says
819
+ the app's minutes.
820
+ - **Cloud computers shared into a space:** each computer's state is kept on it and its desks
821
+ (`status`: `{ kind: "cloud", state, size }`, set with the new system Action `computer.mark`, as
822
+ the cloud plugin sees it change), so the space's members see how anyone's is (asleep, waking,
823
+ awake), not "offline".
824
+ - **Previews:** `preview.here` records carry their address (`url`); the web no longer works it out.
825
+ `computer.preview` and `computer.scope` take a `desk` (one of the space's), and so does
826
+ `app.publish`: the web makes previews and publishes apps from the computer it's on, not the
827
+ space's default.
828
+ - **Apps:** an agent's `publish` asks its person with where the app will be ("wants to publish Shop
829
+ at https://shop.copilotz.app").
830
+ - **`org.me`** isn't recorded (it only reads), so reads (queries, Views) ask it too.
831
+ - **The local cloud host** is one per app and account, whichever executor asks: with several
832
+ executors, a VM one started was turned away by another.
833
+
834
+ ## 1.0.0-rc.5 — 2026-10-30
835
+
836
+ - **Cloud computers** (plugin `cloud`, see design/cloud-computers.md): computers the app hosts for
837
+ its people. A cloud computer is a disk; a VM from a pool serves it for one wake, then goes.
838
+ `cloud.create` `{ size, in?, name? }` makes one (an org's owners and admins, or its members when
839
+ the settings say, under the org's monthly `budgetUsd`); work for one that's asleep wakes it (a few
840
+ seconds; about 30 from cold); unused for `warmMinutes` (10) it's released, and after `coldDays`
841
+ (7) it goes cold, kept as a snapshot. A person with it open (`computer.view`, every few minutes
842
+ from its panel) keeps it awake up to `viewMinutes` (120). Its agents ask their person nothing
843
+ first (the `cloud` settings' `approve`, `[]` by default, in place of the computers plugin's;
844
+ publishing an app is always asked). `cloud.destroy`, `cloud.org`, queries `cloudComputer.mine` and
845
+ `cloudComputer.sizes` (each size priced an hour). Hosts are adapters: Compute Engine (`gceHost`:
846
+ managed instance groups as pools, pd-balanced disks, VMs admitted by their Google identity tokens)
847
+ and a local one for development and tests. Metered under `computer` as `cloud/<size>` (VM
848
+ seconds), `cloud/disk` and `cloud/snapshot` (GB-hours).
849
+ - **Cloud pools** (plugin `cloudPool`): the pools' VMs, where they connect (the `pool` worker kind),
850
+ and the Actions `cloud` reaches them through: `pool.take`, `pool.serve`, `pool.stop`, `pool.drop`,
851
+ `pool.renew`, and `pool.tick` each minute (pools sized by the hour). Each VM given is leased:
852
+ renewed each minute while its computer uses it, deleted once nobody does. A VM serving a computer
853
+ connects again as itself when its socket drops, until it's told to stop; then, or gone, never
854
+ again. One runtime has both plugins; an app of many orgs runs `cloudPool` once (its directory's
855
+ runtime, needing nothing else) and gives each org's runtime `remotePool(call, org)`, the same
856
+ Actions forwarded there, each org touching only its own VMs.
857
+ - **Computer program:** `computer pool --app <url>`, a free VM of an app's pool: it waits to serve a
858
+ computer, mounts its disk, and runs it, connected at the address it's told (its org's). Given the
859
+ app's socket (`wss://…`), its identity is still for the app's https origin. scripts/cloud has a
860
+ Google Cloud project's setup and the pool VMs' startup script.
861
+ - **Previews:** what a job serves, at `https://<computer>-preview.<domain>`, carried to the computer
862
+ over its own connection (no inbound network), streamed both ways (`computer.http`). For a space's
863
+ members (a signed cookie, given by the app) or anyone with the link. `computer.preview`,
864
+ `computer.previews`, `computer.unpreview`, and the agents' `preview` tool. Settings
865
+ `computers.previews` `{ domain, key }`. WebSockets aren't carried yet.
866
+ - **Apps** (plugin `apps`): what a job serves, published to run on its own at
867
+ `https://<label>.copilotz.app`. The space's folder is archived by its computer
868
+ (`computer.archive`), built (its Dockerfile, else buildpacks) and deployed as a service that
869
+ scales to zero. `app.publish` (and the agents' `publish` tool, always asked), `app.list`,
870
+ `app.redeploy`, `app.remove`; builds and running metered under `app`. Hosts: Cloud Run
871
+ (`cloudRun`) and a local one (`localApps`).
872
+ - **Apps' safety:** services and images are named `cz-app-<name>` (an app never replaces another
873
+ service in its project); builds run as `cz-build@<project>` (`buildServiceAccount`), never the
874
+ project's default service account, as they run the app's own Dockerfile. `app.publish`'s `port`
875
+ wins over its job's.
876
+ - **Previews' safety:** a preview's `Set-Cookie` loses its `Domain` (no preview sets cookies for the
877
+ domain's other hosts); a request with several `cz_preview` cookies gets in when any is its host's.
878
+ - **Jobs** can say their `port` (a preview's) and be kept (`keep`): a kept job runs again when its
879
+ computer wakes.
880
+ - **A person's panel** (`computer.work`): `wake` wakes a computer that sleeps (its page opened);
881
+ what only reads (`jobs.list`, `jobs.logs`, `files.list`, `files.read`, `search`) neither wakes it
882
+ nor keeps it awake, so a page left open lets it sleep (`computer.view` keeps it awake while
883
+ viewed, up to the limit). A computer the app makes says what its agents ask about
884
+ (`computer.provision`'s `approve`, kept on it and its desks).
885
+ - **On the web** (`copilotz/plugins/compute/web`: `computersWeb`, `cloudWeb`, `appsWeb`):
886
+ - adding a computer is one choice: a cloud computer (its sizes, priced an hour), your own machine,
887
+ or one of yours;
888
+ - a cloud computer shows its state, how long it's been awake and about what that came to; asleep,
889
+ waking it, with honest progress; deleting it, asked first;
890
+ - a job serving a port can be previewed (members, or anyone with the link), opened, copied and
891
+ published as an app (live as it builds), and a space has an Apps tab;
892
+ - jobs can be kept running.
893
+ - **Web host:** routes by host (`{ host }` beside `{ path }`); a trusted front (`front`: a secret
894
+ header and the host it forwards) for apps behind a proxy; orgs claim hosts in the directory
895
+ (`orgHost`), resolved at `/__copilotz/hosts/resolve`.
896
+ - **Runtime:** `runtime.workers.dispatch(kind, id, workload, body?)`, for host code (a route)
897
+ streaming work to a connected worker.
898
+ - **Usage:** `usage.quote` prices quantities as a use would be, without recording one.
899
+
900
+ ## 1.0.0-rc.4 — 2026-10-30
901
+
902
+ - **Usage: every use has a price.** It's the cost (a margin of 0) unless the app's price book says
903
+ otherwise: rates of its own, or a gross `margin` on the cost (`{ margin: 0.9 }` is ten times the
904
+ cost), from its `since` date on. `markup` is gone: a margin says it. Uses recorded before count at
905
+ their cost, in totals and when re-rated.
906
+ - **Usage: by part.** Each record keeps its cost and price by part (input, cache reads, cache
907
+ writes, output, reasoning…) and what caching saved; totals and rollups sum them.
908
+ - **Usage: people see prices.** `usage.totals`, `usage.org` and `usage.calls` give people prices
909
+ only; costs (and so margins) only platform staff and the system. Each of `usage.org` and
910
+ `usage.calls` says whether it shows costs (`costs`).
911
+ - **Usage page and `/usage`:** spend (the price) everywhere, with caching visible: hit rate, what
912
+ reading and writing the cache was charged, and what it saved, overall and by model; cached tokens
913
+ in the chart and in each call. Platform staff also see cost and gross margin, marked staff-only.
914
+ - **Models:** OpenAI-compatible providers' cache reads and writes are read as each reports them
915
+ (DeepSeek's cache hits, Moonshot's cached tokens, OpenRouter's cache writes).
916
+
917
+ ## 1.0.0-rc.3 — 2026-10-30
918
+
919
+ - **Computers:** connecting one more app (`computer install <app> --code`) no longer stops the
920
+ computer running in the background: it enrolls beside it, then that one starts again with every
921
+ app. Turned away, the background one runs on as it was (before, a code refused while it was
922
+ stopping left it stopped). The state's lock waits a moment for one that's stopping.
923
+ - **Computers:** a new app's folder never takes the name of a space folder kept in the root by a
924
+ computer from before apps had folders of their own.
925
+ - **Install script:** it always says, last, how the terminal it ran in gets `computer` (new ones
926
+ have it).
927
+
1
928
  ## 1.0.0-rc.2 — 2026-10-30
2
929
 
3
930
  - **Orgs:** an org's socket is in its own address (`/o/<org>/oxian`), beside the shared `/oxian`, so