copilotz 1.0.0-rc.5 → 1.0.0-rc.51

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 (1569) hide show
  1. package/AGENTS.md +400 -0
  2. package/CHANGELOG.md +2598 -0
  3. package/README.md +288 -830
  4. package/hosts/terminal/contract.d.ts +1 -1
  5. package/hosts/terminal/host.js +13 -5
  6. package/hosts/web/assets.d.ts +14 -11
  7. package/hosts/web/assets.js +27 -18
  8. package/hosts/web/host-words.d.ts +1 -0
  9. package/hosts/web/host-words.js +24 -0
  10. package/hosts/web/host.d.ts +20 -4
  11. package/hosts/web/host.js +120 -39
  12. package/hosts/web/lazy.js +1 -1
  13. package/hosts/web/mod.d.ts +10 -7
  14. package/hosts/web/mod.js +15 -6
  15. package/hosts/web/node/bundle.d.ts +5 -0
  16. package/hosts/web/node/bundle.js +2 -2
  17. package/hosts/web/node/mod.d.ts +45 -19
  18. package/hosts/web/node/mod.js +45 -19
  19. package/hosts/web/node/serve.d.ts +57 -34
  20. package/hosts/web/node/serve.js +95 -31
  21. package/hosts/web/palette/palette.d.ts +2 -1
  22. package/hosts/web/palette/palette.js +36 -35
  23. package/hosts/web/palette/sources.js +1 -1
  24. package/hosts/web/palette/state.d.ts +18 -6
  25. package/hosts/web/palette/state.js +8 -0
  26. package/hosts/web/palette/words.d.ts +1 -0
  27. package/hosts/web/palette/words.js +23 -0
  28. package/hosts/web/part.d.ts +7 -1
  29. package/hosts/web/part.js +22 -5
  30. package/hosts/web/pt-br/about.d.ts +3 -0
  31. package/hosts/web/pt-br/about.js +21 -0
  32. package/hosts/web/pt-br/chat.d.ts +3 -0
  33. package/hosts/web/pt-br/chat.js +266 -0
  34. package/hosts/web/pt-br/host.d.ts +3 -0
  35. package/hosts/web/pt-br/host.js +18 -0
  36. package/hosts/web/pt-br/memory.d.ts +3 -0
  37. package/hosts/web/pt-br/memory.js +41 -0
  38. package/hosts/web/pt-br/mod.d.ts +23 -0
  39. package/hosts/web/pt-br/mod.js +39 -0
  40. package/hosts/web/pt-br/palette.d.ts +6 -0
  41. package/hosts/web/pt-br/palette.js +17 -0
  42. package/hosts/web/pt-br/shell.d.ts +3 -0
  43. package/hosts/web/pt-br/shell.js +47 -0
  44. package/hosts/web/pt-br/sign-in.d.ts +3 -0
  45. package/hosts/web/pt-br/sign-in.js +92 -0
  46. package/hosts/web/pt-br/spaces.d.ts +3 -0
  47. package/hosts/web/pt-br/spaces.js +271 -0
  48. package/hosts/web/pt-br/toolkit.d.ts +3 -0
  49. package/hosts/web/pt-br/toolkit.js +54 -0
  50. package/hosts/web/pt-br/usage.d.ts +3 -0
  51. package/hosts/web/pt-br/usage.js +156 -0
  52. package/hosts/web/pwa.js +1 -1
  53. package/hosts/web/screens.d.ts +17 -0
  54. package/hosts/web/screens.js +26 -0
  55. package/hosts/web/server.d.ts +46 -102
  56. package/hosts/web/server.js +182 -163
  57. package/hosts/web/session.d.ts +27 -1
  58. package/hosts/web/session.js +34 -0
  59. package/hosts/web/signin-email.d.ts +71 -0
  60. package/hosts/web/signin-email.js +416 -0
  61. package/hosts/web/signin-password.d.ts +19 -0
  62. package/hosts/web/signin-password.js +68 -0
  63. package/hosts/web/signin-words.d.ts +154 -0
  64. package/hosts/web/signin-words.js +177 -0
  65. package/hosts/web/signin.d.ts +30 -12
  66. package/hosts/web/signin.js +113 -56
  67. package/hosts/web/style.d.ts +1 -1
  68. package/hosts/web/style.js +10 -0
  69. package/hosts/web/surface.d.ts +20 -0
  70. package/hosts/web/surface.js +42 -0
  71. package/hosts/web/theme/css.d.ts +3 -2
  72. package/hosts/web/theme/css.js +10 -3
  73. package/hosts/web/theme/default.d.ts +1 -1
  74. package/hosts/web/theme/files/mod.d.ts +1 -1
  75. package/hosts/web/toolkit/ago.d.ts +0 -5
  76. package/hosts/web/toolkit/ago.js +17 -17
  77. package/hosts/web/toolkit/anchor.d.ts +3 -1
  78. package/hosts/web/toolkit/anchor.js +16 -3
  79. package/hosts/web/toolkit/audio-player.d.ts +1 -1
  80. package/hosts/web/toolkit/audio-player.js +12 -7
  81. package/hosts/web/toolkit/button.js +6 -0
  82. package/hosts/web/toolkit/code-block.js +4 -3
  83. package/hosts/web/toolkit/copy-button.js +8 -2
  84. package/hosts/web/toolkit/detail-value.js +11 -7
  85. package/hosts/web/toolkit/dialog.js +2 -1
  86. package/hosts/web/toolkit/drawer.d.ts +3 -1
  87. package/hosts/web/toolkit/drawer.js +7 -3
  88. package/hosts/web/toolkit/formula.js +3 -2
  89. package/hosts/web/toolkit/humanize.d.ts +0 -12
  90. package/hosts/web/toolkit/humanize.js +2 -1
  91. package/hosts/web/toolkit/icon-button.d.ts +6 -3
  92. package/hosts/web/toolkit/icon-button.js +11 -2
  93. package/hosts/web/toolkit/icon.d.ts +3 -0
  94. package/hosts/web/toolkit/icon.js +6 -0
  95. package/hosts/web/toolkit/inline-edit.js +2 -1
  96. package/hosts/web/toolkit/input.js +6 -0
  97. package/hosts/web/toolkit/long-text.js +2 -1
  98. package/hosts/web/toolkit/markdown/markdown.js +4 -3
  99. package/hosts/web/toolkit/rail-item.d.ts +39 -0
  100. package/hosts/web/toolkit/rail-item.js +47 -0
  101. package/hosts/web/toolkit/terminal.js +5 -4
  102. package/hosts/web/toolkit/time.js +4 -2
  103. package/hosts/web/toolkit/tooltip.d.ts +2 -2
  104. package/hosts/web/toolkit/tooltip.js +3 -1
  105. package/hosts/web/toolkit/waveform.d.ts +3 -1
  106. package/hosts/web/toolkit/waveform.js +5 -2
  107. package/hosts/web/toolkit/words.d.ts +1 -0
  108. package/hosts/web/toolkit/words.js +60 -0
  109. package/hosts/web/update.js +2 -1
  110. package/hosts/web/widget.d.ts +31 -0
  111. package/hosts/web/widget.js +430 -0
  112. package/hosts/web/widgets.d.ts +43 -0
  113. package/hosts/web/widgets.js +118 -0
  114. package/hosts/web/words.d.ts +76 -0
  115. package/hosts/web/words.js +114 -0
  116. package/package.json +135 -16
  117. package/plugins/access/accounts/actions/callback.d.ts +0 -1
  118. package/plugins/access/accounts/actions/callback.js +20 -34
  119. package/plugins/access/accounts/actions/complete.js +2 -2
  120. package/plugins/access/accounts/actions/connect.js +2 -2
  121. package/plugins/access/accounts/actions/disconnect.js +8 -6
  122. package/plugins/access/accounts/actions/model-key.d.ts +5 -0
  123. package/plugins/access/accounts/actions/model-key.js +102 -0
  124. package/plugins/access/accounts/collections/account.d.ts +2 -2
  125. package/plugins/access/accounts/collections/account.js +2 -3
  126. package/plugins/access/accounts/collections/flow.d.ts +2 -2
  127. package/plugins/access/{directory/collections/org-host.d.ts → accounts/collections/model-key.d.ts} +16 -19
  128. package/plugins/access/accounts/collections/model-key.js +17 -0
  129. package/plugins/access/accounts/contract.d.ts +1 -1
  130. package/plugins/access/accounts/mod.d.ts +7 -2
  131. package/plugins/access/accounts/mod.js +20 -5
  132. package/plugins/access/accounts/resources/models.js +2 -0
  133. package/plugins/access/accounts/routes/callback.d.ts +10 -0
  134. package/plugins/access/accounts/routes/callback.js +33 -0
  135. package/plugins/access/accounts/shared/flow.js +1 -1
  136. package/plugins/access/accounts/shared/oauth.d.ts +2 -2
  137. package/plugins/access/accounts/shared/oauth.js +2 -2
  138. package/plugins/access/accounts/shared/renew.js +4 -1
  139. package/plugins/access/accounts/shared/rules.d.ts +4 -2
  140. package/plugins/access/accounts/shared/rules.js +20 -5
  141. package/plugins/access/accounts/shared/settings.js +2 -2
  142. package/plugins/access/accounts/web.js +3 -3
  143. package/plugins/access/contacts/actions/chat.d.ts +1 -0
  144. package/plugins/access/contacts/actions/chat.js +45 -0
  145. package/plugins/access/contacts/actions/forget.d.ts +1 -0
  146. package/plugins/access/contacts/actions/forget.js +58 -0
  147. package/plugins/access/contacts/actions/start.d.ts +1 -0
  148. package/plugins/access/contacts/actions/start.js +60 -0
  149. package/plugins/access/contacts/collections/contact.d.ts +81 -0
  150. package/plugins/access/contacts/collections/contact.js +58 -0
  151. package/plugins/access/contacts/contract.d.ts +10 -0
  152. package/plugins/access/contacts/contract.js +10 -0
  153. package/plugins/access/contacts/mod.d.ts +33 -0
  154. package/plugins/access/contacts/mod.js +64 -0
  155. package/plugins/access/contacts/views/contact.d.ts +8 -0
  156. package/plugins/access/contacts/views/contact.js +26 -0
  157. package/plugins/access/contacts/views/notes.d.ts +11 -0
  158. package/plugins/access/contacts/views/notes.js +34 -0
  159. package/plugins/access/contacts/web.d.ts +7 -0
  160. package/plugins/access/contacts/web.js +11 -0
  161. package/plugins/access/contract.d.ts +14 -0
  162. package/plugins/access/contract.js +12 -0
  163. package/plugins/access/dev/actions/sign-in.d.ts +1 -0
  164. package/plugins/access/dev/actions/sign-in.js +52 -0
  165. package/plugins/access/dev/mod.d.ts +17 -0
  166. package/plugins/access/dev/mod.js +32 -0
  167. package/plugins/access/dev/routes/sign-in.d.ts +8 -0
  168. package/plugins/access/dev/routes/sign-in.js +25 -0
  169. package/plugins/access/dev/shared/here.d.ts +4 -0
  170. package/plugins/access/dev/shared/here.js +32 -0
  171. package/plugins/access/dev/shared/nearby.d.ts +2 -0
  172. package/plugins/access/dev/shared/nearby.js +27 -0
  173. package/plugins/access/email/actions/code.d.ts +2 -0
  174. package/plugins/access/email/actions/code.js +106 -0
  175. package/plugins/access/email/actions/import.d.ts +1 -0
  176. package/plugins/access/email/actions/import.js +54 -0
  177. package/plugins/access/email/actions/invite.d.ts +5 -0
  178. package/plugins/access/email/actions/invite.js +143 -0
  179. package/plugins/access/email/actions/password-accounts.d.ts +3 -0
  180. package/plugins/access/email/actions/password-accounts.js +118 -0
  181. package/plugins/access/email/actions/password-sign-in.d.ts +2 -0
  182. package/plugins/access/email/actions/password-sign-in.js +84 -0
  183. package/plugins/access/email/actions/prune.d.ts +3 -0
  184. package/plugins/access/email/actions/prune.js +32 -0
  185. package/plugins/access/email/actions/reset.d.ts +2 -0
  186. package/plugins/access/email/actions/reset.js +98 -0
  187. package/plugins/access/email/actions/send.d.ts +1 -0
  188. package/plugins/access/email/actions/send.js +95 -0
  189. package/plugins/access/email/actions/sign-in.d.ts +1 -0
  190. package/plugins/access/email/actions/sign-in.js +70 -0
  191. package/plugins/access/email/actions/sign-up.d.ts +4 -0
  192. package/plugins/access/email/actions/sign-up.js +105 -0
  193. package/plugins/access/email/adapters/console.d.ts +8 -0
  194. package/plugins/access/email/adapters/console.js +16 -0
  195. package/plugins/access/email/adapters/resend.d.ts +9 -0
  196. package/plugins/access/email/adapters/resend.js +40 -0
  197. package/plugins/access/email/adapters/smtp.d.ts +10 -0
  198. package/plugins/access/email/adapters/smtp.js +16 -0
  199. package/plugins/access/email/collections/code.d.ts +118 -0
  200. package/plugins/access/email/collections/code.js +39 -0
  201. package/plugins/access/email/collections/login.d.ts +78 -0
  202. package/plugins/access/email/collections/login.js +28 -0
  203. package/plugins/access/email/collections/password-login.d.ts +70 -0
  204. package/plugins/access/email/collections/password-login.js +26 -0
  205. package/plugins/access/email/collections/rate.d.ts +51 -0
  206. package/plugins/access/email/collections/rate.js +14 -0
  207. package/plugins/access/email/contract.d.ts +207 -0
  208. package/plugins/access/email/contract.js +8 -0
  209. package/plugins/access/email/mod.d.ts +75 -0
  210. package/plugins/access/email/mod.js +181 -0
  211. package/plugins/access/email/password.d.ts +38 -0
  212. package/plugins/access/email/password.js +63 -0
  213. package/plugins/access/email/resources/messages.d.ts +9 -0
  214. package/plugins/access/email/resources/messages.js +64 -0
  215. package/plugins/access/email/routes/password.d.ts +13 -0
  216. package/plugins/access/email/routes/password.js +8 -0
  217. package/plugins/access/email/routes/sign-in.d.ts +38 -0
  218. package/plugins/access/email/routes/sign-in.js +31 -0
  219. package/plugins/access/email/shared/addresses.d.ts +13 -0
  220. package/plugins/access/email/shared/addresses.js +16 -0
  221. package/plugins/access/email/shared/bcrypt.d.ts +7 -0
  222. package/plugins/access/email/shared/bcrypt.js +138 -0
  223. package/plugins/access/email/shared/codes.d.ts +41 -0
  224. package/plugins/access/email/shared/codes.js +90 -0
  225. package/plugins/access/email/shared/identifiers.d.ts +8 -0
  226. package/plugins/access/email/shared/identifiers.js +22 -0
  227. package/plugins/access/email/shared/inputs.d.ts +37 -0
  228. package/plugins/access/email/shared/inputs.js +43 -0
  229. package/plugins/access/email/shared/limits.d.ts +54 -0
  230. package/plugins/access/email/shared/limits.js +71 -0
  231. package/plugins/access/email/shared/mail.d.ts +20 -0
  232. package/plugins/access/email/shared/mail.js +30 -0
  233. package/plugins/access/email/shared/mime.d.ts +24 -0
  234. package/plugins/access/email/shared/mime.js +153 -0
  235. package/plugins/access/email/shared/password.d.ts +18 -0
  236. package/plugins/access/email/shared/password.js +91 -0
  237. package/plugins/access/email/shared/people.d.ts +35 -0
  238. package/plugins/access/email/shared/people.js +55 -0
  239. package/plugins/access/email/shared/pi.d.ts +7 -0
  240. package/plugins/access/email/shared/pi.js +101 -0
  241. package/plugins/access/email/shared/settings.d.ts +33 -0
  242. package/plugins/access/email/shared/settings.js +41 -0
  243. package/plugins/access/email/shared/smtp.d.ts +22 -0
  244. package/plugins/access/email/shared/smtp.js +160 -0
  245. package/plugins/access/email/shared/step.d.ts +27 -0
  246. package/plugins/access/email/shared/step.js +87 -0
  247. package/plugins/access/google/actions/sign-in.js +5 -2
  248. package/plugins/access/google/adapters/keys.d.ts +4 -4
  249. package/plugins/access/google/adapters/keys.js +2 -2
  250. package/plugins/access/google/mod.d.ts +4 -2
  251. package/plugins/access/google/mod.js +6 -2
  252. package/plugins/access/google/routes/sign-in.d.ts +12 -0
  253. package/plugins/access/google/routes/sign-in.js +36 -0
  254. package/plugins/access/identity/actions/person.d.ts +7 -0
  255. package/plugins/access/identity/actions/person.js +38 -2
  256. package/plugins/access/identity/actions/session.js +10 -6
  257. package/plugins/access/identity/collections/credential.d.ts +9 -19
  258. package/plugins/access/identity/collections/credential.js +9 -24
  259. package/plugins/access/identity/collections/person.d.ts +9 -0
  260. package/plugins/access/identity/collections/person.js +2 -0
  261. package/plugins/access/identity/contract.d.ts +16 -2
  262. package/plugins/access/identity/contract.js +18 -1
  263. package/plugins/access/identity/mod.d.ts +16 -7
  264. package/plugins/access/identity/mod.js +43 -18
  265. package/plugins/access/identity/routes/session.d.ts +17 -0
  266. package/plugins/access/identity/routes/session.js +35 -0
  267. package/plugins/access/mod.d.ts +28 -6
  268. package/plugins/access/mod.js +9 -3
  269. package/plugins/access/spaces/actions/agents.js +15 -12
  270. package/plugins/access/spaces/actions/archive.js +4 -5
  271. package/plugins/access/spaces/actions/can.js +6 -6
  272. package/plugins/access/spaces/actions/create.js +17 -5
  273. package/plugins/access/spaces/actions/invitation.js +16 -13
  274. package/plugins/access/spaces/actions/keep.d.ts +1 -0
  275. package/plugins/access/spaces/actions/keep.js +55 -0
  276. package/plugins/access/spaces/actions/leave.js +2 -2
  277. package/plugins/access/spaces/actions/member.d.ts +6 -0
  278. package/plugins/access/spaces/actions/member.js +131 -46
  279. package/plugins/access/spaces/actions/org.d.ts +3 -2
  280. package/plugins/access/spaces/actions/org.js +26 -17
  281. package/plugins/access/spaces/actions/personal.js +12 -5
  282. package/plugins/access/spaces/actions/rename.js +8 -5
  283. package/plugins/access/spaces/actions/request.js +8 -13
  284. package/plugins/access/spaces/collections/invitation.js +7 -5
  285. package/plugins/access/spaces/collections/member.d.ts +31 -3
  286. package/plugins/access/spaces/collections/member.js +11 -2
  287. package/plugins/access/spaces/collections/profile.d.ts +61 -0
  288. package/plugins/access/spaces/collections/profile.js +54 -0
  289. package/plugins/access/spaces/collections/request.d.ts +1 -1
  290. package/plugins/access/spaces/collections/request.js +2 -2
  291. package/plugins/access/spaces/collections/space.d.ts +10 -1
  292. package/plugins/access/spaces/collections/space.js +35 -4
  293. package/plugins/access/spaces/contract.d.ts +68 -7
  294. package/plugins/access/spaces/contract.js +3 -0
  295. package/plugins/access/spaces/mod.d.ts +27 -7
  296. package/plugins/access/spaces/mod.js +45 -14
  297. package/plugins/access/spaces/processors/profile.d.ts +7 -0
  298. package/plugins/access/spaces/processors/profile.js +10 -0
  299. package/plugins/access/spaces/resources/commands.js +15 -5
  300. package/plugins/access/spaces/resources/tools.d.ts +0 -5
  301. package/plugins/access/spaces/resources/tools.js +14 -2
  302. package/plugins/access/spaces/shared/agents.js +2 -2
  303. package/plugins/access/spaces/shared/audience.d.ts +51 -0
  304. package/plugins/access/spaces/shared/audience.js +113 -0
  305. package/plugins/access/spaces/shared/can.d.ts +46 -0
  306. package/plugins/access/spaces/shared/can.js +76 -0
  307. package/plugins/access/spaces/shared/declared.d.ts +21 -0
  308. package/plugins/access/spaces/shared/declared.js +8 -0
  309. package/plugins/access/spaces/shared/labels.d.ts +24 -10
  310. package/plugins/access/spaces/shared/labels.js +79 -20
  311. package/plugins/access/spaces/shared/managers.d.ts +2 -1
  312. package/plugins/access/spaces/shared/managers.js +4 -4
  313. package/plugins/access/spaces/shared/names.d.ts +70 -0
  314. package/plugins/access/spaces/shared/names.js +105 -0
  315. package/plugins/access/spaces/shared/personal.d.ts +3 -2
  316. package/plugins/access/spaces/shared/personal.js +5 -3
  317. package/plugins/access/spaces/shared/profile.d.ts +21 -0
  318. package/plugins/access/spaces/shared/profile.js +27 -0
  319. package/plugins/access/spaces/shared/reach.d.ts +115 -9
  320. package/plugins/access/spaces/shared/reach.js +363 -25
  321. package/plugins/access/spaces/shared/rules.d.ts +29 -10
  322. package/plugins/access/spaces/shared/rules.js +127 -18
  323. package/plugins/access/spaces/shared/seat.d.ts +15 -0
  324. package/plugins/access/spaces/shared/seat.js +44 -0
  325. package/plugins/access/spaces/terminal.js +1 -1
  326. package/plugins/access/spaces/views/elsewhere.d.ts +9 -4
  327. package/plugins/access/spaces/views/elsewhere.js +32 -8
  328. package/plugins/access/spaces/views/web/agents.d.ts +6 -1
  329. package/plugins/access/spaces/views/web/agents.js +21 -21
  330. package/plugins/access/spaces/views/web/header.d.ts +3 -1
  331. package/plugins/access/spaces/views/web/header.js +26 -25
  332. package/plugins/access/spaces/views/web/invitation.d.ts +3 -1
  333. package/plugins/access/spaces/views/web/invitation.js +13 -10
  334. package/plugins/access/spaces/views/web/invitations.d.ts +3 -1
  335. package/plugins/access/spaces/views/web/invitations.js +12 -3
  336. package/plugins/access/spaces/views/web/invite-dialog.d.ts +2 -2
  337. package/plugins/access/spaces/views/web/invite-dialog.js +6 -5
  338. package/plugins/access/spaces/views/web/invite.js +6 -5
  339. package/plugins/access/spaces/views/web/invited.js +4 -1
  340. package/plugins/access/spaces/views/web/inviting.js +11 -6
  341. package/plugins/access/spaces/views/web/members.d.ts +4 -1
  342. package/plugins/access/spaces/views/web/members.js +65 -23
  343. package/plugins/access/spaces/views/web/new-space.js +4 -3
  344. package/plugins/access/spaces/views/web/not-here.js +12 -16
  345. package/plugins/access/spaces/views/web/org-about.js +21 -18
  346. package/plugins/access/spaces/views/web/org-members.d.ts +1 -1
  347. package/plugins/access/spaces/views/web/org-members.js +34 -27
  348. package/plugins/access/spaces/views/web/palette.js +44 -33
  349. package/plugins/access/spaces/views/web/panel.d.ts +3 -2
  350. package/plugins/access/spaces/views/web/panel.js +36 -19
  351. package/plugins/access/spaces/views/web/pending.d.ts +3 -1
  352. package/plugins/access/spaces/views/web/pending.js +10 -7
  353. package/plugins/access/spaces/views/web/pick.js +10 -6
  354. package/plugins/access/spaces/views/web/sections.d.ts +31 -0
  355. package/plugins/access/spaces/views/web/sections.js +23 -0
  356. package/plugins/access/spaces/views/web/settings.js +26 -29
  357. package/plugins/access/spaces/views/web/space.d.ts +4 -2
  358. package/plugins/access/spaces/views/web/space.js +31 -14
  359. package/plugins/access/spaces/views/web/spaces.d.ts +3 -1
  360. package/plugins/access/spaces/views/web/spaces.js +12 -3
  361. package/plugins/access/spaces/views/web/steps.js +19 -20
  362. package/plugins/access/spaces/views/web/style.d.ts +1 -1
  363. package/plugins/access/spaces/views/web/style.js +47 -0
  364. package/plugins/access/spaces/views/web/tabs.d.ts +18 -6
  365. package/plugins/access/spaces/views/web/tabs.js +26 -9
  366. package/plugins/access/spaces/views/web/tree.d.ts +24 -1
  367. package/plugins/access/spaces/views/web/tree.js +64 -25
  368. package/plugins/access/spaces/views/web/who.d.ts +38 -22
  369. package/plugins/access/spaces/views/web/who.js +80 -28
  370. package/plugins/access/spaces/views/web/words.d.ts +1 -0
  371. package/plugins/access/spaces/views/web/words.js +290 -0
  372. package/plugins/access/spaces/views/where.d.ts +4 -2
  373. package/plugins/access/spaces/views/where.js +18 -3
  374. package/plugins/access/spaces/web.d.ts +3 -0
  375. package/plugins/access/spaces/web.js +73 -22
  376. package/plugins/access/web.d.ts +1 -0
  377. package/plugins/access/web.js +1 -0
  378. package/plugins/agents/chat/actions/approve.js +109 -0
  379. package/plugins/agents/chat/actions/attach.d.ts +3 -0
  380. package/plugins/agents/chat/actions/attach.js +92 -0
  381. package/plugins/agents/chat/actions/erase.d.ts +1 -0
  382. package/plugins/agents/chat/actions/erase.js +47 -0
  383. package/plugins/agents/chat/actions/forget-grant.d.ts +1 -0
  384. package/plugins/agents/chat/actions/forget-grant.js +16 -0
  385. package/plugins/agents/chat/actions/fork.js +2 -2
  386. package/plugins/agents/chat/actions/import.d.ts +1 -0
  387. package/plugins/agents/chat/actions/import.js +244 -0
  388. package/plugins/agents/chat/actions/move.js +15 -21
  389. package/plugins/agents/chat/actions/notes.d.ts +1 -0
  390. package/plugins/agents/chat/actions/notes.js +48 -0
  391. package/plugins/agents/chat/actions/open.d.ts +1 -0
  392. package/plugins/agents/chat/actions/open.js +49 -0
  393. package/plugins/agents/chat/actions/prune.d.ts +3 -0
  394. package/plugins/agents/chat/actions/prune.js +20 -0
  395. package/plugins/agents/chat/actions/quiet.d.ts +1 -0
  396. package/plugins/agents/chat/actions/quiet.js +33 -0
  397. package/plugins/agents/chat/actions/say.d.ts +1 -0
  398. package/plugins/agents/chat/actions/say.js +165 -0
  399. package/plugins/agents/chat/actions/send.d.ts +10 -0
  400. package/plugins/agents/chat/actions/send.js +240 -68
  401. package/plugins/agents/chat/actions/shown.d.ts +1 -0
  402. package/plugins/agents/chat/actions/shown.js +35 -0
  403. package/plugins/agents/chat/actions/stop.js +9 -2
  404. package/plugins/agents/chat/actions/unmark.d.ts +1 -0
  405. package/plugins/agents/chat/actions/unmark.js +100 -0
  406. package/plugins/agents/chat/collections/approval.d.ts +307 -0
  407. package/plugins/agents/chat/collections/approval.js +107 -0
  408. package/plugins/agents/chat/collections/file.d.ts +80 -3
  409. package/plugins/agents/chat/collections/file.js +67 -7
  410. package/plugins/{compute/computers → agents/chat}/collections/grant.d.ts +37 -23
  411. package/plugins/agents/chat/collections/grant.js +47 -0
  412. package/plugins/agents/chat/collections/intent.d.ts +183 -0
  413. package/plugins/agents/chat/collections/intent.js +73 -0
  414. package/plugins/agents/chat/collections/live.d.ts +14 -3
  415. package/plugins/agents/chat/collections/live.js +11 -1
  416. package/plugins/agents/chat/collections/message.d.ts +280 -14
  417. package/plugins/agents/chat/collections/message.js +122 -14
  418. package/plugins/agents/chat/collections/shown.d.ts +105 -0
  419. package/plugins/agents/chat/collections/shown.js +34 -0
  420. package/plugins/agents/chat/collections/thread.d.ts +81 -2
  421. package/plugins/agents/chat/collections/thread.js +65 -4
  422. package/plugins/agents/chat/collections/wait.d.ts +15 -6
  423. package/plugins/agents/chat/collections/wait.js +4 -2
  424. package/plugins/agents/chat/contract.d.ts +53 -10
  425. package/plugins/agents/chat/contract.js +37 -0
  426. package/plugins/agents/chat/mod.d.ts +82 -9
  427. package/plugins/agents/chat/mod.js +189 -18
  428. package/plugins/agents/chat/processors/failed.js +30 -6
  429. package/plugins/agents/chat/processors/turn.d.ts +1 -1
  430. package/plugins/agents/chat/processors/turn.js +290 -59
  431. package/plugins/agents/chat/resources/commands.d.ts +5 -0
  432. package/plugins/agents/chat/resources/commands.js +101 -22
  433. package/plugins/agents/chat/resources/tools.d.ts +3 -0
  434. package/plugins/agents/chat/resources/tools.js +136 -0
  435. package/plugins/agents/chat/routes/files.d.ts +39 -0
  436. package/plugins/agents/chat/routes/files.js +169 -0
  437. package/plugins/agents/chat/shared/agents.d.ts +17 -2
  438. package/plugins/agents/chat/shared/agents.js +22 -4
  439. package/plugins/agents/chat/shared/asks.d.ts +81 -0
  440. package/plugins/agents/chat/shared/asks.js +203 -0
  441. package/plugins/agents/chat/shared/contact-send.d.ts +32 -0
  442. package/plugins/agents/chat/shared/contact-send.js +18 -0
  443. package/plugins/agents/chat/shared/delivery.d.ts +34 -4
  444. package/plugins/agents/chat/shared/delivery.js +212 -11
  445. package/plugins/agents/chat/shared/lineage.d.ts +31 -5
  446. package/plugins/agents/chat/shared/lineage.js +65 -21
  447. package/plugins/agents/chat/shared/live.d.ts +4 -2
  448. package/plugins/agents/chat/shared/live.js +2 -1
  449. package/plugins/agents/chat/shared/notes.d.ts +28 -0
  450. package/plugins/agents/chat/shared/notes.js +35 -0
  451. package/plugins/agents/chat/shared/origin.d.ts +22 -0
  452. package/plugins/agents/chat/shared/origin.js +11 -0
  453. package/plugins/agents/chat/shared/send.d.ts +12 -2
  454. package/plugins/agents/chat/shared/send.js +191 -4
  455. package/plugins/agents/chat/shared/share.d.ts +48 -0
  456. package/plugins/agents/chat/shared/share.js +67 -0
  457. package/plugins/agents/chat/shared/tools.d.ts +33 -0
  458. package/plugins/agents/chat/shared/tools.js +28 -0
  459. package/plugins/agents/chat/shared/types.d.ts +197 -13
  460. package/plugins/agents/chat/shared/types.js +3 -0
  461. package/plugins/agents/chat/shared/unmark.d.ts +145 -0
  462. package/plugins/agents/chat/shared/unmark.js +237 -0
  463. package/plugins/agents/chat/shared/where.d.ts +20 -0
  464. package/plugins/agents/chat/shared/where.js +18 -0
  465. package/plugins/agents/chat/terminal.d.ts +2 -1
  466. package/plugins/agents/chat/terminal.js +12 -8
  467. package/plugins/agents/chat/views/asked.d.ts +35 -0
  468. package/plugins/agents/chat/views/asked.js +89 -0
  469. package/plugins/agents/chat/views/context.d.ts +4 -2
  470. package/plugins/agents/chat/views/context.js +7 -3
  471. package/plugins/agents/chat/views/held.d.ts +10 -0
  472. package/plugins/agents/chat/views/held.js +10 -0
  473. package/plugins/agents/chat/views/history.d.ts +4 -0
  474. package/plugins/agents/chat/views/history.js +1 -1
  475. package/plugins/agents/chat/views/message.d.ts +9 -2
  476. package/plugins/agents/chat/views/message.js +59 -15
  477. package/plugins/agents/chat/views/participants.js +7 -1
  478. package/plugins/agents/chat/views/prompt.d.ts +3 -1
  479. package/plugins/agents/chat/views/prompt.js +66 -18
  480. package/plugins/agents/chat/views/terminal/agent-prompt.js +2 -2
  481. package/plugins/agents/chat/views/terminal/asks.d.ts +14 -0
  482. package/plugins/agents/chat/views/terminal/asks.js +35 -0
  483. package/plugins/agents/chat/views/terminal/author.js +5 -1
  484. package/plugins/agents/chat/views/terminal/conversation.js +2 -2
  485. package/plugins/agents/chat/views/terminal/message.js +9 -9
  486. package/plugins/agents/chat/views/terminal/moving.d.ts +11 -0
  487. package/plugins/agents/chat/views/terminal/moving.js +27 -0
  488. package/plugins/agents/chat/views/web/asking.d.ts +15 -0
  489. package/plugins/agents/chat/views/web/asking.js +50 -0
  490. package/plugins/agents/chat/views/web/asks.d.ts +42 -0
  491. package/plugins/agents/chat/views/web/asks.js +170 -0
  492. package/plugins/agents/chat/views/web/attach.d.ts +9 -3
  493. package/plugins/agents/chat/views/web/attach.js +17 -6
  494. package/plugins/agents/chat/views/web/before-send.d.ts +9 -0
  495. package/plugins/agents/chat/views/web/before-send.js +7 -0
  496. package/plugins/agents/chat/views/web/chats.js +9 -6
  497. package/plugins/agents/chat/views/web/composer.d.ts +72 -5
  498. package/plugins/agents/chat/views/web/composer.js +136 -36
  499. package/plugins/agents/chat/views/web/conversation.d.ts +63 -2
  500. package/plugins/agents/chat/views/web/conversation.js +156 -51
  501. package/plugins/agents/chat/views/web/download.js +2 -1
  502. package/plugins/agents/chat/views/web/handed.d.ts +17 -0
  503. package/plugins/agents/chat/views/web/handed.js +47 -0
  504. package/plugins/agents/chat/views/web/header.d.ts +12 -7
  505. package/plugins/agents/chat/views/web/header.js +9 -8
  506. package/plugins/agents/chat/views/web/held.d.ts +10 -9
  507. package/plugins/agents/chat/views/web/held.js +27 -20
  508. package/plugins/agents/chat/views/web/home.d.ts +3 -2
  509. package/plugins/agents/chat/views/web/home.js +13 -17
  510. package/plugins/agents/chat/views/web/lane.d.ts +11 -0
  511. package/plugins/agents/chat/views/web/lane.js +44 -0
  512. package/plugins/agents/chat/views/web/listed.d.ts +9 -1
  513. package/plugins/agents/chat/views/web/listed.js +22 -8
  514. package/plugins/agents/chat/views/web/live.js +7 -6
  515. package/plugins/agents/chat/views/web/message.d.ts +16 -3
  516. package/plugins/agents/chat/views/web/message.js +65 -26
  517. package/plugins/agents/chat/views/web/missing.js +2 -1
  518. package/plugins/agents/chat/views/web/move.d.ts +7 -2
  519. package/plugins/agents/chat/views/web/move.js +44 -12
  520. package/plugins/agents/chat/views/web/moving.d.ts +21 -0
  521. package/plugins/agents/chat/views/web/moving.js +46 -0
  522. package/plugins/agents/chat/views/web/new-thread.d.ts +5 -1
  523. package/plugins/agents/chat/views/web/new-thread.js +6 -3
  524. package/plugins/agents/chat/views/web/notes-lane.d.ts +66 -0
  525. package/plugins/agents/chat/views/web/notes-lane.js +57 -0
  526. package/plugins/agents/chat/views/web/notes.d.ts +16 -0
  527. package/plugins/agents/chat/views/web/notes.js +36 -0
  528. package/plugins/agents/chat/views/web/over.d.ts +17 -11
  529. package/plugins/agents/chat/views/web/over.js +18 -10
  530. package/plugins/agents/chat/views/web/palette.js +21 -15
  531. package/plugins/agents/chat/views/web/picture.js +2 -1
  532. package/plugins/agents/chat/views/web/plain.d.ts +8 -1
  533. package/plugins/agents/chat/views/web/plain.js +18 -1
  534. package/plugins/agents/chat/views/web/queued.js +3 -3
  535. package/plugins/agents/chat/views/web/recent.js +4 -3
  536. package/plugins/agents/chat/views/web/record.js +10 -12
  537. package/plugins/agents/chat/views/web/recorder.js +10 -9
  538. package/plugins/agents/chat/views/web/retrying.js +5 -4
  539. package/plugins/agents/chat/views/web/send-on.d.ts +29 -0
  540. package/plugins/agents/chat/views/web/send-on.js +68 -0
  541. package/plugins/agents/chat/views/web/steps.js +8 -5
  542. package/plugins/agents/chat/views/web/style.d.ts +5 -3
  543. package/plugins/agents/chat/views/web/style.js +177 -11
  544. package/plugins/agents/chat/views/web/transcript.js +3 -2
  545. package/plugins/agents/chat/views/web/voice-failed.js +2 -1
  546. package/plugins/agents/chat/views/web/voice-note.js +2 -1
  547. package/plugins/agents/chat/views/web/who.js +4 -1
  548. package/plugins/agents/chat/views/web/words.d.ts +1 -0
  549. package/plugins/agents/chat/views/web/words.js +315 -0
  550. package/plugins/agents/chat/web.d.ts +33 -4
  551. package/plugins/agents/chat/web.js +60 -15
  552. package/plugins/agents/contract.d.ts +12 -0
  553. package/plugins/agents/contract.js +12 -0
  554. package/plugins/agents/history/collections/outline.d.ts +102 -9
  555. package/plugins/agents/history/collections/outline.js +26 -4
  556. package/plugins/agents/history/collections/summary.d.ts +16 -4
  557. package/plugins/agents/history/collections/summary.js +8 -1
  558. package/plugins/agents/history/mod.d.ts +21 -9
  559. package/plugins/agents/history/mod.js +26 -13
  560. package/plugins/agents/history/processors/compact.d.ts +7 -1
  561. package/plugins/agents/history/processors/compact.js +235 -81
  562. package/plugins/agents/history/processors/erase.d.ts +3 -0
  563. package/plugins/agents/history/processors/erase.js +11 -0
  564. package/plugins/agents/history/resources/tools.js +41 -16
  565. package/plugins/agents/history/shared/lines.d.ts +21 -5
  566. package/plugins/agents/history/shared/lines.js +39 -3
  567. package/plugins/agents/history/shared/settings.d.ts +5 -1
  568. package/plugins/agents/history/shared/summarized.d.ts +3 -0
  569. package/plugins/agents/history/shared/summarized.js +3 -1
  570. package/plugins/agents/history/shared/weight.d.ts +28 -0
  571. package/plugins/agents/history/shared/weight.js +62 -0
  572. package/plugins/agents/history/views/history.d.ts +6 -3
  573. package/plugins/agents/history/views/history.js +41 -14
  574. package/plugins/agents/history/views/since.d.ts +6 -3
  575. package/plugins/agents/history/views/since.js +10 -2
  576. package/plugins/agents/history/views/summary.d.ts +4 -1
  577. package/plugins/agents/history/views/summary.js +5 -2
  578. package/plugins/agents/memory/actions/import.d.ts +1 -0
  579. package/plugins/agents/memory/actions/import.js +88 -0
  580. package/plugins/agents/memory/collections/memory.d.ts +2 -2
  581. package/plugins/agents/memory/collections/memory.js +32 -6
  582. package/plugins/agents/memory/mod.d.ts +21 -8
  583. package/plugins/agents/memory/mod.js +40 -13
  584. package/plugins/agents/memory/processors/extract.d.ts +11 -2
  585. package/plugins/agents/memory/processors/extract.js +86 -18
  586. package/plugins/agents/memory/resources/commands.js +1 -1
  587. package/plugins/agents/memory/resources/context.d.ts +12 -1
  588. package/plugins/agents/memory/resources/context.js +10 -2
  589. package/plugins/agents/memory/resources/tools.js +76 -16
  590. package/plugins/agents/memory/shared/scope.d.ts +35 -6
  591. package/plugins/agents/memory/shared/scope.js +84 -19
  592. package/plugins/agents/memory/shared/search.d.ts +5 -2
  593. package/plugins/agents/memory/shared/search.js +40 -14
  594. package/plugins/agents/memory/shared/settings.d.ts +17 -4
  595. package/plugins/agents/memory/shared/settings.js +15 -4
  596. package/plugins/agents/memory/terminal.js +1 -1
  597. package/plugins/agents/memory/views/context.d.ts +4 -7
  598. package/plugins/agents/memory/views/context.js +92 -44
  599. package/plugins/agents/memory/views/memory.d.ts +1 -0
  600. package/plugins/agents/memory/views/memory.js +4 -2
  601. package/plugins/agents/memory/views/terminal/memory.d.ts +4 -1
  602. package/plugins/agents/memory/views/terminal/memory.js +7 -2
  603. package/plugins/agents/memory/views/web/card.d.ts +4 -2
  604. package/plugins/agents/memory/views/web/card.js +12 -8
  605. package/plugins/agents/memory/views/web/list.d.ts +3 -1
  606. package/plugins/agents/memory/views/web/list.js +30 -18
  607. package/plugins/agents/memory/views/web/memories.js +9 -4
  608. package/plugins/agents/memory/views/web/move.js +4 -3
  609. package/plugins/agents/memory/views/web/palette.js +8 -5
  610. package/plugins/agents/memory/views/web/pick.js +15 -10
  611. package/plugins/agents/memory/views/web/words.d.ts +1 -0
  612. package/plugins/agents/memory/views/web/words.js +48 -0
  613. package/plugins/agents/memory/web.js +12 -4
  614. package/plugins/agents/mod.d.ts +9 -5
  615. package/plugins/agents/mod.js +9 -5
  616. package/plugins/agents/openapi/actions/operation.d.ts +11 -0
  617. package/plugins/agents/openapi/actions/operation.js +86 -0
  618. package/plugins/agents/openapi/contract.d.ts +77 -0
  619. package/plugins/agents/openapi/mod.d.ts +5 -0
  620. package/plugins/agents/openapi/mod.js +75 -0
  621. package/plugins/agents/openapi/resources/tools.d.ts +9 -0
  622. package/plugins/agents/openapi/resources/tools.js +23 -0
  623. package/plugins/agents/openapi/shared/files.d.ts +4 -0
  624. package/plugins/agents/openapi/shared/files.js +128 -0
  625. package/plugins/agents/openapi/shared/plan.d.ts +34 -0
  626. package/plugins/agents/openapi/shared/plan.js +122 -0
  627. package/plugins/agents/openapi/shared/request.d.ts +15 -0
  628. package/plugins/agents/openapi/shared/request.js +87 -0
  629. package/plugins/agents/openapi/shared/response.d.ts +24 -0
  630. package/plugins/agents/openapi/shared/response.js +133 -0
  631. package/plugins/agents/openapi/shared/schema.d.ts +20 -0
  632. package/plugins/agents/openapi/shared/schema.js +128 -0
  633. package/plugins/agents/openapi/shared/settings.d.ts +22 -0
  634. package/plugins/agents/openapi/shared/settings.js +34 -0
  635. package/plugins/agents/openapi/shared/spec.d.ts +55 -0
  636. package/plugins/agents/openapi/shared/spec.js +99 -0
  637. package/plugins/agents/routines/actions/create.js +24 -12
  638. package/plugins/agents/routines/actions/delete.js +2 -2
  639. package/plugins/agents/routines/actions/origin.d.ts +1 -0
  640. package/plugins/agents/routines/actions/origin.js +32 -0
  641. package/plugins/agents/routines/actions/pause.js +2 -2
  642. package/plugins/agents/routines/actions/resume.js +2 -2
  643. package/plugins/agents/routines/actions/run.js +4 -4
  644. package/plugins/agents/routines/actions/update.js +18 -10
  645. package/plugins/agents/routines/collections/routine.d.ts +20 -8
  646. package/plugins/agents/routines/collections/routine.js +14 -8
  647. package/plugins/agents/routines/collections/run.d.ts +10 -1
  648. package/plugins/agents/routines/collections/run.js +2 -0
  649. package/plugins/agents/routines/contract.d.ts +7 -1
  650. package/plugins/agents/routines/mod.d.ts +10 -2
  651. package/plugins/agents/routines/mod.js +23 -3
  652. package/plugins/agents/routines/resources/tools.js +103 -29
  653. package/plugins/agents/routines/shared/fire.d.ts +7 -2
  654. package/plugins/agents/routines/shared/fire.js +33 -15
  655. package/plugins/agents/routines/shared/routines.d.ts +18 -9
  656. package/plugins/agents/routines/shared/routines.js +33 -19
  657. package/plugins/agents/routines/shared/schedule.d.ts +6 -1
  658. package/plugins/agents/routines/shared/schedule.js +12 -1
  659. package/plugins/agents/routines/views/web/form.d.ts +4 -3
  660. package/plugins/agents/routines/views/web/form.js +29 -7
  661. package/plugins/agents/routines/views/web/new.js +1 -1
  662. package/plugins/agents/routines/views/web/page.d.ts +2 -1
  663. package/plugins/agents/routines/views/web/page.js +32 -10
  664. package/plugins/agents/routines/views/web/routines.d.ts +2 -1
  665. package/plugins/agents/routines/views/web/routines.js +1 -1
  666. package/plugins/agents/routines/views/web/step.js +3 -1
  667. package/plugins/agents/routines/views/web/style.d.ts +1 -1
  668. package/plugins/agents/routines/views/web/style.js +1 -0
  669. package/plugins/agents/routines/web.js +6 -6
  670. package/plugins/agents/skills/actions/create.js +2 -2
  671. package/plugins/agents/skills/actions/delete.js +2 -2
  672. package/plugins/agents/skills/actions/update.js +2 -2
  673. package/plugins/agents/skills/collections/skill.d.ts +1 -1
  674. package/plugins/agents/skills/collections/skill.js +4 -4
  675. package/plugins/agents/skills/mod.js +14 -5
  676. package/plugins/agents/skills/resources/tools.js +1 -1
  677. package/plugins/agents/skills/shared/skills.d.ts +2 -2
  678. package/plugins/agents/skills/shared/skills.js +3 -6
  679. package/plugins/agents/skills/shared/write.d.ts +2 -3
  680. package/plugins/agents/skills/shared/write.js +2 -1
  681. package/plugins/agents/skills/views/context.d.ts +8 -4
  682. package/plugins/agents/skills/views/context.js +9 -4
  683. package/plugins/agents/skills/views/web/page.js +7 -3
  684. package/plugins/agents/skills/web.js +8 -6
  685. package/plugins/agents/web.d.ts +0 -1
  686. package/plugins/agents/web.js +0 -1
  687. package/plugins/agents/webtools/adapters/duckduckgo.d.ts +21 -0
  688. package/plugins/agents/webtools/adapters/duckduckgo.js +168 -0
  689. package/plugins/agents/webtools/adapters/fake.d.ts +3 -0
  690. package/plugins/agents/webtools/adapters/fake.js +8 -0
  691. package/plugins/agents/webtools/adapters/serper.d.ts +2 -0
  692. package/plugins/agents/webtools/adapters/serper.js +30 -0
  693. package/plugins/agents/webtools/contract.d.ts +72 -0
  694. package/plugins/agents/webtools/contract.js +1 -0
  695. package/plugins/agents/webtools/mod.d.ts +55 -0
  696. package/plugins/agents/webtools/mod.js +75 -0
  697. package/plugins/agents/webtools/resources/tools.d.ts +2 -0
  698. package/plugins/agents/webtools/resources/tools.js +82 -0
  699. package/plugins/agents/webtools/shared/address.d.ts +9 -0
  700. package/plugins/agents/webtools/shared/address.js +112 -0
  701. package/plugins/agents/webtools/shared/read.d.ts +11 -0
  702. package/plugins/agents/webtools/shared/read.js +129 -0
  703. package/plugins/agents/webtools/shared/search.d.ts +15 -0
  704. package/plugins/agents/webtools/shared/search.js +54 -0
  705. package/plugins/agents/webtools/shared/settings.d.ts +20 -0
  706. package/plugins/agents/webtools/shared/settings.js +21 -0
  707. package/plugins/agents/webtools/shared/text.d.ts +15 -0
  708. package/plugins/agents/webtools/shared/text.js +88 -0
  709. package/plugins/billing/mod.d.ts +4 -1
  710. package/plugins/billing/mod.js +4 -1
  711. package/plugins/billing/usage/actions/activity.d.ts +84 -0
  712. package/plugins/billing/usage/actions/activity.js +310 -0
  713. package/plugins/billing/usage/actions/close.js +16 -4
  714. package/plugins/billing/usage/actions/org.d.ts +29 -1
  715. package/plugins/billing/usage/actions/org.js +24 -67
  716. package/plugins/billing/usage/actions/quote.d.ts +6 -0
  717. package/plugins/billing/usage/actions/quote.js +47 -3
  718. package/plugins/billing/usage/actions/rerate.js +1 -0
  719. package/plugins/billing/usage/collections/closed.d.ts +11 -1
  720. package/plugins/billing/usage/collections/closed.js +4 -1
  721. package/plugins/billing/usage/collections/rollup.d.ts +4 -4
  722. package/plugins/billing/usage/collections/rollup.js +8 -4
  723. package/plugins/billing/usage/collections/usage.d.ts +7 -6
  724. package/plugins/billing/usage/collections/usage.js +16 -12
  725. package/plugins/billing/usage/mod.d.ts +20 -7
  726. package/plugins/billing/usage/mod.js +29 -10
  727. package/plugins/billing/usage/shared/categories.d.ts +24 -0
  728. package/plugins/billing/usage/shared/categories.js +40 -0
  729. package/plugins/billing/usage/shared/names.d.ts +45 -0
  730. package/plugins/billing/usage/shared/names.js +60 -0
  731. package/plugins/billing/usage/shared/rate.d.ts +10 -3
  732. package/plugins/billing/usage/shared/rate.js +18 -3
  733. package/plugins/billing/usage/shared/settings.d.ts +18 -1
  734. package/plugins/billing/usage/shared/settings.js +11 -2
  735. package/plugins/billing/usage/shared/totals.d.ts +19 -5
  736. package/plugins/billing/usage/shared/totals.js +45 -10
  737. package/plugins/billing/usage/shared/use.d.ts +1 -2
  738. package/plugins/billing/usage/shared/use.js +6 -8
  739. package/plugins/billing/usage/terminal.js +1 -1
  740. package/plugins/billing/usage/views/web/chart.d.ts +25 -12
  741. package/plugins/billing/usage/views/web/chart.js +72 -61
  742. package/plugins/billing/usage/views/web/numbers.d.ts +77 -53
  743. package/plugins/billing/usage/views/web/numbers.js +221 -84
  744. package/plugins/billing/usage/views/web/org.d.ts +122 -12
  745. package/plugins/billing/usage/views/web/org.js +571 -222
  746. package/plugins/billing/usage/views/web/style.d.ts +9 -8
  747. package/plugins/billing/usage/views/web/style.js +147 -141
  748. package/plugins/billing/usage/views/web/words.d.ts +1 -0
  749. package/plugins/billing/usage/views/web/words.js +173 -0
  750. package/plugins/billing/usage/web.d.ts +8 -6
  751. package/plugins/billing/usage/web.js +9 -7
  752. package/plugins/billing/web.d.ts +2 -0
  753. package/plugins/billing/web.js +2 -0
  754. package/plugins/compute/computers/actions/admit.js +2 -0
  755. package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
  756. package/plugins/compute/computers/actions/allow-origin.js +47 -0
  757. package/plugins/compute/computers/actions/allowed.js +6 -2
  758. package/plugins/compute/computers/actions/code.js +6 -4
  759. package/plugins/compute/computers/actions/default.js +4 -8
  760. package/plugins/compute/computers/actions/enrollment.js +2 -0
  761. package/plugins/compute/computers/actions/env.d.ts +3 -0
  762. package/plugins/compute/computers/actions/env.js +137 -0
  763. package/plugins/compute/computers/actions/forget.js +7 -4
  764. package/plugins/compute/computers/actions/mark.d.ts +1 -0
  765. package/plugins/compute/computers/actions/mark.js +36 -0
  766. package/plugins/compute/computers/actions/move.js +5 -4
  767. package/plugins/compute/computers/actions/preview.d.ts +1 -4
  768. package/plugins/compute/computers/actions/preview.js +51 -25
  769. package/plugins/compute/computers/actions/provision.js +5 -3
  770. package/plugins/compute/computers/actions/rename.js +2 -2
  771. package/plugins/compute/computers/actions/scope.js +30 -10
  772. package/plugins/compute/computers/actions/share.js +5 -4
  773. package/plugins/compute/computers/actions/unshare.js +5 -8
  774. package/plugins/compute/computers/actions/upgrade-asks.d.ts +1 -0
  775. package/plugins/compute/computers/actions/upgrade-asks.js +29 -0
  776. package/plugins/compute/computers/actions/view.js +2 -2
  777. package/plugins/compute/computers/actions/work.js +17 -4
  778. package/plugins/compute/computers/collections/computer.d.ts +46 -0
  779. package/plugins/compute/computers/collections/computer.js +12 -2
  780. package/plugins/compute/computers/collections/desk.d.ts +40 -2
  781. package/plugins/compute/computers/collections/desk.js +10 -4
  782. package/plugins/compute/computers/collections/enrollment.d.ts +1 -1
  783. package/plugins/compute/computers/collections/env-var.d.ts +122 -0
  784. package/plugins/compute/computers/collections/env-var.js +51 -0
  785. package/plugins/compute/computers/collections/preview.d.ts +4 -2
  786. package/plugins/compute/computers/collections/preview.js +10 -4
  787. package/plugins/compute/computers/contract.d.ts +18 -5
  788. package/plugins/compute/computers/contract.js +7 -4
  789. package/plugins/compute/computers/mod.d.ts +11 -5
  790. package/plugins/compute/computers/mod.js +49 -17
  791. package/plugins/compute/computers/processors/left.d.ts +8 -0
  792. package/plugins/compute/computers/processors/left.js +31 -0
  793. package/plugins/compute/computers/program/browser/actions.d.ts +6 -0
  794. package/plugins/compute/computers/program/browser/actions.js +256 -0
  795. package/plugins/compute/computers/program/browser/async.d.ts +27 -0
  796. package/plugins/compute/computers/program/browser/async.js +65 -0
  797. package/plugins/compute/computers/program/browser/batch.d.ts +2 -0
  798. package/plugins/compute/computers/program/browser/batch.js +46 -0
  799. package/plugins/compute/computers/program/browser/cdp.d.ts +40 -0
  800. package/plugins/compute/computers/program/browser/cdp.js +151 -0
  801. package/plugins/compute/computers/program/browser/chrome.d.ts +64 -0
  802. package/plugins/compute/computers/program/browser/chrome.js +249 -0
  803. package/plugins/compute/computers/program/browser/control.d.ts +18 -0
  804. package/plugins/compute/computers/program/browser/control.js +65 -0
  805. package/plugins/compute/computers/program/browser/live.d.ts +95 -0
  806. package/plugins/compute/computers/program/browser/live.js +345 -0
  807. package/plugins/compute/computers/program/browser/math.d.ts +8 -0
  808. package/plugins/compute/computers/program/browser/math.js +38 -0
  809. package/plugins/compute/computers/program/browser/mod.d.ts +32 -0
  810. package/plugins/compute/computers/program/browser/mod.js +202 -0
  811. package/plugins/compute/computers/program/browser/page.d.ts +56 -0
  812. package/plugins/compute/computers/program/browser/page.js +346 -0
  813. package/plugins/compute/computers/program/browser/profile.d.ts +14 -0
  814. package/plugins/compute/computers/program/browser/profile.js +70 -0
  815. package/plugins/compute/computers/program/browser/refs.d.ts +35 -0
  816. package/plugins/compute/computers/program/browser/refs.js +79 -0
  817. package/plugins/compute/computers/program/browser/schema.d.ts +73 -0
  818. package/plugins/compute/computers/program/browser/schema.js +73 -0
  819. package/plugins/compute/computers/program/browser/session.d.ts +62 -0
  820. package/plugins/compute/computers/program/browser/session.js +294 -0
  821. package/plugins/compute/computers/program/browser/storage.d.ts +8 -0
  822. package/plugins/compute/computers/program/browser/storage.js +70 -0
  823. package/plugins/compute/computers/program/browser/types.d.ts +93 -0
  824. package/plugins/compute/computers/program/browser/types.js +1 -0
  825. package/plugins/compute/computers/program/computer.d.ts +58 -0
  826. package/plugins/compute/computers/program/computer.js +285 -0
  827. package/plugins/compute/computers/program/mod.d.ts +8 -0
  828. package/plugins/compute/computers/program/mod.js +8 -0
  829. package/plugins/compute/computers/program/pool.d.ts +39 -0
  830. package/plugins/compute/computers/program/pool.js +335 -0
  831. package/plugins/compute/computers/program/state.d.ts +69 -0
  832. package/plugins/compute/computers/program/state.js +198 -0
  833. package/plugins/compute/computers/program/update.d.ts +17 -0
  834. package/plugins/compute/computers/program/update.js +144 -0
  835. package/plugins/compute/computers/program/version.d.ts +1 -1
  836. package/plugins/compute/computers/program/version.js +1 -1
  837. package/plugins/compute/computers/program/workloads/answer.d.ts +13 -0
  838. package/plugins/compute/computers/program/workloads/answer.js +29 -0
  839. package/plugins/compute/computers/program/workloads/archive.d.ts +6 -0
  840. package/plugins/compute/computers/program/workloads/archive.js +128 -0
  841. package/plugins/compute/computers/program/workloads/browser.d.ts +16 -0
  842. package/plugins/compute/computers/program/workloads/browser.js +17 -0
  843. package/plugins/compute/computers/program/workloads/files.d.ts +13 -0
  844. package/plugins/compute/computers/program/workloads/files.js +236 -0
  845. package/plugins/compute/computers/program/workloads/http.d.ts +20 -0
  846. package/plugins/compute/computers/program/workloads/http.js +168 -0
  847. package/plugins/compute/computers/program/workloads/info.d.ts +8 -0
  848. package/plugins/compute/computers/program/workloads/info.js +22 -0
  849. package/plugins/compute/computers/program/workloads/jobs.d.ts +32 -0
  850. package/plugins/compute/computers/program/workloads/jobs.js +287 -0
  851. package/plugins/compute/computers/program/workloads/ports.d.ts +5 -0
  852. package/plugins/compute/computers/program/workloads/ports.js +160 -0
  853. package/plugins/compute/computers/program/workloads/processes.d.ts +23 -0
  854. package/plugins/compute/computers/program/workloads/processes.js +103 -0
  855. package/plugins/compute/computers/program/workloads/search.d.ts +23 -0
  856. package/plugins/compute/computers/program/workloads/search.js +170 -0
  857. package/plugins/compute/computers/program/workloads/shell.d.ts +21 -0
  858. package/plugins/compute/computers/program/workloads/shell.js +140 -0
  859. package/plugins/compute/computers/program/workloads/spaces.d.ts +13 -0
  860. package/plugins/compute/computers/program/workloads/spaces.js +47 -0
  861. package/plugins/compute/computers/program/workloads/streams.d.ts +20 -0
  862. package/plugins/compute/computers/program/workloads/streams.js +94 -0
  863. package/plugins/compute/computers/program/workloads/terminal.d.ts +26 -0
  864. package/plugins/compute/computers/program/workloads/terminal.js +384 -0
  865. package/plugins/compute/computers/resources/commands.d.ts +2 -3
  866. package/plugins/compute/computers/resources/commands.js +15 -52
  867. package/plugins/compute/computers/resources/downloads.js +11 -13
  868. package/plugins/compute/computers/resources/previews.d.ts +6 -25
  869. package/plugins/compute/computers/resources/previews.js +40 -18
  870. package/plugins/compute/computers/resources/tools.d.ts +11 -5
  871. package/plugins/compute/computers/resources/tools.js +118 -27
  872. package/plugins/compute/computers/shared/ask.d.ts +39 -6
  873. package/plugins/compute/computers/shared/ask.js +64 -43
  874. package/plugins/compute/computers/shared/desks.d.ts +1 -5
  875. package/plugins/compute/computers/shared/desks.js +3 -13
  876. package/plugins/compute/computers/shared/env.d.ts +20 -0
  877. package/plugins/compute/computers/shared/env.js +50 -0
  878. package/plugins/compute/computers/shared/jobs.d.ts +13 -0
  879. package/plugins/compute/computers/shared/jobs.js +16 -0
  880. package/plugins/compute/computers/shared/pool.d.ts +45 -0
  881. package/plugins/compute/computers/shared/pool.js +16 -0
  882. package/plugins/compute/computers/shared/preview-url.d.ts +5 -0
  883. package/plugins/compute/computers/shared/preview-url.js +5 -0
  884. package/plugins/compute/computers/shared/seal.d.ts +4 -0
  885. package/plugins/compute/computers/shared/seal.js +60 -0
  886. package/plugins/compute/computers/shared/settings.d.ts +9 -3
  887. package/plugins/compute/computers/shared/settings.js +3 -0
  888. package/plugins/compute/computers/shared/upgrade.d.ts +42 -0
  889. package/plugins/compute/computers/shared/upgrade.js +44 -0
  890. package/plugins/compute/computers/shared/wake.d.ts +7 -5
  891. package/plugins/compute/computers/shared/wake.js +28 -11
  892. package/plugins/compute/computers/shared/where.d.ts +34 -7
  893. package/plugins/compute/computers/shared/where.js +86 -17
  894. package/plugins/compute/computers/shared/workloads.d.ts +4 -0
  895. package/plugins/compute/computers/terminal.d.ts +4 -3
  896. package/plugins/compute/computers/terminal.js +5 -6
  897. package/plugins/compute/computers/views/context.d.ts +7 -6
  898. package/plugins/compute/computers/views/context.js +121 -49
  899. package/plugins/compute/computers/views/web/add.js +3 -1
  900. package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
  901. package/plugins/compute/computers/views/web/allowed.js +38 -0
  902. package/plugins/compute/computers/views/web/asked.d.ts +5 -2
  903. package/plugins/compute/computers/views/web/asked.js +2 -14
  904. package/plugins/compute/computers/views/web/asks.d.ts +14 -12
  905. package/plugins/compute/computers/views/web/asks.js +9 -58
  906. package/plugins/compute/computers/views/web/calls.js +5 -2
  907. package/plugins/compute/computers/views/web/computer.js +9 -1
  908. package/plugins/compute/computers/views/web/desks.d.ts +6 -3
  909. package/plugins/compute/computers/views/web/desks.js +22 -15
  910. package/plugins/compute/computers/views/web/env.d.ts +32 -0
  911. package/plugins/compute/computers/views/web/env.js +154 -0
  912. package/plugins/compute/computers/views/web/environment.d.ts +23 -0
  913. package/plugins/compute/computers/views/web/environment.js +47 -0
  914. package/plugins/compute/computers/views/web/jobs.d.ts +7 -4
  915. package/plugins/compute/computers/views/web/jobs.js +28 -13
  916. package/plugins/compute/computers/views/web/kinds.d.ts +24 -2
  917. package/plugins/compute/computers/views/web/kinds.js +10 -0
  918. package/plugins/compute/computers/views/web/names.d.ts +3 -2
  919. package/plugins/compute/computers/views/web/names.js +5 -3
  920. package/plugins/compute/computers/views/web/page.d.ts +3 -1
  921. package/plugins/compute/computers/views/web/page.js +2 -2
  922. package/plugins/compute/computers/views/web/previews.d.ts +2 -7
  923. package/plugins/compute/computers/views/web/previews.js +0 -14
  924. package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
  925. package/plugins/compute/computers/views/web/routine-panel.js +98 -0
  926. package/plugins/compute/computers/views/web/serve.d.ts +6 -4
  927. package/plugins/compute/computers/views/web/serve.js +12 -48
  928. package/plugins/compute/computers/views/web/space-tab.d.ts +1 -1
  929. package/plugins/compute/computers/views/web/space-tab.js +26 -7
  930. package/plugins/compute/computers/views/web/step.js +7 -1
  931. package/plugins/compute/computers/views/web/style.d.ts +6 -6
  932. package/plugins/compute/computers/views/web/style.js +87 -39
  933. package/plugins/compute/computers/views/web/workspace.d.ts +4 -2
  934. package/plugins/compute/computers/views/web/workspace.js +3 -2
  935. package/plugins/compute/computers/web.d.ts +15 -14
  936. package/plugins/compute/computers/web.js +44 -25
  937. package/plugins/compute/contract.d.ts +6 -0
  938. package/plugins/compute/contract.js +6 -0
  939. package/plugins/compute/mod.d.ts +3 -8
  940. package/plugins/compute/mod.js +3 -8
  941. package/plugins/compute/web.d.ts +2 -6
  942. package/plugins/compute/web.js +2 -6
  943. package/plugins/interfaces/api/actions/create.js +51 -26
  944. package/plugins/interfaces/api/actions/revoke.js +19 -9
  945. package/plugins/interfaces/api/collections/key.d.ts +127 -54
  946. package/plugins/interfaces/api/collections/key.js +41 -38
  947. package/plugins/interfaces/api/contract.d.ts +11 -11
  948. package/plugins/interfaces/api/contract.js +1 -1
  949. package/plugins/interfaces/api/mod.d.ts +18 -13
  950. package/plugins/interfaces/api/mod.js +24 -15
  951. package/plugins/interfaces/api/processors/left.d.ts +7 -0
  952. package/plugins/interfaces/api/processors/left.js +19 -0
  953. package/plugins/interfaces/api/resources/presets.d.ts +3 -2
  954. package/plugins/interfaces/api/resources/presets.js +6 -4
  955. package/plugins/interfaces/api/shared/actor.d.ts +23 -16
  956. package/plugins/interfaces/api/shared/actor.js +32 -22
  957. package/plugins/interfaces/api/shared/end.d.ts +9 -0
  958. package/plugins/interfaces/api/shared/end.js +10 -0
  959. package/plugins/interfaces/api/shared/rules.d.ts +7 -11
  960. package/plugins/interfaces/api/shared/rules.js +20 -24
  961. package/plugins/interfaces/api/views/web/create.d.ts +7 -5
  962. package/plugins/interfaces/api/views/web/create.js +38 -33
  963. package/plugins/interfaces/api/views/web/keys.d.ts +21 -4
  964. package/plugins/interfaces/api/views/web/keys.js +22 -19
  965. package/plugins/interfaces/api/views/web/members.d.ts +13 -0
  966. package/plugins/interfaces/api/views/web/members.js +35 -0
  967. package/plugins/interfaces/api/views/web/reference.d.ts +6 -6
  968. package/plugins/interfaces/api/views/web/reference.js +17 -7
  969. package/plugins/interfaces/api/views/web/snippet.d.ts +18 -13
  970. package/plugins/interfaces/api/views/web/snippet.js +27 -16
  971. package/plugins/interfaces/api/views/web/style.d.ts +4 -3
  972. package/plugins/interfaces/api/views/web/style.js +31 -2
  973. package/plugins/interfaces/api/web.d.ts +5 -4
  974. package/plugins/interfaces/api/web.js +11 -6
  975. package/plugins/interfaces/contract.d.ts +16 -0
  976. package/plugins/interfaces/contract.js +14 -0
  977. package/plugins/interfaces/maintenance/actions/read.d.ts +4 -0
  978. package/plugins/interfaces/maintenance/actions/read.js +76 -0
  979. package/plugins/interfaces/maintenance/actions/write.d.ts +4 -0
  980. package/plugins/interfaces/maintenance/actions/write.js +64 -0
  981. package/plugins/interfaces/maintenance/contract.d.ts +64 -0
  982. package/plugins/interfaces/maintenance/contract.js +2 -0
  983. package/plugins/interfaces/maintenance/mod.d.ts +57 -0
  984. package/plugins/interfaces/maintenance/mod.js +69 -0
  985. package/plugins/interfaces/maintenance/resources/routes.d.ts +65 -0
  986. package/plugins/interfaces/maintenance/resources/routes.js +471 -0
  987. package/plugins/interfaces/maintenance/shared/ops.d.ts +4 -0
  988. package/plugins/interfaces/maintenance/shared/ops.js +19 -0
  989. package/plugins/interfaces/mcp/actions/call.d.ts +15 -0
  990. package/plugins/interfaces/mcp/actions/call.js +392 -0
  991. package/plugins/interfaces/mcp/actions/conversation.d.ts +1 -0
  992. package/plugins/interfaces/mcp/actions/conversation.js +49 -0
  993. package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
  994. package/plugins/interfaces/mcp/actions/prune.js +20 -0
  995. package/plugins/interfaces/mcp/actions/public.d.ts +8 -0
  996. package/plugins/interfaces/mcp/actions/public.js +81 -0
  997. package/plugins/interfaces/mcp/collections/closed.d.ts +23 -0
  998. package/plugins/interfaces/mcp/collections/closed.js +17 -0
  999. package/plugins/interfaces/mcp/collections/opening.d.ts +24 -0
  1000. package/plugins/interfaces/mcp/collections/opening.js +28 -0
  1001. package/plugins/interfaces/mcp/collections/rate.d.ts +27 -0
  1002. package/plugins/interfaces/mcp/collections/rate.js +18 -0
  1003. package/plugins/interfaces/mcp/collections/receipt.d.ts +46 -0
  1004. package/plugins/interfaces/mcp/collections/receipt.js +46 -0
  1005. package/plugins/interfaces/mcp/contract.d.ts +8 -0
  1006. package/plugins/interfaces/mcp/contract.js +8 -0
  1007. package/plugins/interfaces/mcp/mod.d.ts +145 -0
  1008. package/plugins/interfaces/mcp/mod.js +196 -0
  1009. package/plugins/interfaces/mcp/processors/closed.d.ts +13 -0
  1010. package/plugins/interfaces/mcp/processors/closed.js +16 -0
  1011. package/plugins/interfaces/mcp/resources/limits.d.ts +38 -0
  1012. package/plugins/interfaces/mcp/resources/limits.js +77 -0
  1013. package/plugins/interfaces/mcp/resources/public.d.ts +45 -0
  1014. package/plugins/interfaces/mcp/resources/public.js +99 -0
  1015. package/plugins/interfaces/mcp/resources/running.d.ts +21 -0
  1016. package/plugins/interfaces/mcp/resources/running.js +36 -0
  1017. package/plugins/interfaces/mcp/resources/server.d.ts +60 -0
  1018. package/plugins/interfaces/mcp/resources/server.js +628 -0
  1019. package/plugins/interfaces/mcp/resources/tools.d.ts +183 -0
  1020. package/plugins/interfaces/mcp/resources/tools.js +432 -0
  1021. package/plugins/interfaces/mcp/resources/widgets.d.ts +161 -0
  1022. package/plugins/interfaces/mcp/resources/widgets.js +247 -0
  1023. package/plugins/interfaces/mcp/shared/keys.d.ts +56 -0
  1024. package/plugins/interfaces/mcp/shared/keys.js +99 -0
  1025. package/plugins/interfaces/mcp/shared/settings.d.ts +236 -0
  1026. package/plugins/interfaces/mcp/shared/settings.js +234 -0
  1027. package/plugins/interfaces/mcp/shared/shown.d.ts +20 -0
  1028. package/plugins/interfaces/mcp/shared/shown.js +31 -0
  1029. package/plugins/interfaces/mcp/views/offered.d.ts +19 -0
  1030. package/plugins/interfaces/mcp/views/offered.js +20 -0
  1031. package/plugins/interfaces/mod.d.ts +6 -1
  1032. package/plugins/interfaces/mod.js +6 -1
  1033. package/plugins/interfaces/terminal/actions/print.js +1 -1
  1034. package/plugins/interfaces/terminal/actions/set.js +1 -1
  1035. package/plugins/interfaces/terminal/collections/output.d.ts +1 -1
  1036. package/plugins/interfaces/terminal/collections/shell.js +1 -1
  1037. package/plugins/interfaces/terminal/terminal.js +3 -3
  1038. package/plugins/interfaces/terminal/views/shell.js +8 -3
  1039. package/plugins/interfaces/voice/actions/block.d.ts +2 -0
  1040. package/plugins/interfaces/voice/actions/block.js +74 -0
  1041. package/plugins/interfaces/voice/actions/call.d.ts +19 -0
  1042. package/plugins/interfaces/voice/actions/call.js +253 -0
  1043. package/plugins/interfaces/voice/actions/prune.d.ts +1 -0
  1044. package/plugins/interfaces/voice/actions/prune.js +43 -0
  1045. package/plugins/interfaces/voice/actions/ring.d.ts +6 -0
  1046. package/plugins/interfaces/voice/actions/ring.js +165 -0
  1047. package/plugins/interfaces/voice/collections/blocked.d.ts +87 -0
  1048. package/plugins/interfaces/voice/collections/blocked.js +34 -0
  1049. package/plugins/interfaces/voice/collections/call.d.ts +279 -0
  1050. package/plugins/interfaces/voice/collections/call.js +77 -0
  1051. package/plugins/{access/directory/collections/membership.d.ts → interfaces/voice/collections/phone.d.ts} +24 -22
  1052. package/plugins/interfaces/voice/collections/phone.js +26 -0
  1053. package/plugins/interfaces/voice/contract.d.ts +14 -0
  1054. package/plugins/interfaces/voice/contract.js +2 -0
  1055. package/plugins/interfaces/voice/mod.d.ts +56 -0
  1056. package/plugins/interfaces/voice/mod.js +124 -0
  1057. package/plugins/interfaces/voice/processors/forget.d.ts +13 -0
  1058. package/plugins/interfaces/voice/processors/forget.js +27 -0
  1059. package/plugins/interfaces/voice/resources/tools.d.ts +1 -0
  1060. package/plugins/interfaces/voice/resources/tools.js +27 -0
  1061. package/plugins/interfaces/voice/routes/hook.d.ts +21 -0
  1062. package/plugins/interfaces/voice/routes/hook.js +114 -0
  1063. package/plugins/interfaces/voice/routes/relay.d.ts +20 -0
  1064. package/plugins/interfaces/voice/routes/relay.js +488 -0
  1065. package/plugins/interfaces/voice/shared/caller.d.ts +27 -0
  1066. package/plugins/interfaces/voice/shared/caller.js +38 -0
  1067. package/plugins/interfaces/voice/shared/settings.d.ts +128 -0
  1068. package/plugins/interfaces/voice/shared/settings.js +115 -0
  1069. package/plugins/interfaces/voice/shared/signature.d.ts +11 -0
  1070. package/plugins/interfaces/voice/shared/signature.js +34 -0
  1071. package/plugins/interfaces/voice/views/call.d.ts +48 -0
  1072. package/plugins/interfaces/voice/views/call.js +42 -0
  1073. package/plugins/interfaces/voice/views/context.d.ts +9 -0
  1074. package/plugins/interfaces/voice/views/context.js +14 -0
  1075. package/plugins/interfaces/voice/views/message.d.ts +17 -0
  1076. package/plugins/interfaces/voice/views/message.js +41 -0
  1077. package/plugins/interfaces/web/actions/arrive.d.ts +1 -0
  1078. package/plugins/interfaces/web/actions/arrive.js +104 -0
  1079. package/plugins/interfaces/web/actions/prune.d.ts +1 -0
  1080. package/plugins/interfaces/web/actions/prune.js +51 -0
  1081. package/plugins/interfaces/web/actions/sending.d.ts +1 -0
  1082. package/plugins/interfaces/web/actions/sending.js +226 -0
  1083. package/plugins/interfaces/web/actions/spent.d.ts +2 -0
  1084. package/plugins/interfaces/web/actions/spent.js +59 -0
  1085. package/plugins/interfaces/web/collections/rate.d.ts +122 -0
  1086. package/plugins/interfaces/web/collections/rate.js +37 -0
  1087. package/plugins/interfaces/web/collections/visitor.d.ts +110 -0
  1088. package/plugins/interfaces/web/collections/visitor.js +69 -0
  1089. package/plugins/interfaces/web/contract.d.ts +19 -7
  1090. package/plugins/interfaces/web/contract.js +3 -1
  1091. package/plugins/interfaces/web/lines.d.ts +35 -0
  1092. package/plugins/interfaces/web/lines.js +83 -0
  1093. package/plugins/interfaces/web/mod.d.ts +30 -15
  1094. package/plugins/interfaces/web/mod.js +30 -20
  1095. package/plugins/interfaces/web/processors/forget.d.ts +10 -0
  1096. package/plugins/interfaces/web/processors/forget.js +14 -0
  1097. package/plugins/interfaces/web/resources/spend.d.ts +2 -0
  1098. package/plugins/interfaces/web/resources/spend.js +68 -0
  1099. package/plugins/interfaces/web/routes/arrive.d.ts +20 -0
  1100. package/plugins/interfaces/web/routes/arrive.js +92 -0
  1101. package/plugins/interfaces/web/shared/budget.d.ts +65 -0
  1102. package/plugins/interfaces/web/shared/budget.js +134 -0
  1103. package/plugins/interfaces/web/shared/lines.d.ts +147 -0
  1104. package/plugins/interfaces/web/shared/lines.js +147 -0
  1105. package/plugins/interfaces/web/shared/orgs.d.ts +71 -63
  1106. package/plugins/interfaces/web/shared/orgs.js +40 -42
  1107. package/plugins/interfaces/web/shared/panel.d.ts +0 -5
  1108. package/plugins/interfaces/web/shared/panel.js +5 -1
  1109. package/plugins/interfaces/web/shared/secret.d.ts +33 -0
  1110. package/plugins/interfaces/web/shared/secret.js +86 -0
  1111. package/plugins/interfaces/web/shared/sidebar.d.ts +22 -0
  1112. package/plugins/interfaces/web/shared/sidebar.js +29 -0
  1113. package/plugins/interfaces/web/shared/standing.js +4 -3
  1114. package/plugins/interfaces/web/shared/style.d.ts +15 -5
  1115. package/plugins/interfaces/web/shared/style.js +49 -196
  1116. package/plugins/interfaces/web/views/default.d.ts +2 -2
  1117. package/plugins/interfaces/web/views/default.js +5 -3
  1118. package/plugins/interfaces/web/views/frame.d.ts +38 -9
  1119. package/plugins/interfaces/web/views/frame.js +89 -40
  1120. package/plugins/interfaces/web/views/me.d.ts +20 -16
  1121. package/plugins/interfaces/web/views/me.js +88 -31
  1122. package/plugins/interfaces/web/views/panel.js +3 -2
  1123. package/plugins/interfaces/web/views/rail.d.ts +41 -0
  1124. package/plugins/interfaces/web/views/rail.js +55 -0
  1125. package/plugins/interfaces/web/views/shell.d.ts +12 -3
  1126. package/plugins/interfaces/web/views/shell.js +25 -3
  1127. package/plugins/interfaces/web/views/words.d.ts +1 -0
  1128. package/plugins/interfaces/web/views/words.js +58 -0
  1129. package/plugins/interfaces/whatsapp/actions/connect.js +13 -12
  1130. package/plugins/interfaces/whatsapp/actions/disconnect.js +6 -3
  1131. package/plugins/interfaces/whatsapp/actions/hook.d.ts +8 -1
  1132. package/plugins/interfaces/whatsapp/actions/hook.js +97 -60
  1133. package/plugins/interfaces/whatsapp/actions/link.js +12 -15
  1134. package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
  1135. package/plugins/interfaces/whatsapp/actions/set.js +152 -0
  1136. package/plugins/interfaces/whatsapp/actions/template.d.ts +1 -0
  1137. package/plugins/interfaces/whatsapp/actions/template.js +89 -0
  1138. package/plugins/interfaces/whatsapp/collections/blocked.d.ts +29 -0
  1139. package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
  1140. package/plugins/interfaces/whatsapp/collections/code.d.ts +1 -1
  1141. package/plugins/interfaces/whatsapp/collections/number.d.ts +170 -4
  1142. package/plugins/interfaces/whatsapp/collections/number.js +57 -4
  1143. package/plugins/interfaces/whatsapp/collections/phone.d.ts +39 -4
  1144. package/plugins/interfaces/whatsapp/collections/phone.js +21 -2
  1145. package/plugins/interfaces/whatsapp/collections/rate.d.ts +27 -0
  1146. package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
  1147. package/plugins/interfaces/whatsapp/collections/sent.d.ts +25 -13
  1148. package/plugins/interfaces/whatsapp/collections/sent.js +12 -8
  1149. package/plugins/interfaces/whatsapp/collections/template.d.ts +96 -0
  1150. package/plugins/interfaces/whatsapp/collections/template.js +30 -0
  1151. package/plugins/interfaces/whatsapp/collections/thread.d.ts +14 -6
  1152. package/plugins/interfaces/whatsapp/collections/thread.js +7 -5
  1153. package/plugins/interfaces/whatsapp/collections/typing.d.ts +70 -0
  1154. package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
  1155. package/plugins/interfaces/whatsapp/contract.d.ts +34 -5
  1156. package/plugins/interfaces/whatsapp/contract.js +41 -1
  1157. package/plugins/interfaces/whatsapp/events/undelivered.d.ts +8 -0
  1158. package/plugins/interfaces/whatsapp/events/undelivered.js +17 -0
  1159. package/plugins/interfaces/whatsapp/mod.d.ts +59 -7
  1160. package/plugins/interfaces/whatsapp/mod.js +122 -14
  1161. package/plugins/interfaces/whatsapp/processors/forget.d.ts +7 -0
  1162. package/plugins/interfaces/whatsapp/processors/forget.js +17 -0
  1163. package/plugins/interfaces/whatsapp/processors/receive.d.ts +25 -7
  1164. package/plugins/interfaces/whatsapp/processors/receive.js +293 -97
  1165. package/plugins/interfaces/whatsapp/processors/reply.d.ts +44 -9
  1166. package/plugins/interfaces/whatsapp/processors/reply.js +342 -24
  1167. package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
  1168. package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
  1169. package/plugins/interfaces/whatsapp/routes/hook.d.ts +16 -0
  1170. package/plugins/interfaces/whatsapp/routes/hook.js +52 -0
  1171. package/plugins/interfaces/whatsapp/shared/customers.d.ts +13 -0
  1172. package/plugins/interfaces/whatsapp/shared/customers.js +16 -0
  1173. package/plugins/interfaces/whatsapp/shared/graph.d.ts +50 -7
  1174. package/plugins/interfaces/whatsapp/shared/graph.js +140 -12
  1175. package/plugins/interfaces/whatsapp/shared/media.d.ts +24 -0
  1176. package/plugins/interfaces/whatsapp/shared/media.js +49 -0
  1177. package/plugins/interfaces/whatsapp/shared/number.d.ts +31 -9
  1178. package/plugins/interfaces/whatsapp/shared/number.js +83 -8
  1179. package/plugins/interfaces/whatsapp/shared/parts.d.ts +94 -0
  1180. package/plugins/interfaces/whatsapp/shared/parts.js +184 -0
  1181. package/plugins/interfaces/whatsapp/shared/payload.d.ts +27 -1
  1182. package/plugins/interfaces/whatsapp/shared/payload.js +36 -1
  1183. package/plugins/interfaces/whatsapp/shared/rules.d.ts +4 -4
  1184. package/plugins/interfaces/whatsapp/shared/rules.js +8 -9
  1185. package/plugins/interfaces/whatsapp/shared/settings.d.ts +93 -13
  1186. package/plugins/interfaces/whatsapp/shared/settings.js +11 -9
  1187. package/plugins/interfaces/whatsapp/shared/template.d.ts +48 -0
  1188. package/plugins/interfaces/whatsapp/shared/template.js +117 -0
  1189. package/plugins/interfaces/whatsapp/views/message.d.ts +13 -0
  1190. package/plugins/interfaces/whatsapp/views/message.js +13 -0
  1191. package/plugins/interfaces/whatsapp/views/web/line.d.ts +24 -0
  1192. package/plugins/interfaces/whatsapp/views/web/line.js +44 -0
  1193. package/plugins/interfaces/whatsapp/views/web/space.d.ts +7 -5
  1194. package/plugins/interfaces/whatsapp/views/web/space.js +17 -10
  1195. package/plugins/interfaces/whatsapp/views/web/style.d.ts +1 -1
  1196. package/plugins/interfaces/whatsapp/views/web/style.js +8 -0
  1197. package/plugins/interfaces/whatsapp/web.js +10 -3
  1198. package/plugins/models/actions/check.d.ts +1 -0
  1199. package/plugins/models/actions/check.js +32 -2
  1200. package/plugins/models/actions/image.d.ts +1 -0
  1201. package/plugins/models/actions/image.js +46 -0
  1202. package/plugins/models/actions/offered.d.ts +34 -0
  1203. package/plugins/models/actions/offered.js +190 -0
  1204. package/plugins/models/actions/price.d.ts +0 -2
  1205. package/plugins/models/actions/price.js +5 -5
  1206. package/plugins/models/adapters/image/fake.d.ts +6 -0
  1207. package/plugins/models/adapters/image/fake.js +8 -0
  1208. package/plugins/models/adapters/image/gemini.d.ts +2 -0
  1209. package/plugins/models/adapters/image/gemini.js +111 -0
  1210. package/plugins/models/adapters/image/openai.d.ts +2 -0
  1211. package/plugins/models/adapters/image/openai.js +69 -0
  1212. package/plugins/models/adapters/llm/anthropic.d.ts +1 -1
  1213. package/plugins/models/adapters/llm/anthropic.js +38 -20
  1214. package/plugins/models/adapters/llm/gemini.d.ts +1 -1
  1215. package/plugins/models/adapters/llm/gemini.js +7 -2
  1216. package/plugins/models/adapters/llm/openai-compatible.d.ts +1 -1
  1217. package/plugins/models/adapters/llm/openai-compatible.js +26 -3
  1218. package/plugins/models/adapters/llm/openai.d.ts +1 -1
  1219. package/plugins/models/adapters/llm/openai.js +158 -28
  1220. package/plugins/models/collections/image.d.ts +96 -0
  1221. package/plugins/models/collections/image.js +27 -0
  1222. package/plugins/models/contract.d.ts +20 -5
  1223. package/plugins/models/contract.js +2 -1
  1224. package/plugins/models/mod.d.ts +26 -5
  1225. package/plugins/models/mod.js +42 -6
  1226. package/plugins/models/resources/providers.d.ts +2 -2
  1227. package/plugins/models/resources/providers.js +2 -2
  1228. package/plugins/models/shared/catalog.json +9208 -8909
  1229. package/plugins/models/shared/choice.d.ts +39 -0
  1230. package/plugins/models/shared/choice.js +56 -6
  1231. package/plugins/models/shared/embed.js +2 -1
  1232. package/plugins/models/shared/generate.d.ts +3 -1
  1233. package/plugins/models/shared/generate.js +54 -12
  1234. package/plugins/models/shared/image.d.ts +110 -0
  1235. package/plugins/models/shared/image.js +172 -0
  1236. package/plugins/models/shared/provider.d.ts +5 -0
  1237. package/plugins/models/shared/provider.js +14 -0
  1238. package/plugins/models/shared/retry.d.ts +9 -2
  1239. package/plugins/models/shared/retry.js +26 -2
  1240. package/plugins/models/shared/telemetry.d.ts +4 -2
  1241. package/plugins/models/shared/transcribe.js +9 -2
  1242. package/plugins/models/shared/types.d.ts +21 -2
  1243. package/plugins/models/shared/types.js +10 -0
  1244. package/plugins/models/shared/use.d.ts +41 -6
  1245. package/plugins/models/shared/use.js +84 -4
  1246. package/runtime/actor.d.ts +106 -0
  1247. package/runtime/actor.js +93 -0
  1248. package/runtime/address.d.ts +11 -0
  1249. package/runtime/address.js +48 -0
  1250. package/runtime/aggregate.js +8 -2
  1251. package/runtime/api.d.ts +49 -0
  1252. package/runtime/api.js +700 -0
  1253. package/runtime/blobs.d.ts +15 -12
  1254. package/runtime/blobs.js +58 -11
  1255. package/runtime/body.d.ts +16 -0
  1256. package/runtime/body.js +57 -0
  1257. package/runtime/browsers.d.ts +181 -24
  1258. package/runtime/browsers.js +358 -39
  1259. package/runtime/cache.d.ts +6 -0
  1260. package/runtime/cache.js +44 -6
  1261. package/runtime/caller.d.ts +126 -0
  1262. package/runtime/caller.js +226 -0
  1263. package/runtime/client.d.ts +163 -12
  1264. package/runtime/client.js +400 -53
  1265. package/runtime/collection.d.ts +2 -0
  1266. package/runtime/collection.js +2 -1
  1267. package/runtime/cookies.d.ts +72 -0
  1268. package/runtime/cookies.js +125 -0
  1269. package/runtime/define.d.ts +251 -32
  1270. package/runtime/describe.d.ts +319 -0
  1271. package/runtime/describe.js +594 -0
  1272. package/runtime/errors.d.ts +65 -0
  1273. package/runtime/errors.js +41 -0
  1274. package/runtime/executor.d.ts +2 -0
  1275. package/runtime/executor.js +408 -72
  1276. package/runtime/expiring.d.ts +23 -0
  1277. package/runtime/expiring.js +64 -0
  1278. package/runtime/fetch.d.ts +99 -0
  1279. package/runtime/fetch.js +415 -0
  1280. package/runtime/kept.d.ts +22 -0
  1281. package/runtime/kept.js +128 -0
  1282. package/runtime/links.d.ts +54 -0
  1283. package/runtime/links.js +98 -0
  1284. package/runtime/maintain.d.ts +88 -0
  1285. package/runtime/maintain.js +120 -0
  1286. package/runtime/memory.js +109 -19
  1287. package/runtime/mod.d.ts +15 -3
  1288. package/runtime/mod.js +13 -0
  1289. package/runtime/mongo.d.ts +50 -5
  1290. package/runtime/mongo.js +183 -9
  1291. package/runtime/observe.d.ts +10 -3
  1292. package/runtime/observe.js +119 -41
  1293. package/runtime/ops.d.ts +22 -1
  1294. package/runtime/ops.js +113 -1
  1295. package/runtime/owner.d.ts +81 -31
  1296. package/runtime/owner.js +697 -146
  1297. package/runtime/pattern.d.ts +44 -0
  1298. package/runtime/pattern.js +476 -0
  1299. package/runtime/presence.d.ts +18 -0
  1300. package/runtime/presence.js +25 -0
  1301. package/runtime/reads.d.ts +5 -3
  1302. package/runtime/reads.js +16 -7
  1303. package/runtime/registry.d.ts +22 -3
  1304. package/runtime/registry.js +70 -6
  1305. package/runtime/rest.d.ts +10 -0
  1306. package/runtime/rest.js +247 -0
  1307. package/runtime/routes.d.ts +51 -0
  1308. package/runtime/routes.js +79 -0
  1309. package/runtime/runtime.d.ts +9 -5
  1310. package/runtime/runtime.js +19 -10
  1311. package/runtime/runtimes.d.ts +43 -0
  1312. package/runtime/runtimes.js +86 -0
  1313. package/runtime/schedules.d.ts +23 -4
  1314. package/runtime/schedules.js +9 -2
  1315. package/runtime/site.d.ts +52 -0
  1316. package/runtime/site.js +178 -0
  1317. package/runtime/store.d.ts +61 -2
  1318. package/runtime/tickets.d.ts +15 -0
  1319. package/runtime/tickets.js +65 -0
  1320. package/runtime/timers.d.ts +4 -1
  1321. package/runtime/timers.js +36 -10
  1322. package/runtime/views.d.ts +2 -4
  1323. package/runtime/views.js +9 -11
  1324. package/runtime/wire.d.ts +24 -3
  1325. package/runtime/wire.js +34 -2
  1326. package/stores/blobs/files/mod.js +4 -2
  1327. package/stores/blobs/gcs/mod.d.ts +30 -0
  1328. package/stores/blobs/gcs/mod.js +106 -0
  1329. package/stores/blobs/http/mod.d.ts +1 -1
  1330. package/stores/blobs/http/mod.js +2 -1
  1331. package/stores/latency/mod.js +5 -1
  1332. package/stores/sql/postgres/dialect.d.ts +2 -1
  1333. package/stores/sql/postgres/dialect.js +9 -0
  1334. package/stores/sql/postgres/lease.d.ts +55 -0
  1335. package/stores/sql/postgres/lease.js +102 -0
  1336. package/stores/sql/postgres/maintenance.d.ts +32 -0
  1337. package/stores/sql/postgres/maintenance.js +325 -0
  1338. package/stores/sql/postgres/mod.d.ts +29 -4
  1339. package/stores/sql/postgres/mod.js +386 -104
  1340. package/stores/sql/postgres/pattern.d.ts +10 -0
  1341. package/stores/sql/postgres/pattern.js +70 -0
  1342. package/stores/sql/postgres/update.js +3 -1
  1343. package/stores/sql/shared/capped.d.ts +2 -0
  1344. package/stores/sql/shared/capped.js +22 -0
  1345. package/stores/sql/shared/filter.d.ts +23 -2
  1346. package/stores/sql/shared/filter.js +49 -12
  1347. package/stores/sql/shared/rows.d.ts +14 -0
  1348. package/stores/sql/shared/rows.js +29 -0
  1349. package/stores/sql/shared/statement.d.ts +12 -0
  1350. package/stores/sql/shared/statement.js +244 -0
  1351. package/stores/sql/sqlite/apart.d.ts +11 -0
  1352. package/stores/sql/sqlite/apart.js +219 -0
  1353. package/stores/sql/sqlite/dialect.d.ts +7 -1
  1354. package/stores/sql/sqlite/dialect.js +10 -0
  1355. package/stores/sql/sqlite/mod.d.ts +34 -3
  1356. package/stores/sql/sqlite/mod.js +308 -62
  1357. package/testing/mod.d.ts +34 -1
  1358. package/testing/mod.js +64 -2
  1359. package/testing/words.d.ts +18 -0
  1360. package/testing/words.js +60 -0
  1361. package/hosts/orgs/mod.d.ts +0 -102
  1362. package/hosts/orgs/mod.js +0 -598
  1363. package/hosts/web/files.d.ts +0 -24
  1364. package/hosts/web/files.js +0 -83
  1365. package/hosts/web/orgs.d.ts +0 -112
  1366. package/hosts/web/orgs.js +0 -225
  1367. package/hosts/web/routes.d.ts +0 -146
  1368. package/hosts/web/routes.js +0 -233
  1369. package/hosts/web/tickets.d.ts +0 -20
  1370. package/hosts/web/tickets.js +0 -21
  1371. package/plugins/access/directory/actions/host.d.ts +0 -2
  1372. package/plugins/access/directory/actions/host.js +0 -55
  1373. package/plugins/access/directory/actions/invite.d.ts +0 -5
  1374. package/plugins/access/directory/actions/invite.js +0 -130
  1375. package/plugins/access/directory/actions/org.d.ts +0 -11
  1376. package/plugins/access/directory/actions/org.js +0 -280
  1377. package/plugins/access/directory/collections/invite.d.ts +0 -81
  1378. package/plugins/access/directory/collections/invite.js +0 -20
  1379. package/plugins/access/directory/collections/membership.js +0 -22
  1380. package/plugins/access/directory/collections/org-host.js +0 -29
  1381. package/plugins/access/directory/collections/org.d.ts +0 -141
  1382. package/plugins/access/directory/collections/org.js +0 -36
  1383. package/plugins/access/directory/collections/staff.d.ts +0 -42
  1384. package/plugins/access/directory/collections/staff.js +0 -12
  1385. package/plugins/access/directory/mod.d.ts +0 -23
  1386. package/plugins/access/directory/mod.js +0 -50
  1387. package/plugins/access/directory/shared/settings.d.ts +0 -21
  1388. package/plugins/access/directory/shared/settings.js +0 -16
  1389. package/plugins/access/identity/actions/key.d.ts +0 -2
  1390. package/plugins/access/identity/actions/key.js +0 -48
  1391. package/plugins/access/spaces/actions/share.d.ts +0 -1
  1392. package/plugins/access/spaces/actions/share.js +0 -37
  1393. package/plugins/agents/team/actions/agent.d.ts +0 -4
  1394. package/plugins/agents/team/actions/agent.js +0 -180
  1395. package/plugins/agents/team/actions/define.d.ts +0 -1
  1396. package/plugins/agents/team/actions/define.js +0 -27
  1397. package/plugins/agents/team/collections/agent.d.ts +0 -132
  1398. package/plugins/agents/team/collections/agent.js +0 -75
  1399. package/plugins/agents/team/contract.d.ts +0 -7
  1400. package/plugins/agents/team/mod.d.ts +0 -21
  1401. package/plugins/agents/team/mod.js +0 -42
  1402. package/plugins/agents/team/shared/definition.d.ts +0 -3
  1403. package/plugins/agents/team/shared/definition.js +0 -10
  1404. package/plugins/agents/team/views/web/agent-add.d.ts +0 -14
  1405. package/plugins/agents/team/views/web/agent-add.js +0 -47
  1406. package/plugins/agents/team/views/web/agent-fields.d.ts +0 -33
  1407. package/plugins/agents/team/views/web/agent-fields.js +0 -84
  1408. package/plugins/agents/team/views/web/agent-known.d.ts +0 -22
  1409. package/plugins/agents/team/views/web/agent-known.js +0 -60
  1410. package/plugins/agents/team/views/web/agent-new.d.ts +0 -24
  1411. package/plugins/agents/team/views/web/agent-new.js +0 -124
  1412. package/plugins/agents/team/views/web/agent-palette.d.ts +0 -19
  1413. package/plugins/agents/team/views/web/agent-palette.js +0 -200
  1414. package/plugins/agents/team/views/web/agent-steps.d.ts +0 -23
  1415. package/plugins/agents/team/views/web/agent-steps.js +0 -52
  1416. package/plugins/agents/team/views/web/agent.d.ts +0 -17
  1417. package/plugins/agents/team/views/web/agent.js +0 -247
  1418. package/plugins/agents/team/views/web/agents.d.ts +0 -48
  1419. package/plugins/agents/team/views/web/agents.js +0 -55
  1420. package/plugins/agents/team/views/web/places.d.ts +0 -24
  1421. package/plugins/agents/team/views/web/places.js +0 -15
  1422. package/plugins/agents/team/views/web/style.d.ts +0 -9
  1423. package/plugins/agents/team/views/web/style.js +0 -195
  1424. package/plugins/agents/team/web.d.ts +0 -20
  1425. package/plugins/agents/team/web.js +0 -37
  1426. package/plugins/compute/apps/actions/build.d.ts +0 -1
  1427. package/plugins/compute/apps/actions/build.js +0 -93
  1428. package/plugins/compute/apps/actions/list.d.ts +0 -1
  1429. package/plugins/compute/apps/actions/list.js +0 -13
  1430. package/plugins/compute/apps/actions/meter.d.ts +0 -1
  1431. package/plugins/compute/apps/actions/meter.js +0 -43
  1432. package/plugins/compute/apps/actions/publish.d.ts +0 -1
  1433. package/plugins/compute/apps/actions/publish.js +0 -36
  1434. package/plugins/compute/apps/actions/redeploy.d.ts +0 -1
  1435. package/plugins/compute/apps/actions/redeploy.js +0 -27
  1436. package/plugins/compute/apps/actions/remove.d.ts +0 -1
  1437. package/plugins/compute/apps/actions/remove.js +0 -47
  1438. package/plugins/compute/apps/adapters/cloudrun.d.ts +0 -90
  1439. package/plugins/compute/apps/adapters/cloudrun.js +0 -341
  1440. package/plugins/compute/apps/adapters/local.d.ts +0 -15
  1441. package/plugins/compute/apps/adapters/local.js +0 -139
  1442. package/plugins/compute/apps/adapters/tar.d.ts +0 -29
  1443. package/plugins/compute/apps/adapters/tar.js +0 -178
  1444. package/plugins/compute/apps/collections/app.d.ts +0 -136
  1445. package/plugins/compute/apps/collections/app.js +0 -58
  1446. package/plugins/compute/apps/contract.d.ts +0 -71
  1447. package/plugins/compute/apps/contract.js +0 -8
  1448. package/plugins/compute/apps/mod.d.ts +0 -42
  1449. package/plugins/compute/apps/mod.js +0 -65
  1450. package/plugins/compute/apps/resources/tools.d.ts +0 -10
  1451. package/plugins/compute/apps/resources/tools.js +0 -63
  1452. package/plugins/compute/apps/shared/archive.d.ts +0 -24
  1453. package/plugins/compute/apps/shared/archive.js +0 -69
  1454. package/plugins/compute/apps/shared/claims.d.ts +0 -28
  1455. package/plugins/compute/apps/shared/claims.js +0 -18
  1456. package/plugins/compute/apps/shared/errors.d.ts +0 -4
  1457. package/plugins/compute/apps/shared/errors.js +0 -4
  1458. package/plugins/compute/apps/shared/host.d.ts +0 -19
  1459. package/plugins/compute/apps/shared/host.js +0 -19
  1460. package/plugins/compute/apps/shared/label.d.ts +0 -21
  1461. package/plugins/compute/apps/shared/label.js +0 -51
  1462. package/plugins/compute/apps/shared/meter.d.ts +0 -17
  1463. package/plugins/compute/apps/shared/meter.js +0 -29
  1464. package/plugins/compute/apps/shared/publish.d.ts +0 -39
  1465. package/plugins/compute/apps/shared/publish.js +0 -113
  1466. package/plugins/compute/apps/shared/settings.d.ts +0 -49
  1467. package/plugins/compute/apps/shared/settings.js +0 -22
  1468. package/plugins/compute/apps/views/web/apps.d.ts +0 -52
  1469. package/plugins/compute/apps/views/web/apps.js +0 -48
  1470. package/plugins/compute/apps/views/web/publish.d.ts +0 -24
  1471. package/plugins/compute/apps/views/web/publish.js +0 -156
  1472. package/plugins/compute/apps/views/web/space.d.ts +0 -15
  1473. package/plugins/compute/apps/views/web/space.js +0 -126
  1474. package/plugins/compute/apps/views/web/style.d.ts +0 -6
  1475. package/plugins/compute/apps/views/web/style.js +0 -102
  1476. package/plugins/compute/apps/web.d.ts +0 -16
  1477. package/plugins/compute/apps/web.js +0 -29
  1478. package/plugins/compute/cloud/actions/create.d.ts +0 -1
  1479. package/plugins/compute/cloud/actions/create.js +0 -90
  1480. package/plugins/compute/cloud/actions/daily.d.ts +0 -1
  1481. package/plugins/compute/cloud/actions/daily.js +0 -75
  1482. package/plugins/compute/cloud/actions/destroy.d.ts +0 -1
  1483. package/plugins/compute/cloud/actions/destroy.js +0 -71
  1484. package/plugins/compute/cloud/actions/org.d.ts +0 -1
  1485. package/plugins/compute/cloud/actions/org.js +0 -21
  1486. package/plugins/compute/cloud/actions/pool-tick.d.ts +0 -4
  1487. package/plugins/compute/cloud/actions/pool-tick.js +0 -91
  1488. package/plugins/compute/cloud/actions/pool.d.ts +0 -3
  1489. package/plugins/compute/cloud/actions/pool.js +0 -98
  1490. package/plugins/compute/cloud/actions/release.d.ts +0 -1
  1491. package/plugins/compute/cloud/actions/release.js +0 -58
  1492. package/plugins/compute/cloud/actions/remote.d.ts +0 -10
  1493. package/plugins/compute/cloud/actions/remote.js +0 -24
  1494. package/plugins/compute/cloud/actions/tick.d.ts +0 -1
  1495. package/plugins/compute/cloud/actions/tick.js +0 -95
  1496. package/plugins/compute/cloud/actions/touch.d.ts +0 -1
  1497. package/plugins/compute/cloud/actions/touch.js +0 -32
  1498. package/plugins/compute/cloud/actions/vms.d.ts +0 -7
  1499. package/plugins/compute/cloud/actions/vms.js +0 -201
  1500. package/plugins/compute/cloud/actions/wake.d.ts +0 -1
  1501. package/plugins/compute/cloud/actions/wake.js +0 -147
  1502. package/plugins/compute/cloud/adapters/gce/index.d.ts +0 -73
  1503. package/plugins/compute/cloud/adapters/gce/index.js +0 -242
  1504. package/plugins/compute/cloud/adapters/local.d.ts +0 -48
  1505. package/plugins/compute/cloud/adapters/local.js +0 -179
  1506. package/plugins/compute/cloud/collections/cloud-computer.d.ts +0 -109
  1507. package/plugins/compute/cloud/collections/cloud-computer.js +0 -82
  1508. package/plugins/compute/cloud/collections/pool-vm.d.ts +0 -79
  1509. package/plugins/compute/cloud/collections/pool-vm.js +0 -36
  1510. package/plugins/compute/cloud/contract.d.ts +0 -236
  1511. package/plugins/compute/cloud/contract.js +0 -67
  1512. package/plugins/compute/cloud/mod.d.ts +0 -92
  1513. package/plugins/compute/cloud/mod.js +0 -185
  1514. package/plugins/compute/cloud/shared/host.d.ts +0 -11
  1515. package/plugins/compute/cloud/shared/host.js +0 -29
  1516. package/plugins/compute/cloud/shared/meter.d.ts +0 -29
  1517. package/plugins/compute/cloud/shared/meter.js +0 -59
  1518. package/plugins/compute/cloud/shared/names.d.ts +0 -10
  1519. package/plugins/compute/cloud/shared/names.js +0 -11
  1520. package/plugins/compute/cloud/shared/people.d.ts +0 -24
  1521. package/plugins/compute/cloud/shared/people.js +0 -19
  1522. package/plugins/compute/cloud/shared/records.d.ts +0 -18
  1523. package/plugins/compute/cloud/shared/records.js +0 -8
  1524. package/plugins/compute/cloud/shared/settings.d.ts +0 -75
  1525. package/plugins/compute/cloud/shared/settings.js +0 -48
  1526. package/plugins/compute/cloud/shared/time.d.ts +0 -19
  1527. package/plugins/compute/cloud/shared/time.js +0 -31
  1528. package/plugins/compute/cloud/views/web/cloud.d.ts +0 -72
  1529. package/plugins/compute/cloud/views/web/cloud.js +0 -112
  1530. package/plugins/compute/cloud/views/web/computer.d.ts +0 -31
  1531. package/plugins/compute/cloud/views/web/computer.js +0 -185
  1532. package/plugins/compute/cloud/views/web/new.d.ts +0 -25
  1533. package/plugins/compute/cloud/views/web/new.js +0 -89
  1534. package/plugins/compute/cloud/views/web/style.d.ts +0 -6
  1535. package/plugins/compute/cloud/views/web/style.js +0 -84
  1536. package/plugins/compute/cloud/web.d.ts +0 -19
  1537. package/plugins/compute/cloud/web.js +0 -54
  1538. package/plugins/compute/computers/actions/approve.js +0 -57
  1539. package/plugins/compute/computers/collections/approval.d.ts +0 -162
  1540. package/plugins/compute/computers/collections/approval.js +0 -59
  1541. package/plugins/compute/computers/collections/grant.js +0 -29
  1542. package/plugins/compute/computers/shared/asks.d.ts +0 -5
  1543. package/plugins/compute/computers/shared/asks.js +0 -3
  1544. package/plugins/compute/computers/shared/person.d.ts +0 -3
  1545. package/plugins/compute/computers/shared/person.js +0 -8
  1546. package/plugins/compute/computers/views/terminal/approvals.d.ts +0 -9
  1547. package/plugins/compute/computers/views/terminal/approvals.js +0 -14
  1548. package/plugins/compute/computers/views/web/waiting.d.ts +0 -10
  1549. package/plugins/compute/computers/views/web/waiting.js +0 -34
  1550. package/plugins/interfaces/api/shared/events.d.ts +0 -26
  1551. package/plugins/interfaces/api/shared/events.js +0 -142
  1552. package/plugins/interfaces/api/shared/http.d.ts +0 -28
  1553. package/plugins/interfaces/api/shared/http.js +0 -93
  1554. package/plugins/interfaces/api/shared/reference.d.ts +0 -48
  1555. package/plugins/interfaces/api/shared/reference.js +0 -37
  1556. package/plugins/interfaces/api/shared/server.d.ts +0 -34
  1557. package/plugins/interfaces/api/shared/server.js +0 -177
  1558. package/plugins/interfaces/web/views/console.d.ts +0 -13
  1559. package/plugins/interfaces/web/views/console.js +0 -212
  1560. package/plugins/interfaces/web/views/org.d.ts +0 -12
  1561. package/plugins/interfaces/web/views/org.js +0 -54
  1562. package/plugins/interfaces/web/views/orgs.d.ts +0 -44
  1563. package/plugins/interfaces/web/views/orgs.js +0 -256
  1564. package/plugins/interfaces/whatsapp/shared/http.d.ts +0 -47
  1565. package/plugins/interfaces/whatsapp/shared/http.js +0 -22
  1566. /package/plugins/{compute/computers → agents/chat}/actions/approve.d.ts +0 -0
  1567. /package/plugins/agents/{team → openapi}/contract.js +0 -0
  1568. /package/plugins/compute/{cloud/shared/google.d.ts → google.d.ts} +0 -0
  1569. /package/plugins/compute/{cloud/shared/google.js → google.js} +0 -0
package/AGENTS.md ADDED
@@ -0,0 +1,400 @@
1
+ # AGENTS.md
2
+
3
+ A guide for coding agents (Claude Code, Codex, Cursor, Gemini) building an app with Copilotz. Read
4
+ it whole before you write code. The last section is for work on Copilotz itself.
5
+
6
+ It ships in the package (`node_modules/copilotz/AGENTS.md`, and `@copilotz/copilotz` on JSR) and
7
+ goes with `copilotz@1.0.0-rc.51`. Every docs page is Markdown at
8
+ `https://copilotz.com/docs/<slug>.md`, and https://copilotz.com/llms.txt lists them all. When you're
9
+ unsure of a name, fetch its page or read the package's types (`node_modules/copilotz/**/*.d.ts`).
10
+ Don't guess.
11
+
12
+ It also comes as an Agent Skill, for any coding agent: `npx skills add copilotzhq/copilotz`.
13
+
14
+ ## What Copilotz is
15
+
16
+ A runtime for apps that people and AI use alike. You write the app once: its data, what can be done,
17
+ who may do it, and how it shows. People use it on a web page or in a terminal, the app's own agents
18
+ through tools, and outside assistants (ChatGPT, Claude, any MCP client) over MCP. Every way in calls
19
+ the same Actions, under the same rules, and every write is on one record of who did what, for whom.
20
+ It runs on Node 24+, Deno 2.9+ and Bun.
21
+
22
+ ## How Copilotz works, in one minute
23
+
24
+ An app is a **runtime** made of **plugins**. A plugin is plain objects, made of six primitives:
25
+
26
+ | Primitive | What it is |
27
+ | -------------- | ---------------------------------------------------------------------------------------- |
28
+ | **Collection** | documents with a JSON Schema, read and written with the MongoDB collection API |
29
+ | **Action** | something that can be done, by name, with a JSON Schema `input` and an `allow` (who may) |
30
+ | **Processor** | what happens when events happen: it hears the events it names, at least once, in order |
31
+ | **View** | how data shows in one place: text for a model or the terminal, Ink, React for the web |
32
+ | **Resource** | configuration as named plain objects, by kind (`agents`, `tools`, `provider`…) |
33
+ | **Adapter** | one implementation of a port, by name: a model provider's protocol, an email service |
34
+
35
+ A plugin may also declare `routes` and `who` (HTTP), `guard` (rules), `schedules` and a startup
36
+ `check`. Plugins merge in order: a later plugin's resources patch an earlier one's (objects merge,
37
+ `null` removes), and a later View, adapter or route replaces one of the same name.
38
+
39
+ The runtime keeps one contract for every caller:
40
+
41
+ - **Who, for whom, where.** Every call carries an actor, `{ kind, id, for?, in? }`: a person, a
42
+ contact from outside, or an agent working `for` one of them. `in` is where the work is (a space,
43
+ with the access plugin).
44
+ - **The rules, at the data.** Reads come back filtered by what the actor reaches, and writes are
45
+ checked, whichever way the call came in.
46
+ - **The record.** Every write records an event in the same commit, naming its actor.
47
+
48
+ What people often get wrong:
49
+
50
+ - **Two kinds of events.** A collection write records `<collection>.created`, `.updated` or
51
+ `.deleted`. An Action call records `action.started`, then `action.completed` or `action.failed`.
52
+ Callers call Actions; events are what Actions and writes produce.
53
+ - **`runtime.subscribe` hears events; `runtime.observe` keeps a View live**, running it again when a
54
+ commit changes what it read.
55
+ - **Queries read; Actions write.** Named queries and Views never write.
56
+
57
+ Plugins reach each other only through the runtime, by name. One that builds on another says so
58
+ (`requires: ["chat"]`) and imports only that plugin's `contract.ts`, never its code.
59
+
60
+ ## Start a project
61
+
62
+ There's no project generator. Set a project up as the docs' courses do, on Node 24 or newer:
63
+
64
+ ```sh
65
+ mkdir my-app && cd my-app
66
+ npm init -y && npm pkg set type=module
67
+ npm install copilotz@1.0.0-rc.51 react@19 react-dom@19
68
+ npm install -D typescript @types/node @types/react @types/react-dom esbuild
69
+ ```
70
+
71
+ Pin the version: npm's `latest` tag still points at an early release candidate. On Deno, run
72
+ `deno add jsr:@copilotz/copilotz` and map `"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.51"` in
73
+ `deno.json`, so imports read the same.
74
+
75
+ Node runs `.ts` files as they are, so there's no build step. It doesn't run `.tsx`: tests that load
76
+ a `web.tsx` need a loader hook (Getting Started chapter 3 adds one). Copy `tsconfig.json` from
77
+ [Build Compass](https://copilotz.com/docs/build-compass.md), under "What you need": `NodeNext`
78
+ modules, `allowImportingTsExtensions`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, `strict`,
79
+ `noEmit`, and `jsx: "react-jsx"`. The scripts, in `package.json` (add `dev` and `terminal` once
80
+ there's a server and a terminal):
81
+
82
+ ```json
83
+ "scripts": {
84
+ "test": "node --disable-warning=ExperimentalWarning --test --test-timeout=60000 --test-concurrency=1 \"tests/*.test.ts\"",
85
+ "check": "tsc --noEmit -p ."
86
+ }
87
+ ```
88
+
89
+ The layout the docs use:
90
+
91
+ ```text
92
+ app.ts plugins(settings): every plugin, in order. It reads no environment.
93
+ plugins/<name>/
94
+ mod.ts assembles the plugin, and nothing else
95
+ actions.ts … one file per primitive; or collections/, actions/, views/… with one file per
96
+ declaration, as Copilotz's own plugins are laid out
97
+ contract.ts what other plugins may import: shapes and small helpers, never code
98
+ web.tsx its web front end (React Views); terminal.ts, its terminal one
99
+ server.ts the web host: reads the environment, passes settings to plugins()
100
+ tests/kit.ts the app as app.ts makes it, in memory, with a scripted model
101
+ tests/*.test.ts
102
+ .env OPENAI_API_KEY=… (optional; dev and terminal read it: --env-file-if-exists=.env)
103
+ ```
104
+
105
+ **Give the project its own guide.** Write `AGENTS.md` at its root, and `CLAUDE.md` holding the one
106
+ line `@AGENTS.md` (Claude Code reads `CLAUDE.md`, and follows the import). Keep it short and true:
107
+
108
+ ```markdown
109
+ # AGENTS.md
110
+
111
+ This app runs on Copilotz (copilotz@1.0.0-rc.51). Read node_modules/copilotz/AGENTS.md first;
112
+ https://copilotz.com/llms.txt lists the docs, as Markdown.
113
+
114
+ - `npm test` runs every test offline, with a scripted model: run it after each change.
115
+ `npm run check` checks the types.
116
+ - `app.ts` lists the plugins in order; `plugins/<name>/mod.ts` assembles each one.
117
+ - Every change to data is an Action that pages, tools and scripts all call. Access rules live at the
118
+ data (the `shared` resource or a `guard`). Each tool has a `tool:<name>` View.
119
+ ```
120
+
121
+ ## A plugin, end to end
122
+
123
+ A collection, an Action, a View for people and one for the model, a rule, a tool and an agent, in
124
+ `plugins/tasks/mod.ts`:
125
+
126
+ ```ts
127
+ import { defineAction, definePlugin, failure, people } from "copilotz";
128
+ import type { Plugin, ViewContext } from "copilotz";
129
+ import { tool } from "copilotz/plugins/agents";
130
+
131
+ type Task = { _id: string; title: string; in: string };
132
+
133
+ export const tasks: Plugin = definePlugin({
134
+ name: "tasks",
135
+ requires: ["chat", "spaces"],
136
+ collections: {
137
+ task: {
138
+ schema: {
139
+ type: "object",
140
+ properties: { title: { type: "string" }, in: { type: "string" } },
141
+ required: ["title", "in"],
142
+ },
143
+ },
144
+ },
145
+ actions: {
146
+ // The one way to add a task: a button, the agent's tool and a script all call it.
147
+ "task.add": defineAction({
148
+ input: { type: "object", properties: { title: { type: "string" } }, required: ["title"] },
149
+ allow: people,
150
+ run: async (ctx, { title }) => {
151
+ if (!ctx.in) throw failure("invalid", "Add tasks in a space.", { public: true });
152
+ const { insertedId } = await ctx.db.collection("task").insertOne({ title, in: ctx.in });
153
+ return { task: insertedId };
154
+ },
155
+ }),
156
+ },
157
+ views: {
158
+ // Text, for the terminal and for a model. It reads as whoever looks.
159
+ tasks: (_: unknown, ctx: ViewContext) => {
160
+ const found = ctx.db.collection<Task>("task").find({}).value ?? [];
161
+ return found.length ? found.map((t) => `- ${t.title}`).join("\n") : "No tasks.";
162
+ },
163
+ // What a model reads after it calls add_task.
164
+ "tool:add_task": (_call: unknown, ctx: ViewContext) => ctx.show("tasks", {}),
165
+ },
166
+ resources: {
167
+ // The rule, at the data: a task lives in a space (its `in`).
168
+ shared: { task: {} },
169
+ tools: {
170
+ add_task: tool({
171
+ description: "Adds a task to this chat's space",
172
+ input: { type: "object", properties: { title: { type: "string" } }, required: ["title"] },
173
+ run: ({ title }, ctx) => ctx.call("task.add", { title }),
174
+ }),
175
+ },
176
+ agents: {
177
+ helper: { default: true, instructions: "Keep tasks.", model: "helper", tools: ["add_task"] },
178
+ },
179
+ },
180
+ });
181
+ ```
182
+
183
+ `app.ts` lists the plugins and sets the model alias the agent names. Without a key it's
184
+ `"fake/echo"`, Copilotz's offline model: it echoes what it's told, and calls a tool, with no input,
185
+ when the message names it ("add task" for `add_task`).
186
+
187
+ ```ts
188
+ import { definePlugin, type Plugin } from "copilotz";
189
+ import { models } from "copilotz/plugins/models";
190
+ import { chat } from "copilotz/plugins/agents";
191
+ import { access } from "copilotz/plugins/access";
192
+ import { tasks } from "./plugins/tasks/mod.ts";
193
+
194
+ export function plugins(settings: { openai?: string } = {}): Plugin[] {
195
+ const provider = settings.openai ? { openai: { apiKey: settings.openai } } : {};
196
+ const model = { helper: settings.openai ? "openai/gpt-5.4-mini" : "fake/echo" };
197
+ const app = definePlugin({ name: "app-settings", resources: { provider, model } });
198
+ return [models, chat, ...access, tasks, app];
199
+ }
200
+ ```
201
+
202
+ ## Test without an API key: the default loop
203
+
204
+ Run `npm test` after every change, and `npm run check` before you stop. No test needs a key or the
205
+ network. Run the app as `app.ts` makes it, with fakes only where it meets the world: a scripted
206
+ model (below); `createRuntime({ clock: manualClock(Date.now()) })` and `clock.advance(ms)` for time;
207
+ `createRuntime({ fetch })` for what plugins call outside (`ctx.fetch`). A model provider is called
208
+ with the platform's `fetch`, so a fake one is a local server (`serve`, from `copilotz/testing`) set
209
+ as the provider's `baseURL`. `runtime.fetch(new Request(…))` tests HTTP without a port, and
210
+ `await runtime.idle()` waits until nothing is left to run.
211
+
212
+ `tests/kit.ts`:
213
+
214
+ ```ts
215
+ import { createRuntime, definePlugin } from "copilotz";
216
+ import { memoryStore } from "copilotz/stores/memory";
217
+ import type { LlmAdapter, LlmRequest } from "copilotz/plugins/models";
218
+ import { plugins } from "../app.ts";
219
+
220
+ export type Move = string | { tool: string; input?: Record<string, unknown> };
221
+
222
+ /** A model that plays its moves in order, one per call, and keeps what each call sent it. */
223
+ export function scripted(moves: Move[]) {
224
+ const sent: LlmRequest[] = [];
225
+ const adapter: LlmAdapter = {
226
+ async *generate(request) {
227
+ sent.push(request);
228
+ const move = moves.shift();
229
+ if (move === undefined) throw new Error(`The script has no move for call ${sent.length}.`);
230
+ if (typeof move === "string") yield { type: "text", text: move };
231
+ else {
232
+ const call = { id: `call-${sent.length}`, name: move.tool, input: move.input ?? {} };
233
+ yield { type: "tool_call", call };
234
+ }
235
+ },
236
+ };
237
+ return { adapter, sent };
238
+ }
239
+
240
+ /** The app, in memory, with the `helper` alias on a script. */
241
+ export async function start(moves: Move[] = []) {
242
+ const store = memoryStore();
243
+ const helper = scripted(moves);
244
+ const script = definePlugin({
245
+ name: "test-script",
246
+ resources: { provider: { script: { adapter: "script" } }, model: { helper: "script/helper" } },
247
+ adapters: { llm: { script: helper.adapter } },
248
+ });
249
+ const runtime = await createRuntime({ store, plugins: [...plugins(), script] });
250
+ return { runtime, store, helper };
251
+ }
252
+ ```
253
+
254
+ `tests/tasks.test.ts`:
255
+
256
+ ```ts
257
+ import assert from "node:assert/strict";
258
+ import { test } from "node:test";
259
+ import { type Actor, personOf } from "copilotz";
260
+ import { start } from "./kit.ts";
261
+
262
+ test("the agent adds a task for Ana, through the same Action", async () => {
263
+ const { runtime, store, helper } = await start([
264
+ { tool: "add_task", input: { title: "Bo" } },
265
+ "Done.",
266
+ ]);
267
+ try {
268
+ const ana: Actor = { kind: "person", id: "ana" };
269
+ const { space } = await runtime.call<{ space: string }>("space.personal", {}, { actor: ana });
270
+ const here: Actor = { ...ana, in: space };
271
+ await runtime.call("chat.send", { in: space, text: "Add Bo." }, { actor: here });
272
+ await runtime.idle();
273
+ assert.equal(helper.sent[1].messages.at(-1)?.text, "- Bo"); // what the model read
274
+ const made = (await store.events(0)).find((e) => e.type === "task.created");
275
+ assert.equal(personOf(made?.actor), "ana"); // the record: written for Ana…
276
+ assert.equal(made?.actor?.kind, "agent"); // …by the agent
277
+ const seen = await runtime.observe<string>("tasks", {}, { actor: here }).ready;
278
+ assert.deepEqual(seen, { status: "ready", value: "- Bo" }); // what Ana sees
279
+ } finally {
280
+ await runtime.close();
281
+ }
282
+ });
283
+ ```
284
+
285
+ Test what callers may not do as well: call as someone else, and `assert.rejects`.
286
+
287
+ ## Rules: do this, not that
288
+
289
+ - **One Action per change, called from every way in.** A button and a tool call it with `ctx.call`,
290
+ a script with `runtime.call`. Never add a second, looser path. A tool is a thin caller of Actions.
291
+ - **Rules at the data, not in handlers.** Name a collection in the `shared` resource (its documents
292
+ live `in` a space; `part` ties one to another document, as a booking to its chat), or write a
293
+ `guard`. Don't filter by who's asking inside an Action. To keep a collection changing only through
294
+ its Actions, refuse `direct` writes in a `guard`.
295
+ - **Say `allow` on every Action outsiders call:** `people`, `contacts`, `peopleOrContacts`,
296
+ `publicCallers`, or `inPerson` for what only the person decides (consent, keys, who's in a space,
297
+ money). Write it by kind, never by identity. It's asked of agents too, and of whom they work for.
298
+ An Action without `allow` is internal.
299
+ - **A View for whatever anyone reads, a model included.** Each tool gets a `tool:<name>` View: short
300
+ text, with ids the model can act on. A failed call's output is its error's words; pass them on,
301
+ don't throw. An MCP server that offers a tool without its View doesn't start.
302
+ - **A View reads in its own body.** A React View reads with `ctx.db` and hands the result to its
303
+ component, so it stays live. Views never write.
304
+ - **Errors for callers are `failure(code, message, { public: true })`.** Only a public failure's
305
+ words reach a caller outside or a model.
306
+ - **Settings are resources, not code.** `app.ts` reads no environment: the server, the terminal or a
307
+ test passes settings in. Agents name a model alias that the app sets.
308
+ - **Writes that must agree go in one `ctx.transaction`.** A refused write rolls it all back. It
309
+ holds the store's writer, so keep slow work out.
310
+ - **Who acts:** `personOf(ctx.actor)`, not `ctx.actor.id` (an agent's is its own). Where: `ctx.in`.
311
+ A tool works where its chat is.
312
+ - **Going past the actor's reach is a named grant,** `ctx.as(grant("…"))`, in trusted code, on the
313
+ record. Keys stay in code: never in Action inputs (they're recorded), never with a model.
314
+ - **An agent tells a conversation only what everyone in it could see.** Its work reads what both its
315
+ asker and the place its answer goes reach: a space and what it draws on; a customer's chat, what
316
+ that customer reaches (a space drawing on another with `contacts: "read"` lets them read it); its
317
+ person's Personal space, all they reach. Writing anywhere its readers don't all reach that asks
318
+ the person first (`needs_approval`): don't catch it, let it through to the turn.
319
+ - **A tool that goes past its caller, offered to a contact or the public, is a declassifier.** Scope
320
+ it to them (their own bookings, never any record), take no free-form query that could widen it,
321
+ and return only what they may see. In a customer's chat, an Action people call that goes past its
322
+ caller is refused; the app's own (no `allow`) runs as its tool chose. The public (`publicCallers`,
323
+ `{ kind: "public" }`) reads only spaces that have it as a viewer, and writes nothing.
324
+ - **Outside effects:** write the intent, call out with its id as the idempotency key (a tool's
325
+ `callId`), then write the result.
326
+ - **Online:** `devSignIn` is for this machine only; Copilotz won't start it with a public origin.
327
+ Keep the `links` secret (32 bytes or more) across restarts, or MCP conversations start over.
328
+
329
+ ## Recipes
330
+
331
+ Each link is a page as Markdown. GS is Getting Started (a salon's bookings, 10 chapters). BC is
332
+ Build Compass (41 chapters, written for an earlier release candidate: check names in the reference).
333
+
334
+ - A plugin: [GS 1](https://copilotz.com/docs/getting-started/01-one-booking.md). People, contacts,
335
+ spaces, the rules: [GS 2](https://copilotz.com/docs/getting-started/02-who-sees-what.md).
336
+ - The web: [GS 3](https://copilotz.com/docs/getting-started/03-its-own-web-page.md),
337
+ [serving on the web](https://copilotz.com/docs/guides/serving-on-the-web.md). An agent and its
338
+ tools: [GS 4](https://copilotz.com/docs/getting-started/04-its-own-agent.md).
339
+ - MCP: [GS 5](https://copilotz.com/docs/getting-started/05-chatgpt-claude-and-gemini-over-mcp.md).
340
+ One test, every way in:
341
+ [GS 6](https://copilotz.com/docs/getting-started/06-the-same-bookings-every-way-in.md).
342
+ - Widgets: [GS 7](https://copilotz.com/docs/getting-started/07-a-widget-in-the-assistant.md). A
343
+ site's chat: [GS 8](https://copilotz.com/docs/getting-started/08-a-chat-on-your-site.md).
344
+ WhatsApp: [GS 9](https://copilotz.com/docs/getting-started/09-whatsapp.md).
345
+ - Shipping (SQLite, PostgreSQL, sign-in by email):
346
+ [GS 10](https://copilotz.com/docs/getting-started/10-shipping-the-salon.md). A container of 512
347
+ MiB or less (Deno 2.9+, `--max-semi-space-size=2`, SQLite's cache, each plugin from its own entry
348
+ point): [memory](https://copilotz.com/docs/operations/memory.md).
349
+ - The prompt and context Views:
350
+ [BC 2](https://copilotz.com/docs/build-compass/part-1-an-agent-of-your-own/02-north-in-your-terminal.md),
351
+ [BC 4](https://copilotz.com/docs/build-compass/part-2-your-own-plugins/04-today-every-turn.md).
352
+ - A Processor:
353
+ [BC 6](https://copilotz.com/docs/build-compass/part-2-your-own-plugins/06-chats-that-name-themselves.md).
354
+ Transactions:
355
+ [BC 9](https://copilotz.com/docs/build-compass/part-3-the-board/09-the-boards-data-and-actions.md).
356
+ - Schedules and a manual clock:
357
+ [BC 27](https://copilotz.com/docs/build-compass/part-8-skills-and-routines/27-routines-on-a-schedule.md).
358
+ Fakes at the edges:
359
+ [BC 31](https://copilotz.com/docs/build-compass/part-10-testing/31-fakes-at-the-edges.md).
360
+ - Scripts over REST: [REST and the client](https://copilotz.com/docs/guides/rest-and-the-client.md).
361
+ Many orgs: [many orgs](https://copilotz.com/docs/guides/many-orgs.md).
362
+ - Every entry point, option, event and context field:
363
+ [reference](https://copilotz.com/docs/reference.md). Each of Copilotz's plugins (`chat`, `spaces`,
364
+ `mcp`…): [plugins](https://copilotz.com/docs/reference/plugins.md). How it runs:
365
+ [architecture](https://copilotz.com/docs/architecture.md).
366
+
367
+ ## Entry points
368
+
369
+ The same names on npm (`copilotz/…`) and JSR (`@copilotz/copilotz/…`); the package's `package.json`
370
+ lists them all. Besides those above: `copilotz/stores/sqlite` and `copilotz/stores/postgres`
371
+ (stores), `copilotz/plugins/interfaces` (`mcp`, `api`, `whatsapp`, `voice`, `webLines`),
372
+ `copilotz/web` (the web host, `web`), `copilotz/web/pt-br` (`ptBR`: every web word in Brazilian
373
+ Portuguese, first among the page's plugins), `copilotz/web/server` (`webPage`), `copilotz/web/node`
374
+ (`listen`, `serve`, `bundle`), `copilotz/terminal` (`terminal`) and `copilotz/testing`. Each plugin
375
+ of `agents`, `access` and `interfaces` is also its own entry point, which loads it alone:
376
+ `copilotz/plugins/interfaces/mcp`, `copilotz/plugins/agents/chat`, `copilotz/plugins/access/spaces`…
377
+ Front ends sit beside each theme (`copilotz/plugins/agents/web` has `chatWeb`). Product packages
378
+ ship at the same version: `@copilotz/work` (`boards`, `documents`), `@copilotz/team`,
379
+ `@copilotz/directory` and `@copilotz/billing`.
380
+
381
+ ## Working on Copilotz itself
382
+
383
+ [CONTRIBUTING.md](CONTRIBUTING.md) has the rest. The checks:
384
+
385
+ ```sh
386
+ deno task check && deno task test # types, the suite (COPILOTZ_TEST_POSTGRES_URL: PostgreSQL)
387
+ npm install && npm test # the suite on Node 24 (bun test --timeout 60000 on Bun)
388
+ deno fmt --check # the format CI checks
389
+ npm run build && node scripts/npm/smoke.ts && deno publish --dry-run # the packages
390
+ ```
391
+
392
+ - The runtime imports nothing outside it. A plugin imports the runtime, the hosts' toolkits, its own
393
+ files and other plugins' `contract.ts` (`testing/boundaries.test.ts`).
394
+ - A plugin is `plugins/<theme>/<name>/`, by primitive, one file per declaration; `mod.ts` only
395
+ assembles it. Tests sit in `plugins/<theme>/tests/`. Factories and plain data, no classes.
396
+ - After changing a plugin, `deno run -A scripts/describe.ts --docs` remakes its reference page.
397
+ After changing docs, `python3 scripts/docs-index.py && deno fmt docs`.
398
+ - `testing/agents-md.test.ts` checks this file's imports, links and version;
399
+ `node scripts/version.ts <version>` moves its version with the rest. Releases are tags the
400
+ maintainers push: don't tag or publish.