copilotz 1.0.0-rc.26 → 1.0.0-rc.27

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