pairz 1.0.0-rc.81 → 1.0.0-rc.83

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 (233) hide show
  1. package/AGENTS.md +16 -8
  2. package/CHANGELOG.md +243 -0
  3. package/CONTRIBUTING.md +17 -2
  4. package/README.md +3 -3
  5. package/docs/build-compass.md +1 -1
  6. package/docs/getting-started.md +1 -1
  7. package/docs/guides/a-business-apps-screens.md +1 -1
  8. package/docs/guides/agents-on-peoples-plans.md +145 -22
  9. package/docs/guides/installing-a-computer.md +5 -0
  10. package/docs/guides/serving-on-the-web.md +12 -8
  11. package/docs/guides/the-compiler.md +2 -2
  12. package/docs/manifest.json +21 -1
  13. package/docs/operations/metrics.md +10 -5
  14. package/docs/reference/plugins/accounts-web.md +1 -1
  15. package/docs/reference/plugins/accounts.md +1 -1
  16. package/docs/reference/plugins/api-web.md +1 -1
  17. package/docs/reference/plugins/api.md +1 -1
  18. package/docs/reference/plugins/boards-web.md +1 -1
  19. package/docs/reference/plugins/boards.md +1 -1
  20. package/docs/reference/plugins/chat-channels-pt-br.md +53 -0
  21. package/docs/reference/plugins/chat-channels.md +55 -0
  22. package/docs/reference/plugins/chat-terminal.md +1 -1
  23. package/docs/reference/plugins/chat-web.md +18 -6
  24. package/docs/reference/plugins/chat.md +19 -18
  25. package/docs/reference/plugins/computers-terminal.md +1 -1
  26. package/docs/reference/plugins/computers-web.md +1 -1
  27. package/docs/reference/plugins/computers.md +70 -43
  28. package/docs/reference/plugins/contacts-web.md +1 -1
  29. package/docs/reference/plugins/contacts.md +1 -1
  30. package/docs/reference/plugins/credits-web.md +1 -1
  31. package/docs/reference/plugins/credits.md +1 -1
  32. package/docs/reference/plugins/dev-sign-in.md +1 -1
  33. package/docs/reference/plugins/directory-member.md +3 -3
  34. package/docs/reference/plugins/directory-web.md +1 -1
  35. package/docs/reference/plugins/directory.md +29 -27
  36. package/docs/reference/plugins/documents-web.md +1 -1
  37. package/docs/reference/plugins/documents.md +1 -1
  38. package/docs/reference/plugins/email-sign-in.md +1 -1
  39. package/docs/reference/plugins/email.md +1 -1
  40. package/docs/reference/plugins/google-sign-in.md +1 -1
  41. package/docs/reference/plugins/history.md +1 -1
  42. package/docs/reference/plugins/identity.md +1 -1
  43. package/docs/reference/plugins/maintenance.md +1 -1
  44. package/docs/reference/plugins/mcp.md +1 -1
  45. package/docs/reference/plugins/memory-extraction.md +1 -1
  46. package/docs/reference/plugins/memory-terminal.md +1 -1
  47. package/docs/reference/plugins/memory-web.md +1 -1
  48. package/docs/reference/plugins/memory.md +1 -1
  49. package/docs/reference/plugins/models.md +3 -3
  50. package/docs/reference/plugins/openapi.md +1 -1
  51. package/docs/reference/plugins/password-sign-in.md +1 -1
  52. package/docs/reference/plugins/push-web.md +46 -0
  53. package/docs/reference/plugins/push.md +75 -0
  54. package/docs/reference/plugins/routines-web.md +1 -1
  55. package/docs/reference/plugins/routines.md +1 -1
  56. package/docs/reference/plugins/skills-web.md +1 -1
  57. package/docs/reference/plugins/skills.md +1 -1
  58. package/docs/reference/plugins/spaces-terminal.md +1 -1
  59. package/docs/reference/plugins/spaces-web.md +3 -3
  60. package/docs/reference/plugins/spaces.md +1 -1
  61. package/docs/reference/plugins/stripe-webhook.md +1 -1
  62. package/docs/reference/plugins/stripe.md +1 -1
  63. package/docs/reference/plugins/team-web.md +1 -1
  64. package/docs/reference/plugins/team.md +1 -1
  65. package/docs/reference/plugins/terminal-shell.md +1 -1
  66. package/docs/reference/plugins/terminal.md +1 -1
  67. package/docs/reference/plugins/tiers-web.md +2 -2
  68. package/docs/reference/plugins/tiers.md +19 -19
  69. package/docs/reference/plugins/usage-terminal.md +1 -1
  70. package/docs/reference/plugins/usage-web.md +1 -1
  71. package/docs/reference/plugins/usage.md +6 -6
  72. package/docs/reference/plugins/voice.md +1 -1
  73. package/docs/reference/plugins/web-lines.md +1 -1
  74. package/docs/reference/plugins/web-page.md +1 -1
  75. package/docs/reference/plugins/web-shell.md +1 -1
  76. package/docs/reference/plugins/webTools.md +1 -1
  77. package/docs/reference/plugins/whatsapp-web.md +1 -1
  78. package/docs/reference/plugins/whatsapp.md +1 -1
  79. package/docs/reference/plugins.json +1740 -316
  80. package/docs/reference/plugins.md +9 -0
  81. package/docs/reference.md +22 -12
  82. package/hosts/web/dom-client.d.ts +9 -0
  83. package/hosts/web/dom-client.js +4 -0
  84. package/hosts/web/host.d.ts +29 -0
  85. package/hosts/web/host.js +4 -1
  86. package/hosts/web/node/serve.js +2 -2
  87. package/hosts/web/polyfills.d.ts +1 -0
  88. package/hosts/web/polyfills.js +27 -0
  89. package/hosts/web/pt-br/computers.js +27 -5
  90. package/hosts/web/pt-br/shell.js +2 -0
  91. package/hosts/web/widget.d.ts +34 -0
  92. package/hosts/web/widget.js +4 -1
  93. package/llms.txt +5 -1
  94. package/package.json +4 -2
  95. package/plugins/access/spaces/actions/org.js +1 -1
  96. package/plugins/access/spaces/contract.d.ts +1 -1
  97. package/plugins/access/spaces/contract.js +1 -1
  98. package/plugins/access/spaces/shared/reach.d.ts +7 -3
  99. package/plugins/access/spaces/shared/reach.js +9 -5
  100. package/plugins/access/spaces/views/web/words.d.ts +1 -1
  101. package/plugins/access/spaces/web.js +1 -1
  102. package/plugins/agents/chat/actions/approve.js +3 -2
  103. package/plugins/agents/chat/collections/approval.d.ts +16 -1
  104. package/plugins/agents/chat/collections/approval.js +5 -0
  105. package/plugins/agents/chat/shared/asks.d.ts +3 -2
  106. package/plugins/agents/chat/shared/asks.js +33 -6
  107. package/plugins/billing/usage/actions/activity.d.ts +2 -2
  108. package/plugins/billing/usage/actions/activity.js +3 -3
  109. package/plugins/billing/usage/actions/org.d.ts +8 -8
  110. package/plugins/billing/usage/actions/org.js +11 -11
  111. package/plugins/billing/usage/mod.d.ts +3 -3
  112. package/plugins/billing/usage/mod.js +3 -3
  113. package/plugins/billing/usage/views/web/org.d.ts +2 -2
  114. package/plugins/billing/usage/views/web/org.js +5 -5
  115. package/plugins/billing/usage/web.d.ts +3 -3
  116. package/plugins/billing/usage/web.js +3 -3
  117. package/plugins/compute/computers/actions/allowed.js +1 -5
  118. package/plugins/compute/computers/actions/claim-names.d.ts +1 -0
  119. package/plugins/compute/computers/actions/claim-names.js +25 -0
  120. package/plugins/compute/computers/actions/domain.d.ts +4 -0
  121. package/plugins/compute/computers/actions/domain.js +124 -0
  122. package/plugins/compute/computers/actions/engine.js +12 -0
  123. package/plugins/compute/computers/actions/preview.d.ts +40 -0
  124. package/plugins/compute/computers/actions/preview.js +130 -94
  125. package/plugins/compute/computers/actions/publish.d.ts +3 -0
  126. package/plugins/compute/computers/actions/publish.js +75 -0
  127. package/plugins/compute/computers/adapters/engine.d.ts +6 -0
  128. package/plugins/compute/computers/adapters/engine.js +12 -0
  129. package/plugins/compute/computers/collections/domain.d.ts +91 -0
  130. package/plugins/compute/computers/collections/domain.js +39 -0
  131. package/plugins/compute/computers/collections/preview.d.ts +39 -5
  132. package/plugins/compute/computers/collections/preview.js +59 -19
  133. package/plugins/compute/computers/mod.d.ts +15 -5
  134. package/plugins/compute/computers/mod.js +42 -11
  135. package/plugins/compute/computers/program/agents/acp.d.ts +4 -0
  136. package/plugins/compute/computers/program/agents/acp.js +18 -3
  137. package/plugins/compute/computers/program/agents/claude.d.ts +24 -1
  138. package/plugins/compute/computers/program/agents/claude.js +66 -22
  139. package/plugins/compute/computers/program/agents/codex.d.ts +35 -1
  140. package/plugins/compute/computers/program/agents/codex.js +83 -28
  141. package/plugins/compute/computers/program/agents/cursor-runner.d.ts +4 -1
  142. package/plugins/compute/computers/program/agents/cursor-runner.js +4 -1
  143. package/plugins/compute/computers/program/agents/engines.d.ts +14 -0
  144. package/plugins/compute/computers/program/agents/engines.js +15 -5
  145. package/plugins/compute/computers/program/agents/grok.d.ts +16 -0
  146. package/plugins/compute/computers/program/agents/grok.js +26 -9
  147. package/plugins/compute/computers/program/agents/permission.d.ts +35 -2
  148. package/plugins/compute/computers/program/agents/permission.js +68 -34
  149. package/plugins/compute/computers/program/agents/types.d.ts +9 -1
  150. package/plugins/compute/computers/program/agents/types.js +9 -2
  151. package/plugins/compute/computers/program/computer.d.ts +3 -0
  152. package/plugins/compute/computers/program/computer.js +4 -0
  153. package/plugins/compute/computers/program/version.d.ts +1 -1
  154. package/plugins/compute/computers/program/version.js +1 -1
  155. package/plugins/compute/computers/program/workloads/http.d.ts +9 -3
  156. package/plugins/compute/computers/program/workloads/http.js +4 -3
  157. package/plugins/compute/computers/program/workloads/jobs.d.ts +16 -1
  158. package/plugins/compute/computers/program/workloads/jobs.js +145 -64
  159. package/plugins/compute/computers/program/workloads/search.d.ts +1 -1
  160. package/plugins/compute/computers/program/workloads/sockets.d.ts +17 -0
  161. package/plugins/compute/computers/program/workloads/sockets.js +86 -0
  162. package/plugins/compute/computers/resources/downloads.js +1 -1
  163. package/plugins/compute/computers/resources/engines.d.ts +21 -7
  164. package/plugins/compute/computers/resources/engines.js +27 -3
  165. package/plugins/compute/computers/resources/preview-sockets.d.ts +28 -0
  166. package/plugins/compute/computers/resources/preview-sockets.js +86 -0
  167. package/plugins/compute/computers/resources/previews.d.ts +13 -7
  168. package/plugins/compute/computers/resources/previews.js +112 -59
  169. package/plugins/compute/computers/resources/tools.js +153 -17
  170. package/plugins/compute/computers/shared/ask.d.ts +17 -18
  171. package/plugins/compute/computers/shared/ask.js +26 -17
  172. package/plugins/compute/computers/shared/claims.d.ts +26 -0
  173. package/plugins/compute/computers/shared/claims.js +3 -0
  174. package/plugins/compute/computers/shared/desks.d.ts +4 -3
  175. package/plugins/compute/computers/shared/desks.js +9 -3
  176. package/plugins/compute/computers/shared/domains.d.ts +52 -0
  177. package/plugins/compute/computers/shared/domains.js +123 -0
  178. package/plugins/compute/computers/shared/hosts.d.ts +14 -0
  179. package/plugins/compute/computers/shared/hosts.js +92 -0
  180. package/plugins/compute/computers/shared/publish.d.ts +48 -0
  181. package/plugins/compute/computers/shared/publish.js +129 -0
  182. package/plugins/compute/computers/shared/served.d.ts +33 -0
  183. package/plugins/compute/computers/shared/served.js +61 -0
  184. package/plugins/compute/computers/shared/settings.d.ts +52 -15
  185. package/plugins/compute/computers/shared/settings.js +18 -2
  186. package/plugins/compute/computers/shared/sockets.d.ts +67 -0
  187. package/plugins/compute/computers/shared/sockets.js +296 -0
  188. package/plugins/compute/computers/shared/where.d.ts +22 -7
  189. package/plugins/compute/computers/shared/where.js +22 -5
  190. package/plugins/compute/computers/shared/workloads.d.ts +53 -3
  191. package/plugins/compute/computers/shared/workloads.js +28 -0
  192. package/plugins/compute/computers/views/context.d.ts +3 -1
  193. package/plugins/compute/computers/views/context.js +24 -14
  194. package/plugins/compute/computers/views/web/allowed.js +1 -1
  195. package/plugins/compute/computers/views/web/asked.d.ts +3 -3
  196. package/plugins/compute/computers/views/web/asked.js +6 -6
  197. package/plugins/compute/computers/views/web/asks.d.ts +2 -2
  198. package/plugins/compute/computers/views/web/asks.js +3 -3
  199. package/plugins/compute/computers/views/web/plan-states.d.ts +8 -10
  200. package/plugins/compute/computers/views/web/plans-data.d.ts +3 -5
  201. package/plugins/compute/computers/views/web/plans-data.js +0 -1
  202. package/plugins/compute/computers/views/web/plans.d.ts +4 -4
  203. package/plugins/compute/computers/views/web/plans.js +7 -35
  204. package/plugins/compute/computers/views/web/publish.d.ts +25 -0
  205. package/plugins/compute/computers/views/web/publish.js +114 -0
  206. package/plugins/compute/computers/views/web/serve.d.ts +4 -3
  207. package/plugins/compute/computers/views/web/serve.js +37 -25
  208. package/plugins/compute/computers/views/web/style.d.ts +1 -1
  209. package/plugins/compute/computers/views/web/style.js +33 -9
  210. package/plugins/compute/computers/views/web/words.d.ts +1 -1
  211. package/plugins/compute/computers/views/web/words.js +31 -8
  212. package/plugins/interfaces/voice/routes/relay.d.ts +50 -1
  213. package/plugins/interfaces/voice/routes/relay.js +2 -53
  214. package/plugins/interfaces/web/contract.d.ts +1 -1
  215. package/plugins/interfaces/web/contract.js +1 -1
  216. package/plugins/interfaces/web/shared/orgs.d.ts +3 -1
  217. package/plugins/interfaces/web/shared/orgs.js +11 -0
  218. package/plugins/interfaces/web/views/words.d.ts +1 -1
  219. package/plugins/interfaces/web/views/words.js +2 -0
  220. package/plugins/models/actions/check.js +2 -2
  221. package/plugins/models/actions/offered.d.ts +9 -0
  222. package/plugins/models/actions/offered.js +134 -11
  223. package/plugins/models/contract.d.ts +11 -23
  224. package/plugins/models/contract.js +6 -0
  225. package/plugins/models/mod.d.ts +4 -3
  226. package/plugins/models/mod.js +4 -3
  227. package/plugins/models/shared/choice.d.ts +22 -9
  228. package/plugins/models/shared/choice.js +14 -7
  229. package/plugins/models/shared/plans.d.ts +68 -12
  230. package/plugins/models/shared/plans.js +47 -30
  231. package/runtime/define.d.ts +38 -0
  232. package/runtime/fetch.d.ts +2 -1
  233. package/runtime/fetch.js +45 -0
package/AGENTS.md CHANGED
@@ -4,7 +4,7 @@ A guide for coding agents (Claude Code, Codex, Cursor, Gemini) building an app w
4
4
  whole before you write code. The last section is for work on Pairz itself.
5
5
 
6
6
  It ships in the package (`node_modules/pairz/AGENTS.md`, and `@pairz/pairz` on JSR) and goes with
7
- `pairz@1.0.0-rc.81`. The [reading list](llms.txt) links to every docs page in the installed package.
7
+ `pairz@1.0.0-rc.83`. The [reading list](llms.txt) links to every docs page in the installed package.
8
8
  The same pages are online at https://pairz.ai/llms.txt. When you're unsure of a name, fetch its page
9
9
  or read the package's types (`node_modules/pairz/**/*.d.ts`). Don't guess.
10
10
 
@@ -153,11 +153,19 @@ It runs on Node 24+, Deno 2.9+ and Bun.
153
153
 
154
154
  **Computers and plans**
155
155
 
156
- - Run a tier's models on each person's plans first, in their order → `harness` on a provider,
157
- `tiers.harnesses`, `modelChoice.harnesses`, `connectedPlans` →
158
- [Plans first](docs/guides/agents-on-peoples-plans.md#plans-first).
156
+ - Run a tier's models on each person's plans → `harness` on a provider, `modelChoice.harnesses`,
157
+ `connectedPlans` →
158
+ [A tier's models on people's plans](docs/guides/agents-on-peoples-plans.md#a-tiers-models-on-peoples-plans).
159
+ - Use members' subscriptions whenever possible, with a tier's fallbacks on them →
160
+ `tiers.plansFirst`, a tier's `fallbacks` →
161
+ [Subscriptions whenever possible](docs/guides/agents-on-peoples-plans.md#subscriptions-whenever-possible).
162
+ - Run a model a plan names its own way (Cursor's) → `serves` (`CURSOR_NAMES`) →
163
+ [Cursor's names for models](docs/guides/agents-on-peoples-plans.md#cursors-names-for-models).
164
+ - Offer a tier's models by how each is paid for → `models.offered` with `plans`, `model.pick`'s
165
+ `plans` →
166
+ [Choosing a tier's models](docs/guides/agents-on-peoples-plans.md#choosing-a-tiers-models).
159
167
  - See what a chain would try for someone → `models.check` with `harnesses` →
160
- [Plans first](docs/guides/agents-on-peoples-plans.md#plans-first).
168
+ [A tier's models on people's plans](docs/guides/agents-on-peoples-plans.md#a-tiers-models-on-peoples-plans).
161
169
  - Run agents on a person's Grok plan → `grok-plan`, engine `grok` →
162
170
  [The providers](docs/guides/agents-on-peoples-plans.md#the-providers).
163
171
  - Run agents on a person's Cursor plan → `cursor-plan`, engine `cursor` (Cursor's SDK, with Node) →
@@ -235,7 +243,7 @@ Plugins reach each other only through the runtime, by name. One that builds on a
235
243
  Start on Node 24 or newer:
236
244
 
237
245
  ```sh
238
- npx pairz@1.0.0-rc.81 init orders
246
+ npx pairz@1.0.0-rc.83 init orders
239
247
  cd orders
240
248
  npm run check
241
249
  npm run dev
@@ -254,7 +262,7 @@ for fields such as `requires`, `defaults` and `guard`, `lib/web/` for React comp
254
262
  names in `pairz-env.d.ts`. Commit that declaration and ignore `.pairz/build/`. The server imports
255
263
  `#pairz/plugins/<name>/mod.ts`, the browser `web.ts` and the terminal `terminal.ts` from the same
256
264
  folder. The starter's dev script watches declarations and the server. On Deno, the compiler entry is
257
- `deno run -A jsr:@pairz/pairz@1.0.0-rc.81/gen`.
265
+ `deno run -A jsr:@pairz/pairz@1.0.0-rc.83/gen`.
258
266
 
259
267
  Existing plugins with a hand-written `mod.ts` keep their own assembly and explicit schemas. List
260
268
  them alongside generated plugins in `app.ts`. [The compiler](docs/guides/the-compiler.md).
@@ -265,7 +273,7 @@ line `@AGENTS.md` (Claude Code reads `CLAUDE.md`, and follows the import). Keep
265
273
  ```markdown
266
274
  # AGENTS.md
267
275
 
268
- This app runs on Pairz (pairz@1.0.0-rc.81). Read node_modules/pairz/AGENTS.md first;
276
+ This app runs on Pairz (pairz@1.0.0-rc.83). Read node_modules/pairz/AGENTS.md first;
269
277
  node_modules/pairz/llms.txt lists the installed guides.
270
278
 
271
279
  - `npm test` runs offline. Run `npm run build` after editing declarations. `npm run check` checks
package/CHANGELOG.md CHANGED
@@ -1,3 +1,246 @@
1
+ ## 1.0.0-rc.83 — 2026-12-04
2
+
3
+ ### Added
4
+
5
+ - **Members' subscriptions whenever possible: one switch for the org.** On the org's Agents page,
6
+ next to "Members can use", its owners and admins tick **Use members' subscriptions whenever
7
+ possible** (`tiers.plansFirst { on }`, kept on the org's `modelChoice` as `plansFirst`). On, every
8
+ model of an agent's chain runs on the member's plans before any runs on credits, as every turn did
9
+ before this release. The page warns, while it's on, that agents may end up on the same model and
10
+ lose what makes them complementary. `modelChoice.offered` says it (`org.plansFirst`, where the app
11
+ has plans), and prices a tier for the person looking as their turns run it.
12
+ - **A tier's fallbacks on members' subscriptions.** A tier names `fallbacks`, one model per maker,
13
+ each as a chain's entry (`"anthropic/claude-opus-5-5"`, or `{ model, effort }`): with the switch
14
+ on, they're tried after any agent's chain (those people made too), on the member's plans only,
15
+ never on credits, before the chain's credits. The tier editor has them as one row under the kinds
16
+ of work ("When a member's subscriptions run none of these"); `tiers.save` takes them (`fallbacks`,
17
+ null for the app's; one kept keeps its settings), and refuses one no plan of the app's runs, as
18
+ the app's startup check does for its own tiers. An app without plans never uses them; a tier
19
+ without them has none.
20
+ - **The models plugin: `plansFirst` and `planFallbacks`.** Beside `harnesses` and `served`, a model
21
+ list takes `plansFirst: true` (every model on the person's plans before any API) and
22
+ `planFallbacks` (models tried after the list on their plans only, never on an API). `models.check`
23
+ answers either.
24
+
25
+ ### Changed
26
+
27
+ - **Staff's agents ask a computer's owner before every piece of work.** When platform staff (the
28
+ app's support access in a customer's org, with `@pairz/directory`) direct an agent on a computer
29
+ that isn't theirs, its owner is asked before every command, job, write, publish or destroy,
30
+ whatever the computer is set to ask (a cloud computer made with `approve: []` too) and whoever
31
+ answers there. The owner answers "Yes, this once" or "No". Nothing they allowed before (always,
32
+ for a conversation, for a routine) covers it, a "Yes, always" to another ask doesn't either, and
33
+ staff can't answer it. The agent tells staff it's waiting for the owner's yes, and the owner sees
34
+ the card wherever the app shows what agents ask them. On the computer's page, staff can look but
35
+ not change anything: its terminal, jobs, writes and uploads are refused, and so are making,
36
+ opening, publishing or taking away its previews and their custom domains. The org's own people
37
+ work as the computer says, as before. Before, an agent working for staff cloned a repository and
38
+ started a server on a customer's cloud computer set to ask nothing, and nobody was asked.
39
+ - **A tier's order comes first now: the default runs a chain model by model.** Where the app has
40
+ people's plans, a turn runs the tier's first model on the member's plans that run it, then on
41
+ credits, then the next model the same way, so a tier's choice of models holds. Before, every model
42
+ ran on their plans before any ran on credits (someone with only ChatGPT got GPT-6.2 Sol on it
43
+ before Opus on credits). An org that wants that turns the switch on (above); an org that never
44
+ said is off. A model list given `harnesses` without `plansFirst` runs the same way (`models.check`
45
+ too), and a plan at its limit hands over to the next entry: without the switch, the same model on
46
+ credits.
47
+ - **Edited agents keep getting the app's new tools.** The org's version of one of the app's agents
48
+ keeps only what the org changed of its tools, `tools: { add, remove }`, so tools the app gives its
49
+ agents later (rc.82's `publish`, `save_file`, `send_file`) reach it, switched on in its editor.
50
+ `agent.update` still takes the whole list. An agent the org made keeps its own list.
51
+ - **An override saved before this release** kept its whole list: it reads as the app's tools plus
52
+ what the list has beyond them, nothing taken away, and is kept the new way on its next save. So
53
+ a tool the org took off one of the app's agents before rc.83 comes back once: take it off again
54
+ in the agent's editor.
55
+
56
+ ### Fixed
57
+
58
+ - **A computer owner's answer to staff's agent lets the turn go on.** When an agent worked for
59
+ platform staff and the computer's owner answered its ask, the conversation went on as the staff
60
+ person without their staff access, so the answer failed ("out of your reach") and the turn never
61
+ resumed. An ask now keeps that it's for staff (`approval.staff`), and the answer goes on as them.
62
+ - **Agents on a Gemini plan can use the computer's tools, and a plan's CLI never refuses a tool in
63
+ silence.** Gemini's agent (Antigravity) asked before each of the agent's tools, and the program,
64
+ guessing from what it said a tool did, refused `pairz/terminal` (an `execute`): every computer
65
+ tool on a Gemini plan came back denied, nothing reached its person to approve, and the agent told
66
+ them to approve a request that never came. There's one approval system now, the app's:
67
+ - **The CLIs don't ask.** The program starts each with settings that allow the agent's tools by
68
+ its server's name and keep the CLI's own off: Antigravity's `mcp(pairz/*)` rule, Claude Code's
69
+ `--allowedTools mcp__pairz`, Codex's `default_tools_approval_mode = "approve"`, Grok Build's
70
+ `--always-approve` with no tools of its own, and Cursor's SDK, which runs tools without asking.
71
+ - **What one asks anyway** is answered by whose tool it is, never by its kind: one named exactly
72
+ as one of the session's tools with the agent's server (`pairz/terminal`, `mcp__pairz__terminal`,
73
+ in the request, or in the tool call a request names by its id alone), allowed; anything else,
74
+ refused. Antigravity titles its own command with the command, so a title that only starts with
75
+ the server's name (`pairz/../…`, `pairz:;curl …`) is refused. Claude Code's questions reach the
76
+ program now (`--permission-prompt-tool stdio`) instead of being denied unseen, and Codex's
77
+ asking to call the agent's server is a yes.
78
+ - **A refusal is never silent.** The model is told, where its CLI takes words, that the computer's
79
+ AI app blocked it and nobody can approve it; the answer says the same to the person, once per
80
+ tool and step; and the app counts it (`pairz.engine.refused`, by engine) and logs it. The
81
+ program says it as a new prompt event, `refused`, which an older app skips.
82
+ - **A wait and a block are told apart.** A tool waiting for a yes in a turn now adds that it's a
83
+ question on a card in the conversation, and that the agent goes on once it's answered.
84
+ - **Checked.** The suite replays each CLI's permission requests, as its vendor documents them or
85
+ as it was seen to send them, through the program, with no CLI or plan; and
86
+ `node scripts/engines-check.ts --from <root>` runs each signed-in CLI live, in a scratch copy of
87
+ its home, before a release is tagged.
88
+ - **Pages work on older browsers again.** Since 1.0.0-rc.81 the web host calls
89
+ `Promise.withResolvers` as it starts (Chrome 119, Safari 17.4, Firefox 121), and pages also use
90
+ `AbortSignal.any` (Chrome 116): an older Chrome showed a blank page after sign-in. The web host
91
+ and the widget install both first where they're missing (`hosts/web/polyfills.ts`), and an app
92
+ that bundles the npm package (`pairz/web/node`'s `bundle`, Vite, webpack) keeps them: the
93
+ package's `sideEffects` names them, where `false` let a bundler drop the import.
94
+ - **Your AI lists every plan the app has.** It listed only the plans that ran a model some tier
95
+ named, so a plan whose models no tier had yet (Grok's, once Compass's tiers stopped naming Grok)
96
+ disappeared, though connecting it is what makes its models free in the picker. Every plan shows
97
+ now, in the plans' order, each still tested on the first tier model it runs.
98
+ - **`agent.known` shows the org's version of one of the app's agents over the app's,** with the
99
+ app's model and its tools, rather than without a model.
100
+
101
+ - **Cursor's names for three more models.** `CURSOR_NAMES` gains `gemini-3-flash` (Google's
102
+ `gemini-3-flash-preview`), `glm-5p3` and `glm-5p3-flash` (Z.ai's `glm-5.3`, `glm-5.3-flash`), read
103
+ from a Cursor plan's own model list (56 models; the rest are the makers' API names or Cursor's
104
+ own).
105
+
106
+ ## 1.0.0-rc.82 — 2026-12-04
107
+
108
+ ### Added
109
+
110
+ - **WebSockets through previews.** A preview carries a WebSocket to its job's port, both ways, for
111
+ as long as it's open: a dev server's live reload, or an app's own sockets. The browser's handshake
112
+ reaches the port's server as it was (its path, cookies, `origin` and the subprotocols it offers),
113
+ and the subprotocol the server chooses is the browser's. Text, binary and each side's close (its
114
+ code and reason) go through, over the computer's own connection (`computer.ws`), each side reading
115
+ only as fast as the other sends on. While a socket is open, its computer is kept awake (the
116
+ `computerWake` hook's `touch`, every minute). Who may open it is asked as for a page, once, as it
117
+ opens: a member's cookie, or anyone for a `link` preview. A members' preview's socket opens only
118
+ from its own pages (its `Origin`; another host's page gets 403), since a socket has no CORS and
119
+ the cookie goes from any page on the same site.
120
+ - **Update the computer program.** A computer whose program doesn't serve `computer.ws` (its
121
+ `info.serves` doesn't list it) answers a socket with a 501 that says to update it. A computer
122
+ updates itself when the app offers a newer release. One that's offline answers 503: a socket
123
+ doesn't wake it, the page's own requests do.
124
+ - **Limits.** A message is 256 KiB at most under `listen` (1 MiB under `Deno.serve`). A socket
125
+ closes with 1009 when more than 4 MiB waits for the other side. Each open socket is one of the
126
+ computer's 256 jobs at once. Someone who leaves the space keeps a socket they opened until it
127
+ closes. WebSocket's own pings are answered at each end, not carried through.
128
+ - **A route takes a WebSocket with `ctx.upgrade({ protocol? })`.** It gives `{ socket, response }`:
129
+ the route answers with `response`, and `socket` is a browser's `WebSocket` for events, `send`,
130
+ `close` and `bufferedAmount` (`RouteSocket`). It works under every listener: Deno's own upgrade
131
+ under `Deno.serve(runtime.fetch)`, Oxian's under `listen` (Node, Bun and Deno), a `WebSocketPair`
132
+ on workerd. A request that isn't an upgrade, or doesn't offer `protocol`, is a 400. A route that
133
+ uses Oxian's `upgradeWebSocket` keeps working under `listen`. The voice relay and
134
+ `examples/web-node/routes.ts` use `upgrade()` now.
135
+
136
+ - **Publishing is a preview made public under a name.** `computer.publish { label, name }` puts a
137
+ preview at `https://<name>.<domain>/` on each of the app's publish domains (`computers.publish`
138
+ `{ domains, reserved?, cname? }`: `["pairz.app", "copilotz.app"]`, the same app on all, no
139
+ redirect), open to anyone, its job kept running. A name is a DNS label (3 to 40 lowercase letters,
140
+ digits and hyphens, none first or last; never a word kept for the app, one ending `-preview` or
141
+ starting `xn--`), one across the whole app: where many orgs are served it's claimed once at the
142
+ directory, as the name, so changing the domains needs no new claims. Published again under another
143
+ name, it moves. `computer.unpublish { label }` lets the name go;
144
+ `computer.publish.check { name, label? }` says whether a name is free, and where it'd be.
145
+ - **Who may open a preview changes in place.** `computer.preview.visibility { label, visibility }`:
146
+ its address stays (before, a new link was made). A published one stays open to anyone.
147
+ - **Custom domains.** Offered where the app says where a domain points (`publish.cname`); without it
148
+ `domain.claim` refuses and the page doesn't show them. `domain.claim { host, name }` gives the DNS
149
+ records to make: the TXT record `_pairz.<host>` with a token, and its CNAME where the app says
150
+ (`publish.cname`). `domain.verify { host }` looks the TXT record up (the `dns` adapter: DNS over
151
+ HTTPS, Cloudflare's resolver, by default) and, found, serves the host for the name: claimed at the
152
+ directory, and given to the app's TLS where it has one (a `customHostnames` resource,
153
+ `{ add, remove }`, which Compass fills with Cloudflare for SaaS's custom hostnames).
154
+ `domain.remove { host }` and `domain.list { in? }`. Unpublishing a name takes its domains with it.
155
+ - **A published app keeps running.** Publishing marks its job kept (`computer.jobs.keep`, new in the
156
+ computer program). A kept job that ends on its own is started again as the same job, after a
157
+ second, then twice as long each time it ends again, up to a minute; once it's stayed up a minute,
158
+ a second again. Agents keep a job too: `start_job`'s `keep`.
159
+ - **Agents publish only after their person's yes, every time.** The `publish` tool (a job, a port or
160
+ a preview of the space, and a name) and the `preview` tool's `visibility: "link"` ask the
161
+ `publish` kind first ("publish shop at https://shop.pairz.app/ from job web"). The Actions that
162
+ open a preview to anyone refuse an agent calling them itself.
163
+ - **A visitor waits on a page, not a hang.** A browser opening a preview or a published app whose
164
+ computer is asleep gets "Waking up <name>…", a page that reloads itself, while it wakes (one wake
165
+ for every visit); a fetch gets a 503 with `Retry-After`. A computer off that nothing wakes (a
166
+ person's own) says it's offline at once, rather than after 90 seconds. A port nothing answers on
167
+ yet (the server starting, or starting again) shows "Starting <name>…" rather than the program's
168
+ 502.
169
+ - **On the web,** a preview's menu publishes it under a name (a dialog that checks the name as it's
170
+ typed and shows its addresses); a published one shows its addresses and its custom domains: add
171
+ one, the records to make, check DNS, remove it. Their words are the app's (`computers.publish…`,
172
+ `computers.domain…`; in pt-BR in `ptBR`).
173
+
174
+ - **The tier editor offers every model the org can run, each saying how it's paid for.** Team's
175
+ picker with `plans` (`model.pick`'s hint; the tier editor sets it) asks `models.offered` with
176
+ `plans: true`: each maker's model says the app's plans that run it (`plans`: "Claude", "Cursor")
177
+ and the first of the asker's connected plans that does (`yours`). It reads "Your Claude · $0", or
178
+ "Credits · …" where a key covers it, or, for a model only plans run, "Members without Claude or
179
+ Cursor fall back to the next model" (it can be chosen for a tier) or, in a person's own org,
180
+ "Connect Claude to use". The plans aren't providers of their own there; a plan's own models are
181
+ (Cursor's Composer, and what the asker's Cursor lists that's no maker's model).
182
+ - **Any model can be first in a tier.** A fallback moves up to the model's place ("Try it first").
183
+ - **An org puts its tiers in its own order.** `tiers.order` `{ tiers }` (each of the org's tiers,
184
+ once, lowest first), and "Move before"/"Move after" on a tier's card: a new tier goes anywhere,
185
+ not only last. A cap is "up to" a tier in that order. Back to the original keeps a tier's place.
186
+ - **"Members can use": all tiers, up to one, or only the default.** One select on the org's Agents
187
+ page, `tiers.cap` `{ tier }` or `{ fixed: true }`. Only the default: every chat runs on the org's
188
+ default, and nobody chooses one for a space, a conversation or themselves (`tiers.choose` below
189
+ the org fails `forbidden`, for owners and admins too, until it's changed); the composer says the
190
+ tier with nothing to switch. `Shown.org.fixed` says so.
191
+ - **Cursor's names for models.** A plan's `serves` map can name a model its own way, and a plan with
192
+ a list now runs a model by that name too (the API's name first). Cursor's table, `CURSOR_NAMES`,
193
+ goes into `cursor-plan`'s map: `gemini-3.1-pro` is `google/gemini-3.1-pro-preview`, and
194
+ `composer-2.5` is Cursor's own.
195
+ - **A finance role.** An org's `finance` people are members who also see what the whole org used
196
+ (`usage.org`, `usage.activity`, the Usage section's everyone), as owners and admins do; everyone
197
+ else sees their own, by model and day. It runs nothing: Billing stays with owners and admins.
198
+ `seesOrgUsage` (spaces' contract, and the web shell's for a standing) says who does.
199
+
200
+ ### Changed
201
+
202
+ - **Preview domains are a list.** `computers.previews.domains` (the first is where new previews go);
203
+ `domain`, a string, keeps working as a list of one. Every preview's label answers on every preview
204
+ domain, so `…-preview.copilotz.app` links keep working beside `pairz.dev`. Where many orgs are
205
+ served, a preview's label is claimed as a name (`claimName`) rather than one host; previews made
206
+ before are claimed that way once, as a deploy first starts (`computer.claimNames`).
207
+ - **The directory claims names.** `host.claim` takes `<name>.*`: that first label on every domain, a
208
+ host's own claim coming first. An org's `directory` resource gains `claimName`, `releaseName` and
209
+ `nameFree` (`host.free`).
210
+ - Published names and custom domains reach the app on hosts other than its own, so they need the
211
+ app's own hosts named (`hosts`), as an app serving many orgs has.
212
+
213
+ - **Subscriptions pay automatically, in one order.** A turn runs each model on the person's plans
214
+ that run it, in the plans' own order (a maker's plan before Cursor's), before any credits. There's
215
+ no order for a person to keep.
216
+ - **Your AI shows a connected plan that runs none of the tiers' models** (Cursor's, say), tested on
217
+ the first model it lists, instead of hiding it.
218
+
219
+ ### Removed
220
+
221
+ - **A person's order of their plans.** `tiers.harnesses`, `modelChoice`'s `harnesses`, and Your AI's
222
+ "Use my plans in this order" are gone, with `planList`'s `order`. A person's choice saved with an
223
+ order still reads (its order passed over), and their next choice drops it.
224
+
225
+ ### Fixed
226
+
227
+ - **A page bundled with `bundle()` draws again.** Since 1.0.0-rc.81 the web host and the widget load
228
+ React's DOM client as they draw; split off by esbuild, its CommonJS names came only as the chunk's
229
+ default, so the page stayed blank (`createRoot` undefined). Either shape is taken now
230
+ (`hosts/web/dom-client.ts`), and a test bundles and runs it.
231
+ - **A voice line's call under `Deno.serve(runtime.fetch)`.** Its relay took the socket with Oxian's
232
+ route upgrade, which only `listen` completes, so Deno answered Twilio's socket with a 204. It
233
+ takes it with `ctx.upgrade()` now.
234
+
235
+ ### Known limits
236
+
237
+ - A custom domain at a zone's apex needs a DNS provider that flattens a CNAME there (or an ALIAS); a
238
+ domain stays the org's that verified it until it's removed, even if its DNS moves.
239
+ - Unpublishing leaves the job kept; stop it, or start it again without `keep`, to let it go.
240
+ - Another instance of the directory may answer an old claim for up to a minute after a change.
241
+ - Two people of one org publishing the same new name at the same moment may both succeed; the last
242
+ one has it.
243
+
1
244
  ## 1.0.0-rc.81 — 2026-12-03
2
245
 
3
246
  ### Added
package/CONTRIBUTING.md CHANGED
@@ -90,7 +90,7 @@ docs/ Getting Started, Build Compass, the guides, operations, the refe
90
90
  scripts/ catalog.ts (refreshes the models.dev snapshot); npm/ (builds the npm package, and
91
91
  smoke-tests it installed); computer/ (builds the computer program); describe.ts
92
92
  (plugins' declarations and their reference pages); docs-index.py
93
- (docs/manifest.json)
93
+ (docs/manifest.json); engines-check.ts (the plans' CLIs, live, before a release)
94
94
  examples/ terminal-agent (an app: its plugins and resources, run in the terminal host, or in a
95
95
  browser: web.ts serves it on Deno, harbor.tsx and brands.ts the same app as another
96
96
  brand, gallery.tsx the logo, type and toolkit, orgs.ts many orgs on Postgres);
@@ -224,7 +224,22 @@ every runtime for that commit on main.
224
224
  `## X.Y.Z — YYYY-MM-DD`. The release notes are what's under it.
225
225
  2. **A pull request** for the branch, merged with a squash merge. The push to main runs the test
226
226
  workflow on the merge commit.
227
- 3. **A lightweight tag** `vX.Y.Z` on the merge commit, pushed (right away, or once its tests pass):
227
+ 3. **The plans' CLIs, live, before tagging.** The suite checks how the computer program answers each
228
+ CLI's permission requests against recorded ones
229
+ (`plugins/compute/tests/engine-permissions.test.ts`), with no CLI or plan. This checks the CLIs
230
+ themselves, on a machine where Your AI signed them in, by hand:
231
+
232
+ ```sh
233
+ node scripts/engines-check.ts --from ~/Computer/<app> # --only claude,codex; --model codex=<model>
234
+ ```
235
+
236
+ For each CLI installed and signed in there, it starts it as the program does, in a scratch copy
237
+ of its home (its sign-in, none of its sessions, in the system's temp, removed after), and has it
238
+ call the agent's `terminal` tool with `echo ok` end to end, with nothing asked and nothing
239
+ refused. It says pass, fail or skip for each (skip: not installed, or a sign-in that doesn't
240
+ copy), and runs nothing on the machine: the check answers the call itself. A fail is fixed before
241
+ the tag.
242
+ 4. **A lightweight tag** `vX.Y.Z` on the merge commit, pushed (right away, or once its tests pass):
228
243
 
229
244
  ```sh
230
245
  git tag vX.Y.Z <merge-commit> && git push origin vX.Y.Z
package/README.md CHANGED
@@ -149,7 +149,7 @@ ana sees: Tue 10:00, Wed 15:00
149
149
 
150
150
  ## Install and run
151
151
 
152
- Start a new app with `npx pairz@1.0.0-rc.81 init orders`. The starter includes the compiler, a
152
+ Start a new app with `npx pairz@1.0.0-rc.83 init orders`. The starter includes the compiler, a
153
153
  plugin, a web page and tests. [Start an app](docs/guides/the-compiler.md#start-an-app).
154
154
 
155
155
  To add the runtime to an existing project:
@@ -157,7 +157,7 @@ To add the runtime to an existing project:
157
157
  ```sh
158
158
  npm install pairz@next # Node 24+ (npm, pnpm, yarn)
159
159
  bun add pairz@next # Bun
160
- deno add jsr:@pairz/pairz@^1.0.0-rc.81 # Deno 2.9+ (or `deno add npm:pairz@next`)
160
+ deno add jsr:@pairz/pairz@^1.0.0-rc.83 # Deno 2.9+ (or `deno add npm:pairz@next`)
161
161
  ```
162
162
 
163
163
  Until 1.0, the release candidates are on npm's `next` tag, and a plain `npm install pairz` or
@@ -170,7 +170,7 @@ Save the example as `salon.ts`, and run it with an OpenAI key:
170
170
  OPENAI_API_KEY=sk-… node salon.ts # or bun salon.ts, or deno run -A salon.ts
171
171
  ```
172
172
 
173
- On Deno, map the name `pairz` in `deno.json` (`"pairz": "jsr:@pairz/pairz@^1.0.0-rc.81"`) so the
173
+ On Deno, map the name `pairz` in `deno.json` (`"pairz": "jsr:@pairz/pairz@^1.0.0-rc.83"`) so the
174
174
  imports read the same everywhere. Pairz runs on Node 24+, Deno 2.9+ and Bun, and it's built on web
175
175
  standards for Cloudflare Workers and the browser.
176
176
 
@@ -95,7 +95,7 @@ below follow the course repository and its hand-written plugin assembly.
95
95
  ```sh
96
96
  mkdir compass && cd compass
97
97
  npm init -y && npm pkg set type=module
98
- npm install pairz@1.0.0-rc.81 react@19 react-dom@19
98
+ npm install pairz@1.0.0-rc.83 react@19 react-dom@19
99
99
  npm install -D typescript @types/node @types/react @types/react-dom esbuild
100
100
  ```
101
101
 
@@ -11,7 +11,7 @@ status: stable
11
11
  Start an app on Node 24 or newer with the project template:
12
12
 
13
13
  ```sh
14
- npx pairz@1.0.0-rc.81 init orders
14
+ npx pairz@1.0.0-rc.83 init orders
15
15
  cd orders
16
16
  npm run check
17
17
  npm run dev
@@ -10,7 +10,7 @@ order: 9
10
10
  A back-office app is mostly screens: lists to search and export, forms that add and change records,
11
11
  dates, a home page of places, a printed document or two. This guide builds them for the salon's
12
12
  staff: its customers, their visits, and the services it offers. Each recipe is whole files, in the
13
- place they go, and each compiles against `pairz@1.0.0-rc.81`.
13
+ place they go, and each compiles against `pairz@1.0.0-rc.83`.
14
14
 
15
15
  The pieces themselves (every prop, every token) are in [the web toolkit](the-web-toolkit.md). This
16
16
  guide is how to put them together.