copilotz 1.0.0-rc.32 → 1.0.0-rc.34

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 (385) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +123 -131
  3. package/package.json +29 -9
  4. package/plugins/access/contract.d.ts +14 -0
  5. package/plugins/access/contract.js +12 -0
  6. package/plugins/access/mod.d.ts +5 -4
  7. package/plugins/access/mod.js +0 -1
  8. package/plugins/access/spaces/views/web/org-about.js +3 -3
  9. package/plugins/access/spaces/views/web/spaces.js +1 -1
  10. package/plugins/access/spaces/views/web/tree.d.ts +5 -1
  11. package/plugins/access/spaces/views/web/tree.js +10 -6
  12. package/plugins/access/spaces/views/web/who.d.ts +12 -9
  13. package/plugins/access/web.d.ts +0 -1
  14. package/plugins/access/web.js +0 -2
  15. package/plugins/agents/chat/views/web/words.d.ts +1 -1
  16. package/plugins/agents/contract.d.ts +12 -0
  17. package/plugins/agents/contract.js +12 -0
  18. package/plugins/agents/memory/views/web/words.d.ts +1 -1
  19. package/plugins/agents/mod.d.ts +7 -9
  20. package/plugins/agents/mod.js +7 -9
  21. package/plugins/agents/web.d.ts +0 -2
  22. package/plugins/agents/web.js +0 -2
  23. package/plugins/billing/mod.d.ts +6 -8
  24. package/plugins/billing/mod.js +6 -7
  25. package/plugins/billing/usage/views/web/words.d.ts +1 -1
  26. package/plugins/billing/web.d.ts +1 -2
  27. package/plugins/billing/web.js +1 -2
  28. package/plugins/compute/cloud/collections/cloud-computer.d.ts +1 -1
  29. package/plugins/compute/computers/program/version.d.ts +1 -1
  30. package/plugins/compute/computers/program/version.js +1 -1
  31. package/plugins/compute/computers/resources/downloads.js +1 -1
  32. package/plugins/compute/contract.d.ts +9 -0
  33. package/plugins/compute/contract.js +9 -0
  34. package/plugins/interfaces/contract.d.ts +16 -0
  35. package/plugins/interfaces/contract.js +14 -0
  36. package/plugins/interfaces/web/contract.d.ts +10 -5
  37. package/plugins/interfaces/web/contract.js +2 -1
  38. package/plugins/interfaces/web/mod.d.ts +12 -12
  39. package/plugins/interfaces/web/mod.js +11 -15
  40. package/plugins/interfaces/web/shared/orgs.d.ts +61 -60
  41. package/plugins/interfaces/web/shared/orgs.js +14 -33
  42. package/plugins/interfaces/web/shared/standing.js +4 -3
  43. package/plugins/interfaces/web/shared/style.d.ts +3 -4
  44. package/plugins/interfaces/web/shared/style.js +3 -192
  45. package/plugins/interfaces/web/views/frame.d.ts +16 -6
  46. package/plugins/interfaces/web/views/frame.js +20 -26
  47. package/plugins/interfaces/web/views/me.d.ts +5 -13
  48. package/plugins/interfaces/web/views/me.js +9 -19
  49. package/plugins/interfaces/web/views/shell.d.ts +3 -1
  50. package/plugins/interfaces/web/views/shell.js +14 -1
  51. package/plugins/interfaces/web/views/words.d.ts +1 -1
  52. package/plugins/interfaces/web/views/words.js +2 -185
  53. package/runtime/describe.d.ts +315 -0
  54. package/runtime/describe.js +590 -0
  55. package/runtime/runtimes.d.ts +1 -1
  56. package/testing/mod.d.ts +13 -1
  57. package/testing/mod.js +28 -2
  58. package/testing/words.d.ts +18 -0
  59. package/testing/words.js +60 -0
  60. package/plugins/access/directory/actions/code.d.ts +0 -4
  61. package/plugins/access/directory/actions/code.js +0 -135
  62. package/plugins/access/directory/actions/host.d.ts +0 -2
  63. package/plugins/access/directory/actions/host.js +0 -55
  64. package/plugins/access/directory/actions/invite.d.ts +0 -5
  65. package/plugins/access/directory/actions/invite.js +0 -129
  66. package/plugins/access/directory/actions/org.d.ts +0 -10
  67. package/plugins/access/directory/actions/org.js +0 -273
  68. package/plugins/access/directory/collections/credit-code.d.ts +0 -114
  69. package/plugins/access/directory/collections/credit-code.js +0 -28
  70. package/plugins/access/directory/collections/invite.d.ts +0 -81
  71. package/plugins/access/directory/collections/invite.js +0 -20
  72. package/plugins/access/directory/collections/membership.d.ts +0 -72
  73. package/plugins/access/directory/collections/membership.js +0 -22
  74. package/plugins/access/directory/collections/org-host.d.ts +0 -62
  75. package/plugins/access/directory/collections/org-host.js +0 -30
  76. package/plugins/access/directory/collections/org.d.ts +0 -141
  77. package/plugins/access/directory/collections/org.js +0 -58
  78. package/plugins/access/directory/collections/staff.d.ts +0 -42
  79. package/plugins/access/directory/collections/staff.js +0 -12
  80. package/plugins/access/directory/contract.d.ts +0 -8
  81. package/plugins/access/directory/contract.js +0 -8
  82. package/plugins/access/directory/mod.d.ts +0 -64
  83. package/plugins/access/directory/mod.js +0 -119
  84. package/plugins/access/directory/routes/console.d.ts +0 -26
  85. package/plugins/access/directory/routes/console.js +0 -129
  86. package/plugins/access/directory/routes/enter.d.ts +0 -18
  87. package/plugins/access/directory/routes/enter.js +0 -47
  88. package/plugins/access/directory/routes/forward.d.ts +0 -35
  89. package/plugins/access/directory/routes/forward.js +0 -119
  90. package/plugins/access/directory/routes/orgs.d.ts +0 -25
  91. package/plugins/access/directory/routes/orgs.js +0 -113
  92. package/plugins/access/directory/routes/signout.d.ts +0 -11
  93. package/plugins/access/directory/routes/signout.js +0 -36
  94. package/plugins/access/directory/shared/enter.d.ts +0 -36
  95. package/plugins/access/directory/shared/enter.js +0 -82
  96. package/plugins/access/directory/shared/http.d.ts +0 -42
  97. package/plugins/access/directory/shared/http.js +0 -77
  98. package/plugins/access/directory/shared/member.d.ts +0 -21
  99. package/plugins/access/directory/shared/member.js +0 -73
  100. package/plugins/access/directory/shared/settings.d.ts +0 -53
  101. package/plugins/access/directory/shared/settings.js +0 -16
  102. package/plugins/access/directory/shared/state.d.ts +0 -74
  103. package/plugins/access/directory/shared/state.js +0 -101
  104. package/plugins/access/directory/web.d.ts +0 -148
  105. package/plugins/access/directory/web.js +0 -248
  106. package/plugins/access/directory/words.d.ts +0 -1
  107. package/plugins/access/directory/words.js +0 -6
  108. package/plugins/agents/team/actions/agent.d.ts +0 -4
  109. package/plugins/agents/team/actions/agent.js +0 -179
  110. package/plugins/agents/team/actions/define.d.ts +0 -1
  111. package/plugins/agents/team/actions/define.js +0 -27
  112. package/plugins/agents/team/collections/agent.d.ts +0 -132
  113. package/plugins/agents/team/collections/agent.js +0 -75
  114. package/plugins/agents/team/contract.d.ts +0 -10
  115. package/plugins/agents/team/contract.js +0 -1
  116. package/plugins/agents/team/mod.d.ts +0 -21
  117. package/plugins/agents/team/mod.js +0 -49
  118. package/plugins/agents/team/shared/definition.d.ts +0 -3
  119. package/plugins/agents/team/shared/definition.js +0 -10
  120. package/plugins/agents/team/views/web/agent-add.d.ts +0 -14
  121. package/plugins/agents/team/views/web/agent-add.js +0 -48
  122. package/plugins/agents/team/views/web/agent-fields.d.ts +0 -33
  123. package/plugins/agents/team/views/web/agent-fields.js +0 -88
  124. package/plugins/agents/team/views/web/agent-known.d.ts +0 -22
  125. package/plugins/agents/team/views/web/agent-known.js +0 -61
  126. package/plugins/agents/team/views/web/agent-new.d.ts +0 -24
  127. package/plugins/agents/team/views/web/agent-new.js +0 -129
  128. package/plugins/agents/team/views/web/agent-palette.d.ts +0 -19
  129. package/plugins/agents/team/views/web/agent-palette.js +0 -203
  130. package/plugins/agents/team/views/web/agent-steps.d.ts +0 -23
  131. package/plugins/agents/team/views/web/agent-steps.js +0 -56
  132. package/plugins/agents/team/views/web/agent.d.ts +0 -17
  133. package/plugins/agents/team/views/web/agent.js +0 -257
  134. package/plugins/agents/team/views/web/agents.d.ts +0 -48
  135. package/plugins/agents/team/views/web/agents.js +0 -59
  136. package/plugins/agents/team/views/web/model-pick.d.ts +0 -25
  137. package/plugins/agents/team/views/web/model-pick.js +0 -39
  138. package/plugins/agents/team/views/web/model-picker.d.ts +0 -57
  139. package/plugins/agents/team/views/web/model-picker.js +0 -218
  140. package/plugins/agents/team/views/web/places.d.ts +0 -24
  141. package/plugins/agents/team/views/web/places.js +0 -10
  142. package/plugins/agents/team/views/web/style.d.ts +0 -9
  143. package/plugins/agents/team/views/web/style.js +0 -246
  144. package/plugins/agents/team/views/web/words.d.ts +0 -1
  145. package/plugins/agents/team/views/web/words.js +0 -208
  146. package/plugins/agents/team/web.d.ts +0 -22
  147. package/plugins/agents/team/web.js +0 -41
  148. package/plugins/agents/tiers/actions/choose.d.ts +0 -2
  149. package/plugins/agents/tiers/actions/choose.js +0 -98
  150. package/plugins/agents/tiers/actions/model.d.ts +0 -1
  151. package/plugins/agents/tiers/actions/model.js +0 -36
  152. package/plugins/agents/tiers/collections/choice.d.ts +0 -48
  153. package/plugins/agents/tiers/collections/choice.js +0 -59
  154. package/plugins/agents/tiers/contract.d.ts +0 -19
  155. package/plugins/agents/tiers/contract.js +0 -1
  156. package/plugins/agents/tiers/mod.d.ts +0 -54
  157. package/plugins/agents/tiers/mod.js +0 -92
  158. package/plugins/agents/tiers/shared/shown.d.ts +0 -87
  159. package/plugins/agents/tiers/shared/shown.js +0 -155
  160. package/plugins/agents/tiers/shared/tiers.d.ts +0 -103
  161. package/plugins/agents/tiers/shared/tiers.js +0 -129
  162. package/plugins/agents/tiers/views/web/org.d.ts +0 -38
  163. package/plugins/agents/tiers/views/web/org.js +0 -142
  164. package/plugins/agents/tiers/views/web/space.d.ts +0 -43
  165. package/plugins/agents/tiers/views/web/space.js +0 -103
  166. package/plugins/agents/tiers/views/web/style.d.ts +0 -7
  167. package/plugins/agents/tiers/views/web/style.js +0 -87
  168. package/plugins/agents/tiers/views/web/words.d.ts +0 -21
  169. package/plugins/agents/tiers/views/web/words.js +0 -49
  170. package/plugins/agents/tiers/web.d.ts +0 -18
  171. package/plugins/agents/tiers/web.js +0 -40
  172. package/plugins/billing/credits/actions/check.d.ts +0 -5
  173. package/plugins/billing/credits/actions/check.js +0 -97
  174. package/plugins/billing/credits/actions/manage.d.ts +0 -9
  175. package/plugins/billing/credits/actions/manage.js +0 -266
  176. package/plugins/billing/credits/actions/state.d.ts +0 -2
  177. package/plugins/billing/credits/actions/state.js +0 -172
  178. package/plugins/billing/credits/collections/credit.d.ts +0 -110
  179. package/plugins/billing/credits/collections/credit.js +0 -31
  180. package/plugins/billing/credits/collections/payment.d.ts +0 -139
  181. package/plugins/billing/credits/collections/payment.js +0 -32
  182. package/plugins/billing/credits/collections/plan.d.ts +0 -428
  183. package/plugins/billing/credits/collections/plan.js +0 -97
  184. package/plugins/billing/credits/collections/room.d.ts +0 -85
  185. package/plugins/billing/credits/collections/room.js +0 -24
  186. package/plugins/billing/credits/contract.d.ts +0 -19
  187. package/plugins/billing/credits/contract.js +0 -12
  188. package/plugins/billing/credits/mod.d.ts +0 -38
  189. package/plugins/billing/credits/mod.js +0 -72
  190. package/plugins/billing/credits/shared/apply.d.ts +0 -66
  191. package/plugins/billing/credits/shared/apply.js +0 -106
  192. package/plugins/billing/credits/shared/settings.d.ts +0 -70
  193. package/plugins/billing/credits/shared/settings.js +0 -28
  194. package/plugins/billing/credits/shared/standing.d.ts +0 -71
  195. package/plugins/billing/credits/shared/standing.js +0 -235
  196. package/plugins/billing/credits/shared/walk.d.ts +0 -50
  197. package/plugins/billing/credits/shared/walk.js +0 -127
  198. package/plugins/billing/credits/views/web/add.d.ts +0 -25
  199. package/plugins/billing/credits/views/web/add.js +0 -92
  200. package/plugins/billing/credits/views/web/budget.d.ts +0 -16
  201. package/plugins/billing/credits/views/web/budget.js +0 -62
  202. package/plugins/billing/credits/views/web/composer.d.ts +0 -13
  203. package/plugins/billing/credits/views/web/composer.js +0 -65
  204. package/plugins/billing/credits/views/web/history.d.ts +0 -12
  205. package/plugins/billing/credits/views/web/history.js +0 -55
  206. package/plugins/billing/credits/views/web/numbers.d.ts +0 -256
  207. package/plugins/billing/credits/views/web/numbers.js +0 -291
  208. package/plugins/billing/credits/views/web/org.d.ts +0 -31
  209. package/plugins/billing/credits/views/web/org.js +0 -238
  210. package/plugins/billing/credits/views/web/plan.d.ts +0 -28
  211. package/plugins/billing/credits/views/web/plan.js +0 -84
  212. package/plugins/billing/credits/views/web/staff.d.ts +0 -20
  213. package/plugins/billing/credits/views/web/staff.js +0 -265
  214. package/plugins/billing/credits/views/web/style.d.ts +0 -9
  215. package/plugins/billing/credits/views/web/style.js +0 -190
  216. package/plugins/billing/credits/views/web/types.d.ts +0 -17
  217. package/plugins/billing/credits/views/web/types.js +0 -32
  218. package/plugins/billing/credits/web.d.ts +0 -12
  219. package/plugins/billing/credits/web.js +0 -33
  220. package/plugins/billing/stripe/actions/checkout.d.ts +0 -4
  221. package/plugins/billing/stripe/actions/checkout.js +0 -188
  222. package/plugins/billing/stripe/actions/fact.d.ts +0 -1
  223. package/plugins/billing/stripe/actions/fact.js +0 -39
  224. package/plugins/billing/stripe/mod.d.ts +0 -30
  225. package/plugins/billing/stripe/mod.js +0 -52
  226. package/plugins/billing/stripe/routes/webhook.d.ts +0 -16
  227. package/plugins/billing/stripe/routes/webhook.js +0 -56
  228. package/plugins/billing/stripe/shared/api.d.ts +0 -14
  229. package/plugins/billing/stripe/shared/api.js +0 -42
  230. package/plugins/billing/stripe/shared/events.d.ts +0 -42
  231. package/plugins/billing/stripe/shared/events.js +0 -226
  232. package/plugins/billing/stripe/shared/settings.d.ts +0 -39
  233. package/plugins/billing/stripe/shared/settings.js +0 -10
  234. package/plugins/interfaces/web/shared/codes.d.ts +0 -27
  235. package/plugins/interfaces/web/shared/codes.js +0 -50
  236. package/plugins/interfaces/web/views/console-codes.d.ts +0 -37
  237. package/plugins/interfaces/web/views/console-codes.js +0 -166
  238. package/plugins/interfaces/web/views/console.d.ts +0 -37
  239. package/plugins/interfaces/web/views/console.js +0 -223
  240. package/plugins/interfaces/web/views/org.d.ts +0 -12
  241. package/plugins/interfaces/web/views/org.js +0 -62
  242. package/plugins/interfaces/web/views/orgs.d.ts +0 -45
  243. package/plugins/interfaces/web/views/orgs.js +0 -274
  244. package/plugins/work/boards/actions/create-board.d.ts +0 -1
  245. package/plugins/work/boards/actions/create-board.js +0 -47
  246. package/plugins/work/boards/actions/create-card.d.ts +0 -1
  247. package/plugins/work/boards/actions/create-card.js +0 -83
  248. package/plugins/work/boards/actions/delete-board.d.ts +0 -1
  249. package/plugins/work/boards/actions/delete-board.js +0 -30
  250. package/plugins/work/boards/actions/delete-card.d.ts +0 -1
  251. package/plugins/work/boards/actions/delete-card.js +0 -24
  252. package/plugins/work/boards/actions/move-card.d.ts +0 -1
  253. package/plugins/work/boards/actions/move-card.js +0 -85
  254. package/plugins/work/boards/actions/update-board.d.ts +0 -1
  255. package/plugins/work/boards/actions/update-board.js +0 -110
  256. package/plugins/work/boards/actions/update-card.d.ts +0 -1
  257. package/plugins/work/boards/actions/update-card.js +0 -67
  258. package/plugins/work/boards/collections/board.d.ts +0 -71
  259. package/plugins/work/boards/collections/board.js +0 -32
  260. package/plugins/work/boards/collections/card.d.ts +0 -74
  261. package/plugins/work/boards/collections/card.js +0 -29
  262. package/plugins/work/boards/contract.d.ts +0 -67
  263. package/plugins/work/boards/contract.js +0 -20
  264. package/plugins/work/boards/mod.d.ts +0 -34
  265. package/plugins/work/boards/mod.js +0 -72
  266. package/plugins/work/boards/resources/tools.d.ts +0 -2
  267. package/plugins/work/boards/resources/tools.js +0 -414
  268. package/plugins/work/boards/shared/columns.d.ts +0 -39
  269. package/plugins/work/boards/shared/columns.js +0 -88
  270. package/plugins/work/boards/shared/dates.d.ts +0 -11
  271. package/plugins/work/boards/shared/dates.js +0 -22
  272. package/plugins/work/boards/shared/errors.d.ts +0 -24
  273. package/plugins/work/boards/shared/errors.js +0 -20
  274. package/plugins/work/boards/shared/fields.d.ts +0 -65
  275. package/plugins/work/boards/shared/fields.js +0 -44
  276. package/plugins/work/boards/shared/load.d.ts +0 -22
  277. package/plugins/work/boards/shared/load.js +0 -32
  278. package/plugins/work/boards/shared/order.d.ts +0 -30
  279. package/plugins/work/boards/shared/order.js +0 -47
  280. package/plugins/work/boards/shared/people.d.ts +0 -30
  281. package/plugins/work/boards/shared/people.js +0 -87
  282. package/plugins/work/boards/shared/said.d.ts +0 -28
  283. package/plugins/work/boards/shared/said.js +0 -30
  284. package/plugins/work/boards/views/web/board-head.d.ts +0 -62
  285. package/plugins/work/boards/views/web/board-head.js +0 -170
  286. package/plugins/work/boards/views/web/board-page.d.ts +0 -17
  287. package/plugins/work/boards/views/web/board-page.js +0 -97
  288. package/plugins/work/boards/views/web/board-view.d.ts +0 -40
  289. package/plugins/work/boards/views/web/board-view.js +0 -341
  290. package/plugins/work/boards/views/web/boards-tab.d.ts +0 -13
  291. package/plugins/work/boards/views/web/boards-tab.js +0 -109
  292. package/plugins/work/boards/views/web/card-sheet.d.ts +0 -47
  293. package/plugins/work/boards/views/web/card-sheet.js +0 -314
  294. package/plugins/work/boards/views/web/card-tile.d.ts +0 -29
  295. package/plugins/work/boards/views/web/card-tile.js +0 -20
  296. package/plugins/work/boards/views/web/column.d.ts +0 -38
  297. package/plugins/work/boards/views/web/column.js +0 -171
  298. package/plugins/work/boards/views/web/drag.d.ts +0 -36
  299. package/plugins/work/boards/views/web/drag.js +0 -276
  300. package/plugins/work/boards/views/web/glyphs.d.ts +0 -29
  301. package/plugins/work/boards/views/web/glyphs.js +0 -25
  302. package/plugins/work/boards/views/web/load.d.ts +0 -32
  303. package/plugins/work/boards/views/web/load.js +0 -33
  304. package/plugins/work/boards/views/web/palette.d.ts +0 -15
  305. package/plugins/work/boards/views/web/palette.js +0 -180
  306. package/plugins/work/boards/views/web/pickers.d.ts +0 -45
  307. package/plugins/work/boards/views/web/pickers.js +0 -83
  308. package/plugins/work/boards/views/web/shown.d.ts +0 -77
  309. package/plugins/work/boards/views/web/shown.js +0 -136
  310. package/plugins/work/boards/views/web/step.d.ts +0 -13
  311. package/plugins/work/boards/views/web/step.js +0 -41
  312. package/plugins/work/boards/views/web/style.d.ts +0 -10
  313. package/plugins/work/boards/views/web/style.js +0 -380
  314. package/plugins/work/boards/views/web/toolbar.d.ts +0 -21
  315. package/plugins/work/boards/views/web/toolbar.js +0 -39
  316. package/plugins/work/boards/web.d.ts +0 -26
  317. package/plugins/work/boards/web.js +0 -52
  318. package/plugins/work/documents/actions/create.d.ts +0 -1
  319. package/plugins/work/documents/actions/create.js +0 -28
  320. package/plugins/work/documents/actions/delete.d.ts +0 -1
  321. package/plugins/work/documents/actions/delete.js +0 -32
  322. package/plugins/work/documents/actions/presence.d.ts +0 -1
  323. package/plugins/work/documents/actions/presence.js +0 -45
  324. package/plugins/work/documents/actions/rename.d.ts +0 -1
  325. package/plugins/work/documents/actions/rename.js +0 -33
  326. package/plugins/work/documents/actions/restore.d.ts +0 -1
  327. package/plugins/work/documents/actions/restore.js +0 -39
  328. package/plugins/work/documents/actions/save.d.ts +0 -1
  329. package/plugins/work/documents/actions/save.js +0 -78
  330. package/plugins/work/documents/collections/document-presence.d.ts +0 -79
  331. package/plugins/work/documents/collections/document-presence.js +0 -25
  332. package/plugins/work/documents/collections/document-version.d.ts +0 -166
  333. package/plugins/work/documents/collections/document-version.js +0 -60
  334. package/plugins/work/documents/collections/document.d.ts +0 -131
  335. package/plugins/work/documents/collections/document.js +0 -72
  336. package/plugins/work/documents/contract.d.ts +0 -17
  337. package/plugins/work/documents/contract.js +0 -1
  338. package/plugins/work/documents/mod.d.ts +0 -38
  339. package/plugins/work/documents/mod.js +0 -75
  340. package/plugins/work/documents/resources/tools.d.ts +0 -2
  341. package/plugins/work/documents/resources/tools.js +0 -253
  342. package/plugins/work/documents/shared/diff.d.ts +0 -37
  343. package/plugins/work/documents/shared/diff.js +0 -148
  344. package/plugins/work/documents/shared/merge.d.ts +0 -29
  345. package/plugins/work/documents/shared/merge.js +0 -120
  346. package/plugins/work/documents/shared/presence.d.ts +0 -7
  347. package/plugins/work/documents/shared/presence.js +0 -7
  348. package/plugins/work/documents/shared/text.d.ts +0 -36
  349. package/plugins/work/documents/shared/text.js +0 -67
  350. package/plugins/work/documents/shared/who.d.ts +0 -23
  351. package/plugins/work/documents/shared/who.js +0 -39
  352. package/plugins/work/documents/shared/write.d.ts +0 -54
  353. package/plugins/work/documents/shared/write.js +0 -123
  354. package/plugins/work/documents/views/web/changes.d.ts +0 -22
  355. package/plugins/work/documents/views/web/changes.js +0 -57
  356. package/plugins/work/documents/views/web/conflict.d.ts +0 -38
  357. package/plugins/work/documents/views/web/conflict.js +0 -96
  358. package/plugins/work/documents/views/web/draft.d.ts +0 -18
  359. package/plugins/work/documents/views/web/draft.js +0 -32
  360. package/plugins/work/documents/views/web/editor.d.ts +0 -57
  361. package/plugins/work/documents/views/web/editor.js +0 -268
  362. package/plugins/work/documents/views/web/format.d.ts +0 -56
  363. package/plugins/work/documents/views/web/format.js +0 -245
  364. package/plugins/work/documents/views/web/history.d.ts +0 -23
  365. package/plugins/work/documents/views/web/history.js +0 -118
  366. package/plugins/work/documents/views/web/list.d.ts +0 -37
  367. package/plugins/work/documents/views/web/list.js +0 -211
  368. package/plugins/work/documents/views/web/page.d.ts +0 -35
  369. package/plugins/work/documents/views/web/page.js +0 -416
  370. package/plugins/work/documents/views/web/palette.d.ts +0 -16
  371. package/plugins/work/documents/views/web/palette.js +0 -168
  372. package/plugins/work/documents/views/web/people.d.ts +0 -60
  373. package/plugins/work/documents/views/web/people.js +0 -63
  374. package/plugins/work/documents/views/web/presence.d.ts +0 -30
  375. package/plugins/work/documents/views/web/presence.js +0 -75
  376. package/plugins/work/documents/views/web/step.d.ts +0 -25
  377. package/plugins/work/documents/views/web/step.js +0 -81
  378. package/plugins/work/documents/views/web/style.d.ts +0 -7
  379. package/plugins/work/documents/views/web/style.js +0 -266
  380. package/plugins/work/documents/web.d.ts +0 -18
  381. package/plugins/work/documents/web.js +0 -46
  382. package/plugins/work/mod.d.ts +0 -3
  383. package/plugins/work/mod.js +0 -3
  384. package/plugins/work/web.d.ts +0 -10
  385. package/plugins/work/web.js +0 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,58 @@
1
+ ## 1.0.0-rc.34 — 2026-11-09
2
+
3
+ rc.33, released whole. rc.33's publish stopped before npm: packing its tarballs, npm took `dist/npm`
4
+ for a GitHub repository. JSR has `@copilotz/copilotz@1.0.0-rc.33`, and nothing else has rc.33. This
5
+ release is rc.33's code, with the publish workflow's paths starting with `./`. Upgrading from rc.32
6
+ is as rc.33 says, below, with each version 1.0.0-rc.34.
7
+
8
+ ## 1.0.0-rc.33 — 2026-11-09
9
+
10
+ **Upgrading.** Copilotz's product plugins are packages of their own, released with it at its version
11
+ ([design](design/plugins.md)). Their names (collections, Actions, events, Views, routes, resources)
12
+ are as they were, so an app's data stays as it is: only its imports change.
13
+
14
+ - `copilotz/plugins/work` → `@copilotz/work`, and `copilotz/plugins/work/web` →
15
+ `@copilotz/work/web`.
16
+ - `copilotz/plugins/access`'s `directory` (with `Operations`, `OrgInfo`…) → `@copilotz/directory`;
17
+ the directory's browser half in `copilotz/plugins/access/web` (`useOrgs`, `enterOrg`,
18
+ `refreshOrgs`…) → `@copilotz/directory/web` (or `@copilotz/directory/contract`).
19
+ - `copilotz/plugins/billing`'s `credits`, `stripe` and `stripeWebhook` → `@copilotz/billing`, and
20
+ `creditsWeb` → `@copilotz/billing/web`. `usage` stays in `copilotz/plugins/billing`.
21
+ - `copilotz/plugins/agents`'s `team` and `tiers` → `@copilotz/team`, and `teamWeb`, `tiersWeb` →
22
+ `@copilotz/team/web`.
23
+ - An app serving many orgs adds `directoryWeb` (from `@copilotz/directory/web`) to its page: the web
24
+ shell has no org switcher, org page or console of its own any more. Their words keep their keys
25
+ (`shell.<key>`).
26
+ - On Deno, name each in the import map at Copilotz's version
27
+ (`"@copilotz/work": "jsr:@copilotz/work@<version>"`); on npm, install it beside `copilotz` at the
28
+ same version, or, until npm has it, from the release's tarball.
29
+
30
+ ```ts
31
+ import { boards, documents } from "@copilotz/work"; // was copilotz/plugins/work
32
+ import { directoryWeb } from "@copilotz/directory/web";
33
+
34
+ await web({ plugins: [webShell, chatWeb, spacesWeb, directoryWeb, boardsWeb], root });
35
+ ```
36
+
37
+ - **Product packages** ([design](design/plugins.md)): `@copilotz/work` (boards, documents),
38
+ `@copilotz/directory` (many orgs behind one address), `@copilotz/billing` (credits, Stripe) and
39
+ `@copilotz/team` (agents people make, model tiers), each in `packages/<name>` with its `mod.ts`,
40
+ `web.tsx`, `contract.ts`, tests and README, on JSR and npm. They import Copilotz by its entry
41
+ points alone, as an outside plugin would; the core imports none of them, its tests neither.
42
+ - **The web shell knows no orgs.** Its `orgs` slot (a resource) takes a switcher View, an overlay
43
+ View and a hook for what the menu and palette list; `directoryWeb` fills it. The person's standing
44
+ in the org is spaces' `org.me` (`useStanding`, in the shell's contract), which spaces' sidebar and
45
+ credits' note read; renaming the org says so (`orgsChanged()`).
46
+ - **The core's contracts are entry points:** `copilotz/plugins/<theme>/contract` (access, agents,
47
+ models, interfaces, compute), each theme's plugins' `contract.ts` together.
48
+ - **Testing:** `copilotz/testing/words` (`pseudoWords`, `englishLeft`, `wordsList`) and `openTo`
49
+ (what a kind of caller is let into of some plugins), for packages' tests as for Copilotz's.
50
+ - **Releases:** `npm run build` builds Copilotz and every package; the smoke test installs them all
51
+ together from their tarballs and uses a plugin of each; a release attaches every tarball to its
52
+ GitHub release before publishing, and publishes the packages after Copilotz, each on its own (one
53
+ a registry doesn't have yet is skipped, with a notice). `node scripts/version.ts <version>` says a
54
+ version everywhere, in lockstep.
55
+
1
56
  ## 1.0.0-rc.32 — 2026-11-09
2
57
 
3
58
  **Upgrading.** `people` now lets in an agent working for a person, and an Action's `allow` is asked
package/README.md CHANGED
@@ -22,10 +22,13 @@ bun add copilotz # Bun
22
22
  deno add jsr:@copilotz/copilotz # Deno (or `deno add npm:copilotz`)
23
23
  ```
24
24
 
25
- On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.32"`),
25
+ On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.34"`),
26
26
  and the imports below are the same everywhere. Some pieces need a package of their own, installed
27
27
  beside it: `esbuild` to bundle the page's code on Node (`bundle`), `@electric-sql/pglite` for
28
- PostgreSQL in the process, and `@types/react` for the front ends' types.
28
+ PostgreSQL in the process, and `@types/react` for the front ends' types. A product's plugins are
29
+ packages of their own too, at Copilotz's version (`npm install @copilotz/work`,
30
+ `deno add
31
+ jsr:@copilotz/work`): see "Product packages" below.
29
32
 
30
33
  ## A first app
31
34
 
@@ -96,83 +99,67 @@ events. Time is a caller too: schedules call Actions (see Schedules).
96
99
 
97
100
  The package's entry points, the same names on npm (`copilotz/…`) and JSR (`@copilotz/copilotz/…`):
98
101
 
99
- | Import | What it has |
100
- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
101
- | `copilotz` | the runtime: `createRuntime`, `definePlugin`, `defineAction`, `runtimes`, `connect` (the client)… |
102
- | `copilotz/stores/memory` | `memoryStore()`: in memory, the reference |
103
- | `copilotz/stores/sqlite` | `sqliteStore({ path })`: `node:sqlite` or `bun:sqlite`, one file |
104
- | `copilotz/stores/postgres` | `postgresStore({ url, schema, tenant })` (a server, or PGlite in the process), `postgresPool`, `copyTenant`… |
105
- | `copilotz/stores/latency` | `withLatency(store, ms)`: a store with round trips, to measure |
106
- | `copilotz/blobs/files` | `fileBlobs({ dir })`: blobs as files |
107
- | `copilotz/blobs/http` | `httpBlobs({ url, headers })`: blobs in a bucket (S3, GCS, R2…) |
108
- | `copilotz/blobs/gcs` | `gcsBlobs({ bucket, prefix })`: blobs in a Google Cloud Storage bucket, as the instance's service account |
109
- | `copilotz/plugins/models` | `models`: llm, embeddings, transcription, the models.dev catalog |
110
- | `copilotz/plugins/agents` | `chat`, `history`, `memory`, `memoryExtraction`, `team`, `skills`, `routines`, `tiers`, `openapi`, `webTools`, `tool` |
111
- | `copilotz/plugins/agents/web` | their web front ends: `chatWeb`, `teamWeb`, `memoryWeb`, `skillsWeb`, `routinesWeb`, `tiersWeb` |
112
- | `copilotz/plugins/agents/terminal` | their terminal front ends: `chatTerminal`, `memoryTerminal` |
113
- | `copilotz/plugins/access` | `access` (`spaces`, `identity`, `contacts`), `accounts`, `directory`, `googleSignIn`, `devSignIn` |
114
- | `copilotz/plugins/access/web` | `spacesWeb`, `accountsWeb`, `contactsWeb`, and the directory's browser half (`useOrgs`, `enterOrg`…) |
115
- | `copilotz/plugins/access/terminal` | `accessTerminal` |
116
- | `copilotz/plugins/billing` | `usage` (the ledger), `credits`, `stripe`, `stripeWebhook` |
117
- | `copilotz/plugins/billing/web` | `usageWeb` |
118
- | `copilotz/plugins/billing/terminal` | `usageTerminal` |
119
- | `copilotz/plugins/compute` | `computers`: people's computers, where agents work |
120
- | `copilotz/plugins/compute/web` | `computersWeb` |
121
- | `copilotz/plugins/compute/terminal` | `computersTerminal` |
122
- | `copilotz/plugins/compute/downloads` | `computerDownloads`: the computer program's release, served by the app (Node) |
123
- | `copilotz/plugins/interfaces` | `terminalPlugin` (the terminal's data), `api`, `whatsapp`, `voice`, `mcp`, `webLines` (site chats), `maintenance` |
124
- | `copilotz/plugins/interfaces/web` | `webShell` (the web's root View), `apiWeb`, `whatsappWeb` |
125
- | `copilotz/plugins/interfaces/terminal` | `terminalShell`: the terminal's root View |
126
- | `copilotz/web` | the web host in the browser (`web`), its toolkit (`Button`, `Markdown`…), what a widget asks (`display`…) |
127
- | `copilotz/web/server` | its server half: `webPage` (the page, as a plugin), `widgetsOf` |
128
- | `copilotz/web/widget` | the widget host: an app's web Views inside an outside assistant (`widget`, MCP Apps, ChatGPT) |
129
- | `copilotz/web/theme` | `themeOf(plugins)`: the app's theme, for the page's first paint |
130
- | `copilotz/web/node` | `listen` (serves `runtime.fetch` on Node and Bun, sockets included), `bundle` (the browser's code, with esbuild) |
131
- | `copilotz/terminal` | the terminal host: `terminal({ runtime, me })`, and its toolkit |
132
- | `copilotz/exporters` | `otlp`, `exposition`: metrics out, the OpenTelemetry way |
133
- | `copilotz/testing` | one test API for Deno, Node and Bun (`test`, `tempDir`, `serve`, `testWho`, `ticketFor`…) |
134
- | Import | What it has |
135
- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
136
- | `copilotz` | the runtime: `createRuntime`, `definePlugin`, `defineAction`, `runtimes`, `connect` (the client)… |
137
- | `copilotz/stores/memory` | `memoryStore()`: in memory, the reference |
138
- | `copilotz/stores/sqlite` | `sqliteStore({ path })`: `node:sqlite` or `bun:sqlite`, one file |
139
- | `copilotz/stores/postgres` | `postgresStore({ url, schema, tenant })` (a server, or PGlite in the process), `postgresPool`, `copyTenant`… |
140
- | `copilotz/stores/latency` | `withLatency(store, ms)`: a store with round trips, to measure |
141
- | `copilotz/blobs/files` | `fileBlobs({ dir })`: blobs as files |
142
- | `copilotz/blobs/http` | `httpBlobs({ url, headers })`: blobs in a bucket (S3, GCS, R2…) |
143
- | `copilotz/blobs/gcs` | `gcsBlobs({ bucket, prefix })`: blobs in a Google Cloud Storage bucket, as the instance's service account |
144
- | `copilotz/plugins/models` | `models`: llm, embeddings, transcription, image, the models.dev catalog |
145
- | `copilotz/plugins/agents` | `chat`, `history`, `memory`, `memoryExtraction`, `team`, `skills`, `routines`, `tiers`, `openapi`, `tool` |
146
- | `copilotz/plugins/agents/web` | their web front ends: `chatWeb`, `teamWeb`, `memoryWeb`, `skillsWeb`, `routinesWeb`, `tiersWeb` |
147
- | `copilotz/plugins/agents/terminal` | their terminal front ends: `chatTerminal`, `memoryTerminal` |
148
- | `copilotz/plugins/access` | `access`, `accounts`, `directory`, `email`, `googleSignIn`, `emailSignIn`, `devSignIn` |
149
- | `copilotz/plugins/access/web` | `spacesWeb`, `accountsWeb`, `contactsWeb`, and the directory's browser half (`useOrgs`, `enterOrg`…) |
150
- | `copilotz/plugins/access/terminal` | `accessTerminal` |
151
- | `copilotz/plugins/billing` | `usage` (the ledger), `credits`, `stripe`, `stripeWebhook` |
152
- | `copilotz/plugins/billing/web` | `usageWeb` |
153
- | `copilotz/plugins/billing/terminal` | `usageTerminal` |
154
- | `copilotz/plugins/compute` | `computers`: people's computers, where agents work |
155
- | `copilotz/plugins/compute/web` | `computersWeb` |
156
- | `copilotz/plugins/compute/terminal` | `computersTerminal` |
157
- | `copilotz/plugins/compute/downloads` | `computerDownloads`: the computer program's release, served by the app (Node) |
158
- | `copilotz/plugins/work` | `boards` (kanban), `documents` (shared Markdown with versions and merges) |
159
- | `copilotz/plugins/work/web` | `boardsWeb`, `documentsWeb` |
160
- | `copilotz/plugins/interfaces` | `terminalPlugin` (the terminal's data), `api`, `whatsapp`, `voice`, `mcp`, `webLines` (site chats), `maintenance` |
161
- | `copilotz/plugins/interfaces/web` | `webShell` (the web's root View), `apiWeb`, `whatsappWeb` |
162
- | `copilotz/plugins/interfaces/terminal` | `terminalShell`: the terminal's root View |
163
- | `copilotz/web` | the web host in the browser (`web`), its toolkit (`Button`, `Markdown`…), what a widget asks (`display`…) |
164
- | `copilotz/web/server` | its server half: `webPage` (the page, as a plugin), `widgetsOf` |
165
- | `copilotz/web/widget` | the widget host: an app's web Views inside an outside assistant (`widget`, MCP Apps, ChatGPT) |
166
- | `copilotz/web/theme` | `themeOf(plugins)`: the app's theme, for the page's first paint |
167
- | `copilotz/web/node` | `listen` (serves `runtime.fetch` on Node and Bun, sockets included), `bundle` (the browser's code, with esbuild) |
168
- | `copilotz/terminal` | the terminal host: `terminal({ runtime, me })`, and its toolkit |
169
- | `copilotz/exporters` | `otlp`, `exposition`: metrics out, the OpenTelemetry way |
170
- | `copilotz/testing` | one test API for Deno, Node and Bun (`test`, `tempDir`, `serve`, `testWho`, `ticketFor`…) |
102
+ | Import | What it has |
103
+ | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
104
+ | `copilotz` | the runtime: `createRuntime`, `definePlugin`, `defineAction`, `runtimes`, `connect` (the client)… |
105
+ | `copilotz/stores/memory` | `memoryStore()`: in memory, the reference |
106
+ | `copilotz/stores/sqlite` | `sqliteStore({ path })`: `node:sqlite` or `bun:sqlite`, one file |
107
+ | `copilotz/stores/postgres` | `postgresStore({ url, schema, tenant })` (a server, or PGlite in the process), `postgresPool`, `copyTenant`… |
108
+ | `copilotz/stores/latency` | `withLatency(store, ms)`: a store with round trips, to measure |
109
+ | `copilotz/blobs/files` | `fileBlobs({ dir })`: blobs as files |
110
+ | `copilotz/blobs/http` | `httpBlobs({ url, headers })`: blobs in a bucket (S3, GCS, R2…) |
111
+ | `copilotz/blobs/gcs` | `gcsBlobs({ bucket, prefix })`: blobs in a Google Cloud Storage bucket, as the instance's service account |
112
+ | `copilotz/plugins/models` | `models`: llm, embeddings, transcription, image, the models.dev catalog |
113
+ | `copilotz/plugins/agents` | `chat`, `history`, `memory`, `memoryExtraction`, `skills`, `routines`, `openapi`, `webTools`, `tool` |
114
+ | `copilotz/plugins/agents/web` | their web front ends: `chatWeb`, `memoryWeb`, `skillsWeb`, `routinesWeb` |
115
+ | `copilotz/plugins/agents/terminal` | their terminal front ends: `chatTerminal`, `memoryTerminal` |
116
+ | `copilotz/plugins/access` | `access` (`spaces`, `identity`, `contacts`), `accounts`, `email`, `googleSignIn`, `emailSignIn`, `devSignIn` |
117
+ | `copilotz/plugins/access/web` | `spacesWeb`, `accountsWeb`, `contactsWeb` |
118
+ | `copilotz/plugins/access/terminal` | `accessTerminal` |
119
+ | `copilotz/plugins/billing` | `usage`: the ledger, and the port an app's pricing plugs into (`spending`) |
120
+ | `copilotz/plugins/billing/web` | `usageWeb` |
121
+ | `copilotz/plugins/billing/terminal` | `usageTerminal` |
122
+ | `copilotz/plugins/compute` | `computers`: people's computers, where agents work; `cloud`, `apps` |
123
+ | `copilotz/plugins/compute/web` | `computersWeb`, `cloudWeb`, `appsWeb` |
124
+ | `copilotz/plugins/compute/terminal` | `computersTerminal` |
125
+ | `copilotz/plugins/compute/downloads` | `computerDownloads`: the computer program's release, served by the app (Node) |
126
+ | `copilotz/plugins/interfaces` | `terminalPlugin` (the terminal's data), `api`, `whatsapp`, `voice`, `mcp`, `webLines` (site chats), `maintenance` |
127
+ | `copilotz/plugins/interfaces/web` | `webShell` (the web's root View), `apiWeb`, `whatsappWeb` |
128
+ | `copilotz/plugins/interfaces/terminal` | `terminalShell`: the terminal's root View |
129
+ | `copilotz/plugins/<theme>/contract` | each theme's plugins' contracts (`access`, `agents`, `models`, `interfaces`, `compute`): shapes, and the little code with them, for plugins built on them |
130
+ | `copilotz/web` | the web host in the browser (`web`), its toolkit (`Button`, `Markdown`…), what a widget asks (`display`…) |
131
+ | `copilotz/web/server` | its server half: `webPage` (the page, as a plugin), `widgetsOf` |
132
+ | `copilotz/web/widget` | the widget host: an app's web Views inside an outside assistant (`widget`, MCP Apps, ChatGPT) |
133
+ | `copilotz/web/theme` | `themeOf(plugins)`: the app's theme, for the page's first paint |
134
+ | `copilotz/web/node` | `listen` (serves `runtime.fetch` on Node and Bun, sockets included), `bundle` (the browser's code, with esbuild) |
135
+ | `copilotz/terminal` | the terminal host: `terminal({ runtime, me })`, and its toolkit |
136
+ | `copilotz/exporters` | `otlp`, `exposition`: metrics out, the OpenTelemetry way |
137
+ | `copilotz/testing` | one test API for Deno, Node and Bun (`test`, `tempDir`, `serve`, `testWho`, `ticketFor`, `openTo`…) |
138
+ | `copilotz/testing/words` | testing a front end's words (`pseudoWords`, `englishLeft`), and listing them (`wordsList`) |
171
139
 
172
140
  The browser loads only `copilotz/web`, the `…/web` front ends and what they import; every other
173
141
  entry point is for the process that runs the runtime (or the terminal). The npm package is
174
142
  JavaScript with its types beside it, so an app's bundler takes the front ends as they are.
175
143
 
144
+ ### Product packages
145
+
146
+ What a product does its own way, rather than what every app needs, is a package of its own, in this
147
+ repo (`packages/`) and released with Copilotz at its version (see
148
+ [design/plugins.md](design/plugins.md)). Each has the same entry points, `mod.ts` (its plugins),
149
+ `/web` (their front ends) and `/contract` (their shapes, for plugins built on them), the same names
150
+ on npm and JSR:
151
+
152
+ | Package | What it has |
153
+ | --------------------- | ------------------------------------------------------------------------------------------------------------ |
154
+ | `@copilotz/work` | `boards` (kanban) and `documents` (shared Markdown with versions and merges); `boardsWeb`, `documentsWeb` |
155
+ | `@copilotz/directory` | `directory`: many orgs behind one address; `directoryWeb`, the org switcher, the org's page, staff's console |
156
+ | `@copilotz/billing` | `credits` (plans, credits, budgets), `stripe`, `stripeWebhook`; `creditsWeb` |
157
+ | `@copilotz/team` | `team` (agents people make), `tiers` (the models an org's agents think with); `teamWeb`, `tiersWeb` |
158
+
159
+ They import Copilotz by its entry points alone, so they're built as an app's own plugins would be;
160
+ their collections, Actions, events, Views and resources are named as they were when they were
161
+ Copilotz's, so an app's data stays as it is.
162
+
176
163
  ## Serve it on the web
177
164
 
178
165
  The runtime answers HTTP itself. `runtime.fetch(request)` is a fetch handler: a function from a
@@ -309,12 +296,12 @@ process.once("SIGTERM", async () => {
309
296
  // browser.tsx
310
297
  import { web } from "copilotz/web";
311
298
  import { webShell } from "copilotz/plugins/interfaces/web";
312
- import { chatWeb, memoryWeb, teamWeb } from "copilotz/plugins/agents/web";
299
+ import { chatWeb, memoryWeb } from "copilotz/plugins/agents/web";
313
300
  import { spacesWeb } from "copilotz/plugins/access/web";
314
301
 
315
302
  await web({
316
303
  root: document.getElementById("app")!,
317
- plugins: [webShell, chatWeb, spacesWeb, teamWeb, memoryWeb],
304
+ plugins: [webShell, chatWeb, spacesWeb, memoryWeb],
318
305
  start: async (client) => ({
319
306
  space: (await client.call<{ space: string }>("space.personal", {})).space,
320
307
  }),
@@ -399,18 +386,20 @@ and take its tickets from `/connect` with `ticketFor(runtime, actor)`.
399
386
 
400
387
  ### Many orgs behind one address
401
388
 
402
- The directory (`directory`, see [design/tenancy.md](design/tenancy.md)) is a runtime of its own: it
403
- signs people in and knows their orgs. Each org is a runtime of its own too, opened when first used
404
- and closed when idle, by a pool of runtimes (`runtimes`, from `copilotz`). The directory's `fetch`
405
- is the whole app: its routes answer its own paths (`/orgs`, signing in and out, staff's console) and
406
- forward everything else, untouched and sockets included, to the org's `runtime.fetch`: by address
407
- (`/o/<org>/…`), by the browser's `org` cookie, or by a host the org claimed. URLs and cookie names
408
- are the same as with one runtime, kept apart per org by `directory.member`:
389
+ The directory (`directory`, from `@copilotz/directory`, see [design/tenancy.md](design/tenancy.md))
390
+ is a runtime of its own: it signs people in and knows their orgs. Each org is a runtime of its own
391
+ too, opened when first used and closed when idle, by a pool of runtimes (`runtimes`, from
392
+ `copilotz`). The directory's `fetch` is the whole app: its routes answer its own paths (`/orgs`,
393
+ signing in and out, staff's console) and forward everything else, untouched and sockets included, to
394
+ the org's `runtime.fetch`: by address (`/o/<org>/…`), by the browser's `org` cookie, or by a host
395
+ the org claimed. URLs and cookie names are the same as with one runtime, kept apart per org by
396
+ `directory.member`:
409
397
 
410
398
  ```ts
411
399
  import { createRuntime, definePlugin, type Runtime, runtimes } from "copilotz";
412
400
  import { memoryStore } from "copilotz/stores/memory";
413
- import { devSignIn, directory, identity, type OrgInfo } from "copilotz/plugins/access";
401
+ import { devSignIn, identity } from "copilotz/plugins/access";
402
+ import { directory, type OrgInfo } from "@copilotz/directory";
414
403
  import { webPage } from "copilotz/web/server";
415
404
  import { themeOf } from "copilotz/web/theme";
416
405
  import { bundle, listen } from "copilotz/web/node";
@@ -456,9 +445,12 @@ Each org's runtime gets from `directory.member` which org it is (`resources.org`
456
445
  rest), and the directory's hooks (invitations, leaving, renaming). Name the app's own hosts
457
446
  (`hosts: { "app.example.com": true }`) and any other host is an org's claimed one, answered by its
458
447
  host routes alone. Whatever has one address for every org lives in the directory's runtime: Stripe's
459
- webhook (`stripeWebhook`, with the `stripe` resource's `orgs`), the cloud pool's socket. The whole
460
- example is `examples/web-node/orgs.ts` (in memory), and `examples/terminal-agent/orgs.ts` on Deno
461
- (each org a tenant of one Postgres schema, with staff's operations).
448
+ webhook (`stripeWebhook`, `@copilotz/billing`'s, with the `stripe` resource's `orgs`), the cloud
449
+ pool's socket. In the browser, the page adds `directoryWeb` (from `@copilotz/directory/web`): it
450
+ fills the web shell's `orgs` slot with the org switcher, and draws the org's page and staff's
451
+ console; without it, the shell has none. The whole example is `examples/web-node/orgs.ts` (in
452
+ memory), and `examples/terminal-agent/orgs.ts` on Deno (each org a tenant of one Postgres schema,
453
+ with staff's operations).
462
454
 
463
455
  ### Visitors
464
456
 
@@ -632,7 +624,7 @@ and an app serves it from there by default:
632
624
  import { computerDownloads } from "copilotz/plugins/compute/downloads";
633
625
 
634
626
  plugins: [...plugins, await computerDownloads()], // this Copilotz's release
635
- plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.32" })], // its own: /computer/download/
627
+ plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.34" })], // its own: /computer/download/
636
628
  plugins: [...plugins, await computerDownloads({ url: "https://downloads.example.com/computer/" })], // or elsewhere
637
629
  ```
638
630
 
@@ -867,8 +859,6 @@ name, never by importing its code.
867
859
  - **Moving in:** `memory.import` (the system's) brings memories from another app as they were, in
868
860
  a space: what each says, whom it's about, who wrote it and when, under the importer's ids
869
861
  (importing again replaces them). Each is embedded as it's kept, so recall finds it by meaning.
870
- - **`team`**: agents people make in a space, beside the app's, each a member of the spaces it works
871
- in, with a page of its own on the web.
872
862
  - **`skills`**: know-how an agent reads only when a task calls for it (a SKILL.md: a name, when it's
873
863
  for, instructions, files beside). The app's are a `skills` resource; a space's managers make their
874
864
  own. Each turn lists the names and purposes of the skills an agent has there, and `read_skill`
@@ -876,11 +866,6 @@ name, never by importing its code.
876
866
  - **`routines`**: a message sent to an agent on a schedule, in a space ("every weekday at 9:00, ask
877
867
  @researcher for the news"), as whoever made it, reaching only what they reach; each run's chat and
878
868
  outcome are kept. Agents make them from a conversation too (`schedule_routine`).
879
- - **`tiers`**: which models the app's agents think with, named by what the work needs (Everyday,
880
- Expert…): the app declares each tier's model for each agent; an org chooses one, a space can
881
- choose another, and either can pick a model for one agent, the tier's list kept behind it. Kept by
882
- name, so retuning a tier moves everyone on it; while an org hasn't chosen, its plan's tier
883
- applies. Each tier shows what a typical reply comes to at the org's prices.
884
869
  - **`openapi`**: an HTTP API's operations, from its OpenAPI 3 spec, as Actions and tools:
885
870
  `openapi({ name: "trips", spec })` is a plugin with, for each operation, a recorded Action
886
871
  (`trips.getTrip`: a turn tried again gets the call it already made back, not a second one) and a
@@ -987,11 +972,6 @@ name, never by importing its code.
987
972
  the plugin's Actions read, renewed before they run out. The provider sends the person back to its
988
973
  route (`GET /accounts/callback/<provider>`), which calls `account.callback` with plain data
989
974
  (`{ provider, code, state }`) as the session's person.
990
- - **`directory`**: for an app serving many orgs (see "Many orgs behind one address" and
991
- [design/tenancy.md](design/tenancy.md)): who signs in, which orgs each belongs to, invitations to
992
- orgs, where each org lives, and platform staff. It runs in a runtime of its own, whose routes
993
- forward each request to its org's runtime; `directory.member(dir, org)` is what each org's runtime
994
- gets of it.
995
975
 
996
976
  **`billing/`**: what was used, what it cost, what to charge.
997
977
 
@@ -1035,9 +1015,9 @@ name, never by importing its code.
1035
1015
  named by the plugin that owns it, in the `usageNames` resource kind
1036
1016
  (`{ tag: "tags.app", collection: "app", field: "name" }`); a tag nobody names shows as its id.
1037
1017
  - **On the web** (`usageWeb`): an org's Usage page: the billing month's spend against the budget
1038
- and credits left (from the credits plugin, when it's there) and the same point last month; a
1039
- daily chart and a ranked list by kind, space, person, agent or model, whose rows filter the
1040
- page; and activity. Staff see cost and margin in place.
1018
+ and credits left (from `@copilotz/billing`'s credits, when it's there) and the same point last
1019
+ month; a daily chart and a ranked list by kind, space, person, agent or model, whose rows filter
1020
+ the page; and activity. Staff see cost and margin in place.
1041
1021
 
1042
1022
  **`compute/`**: **`computers`**, machines people connect (the computer program in
1043
1023
  `computers/program/`, a worker of the plugin's `computer` kind) and their desks, one per space
@@ -1048,19 +1028,24 @@ shared into another space, every member's agents use it too (it runs their comma
1048
1028
  that machine: share one you mean to). Commands, jobs and writes wait for a yes, from the person the
1049
1029
  agent works for (or, if its owner says so, from the owner).
1050
1030
 
1051
- **`work/`**: **`boards`** and **`documents`**, what a space's people and agents make together. Both
1052
- live in spaces (read where the space is read, changed where it's written), change only through their
1053
- Actions, and give agents tools wherever a conversation is in a space. Boards are kanban: columns in
1054
- order (a new one starts with Backlog, To do, Doing, Blocked, In review and Done), cards dragged
1055
- within and across them, owners, labels and due dates; the tools are `list_boards`, `read_board`,
1056
- `create_board`, `create_card`, `update_card` and `move_card`. Documents are Markdown where every
1057
- save is a version (who, what, when), a save that started from an old version is merged line by line
1058
- or refused as a `conflict` for the person to settle, an old version comes back as a new one, and who
1059
- has one open is live; the tools are `list_documents`, `read_document`, `write_document`,
1060
- `append_document` and `edit_document`. Their front ends (`boardsWeb`, `documentsWeb`) add a Board
1061
- and a Documents tab to a space, a page for each, palette entries and cards for the tools' calls in a
1062
- chat. The app words the one line about agents on an empty Board tab
1063
- (`boardsText: { agentHint: "…" }`, a resource).
1031
+ **`packages/`**: the product plugins, each a package of its own with its own README (see "Product
1032
+ packages" above):
1033
+
1034
+ - **`@copilotz/work`**: `boards` (kanban: columns, cards, owners, labels, due dates) and `documents`
1035
+ (Markdown where every save is a version, merged line by line when two edit at once), what a
1036
+ space's people and agents make together, with tools for agents and a tab each on a space's page.
1037
+ - **`@copilotz/directory`**: for an app serving many orgs (see "Many orgs behind one address" and
1038
+ [design/tenancy.md](design/tenancy.md)): who signs in, which orgs each belongs to, invitations to
1039
+ orgs, where each org lives, and platform staff, in a runtime of its own whose routes forward each
1040
+ request to its org's; `directory.member(dir, org)` is what each org's runtime gets of it. Its
1041
+ front end fills the web shell's `orgs` slot.
1042
+ - **`@copilotz/billing`**: `credits` (what an org has to spend, on the usage ledger: plans, credits,
1043
+ budgets, and the `spending` check that stops it at its limit) and `stripe` (paying by Stripe's
1044
+ Checkout and portal, what was paid landing by a signed webhook).
1045
+ - **`@copilotz/team`**: `team` (agents people make in a space, beside the app's, each a member of
1046
+ the spaces it works in, with a page of its own on the web) and `tiers` (which models the app's
1047
+ agents think with, named by what the work needs, chosen by the org and its spaces, its plan's tier
1048
+ while it hasn't).
1064
1049
 
1065
1050
  **`interfaces/`**: how people reach the runtime. The terminal's data (`terminalPlugin`: where each
1066
1051
  person is, what their commands printed) and its shell (`terminalShell`), and the web shell
@@ -1665,7 +1650,7 @@ Copilotz runs on Node (first), Deno and Bun, and is built for Cloudflare Workers
1665
1650
  call Actions from their handlers (`ctx.call`, `ctx.emit`).
1666
1651
  - **A feature's front end is its own:** chat, memory and usage each have a `terminal.ts`
1667
1652
  (`chatTerminal`…) with their terminal Views and commands, added only where the terminal draws;
1668
- chat, team, memory, spaces and computers a `web.tsx` (`chatWeb`…), loaded only by the browser. The
1653
+ chat, memory, spaces and computers a `web.tsx` (`chatWeb`…), loaded only by the browser. The
1669
1654
  features themselves (in every process) stay free of UI code.
1670
1655
  - **The terminal** (`plugins/interfaces/terminal`) is built from the same primitives. Its data
1671
1656
  (`terminalPlugin`, every process): where each person is (`shell`, changed by `shell.set`) and what
@@ -1698,11 +1683,12 @@ Copilotz runs on Node (first), Deno and Bun, and is built for Cloudflare Workers
1698
1683
  or from the app itself (`page.assets`: `{ "/assets/fonts/brand.css": bytes, … }`, served under
1699
1684
  `/assets/` only, by exact path, with known types, `nosniff` and caching).
1700
1685
  - **Words** (`hosts/web/words.ts`): every word the web front ends show (the shell, chat, spaces,
1701
- memory, team, usage, the command palette, the toolkit and the host's own notices) is English by
1702
- key, and an app changes any of them with a `words` resource on any plugin the page runs. Keys are
1703
- `area.key` (`chat.send`); the full list, with the English, is `hosts/web/WORDS.md`. Resources
1704
- merge in order like every resource (a later plugin's win; `null` takes an override back out), and
1705
- a key the app leaves out stays English, so an app that sets nothing looks as before.
1686
+ memory, usage, the command palette, the toolkit and the host's own notices) is English by key, and
1687
+ an app changes any of them with a `words` resource on any plugin the page runs. Keys are
1688
+ `area.key` (`chat.send`); the full list, with the English, is `hosts/web/WORDS.md`, and each
1689
+ product package's is its WORDS.md (`packages/team/WORDS.md`…). Resources merge in order like every
1690
+ resource (a later plugin's win; `null` takes an override back out), and a key the app leaves out
1691
+ stays English, so an app that sets nothing looks as before.
1706
1692
  - **Blanks** are `{name}`, filled where the phrase shows; one nothing fills stays as written.
1707
1693
  - **Plurals** are an object by the language's plural categories (`one`, `few`, `many`, `other`…),
1708
1694
  chosen by the `{count}` blank with the page's language (`Intl.PluralRules`).
@@ -1801,25 +1787,28 @@ exporters/ where measurements go: the Exporter port's implementations (OTLP
1801
1787
  plugins/ the features, by theme
1802
1788
  models/ one plugin: llm, embeddings, transcription, image; shared/ (providers, model
1803
1789
  choice, models.dev catalog)
1804
- agents/ chat, history, memory, team, skills, routines, tiers
1790
+ agents/ chat, history, memory, skills, routines, openapi, web tools
1805
1791
  billing/ usage (the ledger)
1806
- access/ spaces (members, reach, rules), identity, Google sign-in, connected accounts, the
1807
- directory of orgs
1792
+ access/ spaces (members, reach, rules, org roles), identity, contacts, sign-in (Google,
1793
+ email, dev), connected accounts
1808
1794
  compute/ computers: desks per space, agents' tools, approvals; program/, the computer program
1809
- work/ boards (kanban) and documents (versioned Markdown), with their front ends
1810
1795
  interfaces/ terminal (where each person is, the shell View), web (the web shell), the developer
1811
1796
  API, WhatsApp, voice (phone calls), MCP and maintenance; features'
1812
1797
  own front ends live with them (chat/terminal.ts, chat/web.tsx…), gathered by theme
1798
+ packages/ the product plugins, each a package of its own (`@copilotz/<name>`: deno.json,
1799
+ package.json, mod.ts, web.tsx, contract.ts, README, tests): work (boards, documents),
1800
+ directory (many orgs), billing (credits, Stripe), team (team, tiers)
1813
1801
  hosts/ the places the app is used in: terminal (the Ink host and its toolkit); web (the
1814
1802
  React host in the browser: theme/, the tokens and their defaults, Copilotz's look
1815
1803
  and logo, and its fonts and icon, as data the server serves; toolkit/, the
1816
1804
  components; the sign-in page; its server half, the page as a plugin and the app's
1817
1805
  assets; and node/, listening and bundling on Node)
1818
1806
  testing/ one test API for Deno, Node and Bun; the layers' import rules (boundaries.test.ts);
1819
- plugins' CSS keeps to the theme (styles.test.ts)
1807
+ plugins' CSS keeps to the theme (styles.test.ts); one version everywhere
1808
+ (versions.test.ts)
1820
1809
  design/ agreed designs
1821
- scripts/ catalog (refreshes the models.dev snapshot); npm/ (builds the npm package, and
1822
- smoke-tests it installed)
1810
+ scripts/ catalog (refreshes the models.dev snapshot); npm/ (builds the npm packages, and
1811
+ smoke-tests them installed together); version.ts (a release's version, everywhere)
1823
1812
  examples/ terminal-agent (an app: its plugins and resources, run in the terminal host, or in a
1824
1813
  browser: web.ts serves it on Deno, harbor.tsx and brands.ts the same app as another
1825
1814
  brand, gallery.tsx the logo, type and toolkit, orgs.ts many orgs on Postgres);
@@ -1830,8 +1819,9 @@ examples/ terminal-agent (an app: its plugins and resources, run in the te
1830
1819
  Each layer imports only what it may (`testing/boundaries.test.ts` fails otherwise): the runtime
1831
1820
  nothing outside it; stores, exporters and hosts the runtime; a plugin the runtime, the hosts'
1832
1821
  toolkits (the web's through `hosts/web/mod.ts` only), its own files and other plugins'
1833
- `contract.ts`. A **host** runs the app in a place (the web, the terminal) and uses the runtime's
1834
- public API only; a **shell** is that place's root View (`web.shell`, `terminal.shell`), a plugin; a
1822
+ `contract.ts`; a package Copilotz's entry points and other packages' contracts, and the core no
1823
+ package. A **host** runs the app in a place (the web, the terminal) and uses the runtime's public
1824
+ API only; a **shell** is that place's root View (`web.shell`, `terminal.shell`), a plugin; a
1835
1825
  feature's **front end** there is its own Views and commands.
1836
1826
 
1837
1827
  ## Designs
@@ -1842,6 +1832,8 @@ The decisions behind the pieces, as agreed:
1842
1832
  - [design/access.md](design/access.md): spaces, members, reach and rules;
1843
1833
  - [design/memory.md](design/memory.md): memory and chat history;
1844
1834
  - [design/tenancy.md](design/tenancy.md): orgs, the directory, and running many of them;
1835
+ - [design/work.md](design/work.md): who, for whom, where: the actor, `for` and `in`;
1836
+ - [design/plugins.md](design/plugins.md): the runtime, standard plugins and product packages;
1845
1837
  - [stores/README.md](stores/README.md): the stores, and the MongoDB API they speak.
1846
1838
 
1847
1839
  ## Copilotz 0.x
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilotz",
3
- "version": "1.0.0-rc.32",
3
+ "version": "1.0.0-rc.34",
4
4
  "description": "Copilotz: one runtime for Node, Deno, Bun, Cloudflare Workers and the browser.",
5
5
  "keywords": [
6
6
  "agents",
@@ -62,10 +62,18 @@
62
62
  "types": "./plugins/models/mod.d.ts",
63
63
  "default": "./plugins/models/mod.js"
64
64
  },
65
+ "./plugins/models/contract": {
66
+ "types": "./plugins/models/contract.d.ts",
67
+ "default": "./plugins/models/contract.js"
68
+ },
65
69
  "./plugins/agents": {
66
70
  "types": "./plugins/agents/mod.d.ts",
67
71
  "default": "./plugins/agents/mod.js"
68
72
  },
73
+ "./plugins/agents/contract": {
74
+ "types": "./plugins/agents/contract.d.ts",
75
+ "default": "./plugins/agents/contract.js"
76
+ },
69
77
  "./plugins/agents/web": {
70
78
  "types": "./plugins/agents/web.d.ts",
71
79
  "default": "./plugins/agents/web.js"
@@ -78,6 +86,10 @@
78
86
  "types": "./plugins/access/mod.d.ts",
79
87
  "default": "./plugins/access/mod.js"
80
88
  },
89
+ "./plugins/access/contract": {
90
+ "types": "./plugins/access/contract.d.ts",
91
+ "default": "./plugins/access/contract.js"
92
+ },
81
93
  "./plugins/access/web": {
82
94
  "types": "./plugins/access/web.d.ts",
83
95
  "default": "./plugins/access/web.js"
@@ -102,6 +114,10 @@
102
114
  "types": "./plugins/compute/mod.d.ts",
103
115
  "default": "./plugins/compute/mod.js"
104
116
  },
117
+ "./plugins/compute/contract": {
118
+ "types": "./plugins/compute/contract.d.ts",
119
+ "default": "./plugins/compute/contract.js"
120
+ },
105
121
  "./plugins/compute/web": {
106
122
  "types": "./plugins/compute/web.d.ts",
107
123
  "default": "./plugins/compute/web.js"
@@ -114,18 +130,14 @@
114
130
  "types": "./plugins/compute/computers/resources/downloads.d.ts",
115
131
  "default": "./plugins/compute/computers/resources/downloads.js"
116
132
  },
117
- "./plugins/work": {
118
- "types": "./plugins/work/mod.d.ts",
119
- "default": "./plugins/work/mod.js"
120
- },
121
- "./plugins/work/web": {
122
- "types": "./plugins/work/web.d.ts",
123
- "default": "./plugins/work/web.js"
124
- },
125
133
  "./plugins/interfaces": {
126
134
  "types": "./plugins/interfaces/mod.d.ts",
127
135
  "default": "./plugins/interfaces/mod.js"
128
136
  },
137
+ "./plugins/interfaces/contract": {
138
+ "types": "./plugins/interfaces/contract.d.ts",
139
+ "default": "./plugins/interfaces/contract.js"
140
+ },
129
141
  "./plugins/interfaces/web": {
130
142
  "types": "./plugins/interfaces/web.d.ts",
131
143
  "default": "./plugins/interfaces/web.js"
@@ -166,10 +178,18 @@
166
178
  "types": "./exporters/mod.d.ts",
167
179
  "default": "./exporters/mod.js"
168
180
  },
181
+ "./describe": {
182
+ "types": "./runtime/describe.d.ts",
183
+ "default": "./runtime/describe.js"
184
+ },
169
185
  "./testing": {
170
186
  "types": "./testing/mod.d.ts",
171
187
  "default": "./testing/mod.js"
172
188
  },
189
+ "./testing/words": {
190
+ "types": "./testing/words.d.ts",
191
+ "default": "./testing/words.js"
192
+ },
173
193
  "./package.json": "./package.json"
174
194
  },
175
195
  "files": [
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The access theme's contracts, for plugins built on it, in Copilotz or
3
+ * outside it (`copilotz/plugins/access/contract`): each plugin's contract.ts,
4
+ * the shapes of its documents and resource kinds and the little code that
5
+ * goes with them (people by name, may, `signedIn`…), and nothing else. Safe
6
+ * in the browser; plugins reach the rest by name, through the runtime.
7
+ */
8
+ export * from "./spaces/contract.js";
9
+ export * from "./identity/contract.js";
10
+ export * from "./contacts/contract.js";
11
+ export * from "./accounts/contract.js";
12
+ export * from "./email/contract.js";
13
+ export type { Profile } from "./spaces/contract.js";
14
+ export type { Profile as AccountProfile } from "./accounts/contract.js";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The access theme's contracts, for plugins built on it, in Copilotz or
3
+ * outside it (`copilotz/plugins/access/contract`): each plugin's contract.ts,
4
+ * the shapes of its documents and resource kinds and the little code that
5
+ * goes with them (people by name, may, `signedIn`…), and nothing else. Safe
6
+ * in the browser; plugins reach the rest by name, through the runtime.
7
+ */
8
+ export * from "./spaces/contract.js";
9
+ export * from "./identity/contract.js";
10
+ export * from "./contacts/contract.js";
11
+ export * from "./accounts/contract.js";
12
+ export * from "./email/contract.js";