@voltro/cli 0.39.1 → 0.40.0

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 (102) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/dist/agentsMd-Bu_XQgVf.js +2 -0
  3. package/dist/{agentsMd-7zI2h5l9.js → agentsMd-D6yD7IQv.js} +31 -14
  4. package/dist/apiBuild-BIyGkym8.js +2 -0
  5. package/dist/{apiBuild-D9FB13_2.js → apiBuild-C8xBEYbL.js} +2 -2
  6. package/dist/bin.js +1 -1
  7. package/dist/{build-DORV5mLM.js → build-CkhFGnKA.js} +168 -165
  8. package/dist/{checkCommand-Bf6oMao4.js → checkCommand-BcXJa2IS.js} +2 -2
  9. package/dist/{checkCommand-D9qK_gtA.js → checkCommand-QbHshOac.js} +1 -1
  10. package/dist/{cloudCmd-C42gaO8s.js → cloudCmd-F4YJeqM3.js} +1 -1
  11. package/dist/{codegenCommand-CxOyKmc1.js → codegenCommand-DF2OJh3O.js} +2 -2
  12. package/dist/{codemodRunner-D-jTyvWo.js → codemodRunner-BcOvi4A2.js} +103 -0
  13. package/dist/{commands-D6aW_6AR.js → commands-7Z7-HOE3.js} +30 -30
  14. package/dist/{dashboardCommand-CwTZh-XZ.js → dashboardCommand-CUycH6dR.js} +5 -5
  15. package/dist/{dataCommand-Cc9RiLQZ.js → dataCommand-By78lscK.js} +1 -1
  16. package/dist/{dev-CjJAasDs.js → dev-D8JSKlBM.js} +1 -1
  17. package/dist/{dev-3mgc8c-H.js → dev-Dh1NuYx1.js} +1569 -1569
  18. package/dist/{doctorCommand-oLuzc-aC.js → doctorCommand-C-8-Z9D6.js} +36 -36
  19. package/dist/doctorCommand-FhQ7EVYL.js +2 -0
  20. package/dist/{dormancyCommand-Bxe4WtHU.js → dormancyCommand-A79Odglm.js} +1 -1
  21. package/dist/{embeddingsCommand-CyNQkFIc.js → embeddingsCommand-CoiyHfkY.js} +1 -1
  22. package/dist/{envCommand-CAkSgBbh.js → envCommand-B6d0s-jZ.js} +8 -8
  23. package/dist/{evolveCommand-CWhBoe_P.js → evolveCommand-BC5a9lxX.js} +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/{infoCommand-CTo8Jnhq.js → infoCommand-ZqSVzJZ4.js} +1 -1
  26. package/dist/{metaCommands-DUYR--Ts.js → metaCommands-CfRLra0s.js} +1 -1
  27. package/dist/{projectScaffold-BEhhHjPr.js → projectScaffold-BIl97_E6.js} +1 -1
  28. package/dist/{projectScaffold-BvhLOrLq.js → projectScaffold-mIX_DpSe.js} +1 -1
  29. package/dist/{runtimeTrace-gNXeLf6H.js → runtimeTrace-BslKJjDY.js} +1 -1
  30. package/dist/{sdkgen-C8zz10-X.js → sdkgen-DQ8uEmmn.js} +1 -1
  31. package/dist/serveCommand-BmvEQCMS.js +2 -0
  32. package/dist/{serveCommand-BpK8-m1N.js → serveCommand-Dqb9Ku1-.js} +656 -656
  33. package/dist/serveEntry.js +1 -1
  34. package/dist/{start-BNuTWdRd.js → start-BA7txHhY.js} +1 -1
  35. package/dist/{start-ft_KzFTd.js → start-dkNYKtgQ.js} +342 -318
  36. package/dist/startEntry.js +1 -1
  37. package/dist/updateCommand-BauSVxPp.js +2 -0
  38. package/dist/{updateCommand-CHBmCB17.js → updateCommand-eoGpZr3E.js} +1 -1
  39. package/dist/webDev-CBbKs4dZ.js +2 -0
  40. package/dist/{webDev-CTpSY-e_.js → webDev-bybjZA0o.js} +240 -186
  41. package/dist/{webhooksCommand-EccPZQZ4.js → webhooksCommand-DubZWNOx.js} +1 -1
  42. package/package.json +29 -17
  43. package/templates/AGENTS.md +1 -1
  44. package/templates/agent-docs/_index.md +1 -1
  45. package/templates/agent-docs/data.md +43 -0
  46. package/templates/agent-docs/routing.md +40 -0
  47. package/templates/agent-docs/whats-new.md +132 -26
  48. package/templates/apps/api-ai/package.json +7 -7
  49. package/templates/apps/api-auth/package.json +8 -8
  50. package/templates/apps/api-backend/package.json +7 -7
  51. package/templates/apps/api-backend-deactivation/package.json +7 -7
  52. package/templates/apps/api-backend-mail/package.json +8 -8
  53. package/templates/apps/api-backend-mariadb/package.json +9 -9
  54. package/templates/apps/api-backend-sqlite/package.json +8 -8
  55. package/templates/apps/api-backend-storage/package.json +8 -8
  56. package/templates/apps/api-cms/package.json +10 -10
  57. package/templates/apps/api-collab/package.json +8 -8
  58. package/templates/apps/api-data-advanced/package.json +8 -8
  59. package/templates/apps/api-durable/package.json +8 -8
  60. package/templates/apps/api-durable/tests/orders.place.test.ts +17 -4
  61. package/templates/apps/api-feature-flags/package.json +9 -9
  62. package/templates/apps/api-governance/package.json +8 -8
  63. package/templates/apps/api-kv/package.json +8 -8
  64. package/templates/apps/api-moderation/package.json +8 -8
  65. package/templates/apps/api-observability/package.json +8 -8
  66. package/templates/apps/api-ratelimit/package.json +8 -8
  67. package/templates/apps/api-rbac/package.json +8 -8
  68. package/templates/apps/api-rest/package.json +7 -7
  69. package/templates/apps/api-saas/package.json +11 -11
  70. package/templates/apps/api-saas-starter/package.json +10 -10
  71. package/templates/apps/api-search/package.json +8 -8
  72. package/templates/apps/api-status/package.json +8 -8
  73. package/templates/apps/api-versioning/package.json +8 -8
  74. package/templates/apps/api-webhooks/package.json +9 -9
  75. package/templates/apps/changelog/package.json +6 -6
  76. package/templates/apps/changelog/src/pages/[slug]/page.test.tsx +8 -1
  77. package/templates/apps/edge-functions/package.json +2 -2
  78. package/templates/apps/frontend-admin/package.json +8 -8
  79. package/templates/apps/frontend-app/package.json +9 -9
  80. package/templates/apps/frontend-auth/package.json +8 -8
  81. package/templates/apps/frontend-blank/package.json +7 -7
  82. package/templates/apps/frontend-cms/package.json +9 -9
  83. package/templates/apps/frontend-collab/package.json +10 -10
  84. package/templates/apps/frontend-contact/package.json +7 -7
  85. package/templates/apps/frontend-dashboard/package.json +7 -7
  86. package/templates/apps/frontend-docs/package.json +7 -7
  87. package/templates/apps/frontend-i18n/package.json +6 -6
  88. package/templates/apps/frontend-landing/package.json +7 -7
  89. package/templates/apps/frontend-portal/package.json +8 -8
  90. package/templates/apps/frontend-saas/package.json +8 -8
  91. package/templates/apps/frontend-spa/package.json +7 -7
  92. package/templates/apps/frontend-ssr/package.json +7 -7
  93. package/templates/apps/frontend-ssr-api/package.json +8 -8
  94. package/templates/apps/frontend-static-blog/package.json +6 -6
  95. package/templates/apps/frontend-status/package.json +8 -8
  96. package/templates/apps/mobile-app/package.json +4 -4
  97. package/dist/agentsMd-BFCXh2gl.js +0 -2
  98. package/dist/apiBuild-BmR_bIxN.js +0 -2
  99. package/dist/doctorCommand-Cghssndo.js +0 -2
  100. package/dist/serveCommand-CW-goXvh.js +0 -2
  101. package/dist/updateCommand-6FMU2klq.js +0 -2
  102. package/dist/webDev-id3I5PvG.js +0 -2
@@ -222,7 +222,7 @@ createVerifier({ secret: [process.env.WEBHOOK_SECRET, process.env.WEBHOOK_SECRET
222
222
  ...t === void 0 ? {} : { payload: t }
223
223
  };
224
224
  }, S = u({ scope: "voltro:webhooks" }), C = ["--out", "--name"], w = async (e) => {
225
- let { walk: t, loadDiscovered: n } = await import("./dev-CjJAasDs.js"), { outgoingFromEvents: r } = await import("./webhookDiscovery-il9ti-HE.js");
225
+ let { walk: t, loadDiscovered: n } = await import("./dev-D8JSKlBM.js"), { outgoingFromEvents: r } = await import("./webhookDiscovery-il9ti-HE.js");
226
226
  return r((await n(await t(e))).events.map((e) => ({
227
227
  file: e.file,
228
228
  descriptor: e.descriptor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/cli",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "description": "The `voltro` CLI — dev server, codegen, migrations, project scaffolding, agent-docs seeding, and production serve.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -610,6 +610,18 @@
610
610
  "title": "@voltro/plugin-rbac/web removed — the UI gate lives in @voltro/client",
611
611
  "kind": "transform"
612
612
  },
613
+ {
614
+ "version": "0.40.0",
615
+ "id": "0.40.0/01_cold-start-failure-is-its-own-state",
616
+ "title": "a failed cold start is `failed: true`, not `loading: true`",
617
+ "kind": "manual"
618
+ },
619
+ {
620
+ "version": "0.40.0",
621
+ "id": "0.40.0/02_rejected-credential-widens-guard-results",
622
+ "title": "a rejected credential answers `Unauthenticated`, widening three guard results",
623
+ "kind": "manual"
624
+ },
613
625
  {
614
626
  "version": "0.5.0",
615
627
  "id": "0.5.0/01_one-terminal-exactly-one",
@@ -697,22 +709,22 @@
697
709
  "@effect/platform-node": "^0.108.0",
698
710
  "@effect/sql": "^0.52.0",
699
711
  "@effect/workflow": "^0.19.0",
700
- "@voltro/ai": "0.39.1",
701
- "@voltro/cache": "0.39.1",
702
- "@voltro/data-transfer": "0.39.1",
703
- "@voltro/database": "0.39.1",
704
- "@voltro/env": "0.39.1",
705
- "@voltro/kv": "0.39.1",
706
- "@voltro/logger": "0.39.1",
707
- "@voltro/plugin-auth": "0.39.1",
708
- "@voltro/plugin-broadcast": "0.39.1",
709
- "@voltro/plugin-mail": "0.39.1",
710
- "@voltro/plugin-storage": "0.39.1",
711
- "@voltro/plugin-webhooks": "0.39.1",
712
- "@voltro/protocol": "0.39.1",
713
- "@voltro/runtime": "0.39.1",
714
- "@voltro/serverless": "0.39.1",
715
- "@voltro/workflow": "0.39.1",
712
+ "@voltro/ai": "0.40.0",
713
+ "@voltro/cache": "0.40.0",
714
+ "@voltro/data-transfer": "0.40.0",
715
+ "@voltro/database": "0.40.0",
716
+ "@voltro/env": "0.40.0",
717
+ "@voltro/kv": "0.40.0",
718
+ "@voltro/logger": "0.40.0",
719
+ "@voltro/plugin-auth": "0.40.0",
720
+ "@voltro/plugin-broadcast": "0.40.0",
721
+ "@voltro/plugin-mail": "0.40.0",
722
+ "@voltro/plugin-storage": "0.40.0",
723
+ "@voltro/plugin-webhooks": "0.40.0",
724
+ "@voltro/protocol": "0.40.0",
725
+ "@voltro/runtime": "0.40.0",
726
+ "@voltro/serverless": "0.40.0",
727
+ "@voltro/workflow": "0.40.0",
716
728
  "chokidar": "^5.0.0",
717
729
  "ioredis": "^5.11.1",
718
730
  "tinyglobby": "^0.2.17",
@@ -707,7 +707,7 @@ each plugin's own README.
707
707
 
708
708
  | Topic | Open | Summary |
709
709
  |---|---|---|
710
- | **What's new in 0.39.1** | `node_modules/@voltro/cli/templates/agent-docs/whats-new.md` | Everything that changed in this version. Read it before hand-rolling something the framework may now ship. |
710
+ | **What's new in 0.40.0** | `node_modules/@voltro/cli/templates/agent-docs/whats-new.md` | Everything that changed in this version. Read it before hand-rolling something the framework may now ship. |
711
711
  | AI | `node_modules/@voltro/cli/templates/agent-docs/ai.md` | How Voltro treats AI — agents, tools, streaming, RAG — all primitives over the same WebSocket as the rest of the framework. |
712
712
  | Authentication | `node_modules/@voltro/cli/templates/agent-docs/authentication.md` | How @voltro/plugin-auth wires password + session-cookie auth across api + web, plus the pluggable identity-strategy protocol. |
713
713
  | Caching | `node_modules/@voltro/cli/templates/agent-docs/caching.md` | Voltro's caching layer (@voltro/cache) — an always-on memory default, swappable Redis-compatible backends, a low-level wrap primitive, and automatic query-result invalidation. |
@@ -9,7 +9,7 @@ each plugin's own README.
9
9
 
10
10
  | Topic | Open | Summary |
11
11
  |---|---|---|
12
- | **What's new in 0.39.1** | `node_modules/@voltro/cli/templates/agent-docs/whats-new.md` | Everything that changed in this version. Read it before hand-rolling something the framework may now ship. |
12
+ | **What's new in 0.40.0** | `node_modules/@voltro/cli/templates/agent-docs/whats-new.md` | Everything that changed in this version. Read it before hand-rolling something the framework may now ship. |
13
13
  | AI | `node_modules/@voltro/cli/templates/agent-docs/ai.md` | How Voltro treats AI — agents, tools, streaming, RAG — all primitives over the same WebSocket as the rest of the framework. |
14
14
  | Authentication | `node_modules/@voltro/cli/templates/agent-docs/authentication.md` | How @voltro/plugin-auth wires password + session-cookie auth across api + web, plus the pluggable identity-strategy protocol. |
15
15
  | Caching | `node_modules/@voltro/cli/templates/agent-docs/caching.md` | Voltro's caching layer (@voltro/cache) — an always-on memory default, swappable Redis-compatible backends, a low-level wrap primitive, and automatic query-result invalidation. |
@@ -1728,6 +1728,33 @@ const { data } = useSubscription(
1728
1728
 
1729
1729
  While skipped, no WebSocket subscription opens and `data` stays `undefined`.
1730
1730
 
1731
+ ### A failed cold start is `failed`, not `loading`
1732
+
1733
+ If the first snapshot never arrives because the subscription ERRORED, the state
1734
+ is **`failed: true`, `loading: false`, `data: undefined`** — nothing is in
1735
+ flight and nothing more is coming, so "it is loading" would be a false
1736
+ statement. `error` carries the cause.
1737
+
1738
+ ```tsx
1739
+ const s = useSubscription<Team[]>('app', 'teams.list')
1740
+
1741
+ if (s.loading) return <Skeleton/>
1742
+ if (s.failed) return <RetryPanel error={s.error}/>
1743
+ return <TeamsTable teams={s.data}/>
1744
+ ```
1745
+
1746
+ `failed` is a positive check on purpose. The state used to be `loading: true`
1747
+ with `error` set, and the escape hatch was reading that second field — which the
1748
+ natural shape of a wrapper (`{ data, loading }` passed through) drops. **If you
1749
+ wrap this state, carry `failed` with it**, or your callers inherit an infinite
1750
+ skeleton through your hook.
1751
+
1752
+ Two things this does NOT cover. A failure AFTER the first snapshot leaves the
1753
+ good data on screen and sets `error` — replacing working rows with an error
1754
+ because the socket hiccuped is worse than the hiccup. And the failed state is
1755
+ terminal for one TRANSPORT, not forever: a reconnect discards the error and
1756
+ re-subscribes, so the entry returns to loading on its own.
1757
+
1731
1758
  ### Skipped is `idle`, not `loading`
1732
1759
 
1733
1760
  A skipped subscription reports **`idle: true`, `loading: false`**. The two are
@@ -4711,6 +4738,22 @@ To distinguish "we know about this" from "this surprised us":
4711
4738
  | `throw new Error('oops')` | Surfaces as a defect — full log + trace, generic failure to client |
4712
4739
  | Unexpected exception from a library | Same — caught, logged, generic failure |
4713
4740
 
4741
+ ## What the framework merges into your `error:` union
4742
+
4743
+ You do not declare the errors the framework itself can raise for a procedure —
4744
+ they are unioned into the wire contract for you, and only when the procedure can
4745
+ actually produce them:
4746
+
4747
+ | Merged | Into | When |
4748
+ |---|---|---|
4749
+ | `ScopeError` | query · mutation · action · event | the procedure declares a real `guards:` entry. NOT for `openAccess:` — a procedure advertising a denial it cannot produce is what makes an error union stop meaning anything |
4750
+ | `Unauthenticated` | query · mutation · action · event | the same condition. A guard can refuse for TWO reasons and they mean different things: the caller is known and lacks the scope (`ScopeError`), or they presented a credential that was REJECTED and so arrived anonymous (`Unauthenticated`). Without the second, an expired session reads as a permissions problem |
4751
+ | `BusinessRuleViolation` | mutation | always. A cross-table `rule()` on any table the mutation writes can fail it, and the descriptor cannot know which tables carry rules |
4752
+ | `ApprovalRequired` · `ApprovalExpired` · `ApprovalUnavailable` | mutation · action | the procedure declares `requiresApproval:` |
4753
+
4754
+ So a guarded mutation does **not** need `ScopeError` in its own `error:`. If you
4755
+ declared it anyway, that is harmless — the union is the same either way.
4756
+
4714
4757
  ## Framework-shipped error variants
4715
4758
 
4716
4759
  `@voltro/protocol` exports exactly two tagged errors. The rest of your typed errors are ones you declare yourself (above) or ones a plugin / the runtime contributes.
@@ -1150,6 +1150,46 @@ Auth is resolved by the **api**, never the web app. Two rules follow:
1150
1150
 
1151
1151
  So a cookie-mode Supabase app configures `supabaseStrategy({ cookieName: 'sb-<ref>-auth-token' })` on the **api**; the web loader's `ctx.query` then authenticates for free. See [Supabase Auth](/docs/plugins/auth-supabase).
1152
1152
 
1153
+ ### Renewing an EXPIRED session — `middleware.ts`
1154
+
1155
+ The rules above assume the cookie is still valid. When it is not — a token older
1156
+ than the IdP's lifetime, which for a 1-hour token is practically every first
1157
+ page view of the day — the api resolves the caller to anonymous and every loader
1158
+ and `preload` on the page fails.
1159
+
1160
+ You cannot fix that in a loader. `ctx.query` and every `preload` entry are bound
1161
+ from ONE cookie string **before any loader runs**, so a layout loader that
1162
+ renews the session cannot reach them. `middleware.ts` at the web app root runs
1163
+ earlier than both:
1164
+
1165
+ ```ts
1166
+ // middleware.ts — server-only. NOT app.config.ts, which is imported into the
1167
+ // client bundle whenever an api declares `authHeaders`.
1168
+ export default async (req) => {
1169
+ const fresh = await refreshSession(req.cookies['sb-session'])
1170
+ if (!fresh) return
1171
+ return {
1172
+ headers: { authorization: `Bearer ${fresh.accessToken}` },
1173
+ setCookies: [{ name: 'sb-session', value: fresh.cookie, maxAge: 3600 }],
1174
+ }
1175
+ }
1176
+ ```
1177
+
1178
+ **Write the cookie back.** An IdP that rotates refresh tokens (Supabase does, and
1179
+ detects reuse) will invalidate the session if you renew server-side and leave the
1180
+ browser holding the consumed one. `setCookies` is not an optimisation.
1181
+
1182
+ **It cannot redirect or refuse a request**, deliberately: authorization belongs
1183
+ on the api, which is the only thing that sees the data, and a web-side hook that
1184
+ could refuse would be a second authorization layer beside the real one. For a
1185
+ login redirect, throw `RedirectError` from the loader.
1186
+
1187
+ Headers you return are merged over the request's, and only auth-shaped ones
1188
+ (`authorization`, `x-tenant`, `x-voltro-*`) are forwarded to the api. Cookies
1189
+ default to `HttpOnly`, `Path=/`, `SameSite=lax`. The file is loaded once per
1190
+ boot; if it throws, the request fails rather than rendering with the credential
1191
+ you asked to replace.
1192
+
1153
1193
  ## Errors from loaders
1154
1194
 
1155
1195
  If the loader throws, the framework:
@@ -1,4 +1,4 @@
1
- # What's new in 0.39.1
1
+ # What's new in 0.40.0
2
2
 
3
3
  Read this FIRST when a task touches an area you have not worked in recently.
4
4
  It is the cheapest way to notice that the framework grew the thing you were
@@ -7,50 +7,156 @@ workaround for something that shipped two versions ago.
7
7
 
8
8
  BREAKING entries name a codemod; run `voltro update` to apply it.
9
9
 
10
- ### Fixed
10
+ ### ⚠ BREAKING
11
+
12
+ - **@voltro/client, @voltro/web** — A subscription whose COLD START failed is its own state — `failed: true`, `loading: false` — so "it is loading" is a true statement again.
13
+
14
+ The old shape left `loading: true` for a subscription where nothing was in flight and nothing more was coming. The type's own comment predicted the consequence:
15
+
16
+ > A cold-start failure leaves `loading` TRUE … so a component that branches on > `loading` alone renders a skeleton forever. Check `error` to break out of it.
17
+
18
+ A consumer quoted that back with the right conclusion: **a comment that predicts the misbehaviour of its own field is an API resting on discipline.** `loading` means "something is coming" everywhere else; here it meant "something is coming OR never again", and the escape hatch was a second field that the natural shape of a wrapper — pass `{ data, loading }` through — silently drops. They had three such wrappers. The framework had six, in `useWorkflow.ts`, and the compiler named all six the moment the state existed.
19
+
20
+ `failed` is a positive discriminant, so the check reads as one:
11
21
 
12
- - **@voltro/runtime, @voltro/cli** — An app-registered tuple source is no longer replaced by the framework default.
22
+ ```tsx
23
+ if (s.loading) return <Skeleton/>
24
+ if (s.failed) return <RetryPanel error={s.error}/>
25
+ return <Table rows={s.data}/>
26
+ ```
13
27
 
14
- Both boot paths carried this comment, verbatim:
28
+ **BREAKING**: `!loading` no longer proves `data` is present, so every call site that reads `data` after a bare `loading` check is a type error naming file and line. Nothing fails silently. The codemod is `manual` on purpose — a transform could add `|| s.failed` everywhere and would be wrong about half of them, since an infinite skeleton is precisely what this removes.
15
29
 
16
- > An app whose relationships live in its own tables overrides with > `setTupleSource`.
30
+ **Measured blast radius**, because the estimate was worse than the reality: 20 errors inside `@voltro/client` (mostly its own `useWorkflow` wrapper and the type-tests) and **zero** in `@voltro/web`, `devtools-ui`, the devtools app, the cloud app, and all 45 templates. Most consumers were already using a `fallback` or a wrapper, which is what made the original defect so quiet.
17
31
 
18
- and then called `setTupleSource(default)` **unconditionally**. That call runs AFTER the app's startups `runBootLifecycle` at `dev.ts:3910` and `serveCommand.ts:869`, against the registration at `dev.ts:4065` and `serveApi.ts:937` and `setTupleSource` is last-write-wins. So the framework won every time: an app registering its own source in a `*.startup.tsx`, which is what the docs tell it to do, had it silently replaced.
32
+ Unchanged: a failure AFTER the first snapshot still leaves good data on screen with `error` set only the cold start is `failed`. A `fallback` subscription still has `data` always present, so `failed` reports there rather than gating. `idle` stays opt-in by overload; `failed` is not opt-in, because any subscription's cold start can fail. And the state is terminal for one TRANSPORT: a reconnect discards the error and re-subscribes.
33
+ - **@voltro/protocol, @voltro/runtime, @voltro/voltro** — A guard refusing a caller whose credential was REJECTED now answers `Unauthenticated`, not `ScopeError`.
19
34
 
20
- The consequence is not subtle. Every relationship guard would then be answered from `_voltro_rebac_tuples` empty, for exactly the app that keeps its relations in its own tables so every guard DENIES, fail-closed, with a `no tuple source` warning that never fires because a source *is* registered: the wrong one.
35
+ Measured by a consumer: a user's tab outlived their IdP's token lifetime. The strategy logged it plainly
21
36
 
22
- The comment was not wrong about the design; it described the design while the code removed it. Same shape as the `DORMANCY_WAKEUP_TENANT` scar — equal by value at both call sites, so nothing could fail, and the comment was the only place the intent survived.
37
+ ```
38
+ WARN auth strategy "supabase" rejected request: supabase jwt expired
39
+ WARN mutation.tasks.update failed: missing required scope 'task:u:o'
40
+ ```
23
41
 
24
- `registerDefaultTupleSource` fills the gap only when nobody else did, and returns whether it acted so the boot can say which source is live instead of leaving an operator to guess. `setTupleSource` itself is unchanged: an app calling it twice still gets the second one, because narrowing that would trade one silent surprise for another.
42
+ and the wire said the caller lacked a scope. Technically true (an anonymous caller holds none) and it sends everyone who reads it into the permissions system while the problem is an expired session. They did that round; the subject was their administrator, and the same call with a fresh token worked.
25
43
 
26
- Found while re-checking a consumer's claim that a different item was still open. It was not but it sits beside this, and this is the one that would have bitten them. Pinned in both directions: a unit test for the registrar, and a source guard asserting neither boot path installs `loadResourceTuples` through `setTupleSource` again. Red-verified by restoring the original line.
27
- - **@voltro/cli** — `voltro doctor` no longer reports "scope vocabulary: none found" when it could not read the config at all.
44
+ **The obvious fix would have broken more than it fixed**, which is why this shape and not that one. Failing hard when a strategy rejects would break every `openAccess` procedure for anyone holding a stale cookie — a public page that needs no session at all would start refusing. So the FACT travels instead: a rejected credential stamps `credentialRejected` on the anonymous subject it falls back to, and only a guard that actually refuses spends it. `openAccess` never reaches that point and is untouched.
28
45
 
29
- A consumer HAD configured `doctor.scopeVocabulary` and still read `none found`. The cause was not their vocabulary: `app.config.ts` could not be imported outside their pod — an auth strategy demands its secret while the config is evaluated — so the vocabulary was never read. Inside the pod the message disappears and the rule runs.
46
+ Three details worth knowing if you touch it:
30
47
 
31
- "You have no vocabulary" and "I could not look" are different states, and only the first is a statement about their app. This section already made exactly that distinction one member earlier its own comment reads **DORMANT AND CLEAN MUST NOT PRINT THE SAME** and then collapsed the third.
48
+ - **The stamp happens AFTER the app's `fallback`.** That callback builds its own anonymous subject and knows nothing about the rejection; stamping before it would be silently discarded — the shape of every "wired on one path" defect in this codebase. - **ONE conversion point** (`asRefusal`), at the exit rather than at each `return`. Every branch builds the `ScopeError` it always built; one place decides what it MEANS. - **`Unauthenticated` is merged into the wire union** for guarded procedures AND guarded events, beside `ScopeError`. Without that it would be a tagged error the descriptor cannot represent, and the server would collapse it to `InternalError` — the defect another consumer reported the same week.
32
49
 
33
- The signal existed and was not connected. `offlineManifest` deliberately survives an unimportable config (a doctor run must not die on one), so the empty vocabulary arrived looking like a real absence, while the same failure was reported a hundred lines earlier under plugin tables. The consumer read the section about scopes and searched at the wrong end — which is the correct way to read a report.
50
+ A caller who presented NO credential still gets `ScopeError`. Collapsing both would send a genuinely under-privileged user to the login page.
34
51
 
35
- The rule now probes importability before claiming an absence, and says so:
52
+ **Why this is BREAKING although nothing was removed.** Three published results gained a union member:
36
53
 
54
+ ```ts
55
+ checkGuards(…) // ScopeError | Unauthenticated | null (was ScopeError | null)
56
+ checkGuardsEffect(…) // Effect<ScopeError | Unauthenticated | null>
57
+ bindEvent(…) // Stream<…, ScopeError | Unauthenticated, …>
37
58
  ```
38
- • scope vocabulary: NOT EVALUATED — `app.config.ts` could not be imported.
39
- This is not a statement about your scopes: the rule never got to read them.
40
- … The same import failure is reported above for plugin tables; both sections
41
- have this one cause.
59
+
60
+ The test for breaking is not "did a symbol disappear", it is whether code that COMPILED can stop compiling — and a widened return does that wherever the old union is named (`const refusal: ScopeError | null = checkGuards(…)`), or narrowed exhaustively. It was filed as `Added` first; the golden diff is what showed otherwise, and the rule is worth more than the classification that felt right. `anonymousSubject`'s new second parameter is OPTIONAL and breaks nothing.
61
+
62
+ `voltro update` carries you across it — codemod `0.40.0/02_rejected-credential-widens-guard-results`, a written note. A transform would widen each annotation, which compiles and keeps the reported behaviour: the decision at each site is what an expired session should do that a missing permission should not.
63
+
64
+ ### Added
65
+
66
+ - **@voltro/client, @voltro/web** — The client re-resolves `authHeaders` when the server says the credential was rejected — and `client.refreshAuth()` for an app that knows earlier.
67
+
68
+ `authHeaders` is resolved once per CONNECTION and attached per frame, so a tab open longer than the IdP's token lifetime keeps presenting a dead token until something reconnects. A consumer measured it: dragging a card on a board failed, their ADMINISTRATOR's token had simply expired while the page stood, and nothing in `@voltro/client` could force the re-resolve.
69
+
70
+ The trigger is the `Unauthenticated` error — which only became distinguishable from `ScopeError` in this same release. Before that the client could not have told "your session died" from "you lack a permission", and reconnecting on the second would have been wrong.
71
+
72
+ `refreshAuth()` is a SAME-SUBJECT rebuild, and the difference from `reconnect()` is one flag and a security boundary: `reconnect()` exists for a login / logout / tenant switch, where the next subject may be entitled to strictly LESS, so the cache must not be seeded from the old one. A token refresh is the same person with a fresh credential, so seeding is correct and the screen keeps its rows instead of blanking for the round trip. Getting that backwards is silent in both directions — seed on a subject change and you paint one user's rows into another's; refuse to seed on a refresh and every open screen blinks on every rotation.
73
+
74
+ The policy lives in ONE function (`wireAuthRefresh`) that every host wires, because "when do we reconnect on an auth error" is exactly the kind of decision this repo has watched drift when it was written twice. Two guards, answering different questions: a **rate** ceiling (one rebuild per window — a rejected mutation arrives alongside every rejected subscription on the page) and a **total** ceiling (stop after N refreshes with no successful call between, because at that point the credential is not stale, it is refused, and the answer is a sign-in screen rather than another socket).
75
+ - **@voltro/cli** — `middleware.ts` — a web app's one server-only hook, for renewing a credential before the SSR render uses it.
76
+
77
+ Reported: a consumer's SSR detail pages arrived empty on the first request of every day. Their cookie token had outlived the IdP's lifetime, the api resolved the caller to anonymous, and every `preload` on the page failed. They could not fix it in the app, and the reason is structural: `ctx.query` and every `preload` entry are bound from ONE cookie string **before any loader runs**, so a layout loader that renews the session cannot reach them — and a `type: 'web'` app has no auth middleware.
78
+
79
+ ```ts
80
+ // middleware.ts — web app root, server-only
81
+ export default async (req) => {
82
+ const fresh = await refreshSession(req.cookies['sb-session'])
83
+ if (!fresh) return
84
+ return {
85
+ headers: { authorization: `Bearer ${fresh.accessToken}` },
86
+ setCookies: [{ name: 'sb-session', value: fresh.cookie, maxAge: 3600 }],
87
+ }
88
+ }
42
89
  ```
43
90
 
44
- The dormant case keeps its own wording, so a quiet run on an app that genuinely publishes no vocabulary is not relabelled as a broken config.
91
+ **Why not `app.config.ts`.** That file is imported into the CLIENT bundle, verbatim, the moment any api declares `authHeaders` — the thunk is a function, so it cannot be serialised. A hook that renews a session reaches for an IdP SDK by definition, so putting it there drags the server graph into the browser. The consumer proposed exactly that shape (`serverAuthHeaders` beside `authHeaders`) and it is the one place it cannot go.
92
+
93
+ **Why `setCookies` is not optional.** We asked whether writing cookies back was in scope, expecting the answer to be about a round trip. It was about correctness: Supabase ROTATES refresh tokens and detects reuse, so a hook that renews server-side and does not write the result back leaves the browser holding a consumed token. Without it the hook is not "slower but correct" — it can destroy the session.
94
+
95
+ **Deliberately not a general middleware.** It can replace credentials and set cookies. It cannot redirect, return a response, or rewrite a route — because authorization belongs on the API, which is the only thing that sees the data, and a web-side hook that can refuse a request becomes a second authorization layer beside the real one. A hook that cannot refuse also cannot be mistaken for a guard. For a login redirect, a loader already throws `RedirectError`.
96
+
97
+ Details worth knowing: only auth-shaped headers (`authorization`, `x-tenant`, `x-voltro-*`) are forwarded to the api, so a returned `host` or `content-length` cannot produce a failure that looks like anything but a header copy; cookies default to `HttpOnly` + `Path=/` + `SameSite=lax`; multiple cookies are written as separate header lines, never comma-joined (a cookie's `Expires` contains a comma); the file is loaded ONCE per boot; a failure to IMPORT is fatal rather than degrading to "no middleware", and a middleware that THROWS fails the request — the render must not proceed on the credential it was told to replace.
98
+
99
+ Wired on BOTH SSR boot paths (`voltro dev` and `voltro start`), with the cookies written on every response arm — streamed, buffered, redirect and 404. A partial application would renew a rotating token and drop it.
100
+ - **@voltro/testing** — `makeTestContext` supplies `ctx.events`, so an executor that publishes can be unit-tested at all.
101
+
102
+ `ctx.events` is a field PRODUCTION puts on every `AppContext`, and the test harness did not — so any handler containing `ctx.events.publish(...)` died on `Cannot read properties of undefined (reading 'publish')` the moment it ran under test.
103
+
104
+ **The shipped `api-durable` template demonstrates exactly that pattern** (publish inside the mutation's transaction, so it fires on COMMIT and not on rollback), and its own test passed anyway — because it called the executor with `await` instead of running it. An executor written in the Effect style RETURNS an Effect, and awaiting a non-thenable hands the object straight back, unrun. The assertion then failed on `row.status` being `undefined` and pointed at the assertion rather than at the call. Two defects propping each other up: the harness could not have run that handler, and the test never asked it to.
105
+
106
+ It is the REAL `makeEventPublisher` over a real `EventBus`, not a stub. A fake would re-implement the payload validation and the tenant stamping and would be wrong the first time either gains a case — the lesson `plugin-broadcast` paid for twice. `ctx.eventBus` is the read side:
107
+
108
+ ```ts
109
+ const seen = ctx.eventBus.subscribe(orderPlaced, { orderId })
110
+ await invoke(placeOrder, executor, input, ctx)
111
+ expect(seen.received).toHaveLength(1)
112
+ ```
113
+
114
+ One bus for the whole harness so a `withSubject` / `withTenant` re-scope still publishes where the test is listening; the PUBLISHER is per-subject, because the tenant it stamps is the caller's.
115
+
116
+ ### Fixed
117
+
118
+ - **@voltro/cli** — `voltro agents-md --force` no longer exits 0 when it wrote nothing.
119
+
120
+ Reported: a consumer's `agent-docs/` is owned by the pod (root). They ran the command as `admin`, and it **overwrote nothing, said nothing, and exited 0**. They read the unchanged file as "the framework has not fixed this yet" — it had — and lost a full round to it.
121
+
122
+ The cause was three `orElseSucceed`s in the agent-docs copy. `makeDirectory`, `readDirectory` and every `copyFile` degraded to success, so a destination the process could not write produced an empty run that reported itself as done. An unreadable source directory came back as `[]` and did the same.
123
+
124
+ Failures are collected and reported now, and the command **exits 1** when the seed is incomplete:
125
+
126
+ ```
127
+ agents-md: 12 file(s) could NOT be written — the seed is INCOMPLETE.
128
+ The commonest cause is ownership: a container wrote these as root and you are
129
+ running as someone else.
130
+ ```
131
+
132
+ `--force` is an explicit instruction to overwrite, so silently not overwriting is the one outcome that must never be reported as done. `stat` is the single remaining silent degrade, deliberately: a source entry that vanished mid-walk is not a write failure and must not fail the run.
133
+
134
+ Pinned in both directions — a real unwritable directory yields failures, a clean copy yields none, and a source guard asserts that `stat` is the ONLY call on that path allowed to swallow. Red-verified by restoring the original `orElseSucceed`.
135
+ - **@voltro/cli** — Every server-side loader context is now checked by the compiler, and the static prerender stopped handing loaders a context missing `search` and `headers`.
136
+
137
+ `ctx.isServer` shipped with a source-reading guard, and that guard had the defect it exists to prevent: it matched context literals by shape (`loader({` / `ctx: {`) and therefore found ONE of the two in `build.ts`, missing the one built as a typed arrow return. Its tripwire — "at least 5 sites" — passed, because a floor cannot tell 5-of-8 from 5-of-5. The gap was found by a parallel report, not by the guard.
138
+
139
+ The invariant moved from "the literal mentions `isServer`" to "the literal is CHECKED BY THE COMPILER": every server loader context is now `satisfies SegmentLoaderContext`, whose `isServer` is required. A site that forgets it is a type error naming the file and line — strictly stronger than any regex over shapes, and verified by removing one.
140
+
141
+ **It caught a second defect immediately.** The static prerender built its page loader context with only `params`, `pathname`, `signal` — no `search`, no `headers`, no `query` — while `LoaderContext.search` is declared `string`. A static page's loader reading `ctx.search` got `undefined` where the type promised a value. The segment context twenty lines above it in the same file already passed `search: ''` with a comment explaining why.
142
+
143
+ Two smaller things worth knowing if you touch the guard: the closing brace is part of its pattern because the bare phrase also appears in the comment explaining the rule (the first version counted its own documentation), and the CLI's `SegmentLoaderContext` mirror keeping `isServer` non-optional is what the whole enforcement rests on — `isServer?:` would make every `satisfies` pass while a forgetful site reports itself as the browser.
144
+ - **@voltro/protocol, @voltro/cli** — A guard's `ScopeError` reaches the client as `ScopeError` on a mutation, not as `InternalError`.
145
+
146
+ Measured by a consumer over the wire, same session, same foreign team:
147
+
148
+ | kind | declared `error:` | denial arrived as | |---|---|---| | query `webhooks.list` | `AccessDeniedError` | `_tag: 'ScopeError'` ✓ | | mutation `…updateReferenceLabels` | `AccessDeniedError` | `InternalError` ✗ | | the same mutation, after adding `ScopeError` to its union | | `_tag: 'ScopeError'` ✓ |
149
+
150
+ Their client maps `ScopeError` to *forbidden* and `InternalError` to *something went wrong*, so a permissions refusal looked like a crash — on every relationship-guarded write in the app.
45
151
 
46
- ### Internal (no consumer-facing effect)
152
+ **Their observation was exact; the mechanism was not, and the difference is where the fix goes.** They diagnosed it as "the merge only happens on the streaming path". `withGuardError` is called by every lifter, so the wire union carries `ScopeError` on both. What differs is a SECOND reader: the server refuses to ship a tagged error the descriptor cannot represent, collapsing it to `InternalError` rather than emitting a raw defect tree — and it was handed `descriptor.error`, the RAW declaration, while the union it protects is the WIDENED one. It judged against a narrower set than it had advertised. A query never reaches that check (it is delivered through `wireErrorFromCause`, which preserves the tag), which is exactly why the split fell along query/mutation.
47
153
 
48
- - **@voltro/cache, @voltro/kv** The RESP TTL tests in `@voltro/cache` and `@voltro/kv` stopped measuring the machine. Test-only; no product code changed.
154
+ `wireErrorUnion(descriptor, kind)` is now the single owner of "what can this procedure put on the wire", used by the lifters AND by both bind sites.
49
155
 
50
- Both wrote a key with `ttlMs: 150`, asserted it was still there, then slept 300 ms and asserted it was gone. The second half is fine — waiting LONGER only strengthens "it expired". The first half was a race: the write and the read are two round-trips, so on a loaded runner the key legitimately expired before the liveness assertion, and the test reported a defect that was not there. It failed exactly that way on a release gate, in the keydb engine, while passing locally with 24/24 green.
156
+ **Two more error classes were collapsed the same way, and neither was reported:**
51
157
 
52
- Now: a 2 s window, so liveness has real headroom rather than 150 ms of it, and the expiry is awaited as a CONDITION (`awaitGone` polls) rather than as a duration. Idle machines finish in about the TTL; loaded ones take as long as they need; a key that never expires still fails, because the ceiling is a failure mode and not a timing assumption.
158
+ - **`BusinessRuleViolation`** unconditional for mutations. `withRuleError`'s own comment says it MUST be in the union "or the violation crosses the wire as an untyped defect". It was in the union, and collapsed before it got there. - **The `requiresApproval` refusals** `ApprovalRequired` / `ApprovalExpired` / `ApprovalUnavailable`, so "parked for approval" was indistinguishable from "the server broke".
53
159
 
54
- Fixed in BOTH packages in one change. The two files carried the identical construction, and this repo's standing lesson is that a fix landing in one copy of a duplicated shape leaves the other one broken — `@voltro/kv` had not failed yet, which is a statement about luck rather than about the test.
160
+ `openAccess:` still merges nothing: a procedure advertising a denial it cannot produce is what makes an error union stop meaning anything.
55
161
 
56
- `@voltro/kv`'s header also pointed at `../cache/test/docker-compose.yml` for bringing the engines up. That path does not exist; there is one compose file, at the repo root.
162
+ If you worked around this by declaring `ScopeError` yourself, the declaration is now redundant rather than wrong the union is the same either way, and you can delete it whenever you like.
@@ -12,16 +12,16 @@
12
12
  "dependencies": {
13
13
  "@effect/platform": "^0.97.0",
14
14
  "@effect/rpc": "^0.76.0",
15
- "@voltro/ai": "0.39.1",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/protocol": "0.39.1",
20
- "@voltro/runtime": "0.39.1",
15
+ "@voltro/ai": "0.40.0",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/protocol": "0.40.0",
20
+ "@voltro/runtime": "0.40.0",
21
21
  "effect": "^3.22.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@voltro/testing": "0.39.1",
24
+ "@voltro/testing": "0.40.0",
25
25
  "typescript": "^6.0.3",
26
26
  "@vitest/coverage-v8": "^4.1.10",
27
27
  "vitest": "^4.1.10"
@@ -13,17 +13,17 @@
13
13
  "dependencies": {
14
14
  "@effect/platform": "^0.97.0",
15
15
  "@effect/rpc": "^0.76.0",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/plugin-auth": "0.39.1",
20
- "@voltro/protocol": "0.39.1",
21
- "@voltro/runtime": "0.39.1",
22
- "@voltro/sql-postgres": "0.39.1",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/plugin-auth": "0.40.0",
20
+ "@voltro/protocol": "0.40.0",
21
+ "@voltro/runtime": "0.40.0",
22
+ "@voltro/sql-postgres": "0.40.0",
23
23
  "effect": "^3.22.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@voltro/testing": "0.39.1",
26
+ "@voltro/testing": "0.40.0",
27
27
  "typescript": "^6.0.3",
28
28
  "@vitest/coverage-v8": "^4.1.10",
29
29
  "vitest": "^4.1.10"
@@ -16,16 +16,16 @@
16
16
  "dependencies": {
17
17
  "@effect/platform": "^0.97.0",
18
18
  "@effect/rpc": "^0.76.0",
19
- "@voltro/cli": "0.39.1",
20
- "@voltro/database": "0.39.1",
21
- "@voltro/env": "0.39.1",
22
- "@voltro/plugin-multitenancy": "0.39.1",
23
- "@voltro/protocol": "0.39.1",
24
- "@voltro/runtime": "0.39.1",
19
+ "@voltro/cli": "0.40.0",
20
+ "@voltro/database": "0.40.0",
21
+ "@voltro/env": "0.40.0",
22
+ "@voltro/plugin-multitenancy": "0.40.0",
23
+ "@voltro/protocol": "0.40.0",
24
+ "@voltro/runtime": "0.40.0",
25
25
  "effect": "^3.22.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@voltro/testing": "0.39.1",
28
+ "@voltro/testing": "0.40.0",
29
29
  "typescript": "^6.0.3",
30
30
  "@vitest/coverage-v8": "^4.1.10",
31
31
  "vitest": "^4.1.10"
@@ -13,16 +13,16 @@
13
13
  "dependencies": {
14
14
  "@effect/platform": "^0.97.0",
15
15
  "@effect/rpc": "^0.76.0",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/plugin-deactivation": "0.39.1",
20
- "@voltro/protocol": "0.39.1",
21
- "@voltro/runtime": "0.39.1",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/plugin-deactivation": "0.40.0",
20
+ "@voltro/protocol": "0.40.0",
21
+ "@voltro/runtime": "0.40.0",
22
22
  "effect": "^3.22.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@voltro/testing": "0.39.1",
25
+ "@voltro/testing": "0.40.0",
26
26
  "typescript": "^6.0.3",
27
27
  "@vitest/coverage-v8": "^4.1.10",
28
28
  "vitest": "^4.1.10"
@@ -13,18 +13,18 @@
13
13
  "dependencies": {
14
14
  "@react-email/components": "^1.0.12",
15
15
  "@react-email/render": "^1.4.0",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/plugin-mail": "0.39.1",
20
- "@voltro/plugin-multitenancy": "0.39.1",
21
- "@voltro/protocol": "0.39.1",
22
- "@voltro/runtime": "0.39.1",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/plugin-mail": "0.40.0",
20
+ "@voltro/plugin-multitenancy": "0.40.0",
21
+ "@voltro/protocol": "0.40.0",
22
+ "@voltro/runtime": "0.40.0",
23
23
  "effect": "^3.22.0",
24
24
  "react": "^19.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@voltro/testing": "0.39.1",
27
+ "@voltro/testing": "0.40.0",
28
28
  "typescript": "^6.0.3",
29
29
  "@vitest/coverage-v8": "^4.1.10",
30
30
  "vitest": "^4.1.10"
@@ -13,18 +13,18 @@
13
13
  "dependencies": {
14
14
  "@effect/platform": "^0.97.0",
15
15
  "@effect/rpc": "^0.76.0",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/plugin-multitenancy": "0.39.1",
20
- "@voltro/plugin-storage": "0.39.1",
21
- "@voltro/protocol": "0.39.1",
22
- "@voltro/runtime": "0.39.1",
23
- "@voltro/sql-mysql": "0.39.1",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/plugin-multitenancy": "0.40.0",
20
+ "@voltro/plugin-storage": "0.40.0",
21
+ "@voltro/protocol": "0.40.0",
22
+ "@voltro/runtime": "0.40.0",
23
+ "@voltro/sql-mysql": "0.40.0",
24
24
  "effect": "^3.22.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@voltro/testing": "0.39.1",
27
+ "@voltro/testing": "0.40.0",
28
28
  "typescript": "^6.0.3",
29
29
  "@vitest/coverage-v8": "^4.1.10",
30
30
  "vitest": "^4.1.10"
@@ -13,17 +13,17 @@
13
13
  "dependencies": {
14
14
  "@effect/platform": "^0.97.0",
15
15
  "@effect/rpc": "^0.76.0",
16
- "@voltro/cli": "0.39.1",
17
- "@voltro/database": "0.39.1",
18
- "@voltro/env": "0.39.1",
19
- "@voltro/plugin-multitenancy": "0.39.1",
20
- "@voltro/protocol": "0.39.1",
21
- "@voltro/runtime": "0.39.1",
22
- "@voltro/sql-sqlite": "0.39.1",
16
+ "@voltro/cli": "0.40.0",
17
+ "@voltro/database": "0.40.0",
18
+ "@voltro/env": "0.40.0",
19
+ "@voltro/plugin-multitenancy": "0.40.0",
20
+ "@voltro/protocol": "0.40.0",
21
+ "@voltro/runtime": "0.40.0",
22
+ "@voltro/sql-sqlite": "0.40.0",
23
23
  "effect": "^3.22.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@voltro/testing": "0.39.1",
26
+ "@voltro/testing": "0.40.0",
27
27
  "typescript": "^6.0.3",
28
28
  "@vitest/coverage-v8": "^4.1.10",
29
29
  "vitest": "^4.1.10"