copilotz 1.0.0-rc.26 → 1.0.0-rc.28

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 (444) hide show
  1. package/CHANGELOG.md +199 -0
  2. package/README.md +351 -67
  3. package/hosts/web/host-words.d.ts +1 -0
  4. package/hosts/web/host-words.js +24 -0
  5. package/hosts/web/host.js +29 -7
  6. package/hosts/web/mod.d.ts +2 -0
  7. package/hosts/web/mod.js +5 -0
  8. package/hosts/web/node/mod.d.ts +30 -2
  9. package/hosts/web/node/mod.js +30 -2
  10. package/hosts/web/node/serve.d.ts +55 -0
  11. package/hosts/web/node/serve.js +83 -0
  12. package/hosts/web/palette/palette.js +10 -10
  13. package/hosts/web/palette/words.d.ts +1 -0
  14. package/hosts/web/palette/words.js +23 -0
  15. package/hosts/web/part.js +5 -4
  16. package/hosts/web/signin-email.d.ts +56 -0
  17. package/hosts/web/signin-email.js +389 -0
  18. package/hosts/web/signin-words.d.ts +146 -0
  19. package/hosts/web/signin-words.js +167 -0
  20. package/hosts/web/signin.d.ts +19 -8
  21. package/hosts/web/signin.js +90 -57
  22. package/hosts/web/toolkit/ago.d.ts +0 -5
  23. package/hosts/web/toolkit/ago.js +17 -17
  24. package/hosts/web/toolkit/audio-player.d.ts +1 -1
  25. package/hosts/web/toolkit/audio-player.js +12 -7
  26. package/hosts/web/toolkit/code-block.js +4 -3
  27. package/hosts/web/toolkit/copy-button.js +4 -2
  28. package/hosts/web/toolkit/detail-value.js +11 -7
  29. package/hosts/web/toolkit/dialog.js +2 -1
  30. package/hosts/web/toolkit/drawer.js +2 -1
  31. package/hosts/web/toolkit/formula.js +3 -2
  32. package/hosts/web/toolkit/humanize.d.ts +0 -12
  33. package/hosts/web/toolkit/humanize.js +2 -1
  34. package/hosts/web/toolkit/icon.d.ts +1 -0
  35. package/hosts/web/toolkit/icon.js +2 -0
  36. package/hosts/web/toolkit/inline-edit.js +2 -1
  37. package/hosts/web/toolkit/long-text.js +2 -1
  38. package/hosts/web/toolkit/markdown/markdown.js +4 -3
  39. package/hosts/web/toolkit/terminal.js +5 -4
  40. package/hosts/web/toolkit/time.js +2 -1
  41. package/hosts/web/toolkit/words.d.ts +1 -0
  42. package/hosts/web/toolkit/words.js +60 -0
  43. package/hosts/web/update.js +2 -1
  44. package/hosts/web/widget.js +6 -5
  45. package/hosts/web/words.d.ts +76 -0
  46. package/hosts/web/words.js +114 -0
  47. package/package.json +13 -1
  48. package/plugins/access/accounts/collections/flow.d.ts +1 -1
  49. package/plugins/access/dev/actions/sign-in.js +16 -2
  50. package/plugins/access/directory/collections/credit-code.d.ts +1 -1
  51. package/plugins/access/directory/web.js +2 -1
  52. package/plugins/access/directory/words.d.ts +1 -0
  53. package/plugins/access/directory/words.js +6 -0
  54. package/plugins/access/email/actions/import.d.ts +1 -0
  55. package/plugins/access/email/actions/import.js +54 -0
  56. package/plugins/access/email/actions/invite.d.ts +5 -0
  57. package/plugins/access/email/actions/invite.js +139 -0
  58. package/plugins/access/email/actions/prune.d.ts +1 -0
  59. package/plugins/access/email/actions/prune.js +20 -0
  60. package/plugins/access/email/actions/reset.d.ts +2 -0
  61. package/plugins/access/email/actions/reset.js +98 -0
  62. package/plugins/access/email/actions/send.d.ts +1 -0
  63. package/plugins/access/email/actions/send.js +41 -0
  64. package/plugins/access/email/actions/sign-in.d.ts +1 -0
  65. package/plugins/access/email/actions/sign-in.js +68 -0
  66. package/plugins/access/email/actions/sign-up.d.ts +4 -0
  67. package/plugins/access/email/actions/sign-up.js +105 -0
  68. package/plugins/access/email/adapters/console.d.ts +8 -0
  69. package/plugins/access/email/adapters/console.js +8 -0
  70. package/plugins/access/email/adapters/resend.d.ts +8 -0
  71. package/plugins/access/email/adapters/resend.js +29 -0
  72. package/plugins/access/email/collections/code.d.ts +118 -0
  73. package/plugins/access/email/collections/code.js +39 -0
  74. package/plugins/access/email/collections/login.d.ts +78 -0
  75. package/plugins/access/email/collections/login.js +28 -0
  76. package/plugins/access/email/collections/rate.d.ts +51 -0
  77. package/plugins/access/email/collections/rate.js +14 -0
  78. package/plugins/access/email/contract.d.ts +94 -0
  79. package/plugins/access/email/contract.js +7 -0
  80. package/plugins/access/email/mod.d.ts +63 -0
  81. package/plugins/access/email/mod.js +145 -0
  82. package/plugins/access/email/resources/messages.d.ts +9 -0
  83. package/plugins/access/email/resources/messages.js +55 -0
  84. package/plugins/access/email/routes/sign-in.d.ts +30 -0
  85. package/plugins/access/email/routes/sign-in.js +107 -0
  86. package/plugins/access/email/shared/codes.d.ts +41 -0
  87. package/plugins/access/email/shared/codes.js +90 -0
  88. package/plugins/access/email/shared/inputs.d.ts +32 -0
  89. package/plugins/access/email/shared/inputs.js +41 -0
  90. package/plugins/access/email/shared/limits.d.ts +31 -0
  91. package/plugins/access/email/shared/limits.js +56 -0
  92. package/plugins/access/email/shared/mail.d.ts +11 -0
  93. package/plugins/access/email/shared/mail.js +13 -0
  94. package/plugins/access/email/shared/password.d.ts +36 -0
  95. package/plugins/access/email/shared/password.js +85 -0
  96. package/plugins/access/email/shared/people.d.ts +33 -0
  97. package/plugins/access/email/shared/people.js +53 -0
  98. package/plugins/access/email/shared/settings.d.ts +29 -0
  99. package/plugins/access/email/shared/settings.js +39 -0
  100. package/plugins/access/mod.d.ts +5 -1
  101. package/plugins/access/mod.js +1 -0
  102. package/plugins/access/spaces/views/web/agents.js +16 -18
  103. package/plugins/access/spaces/views/web/header.js +22 -21
  104. package/plugins/access/spaces/views/web/invitation.js +11 -8
  105. package/plugins/access/spaces/views/web/invitations.js +3 -2
  106. package/plugins/access/spaces/views/web/invite-dialog.d.ts +2 -2
  107. package/plugins/access/spaces/views/web/invite-dialog.js +6 -5
  108. package/plugins/access/spaces/views/web/invite.js +6 -5
  109. package/plugins/access/spaces/views/web/invited.js +2 -1
  110. package/plugins/access/spaces/views/web/inviting.js +6 -3
  111. package/plugins/access/spaces/views/web/members.js +14 -11
  112. package/plugins/access/spaces/views/web/new-space.js +4 -3
  113. package/plugins/access/spaces/views/web/not-here.js +12 -16
  114. package/plugins/access/spaces/views/web/org-about.js +18 -16
  115. package/plugins/access/spaces/views/web/org-members.js +28 -22
  116. package/plugins/access/spaces/views/web/palette.js +28 -25
  117. package/plugins/access/spaces/views/web/panel.js +5 -4
  118. package/plugins/access/spaces/views/web/pending.js +7 -4
  119. package/plugins/access/spaces/views/web/pick.js +10 -6
  120. package/plugins/access/spaces/views/web/sections.js +2 -1
  121. package/plugins/access/spaces/views/web/settings.js +26 -29
  122. package/plugins/access/spaces/views/web/space.js +7 -6
  123. package/plugins/access/spaces/views/web/steps.js +19 -20
  124. package/plugins/access/spaces/views/web/tabs.js +2 -1
  125. package/plugins/access/spaces/views/web/tree.js +11 -9
  126. package/plugins/access/spaces/views/web/who.d.ts +12 -11
  127. package/plugins/access/spaces/views/web/who.js +51 -13
  128. package/plugins/access/spaces/views/web/words.d.ts +1 -0
  129. package/plugins/access/spaces/views/web/words.js +286 -0
  130. package/plugins/access/spaces/web.js +35 -7
  131. package/plugins/agents/chat/actions/import.d.ts +1 -0
  132. package/plugins/agents/chat/actions/import.js +244 -0
  133. package/plugins/agents/chat/actions/say.js +97 -14
  134. package/plugins/agents/chat/actions/send.d.ts +3 -2
  135. package/plugins/agents/chat/actions/send.js +35 -9
  136. package/plugins/agents/chat/collections/file.d.ts +18 -0
  137. package/plugins/agents/chat/collections/file.js +21 -6
  138. package/plugins/agents/chat/contract.d.ts +1 -1
  139. package/plugins/agents/chat/mod.d.ts +6 -2
  140. package/plugins/agents/chat/mod.js +8 -2
  141. package/plugins/agents/chat/processors/failed.js +7 -4
  142. package/plugins/agents/chat/routes/files.d.ts +17 -3
  143. package/plugins/agents/chat/routes/files.js +79 -17
  144. package/plugins/agents/chat/shared/agents.d.ts +8 -2
  145. package/plugins/agents/chat/shared/agents.js +11 -2
  146. package/plugins/agents/chat/views/message.d.ts +1 -1
  147. package/plugins/agents/chat/views/message.js +11 -7
  148. package/plugins/agents/chat/views/web/attach.js +12 -5
  149. package/plugins/agents/chat/views/web/chats.js +9 -6
  150. package/plugins/agents/chat/views/web/composer.js +17 -13
  151. package/plugins/agents/chat/views/web/conversation.js +6 -5
  152. package/plugins/agents/chat/views/web/download.js +2 -1
  153. package/plugins/agents/chat/views/web/header.js +8 -7
  154. package/plugins/agents/chat/views/web/home.js +11 -16
  155. package/plugins/agents/chat/views/web/listed.js +9 -7
  156. package/plugins/agents/chat/views/web/live.js +7 -6
  157. package/plugins/agents/chat/views/web/message.js +26 -13
  158. package/plugins/agents/chat/views/web/missing.js +2 -1
  159. package/plugins/agents/chat/views/web/move.js +4 -3
  160. package/plugins/agents/chat/views/web/new-thread.js +2 -1
  161. package/plugins/agents/chat/views/web/palette.js +20 -14
  162. package/plugins/agents/chat/views/web/picture.js +2 -1
  163. package/plugins/agents/chat/views/web/queued.js +3 -3
  164. package/plugins/agents/chat/views/web/recent.js +4 -3
  165. package/plugins/agents/chat/views/web/record.js +10 -12
  166. package/plugins/agents/chat/views/web/recorder.js +10 -9
  167. package/plugins/agents/chat/views/web/retrying.js +5 -4
  168. package/plugins/agents/chat/views/web/steps.js +8 -5
  169. package/plugins/agents/chat/views/web/transcript.js +3 -2
  170. package/plugins/agents/chat/views/web/voice-failed.js +2 -1
  171. package/plugins/agents/chat/views/web/voice-note.js +2 -1
  172. package/plugins/agents/chat/views/web/who.js +4 -1
  173. package/plugins/agents/chat/views/web/words.d.ts +1 -0
  174. package/plugins/agents/chat/views/web/words.js +197 -0
  175. package/plugins/agents/memory/actions/import.d.ts +1 -0
  176. package/plugins/agents/memory/actions/import.js +88 -0
  177. package/plugins/agents/memory/collections/memory.js +19 -5
  178. package/plugins/agents/memory/mod.d.ts +2 -0
  179. package/plugins/agents/memory/mod.js +5 -0
  180. package/plugins/agents/memory/views/web/card.js +10 -7
  181. package/plugins/agents/memory/views/web/list.js +12 -11
  182. package/plugins/agents/memory/views/web/memories.js +4 -3
  183. package/plugins/agents/memory/views/web/move.js +4 -3
  184. package/plugins/agents/memory/views/web/palette.js +8 -5
  185. package/plugins/agents/memory/views/web/pick.js +8 -6
  186. package/plugins/agents/memory/views/web/words.d.ts +1 -0
  187. package/plugins/agents/memory/views/web/words.js +48 -0
  188. package/plugins/agents/mod.d.ts +3 -1
  189. package/plugins/agents/mod.js +3 -1
  190. package/plugins/agents/team/views/web/agent-add.js +4 -3
  191. package/plugins/agents/team/views/web/agent-fields.js +18 -13
  192. package/plugins/agents/team/views/web/agent-known.js +9 -8
  193. package/plugins/agents/team/views/web/agent-new.js +17 -12
  194. package/plugins/agents/team/views/web/agent-palette.js +37 -34
  195. package/plugins/agents/team/views/web/agent-steps.js +12 -8
  196. package/plugins/agents/team/views/web/agent.js +46 -36
  197. package/plugins/agents/team/views/web/agents.d.ts +1 -1
  198. package/plugins/agents/team/views/web/agents.js +6 -2
  199. package/plugins/agents/team/views/web/model-picker.d.ts +35 -1
  200. package/plugins/agents/team/views/web/model-picker.js +55 -43
  201. package/plugins/agents/team/views/web/places.js +2 -7
  202. package/plugins/agents/team/views/web/words.d.ts +1 -0
  203. package/plugins/agents/team/views/web/words.js +208 -0
  204. package/plugins/agents/webtools/adapters/duckduckgo.d.ts +21 -0
  205. package/plugins/agents/webtools/adapters/duckduckgo.js +168 -0
  206. package/plugins/agents/webtools/adapters/fake.d.ts +3 -0
  207. package/plugins/agents/webtools/adapters/fake.js +8 -0
  208. package/plugins/agents/webtools/adapters/serper.d.ts +2 -0
  209. package/plugins/agents/webtools/adapters/serper.js +30 -0
  210. package/plugins/agents/webtools/contract.d.ts +72 -0
  211. package/plugins/agents/webtools/contract.js +1 -0
  212. package/plugins/agents/webtools/mod.d.ts +55 -0
  213. package/plugins/agents/webtools/mod.js +75 -0
  214. package/plugins/agents/webtools/resources/tools.d.ts +2 -0
  215. package/plugins/agents/webtools/resources/tools.js +82 -0
  216. package/plugins/agents/webtools/shared/address.d.ts +9 -0
  217. package/plugins/agents/webtools/shared/address.js +112 -0
  218. package/plugins/agents/webtools/shared/read.d.ts +11 -0
  219. package/plugins/agents/webtools/shared/read.js +129 -0
  220. package/plugins/agents/webtools/shared/search.d.ts +15 -0
  221. package/plugins/agents/webtools/shared/search.js +54 -0
  222. package/plugins/agents/webtools/shared/settings.d.ts +20 -0
  223. package/plugins/agents/webtools/shared/settings.js +21 -0
  224. package/plugins/agents/webtools/shared/text.d.ts +15 -0
  225. package/plugins/agents/webtools/shared/text.js +88 -0
  226. package/plugins/billing/credits/collections/room.d.ts +1 -1
  227. package/plugins/billing/usage/shared/categories.d.ts +2 -1
  228. package/plugins/billing/usage/shared/categories.js +1 -1
  229. package/plugins/billing/usage/shared/use.d.ts +1 -1
  230. package/plugins/billing/usage/views/web/chart.js +12 -7
  231. package/plugins/billing/usage/views/web/numbers.d.ts +3 -1
  232. package/plugins/billing/usage/views/web/numbers.js +74 -43
  233. package/plugins/billing/usage/views/web/org.d.ts +91 -0
  234. package/plugins/billing/usage/views/web/org.js +158 -118
  235. package/plugins/billing/usage/views/web/words.d.ts +1 -0
  236. package/plugins/billing/usage/views/web/words.js +173 -0
  237. package/plugins/compute/cloud/collections/cloud-computer.d.ts +1 -1
  238. package/plugins/compute/cloud/collections/pool-vm.d.ts +1 -1
  239. package/plugins/compute/computers/collections/env-var.d.ts +1 -1
  240. package/plugins/compute/computers/program/version.d.ts +1 -1
  241. package/plugins/compute/computers/program/version.js +1 -1
  242. package/plugins/compute/computers/resources/downloads.js +1 -1
  243. package/plugins/interfaces/web/actions/sending.js +6 -2
  244. package/plugins/interfaces/web/shared/codes.d.ts +3 -7
  245. package/plugins/interfaces/web/shared/codes.js +16 -10
  246. package/plugins/interfaces/web/shared/orgs.d.ts +9 -9
  247. package/plugins/interfaces/web/shared/orgs.js +27 -10
  248. package/plugins/interfaces/web/shared/panel.d.ts +0 -5
  249. package/plugins/interfaces/web/shared/panel.js +5 -1
  250. package/plugins/interfaces/web/views/console-codes.d.ts +24 -1
  251. package/plugins/interfaces/web/views/console-codes.js +29 -23
  252. package/plugins/interfaces/web/views/console.d.ts +22 -0
  253. package/plugins/interfaces/web/views/console.js +47 -51
  254. package/plugins/interfaces/web/views/default.js +2 -1
  255. package/plugins/interfaces/web/views/frame.js +13 -12
  256. package/plugins/interfaces/web/views/me.js +6 -5
  257. package/plugins/interfaces/web/views/org.js +13 -12
  258. package/plugins/interfaces/web/views/orgs.js +60 -53
  259. package/plugins/interfaces/web/views/panel.js +3 -2
  260. package/plugins/interfaces/web/views/shell.js +2 -1
  261. package/plugins/interfaces/web/views/words.d.ts +1 -0
  262. package/plugins/interfaces/web/views/words.js +228 -0
  263. package/plugins/interfaces/whatsapp/collections/phone.d.ts +1 -1
  264. package/plugins/interfaces/whatsapp/shared/media.js +3 -2
  265. package/plugins/models/actions/check.js +4 -1
  266. package/plugins/models/actions/image.d.ts +1 -0
  267. package/plugins/models/actions/image.js +46 -0
  268. package/plugins/models/adapters/image/fake.d.ts +6 -0
  269. package/plugins/models/adapters/image/fake.js +8 -0
  270. package/plugins/models/adapters/image/gemini.d.ts +2 -0
  271. package/plugins/models/adapters/image/gemini.js +111 -0
  272. package/plugins/models/adapters/image/openai.d.ts +2 -0
  273. package/plugins/models/adapters/image/openai.js +69 -0
  274. package/plugins/models/collections/image.d.ts +96 -0
  275. package/plugins/models/collections/image.js +27 -0
  276. package/plugins/models/contract.d.ts +13 -3
  277. package/plugins/models/contract.js +2 -1
  278. package/plugins/models/mod.d.ts +19 -4
  279. package/plugins/models/mod.js +30 -4
  280. package/plugins/models/resources/providers.d.ts +2 -2
  281. package/plugins/models/resources/providers.js +2 -2
  282. package/plugins/models/shared/generate.js +4 -52
  283. package/plugins/models/shared/image.d.ts +110 -0
  284. package/plugins/models/shared/image.js +171 -0
  285. package/plugins/models/shared/retry.d.ts +9 -2
  286. package/plugins/models/shared/retry.js +26 -2
  287. package/plugins/models/shared/telemetry.d.ts +4 -2
  288. package/plugins/models/shared/use.d.ts +21 -2
  289. package/plugins/models/shared/use.js +50 -0
  290. package/plugins/work/boards/actions/create-board.d.ts +1 -0
  291. package/plugins/work/boards/actions/create-board.js +47 -0
  292. package/plugins/work/boards/actions/create-card.d.ts +1 -0
  293. package/plugins/work/boards/actions/create-card.js +85 -0
  294. package/plugins/work/boards/actions/delete-board.d.ts +1 -0
  295. package/plugins/work/boards/actions/delete-board.js +30 -0
  296. package/plugins/work/boards/actions/delete-card.d.ts +1 -0
  297. package/plugins/work/boards/actions/delete-card.js +24 -0
  298. package/plugins/work/boards/actions/move-card.d.ts +1 -0
  299. package/plugins/work/boards/actions/move-card.js +85 -0
  300. package/plugins/work/boards/actions/update-board.d.ts +1 -0
  301. package/plugins/work/boards/actions/update-board.js +110 -0
  302. package/plugins/work/boards/actions/update-card.d.ts +1 -0
  303. package/plugins/work/boards/actions/update-card.js +67 -0
  304. package/plugins/work/boards/collections/board.d.ts +71 -0
  305. package/plugins/work/boards/collections/board.js +32 -0
  306. package/plugins/work/boards/collections/card.d.ts +74 -0
  307. package/plugins/work/boards/collections/card.js +29 -0
  308. package/plugins/work/boards/contract.d.ts +67 -0
  309. package/plugins/work/boards/contract.js +20 -0
  310. package/plugins/work/boards/mod.d.ts +34 -0
  311. package/plugins/work/boards/mod.js +72 -0
  312. package/plugins/work/boards/resources/tools.d.ts +2 -0
  313. package/plugins/work/boards/resources/tools.js +416 -0
  314. package/plugins/work/boards/shared/columns.d.ts +39 -0
  315. package/plugins/work/boards/shared/columns.js +88 -0
  316. package/plugins/work/boards/shared/dates.d.ts +11 -0
  317. package/plugins/work/boards/shared/dates.js +22 -0
  318. package/plugins/work/boards/shared/errors.d.ts +24 -0
  319. package/plugins/work/boards/shared/errors.js +20 -0
  320. package/plugins/work/boards/shared/fields.d.ts +65 -0
  321. package/plugins/work/boards/shared/fields.js +44 -0
  322. package/plugins/work/boards/shared/load.d.ts +22 -0
  323. package/plugins/work/boards/shared/load.js +32 -0
  324. package/plugins/work/boards/shared/order.d.ts +30 -0
  325. package/plugins/work/boards/shared/order.js +47 -0
  326. package/plugins/work/boards/shared/people.d.ts +30 -0
  327. package/plugins/work/boards/shared/people.js +87 -0
  328. package/plugins/work/boards/shared/said.d.ts +28 -0
  329. package/plugins/work/boards/shared/said.js +30 -0
  330. package/plugins/work/boards/views/web/board-head.d.ts +62 -0
  331. package/plugins/work/boards/views/web/board-head.js +170 -0
  332. package/plugins/work/boards/views/web/board-page.d.ts +17 -0
  333. package/plugins/work/boards/views/web/board-page.js +97 -0
  334. package/plugins/work/boards/views/web/board-view.d.ts +40 -0
  335. package/plugins/work/boards/views/web/board-view.js +341 -0
  336. package/plugins/work/boards/views/web/boards-tab.d.ts +13 -0
  337. package/plugins/work/boards/views/web/boards-tab.js +109 -0
  338. package/plugins/work/boards/views/web/card-sheet.d.ts +47 -0
  339. package/plugins/work/boards/views/web/card-sheet.js +314 -0
  340. package/plugins/work/boards/views/web/card-tile.d.ts +29 -0
  341. package/plugins/work/boards/views/web/card-tile.js +20 -0
  342. package/plugins/work/boards/views/web/column.d.ts +38 -0
  343. package/plugins/work/boards/views/web/column.js +171 -0
  344. package/plugins/work/boards/views/web/drag.d.ts +36 -0
  345. package/plugins/work/boards/views/web/drag.js +276 -0
  346. package/plugins/work/boards/views/web/glyphs.d.ts +29 -0
  347. package/plugins/work/boards/views/web/glyphs.js +25 -0
  348. package/plugins/work/boards/views/web/load.d.ts +32 -0
  349. package/plugins/work/boards/views/web/load.js +33 -0
  350. package/plugins/work/boards/views/web/palette.d.ts +15 -0
  351. package/plugins/work/boards/views/web/palette.js +180 -0
  352. package/plugins/work/boards/views/web/pickers.d.ts +45 -0
  353. package/plugins/work/boards/views/web/pickers.js +83 -0
  354. package/plugins/work/boards/views/web/shown.d.ts +77 -0
  355. package/plugins/work/boards/views/web/shown.js +136 -0
  356. package/plugins/work/boards/views/web/step.d.ts +13 -0
  357. package/plugins/work/boards/views/web/step.js +41 -0
  358. package/plugins/work/boards/views/web/style.d.ts +10 -0
  359. package/plugins/work/boards/views/web/style.js +380 -0
  360. package/plugins/work/boards/views/web/toolbar.d.ts +21 -0
  361. package/plugins/work/boards/views/web/toolbar.js +39 -0
  362. package/plugins/work/boards/web.d.ts +26 -0
  363. package/plugins/work/boards/web.js +52 -0
  364. package/plugins/work/documents/actions/create.d.ts +1 -0
  365. package/plugins/work/documents/actions/create.js +28 -0
  366. package/plugins/work/documents/actions/delete.d.ts +1 -0
  367. package/plugins/work/documents/actions/delete.js +32 -0
  368. package/plugins/work/documents/actions/presence.d.ts +1 -0
  369. package/plugins/work/documents/actions/presence.js +45 -0
  370. package/plugins/work/documents/actions/rename.d.ts +1 -0
  371. package/plugins/work/documents/actions/rename.js +33 -0
  372. package/plugins/work/documents/actions/restore.d.ts +1 -0
  373. package/plugins/work/documents/actions/restore.js +39 -0
  374. package/plugins/work/documents/actions/save.d.ts +1 -0
  375. package/plugins/work/documents/actions/save.js +78 -0
  376. package/plugins/work/documents/collections/document-presence.d.ts +79 -0
  377. package/plugins/work/documents/collections/document-presence.js +25 -0
  378. package/plugins/work/documents/collections/document-version.d.ts +166 -0
  379. package/plugins/work/documents/collections/document-version.js +60 -0
  380. package/plugins/work/documents/collections/document.d.ts +131 -0
  381. package/plugins/work/documents/collections/document.js +72 -0
  382. package/plugins/work/documents/contract.d.ts +17 -0
  383. package/plugins/work/documents/contract.js +1 -0
  384. package/plugins/work/documents/mod.d.ts +38 -0
  385. package/plugins/work/documents/mod.js +75 -0
  386. package/plugins/work/documents/resources/tools.d.ts +2 -0
  387. package/plugins/work/documents/resources/tools.js +255 -0
  388. package/plugins/work/documents/shared/diff.d.ts +37 -0
  389. package/plugins/work/documents/shared/diff.js +148 -0
  390. package/plugins/work/documents/shared/merge.d.ts +29 -0
  391. package/plugins/work/documents/shared/merge.js +120 -0
  392. package/plugins/work/documents/shared/presence.d.ts +7 -0
  393. package/plugins/work/documents/shared/presence.js +7 -0
  394. package/plugins/work/documents/shared/text.d.ts +36 -0
  395. package/plugins/work/documents/shared/text.js +67 -0
  396. package/plugins/work/documents/shared/who.d.ts +23 -0
  397. package/plugins/work/documents/shared/who.js +39 -0
  398. package/plugins/work/documents/shared/write.d.ts +54 -0
  399. package/plugins/work/documents/shared/write.js +123 -0
  400. package/plugins/work/documents/views/web/changes.d.ts +22 -0
  401. package/plugins/work/documents/views/web/changes.js +57 -0
  402. package/plugins/work/documents/views/web/conflict.d.ts +38 -0
  403. package/plugins/work/documents/views/web/conflict.js +96 -0
  404. package/plugins/work/documents/views/web/draft.d.ts +18 -0
  405. package/plugins/work/documents/views/web/draft.js +32 -0
  406. package/plugins/work/documents/views/web/editor.d.ts +57 -0
  407. package/plugins/work/documents/views/web/editor.js +268 -0
  408. package/plugins/work/documents/views/web/format.d.ts +56 -0
  409. package/plugins/work/documents/views/web/format.js +245 -0
  410. package/plugins/work/documents/views/web/history.d.ts +23 -0
  411. package/plugins/work/documents/views/web/history.js +118 -0
  412. package/plugins/work/documents/views/web/list.d.ts +37 -0
  413. package/plugins/work/documents/views/web/list.js +211 -0
  414. package/plugins/work/documents/views/web/page.d.ts +35 -0
  415. package/plugins/work/documents/views/web/page.js +416 -0
  416. package/plugins/work/documents/views/web/palette.d.ts +16 -0
  417. package/plugins/work/documents/views/web/palette.js +168 -0
  418. package/plugins/work/documents/views/web/people.d.ts +60 -0
  419. package/plugins/work/documents/views/web/people.js +63 -0
  420. package/plugins/work/documents/views/web/presence.d.ts +30 -0
  421. package/plugins/work/documents/views/web/presence.js +75 -0
  422. package/plugins/work/documents/views/web/step.d.ts +25 -0
  423. package/plugins/work/documents/views/web/step.js +81 -0
  424. package/plugins/work/documents/views/web/style.d.ts +7 -0
  425. package/plugins/work/documents/views/web/style.js +266 -0
  426. package/plugins/work/documents/web.d.ts +18 -0
  427. package/plugins/work/documents/web.js +46 -0
  428. package/plugins/work/mod.d.ts +3 -0
  429. package/plugins/work/mod.js +3 -0
  430. package/plugins/work/web.d.ts +10 -0
  431. package/plugins/work/web.js +10 -0
  432. package/runtime/browsers.js +2 -3
  433. package/runtime/mod.d.ts +2 -2
  434. package/runtime/mongo.d.ts +21 -4
  435. package/runtime/mongo.js +69 -0
  436. package/runtime/owner.d.ts +24 -1
  437. package/runtime/owner.js +63 -6
  438. package/runtime/store.d.ts +10 -0
  439. package/runtime/wire.d.ts +11 -0
  440. package/runtime/wire.js +17 -1
  441. package/stores/sql/postgres/lease.d.ts +55 -0
  442. package/stores/sql/postgres/lease.js +102 -0
  443. package/stores/sql/postgres/mod.d.ts +1 -0
  444. package/stores/sql/postgres/mod.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,135 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 1.0.0-rc.28 — 2026-11-07
4
+
5
+ - **A deploy hands over instead of fencing** (`serve` in `copilotz/web/node`, `lease` in
6
+ `copilotz/stores/postgres`). While a deploy moves traffic, the platform keeps the old process
7
+ running for as long as its browsers' sockets stay open, and the new process's store fenced it:
8
+ every write those browsers sent failed ("This owner was fenced"). Now one process at a time holds
9
+ the store's lease: `serve` listens first (a request is told it's starting: a 503 to retry, a page
10
+ that reloads itself), waits for the lease, then opens the app; the old process, asked for it,
11
+ stops listening (its browsers reconnect, to the new one), lets running work finish, and lets go.
12
+ Only a deploy at least as new asks (`revision`); a process that loses the lease stops. Its table
13
+ is `copilotz_lease`, in the schema it's given (`public` by default).
14
+ - **A contact's message may go to nobody** (`chat.send` with `to: []`), as a person's already could:
15
+ it's kept in the chat, its agents read it the next time they answer there (with its `tap`, as
16
+ `[tapped: <id>]`), and none answers it. It's how a page beside the chat says what the customer did
17
+ there (a trip chosen in a booking panel) without a turn for each tap. A contact still names no
18
+ agent: any other `to` goes to its chat's agents, as before. `contactSend` hooks are told
19
+ (`to: []`): a web line's visitor's message to nobody counts against its limits but holds none of
20
+ the line's budget, since no turn will be charged for it.
21
+
22
+ ## 1.0.0-rc.27 — 2026-11-06
23
+
24
+ **Upgrading.** Chat's `file.content` query is `file.about`, and answers a file without its content
25
+ (`data`). Host code that wants the content reads it as bytes, in parts:
26
+ `runtime.bytes("file", { _id }, "data", { actor })`, or serves it at `/files/<id>`. A file's content
27
+ is plain base64 (no line breaks, no `data:` prefix): `chat.send` refuses anything else.
28
+
29
+ - **Files of any size are served** (`GET /files/<id>`): a picture or a recording whose base64 passed
30
+ 1 MiB (about 750 KB) was answered as missing (404), so it showed broken. The route read the whole
31
+ file through a query, whose answer comes from an executor over Oxian in one chunk, and Oxian takes
32
+ at most 1 MiB a chunk. Now it reads what the file is (`file.about`, as whoever the request is),
33
+ then its content from the owner, as them again (`runtime.bytes`), and decodes it as the response
34
+ is read, 192 KiB at a time; a range (`206`) decodes only its part. Who reads a file is unchanged:
35
+ the request's actor, a signed link as the system, and a file out of reach is a 404 alike. A
36
+ failure that isn't about reach is now a 500, logged, not a 404.
37
+ - **`runtime.bytes(collection, filter, field, { actor })`**: a large value's bytes for trusted host
38
+ code, read by the owner itself, under the rules as `actor` (the system without one), its `size`
39
+ and `read(start, end)`, from the document or its blob (loaded once, at the first part). The blob's
40
+ reference never leaves the owner.
41
+ - **Projections:** `find` and `findOne` take `{ projection }`, as MongoDB's (`{ name: 1 }` keeps,
42
+ `{ data: 0 }` leaves out, `_id` either way; dotted paths into objects). The owner applies it
43
+ before it loads any blob: a field left out costs no blob read. Stores never see it.
44
+ - **Answers past 1 MiB go in parts:** a job's output (a query's answer, an Action's result, a
45
+ View's) and what a browser is pushed are written in parts of at most 1 MiB, Oxian's bound on a
46
+ chunk. A long history, a prompt with pictures (`thread.prompt`, `/prompt`) or a large read a
47
+ browser watches failed whole before (the executor "lost", the browser's session closed).
48
+ - **A message's files reach the prompt one read each:** `llm.message` read all of a message's files
49
+ in one answer of the owner's, which carries at most 16 MiB; pictures that together passed it
50
+ failed the turn.
51
+ - **WhatsApp links a file without reading its content:** sending a chat's file by signed link reads
52
+ only whether its recipient may see it; Meta's fetch streams the content from `/files/<id>`.
53
+ - **Every word Copilotz's web front ends show is the app's to change.** An app in another language
54
+ no longer rewrites the page as it is drawn: it gives a `words` resource
55
+ (`{ "chat.send":
56
+ "Enviar" }`), on any plugin the page runs, merged over the English in order.
57
+ Words are by key (`hosts/web/WORDS.md` lists them: the shell, chat, spaces, memory, team, usage,
58
+ the command palette, the toolkit and the host's notices), with `{blanks}` for names and numbers
59
+ and plural forms by the page's language (`{ one, other }`). Dates, times, numbers and currency
60
+ follow the page's `lang` (`webPage({ lang })`) instead of the browser's. Front ends of an app's
61
+ own use the same way: `defineWords(area, { … })` from `copilotz/web`. English is unchanged, so an
62
+ app that sets nothing looks as before. Not covered: the other front ends (billing's credits,
63
+ routines, skills, computers, apps, API keys, WhatsApp, tiers), text the server sends, and the
64
+ offline page.
65
+ - **Boards and documents are Copilotz's** (`copilotz/plugins/work`, front ends in
66
+ `copilotz/plugins/work/web`). `boards` is kanban in a space (boards with ordered columns, cards
67
+ dragged between them, owners, labels, due dates; Actions `board.*` and `card.*`; agents' tools
68
+ `list_boards`, `read_board`, `create_board`, `create_card`, `update_card`, `move_card`).
69
+ `documents` is shared Markdown in a space (every save a version, saves merged line by line or
70
+ refused as a `conflict`, restoring, presence; Actions `document.*`; agents' tools
71
+ `list_documents`, `read_document`, `write_document`, `append_document`, `edit_document`). Each has
72
+ its web front end (`boardsWeb`, `documentsWeb`). The empty Board tab's line about agents is the
73
+ app's: `resources.boardsText.agentHint`.
74
+ - **A `@word` is a mention only when it names someone.** Chat took any `@word` as a mention, so a
75
+ message with a social handle ("my profile is @ana.marca") and no agent named reached no agent. Now
76
+ a mention counts only when it names an agent, or a person in the conversation; any other `@word`
77
+ is plain text, and the message goes where it would without it (the conversation's agents, or the
78
+ space's default).
79
+ - **A failed recall never sinks a turn.** When memory recall fails at the start of a turn (the
80
+ embedder's provider refuses the key, or times out), the turn goes on without recalled memories.
81
+ The failure is logged (`memory: recall failed…`) and counted (`copilotz.memory.recall_failures`).
82
+ A failing `remember` is still a tool error the agent sees.
83
+ - **Web tools** (`webTools`, in `copilotz/plugins/agents`): agents search the web and read a page
84
+ without a computer. `web_search` `{ query, count?, language?, country? }` →
85
+ `{ title, url,
86
+ snippet }` results, through a new `search` adapter port (`duckduckgo`, the
87
+ default: its HTML page, no key, no cost, a bot challenge or empty page is a public "search is
88
+ unavailable" error; `serper`, optional; `fake`; one more adapter adds Brave or Google), and
89
+ `read_page` `{ url, start? }` → the final URL, title, main text and links, in parts, marked as
90
+ data. Reading refuses non-http(s) URLs, private, loopback, link-local and metadata addresses (the
91
+ host resolved, checked again on every redirect), other ports than 80 and 443 unless
92
+ `webTools.ports` lists them, pages over 2 MB or 15 s, and non-text types; a turn reads at most 8
93
+ pages. A search is a `search` use of the usage ledger (in the `agents` category), priced from
94
+ resources, asked of the `modelUse` listeners and the `spending` check first. The models contract
95
+ now exports `mayUse` and `used`, for uses outside model calls.
96
+ - **An agent's message with files.** `chat.say` takes `files`, and `text` may be left out when there
97
+ are files. Trusted code, such as a tool during a turn, can now post what it made without writing
98
+ chat's collections itself. Each file is one of these:
99
+ - `{ id, collection? }`: a document the caller reads that holds a file as `type` and `data`.
100
+ That's chat's own `file` by default, or another plugin's, such as the models plugin's `image`.
101
+ - `{ name, type, data }`: the file given as it is.
102
+
103
+ Each becomes a file of the chat, with its `thread` and space. People and contacts read it there as
104
+ they read people's files, and it meets the same limits: ten at most, about 10 MB each, and a media
105
+ type. Its content is the same blob, so a picture kept elsewhere isn't stored twice. The answer
106
+ adds the files' ids: `{ message, files }`. Saying it again sends nothing, files included. An
107
+ agent's own message tells it next time what it sent: `[sent: logo.png]`.
108
+
109
+ - **A refusal says why.** A turn that fails with a refusal written for people answers in that
110
+ refusal's own words, where only the codes `credits` and `budget` did before. That covers any
111
+ failure made public, including the `spending` check's refusal whatever its `why`: an app's own
112
+ reason, such as an inactive subscription, no longer needs to borrow `credits`. The `spending`
113
+ refusal is now public, so a model outside the app reads its message too. A web line's spent budget
114
+ now shows its own words ("This chat has done all it can for today…"). Every other failure still
115
+ shows people the short line, with the details in the event. Moving in from another app. Nothing
116
+ changes for an app that doesn't call these.
117
+
118
+ - **`chat.import`** (the system's: a migration) brings a conversation in as it was: its thread (the
119
+ importer's id) in a space, with its title, and its messages with who said them (a person's id or
120
+ an agent's name), to whom, what, their files (`data`, or the `id` of a document holding one:
121
+ chat's `file` by default) and when (ISO 8601 with a zone, kept to the millisecond). Nothing runs:
122
+ no turn, no transcript, nothing delivered. Importing again replaces what it made; a long
123
+ conversation comes in several calls, and the thread's summary (count, first, latest, when it last
124
+ moved) is worked out from every message it has. A thread already in another space is refused
125
+ (`chat.move` moves it). Unrecorded: the documents it writes are their own record.
126
+ - **`memory.import`** (the system's) brings memories in as they were, in a space: text, whom each is
127
+ about, who wrote it, `core`, when it was learned and last changed, under the importer's ids. Each
128
+ is embedded as it's kept (with an embedder), so recall finds it by meaning.
129
+ - **Dev sign-in reaches someone already there:** an email a person has (one who moved in under an id
130
+ of its own) signs in as them, and the id of someone there signs in as them too, both as they are
131
+ (their name isn't touched). Anyone else signs in as before.
132
+
3
133
  ## 1.0.0-rc.26 — 2026-11-06
4
134
 
5
135
  **Upgrading from rc.25.** The `hosts` resource names the app's own hosts an entry each, without the
@@ -17,6 +147,75 @@ resources: { hosts: { "app.example.com": true, "*.run.app": true } }
17
147
  `{ own: [...] }`, like every other resource: a later plugin adds a host, or takes one away with
18
148
  `null`, without restating the rest. What it does is unchanged: with the app's hosts named, any
19
149
  other host is answered only by routes that take it. `HostsSettings` is `Record<string, true>`.
150
+ - **Email sign-in** (`emailSignIn`, in `copilotz/plugins/access`, with identity and `email`): people
151
+ sign in with an email and a password. Nothing changes for apps that don't add it.
152
+ - **Flows,** each an unrecorded Action behind a route, those that end signed in answering with
153
+ identity's `signedIn`: `email.sign-up` (a six-digit code by email, the password waiting for it)
154
+ and `email.verify` (the person made, and a session); `email.sign-in`, refused with `unverified`
155
+ (and a new code sent) until the address is confirmed; `email.forgot` (the same answer for any
156
+ address) and `email.reset` (the password set, the person's other sessions ended);
157
+ `email.invite`, trusted code's (a webhook after a purchase: the person, answered at once, and a
158
+ link that works once for a day, `/#email-invite=<token>`), `email.invitation` and `email.accept`
159
+ (the password chosen, signed in); and `email.import`, the system's, which keeps another app's
160
+ password hashes as they are, for a migration, with the person ids the importer chooses. Routes:
161
+ `GET /signin/email` (it's here; `signUp`), `POST /signin/email`, and `/signin/email/sign-up`,
162
+ `verify`, `forgot`, `reset`, `invitation`, `accept`; a refusal answers `{ error, code }`.
163
+ - **Passwords:** legacy hashes (`"<saltHex>:<hashHex>"`, PBKDF2-HMAC-SHA256 at 100,000, as
164
+ Copilotz 0.x apps kept them) verify as stored and are hashed again at the next sign-in; new ones
165
+ are `pbkdf2-sha256$6x100000$<salt>$<hash>` (PBKDF2 in six stages of 100,000, each salted with
166
+ the stage before: workerd refuses more than 100,000 in one call), on WebCrypto, compared in
167
+ constant time, in a private field (`email_login.hash`) no event or actor's read holds.
168
+ - **Codes and links** are kept only as HMACs under the `links` secret (still matching under its
169
+ `previous` while it changes), used once; codes last 15 minutes and five wrong tries. A stranger
170
+ signing up first with someone's address can't choose their password: each code confirms the
171
+ password its sign-up came with. Messages to an address (5 an hour), tries at it (10 in 15
172
+ minutes) and one caller's asks (30, by the `caller` resource or the socket's address) are
173
+ limited (`too_many`), the same whether or not the address has an account (`emailSignIn.limits`).
174
+ What's past goes every ten minutes (`email.prune`).
175
+ - **Its words** are the `emailSignIn` resource's `messages` (`verify`, `reset`, `invite`,
176
+ `exists`), English unless the app gives its own; `app` names the app in them (the `links`
177
+ origin's host unless said). It needs the `links` resource (`{ origin, secret }`) to start.
178
+ - **`email`, the app's email port:** `email.send` `{ to, subject, text, html? }` (trusted code's,
179
+ unrecorded) through the adapter the `email` resource names: `resend` (Resend's API, through
180
+ `ctx.fetch`, with its `apiKey` and `from`) or `console` (each message in the log, for a laptop;
181
+ refused where the `links` origin is public). `EmailAdapter` and the settings' types are in its
182
+ contract.
183
+ - **The sign-in page offers email** when `GET /signin/email` says it's there: sign in, create an
184
+ account, the code (sent on once typed or pasted; a new one every 30 seconds), a new password by
185
+ code, and arriving by an invitation's link to choose a password. Signing in by name moves under
186
+ it, a click away. The toolkit has an `eye-off` icon. The example web app takes `EMAIL=1` (and
187
+ `EMAIL_INVITE=<address>`) to try it, its messages in the terminal.
188
+ - **The sign-in page is the app's, in every word** (the `signInPage` resource of the browser's
189
+ plugins, merged over Copilotz's as the theme is): `words` patch its phrases one by one by key
190
+ (`SIGN_IN_WORDS` in `copilotz/web`: every heading, label, placeholder, button, hint and refusal of
191
+ Google's, email's and dev sign-in's screens, refusals said by their code, never in the server's
192
+ words); `about`, the panel beside the form (a headline, its quieter end, points with icons), is
193
+ given whole (no Copilotz pitch stays beside an app's own), and `null` leaves the form alone. Its
194
+ logo is the theme's and its name the page's title, as before; an app that says nothing shows
195
+ Copilotz's words and pitch, as before. Google's button speaks `page.lang`. New in `copilotz/web`:
196
+ `SIGN_IN_WORDS`, `COPILOTZ_ABOUT`, `signInPageOf` and the `SignInPage`, `SignInWords`,
197
+ `SignInAbout` and `SignInPoint` types.
198
+ - **Image generation** in `models`: `image.generate`
199
+ `{ model, prompt, references?, count?, aspectRatio?, size?, tags? }` answers
200
+ `{ images: [{ id, type, size }], text, usage }`. The images are kept in the `image` collection, a
201
+ document each, with the content as a blob, and the answer names them by id. A reference is an
202
+ image made here (`{ id }`), a document the caller may read that holds a file as `type` and `data`
203
+ (`{ id, collection: "file" }`, read as the caller), or inline data (`{ data, type }`, or a data
204
+ URL). Models are chosen as `llm`'s are: an alias, settings around one, or a list tried in order.
205
+ Adapters go under `adapters.image`: `gemini` (`generateContent` with `responseModalities`; `count`
206
+ images are that many calls, made together), `openai` (`/images/generations`, or `/images/edits`
207
+ with references), and `fake` (`"fake/image"`).
208
+ - **Metered like every model call.** The org's own key comes first. `modelUse` listeners and the
209
+ `spending` check go before the call. Its tokens are told to the ledger after, with meter
210
+ `image`, priced from the catalog as `llm`'s are, and counted under agents. The provider's
211
+ `silence` and `retry` apply.
212
+ - **Refusals are final.** A model whose safety rules say no fails `image_refused`, and no other
213
+ model is asked. One that makes nothing fails `no_image` once the list is spent. Both are public
214
+ messages: an agent's tool tells its model why.
215
+ - **Recorded, unlike the other ports' Actions.** It writes what it made, so a job that runs again
216
+ finds the call done and doesn't pay twice. `models.check` takes `port: "image"`.
217
+ - `keyed` and `mayRun` (the org's own key, and the spending check) moved from the llm port to
218
+ `shared/use.ts`, so every port that spends asks the same way. Nothing changes for `llm`.
20
219
 
21
220
  ## 1.0.0-rc.25 — 2026-11-06
22
221