copilotz 1.0.0-rc.31 → 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 (508) hide show
  1. package/CHANGELOG.md +130 -0
  2. package/README.md +169 -158
  3. package/hosts/terminal/host.js +12 -4
  4. package/hosts/web/host.js +5 -0
  5. package/package.json +29 -9
  6. package/plugins/access/accounts/actions/callback.js +2 -2
  7. package/plugins/access/accounts/actions/complete.js +2 -2
  8. package/plugins/access/accounts/actions/connect.js +2 -2
  9. package/plugins/access/accounts/actions/disconnect.js +2 -2
  10. package/plugins/access/accounts/collections/account.js +2 -2
  11. package/plugins/access/contacts/collections/contact.d.ts +1 -1
  12. package/plugins/access/contacts/collections/contact.js +2 -2
  13. package/plugins/access/contract.d.ts +14 -0
  14. package/plugins/access/contract.js +12 -0
  15. package/plugins/access/identity/actions/session.js +2 -2
  16. package/plugins/access/mod.d.ts +5 -4
  17. package/plugins/access/mod.js +0 -1
  18. package/plugins/access/spaces/actions/can.js +2 -2
  19. package/plugins/access/spaces/actions/create.js +2 -2
  20. package/plugins/access/spaces/actions/invitation.js +4 -4
  21. package/plugins/access/spaces/actions/leave.js +2 -2
  22. package/plugins/access/spaces/actions/member.js +3 -3
  23. package/plugins/access/spaces/actions/org.js +6 -6
  24. package/plugins/access/spaces/actions/personal.js +9 -6
  25. package/plugins/access/spaces/actions/request.js +3 -3
  26. package/plugins/access/spaces/actions/share.js +2 -2
  27. package/plugins/access/spaces/collections/invitation.js +6 -4
  28. package/plugins/access/spaces/collections/profile.js +3 -3
  29. package/plugins/access/spaces/collections/space.d.ts +1 -1
  30. package/plugins/access/spaces/collections/space.js +2 -1
  31. package/plugins/access/spaces/shared/labels.js +2 -1
  32. package/plugins/access/spaces/shared/reach.d.ts +31 -3
  33. package/plugins/access/spaces/shared/reach.js +120 -9
  34. package/plugins/access/spaces/shared/rules.js +8 -3
  35. package/plugins/access/spaces/views/elsewhere.d.ts +5 -2
  36. package/plugins/access/spaces/views/web/org-about.js +3 -3
  37. package/plugins/access/spaces/views/web/spaces.js +1 -1
  38. package/plugins/access/spaces/views/web/tree.d.ts +5 -1
  39. package/plugins/access/spaces/views/web/tree.js +10 -6
  40. package/plugins/access/spaces/views/web/who.d.ts +12 -9
  41. package/plugins/access/spaces/views/web/words.d.ts +1 -1
  42. package/plugins/access/web.d.ts +0 -1
  43. package/plugins/access/web.js +0 -2
  44. package/plugins/agents/chat/actions/attach.js +3 -3
  45. package/plugins/agents/chat/actions/move.js +2 -2
  46. package/plugins/agents/chat/actions/send.js +4 -4
  47. package/plugins/agents/chat/collections/file.d.ts +10 -1
  48. package/plugins/agents/chat/collections/file.js +7 -0
  49. package/plugins/agents/chat/collections/intent.d.ts +1 -1
  50. package/plugins/agents/chat/collections/live.d.ts +2 -2
  51. package/plugins/agents/chat/collections/message.d.ts +1 -1
  52. package/plugins/agents/chat/collections/shown.d.ts +1 -1
  53. package/plugins/agents/chat/collections/thread.d.ts +1 -1
  54. package/plugins/agents/chat/collections/wait.d.ts +1 -1
  55. package/plugins/agents/chat/processors/turn.js +13 -13
  56. package/plugins/agents/chat/shared/delivery.d.ts +1 -1
  57. package/plugins/agents/chat/shared/delivery.js +4 -1
  58. package/plugins/agents/chat/shared/send.js +2 -1
  59. package/plugins/agents/chat/views/web/words.d.ts +1 -1
  60. package/plugins/agents/contract.d.ts +12 -0
  61. package/plugins/agents/contract.js +12 -0
  62. package/plugins/agents/memory/collections/memory.d.ts +1 -1
  63. package/plugins/agents/memory/mod.js +2 -2
  64. package/plugins/agents/memory/shared/scope.d.ts +4 -1
  65. package/plugins/agents/memory/shared/scope.js +6 -6
  66. package/plugins/agents/memory/views/web/words.d.ts +1 -1
  67. package/plugins/agents/mod.d.ts +7 -9
  68. package/plugins/agents/mod.js +7 -9
  69. package/plugins/agents/openapi/shared/files.js +2 -2
  70. package/plugins/agents/routines/collections/routine.d.ts +2 -2
  71. package/plugins/agents/routines/resources/tools.js +11 -9
  72. package/plugins/agents/routines/shared/fire.d.ts +3 -1
  73. package/plugins/agents/routines/shared/fire.js +4 -2
  74. package/plugins/agents/skills/collections/skill.d.ts +1 -1
  75. package/plugins/agents/skills/resources/tools.js +1 -1
  76. package/plugins/agents/skills/shared/skills.d.ts +2 -2
  77. package/plugins/agents/skills/shared/skills.js +3 -6
  78. package/plugins/agents/web.d.ts +0 -2
  79. package/plugins/agents/web.js +0 -2
  80. package/plugins/billing/mod.d.ts +6 -8
  81. package/plugins/billing/mod.js +6 -7
  82. package/plugins/billing/usage/collections/usage.js +4 -3
  83. package/plugins/billing/usage/views/web/words.d.ts +1 -1
  84. package/plugins/billing/web.d.ts +1 -2
  85. package/plugins/billing/web.js +1 -2
  86. package/plugins/compute/apps/actions/list.js +2 -2
  87. package/plugins/compute/apps/actions/publish.js +2 -2
  88. package/plugins/compute/apps/resources/tools.js +7 -7
  89. package/plugins/compute/cloud/actions/create.js +5 -2
  90. package/plugins/compute/cloud/collections/cloud-computer.d.ts +1 -1
  91. package/plugins/compute/cloud/resources/tools.js +10 -9
  92. package/plugins/compute/computers/actions/allowed.js +1 -1
  93. package/plugins/compute/computers/actions/code.js +2 -2
  94. package/plugins/compute/computers/actions/env.js +5 -2
  95. package/plugins/compute/computers/actions/work.js +2 -2
  96. package/plugins/compute/computers/collections/approval.d.ts +6 -6
  97. package/plugins/compute/computers/collections/desk.d.ts +1 -1
  98. package/plugins/compute/computers/collections/desk.js +2 -2
  99. package/plugins/compute/computers/collections/enrollment.d.ts +1 -1
  100. package/plugins/compute/computers/collections/grant.d.ts +1 -1
  101. package/plugins/compute/computers/collections/grant.js +1 -1
  102. package/plugins/compute/computers/program/version.d.ts +1 -1
  103. package/plugins/compute/computers/program/version.js +1 -1
  104. package/plugins/compute/computers/resources/downloads.js +1 -1
  105. package/plugins/compute/computers/resources/tools.js +3 -5
  106. package/plugins/compute/computers/shared/grants.js +2 -0
  107. package/plugins/compute/computers/shared/wake.d.ts +4 -4
  108. package/plugins/compute/computers/shared/wake.js +7 -9
  109. package/plugins/compute/computers/shared/where.d.ts +4 -4
  110. package/plugins/compute/computers/shared/where.js +9 -10
  111. package/plugins/compute/contract.d.ts +9 -0
  112. package/plugins/compute/contract.js +9 -0
  113. package/plugins/interfaces/api/collections/key.d.ts +7 -4
  114. package/plugins/interfaces/api/collections/key.js +5 -1
  115. package/plugins/interfaces/api/shared/actor.d.ts +1 -0
  116. package/plugins/interfaces/contract.d.ts +16 -0
  117. package/plugins/interfaces/contract.js +14 -0
  118. package/plugins/interfaces/mcp/actions/call.js +5 -1
  119. package/plugins/interfaces/mcp/mod.d.ts +15 -9
  120. package/plugins/interfaces/mcp/mod.js +16 -10
  121. package/plugins/interfaces/mcp/resources/server.js +3 -3
  122. package/plugins/interfaces/mcp/resources/tools.d.ts +4 -9
  123. package/plugins/interfaces/mcp/resources/tools.js +7 -20
  124. package/plugins/interfaces/mcp/resources/widgets.js +2 -1
  125. package/plugins/interfaces/mcp/shared/settings.d.ts +2 -2
  126. package/plugins/interfaces/mcp/shared/settings.js +5 -1
  127. package/plugins/interfaces/voice/collections/blocked.d.ts +1 -1
  128. package/plugins/interfaces/voice/collections/call.d.ts +1 -1
  129. package/plugins/interfaces/voice/routes/relay.js +6 -5
  130. package/plugins/interfaces/web/actions/arrive.js +1 -1
  131. package/plugins/interfaces/web/collections/visitor.js +8 -4
  132. package/plugins/interfaces/web/contract.d.ts +10 -5
  133. package/plugins/interfaces/web/contract.js +2 -1
  134. package/plugins/interfaces/web/mod.d.ts +12 -12
  135. package/plugins/interfaces/web/mod.js +11 -15
  136. package/plugins/interfaces/web/resources/spend.js +9 -3
  137. package/plugins/interfaces/web/shared/orgs.d.ts +61 -60
  138. package/plugins/interfaces/web/shared/orgs.js +14 -33
  139. package/plugins/interfaces/web/shared/standing.js +4 -3
  140. package/plugins/interfaces/web/shared/style.d.ts +3 -4
  141. package/plugins/interfaces/web/shared/style.js +3 -192
  142. package/plugins/interfaces/web/views/frame.d.ts +16 -6
  143. package/plugins/interfaces/web/views/frame.js +20 -26
  144. package/plugins/interfaces/web/views/me.d.ts +5 -13
  145. package/plugins/interfaces/web/views/me.js +9 -19
  146. package/plugins/interfaces/web/views/shell.d.ts +3 -1
  147. package/plugins/interfaces/web/views/shell.js +14 -1
  148. package/plugins/interfaces/web/views/words.d.ts +1 -1
  149. package/plugins/interfaces/web/views/words.js +2 -185
  150. package/plugins/interfaces/whatsapp/collections/number.d.ts +1 -1
  151. package/plugins/interfaces/whatsapp/processors/receive.js +7 -4
  152. package/plugins/models/shared/use.d.ts +6 -8
  153. package/runtime/actor.d.ts +37 -0
  154. package/runtime/actor.js +39 -0
  155. package/runtime/browsers.d.ts +11 -1
  156. package/runtime/browsers.js +20 -3
  157. package/runtime/client.d.ts +10 -2
  158. package/runtime/client.js +19 -5
  159. package/runtime/define.d.ts +34 -5
  160. package/runtime/describe.d.ts +315 -0
  161. package/runtime/describe.js +590 -0
  162. package/runtime/errors.d.ts +16 -6
  163. package/runtime/errors.js +20 -7
  164. package/runtime/executor.js +26 -4
  165. package/runtime/kept.d.ts +22 -0
  166. package/runtime/kept.js +128 -0
  167. package/runtime/mod.d.ts +1 -1
  168. package/runtime/mod.js +1 -1
  169. package/runtime/observe.d.ts +6 -1
  170. package/runtime/observe.js +2 -1
  171. package/runtime/owner.d.ts +5 -1
  172. package/runtime/owner.js +38 -15
  173. package/runtime/reads.d.ts +3 -1
  174. package/runtime/reads.js +8 -1
  175. package/runtime/registry.js +9 -0
  176. package/runtime/runtimes.d.ts +1 -1
  177. package/runtime/store.d.ts +3 -1
  178. package/runtime/views.js +1 -0
  179. package/testing/mod.d.ts +13 -1
  180. package/testing/mod.js +28 -2
  181. package/testing/words.d.ts +18 -0
  182. package/testing/words.js +60 -0
  183. package/plugins/access/directory/actions/code.d.ts +0 -4
  184. package/plugins/access/directory/actions/code.js +0 -135
  185. package/plugins/access/directory/actions/host.d.ts +0 -2
  186. package/plugins/access/directory/actions/host.js +0 -55
  187. package/plugins/access/directory/actions/invite.d.ts +0 -5
  188. package/plugins/access/directory/actions/invite.js +0 -129
  189. package/plugins/access/directory/actions/org.d.ts +0 -10
  190. package/plugins/access/directory/actions/org.js +0 -273
  191. package/plugins/access/directory/collections/credit-code.d.ts +0 -114
  192. package/plugins/access/directory/collections/credit-code.js +0 -28
  193. package/plugins/access/directory/collections/invite.d.ts +0 -81
  194. package/plugins/access/directory/collections/invite.js +0 -20
  195. package/plugins/access/directory/collections/membership.d.ts +0 -72
  196. package/plugins/access/directory/collections/membership.js +0 -22
  197. package/plugins/access/directory/collections/org-host.d.ts +0 -62
  198. package/plugins/access/directory/collections/org-host.js +0 -30
  199. package/plugins/access/directory/collections/org.d.ts +0 -141
  200. package/plugins/access/directory/collections/org.js +0 -58
  201. package/plugins/access/directory/collections/staff.d.ts +0 -42
  202. package/plugins/access/directory/collections/staff.js +0 -12
  203. package/plugins/access/directory/contract.d.ts +0 -8
  204. package/plugins/access/directory/contract.js +0 -8
  205. package/plugins/access/directory/mod.d.ts +0 -64
  206. package/plugins/access/directory/mod.js +0 -119
  207. package/plugins/access/directory/routes/console.d.ts +0 -26
  208. package/plugins/access/directory/routes/console.js +0 -129
  209. package/plugins/access/directory/routes/enter.d.ts +0 -18
  210. package/plugins/access/directory/routes/enter.js +0 -47
  211. package/plugins/access/directory/routes/forward.d.ts +0 -35
  212. package/plugins/access/directory/routes/forward.js +0 -119
  213. package/plugins/access/directory/routes/orgs.d.ts +0 -25
  214. package/plugins/access/directory/routes/orgs.js +0 -113
  215. package/plugins/access/directory/routes/signout.d.ts +0 -11
  216. package/plugins/access/directory/routes/signout.js +0 -36
  217. package/plugins/access/directory/shared/enter.d.ts +0 -36
  218. package/plugins/access/directory/shared/enter.js +0 -82
  219. package/plugins/access/directory/shared/http.d.ts +0 -42
  220. package/plugins/access/directory/shared/http.js +0 -77
  221. package/plugins/access/directory/shared/member.d.ts +0 -21
  222. package/plugins/access/directory/shared/member.js +0 -73
  223. package/plugins/access/directory/shared/settings.d.ts +0 -53
  224. package/plugins/access/directory/shared/settings.js +0 -16
  225. package/plugins/access/directory/shared/state.d.ts +0 -74
  226. package/plugins/access/directory/shared/state.js +0 -101
  227. package/plugins/access/directory/web.d.ts +0 -148
  228. package/plugins/access/directory/web.js +0 -248
  229. package/plugins/access/directory/words.d.ts +0 -1
  230. package/plugins/access/directory/words.js +0 -6
  231. package/plugins/agents/team/actions/agent.d.ts +0 -4
  232. package/plugins/agents/team/actions/agent.js +0 -179
  233. package/plugins/agents/team/actions/define.d.ts +0 -1
  234. package/plugins/agents/team/actions/define.js +0 -27
  235. package/plugins/agents/team/collections/agent.d.ts +0 -132
  236. package/plugins/agents/team/collections/agent.js +0 -75
  237. package/plugins/agents/team/contract.d.ts +0 -10
  238. package/plugins/agents/team/contract.js +0 -1
  239. package/plugins/agents/team/mod.d.ts +0 -21
  240. package/plugins/agents/team/mod.js +0 -49
  241. package/plugins/agents/team/shared/definition.d.ts +0 -3
  242. package/plugins/agents/team/shared/definition.js +0 -10
  243. package/plugins/agents/team/views/web/agent-add.d.ts +0 -14
  244. package/plugins/agents/team/views/web/agent-add.js +0 -48
  245. package/plugins/agents/team/views/web/agent-fields.d.ts +0 -33
  246. package/plugins/agents/team/views/web/agent-fields.js +0 -88
  247. package/plugins/agents/team/views/web/agent-known.d.ts +0 -22
  248. package/plugins/agents/team/views/web/agent-known.js +0 -61
  249. package/plugins/agents/team/views/web/agent-new.d.ts +0 -24
  250. package/plugins/agents/team/views/web/agent-new.js +0 -129
  251. package/plugins/agents/team/views/web/agent-palette.d.ts +0 -19
  252. package/plugins/agents/team/views/web/agent-palette.js +0 -203
  253. package/plugins/agents/team/views/web/agent-steps.d.ts +0 -23
  254. package/plugins/agents/team/views/web/agent-steps.js +0 -56
  255. package/plugins/agents/team/views/web/agent.d.ts +0 -17
  256. package/plugins/agents/team/views/web/agent.js +0 -257
  257. package/plugins/agents/team/views/web/agents.d.ts +0 -48
  258. package/plugins/agents/team/views/web/agents.js +0 -59
  259. package/plugins/agents/team/views/web/model-pick.d.ts +0 -25
  260. package/plugins/agents/team/views/web/model-pick.js +0 -39
  261. package/plugins/agents/team/views/web/model-picker.d.ts +0 -57
  262. package/plugins/agents/team/views/web/model-picker.js +0 -218
  263. package/plugins/agents/team/views/web/places.d.ts +0 -24
  264. package/plugins/agents/team/views/web/places.js +0 -10
  265. package/plugins/agents/team/views/web/style.d.ts +0 -9
  266. package/plugins/agents/team/views/web/style.js +0 -246
  267. package/plugins/agents/team/views/web/words.d.ts +0 -1
  268. package/plugins/agents/team/views/web/words.js +0 -208
  269. package/plugins/agents/team/web.d.ts +0 -22
  270. package/plugins/agents/team/web.js +0 -41
  271. package/plugins/agents/tiers/actions/choose.d.ts +0 -2
  272. package/plugins/agents/tiers/actions/choose.js +0 -98
  273. package/plugins/agents/tiers/actions/model.d.ts +0 -1
  274. package/plugins/agents/tiers/actions/model.js +0 -36
  275. package/plugins/agents/tiers/collections/choice.d.ts +0 -48
  276. package/plugins/agents/tiers/collections/choice.js +0 -59
  277. package/plugins/agents/tiers/contract.d.ts +0 -19
  278. package/plugins/agents/tiers/contract.js +0 -1
  279. package/plugins/agents/tiers/mod.d.ts +0 -54
  280. package/plugins/agents/tiers/mod.js +0 -92
  281. package/plugins/agents/tiers/shared/shown.d.ts +0 -87
  282. package/plugins/agents/tiers/shared/shown.js +0 -155
  283. package/plugins/agents/tiers/shared/tiers.d.ts +0 -103
  284. package/plugins/agents/tiers/shared/tiers.js +0 -129
  285. package/plugins/agents/tiers/views/web/org.d.ts +0 -38
  286. package/plugins/agents/tiers/views/web/org.js +0 -142
  287. package/plugins/agents/tiers/views/web/space.d.ts +0 -43
  288. package/plugins/agents/tiers/views/web/space.js +0 -103
  289. package/plugins/agents/tiers/views/web/style.d.ts +0 -7
  290. package/plugins/agents/tiers/views/web/style.js +0 -87
  291. package/plugins/agents/tiers/views/web/words.d.ts +0 -21
  292. package/plugins/agents/tiers/views/web/words.js +0 -49
  293. package/plugins/agents/tiers/web.d.ts +0 -18
  294. package/plugins/agents/tiers/web.js +0 -40
  295. package/plugins/billing/credits/actions/check.d.ts +0 -5
  296. package/plugins/billing/credits/actions/check.js +0 -97
  297. package/plugins/billing/credits/actions/manage.d.ts +0 -9
  298. package/plugins/billing/credits/actions/manage.js +0 -266
  299. package/plugins/billing/credits/actions/state.d.ts +0 -2
  300. package/plugins/billing/credits/actions/state.js +0 -172
  301. package/plugins/billing/credits/collections/credit.d.ts +0 -110
  302. package/plugins/billing/credits/collections/credit.js +0 -31
  303. package/plugins/billing/credits/collections/payment.d.ts +0 -139
  304. package/plugins/billing/credits/collections/payment.js +0 -32
  305. package/plugins/billing/credits/collections/plan.d.ts +0 -428
  306. package/plugins/billing/credits/collections/plan.js +0 -97
  307. package/plugins/billing/credits/collections/room.d.ts +0 -85
  308. package/plugins/billing/credits/collections/room.js +0 -24
  309. package/plugins/billing/credits/contract.d.ts +0 -19
  310. package/plugins/billing/credits/contract.js +0 -12
  311. package/plugins/billing/credits/mod.d.ts +0 -38
  312. package/plugins/billing/credits/mod.js +0 -72
  313. package/plugins/billing/credits/shared/apply.d.ts +0 -66
  314. package/plugins/billing/credits/shared/apply.js +0 -106
  315. package/plugins/billing/credits/shared/settings.d.ts +0 -70
  316. package/plugins/billing/credits/shared/settings.js +0 -28
  317. package/plugins/billing/credits/shared/standing.d.ts +0 -71
  318. package/plugins/billing/credits/shared/standing.js +0 -235
  319. package/plugins/billing/credits/shared/walk.d.ts +0 -50
  320. package/plugins/billing/credits/shared/walk.js +0 -127
  321. package/plugins/billing/credits/views/web/add.d.ts +0 -25
  322. package/plugins/billing/credits/views/web/add.js +0 -92
  323. package/plugins/billing/credits/views/web/budget.d.ts +0 -16
  324. package/plugins/billing/credits/views/web/budget.js +0 -62
  325. package/plugins/billing/credits/views/web/composer.d.ts +0 -13
  326. package/plugins/billing/credits/views/web/composer.js +0 -65
  327. package/plugins/billing/credits/views/web/history.d.ts +0 -12
  328. package/plugins/billing/credits/views/web/history.js +0 -55
  329. package/plugins/billing/credits/views/web/numbers.d.ts +0 -256
  330. package/plugins/billing/credits/views/web/numbers.js +0 -291
  331. package/plugins/billing/credits/views/web/org.d.ts +0 -31
  332. package/plugins/billing/credits/views/web/org.js +0 -238
  333. package/plugins/billing/credits/views/web/plan.d.ts +0 -28
  334. package/plugins/billing/credits/views/web/plan.js +0 -84
  335. package/plugins/billing/credits/views/web/staff.d.ts +0 -20
  336. package/plugins/billing/credits/views/web/staff.js +0 -265
  337. package/plugins/billing/credits/views/web/style.d.ts +0 -9
  338. package/plugins/billing/credits/views/web/style.js +0 -190
  339. package/plugins/billing/credits/views/web/types.d.ts +0 -17
  340. package/plugins/billing/credits/views/web/types.js +0 -32
  341. package/plugins/billing/credits/web.d.ts +0 -12
  342. package/plugins/billing/credits/web.js +0 -33
  343. package/plugins/billing/stripe/actions/checkout.d.ts +0 -4
  344. package/plugins/billing/stripe/actions/checkout.js +0 -188
  345. package/plugins/billing/stripe/actions/fact.d.ts +0 -1
  346. package/plugins/billing/stripe/actions/fact.js +0 -39
  347. package/plugins/billing/stripe/mod.d.ts +0 -30
  348. package/plugins/billing/stripe/mod.js +0 -52
  349. package/plugins/billing/stripe/routes/webhook.d.ts +0 -16
  350. package/plugins/billing/stripe/routes/webhook.js +0 -56
  351. package/plugins/billing/stripe/shared/api.d.ts +0 -14
  352. package/plugins/billing/stripe/shared/api.js +0 -42
  353. package/plugins/billing/stripe/shared/events.d.ts +0 -42
  354. package/plugins/billing/stripe/shared/events.js +0 -226
  355. package/plugins/billing/stripe/shared/settings.d.ts +0 -39
  356. package/plugins/billing/stripe/shared/settings.js +0 -10
  357. package/plugins/interfaces/web/shared/codes.d.ts +0 -27
  358. package/plugins/interfaces/web/shared/codes.js +0 -50
  359. package/plugins/interfaces/web/views/console-codes.d.ts +0 -37
  360. package/plugins/interfaces/web/views/console-codes.js +0 -166
  361. package/plugins/interfaces/web/views/console.d.ts +0 -37
  362. package/plugins/interfaces/web/views/console.js +0 -223
  363. package/plugins/interfaces/web/views/org.d.ts +0 -12
  364. package/plugins/interfaces/web/views/org.js +0 -62
  365. package/plugins/interfaces/web/views/orgs.d.ts +0 -45
  366. package/plugins/interfaces/web/views/orgs.js +0 -274
  367. package/plugins/work/boards/actions/create-board.d.ts +0 -1
  368. package/plugins/work/boards/actions/create-board.js +0 -47
  369. package/plugins/work/boards/actions/create-card.d.ts +0 -1
  370. package/plugins/work/boards/actions/create-card.js +0 -83
  371. package/plugins/work/boards/actions/delete-board.d.ts +0 -1
  372. package/plugins/work/boards/actions/delete-board.js +0 -30
  373. package/plugins/work/boards/actions/delete-card.d.ts +0 -1
  374. package/plugins/work/boards/actions/delete-card.js +0 -24
  375. package/plugins/work/boards/actions/move-card.d.ts +0 -1
  376. package/plugins/work/boards/actions/move-card.js +0 -85
  377. package/plugins/work/boards/actions/update-board.d.ts +0 -1
  378. package/plugins/work/boards/actions/update-board.js +0 -110
  379. package/plugins/work/boards/actions/update-card.d.ts +0 -1
  380. package/plugins/work/boards/actions/update-card.js +0 -67
  381. package/plugins/work/boards/collections/board.d.ts +0 -71
  382. package/plugins/work/boards/collections/board.js +0 -32
  383. package/plugins/work/boards/collections/card.d.ts +0 -74
  384. package/plugins/work/boards/collections/card.js +0 -29
  385. package/plugins/work/boards/contract.d.ts +0 -67
  386. package/plugins/work/boards/contract.js +0 -20
  387. package/plugins/work/boards/mod.d.ts +0 -34
  388. package/plugins/work/boards/mod.js +0 -72
  389. package/plugins/work/boards/resources/tools.d.ts +0 -2
  390. package/plugins/work/boards/resources/tools.js +0 -416
  391. package/plugins/work/boards/shared/columns.d.ts +0 -39
  392. package/plugins/work/boards/shared/columns.js +0 -88
  393. package/plugins/work/boards/shared/dates.d.ts +0 -11
  394. package/plugins/work/boards/shared/dates.js +0 -22
  395. package/plugins/work/boards/shared/errors.d.ts +0 -24
  396. package/plugins/work/boards/shared/errors.js +0 -20
  397. package/plugins/work/boards/shared/fields.d.ts +0 -65
  398. package/plugins/work/boards/shared/fields.js +0 -44
  399. package/plugins/work/boards/shared/load.d.ts +0 -22
  400. package/plugins/work/boards/shared/load.js +0 -32
  401. package/plugins/work/boards/shared/order.d.ts +0 -30
  402. package/plugins/work/boards/shared/order.js +0 -47
  403. package/plugins/work/boards/shared/people.d.ts +0 -30
  404. package/plugins/work/boards/shared/people.js +0 -87
  405. package/plugins/work/boards/shared/said.d.ts +0 -28
  406. package/plugins/work/boards/shared/said.js +0 -30
  407. package/plugins/work/boards/views/web/board-head.d.ts +0 -62
  408. package/plugins/work/boards/views/web/board-head.js +0 -170
  409. package/plugins/work/boards/views/web/board-page.d.ts +0 -17
  410. package/plugins/work/boards/views/web/board-page.js +0 -97
  411. package/plugins/work/boards/views/web/board-view.d.ts +0 -40
  412. package/plugins/work/boards/views/web/board-view.js +0 -341
  413. package/plugins/work/boards/views/web/boards-tab.d.ts +0 -13
  414. package/plugins/work/boards/views/web/boards-tab.js +0 -109
  415. package/plugins/work/boards/views/web/card-sheet.d.ts +0 -47
  416. package/plugins/work/boards/views/web/card-sheet.js +0 -314
  417. package/plugins/work/boards/views/web/card-tile.d.ts +0 -29
  418. package/plugins/work/boards/views/web/card-tile.js +0 -20
  419. package/plugins/work/boards/views/web/column.d.ts +0 -38
  420. package/plugins/work/boards/views/web/column.js +0 -171
  421. package/plugins/work/boards/views/web/drag.d.ts +0 -36
  422. package/plugins/work/boards/views/web/drag.js +0 -276
  423. package/plugins/work/boards/views/web/glyphs.d.ts +0 -29
  424. package/plugins/work/boards/views/web/glyphs.js +0 -25
  425. package/plugins/work/boards/views/web/load.d.ts +0 -32
  426. package/plugins/work/boards/views/web/load.js +0 -33
  427. package/plugins/work/boards/views/web/palette.d.ts +0 -15
  428. package/plugins/work/boards/views/web/palette.js +0 -180
  429. package/plugins/work/boards/views/web/pickers.d.ts +0 -45
  430. package/plugins/work/boards/views/web/pickers.js +0 -83
  431. package/plugins/work/boards/views/web/shown.d.ts +0 -77
  432. package/plugins/work/boards/views/web/shown.js +0 -136
  433. package/plugins/work/boards/views/web/step.d.ts +0 -13
  434. package/plugins/work/boards/views/web/step.js +0 -41
  435. package/plugins/work/boards/views/web/style.d.ts +0 -10
  436. package/plugins/work/boards/views/web/style.js +0 -380
  437. package/plugins/work/boards/views/web/toolbar.d.ts +0 -21
  438. package/plugins/work/boards/views/web/toolbar.js +0 -39
  439. package/plugins/work/boards/web.d.ts +0 -26
  440. package/plugins/work/boards/web.js +0 -52
  441. package/plugins/work/documents/actions/create.d.ts +0 -1
  442. package/plugins/work/documents/actions/create.js +0 -28
  443. package/plugins/work/documents/actions/delete.d.ts +0 -1
  444. package/plugins/work/documents/actions/delete.js +0 -32
  445. package/plugins/work/documents/actions/presence.d.ts +0 -1
  446. package/plugins/work/documents/actions/presence.js +0 -45
  447. package/plugins/work/documents/actions/rename.d.ts +0 -1
  448. package/plugins/work/documents/actions/rename.js +0 -33
  449. package/plugins/work/documents/actions/restore.d.ts +0 -1
  450. package/plugins/work/documents/actions/restore.js +0 -39
  451. package/plugins/work/documents/actions/save.d.ts +0 -1
  452. package/plugins/work/documents/actions/save.js +0 -78
  453. package/plugins/work/documents/collections/document-presence.d.ts +0 -79
  454. package/plugins/work/documents/collections/document-presence.js +0 -25
  455. package/plugins/work/documents/collections/document-version.d.ts +0 -166
  456. package/plugins/work/documents/collections/document-version.js +0 -60
  457. package/plugins/work/documents/collections/document.d.ts +0 -131
  458. package/plugins/work/documents/collections/document.js +0 -72
  459. package/plugins/work/documents/contract.d.ts +0 -17
  460. package/plugins/work/documents/contract.js +0 -1
  461. package/plugins/work/documents/mod.d.ts +0 -38
  462. package/plugins/work/documents/mod.js +0 -75
  463. package/plugins/work/documents/resources/tools.d.ts +0 -2
  464. package/plugins/work/documents/resources/tools.js +0 -255
  465. package/plugins/work/documents/shared/diff.d.ts +0 -37
  466. package/plugins/work/documents/shared/diff.js +0 -148
  467. package/plugins/work/documents/shared/merge.d.ts +0 -29
  468. package/plugins/work/documents/shared/merge.js +0 -120
  469. package/plugins/work/documents/shared/presence.d.ts +0 -7
  470. package/plugins/work/documents/shared/presence.js +0 -7
  471. package/plugins/work/documents/shared/text.d.ts +0 -36
  472. package/plugins/work/documents/shared/text.js +0 -67
  473. package/plugins/work/documents/shared/who.d.ts +0 -23
  474. package/plugins/work/documents/shared/who.js +0 -39
  475. package/plugins/work/documents/shared/write.d.ts +0 -54
  476. package/plugins/work/documents/shared/write.js +0 -123
  477. package/plugins/work/documents/views/web/changes.d.ts +0 -22
  478. package/plugins/work/documents/views/web/changes.js +0 -57
  479. package/plugins/work/documents/views/web/conflict.d.ts +0 -38
  480. package/plugins/work/documents/views/web/conflict.js +0 -96
  481. package/plugins/work/documents/views/web/draft.d.ts +0 -18
  482. package/plugins/work/documents/views/web/draft.js +0 -32
  483. package/plugins/work/documents/views/web/editor.d.ts +0 -57
  484. package/plugins/work/documents/views/web/editor.js +0 -268
  485. package/plugins/work/documents/views/web/format.d.ts +0 -56
  486. package/plugins/work/documents/views/web/format.js +0 -245
  487. package/plugins/work/documents/views/web/history.d.ts +0 -23
  488. package/plugins/work/documents/views/web/history.js +0 -118
  489. package/plugins/work/documents/views/web/list.d.ts +0 -37
  490. package/plugins/work/documents/views/web/list.js +0 -211
  491. package/plugins/work/documents/views/web/page.d.ts +0 -35
  492. package/plugins/work/documents/views/web/page.js +0 -416
  493. package/plugins/work/documents/views/web/palette.d.ts +0 -16
  494. package/plugins/work/documents/views/web/palette.js +0 -168
  495. package/plugins/work/documents/views/web/people.d.ts +0 -60
  496. package/plugins/work/documents/views/web/people.js +0 -63
  497. package/plugins/work/documents/views/web/presence.d.ts +0 -30
  498. package/plugins/work/documents/views/web/presence.js +0 -75
  499. package/plugins/work/documents/views/web/step.d.ts +0 -25
  500. package/plugins/work/documents/views/web/step.js +0 -81
  501. package/plugins/work/documents/views/web/style.d.ts +0 -7
  502. package/plugins/work/documents/views/web/style.js +0 -266
  503. package/plugins/work/documents/web.d.ts +0 -18
  504. package/plugins/work/documents/web.js +0 -46
  505. package/plugins/work/mod.d.ts +0 -3
  506. package/plugins/work/mod.js +0 -3
  507. package/plugins/work/web.d.ts +0 -10
  508. package/plugins/work/web.js +0 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,133 @@
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
+
56
+ ## 1.0.0-rc.32 — 2026-11-09
57
+
58
+ **Upgrading.** `people` now lets in an agent working for a person, and an Action's `allow` is asked
59
+ of code acting for someone too (a tool's `ctx.call`, a Processor's, another Action's), not only of
60
+ outside callers. Go through your Actions:
61
+
62
+ - Say `inPerson` for what only the person decides (consent, keys, who's in a space, money,
63
+ publishing): it never lets in an agent, a key or a routine's work. Say `people` for the rest. An
64
+ `allow` written as `(actor) => actor.kind === "person"` keeps your own tools' agents out: say
65
+ `people`.
66
+ - An Action whose run takes `ctx.actor.id` for a person's id, or checks something only when
67
+ `ctx.actor.kind === "person"`, reads `personOf(ctx.actor)` instead (an agent's id isn't its
68
+ person's).
69
+ - A tool calling an Action its agent's person couldn't is refused (`forbidden`): let them in, or go
70
+ beyond on purpose with a named grant, `ctx.as(grant("<why>"))`.
71
+ - An agent's work reaches only where it is (its chat's space) and what that space draws on: a tool
72
+ that read across its person's spaces from a shared chat finds less. Have the space draw on the
73
+ other (`member.set` of a space), work from the person's Personal space, or hand the work over.
74
+ - Tools read where they are from `ctx.in`, not their chat's `in`.
75
+ - A developer key no longer calls what's now `inPerson` (`space.create`, `member.*`, `invitation.*`,
76
+ `share`, `chat.move`, `agent.create`…), even listed in its scope.
77
+ - An MCP line listing a tool without its `tool:<name>` View doesn't start: add the View.
78
+
79
+ ```ts
80
+ import { grant, inPerson, people, personOf } from "@copilotz/copilotz";
81
+
82
+ "invoice.send": defineAction({ allow: inPerson, … }), // only the person decides
83
+ "invoice.draft": defineAction({ allow: people, run: (ctx) => draft(personOf(ctx.actor)) }),
84
+ // a tool, in its chat's space; going beyond its person on purpose, on the record:
85
+ run: async (input, ctx) => await ctx.as(grant("availability")).call("slots.all", { in: ctx.in }),
86
+ ```
87
+
88
+ - **Who, for whom, where** ([design](design/work.md)). All work runs as an actor, for whom it's done
89
+ (`for`) and where (`in`, an opaque id: a space, to the access plugin), which the runtime carries
90
+ as it carries the actor: into nested calls, tools, the Processors a call's events wake, its timers
91
+ and the Views observed for it; every event records it; `guard` and `allow` see it; contexts say it
92
+ (`ctx.in`, on Actions, Processors, tools, queries and Views). `ctx.as` stays where the work is
93
+ unless told where. Every way in says it: a browser's calls (its page's space;
94
+ `client.call(…,
95
+ { in })`), the terminal (where its person works), a key (its space), WhatsApp,
96
+ voice, web and MCP lines (theirs), routines (theirs), a chat's turn (its chat's).
97
+ - **An agent's work reaches only where it is.** Reach for work done for someone is the person's
98
+ reach ∩ the agent's memberships ∩ its space and what that draws on, at the role it draws on it
99
+ with; in the person's own Personal space, all they reach. North working for Ana in a shared space
100
+ reached every space of Ana's (the core agents are members of all of them), and only labels kept
101
+ Finance from Launch's members: now it reads Launch and its sources. A person acting themselves
102
+ isn't narrowed; a tool or routine acting as them is. An agent actor's `at` is `in`.
103
+ - **`allow` is asked wherever someone acts:** from outside as before, and from code acting for an
104
+ actor (`ctx.call`, a timer, a read's unrecorded calls); for an agent, of whom it works for too
105
+ (`allows`). Actions without one stay internal. Going beyond is a named grant (`grant`), on the
106
+ record as the grant, `via` whose work it was, and counted (`copilotz.elevated.ops`).
107
+ - **Copilotz's own Actions say which:** `inPerson` for sessions, connected accounts, who's in a
108
+ space or the org, `share`, `chat.move`, `memory.move`, `agent.create/update/delete`,
109
+ `computer.code`, `computer.work` and `app.publish`, beside those that were; `people` for the rest,
110
+ boards and documents included (their agents' own tools couldn't call them). `chat.send` and
111
+ `chat.attach` let in people and contacts writing as themselves, never an agent. Code that took the
112
+ actor's id for its person's (`space.personal`, invitations, accounts, desks, cloud computers,
113
+ usage) asks `personOf`; an environment changes only by its space's managers, whoever asks.
114
+ - **Reach is kept in the owner** per who, for whom and where, until a commit changes a membership or
115
+ a space it read (`ReadContext.kept`: what rules work out from reads, let go exactly when what they
116
+ read changes; `cache.kept`, 1,000). An agent's turn works out its reach once, not on every op.
117
+ With narrowing, an agent's work for a person in one of 1,000 spaces (`examples/work-bench.ts`)
118
+ takes a fifth of the time: a turn's 13 ops, 4.4 ms median (21.5 before), 5.3 ms at p95 (22.9); the
119
+ person's own, 4.7 ms (11.7). Nothing measured got slower.
120
+ - **Tools know where they are** (`ctx.in`): documents, boards, computers, cloud computers, apps,
121
+ memory, skills, routines and an API's files no longer read their chat to find its space. What's
122
+ learned stays where it's learned.
123
+ - **Handing work to another space** writes under its grant (`chat.hand-over`, and `chat.hand-back`
124
+ for the answer), for the same person, in the new space; its check is the person's, anywhere.
125
+ - **mcp:** a listed tool without its `tool:<name>` View stops the app from starting (it was left
126
+ out, said once in the log). A line's contact, its widgets and its tools work in its space.
127
+ - **Model-use listeners** get `as` in a job; a web line's budget prices its visitors' use as its
128
+ grant (`web.budget`).
129
+ - **Startup checks** see the Views' names (`merged.views`).
130
+
1
131
  ## 1.0.0-rc.31 — 2026-11-08
2
132
 
3
133
  - **A write the rules refuse in a transaction no longer holds up every write.** Refused before it