@voltro/cli 0.44.1 → 0.46.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 (119) hide show
  1. package/CHANGELOG.md +280 -1
  2. package/dist/{apiBuild-DvWreIQP.js → apiBuild-BKdd0I1Z.js} +2 -2
  3. package/dist/apiBuild-P2gewrfQ.js +2 -0
  4. package/dist/bin.d.ts +24 -0
  5. package/dist/bin.js +46 -11
  6. package/dist/{build-Ckc-FA7d.js → build-co6yadYz.js} +8 -8
  7. package/dist/{checkCommand-BNfEs4KG.js → checkCommand-B-eiW-G_.js} +12 -12
  8. package/dist/{checkCommand-AlbawIal.js → checkCommand-CXAXTjZL.js} +1 -1
  9. package/dist/codegen-DcE2li1i.js +2 -0
  10. package/dist/{codegen-CbpGCWLG.js → codegen-sbN1Y8PB.js} +37 -37
  11. package/dist/codegenCommand-CB6_3sX0.js +144 -0
  12. package/dist/{codemodRunner-BKTnaGOz.js → codemodRunner-DSZjgyCL.js} +49 -0
  13. package/dist/{commands-CYkHTox2.js → commands-C-hxgAGr.js} +24 -24
  14. package/dist/{dashboardCommand-DHDmlo9A.js → dashboardCommand-CEVO0GWF.js} +3 -3
  15. package/dist/{dataCommand-WFn8CM11.js → dataCommand-k0ezbQWa.js} +355 -250
  16. package/dist/{dbCommand-B237qI-j.js → dbCommand-BwkyNxn-.js} +110 -110
  17. package/dist/dbCommand-C2XK63Dd.js +2 -0
  18. package/dist/{dev-D-JZ6CGQ.js → dev-8hTEnN6s.js} +2154 -2076
  19. package/dist/{dev-BZO5aLdr.js → dev-DyoYst4j.js} +1 -1
  20. package/dist/devActivity.d.ts +24 -0
  21. package/dist/{doctorCommand-BlUyESpD.js → doctorCommand-B6D7HH1-.js} +249 -228
  22. package/dist/doctorCommand-Btl2Jz1a.js +2 -0
  23. package/dist/doctorSourceRelations-CPjSwYuZ.js +83 -0
  24. package/dist/{dormancyCommand-lQxdrU8C.js → dormancyCommand-CrPAwOgo.js} +1 -1
  25. package/dist/{embeddingsCommand-ByBTju6X.js → embeddingsCommand-DsSxsn_b.js} +1 -1
  26. package/dist/{envCommand-CpCbYAgR.js → envCommand-B_NPVGUf.js} +2 -2
  27. package/dist/{evalCommand-6RUfPen4.js → evalCommand-Db01Kbng.js} +24 -24
  28. package/dist/{evolveCommand-CBV3-TtK.js → evolveCommand-DUuaCIyn.js} +2 -2
  29. package/dist/{frameworkTableAssembly-oMPBKqlE.js → frameworkTableAssembly-BPlPfU07.js} +82 -78
  30. package/dist/frameworkTableAssembly-Bob3vj9R.js +2 -0
  31. package/dist/index.d.ts +24 -0
  32. package/dist/index.js +1 -1
  33. package/dist/{infoCommand-DJoA9cKD.js → infoCommand-CuNl9cbh.js} +1 -1
  34. package/dist/inspectState.d.ts +24 -0
  35. package/dist/interruptedReplace-C1ZI84xi.js +27 -0
  36. package/dist/interruptedReplace-DNJ7MKph.js +2 -0
  37. package/dist/{migrate-DN47p2PG.js → migrate-CM1qwalu.js} +27 -27
  38. package/dist/{runtimeTrace-DJ9tPhrc.js → runtimeTrace-BRNM06vK.js} +1 -1
  39. package/dist/{sdkgen-7dr8-Onw.js → sdkgen-CRCw_XcR.js} +1 -1
  40. package/dist/{seedRunner-IdHEprqf.js → seedRunner-Dgsiwk_e.js} +59 -59
  41. package/dist/serveCommand-BNHMVXyp.js +2 -0
  42. package/dist/serveCommand-CHOr74WM.js +1928 -0
  43. package/dist/serveEntry.d.ts +24 -0
  44. package/dist/serveEntry.js +1 -1
  45. package/dist/{start-Ds3xyn8R.js → start-7HcSIKEp.js} +1 -1
  46. package/dist/{start-BAlGcjF5.js → start-DvlYDyAr.js} +1 -1
  47. package/dist/startEntry.d.ts +24 -0
  48. package/dist/startEntry.js +1 -1
  49. package/dist/startup.d.ts +24 -0
  50. package/dist/{test-CLYXrZ2F.js → test-CHb7UwvE.js} +1 -1
  51. package/dist/{updateCommand-BvRidHp6.js → updateCommand-BlyXavoG.js} +1 -1
  52. package/dist/updateCommand-CT5AvVg7.js +2 -0
  53. package/dist/{webDev-101csg6Q.js → webDev-B4IEMB0n.js} +6 -6
  54. package/dist/webDev-B79ji8M5.js +2 -0
  55. package/dist/{webhooksCommand-BfO_JF2b.js → webhooksCommand-BRrG_sGf.js} +1 -1
  56. package/package.json +29 -17
  57. package/templates/AGENTS.md +1 -1
  58. package/templates/agent-docs/_index.md +1 -1
  59. package/templates/agent-docs/cli.md +179 -3
  60. package/templates/agent-docs/data.md +103 -7
  61. package/templates/agent-docs/plugins/versioning.md +2 -0
  62. package/templates/agent-docs/whats-new.md +166 -6
  63. package/templates/apps/api-ai/package.json +7 -7
  64. package/templates/apps/api-auth/package.json +8 -8
  65. package/templates/apps/api-backend/package.json +7 -7
  66. package/templates/apps/api-backend-deactivation/package.json +7 -7
  67. package/templates/apps/api-backend-mail/package.json +8 -8
  68. package/templates/apps/api-backend-mariadb/package.json +9 -9
  69. package/templates/apps/api-backend-sqlite/package.json +8 -8
  70. package/templates/apps/api-backend-storage/package.json +8 -8
  71. package/templates/apps/api-cms/package.json +10 -10
  72. package/templates/apps/api-collab/package.json +8 -8
  73. package/templates/apps/api-data-advanced/package.json +8 -8
  74. package/templates/apps/api-durable/package.json +8 -8
  75. package/templates/apps/api-feature-flags/package.json +9 -9
  76. package/templates/apps/api-governance/package.json +8 -8
  77. package/templates/apps/api-kv/package.json +8 -8
  78. package/templates/apps/api-moderation/package.json +8 -8
  79. package/templates/apps/api-observability/package.json +8 -8
  80. package/templates/apps/api-ratelimit/package.json +8 -8
  81. package/templates/apps/api-rbac/package.json +8 -8
  82. package/templates/apps/api-rest/package.json +7 -7
  83. package/templates/apps/api-saas/package.json +11 -11
  84. package/templates/apps/api-saas-starter/package.json +10 -10
  85. package/templates/apps/api-search/package.json +8 -8
  86. package/templates/apps/api-status/package.json +8 -8
  87. package/templates/apps/api-versioning/package.json +8 -8
  88. package/templates/apps/api-webhooks/package.json +9 -9
  89. package/templates/apps/changelog/package.json +6 -6
  90. package/templates/apps/edge-functions/package.json +2 -2
  91. package/templates/apps/frontend-admin/package.json +8 -8
  92. package/templates/apps/frontend-app/package.json +9 -9
  93. package/templates/apps/frontend-auth/package.json +8 -8
  94. package/templates/apps/frontend-blank/package.json +7 -7
  95. package/templates/apps/frontend-cms/package.json +9 -9
  96. package/templates/apps/frontend-collab/package.json +10 -10
  97. package/templates/apps/frontend-contact/package.json +7 -7
  98. package/templates/apps/frontend-dashboard/package.json +7 -7
  99. package/templates/apps/frontend-docs/package.json +7 -7
  100. package/templates/apps/frontend-i18n/package.json +6 -6
  101. package/templates/apps/frontend-landing/package.json +7 -7
  102. package/templates/apps/frontend-portal/package.json +8 -8
  103. package/templates/apps/frontend-saas/package.json +8 -8
  104. package/templates/apps/frontend-spa/package.json +7 -7
  105. package/templates/apps/frontend-ssr/package.json +7 -7
  106. package/templates/apps/frontend-ssr-api/package.json +8 -8
  107. package/templates/apps/frontend-static-blog/package.json +6 -6
  108. package/templates/apps/frontend-status/package.json +8 -8
  109. package/templates/apps/mobile-app/package.json +4 -4
  110. package/dist/apiBuild-XaW40W8x.js +0 -2
  111. package/dist/codegen-i8QGcHsi.js +0 -2
  112. package/dist/codegenCommand-iClXoRCW.js +0 -129
  113. package/dist/dbCommand-BvQeKQOb.js +0 -2
  114. package/dist/doctorCommand-BeLOwq7S.js +0 -2
  115. package/dist/frameworkTableAssembly-DgylYh9_.js +0 -2
  116. package/dist/serveCommand-BlnAlNQg.js +0 -1891
  117. package/dist/serveCommand-Dg_E1ev4.js +0 -2
  118. package/dist/updateCommand-DcKVmLVN.js +0 -2
  119. package/dist/webDev-BLKBO34K.js +0 -2
@@ -397,10 +397,59 @@ changes. **That is an authorization staleness, not a cosmetic one:** revoke
397
397
  someone's membership and their open subscription keeps serving rows they may no
398
398
  longer see, until something else happens to invalidate it.
399
399
 
400
- Nothing warns about this at runtime a query that silently stops reacting looks
401
- exactly like one with nothing to report. Reported by a team whose own invariant
402
- caught it after five computed queries under-declared their `source`; the fix was
403
- array sources.
400
+ Reported by a team whose own invariant caught it after five computed queries
401
+ under-declared their `source`; the fix was array sources.
402
+
403
+ ### `voltro dev` now says when a query reads a table it did not declare
404
+
405
+ That paragraph used to end "nothing warns about this at runtime". It does now.
406
+
407
+ While `voltro dev` is running, every read a query makes is attributed to it and
408
+ compared against its own `source:`. Read a table you did not declare and the
409
+ terminal says so, once:
410
+
411
+ ```
412
+ source: tasks.list: read `task_sub_tasks` without declaring it in `source:`.
413
+ A write to that table will not re-run this query, so an open view keeps
414
+ showing what it showed before. The write itself is fine, which is why nothing
415
+ else reports this.
416
+ ```
417
+
418
+ It is deliberately narrow, and knowing where its edges are is the difference
419
+ between acting on it and learning to skim it:
420
+
421
+ - **It reports what it SAW.** A branch that did not run contributes nothing, so
422
+ it never claims your `source:` is otherwise complete — only that a table it
423
+ watched you read is missing from it.
424
+ - **Once per query per boot.** A per-request warning on a hot list would be its
425
+ own outage.
426
+ - **A query with no `source:` at all is left alone.** It has made no claim; the
427
+ finding is about an incomplete list, not a missing one.
428
+ - **An eager-loaded relation COUNTS**, and it is the case worth knowing about.
429
+ `.with({ subTasks: true })` issues no second read — the whole spec folds into
430
+ one round trip — so the loaded table never appears as a read of its own. The
431
+ recorder resolves it through the relation registry instead, target and (for a
432
+ many-to-many) junction alike. A write to the junction changes membership,
433
+ which is exactly the change a user makes.
434
+ - **A table read only to NARROW a result is not counted** — a parent reached
435
+ through `inSubquery(...)`, or a read the framework made to resolve your row
436
+ filter. Those decide which rows come back rather than contributing rows, and
437
+ putting every one of them in `source:` would re-run every list on every
438
+ membership write.
439
+
440
+ That last rule is a judgement the recorder makes for the common case and
441
+ deliberately does not make for yours. The section above is the case where you
442
+ want a restricting read in `source:` anyway — an authorization read whose
443
+ staleness you care about. The recorder will not nag you into it and will not
444
+ argue when you add it.
445
+
446
+ **Dev only.** `voltro serve` installs none of it — it costs a wrapper per read,
447
+ and a production log is not where this gets read. `VOLTRO_SOURCE_RECORDER=off`
448
+ turns it off in dev.
449
+
450
+ If your own helper resolves access somewhere the framework does not call it, wrap
451
+ it in `restrictingReads` (from `@voltro/runtime`) and its reads stop counting —
452
+ inside or outside a recording session, so it is safe to leave in place.
404
453
 
405
454
  ## `output` is the serializer — `timestampMs`
406
455
 
@@ -1638,14 +1687,44 @@ warning](#fan-out--how-many-subscribers-may-one-change-wake) is the only signal
1638
1687
  for a subscription that has gone permanently quiet, and an exemption for a name
1639
1688
  you invented disables it for the one case it was built for.
1640
1689
 
1690
+ ### A table `source:` is typechecked
1691
+
1692
+ `voltro dev` writes `voltro-tables.generated.d.ts` beside your generated rpc group, listing every table the app has — your entities, your plugins' `extendSchema.tables`, and the framework's own. `source:` is narrowed to those names, so a typo or a table you renamed away is a **compile error**:
1693
+
1694
+ ```ts
1695
+ source: 'task_subtasks', // ✗ Type '"task_subtasks"' is not assignable to type 'TableName'
1696
+ source: 'task_sub_tasks', // ✓
1697
+ ```
1698
+
1699
+ That matters because the failure it replaces is silent. A `source:` is matched by NAME against change events, so one that matches nothing does not break the query — it makes it never update. The write still lands, a reload still shows it, and the panel keeps showing the old value.
1700
+
1701
+ The file is generated, so **commit it** like the rpc group and let `voltro dev` rewrite it. Before the first run — and in a project that never generates it — `source:` is plain `string` again, which is exactly the previous behaviour; there is no configuration and nothing to opt into.
1702
+
1703
+ Two things it deliberately does not narrow. A **plugin's** route `source:` stays `string`: a plugin ships against many apps and cannot know any of their tables. And nothing that READS a descriptor's source at runtime narrows either — a reader that refused an unknown name would reject the stale name it exists to report.
1704
+
1705
+ **It does not check the other direction — except for relations.** A `source:` that omits a table the query genuinely reads is silent: the name is right, the table exists, and nothing has an opinion. That is the failure that costs a user report — they type, the row lands, and the panel does not move.
1706
+
1707
+ `voltro doctor` closes the part of it that can be closed without guessing:
1708
+
1709
+ ```
1710
+ ✗ 1 query loads a relation it does not declare:
1711
+ tasks.getById: eager-loads `subTasks` from 'tasks' but does not declare
1712
+ 'task_sub_tasks' in `source:` — the view will not update when 'task_sub_tasks' changes.
1713
+ ```
1714
+
1715
+ An eager-loaded relation is composition by definition — its rows are IN the result — and its table comes from the relation registry, so the rule has no heuristic and no exception list. A **many-to-many** wants the junction table too, and says so separately: adding or removing a link writes only the junction row, so declaring the target alone leaves the list stale on exactly the operation a user performs to change it.
1716
+
1717
+ What doctor deliberately does NOT do is derive every table an executor reads. That needs a judgement — does this read **compose** the result or merely **restrict** it? — and only composing reads belong in `source:`; a restricting one re-running on every unrelated write puts a hundred lists back on the wire. A scan has to infer that from syntax, and a rule that guesses on a correct codebase teaches you to ignore it.
1718
+
1719
+ So: when a live view does not update, check the writing table is in the reading query's `source:` before anything else.
1720
+
1641
1721
  ### Pass the channel, not its key
1642
1722
 
1643
1723
  A channel's routing key is `channel:<name>`, and you can read it off
1644
1724
  `jobQueue.key`. **Do not write that string into `source:`.** Passing the object
1645
1725
  creates an import edge from the query to the declaration, which removes the
1646
- entire class of stale-source bugs for channels: a table `source:` is a string,
1647
- so a rename leaves the old one behind and `tsc` cannot see it, while a channel
1648
- that is not imported does not exist to be named. The boot audit reports a
1726
+ entire class of stale-source bugs for channels: a channel that is not imported
1727
+ does not exist to be named. The boot audit reports a
1649
1728
  `channel:` key nothing declared, for the two ways round it.
1650
1729
 
1651
1730
  Names are lowercase kebab segments separated by dots — `presence`, `job-queue`,
@@ -3138,6 +3217,23 @@ When a shape can't be incremental, leave `incremental` off and use a refresh
3138
3217
  policy — the engine recomputes. Incremental is an optimisation for hot, bounded
3139
3218
  aggregates, not a different result.
3140
3219
 
3220
+ ### `source` is a table name, and it is checked
3221
+
3222
+ `incremental.source` is typed against your app's own tables — the same
3223
+ `TableName` a query's `source:` uses — so a misspelled or renamed-away name is a
3224
+ compile error from your next `voltro dev`.
3225
+
3226
+ That check exists because the failure has no other symptom. A source matching no
3227
+ table does not error: the runner subscribes to something nothing writes, no delta
3228
+ ever arrives, and the aggregate quietly stops tracking its input while every read
3229
+ of it still succeeds and still returns a number.
3230
+
3231
+ The boot says it too. An aggregate whose CDC source resolves to no live table is
3232
+ named in the same stale-`source:` warning queries and streams appear in, on both
3233
+ boot paths — a name can be correct at the type level and still be a table this
3234
+ deployment does not have. An aggregate with no `incremental` block declares no
3235
+ source and is not audited.
3236
+
3141
3237
  ## Boot strategy
3142
3238
 
3143
3239
  Each aggregate declares `bootRefresh` (default `'persistent'`). All three modes are wired in the aggregate runner (`attachAggregates`):
@@ -27,6 +27,8 @@ export default {
27
27
 
28
28
  Every committed change to a listed table appends a row to `_voltro_row_history` (`tableName`, `rowId`, monotonic `version`, `op`, the full `data` snapshot, `changedBy`, `changedAt`, `traceId`, `subjectId`, `procedure`).
29
29
 
30
+ The history row's own `id` is **derived** from `(tableName, rowId, version)` and has a fixed width — it is a surrogate, and every part of it is already a column beside it, so do not parse or construct it. That width is the point: an `id()` column is `VARCHAR(64)` on mysql/mariadb and `NVARCHAR(64)` on mssql, so a key built by concatenating those parts grew with your **table name** and stopped fitting past 22 characters — which failed every write to that table, not merely an import.
31
+
30
32
 
31
33
  ### What gets versioned — opt OUT, not in
32
34
 
@@ -1,4 +1,4 @@
1
- # What's new in 0.44.1
1
+ # What's new in 0.46.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,14 +7,174 @@ 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
+ ### ⚠ BREAKING
11
+
12
+ - **@voltro/runtime, @voltro/cli** — An aggregate's `incremental.source` is a table name, and is now typed and audited like one.
13
+
14
+ 0.45.0 narrowed a query's and a stream's `source:` for a specific failure: a name matching no table does not error, it produces a subscription that serves once and goes quiet. An aggregate's CDC source misses the same way and is quieter still — the runner subscribes to a table nothing writes, no delta arrives, and the aggregate stops tracking its input while every read of it succeeds and returns a number.
15
+
16
+ It stayed `string` in that change, and not because anyone weighed it. It reads differently — `incremental.source`, a single name on a definition, rather than a list on a descriptor — so it did not fit the loop, and a shape that does not fit reads as a type mismatch instead of a gap.
17
+
18
+ Both halves close now. The field is `TableName`, so a name no table carries is a compile error from the next `voltro dev`. And the boot audit takes aggregates alongside queries and streams, so a stale one is named in the same warning — the runtime half matters because a source can be correct at the type level and still be a table the deployment does not have.
19
+
20
+ The audit's aggregate half runs on both boot paths and needed its OWN call on each, since aggregates are discovered several hundred lines after the existing one — which is precisely the shape that ends up wired on one path only, so it is asserted by name over both files.
21
+
22
+ A recompute-only aggregate declares no `incremental` at all and is not audited: reporting an absence as an unresolved source would report a choice as a defect.
23
+
24
+ **`voltro update` carries you across this** — codemod `0.46.0/01_typed-aggregate-source`.
25
+
26
+ ### Added
27
+
28
+ - **@voltro/data-transfer, @voltro/cli** — A foreign-key cycle is caught BEFORE a staged `replace` loads, and leftover staging tables have a command.
29
+
30
+ Two things the staged swap left open, closed.
31
+
32
+ **The cycle.** The swap inserts parents first, so two tables referencing each other cannot both be satisfied by a bulk copy on postgres, sqlite or SQL Server — and `SET CONSTRAINTS ALL DEFERRED` does not rescue it, because postgres only defers a constraint declared `DEFERRABLE` and the framework declares none. Until now that surfaced as a FAILED SWAP after the whole bundle had loaded: minutes of work, then a refusal. `topo.ts` already orders parents-first and breaks a cycle at its closing edge, so a cycle is exactly a reference pointing FORWARD in that order — cheap to see before anything is loaded. Such a run says so and takes the row-by-row path, whose deferred-FK pass exists for that shape. A table referencing ITSELF is deliberately not a cycle: one statement carries the whole table, measured on all five engines, and treating it as one would cost every app with an `audit()` mixin the staged path.
33
+
34
+ **The leftovers.** A staged run drops-then-creates, so it collects its own; what survives is staging for a table set a later run does not touch. `voltro data clear-staging --yes` lists them and drops them.
35
+
36
+ It is a COMMAND and not a boot sweep, which is the decision worth recording: a booting process cannot tell a leftover from a staging table another replica is loading into right now, and with several replicas that is not a rare race — one booting pod would delete an import in flight. The refusal without `--yes` says so, and names the tables so the operator can check before answering.
37
+
38
+ **And `--no-atomic` stages too now, which is where the change is largest.** The flag exists for resumability on a large bundle, and it used to be the mode with the WORST failure: the target emptied and partially refilled, in neither state — the kill test measured 889 rows of 8 000. Staged, the ledger keeps its exact meaning (a recorded table is one fully loaded; it just lands in staging) while the target stays untouched until the swap. Resumable AND all-or-nothing, which the two flags could not be at once before.
39
+
40
+ Three things came out of wiring it, and none was visible from the design. Dropping staging in the `finally` destroyed exactly what a resume needs, so a second run read from tables that no longer existed — found by the resume test, not by reasoning; staging is dropped only after a successful swap now, and a run that kept its rows says so. The SUCCESS case needed its own guard: after a completed run the ledger still says every table is done while staging is gone, so a re-run would have copied nothing over the target — `ledger.truncated` has always meant "the destructive step already happened" and the old path is guarded by exactly that flag, so it guards this one too. And the test lever was wrong at first: withholding the snapshot disables staging but also fail-closes the rollback capture, so the run refuses before loading — the unstaged case is now driven by the real reason, a registered write recorder.
41
+
42
+ Two existing assertions inverted, and BOTH truths are kept rather than one replaced: `--no-atomic` now keeps the target when it can stage, and still costs exactly what it always did when it cannot. A killed staged run leaves the target's rows intact and writes no interrupted-replace marker — that state cannot arise on the staged path, so there is nothing for a boot to refuse over.
43
+ - **@voltro/runtime, @voltro/cli** — `voltro dev` says when a query reads a table it did not declare in `source:`.
44
+
45
+ The other half of the `source:` problem, and the one no static tool can see. A stale name is a compile error now, and the boot warns about one that resolves to nothing. A name that is simply ABSENT has never had an observer: the write lands, the row is in the database, a reload shows it, and the open panel does not move. The type is satisfied, the audit is satisfied, the write path is correct and its tests are green.
46
+
47
+ So while `voltro dev` runs, every read is attributed to the query that made it and compared against that query's own `source:`. The finding names the table and what will not happen, once per query per boot.
48
+
49
+ **The design question was never the recording, it was compose-vs-restrict.** Only a read that CONTRIBUTES rows belongs in `source:` — a restricting read re-running on every unrelated write puts every list back on the wire. An app that scanned its own source for this needed two hand-written exceptions to get from a thousand findings to thirty, and a rule needing an exception list on a correct codebase has already spent its attention.
50
+
51
+ Neither exception is a list here. A table reached only through a predicate subquery is narrowing BY CONSTRUCTION — it returns no column to anybody — so it classifies itself off the descriptor, on every app, with nothing to maintain. And the framework's own restricting reads are ours: they are issued below the wrapper, or, where the framework runs APP code to decide access (a row filter's loader), marked at the call site we control instead of at the ones we do not.
52
+
53
+ Deliberately narrow, and each edge is a decision rather than a limitation: it reports what it SAW and never claims a declaration is otherwise complete; a query with no `source:` at all is left alone, because the finding is about an incomplete list and not a missing one; and it says which tables it did not count, so the classification can be checked rather than trusted.
54
+
55
+ Dev only. `voltro serve` installs no sink, which makes every part of it inert — no wrapper, no async-local write, no comparison. `VOLTRO_SOURCE_RECORDER=off` turns it off in dev.
56
+
57
+ `restrictingReads` (`@voltro/runtime`) is the escape for an app helper that resolves access somewhere the framework does not call it. It is a no-op outside a recording session, so it can be left in place.
58
+
59
+ Measured against a running `voltro dev`, not only in tests: a query declaring one table while reading two is reported once across eleven requests, and the correct queries beside it produce nothing.
60
+
61
+ **Eager-loaded relations count, and they were the hole.** `.with({ subTasks: true })` issues no second read — `compileEagerJson` folds the whole spec into ONE round trip — so the loaded table is never a read's own table and never a join. It is a relation NAME on the descriptor, and the recorder resolves it through the relation registry: the target, and for a many-to-many the JUNCTION as well, since a write there changes membership, which is precisely the change a user makes. Nested `with:` recurses against the target's relations, the same walk the compiler does; an unresolvable name yields nothing rather than an invented table, and a throwing target thunk cannot take the request down with it.
62
+
63
+ This was the reported failure's own shape, so the first version of the recorder could not see the case it was built for.
64
+
65
+ Measured against a running `voltro dev` and real `POST /rpc` calls: twelve requests across four queries produced exactly two findings — the two deliberately-incomplete ones. The SAME eager load declared correctly beside them is silent, and so is a query with no `source:` at all. A check that only ever fires is not evidence that it fires for a reason.
66
+ - **@voltro/cli** — `--rollback-key <key>` — a `replace` over `--target api` has the INSTANCE store the target's current rows in its own object storage before deleting them.
67
+
68
+ The direct path already captured beside the bundle. That is useless on this transport, and the reason is the whole point: the process that would roll a transaction back IS the instance, so a capture in the pod's filesystem goes away with exactly the failure it exists for — a deployment lost 240 172 rows to a run whose api pod disappeared nine minutes in. Object storage is durable, is already configured wherever the storage-push export works, and is reachable afterwards from anywhere.
69
+
70
+ Pushed BEFORE the first delete, through the same archive sink the export uses — one sink, not two, because two is how an instance comes to push a bundle and fail to keep one. A failure to store it stops the import with the target untouched.
71
+
72
+ Fail-closed in both directions, deliberately:
73
+
74
+ - asked for and impossible (no storage configured) → **409**, naming the fix. The request is the operator saying "I cannot afford to lose this", and serving them anyway is the one answer that removes their precaution while looking like agreement. - not asked for → the run proceeds and says what it did not keep. A `replace` into a scratch environment is legitimate, and refusing it would push people to the flag that turns the safety off everywhere.
75
+
76
+ The decision is made from the headers alone, before a byte of the bundle is read: a run that cannot take the capture it was asked for must not cost an upload first.
77
+ - **@voltro/database, @voltro/data-transfer, @voltro/cli** — An interrupted `replace` cannot be silent any more.
78
+
79
+ The capture only helps if somebody knows to reach for it, and a half-replaced database is indistinguishable from an empty one FROM THE INSIDE — every table exists, every constraint holds, every query returns nothing without erroring. A deployment served over one for ninety minutes and only found out through an unrelated fingerprint mismatch.
80
+
81
+ So a `replace` writes one row (`_voltro_replace_in_progress`) before the first delete and removes it after the last insert, and finding it at boot is a REFUSAL — on both boot paths, out of one function. The message names how many tables, how long ago, over which transport, and the capture to restore from, with the command spelled out.
82
+
83
+ The row lives in the SAME transaction as the emptying, so it is present exactly when the emptying is: a run that rolls back cleanly takes the marker with it, and a boot over a database nothing happened to is not refused. A completed `replace` clears its own marker and every older one, so the recovery import restores the data and silences the alarm in one command.
84
+
85
+ Nothing expires — a half-replaced database does not become whole with time, so `voltro data clear-replace-marker --yes` is a decision somebody makes.
86
+
87
+ Measured against a live mariadb by killing a run mid-load: the marker is there, the refusal names the capture, and a completing run clears it.
88
+ - **@voltro/data-transfer** — The staged-swap primitive for `replace` — load somewhere else, then swap the content in one short transaction.
89
+
90
+ `--mode replace` empties the target and loads into it inside ONE transaction, held open for the whole network-bound load. A deployment measured nine minutes for 242 950 rows, and the promise that the target is left as it was found rests entirely on a live process being there to roll it back. A promise that rests on the process surviving is a promise about the weather.
91
+
92
+ **The design the plan carried was wrong, and measurably so.** Shadow tables plus a final `RENAME` moves every inbound foreign key WITH the renamed table — postgres 17 by OID, MariaDB 11 and MySQL 8.4 by tracking the rename, including inside MySQL's atomic multi-pair `RENAME TABLE`. After the swap every key points at the table the design then DROPS. The atomicity of the rename, which that design reasoned about carefully, was never the hard part.
93
+
94
+ Keeping the table OBJECTS and swapping the CONTENT has none of that: every constraint stays pointed at the same object, and the long client-driven load moves OUT of the destructive transaction, which then holds only server-side bulk SQL.
95
+
96
+ **Four of five engines need no integrity switch, which inverts what the design assumed.** Three self-referencing rows — `actors.createdBy → actors`, the framework's own pattern — inserted by one `INSERT … SELECT`: postgres, SQLite and SQL Server take all three (they check at STATEMENT end); MariaDB and MySQL answer `ERROR 1452` (they check per ROW) and need the switch their own `emptyTables` already uses. Measured on each, and measured again after: a genuine violation attempted following the swap is still refused on all five, so the suspension does not leak past it.
97
+
98
+ The statement builders refuse a table name outside the framework's identifier class. This module concatenates SQL and its names arrive from a bundle MANIFEST — a file an operator can edit — so the rule applied at declaration is re-asserted where the concatenation happens rather than assumed to have survived the round trip. Staging tables are `_voltro_staging_<t>`, so the boot differ's framework-table asymmetry treats them as ours instead of planning them as user tables somebody forgot to declare.
99
+
100
+ **The importer does not use it yet**, and attempting that integration is what surfaced two blockers worth stating: a staged write would fire a change event (waking reactivity, CDC and the analytics mirror for tables nobody declared), and it would miss the target's column metadata (`encodeRowForSchema` looks the table up by NAME, so a `json()` column would be written unencoded — a wrong value, not an error). Both are tractable; neither is a line-level change. Until then the two protections already shipped — the capture written before the first delete, and the marker that refuses the next boot after an interrupted run — remain what covers the reported outcome.
101
+ - **@voltro/data-transfer, @voltro/cli** — `--mode replace` writes down what it is about to destroy.
102
+
103
+ Before the first delete it exports the target's CURRENT rows — exactly the tables it will empty — as an ordinary bundle beside yours, and says where:
104
+
105
+ rollback capture: 240172 row(s) across 75 table(s) → ./out.rollback-2026-… If this run does not finish, restore with: voltro data import ./out.rollback-… --mode replace
106
+
107
+ It is on disk BEFORE anything is destroyed, so it depends on no transaction and on no process being alive to roll one back. That is the whole point: a deployment lost 240 172 rows to a `replace` whose api pod disappeared nine minutes in, and recovered from an export they had taken twenty minutes earlier out of HABIT. This is that habit as behaviour. It is NOT the fix for the class — the emptying must not become visible until the load stands, which is a rebuild — it is the small half that covers the reported outcome today.
108
+
109
+ **Fail-closed.** A capture that cannot be taken stops the import before it starts, target untouched. A net you believe in and do not have is worse than none: the belief is what stops you taking your own export.
110
+
111
+ The capture is a COMPLETE bundle over a snapshot narrowed to the emptied tables, not a `tables`-scoped one over the whole schema. Same files, different manifest — and the manifest decides whether it can be restored at all, since `replace` refuses a partial bundle for a reason that is exactly false here.
112
+
113
+ `--no-rollback` opts out, `--rollback-dir <path>` relocates it. Only `replace` takes one: `upsert` and `append` destroy nothing.
114
+
115
+ **Not on `--target api`, and it says so.** The capture would live inside the instance — the thing that can go away, which is the failure it exists for. A replace over that transport warns and names the export to take first.
116
+ - **@voltro/database, @voltro/data-transfer** — Staging clones — the load-side half of the staged swap for `replace`.
117
+
118
+ The swap primitive shipped without the importer using it, and two things stood in the way. Both are solved by ONE answer.
119
+
120
+ A typed write resolves its table by NAME: `encodeRowForSchema` and `stampGeneratedId` both look it up in the registry. Writing to `_voltro_staging_notes` therefore found nothing — and the failure mode is not an error, it is a `json()` column written UNENCODED. Separately, every dialect store's insert ends in `routeEvent`, whose reactive guard reads `isTableReactive`, which is `isReactive !== false` — so an UNREGISTERED name counts as reactive, and loading a large bundle into staging would emit an event per row for tables nobody declared.
121
+
122
+ A staging table registered as a CLONE of its target, marked `isReactive: false`, answers both: the columns resolve, and the guard the framework already has returns before the emit. `.nonReactive()` is the documented way to say exactly that, so nothing at the store needed a special case — and it is the clone rather than the absence that makes the load quiet, which is the part worth remembering if this is ever simplified.
123
+
124
+ `registerStagingClones` returns a REQUIRED undo instead of trusting a caller to remember one. `allRegisteredTables()` feeds the declared set, the boot differ and `voltro doctor`, so a clone left in the registry reads as a table the app declares and nobody created. A failure part-way through registers nothing at all.
125
+
126
+ `unregisterTable` is new in `@voltro/database` for this: narrow on purpose. `clearTableRegistry` wipes everything and exists for tests; this removes ONE name a bounded operation owns for its duration.
127
+
128
+ **The precision is recovered, and it is strictly better than what it replaces.** Staging carries no foreign keys — required, since a staged row whose parent has not been staged yet must not be refused — so a violation moves from load time to swap time, where the database answers with one message naming a constraint. `stagedReferences` reads the edges INSIDE the replaced set off the snapshot the importer already holds (deliberately not `incomingForeignKeys`, which answers the already-answered question of keys pointing in from OUTSIDE), and `danglingProbeSql` asks STAGING the question the database was asking — against the STAGED parent set, because the swap inserts parents from staging and what matters is whether the reference resolves AFTER it.
129
+
130
+ Measured against a live postgres with four staged children — one good, one NULL, two dangling — driven through a real failing swap: the database named `ghost`; the probe named `ghost` AND `phantom`, skipping the NULL and the good row. The row-by-row path stops at the FIRST failure, so a bundle with four bad references costs four round trips; this reports all of them in one pass. The target was verified unchanged afterwards, which is the first thing the message says.
131
+
132
+ **The importer uses it now.** `--mode replace` stages when it can: create a staging table per table, load into those OUTSIDE any transaction, then swap the content across in one short transaction of server-side SQL. A process that dies during the load leaves the target exactly as it was, because nothing has been deleted yet — the destructive window shrinks from the length of the load to the length of a copy.
133
+
134
+ Wiring it surfaced two more things, and neither was visible from the design.
135
+
136
+ `INSERT … SELECT *` fails the moment the target has a STORED generated column — `CREATE TABLE … (LIKE t)` copies such a column as a PLAIN one (measured: `is_generated: NEVER`), so the select hands the target a value for a column it computes itself: `cannot insert a non-DEFAULT value into column "slug"`. The swap names its columns now, minus the generated ones, and `swapStatements` REFUSES an empty column list rather than falling back to `SELECT *`, so the trap cannot return by omission.
137
+
138
+ And a WRITE RECORDER on any table in the set rules staging out. A recorder is keyed by table NAME, so a staged write looks up `_voltro_staging_notes`, finds none, and never runs — `versioningPlugin({ timing: 'in-transaction' })` promises "if the change committed, the entry is there", and the swap's bulk SQL has no per-row hook to keep that with. Measured, not guessed: the recorder went from more than one call to zero. Such a run keeps the path that honours it and SAYS why, as does a `--no-atomic` run or a store the framework cannot send DDL to.
139
+
140
+ Every staged run says it staged. The two paths are indistinguishable from outside — both end with the target holding the bundle — and an operator deciding whether they can afford to interrupt needs to know which one is running.
141
+
142
+ Verified through the real importer, and falsified before being kept: with staging off, the assertion that the target still holds its own rows WHILE the bundle loads goes red. On real postgres the staged path runs the existing foreign-key replace suite unchanged.
143
+
10
144
  ### Fixed
11
145
 
12
- - **@voltro/database, @voltro/data-transfer, @voltro/cli** — A refused import row reported `(FiberFailure) SqlError: Failed to execute statement` our runtime's rendering of a rejection, marker and stack frames and all — instead of the constraint that fired. It names neither a rule, nor a code, nor even which layer refused, and every row refused for the same cause carries it identically.
146
+ - **@voltro/protocol, @voltro/voltro** — A `_voltro_*` name in `source:` is no longer narrowed against the generated table declaration.
147
+
148
+ Which framework tables an app declares is DEPLOYMENT-dependent. The measurement is already in the maintainer notes: at one `NODE_ENV`, on one dialect, flipping a single flag adds or removes `_voltro_traces`, `_voltro_undo_log` or `_voltro_cdc_offsets` from the declared set. The generated `voltro-tables.generated.d.ts` is written by ONE `voltro dev` run, on one machine, with one set of those inputs.
149
+
150
+ Narrowing framework names against it therefore made `source: '_voltro_traces'` compile for whoever generated the file and fail for a colleague — a type error decided by an environment variable, which is the exact class the declared-schema rule forbids one layer up. An app's own tables are unaffected: `_voltro_` is a reserved prefix, so every name a user writes for their own data narrows exactly as before.
151
+
152
+ **How it surfaced is the part worth recording.** Until now `keyof VoltroTableNames` was always `never` inside this repo, so `TableName` was always `string`, so the narrow and wide types were the same type and every rule about them held vacuously. The first time an augmentation was ever present — a fixture that boots a real server writing the declaration beside its generated rpc group — four framework source files stopped compiling. The split had shipped without once being exercised in the direction that matters.
153
+
154
+ Two things now stop that from going quiet again. A type-test program compiles the framework's own sources under an augmentation that deliberately declares NONE of its tables, and it lives in its OWN tsconfig: `declare module` merging is program-global, so a sibling type test's augmentation had silently rescued the very assertion this one exists to make. And `scripts/check-type-tests.mjs` (CI + `pnpm gate`) DISCOVERS type-test programs and runs them — because nothing did. The existing narrowing assertions had never been compiled once: excluded from their package's tsconfig for a good reason, and picked up by nothing else. It refuses a zero-program run, and a program that compiles zero `*.test-d.ts` files, for the same reason every other check here carries a floor.
155
+
156
+ **Why `apiSurface: compatible`, and how to check it rather than take it.** The gate flagged the golden line as CHANGED and asked the right question — can this turn code that compiled into code that does not? Here it cannot, because the edit WIDENS a union, and every public position the type appears in is an INPUT: `source?:` on a descriptor, and `normalizeSource`'s parameter. Nothing in the published surface RETURNS `TableName` or `ReactivitySource`, which is the only direction in which widening breaks a consumer — an assignment FROM the type into something narrower. `@voltro/voltro` is listed beside `@voltro/protocol` because it re-exports the type, so its golden moved too; the gate matches per package, and one package's classification must not vouch for another's.
157
+ - **@voltro/sql-mssql** — A `json()` column could not take a value on mssql. At all.
158
+
159
+ store.insert(t, { payload: { a: 1 } }) -> TypeError: Invalid string. [EPARAM] store.insert(t, { payload: null }) -> OK
160
+
161
+ So the column worked only while it held nothing. Reached first through `@voltro/plugin-versioning`, whose history row carries a full-row snapshot in exactly such a column: the versioning recorder could not write on that dialect, and therefore neither could any write to a table it covers.
162
+
163
+ The store handed the caller's row straight to `sql.insert(row)`. The mysql store runs `encodeRowForSchema` first — the schema-driven step that turns a json value into text a driver can bind — and mssql had no equivalent anywhere on its write path, so tedious received a JS object for an NVARCHAR parameter and refused it.
164
+
165
+ **Encoding alone would have been worse than the bug.** A value written as text and handed back as text means a WRITE returns a string where a READ of the same row returns an object, and nothing errors — the caller gets a different type depending on how it got there. So every `OUTPUT INSERTED.*` path decodes too (insert, insertMany, update, updateMany, patchJson, the delete old-image, and the MERGE upsert), and the test asserts the ROUND TRIP rather than the absence of an error, against a live SQL Server.
166
+
167
+ With it, the mssql case is back in the versioning key-length suite — the bound on `id()` exists on that dialect too, and it was absent for one release only because nothing could write there.
168
+ - **@voltro/data-transfer, @voltro/cli** — A `scope: all` bundle carried the exporting deployment's own bookkeeping, and `replace` wrote it into the target. The target's next boot refused to start:
169
+
170
+ auto-migrate: SCHEMA FINGERPRINT MISMATCH — declared=6e2c61081a9ed80c live=28af9a54414f22f1
171
+
172
+ The refusal was correct and the row was the defect. A migration-ledger row is not DATA — it states which schema THIS deployment applied — and the fingerprint is computed over the declared table set, which legitimately differs per environment (`NODE_ENV=production` declares `_voltro_traces` and `_voltro_undo_log`; a `development` run does not). So the imported row was not stale, it was FOREIGN. The environment was down for ninety minutes, and the ledger row also HID the incident it travelled with: the api would not start, and the reason looked like the failed import rather than a row in a bookkeeping table.
13
173
 
14
- Two defects, and fixing either alone still leaves a reader stuck.
174
+ Ten framework tables are now classified as environment-local — the migration ledger, the file-migration and seed records, CDC offsets, schedule claims, wakeups, workflow watermarks / pending starts / admissions / pauses. They are dropped from an export's `all` scope, skipped on import, and never emptied by a `replace`, each with the reason a foreign row would be wrong stated beside it. Two of them would have made the target ACT: a pending start runs a workflow somebody queued elsewhere, a pause silently stops one here.
15
175
 
16
- **`Cause.squash` elects a branch, and first is a position, not a ranking.** A `Cause` is a tree, and a transaction routinely produces one with more than one leaf: the statement that failed, and whatever the rollback or a finalizer did on the way out. When the first leaf was the bare wrapper, the driver error sitting in the sibling branch was never looked at. Measured: `sequential(bareSqlError, sqlErrorWithDriver)` classified as nothing while the same two branches in the opposite order classified as `unique constraint PRIMARY … [ER_DUP_ENTRY/1062]`. `extractDbCause` flattens failures AND defects now, in Cause order, expanding a nested `FiberFailure` leaf, and elects the branch that names a driver — the others' chains are appended rather than dropped.
176
+ `all` is the only scope filtered. A caller who NAMES one of these tables gets it an explicit name is an expectation, and this module already refuses to drop those silently.
17
177
 
18
- **A row's reason may never read like a stack trace.** The runtime rendering is stripped before any tier looks at the text, so the failure mode cannot return invisibly. And when no driver detail is reachable at all, the reason now names the CHAIN of wrappers the failure passed through — the difference between "the database refused this row" and "the connection died mid-import" — while the run logs the full rendering of the first few such failures. Never returned over the wire: it carries frames, and on some engines a driver's sentence carries row data.
178
+ The classification refuses to be incomplete: a guard scans every framework table and fails until a new one is decided either way. A hand-list rots by omission, and the omission cost ninety minutes.
19
179
 
20
- `RowsRefusedError` also gained `byTable`: **complete** per-table counts. `rows` is capped at 20, so per-table counts tallied off the printed list sum to the cap rather than to the failure and nothing else in the payload offered any.
180
+ Also fixed, found while reading that path: the admin import endpoint spread `atomic` only when truthy, so an explicit `atomic: false` was dropped and the importer applied its own default which for `replace` is `true`. The one value a caller can only express by asking for it was the one the wire discarded.
@@ -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.44.1",
16
- "@voltro/cli": "0.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/protocol": "0.44.1",
20
- "@voltro/runtime": "0.44.1",
15
+ "@voltro/ai": "0.46.0",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/protocol": "0.46.0",
20
+ "@voltro/runtime": "0.46.0",
21
21
  "effect": "^3.22.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@voltro/testing": "0.44.1",
24
+ "@voltro/testing": "0.46.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.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/plugin-auth": "0.44.1",
20
- "@voltro/protocol": "0.44.1",
21
- "@voltro/runtime": "0.44.1",
22
- "@voltro/sql-postgres": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/plugin-auth": "0.46.0",
20
+ "@voltro/protocol": "0.46.0",
21
+ "@voltro/runtime": "0.46.0",
22
+ "@voltro/sql-postgres": "0.46.0",
23
23
  "effect": "^3.22.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@voltro/testing": "0.44.1",
26
+ "@voltro/testing": "0.46.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.44.1",
20
- "@voltro/database": "0.44.1",
21
- "@voltro/env": "0.44.1",
22
- "@voltro/plugin-multitenancy": "0.44.1",
23
- "@voltro/protocol": "0.44.1",
24
- "@voltro/runtime": "0.44.1",
19
+ "@voltro/cli": "0.46.0",
20
+ "@voltro/database": "0.46.0",
21
+ "@voltro/env": "0.46.0",
22
+ "@voltro/plugin-multitenancy": "0.46.0",
23
+ "@voltro/protocol": "0.46.0",
24
+ "@voltro/runtime": "0.46.0",
25
25
  "effect": "^3.22.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@voltro/testing": "0.44.1",
28
+ "@voltro/testing": "0.46.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.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/plugin-deactivation": "0.44.1",
20
- "@voltro/protocol": "0.44.1",
21
- "@voltro/runtime": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/plugin-deactivation": "0.46.0",
20
+ "@voltro/protocol": "0.46.0",
21
+ "@voltro/runtime": "0.46.0",
22
22
  "effect": "^3.22.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@voltro/testing": "0.44.1",
25
+ "@voltro/testing": "0.46.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.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/plugin-mail": "0.44.1",
20
- "@voltro/plugin-multitenancy": "0.44.1",
21
- "@voltro/protocol": "0.44.1",
22
- "@voltro/runtime": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/plugin-mail": "0.46.0",
20
+ "@voltro/plugin-multitenancy": "0.46.0",
21
+ "@voltro/protocol": "0.46.0",
22
+ "@voltro/runtime": "0.46.0",
23
23
  "effect": "^3.22.0",
24
24
  "react": "^19.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@voltro/testing": "0.44.1",
27
+ "@voltro/testing": "0.46.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.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/plugin-multitenancy": "0.44.1",
20
- "@voltro/plugin-storage": "0.44.1",
21
- "@voltro/protocol": "0.44.1",
22
- "@voltro/runtime": "0.44.1",
23
- "@voltro/sql-mysql": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/plugin-multitenancy": "0.46.0",
20
+ "@voltro/plugin-storage": "0.46.0",
21
+ "@voltro/protocol": "0.46.0",
22
+ "@voltro/runtime": "0.46.0",
23
+ "@voltro/sql-mysql": "0.46.0",
24
24
  "effect": "^3.22.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@voltro/testing": "0.44.1",
27
+ "@voltro/testing": "0.46.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.44.1",
17
- "@voltro/database": "0.44.1",
18
- "@voltro/env": "0.44.1",
19
- "@voltro/plugin-multitenancy": "0.44.1",
20
- "@voltro/protocol": "0.44.1",
21
- "@voltro/runtime": "0.44.1",
22
- "@voltro/sql-sqlite": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/database": "0.46.0",
18
+ "@voltro/env": "0.46.0",
19
+ "@voltro/plugin-multitenancy": "0.46.0",
20
+ "@voltro/protocol": "0.46.0",
21
+ "@voltro/runtime": "0.46.0",
22
+ "@voltro/sql-sqlite": "0.46.0",
23
23
  "effect": "^3.22.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@voltro/testing": "0.44.1",
26
+ "@voltro/testing": "0.46.0",
27
27
  "typescript": "^6.0.3",
28
28
  "@vitest/coverage-v8": "^4.1.10",
29
29
  "vitest": "^4.1.10"
@@ -11,17 +11,17 @@
11
11
  "test": "voltro test"
12
12
  },
13
13
  "dependencies": {
14
- "@voltro/cli": "0.44.1",
15
- "@voltro/database": "0.44.1",
16
- "@voltro/env": "0.44.1",
17
- "@voltro/plugin-multitenancy": "0.44.1",
18
- "@voltro/plugin-storage": "0.44.1",
19
- "@voltro/protocol": "0.44.1",
20
- "@voltro/runtime": "0.44.1",
14
+ "@voltro/cli": "0.46.0",
15
+ "@voltro/database": "0.46.0",
16
+ "@voltro/env": "0.46.0",
17
+ "@voltro/plugin-multitenancy": "0.46.0",
18
+ "@voltro/plugin-storage": "0.46.0",
19
+ "@voltro/protocol": "0.46.0",
20
+ "@voltro/runtime": "0.46.0",
21
21
  "effect": "^3.22.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@voltro/testing": "0.44.1",
24
+ "@voltro/testing": "0.46.0",
25
25
  "typescript": "^6.0.3",
26
26
  "@vitest/coverage-v8": "^4.1.10",
27
27
  "vitest": "^4.1.10"
@@ -13,19 +13,19 @@
13
13
  "dependencies": {
14
14
  "@effect/platform": "^0.97.0",
15
15
  "@effect/rpc": "^0.76.0",
16
- "@voltro/cli": "0.44.1",
17
- "@voltro/cms": "0.44.1",
18
- "@voltro/database": "0.44.1",
19
- "@voltro/env": "0.44.1",
20
- "@voltro/plugin-auth": "0.44.1",
21
- "@voltro/plugin-multitenancy": "0.44.1",
22
- "@voltro/protocol": "0.44.1",
23
- "@voltro/runtime": "0.44.1",
24
- "@voltro/sql-postgres": "0.44.1",
16
+ "@voltro/cli": "0.46.0",
17
+ "@voltro/cms": "0.46.0",
18
+ "@voltro/database": "0.46.0",
19
+ "@voltro/env": "0.46.0",
20
+ "@voltro/plugin-auth": "0.46.0",
21
+ "@voltro/plugin-multitenancy": "0.46.0",
22
+ "@voltro/protocol": "0.46.0",
23
+ "@voltro/runtime": "0.46.0",
24
+ "@voltro/sql-postgres": "0.46.0",
25
25
  "effect": "^3.22.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@voltro/testing": "0.44.1",
28
+ "@voltro/testing": "0.46.0",
29
29
  "typescript": "^6.0.3",
30
30
  "@vitest/coverage-v8": "^4.1.10",
31
31
  "vitest": "^4.1.10"