@voltro/plugin-engine-servers 0.90.0 → 0.91.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.
- package/CHANGELOG.md +121 -0
- package/THIRD-PARTY-NOTICES.md +37 -661
- package/dist/index.js +8 -8
- package/dist/inspect.js +26 -26
- package/dist/plugin.js +42 -42
- package/dist/registry.server.js +496 -496
- package/dist/rows.js +8 -1
- package/dist/rpc.js +40 -40
- package/dist/server.js +5 -5
- package/dist/session.server.js +176 -176
- package/dist/tables.entity.js +20 -20
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -41,6 +41,127 @@ _Changes staged for the next release accumulate here (rolled up from
|
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
+
## [0.91.0] — 2026-11-25
|
|
45
|
+
|
|
46
|
+
### ⚠ BREAKING
|
|
47
|
+
|
|
48
|
+
- **The AI provider adapters are peer dependencies of `@voltro/ai`** — `@voltro/ai`
|
|
49
|
+
|
|
50
|
+
`@ai-sdk/anthropic` (`^4.0.91`) and `@ai-sdk/openai` (`^4.0.104`) moved from `dependencies` to `peerDependencies`, next to `ai`, `@ai-sdk/provider` and `@ai-sdk/gateway`. Each adapter pins `@ai-sdk/provider` exactly. As a dependency, a fresh install resolved the newest adapter, which could pin a newer `@ai-sdk/provider` than the app's own `ai`. The model it built was then typed against a second copy (`Type 'LanguageModelV4' is not assignable to type 'LanguageModel'`) and could stream parts that the app's `ai` does not know. Now the adapter resolves from the app's own pins. Most apps already declare the adapter they configure and need no change. If the install warns about an unmet peer, add that adapter or raise its pin to the floor. `voltro doctor` lists any duplicate copies that remain.
|
|
51
|
+
|
|
52
|
+
**`voltro update` carries you across this** — codemod `0.91.0/01_ai-provider-adapters-are-peers`. If you pin versions by hand and never run it, print the notes without changing anything: `voltro update --codemods-only --from <your current version> --dry-run` (this one ships in 0.91.0).
|
|
53
|
+
- **Workflow cluster tuning is configurable in `app.config.ts` and validated at boot** — `@voltro/workflow`, `@voltro/cli`
|
|
54
|
+
|
|
55
|
+
The failover lease, failover heartbeat, message poll and the new assignment refresh of the workflow cluster can be set in `app.config.ts` under `workflows.cluster` (`failoverLeaseSeconds`, `failoverHeartbeatSeconds`, `messagePollSeconds`, `assignmentRefreshSeconds`). The environment variables `VOLTRO_WORKFLOW_FAILOVER_LEASE`, `VOLTRO_WORKFLOW_FAILOVER_HEARTBEAT`, `VOLTRO_WORKFLOW_POLL_INTERVAL` and the new `VOLTRO_WORKFLOW_ASSIGNMENT_REFRESH` override the matching field. A value outside its range (lease 5–600 s, heartbeat 1–300 s and at most half the lease, poll 1–300 s, assignment refresh 1–60 s) now stops the boot with a message naming the setting. Before, a malformed value was silently replaced by the default, which hid the one setting an operator had changed on purpose. `voltro dev` and `voltro serve` resolve the settings the same way. The assignment refresh defaults to 10 s instead of the cluster library's 3 s: it decides only how soon a newly started or gracefully stopped replica changes shard ownership, while a crashed replica is still detected through its lease.
|
|
56
|
+
|
|
57
|
+
**`voltro update` carries you across this** — codemod `0.91.0/02_workflow-cluster-tuning-is-validated`. If you pin versions by hand and never run it, print the notes without changing anything: `voltro update --codemods-only --from <your current version> --dry-run` (this one ships in 0.91.0).
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- **`voltro add patches --ai 7.0.173` supports the current AI SDK release** — `@voltro/cli`
|
|
62
|
+
|
|
63
|
+
`voltro add patches --ai 7.0.173` writes the declaration patch for `@ai-sdk/provider-utils` 5.0.81, the release `ai` 7.0.173 installs, together with the provider's `@types/json-schema` package extension. Run it before installing AI UI items with shadcn or Voltro. The patches for 7.0.156, 7.0.132 and 7.0.105 remain available.
|
|
64
|
+
- **Serving instances seal previous-release idempotency receipts themselves** — `@voltro/runtime`, `@voltro/cli`
|
|
65
|
+
|
|
66
|
+
Receipts written before input bindings were sealed keep a plaintext digest, which serving refuses as `input-unbound`. Converting them needed `voltro db protect-idempotency-inputs --writers-stopped --yes`, and on a rolling deploy no step runs after the last previous-release instance is gone, so it stayed a manual step. An in-flight receipt that a replaced instance abandoned kept its key refused until someone ran it.
|
|
67
|
+
|
|
68
|
+
The instances that run retention now seal every plaintext receipt on their own, also while previous-release instances still serve. A completed receipt is sealed on the first pass. An in-flight receipt is sealed once it has gone unrenewed for four in-flight leases (two minutes); the previous release itself takes such a receipt over as abandoned, and after sealing the current release does the same, so the key is usable again. A receipt its writer still renews is left for a later pass, and a renewal racing the seal wins. A previous-release instance that meets a sealed receipt refuses that request; it never executes it twice. No operator step remains after a rolling deploy; the command stays for an offline window.
|
|
69
|
+
|
|
70
|
+
`makeIdempotencyInputProtection` accepts `{ liveWriters: true, staleAfterMs?, now? }` for this mode, its report gains `deferred`, and `DEFAULT_ABANDONED_INPUT_BINDING_MS` names the default window.
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- **The framework runs on effect 4.1.4** — `@voltro/cli`, `@voltro/devtools`, `@voltro/runtime`, `@voltro/database`, `@voltro/voltro`, `@voltro/workflow`, `@voltro/sql-sqlite`, `@voltro/sql-mysql`, `@voltro/sql-mssql`, `@voltro/sql-postgres`
|
|
75
|
+
|
|
76
|
+
Every `@voltro/*` package now pins `effect` and its `@effect/*` companions to 4.1.4. `voltro update` moves the pins, the lockstep overrides and the version-keyed patch entries for you; a workspace you update by hand runs `voltro add patches` after pinning 4.1.4, which writes the 4.1.4 patch files and retires the 4.1.2 entries.
|
|
77
|
+
|
|
78
|
+
Effect 4.1.4 fixes the configuration parser's shared sentinels itself, so the framework's `effect` patch no longer carries that change; its cluster, workflow and SQL message-storage changes carry over unchanged.
|
|
79
|
+
|
|
80
|
+
Two upstream changes reach code that uses Effect's SQL and cluster modules directly:
|
|
81
|
+
|
|
82
|
+
- `PgClient`, `MysqlClient` and `MssqlClient` no longer extend `SqlClient`; their layers provide both services side by side. The framework's store options (`sqlLayer` of the PostgreSQL, MySQL and SQL Server stores) now ask only for `SqlClient`, so any layer that provides it is accepted. A PostgreSQL store with `changeStrategy: 'cdc'` still reads `PgClient` for `LISTEN` and refuses to start its consumer, naming `makePostgresSqlLayer()`, when the layer does not provide it. - `MessageStorage` has a new `deleteProcessed` operation. A custom `MessageStorage` implementation must add it. The workflow engine's journal admission bounds it like every other storage operation.
|
|
83
|
+
- **An idle multi-replica deployment runs a fraction of its former database traffic** — `@voltro/cli`, `@voltro/runtime`, `@voltro/workflow`, `@voltro/database`
|
|
84
|
+
|
|
85
|
+
A two-replica PostgreSQL deployment that nobody used ran about 500 statements a minute per replica, most of them workflow recovery reads that returned no rows every second. Measured the same way, it now runs about 75. The workflow control, restart, admission and flow-control sweeps run on the coordinated scheduler: they wake at once on a write they can see through the change feed or a broadcast broker, and otherwise back off to the 30-second idle ceiling (`pollCeilingMs`), which remains the crash backstop. Without a visible change feed, workflow admission still reconciles every five seconds. The field-key lease renews every 30 seconds with a 90-second lifetime and reacts at once to a key change. The secret-window sync reads its table once per pass. Web replicas publish their observation every 30 seconds and count as stale after 90. Schedule claims and replica observations no longer carry a change trigger, so their periodic writes notify no listener. What an idle fleet still costs, and why each statement is time-bound, is documented under production hardening.
|
|
86
|
+
- **VoltroFooter links Contact to the contact form, names the company in formation** — `@voltro/ui-shadcn`
|
|
87
|
+
|
|
88
|
+
`VoltroFooter`'s Contact link under Company now opens the contact form on voltro.cloud (`/contact`, or `/de/contact` in German) instead of a `mailto:` address, and the copyright line and `voltroOrganizationJsonLd()` name the company as `Voltro UG (haftungsbeschränkt) i.G.` while its commercial register entry is pending.
|
|
89
|
+
|
|
90
|
+
### Fixed
|
|
91
|
+
|
|
92
|
+
- **The billing plugin loads without an initialisation error** — `@voltro/plugin-billing`
|
|
93
|
+
|
|
94
|
+
Loading `@voltro/plugin-billing` could stop with `Cannot access '…' before initialization`, which made `voltro codegen` refuse an `app.config.ts` that uses the plugin. Two internal modules imported each other, and the catalog read the Stripe SDK before that module had finished loading. The package's modules no longer import each other in a cycle, and a test keeps it that way.
|
|
95
|
+
- **Trailing-slash URLs keep their page during hydration** — `@voltro/web`
|
|
96
|
+
|
|
97
|
+
Browser routing now accepts the same trailing-slash URLs as server rendering. Opening `/about/` or `/users/42/` retains the matching page during hydration and navigation instead of showing a not-found page or a broader catch-all. Route priority and once-decoded parameters remain consistent.
|
|
98
|
+
- **The `voltro build` prerender no longer fails on a slow module transform** — `@voltro/cli`
|
|
99
|
+
|
|
100
|
+
The prerender loaded each page, layout and helper through Vite's `ssrLoadModule`, whose fetch of one module times out after a fixed 60 seconds. On a busy machine, such as a CI runner shared with other jobs or a container at its CPU limit, one cold transform could take longer than that, and the build failed with `transport invoke timed out after 60000ms` although the app was fine. The prerender now loads through its own module runner, which allows ten minutes per module. A transform that never settles still fails the build. Errors keep their source-mapped stack, and all prerendered pages still share one instance of each module.
|
|
101
|
+
- **Charset conversion restores foreign keys in plan order, and so does its undo** — `@voltro/database`, `@voltro/cli`
|
|
102
|
+
|
|
103
|
+
When a declared `store: { charset }` converts two tables joined by a foreign key, the constraint is now re-created by whichever conversion runs later in the plan. It used to be decided by table name. A table with column changes in the same plan converts later than one without, so an apply could stop with InnoDB `errno 150` (MySQL `3780`) when the earlier table re-created the constraint against a column not yet converted. Even without that error, the later table skipped the constraint, so it was lost. The undo of a deploy that stopped in that state also tried to re-create such a constraint across the two character sets and stopped on its first statement with nothing reverted. It now converts the tables back first and re-creates the dropped constraints afterwards.
|
|
104
|
+
- **Clients view compares SDKs in bundle-only production images** — `@voltro/cli`
|
|
105
|
+
|
|
106
|
+
The dashboard's Clients view and `GET /_voltro/inspect/clients` could not tell whether a connected engine SDK was generated from the running API when the API ran from the serve bundle alone: the comparison value was computed from the app's TypeScript sources at request time, and a standalone image has neither those nor their loader, so every client showed as unknown. `voltro build` now computes the API's `surfaceSha256` and records it in the serve bundle. Rebuild the api to get the comparison in production.
|
|
107
|
+
- **Restore keyboard focus after live row removal** — `@voltro/devtools-ui`
|
|
108
|
+
|
|
109
|
+
After a successful confirmation, a dialog with a connected `returnFocusTo` destination focuses it immediately. This keeps keyboard focus in the directory when the live row disappears after the mutation acknowledgment. Cancel returns focus to the original opener while it is available.
|
|
110
|
+
- **A failed SSR module load in dev is retried on the next request** — `@voltro/cli`
|
|
111
|
+
|
|
112
|
+
Vite keeps a module whose server evaluation threw and rethrows that error on every later load until the file changes. In `voltro dev` a one-off failure therefore broke every route that imports the module until the dev server restarted. One example is the module runner's 60-second fetch timeout on an overloaded machine. The failed modules are now invalidated after the failed request, so the next request loads them again. A bug in the code still fails on every request. The `voltro start` fallback that compiles pages on demand behaves the same way.
|
|
113
|
+
- **A dev SSR load whose import transform hung recovers on the next request** — `@voltro/cli`
|
|
114
|
+
|
|
115
|
+
When the module runner's 60-second fetch timeout failed a page while one of its imports was still being transformed, that import carried no error of its own, so the earlier recovery left it alone. Vite then handed every later request the same pending transform, and the route kept answering 500 after another 60 seconds until the dev server restarted. A failed load in `voltro dev` and in the `voltro start` on-demand fallback now also invalidates each import of the failed modules that never finished loading, so the next request transforms it afresh. The inspect route list, the OG route and content collections load pages through the same recovery.
|
|
116
|
+
- **Dev server keeps seeing edits in nested folders of a recreated directory** — `@voltro/cli`
|
|
117
|
+
|
|
118
|
+
When a generator deletes and recreates a directory while the dev server is busy, edits inside its subfolders now reach the server again too. Before, only files directly inside the recreated directory were picked up, and a page under a subfolder kept serving its old module until `voltro dev` restarted.
|
|
119
|
+
- **The devtools capsule keeps a steady status and stays where you drop it** — `@voltro/devtools`, `@voltro/web`
|
|
120
|
+
|
|
121
|
+
During a dev navigation the capsule switched between `Loading` and `Compiling` several times a second. A page request now only advances (`Loading` → `Compiling` → `Rendering`), `Compiling page` stays until the page's code has arrived, and the capsule keeps each progress status on screen briefly before showing the newest one. Errors and a navigation to another route still show at once. A long route is shortened in the middle of its path on one line, so the action and the end of the route stay readable; the tooltip carries the full text. A capsule you drag over page content now stays where you drop it until the page reloads, instead of moving to the nearest free slot, which was often the one it came from.
|
|
122
|
+
- **Engine server checkpoints stay in their environment** — `@voltro/data-transfer`
|
|
123
|
+
|
|
124
|
+
`voltro data export` and environment seeding now treat the game checkpoints that `@voltro/plugin-engine-servers` keeps for crash recovery as environment-local, like the sessions they belong to. A checkpoint copied into another environment would resume a session that environment never hosted.
|
|
125
|
+
- **Copied agent-docs and desktop serve bundles are replaced whole, never partly** — `@voltro/cli`
|
|
126
|
+
|
|
127
|
+
The `agent-docs/` directory that `voltro agents-md` and `voltro dev` copy into a project, and the `src-tauri/resources/serveBundle/` that `voltro desktop build` places, are now built beside the old directory and swapped in only once complete. A copy that cannot finish now leaves the previous directory exactly as it was. That includes a source the package manager is replacing during an install, an interrupted or killed process, and a second seeder working at the same moment. Before, the old directory was removed first and refilled file by file, so a stopped copy left part of it deleted: for a committed `agent-docs/`, dozens of deletions in `git status`. Two concurrent seeds of one repository also no longer report spurious copy failures. A process killed mid-copy may leave a `.agent-docs.voltro-replace-*` directory with its own `.gitignore`, which a later seed removes once its process has ended.
|
|
128
|
+
- **The document language returns after leaving a URL locale** — `@voltro/web`
|
|
129
|
+
|
|
130
|
+
After a client-side switch to a `[locale]` route (`/x` → `/de/x`), navigating back to a page without a URL locale now restores `<html lang>` and the language `meta` resolves in to the one the server rendered. Previously the router read its own earlier change back, so the English page kept `lang="de"` and a German title.
|
|
131
|
+
- **A boot waiting for the migration lock takes it once the holder releases** — `@voltro/database`
|
|
132
|
+
|
|
133
|
+
A replica waiting for another replica's migration on PostgreSQL, MySQL or MariaDB could abort its boot with `its holder has been silent for 30s` while the holder was alive and had just finished: when the holder released the lock between the waiter's failed attempt and its liveness read, "no holder any more" was judged like "a holder gone quiet". The waiter now retries at once when it finds no holder and takes the lock. A holder whose session the waiting role cannot read is refused at the timeout as before, and the refusal now says that the session was not visible instead of claiming it was silent.
|
|
134
|
+
- **SQL Server reads outside a transaction replay a deadlock victim** — `@voltro/sql-mssql`, `@voltro/plugin-engine-servers`
|
|
135
|
+
|
|
136
|
+
Under locking `READ COMMITTED`, SQL Server can pick a plain `SELECT` as the deadlock victim (error 1205) when it meets concurrent writers. A transaction already replayed such a failure, but a read outside one failed at once. On engine servers this let a sweep racing a resume answer `unavailable`. A read outside a transaction now replays on the same bounded schedule as a transaction (4 attempts, exponential backoff from 10 ms). A read inside your transaction still replays only with the whole transaction.
|
|
137
|
+
|
|
138
|
+
Engine-server errors that answer `unavailable` for a storage failure now keep the original error as a non-enumerable `cause` for server logs. The wire error still carries only `code` and `reason`.
|
|
139
|
+
- **Native backups report success only after the dump file is written** — `@voltro/data-transfer`
|
|
140
|
+
|
|
141
|
+
`voltro data backup` with a native dump tool now waits until the dump file is fully written and closed before it reports success. On a busy machine the command could previously finish while the file was still missing, empty or truncated. A failure to write the file now fails the backup and removes the partial output.
|
|
142
|
+
- **prune-runtime no longer keeps the CLI behind the serve bundle** — `@voltro/cli`
|
|
143
|
+
|
|
144
|
+
`voltro prune-runtime` followed the serve bundle's lazy import of `@voltro/cli/devArtifacts` and kept the CLI's whole command graph and its templates in the image — several thousand files. That subpath reads the app's TypeScript sources and cannot work in a bundle-only image, where the caller already falls back, so the trace now skips it.
|
|
145
|
+
|
|
146
|
+
No action needed. Standalone images get smaller on the next build.
|
|
147
|
+
- **voltro prune-runtime no longer runs out of memory on large api apps** — `@voltro/cli`
|
|
148
|
+
|
|
149
|
+
`voltro prune-runtime` could stop with "heap out of memory" at Node's default heap limit on an api app with a few thousand modules. Bundled code that reads files below the working directory made the trace follow the whole deploy directory: the app's sources, the unbundled entries and every package those import were parsed although none of them runs in production. The trace now follows files outside `node_modules` only inside the built bundles, and traces each bundle on its own. On an api of about 2,450 modules the peak heap fell from 3.5 GB for one bundle to under 0.7 GB for all three, and packages that only the sources import are no longer kept in the image. Remove a raised `--max-old-space-size` for this step once you are on this version.
|
|
150
|
+
- **Rolling-deploy advisory skips constraints on a column the same plan adds** — `@voltro/database`, `@voltro/cli`
|
|
151
|
+
|
|
152
|
+
`voltro db plan` and `voltro db apply` no longer report a foreign key, CHECK or JSON check as unsafe under a rolling deploy when it lands on a column the same plan adds as nullable without a default. An instance on the previous release does not know that column and can only leave it `NULL`, which these constraints admit — so an upgrade that adds a nullable reference column, its parent table and the foreign key together (including on framework tables) prints no advisory. `NOT NULL`, unique constraints and constraints on a new column with a default keep their verdict. `rollingDeployContextOf(operations)` is exported beside `createdTablesOf` for callers that classify single operations.
|
|
153
|
+
- **Concurrent first Room moderation of one Subject no longer fails on Postgres** — `@voltro/plugin-rooms`
|
|
154
|
+
|
|
155
|
+
Two servers that kicked the same Subject at the same moment for the first time could make one of them answer "Original Room moderation outcome is unconfirmed" on Postgres. The losing transaction hit the Subject table's second unique key. It now runs once more, finds the committed Subject row, and both callers receive the same result.
|
|
156
|
+
- **Boot catch-up after downtime no longer holds scheduler readiness** — `@voltro/runtime`
|
|
157
|
+
|
|
158
|
+
A schedule with `backfill: 'latest'` that had not run for a long time claimed and recorded every missed occurrence one after another, up to 1000 per schedule, before the scheduler reported running, so readiness stayed `503` for minutes after a long downtime. It also fired the thousandth occurrence after the last run instead of the most recent one, which left the next boot another gap to walk. The catch-up now fires once at the most recent due occurrence and records the older ones as a single `missed` row whose `result` carries `{ missed: { from, through, occurrences } }` (`occurrencesAtLeast` once the count passes 1000) — two claims per gap, whatever its length. Boot catch-up for `latest` and `all` runs after startup, per schedule and before that schedule's live timer arms, so `SchedulerHandle.isRunning()` and readiness no longer wait for catch-up handlers. Readers that counted `missed` rows per occurrence should read the count from `result` instead. An `all` gap longer than 1000 occurrences now logs the first occurrence it did not fire.
|
|
159
|
+
- **yarn workspaces also get the peers of the framework's peers** — `@voltro/cli`
|
|
160
|
+
|
|
161
|
+
A yarn workspace's `.yarnrc.yml` lists every non-optional peer of the framework tree as `packageExtensions`, because yarn installs no peers. That list now also covers the packages those peers bring in. The AI adapters became peers of `@voltro/ai` in this release; without this, a fresh yarn workspace installed `@ai-sdk/provider-utils` without `zod` and `voltro codegen` stopped with `Cannot find package 'zod'`. Workspaces created by an earlier release already list `zod` through the adapters they installed then, and need no change.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
44
165
|
## [0.90.0] — 2026-11-16
|
|
45
166
|
|
|
46
167
|
### ⚠ BREAKING
|