@voltro/ui-shadcn 0.68.0 → 0.69.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 +222 -0
- package/THIRD-PARTY-NOTICES.md +1 -113
- package/dist/index.d.ts +34 -1
- package/dist/index.js +200 -140
- package/dist/signal.css +63 -0
- package/package.json +2 -2
- package/src/compositions/signalWorkspace.tsx +63 -0
- package/src/index.ts +1 -0
- package/src/primitives/checkbox.tsx +2 -2
- package/src/signal.css +63 -0
- package/src/widgets.tsx +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -39,6 +39,228 @@ _Changes staged for the next release accumulate here (rolled up from
|
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
|
+
## [0.69.0] — 2026-09-10
|
|
43
|
+
|
|
44
|
+
### ⚠ BREAKING
|
|
45
|
+
|
|
46
|
+
- **@voltro/runtime** — A typed store error now reaches the caller as itself instead of being re-wrapped as `StoreOperationFailed`.
|
|
47
|
+
|
|
48
|
+
The Effect store's catch boundary passed two of the six `StoreError` variants through by name and wrapped everything else. The wrapper builds `cause` with `wireSafeCause`, which reads DRIVER fields — and a typed error carries none, so it landed on its own class name. A consumer's postgres answered `23503` with `ai_generation_requests_createdBy_fkey`; the store classified it into a `ConstraintViolation` carrying that name, and the client received `StoreOperationFailed { cause: "ConstraintViolation" }`. The constraint name was extracted correctly and then discarded by re-wrapping — the half that turns a half-hour search into a one-line diagnosis, and the half `cause` promises in its own doc comment.
|
|
49
|
+
|
|
50
|
+
`ConstraintViolation`, `TableValidationFailed` and `ServerOnlyColumnWrite` now arrive typed, with their constraint, issues and columns intact. The rule is over the SET — every `StoreError` variant — because naming variants individually is what produced this.
|
|
51
|
+
|
|
52
|
+
**Check your descriptors' `error:` unions.** A handler that declared only `StoreOperationFailed` to catch constraint failures will now see a `ConstraintViolation` it does not declare, which reaches the client as an untagged internal error instead. Declare the variant you actually want to catch, or `StoreError` for all of them.
|
|
53
|
+
|
|
54
|
+
**`voltro update` carries you across this** — codemod `0.69.0/06_typed-store-errors-are-not-rewrapped`. 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.69.0).
|
|
55
|
+
- **@voltro/runtime, @voltro/voltro** — Issuing an API key now plants its `actors` row, and `ApiKeyStore` gained a required `ensureActor`.
|
|
56
|
+
|
|
57
|
+
`actors.kind` is declared by the framework as `'user' | 'serviceAccount' | 'apiKey' | 'system'` and `audit()` makes every `createdBy` a foreign key onto that table — so an API key is explicitly an audit subject. `issue()` wrote only `_voltro_api_keys`, so the row never existed: measured in a consumer's database, `actors with kind='apiKey'` came back 0, and the first audit-stamped insert by a key-authenticated caller died on the foreign key. `apiKeys:` and `audit()` are both on by default and were not combinable.
|
|
58
|
+
|
|
59
|
+
The row is planted BEFORE the key row, so a failure leaves no usable key rather than one that authenticates and then dies on its first audited write. Its id equals the key id, which is what `apiKeyStrategy` presents as `subject.id` — the `actors.id == subject.id` convention the core table documents. Revoking leaves the row: it is the author of everything that key wrote.
|
|
60
|
+
|
|
61
|
+
`@voltro/voltro` is named too because it re-exports the runtime surface, so the break reaches an app importing from the aggregate exactly as it reaches one importing from `@voltro/runtime`. (`memoryApiKeyStore`'s return type also widened to expose the planted rows for tests — an intersection, still assignable to `ApiKeyStore`, so that half breaks nobody.)
|
|
62
|
+
|
|
63
|
+
`ensureActor` is REQUIRED rather than optional. An optional hook would be the same defect with a nicer name — the mistake was omission, and an optional field is omissible. Both framework stores implement it; only an app with its own `ApiKeyStore` has anything to do.
|
|
64
|
+
|
|
65
|
+
**`voltro update` carries you across this** — codemod `0.69.0/05_api-key-store-plants-its-actor`. 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.69.0).
|
|
66
|
+
- **@voltro/ai, @voltro/plugin-billing, @voltro/plugin-comments** — `ai`, `@ai-sdk/provider`, `@ai-sdk/gateway` and `stripe` are peer dependencies now — and `@voltro/plugin-comments` stops shipping its own `effect`.
|
|
67
|
+
|
|
68
|
+
`@voltro/ai` declared `ai: ^7.0.92` under `dependencies`. An app that configures a provider directly declares `ai` itself, and one that pinned it below our floor got a SECOND physical copy — with it a second `@ai-sdk/provider-utils`. Those types are branded with a symbol, so two structurally identical copies are not assignable to each other:
|
|
69
|
+
|
|
70
|
+
Argument of type '…provider-utils@5.0.39/…ToolSet | undefined' is not assignable to parameter of type '…provider-utils@5.0.33/…ToolSet | undefined'
|
|
71
|
+
|
|
72
|
+
Nothing fails at install and nothing fails at runtime. It surfaces as a typecheck error, only at the seams where an SDK type crosses the package boundary — which for `@voltro/ai` is thirteen types in its own api golden, `ToolSet` among them. `effect` has been a peer from the start for exactly this argument; it had never been applied to the SDKs whose types cross the same line.
|
|
73
|
+
|
|
74
|
+
**The criterion is narrower than "the type crosses the boundary", and the difference is what keeps this from becoming churn.** Counted over the repo, 21 packages have a third-party dependency whose types appear in their api golden. A second copy needs a second DECLARER, so the question is whether the APP is expected to declare the package too. It is for `effect` (every handler imports it), for `ai` / `@ai-sdk/*` (you declare them to configure a provider) and for `stripe` (`normalizeStripeEvent` takes an event built by the app's own SDK instance). It is not for `@effect/sql`, the dialect drivers, `ioredis`, `@opentelemetry/*` or `@radix-ui/*` — one range is declared in one place and one copy resolves.
|
|
75
|
+
|
|
76
|
+
`scripts/check-boundary-peers.mjs` (CI + `pnpm check:boundary-peers`) asserts that rule and PRINTS the judged-invisible set on every run, because a check that has quietly narrowed reads exactly like a clean one. It ships a `--selftest` that re-introduces `ai` as a dependency and requires the rule to fire.
|
|
77
|
+
|
|
78
|
+
`@voltro/plugin-comments` was the one package declaring `effect` under `dependencies` while every other peers it — the two-copies rule the repo already holds absolutely, with a single unapplied exception.
|
|
79
|
+
|
|
80
|
+
Most apps do nothing: the installer resolves a peer it can satisfy. An install that now warns about an unmet peer is the change working — it is saying that your pin and ours do not intersect, which is what silently produced the second copy before.
|
|
81
|
+
|
|
82
|
+
**`voltro update` carries you across this** — codemod `0.69.0/03_sdk-peers-are-declared-by-the-app`. 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.69.0).
|
|
83
|
+
- **@voltro/plugin-storage** — The self-service upload routes refuse a caller with no identity, unless the app declares `storagePlugin({ anonymousUploads: true })`.
|
|
84
|
+
|
|
85
|
+
Those routes are `openAccess`, and each justified itself in source with "the ticket binds the calling subject + tenant, caps size, and the finalize path runs limits + scan". Every clause after the first depends on there BEING a calling subject, and `openAccess` does not establish one — an unauthenticated request resolves to an anonymous subject carrying `id: null`. So a visitor could mint a ticket with `sub: null, tenant: null`, and the object it finalized belonged to no owner and sat in no tenant: unreachable by every later owner check, tenant filter and quota, with a subject binding that compares `null` against `null` and therefore passes for every subsequent caller.
|
|
86
|
+
|
|
87
|
+
The framework already refuses exactly that comparison one level up — `defineMutation` rejects `requiresApproval` beside `openAccess` because "two anonymous callers both compare as `null`". Same shape, one layer down.
|
|
88
|
+
|
|
89
|
+
Whether a caller must be identified is not a wire question and the descriptor cannot answer it: only the app knows whether it wants a public intake. So the WIRE stays open — `openAccess` is unchanged and still means "anyone who can reach this may call it" — and the identity requirement lives in the plugin, where the app's own answer is in scope. `anonymousUploads` defaults to false; an app that turns it on is choosing ownerless objects deliberately, and should pair it with `limits` and a `scan`.
|
|
90
|
+
|
|
91
|
+
It is fixed over the SET rather than at the route that shows it best. Five handlers took the subject straight off the request — the ticket mint, the presigned mint, the resumable begin, the multipart begin and the direct upload — and `ctx.request.subject.id` reads as locally correct at every one of them; a sixth is one paste away. There is one resolver now, `ingestUrl` is routed through it too so write attribution has a single spelling in the file, and a test asserts over the source that no `sub:` or `ownerId:` takes its value from the request.
|
|
92
|
+
|
|
93
|
+
The finalize and multipart-completion comparisons said "the token is bound to the minting subject; a different caller can't finalize it", which is false for a ticket that was minted anonymously. That is one named function now, and it says what the binding actually is in that case: possession of the signed, short-lived token, and nothing else.
|
|
94
|
+
|
|
95
|
+
**`voltro update` carries you across this** — codemod `0.69.0/02_anonymous-uploads-must-be-declared`. 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.69.0).
|
|
96
|
+
- **@voltro/database** — `releaseMigrationLock` is gone; `acquireMigrationLock` returns the release.
|
|
97
|
+
|
|
98
|
+
Because the MySQL migration lock was being released while the migration was still running.
|
|
99
|
+
|
|
100
|
+
Every dialect but sqlite implements it as a SESSION-scoped object — `GET_LOCK`, `pg_advisory_lock`, `sp_getapplock @LockOwner = 'Session'` — and all three die with the connection that took them. Taken through the pooled client, that stated an intent the plumbing did not keep. Measured on MySQL 8, with a second connection watching both the lock and the process list:
|
|
101
|
+
|
|
102
|
+
direkt nach acquire gehalten von conn 131 +500ms lock=FREI conn 131 lebt=false
|
|
103
|
+
|
|
104
|
+
The holder was gone inside half a second — closed, not returned to the pool — so the server dropped the lock and two `voltro db apply` runs against one server could both proceed past the thing that exists to stop exactly that. Postgres survived the same window, which is a driver's idle policy rather than a property: `@effect/sql-pg` keeps its connections and `@effect/sql-mysql2` does not. The lock now RESERVES its connection for as long as it is held, on every session-scoped dialect. sqlite is exempt and must stay exempt — its lock is a no-op and reserving its single connection would starve the work.
|
|
105
|
+
|
|
106
|
+
`acquireMigrationLock` returns the release instead of there being a free `releaseMigrationLock(sql, scope)`. A free release cannot know which connection took the lock, and on all three dialects a release on the wrong connection is a no-op that reports success — which is what it had been doing.
|
|
107
|
+
|
|
108
|
+
**Fixing that alone would have wedged every migration after a failed one**, and that is the more important half. `applyPlan` and the file-based runner released the lock from a `try/finally` inside `Effect.gen`, and a `finally` there does NOT run when a yielded effect FAILS: Effect short-circuits without resuming the generator. Measured — a deliberately failing operation reached neither the finalizer nor the release. The hole is as old as those functions and was invisible for as long as the release did nothing and the lock dissolved on its own. Two defects cancelling reads exactly like neither existing. Every acquisition is bracketed with `Effect.acquireUseRelease` now, which also covers defects and interruption, and a guard asserts it over the SET of call sites rather than the one that was found — three had the same shape, and the shape looks correct.
|
|
109
|
+
|
|
110
|
+
The fakes gained the `reserve` a `SqlClient` always owed, from one shared definition rather than six copies. It suspends: a real connection method BUILDS an effect rather than running the statement, and a fake that records on call instead of on run reports `RELEASE_LOCK` before the DDL it follows — a fake inventing an ordering violation, which reads exactly like a real one.
|
|
111
|
+
|
|
112
|
+
**`voltro update` carries you across this** — codemod `0.69.0/01_migration-lock-returns-its-release`. 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.69.0).
|
|
113
|
+
- **@voltro/protocol** — `workflowToRpc` preserves the literal workflow name and the payload schema, so a workflow no longer widens the generated client.
|
|
114
|
+
|
|
115
|
+
It was typed `Rpc.Rpc<string, Schema.Schema.Any, …>`. A by-name lookup in an rpc group matches members by tag and every tag is assignable to `string`, so that one member joined the lookup for every OTHER procedure: a single workflow erased typed access to the entire group.
|
|
116
|
+
|
|
117
|
+
Filed BREAKING under this file's own "more precise is still BREAKING" rule — nothing was removed, the client simply gained the type information it should always have had, and that is strictly more ways to fail `tsc`. Apps without a workflow are unaffected.
|
|
118
|
+
|
|
119
|
+
Migration: run `voltro codegen` (or boot `voltro dev`), then typecheck. The new errors are real disagreements — a payload that never matched its schema and failed at runtime instead, a now-redundant cast, or a cast that refuses because the two shapes genuinely differ. Do not silence any of them with `as unknown as`; that restores exactly the blindness this removes.
|
|
120
|
+
|
|
121
|
+
**`voltro update` carries you across this** — codemod `0.69.0/04_workflow-rpc-types-are-precise`. 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.69.0).
|
|
122
|
+
|
|
123
|
+
### Added
|
|
124
|
+
|
|
125
|
+
- **@voltro/database, @voltro/runtime** — `upsertRowOutcome(store, table, row, options)` — the upsert, plus whether it INSERTED or UPDATED.
|
|
126
|
+
|
|
127
|
+
`upsert` returns the row and not what happened to it, so an app that has to report "created" reads first and then upserts. Measured on a real ingest: one extra query per row, purely to set a flag — and a window, because another writer between the read and the write makes the answer wrong.
|
|
128
|
+
|
|
129
|
+
It costs nothing to answer. The store wrapper mints the row's `id` before the statement, and on the conflict path every dialect hands back the EXISTING row's id — a fact `upsertBinding`'s header already relied on for the encrypted-column binding. Two ids that differ ARE the answer. No dialect implements anything: the outcome is decided from what the wrapper already had in hand.
|
|
130
|
+
|
|
131
|
+
**`'inserted'` is never a stand-in for "could not tell",** and that is the half worth reading. The free comparison needs an id the wrapper minted — a caller-supplied id is unchanged on both paths, and a database-assigned one does not exist yet — so in those two cases the destination is READ first and the answer stays exact. Only a call that asked for the outcome pays for it; plain `upsert` is byte-for-byte the call it was.
|
|
132
|
+
|
|
133
|
+
That required separating two facts `upsertDestinationId` had collapsed. It returns the OFFERED id both when nothing conflicts and when the conflicting row's id happens to BE the offered one — identical answers for binding a ciphertext, opposite answers for "what did this do". `upsertConflictId` reports existence; the destination is derived from it.
|
|
134
|
+
|
|
135
|
+
The helper is `async` so its refusal (a hand-written `DataStore` without the method) arrives as a rejection rather than a synchronous throw: a function whose type says `Promise` and which sometimes throws before returning one splits every caller's error handling in two.
|
|
136
|
+
|
|
137
|
+
**No `upsertMany`.** The batch form was asked for alongside this, and the reported batches are ~30 rows — at that size the round trips are not the cost, the missing `created` flag was, and it is now free. A conflict-write batch still belongs in ONE `store.transactional` with a capped input, which is what the `bulk-write-in-loop` advice says.
|
|
138
|
+
- **@voltro/cli** — `VOLTRO_DASHBOARD=on` — the counterpart `off` never had.
|
|
139
|
+
|
|
140
|
+
The launcher skips the dashboard when stdout is not a TTY, which is a good stand-in for "nobody is watching": CI, a smoke run, a piped script. It stops being one the moment a task runner is in the way. `turbo run dev` — how a multi-app project is normally brought up — captures each task's output to prefix it (24 731 prefixed lines in one gate log), so `isTTY` is false for a developer sitting right in front of it, and the dashboard could not be turned on at all.
|
|
141
|
+
|
|
142
|
+
Measured on the same non-TTY boot, before and after:
|
|
143
|
+
|
|
144
|
+
without dashboard not launched: stdout is not a TTY (CI/smoke) with auto-launching dashboard at http://localhost:5179
|
|
145
|
+
|
|
146
|
+
It overrides only the guess. The recursion guard, the launch lock and the port-in-use check are measurements rather than proxies and still apply — so two apps started together still share one dashboard, and the second reports `already-running` instead of racing for the port.
|
|
147
|
+
|
|
148
|
+
The skip reason names the variable, because a guess you cannot overrule is a wall.
|
|
149
|
+
- **@voltro/devtools-ui** — Show automatic data synchronization as a connection status, highlight changed cells and new visible rows, and briefly retain confirmed deleted rows in red. Query navigation stays quiet, active editors retain focus, and reduced motion uses a static tint. Local and Cloud providers carry CDC deletion identities.
|
|
150
|
+
- **@voltro/ui-shadcn, @voltro/devtools-ui** — Cloud and local Devtools now share `SignalWorkspace`, `SignalWorkspaceHeader` and `AppInspectorHeader`: one masthead, background, heading rhythm and app identity. Local navigation and live charts keep their full functionality while using the shared workspace styling and semantic theme colors.
|
|
151
|
+
- **@voltro/database** — `insertManyRows(store, table, rows)` — `insertRow`'s batch, typed on the element.
|
|
152
|
+
|
|
153
|
+
It forwards to `store.insertMany` unchanged, so the chunking, the dialect behaviour and the conflict semantics stay exactly what the string-keyed call already did. What it adds is the type link the string-keyed form cannot have: every element is checked against the table's insert row, so an element missing a required column, misspelling one, or passing a `number` where the column is a timestamp is a compile error at the call site rather than a dialect error somewhere inside the batch.
|
|
154
|
+
|
|
155
|
+
The batch needed its own helper rather than a loop over `insertRow` because of where the mismatches actually come from: a batch is usually MAPPED — from a parsed import, an API page — and the loop body's inferred element type is only as good as whatever produced the array. That is the shape a mapped `Date` versus `number` survives review in.
|
|
156
|
+
|
|
157
|
+
The set-based conflict forms (`insertManyIgnore`, `upsertMany`) remain unbuilt, for the reasons already recorded against them; this is a typing gap, not a conflict-handling one.
|
|
158
|
+
|
|
159
|
+
### Fixed
|
|
160
|
+
|
|
161
|
+
- **@voltro/protocol** — An auth strategy that declares a `claimsBearerPrefix` is now asked BEFORE strategies that declare none, for a token carrying that prefix.
|
|
162
|
+
|
|
163
|
+
Turning on `apiKeys:` made every API key unusable as soon as a JWT strategy sat in the chain. Two reasonable pieces produced a third thing nobody chose: `apiKeys:` appends the framework key strategy LAST, and `jwtBearerStrategy` — so all six catalog strategies (supabase, auth0, clerk, kinde, oidc, workos) — claims EVERY `Authorization: Bearer`. A token it cannot verify comes back `failed`, not `skip`, and a `failed` ends the chain by design, because a credential another IdP rejected could be an attack masquerading as ours. So a valid key was refused by the JWT verifier before the key strategy was ever asked. Nothing logged an error; the key simply never worked.
|
|
164
|
+
|
|
165
|
+
The boot check could not see it: it warns when TWO strategies declare the same prefix, and the JWT strategy declares none while claiming everything.
|
|
166
|
+
|
|
167
|
+
`failed` still ends the chain — that property is untouched. What changed is who is asked first: a declared prefix is a strategy saying "this token shape is mine", which is more specific than claiming everything by declaring nothing. A token matching no declared prefix leaves the chain in exactly the order the app wrote it, so a real JWT is still claimed, and still rejected, by its own verifier.
|
|
168
|
+
- **@voltro/cli** — `voltro build` fails when the SSR bundle it just wrote cannot be imported — and `build: { ssrExternal: [...] }` is the exit that `ssr.noExternal: true` did not have.
|
|
169
|
+
|
|
170
|
+
The web SSR build bundles everything the graph reaches so a production image needs nothing from `node_modules`. A CommonJS dependency pulled into that ES module carries its `__dirname` / `__filename` along, and neither exists there. Measured against a real app: the build is GREEN, the bundle is written, and the artefact dies on its first import with `ReferenceError: __dirname is not defined in ES module scope`. The same dependency externalised: exit 0.
|
|
171
|
+
|
|
172
|
+
Two things were missing, and only fixing both helps. `noExternal: true` was hard-wired with no config evaluation beside it, so an app had no way to keep one package a runtime import — there was no app-side workaround at all. And the build reported success, so the failure arrived at deploy time as a boot crash three layers from its cause.
|
|
173
|
+
|
|
174
|
+
The externalisation is deliberately NOT automatic. Externalising on the framework's own initiative puts a package back among the image's runtime requirements; an image built on the promise that it needs nothing from `node_modules` would then fail to boot for a second reason, with nothing said about either.
|
|
175
|
+
|
|
176
|
+
**The detector reads the artefact, and it was wrong once before it was right.** Run over the 357 built ESM files in this repo it flagged exactly one — a false positive, in `@voltro/cli`'s own bundle, on the line
|
|
177
|
+
|
|
178
|
+
"import { join as __join, dirname as __dirname } from 'node:path'"
|
|
179
|
+
|
|
180
|
+
which is a string the build WRITES into a generated file. That is the same trap this repo already recorded once, for a different rule in the same package: a regex cannot tell a specifier from a specifier-shaped string. String literals are blanked before the scan and an import alias counts as a definition.
|
|
181
|
+
|
|
182
|
+
The correction had a second edge. A parameter arm added for the CommonJS wrapper (`function (…, __dirname)`) read `join(__dirname, 'assets')` as a declaration — a call argument and a parameter are the same characters — and silenced the exact reference the check exists for. It is gone; no shim of that shape appears in any of the 357 files, so it bought nothing and cost the rule. Both directions are asserted, and the false positive is kept as a fixture.
|
|
183
|
+
- **@voltro/devtools-ui, @voltro/ui-shadcn** — Keep the dashboard masthead, tabs and inspector context compact so working tables start higher in the viewport. Group the app return link, identity, address and status in one responsive header shared by local and Cloud inspectors.
|
|
184
|
+
- **@voltro/devtools-ui, @voltro/ui-shadcn** — Use the shared styled Checkbox for dashboard filters, workflow confirmations, inspect access and schema-driven checkbox forms, matching Cloud configuration controls while preserving native label, keyboard and form behavior. Checked and indeterminate fills now retain the primary color in dark mode.
|
|
185
|
+
- **@voltro/cli** — The auto-launched dashboard died 85 ms after it was announced, silently.
|
|
186
|
+
|
|
187
|
+
`bin/voltro.mjs` is the only entry that registers the tsx ESM loader, and the CLI cannot run without it — it imports the app's own `app.config.ts` at runtime. The launcher derived the child's bin from `process.argv[1]` and handled ONE spelling: `<cli>/src/bin.ts` → `<cli>/bin/voltro.mjs`. Everything else fell through to argv[1] itself.
|
|
188
|
+
|
|
189
|
+
But `bin/voltro.mjs` re-execs, so inside the CLI argv[1] is the entry BEHIND it. Measured on a normal boot:
|
|
190
|
+
|
|
191
|
+
argv[1] = …/packages/cli/dist/bin.js bin = …/packages/cli/dist/bin.js
|
|
192
|
+
|
|
193
|
+
That is what every installed user runs, and every maintainer tree that has been built once. The child was handed the bundled entry with no loader and died on its first TypeScript import:
|
|
194
|
+
|
|
195
|
+
ERR_MODULE_NOT_FOUND: Cannot find module '…/packages/logger/src/logger' imported from '…/packages/logger/src/index.ts'
|
|
196
|
+
|
|
197
|
+
Nothing said so. The child is spawned with `stdio: 'ignore'` and nothing watched its exit, so the last word was the launcher's own `dashboard launched at http://localhost:5179` — a URL that answered nothing. The `/src/bin.ts` branch is why this was invisible from inside the framework repo: running unbuilt from source is the one case that worked.
|
|
198
|
+
|
|
199
|
+
The bin is resolved by walking up from the launcher's own module until `bin/voltro.mjs` is found, so `src/` and `dist/` reach the same answer — the point being that it must not depend on which of the two is running. Verified end to end from a `voltro dev` boot: `dashboard launched`, then HTTP 200 with the dashboard's own title.
|
|
200
|
+
- **@voltro/cli** — The recommended dashboard install line contradicted the stability contract.
|
|
201
|
+
|
|
202
|
+
`pnpm add -D @voltro/dashboard` writes a caret range. The contract at the top of `CHANGELOG.md` tells users to pin exact versions and never `^`, and a project that follows it ends up with one dependency spelled differently from all the others — because we told it to. The message and both docs pages now say `--save-exact`.
|
|
203
|
+
- **@voltro/cli** — An interrupted dashboard build made the launcher choose the one mode that cannot run in it — and then said nothing when the child died.
|
|
204
|
+
|
|
205
|
+
The mode was chosen by `existsSync(.framework/dist/index.html)`. A build writes that file EARLY and writes `dist/server/ssrEntry.js` LATE, so a build that dies in between — the prerender step is the one that does — leaves a tree that looks built. Measured on exactly such a tree:
|
|
206
|
+
|
|
207
|
+
serving the Voltro dashboard on :5199 … mode: start fatal: production `voltro start` requires a precompiled SSR bundle at …/.framework/dist/server/ssrEntry.js but it is missing
|
|
208
|
+
|
|
209
|
+
Keyed on the bundle instead, the same tree falls back to `dev`: vite ready in 169 ms, the port answers.
|
|
210
|
+
|
|
211
|
+
There were TWO deciders, spelled differently — the auto-launcher and the standalone `voltro dashboard` — and both were wrong the same way. One `dashboardIsPrebuilt` now, asserted over the set, because a third is one paste away.
|
|
212
|
+
|
|
213
|
+
**And the death was silent.** The launcher spawns with `stdio: 'ignore'`, which throws the child's own diagnosis away, and had no `exit` or `error` handler at all. So the last word on a dead dashboard was the parent's own `auto-launching dashboard at http://localhost:…` — a promise that was already false by the time anyone read it. A non-zero exit is reported now, and a signal stays quiet because that is how Ctrl-C reaches the whole process group.
|
|
214
|
+
- **@voltro/devtools-ui** — Rework the shared data explorer around compact resizable columns, debounced search, explicit filter application, accessible record editing and searchable references. Preserve database defaults when creating rows, distinguish empty text from null, retain invalid drafts and write failures, confirm destructive actions and unsaved changes, and expose an optional host refresh callback for current snapshots.
|
|
215
|
+
- **@voltro/devtools-ui** — Resize the data explorer's table list independently, read complete table names in delayed themed tooltips, and resize columns with visible pointer/keyboard handles. Double-click a divider to restore its default width.
|
|
216
|
+
- **@voltro/cli** — Resolve local dashboard stream credentials for the inspected app in both dev and production, matching snapshot reads, and flush the development stream handshake immediately so live data updates can connect without repeated authorization failures.
|
|
217
|
+
- **@voltro/devtools-ui** — Make inspector tasks directly discoverable through a grouped sidebar, replace flat route cards with a shared expandable route explorer, and keep Data explorer visible for frontend apps through an API data-source picker. Bound the mobile table list and support keyboard activation of editable cells and foreign-key navigation.
|
|
218
|
+
- **@voltro/client** — A `title` annotation on a schema field now becomes the field's label — where the title is one somebody wrote.
|
|
219
|
+
|
|
220
|
+
`schemaToFields` / `schemaToColumns` derived every label from the humanised property name and ignored `title` entirely, so an app that had already annotated its schema (for OpenAPI output, say) had to say the same thing twice through `formField({ label })`, with the two free to drift.
|
|
221
|
+
|
|
222
|
+
`title` could not simply be read, and the reason is worth stating because the obvious rule is wrong. effect writes its OWN titles into that field, and it writes them INLINE on the property node — not only into a `$defs` entry behind a `$ref`. Measured:
|
|
223
|
+
|
|
224
|
+
Schema.NonEmptyString.annotations({ description: 'Der Kundenname' }) -> { title: 'nonEmptyString', description: 'Der Kundenname', … } Schema.String.pipe(Schema.minLength(2)) -> { title: 'minLength(2)', … }
|
|
225
|
+
|
|
226
|
+
So "use the title unless it arrived through a `$ref`" puts `minLength(2)` on a form field. What separates the two is the SHAPE of the name effect generates: a lowerCamel type name, optionally carrying the filter's arguments in parens. A title matching that is declined; everything else is the author's.
|
|
227
|
+
|
|
228
|
+
Two properties keep that honest. The failure direction is safe — a declined title falls back to the humanised name, which is what every field got before, so the rule can never do worse than the old behaviour. And it is not left as a claim about a dependency: the test regenerates the corpus through a live `JSONSchema.make` and fails if any generated title stops matching, so a change in effect goes red in the suite instead of wrong on somebody's form.
|
|
229
|
+
|
|
230
|
+
`formField({ label })` still wins over both — it is the one channel effect cannot write into.
|
|
231
|
+
- **@voltro/cli** — `voltro update` no longer rewrites a package.json that does not consume the framework.
|
|
232
|
+
|
|
233
|
+
Reported after an upgrade changed `services/api/package.json` — an independent Strapi 4 backend with NO voltro dependency — from React 18 to 19. Nothing in the command's output named the file, and the app avoided it on the next round by setting versions by hand and running its own installer, which is a sidestep and not a fix.
|
|
234
|
+
|
|
235
|
+
The peer alignment already had three conditions, and all three are about the DEPENDENCY: only a peer the manifest already declares, only when its floor is below ours, only ranges both sides can parse. Every one of them was satisfied here — React was declared, 18 is below 19, both ranges parse. None of them asked whether the package was ours to edit.
|
|
236
|
+
|
|
237
|
+
It is not a new judgement, it is an unapplied one. `planWorkspaceBump` — the `@voltro/*` half of the same command — has always dropped manifests that declare no `@voltro/*` dep. The peer alignment was added later and did not inherit it. It does now: a manifest is in scope when it declares `voltro` or any `@voltro/*` in its dependencies, devDependencies or peerDependencies, and one package being out of scope does not take its siblings with it.
|
|
238
|
+
|
|
239
|
+
`consumesVoltro` is deliberately the whole test. A peer requirement comes FROM a `@voltro/*` package; a workspace member that declares none is not bound by it, however many packages it happens to share a name with.
|
|
240
|
+
- **@voltro/cli** — `input/uncapped-array` is silent on `internal: true`, and `raw-fetch` is silent on a `fetch` an SDK asked for as an option.
|
|
241
|
+
|
|
242
|
+
Both rules were reporting a set their own sentence does not describe, and both were found by an app that read every remaining finding instead of filing them.
|
|
243
|
+
|
|
244
|
+
**`input/uncapped-array` says "the caller chooses how many".** `internal: true` takes a procedure off the wire, so there is no such caller — only the app's own code calling its own procedure. Measured on one codebase: after every wire procedure was bounded, 212 findings remained and ALL 212 were internal. So the rule spent its entire remaining output on the case its premise excludes, which is how a rule stops being read. `imperative-scope` has skipped `internal: true` for the same reason; this applies the existing decision rather than making a new one. A procedure on the wire is reported exactly as before, which is the half that keeps the exemption from being a hole.
|
|
245
|
+
|
|
246
|
+
**`raw-fetch` recommends `yield* HttpClient`.** Several provider factories take a `fetch`-shaped function as an option (`createGoogleGenerativeAI({ fetch })`). Inside it the URL is the SDK's, never a caller's, so the SSRF half has nothing to bite on — and the remedy is not available either: the seam requires a plain callback, so `yield* HttpClient` names an API that cannot be used at that call site. A rule whose only remedy does not apply teaches the reader to skim the line, which is the one place a genuinely caller-supplied URL would have been named.
|
|
247
|
+
|
|
248
|
+
The seam is SUBTRACTED, not exempted: only calls inside the function that is the value of a `fetch:` property are discounted, so a file that supplies such a seam AND calls `fetch` on its own account is still reported for the second one. Without that, adding one option object would switch the rule off for a file.
|
|
249
|
+
|
|
250
|
+
### Internal (no consumer-facing effect)
|
|
251
|
+
|
|
252
|
+
- **@voltro/database** — The migration lock is released by its bracket and nowhere else.
|
|
253
|
+
|
|
254
|
+
Correcting unreleased work in this same release, so no shipped behaviour changes: `applyPlan` gained an `Effect.acquireUseRelease` bracket and KEPT the `try { … } finally { yield* held.release }` it replaced. The overlap was documented as free — "releasing twice is harmless: the second `RELEASE_LOCK` finds nothing held on that connection".
|
|
255
|
+
|
|
256
|
+
That holds for `RELEASE_LOCK` and for `pg_advisory_unlock`. It is false for the third dialect: `sp_releaseapplock` RAISES on a lock the session does not hold, so every mssql apply died on the second release with `Cannot release the application lock … because it is not currently held`. A claim about three dialects, verified on two.
|
|
257
|
+
|
|
258
|
+
Removing it is also the better release POINT — the `finally` ran before the convergence proof, handing the lock back while the work it protects was still running. The bracket holds it to the end and covers failure, defect and interruption, which a `finally` inside `Effect.gen` does not.
|
|
259
|
+
|
|
260
|
+
`migrationLockIsBracketed.test.ts` asserted that an acquisition IS bracketed; it now also asserts there is exactly ONE release. Those are different claims and only the first was being made, which is how this rode through.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
42
264
|
## [0.68.0] — 2026-09-09
|
|
43
265
|
|
|
44
266
|
### ⚠ BREAKING
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -5,7 +5,7 @@ property of its respective copyright holders and is used under the terms of
|
|
|
5
5
|
its license. This file is provided for attribution; it grants no rights in
|
|
6
6
|
@voltro/ui-shadcn itself, which is proprietary (see LICENSE).
|
|
7
7
|
|
|
8
|
-
Generated from the resolved runtime dependency closure (
|
|
8
|
+
Generated from the resolved runtime dependency closure (103 packages).
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -1160,34 +1160,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1160
1160
|
SOFTWARE.
|
|
1161
1161
|
```
|
|
1162
1162
|
|
|
1163
|
-
## @standard-schema/spec@1.1.0
|
|
1164
|
-
|
|
1165
|
-
License: MIT
|
|
1166
|
-
|
|
1167
|
-
```
|
|
1168
|
-
MIT License
|
|
1169
|
-
|
|
1170
|
-
Copyright (c) 2024 Colin McDonnell
|
|
1171
|
-
|
|
1172
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1173
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1174
|
-
in the Software without restriction, including without limitation the rights
|
|
1175
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1176
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1177
|
-
furnished to do so, subject to the following conditions:
|
|
1178
|
-
|
|
1179
|
-
The above copyright notice and this permission notice shall be included in all
|
|
1180
|
-
copies or substantial portions of the Software.
|
|
1181
|
-
|
|
1182
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1183
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1184
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1185
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1186
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1187
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1188
|
-
SOFTWARE.
|
|
1189
|
-
```
|
|
1190
|
-
|
|
1191
1163
|
## @tanstack/devtools-event-client@0.4.4
|
|
1192
1164
|
|
|
1193
1165
|
License: MIT
|
|
@@ -1876,62 +1848,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
1876
1848
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1877
1849
|
```
|
|
1878
1850
|
|
|
1879
|
-
## effect@3.22.1
|
|
1880
|
-
|
|
1881
|
-
License: MIT
|
|
1882
|
-
|
|
1883
|
-
```
|
|
1884
|
-
MIT License
|
|
1885
|
-
|
|
1886
|
-
Copyright (c) 2023 Effectful Technologies Inc
|
|
1887
|
-
|
|
1888
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1889
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1890
|
-
in the Software without restriction, including without limitation the rights
|
|
1891
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1892
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1893
|
-
furnished to do so, subject to the following conditions:
|
|
1894
|
-
|
|
1895
|
-
The above copyright notice and this permission notice shall be included in all
|
|
1896
|
-
copies or substantial portions of the Software.
|
|
1897
|
-
|
|
1898
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1899
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1900
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1901
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1902
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1903
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1904
|
-
SOFTWARE.
|
|
1905
|
-
```
|
|
1906
|
-
|
|
1907
|
-
## fast-check@3.23.2
|
|
1908
|
-
|
|
1909
|
-
License: MIT
|
|
1910
|
-
|
|
1911
|
-
```
|
|
1912
|
-
MIT License
|
|
1913
|
-
|
|
1914
|
-
Copyright (c) 2017 Nicolas DUBIEN
|
|
1915
|
-
|
|
1916
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1917
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1918
|
-
in the Software without restriction, including without limitation the rights
|
|
1919
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1920
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1921
|
-
furnished to do so, subject to the following conditions:
|
|
1922
|
-
|
|
1923
|
-
The above copyright notice and this permission notice shall be included in all
|
|
1924
|
-
copies or substantial portions of the Software.
|
|
1925
|
-
|
|
1926
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1927
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1928
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1929
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1930
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1931
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1932
|
-
SOFTWARE.
|
|
1933
|
-
```
|
|
1934
|
-
|
|
1935
1851
|
## get-nonce@1.0.1
|
|
1936
1852
|
|
|
1937
1853
|
License: MIT
|
|
@@ -2362,34 +2278,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
2362
2278
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2363
2279
|
```
|
|
2364
2280
|
|
|
2365
|
-
## pure-rand@6.1.0
|
|
2366
|
-
|
|
2367
|
-
License: MIT
|
|
2368
|
-
|
|
2369
|
-
```
|
|
2370
|
-
MIT License
|
|
2371
|
-
|
|
2372
|
-
Copyright (c) 2018 Nicolas DUBIEN
|
|
2373
|
-
|
|
2374
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2375
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2376
|
-
in the Software without restriction, including without limitation the rights
|
|
2377
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2378
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2379
|
-
furnished to do so, subject to the following conditions:
|
|
2380
|
-
|
|
2381
|
-
The above copyright notice and this permission notice shall be included in all
|
|
2382
|
-
copies or substantial portions of the Software.
|
|
2383
|
-
|
|
2384
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2385
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2386
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2387
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2388
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2389
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2390
|
-
SOFTWARE.
|
|
2391
|
-
```
|
|
2392
|
-
|
|
2393
2281
|
## react-remove-scroll@2.7.2
|
|
2394
2282
|
|
|
2395
2283
|
License: MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElem
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export declare const buttonVariants: (props?: ({
|
|
116
|
-
variant?: "
|
|
116
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
117
117
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
118
118
|
} & ClassProp) | undefined) => string;
|
|
119
119
|
|
|
@@ -980,6 +980,39 @@ export declare interface SignalSearchProps {
|
|
|
980
980
|
readonly className?: string;
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
+
/** Shared Cloud/local operating shell. Import `@voltro/ui-shadcn/signal.css`. */
|
|
984
|
+
export declare function SignalWorkspace({ brand, header, children, className, field }: SignalWorkspaceProps): ReactNode;
|
|
985
|
+
|
|
986
|
+
/** One heading, description and action rhythm for workspace pages in either host. */
|
|
987
|
+
export declare function SignalWorkspaceHeader({ title, description, badge, action }: SignalWorkspaceHeaderProps): ReactNode;
|
|
988
|
+
|
|
989
|
+
export declare interface SignalWorkspaceHeaderProps {
|
|
990
|
+
readonly title: ReactNode;
|
|
991
|
+
readonly description?: ReactNode;
|
|
992
|
+
readonly badge?: ReactNode;
|
|
993
|
+
readonly action?: ReactNode;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/** Open workspace row; the host supplies its typed link or selection button. */
|
|
997
|
+
export declare function SignalWorkspaceItem({ title, description, detail, actionLabel, renderLink }: SignalWorkspaceItemProps): ReactNode;
|
|
998
|
+
|
|
999
|
+
export declare interface SignalWorkspaceItemProps {
|
|
1000
|
+
readonly title: string;
|
|
1001
|
+
readonly description: ReactNode;
|
|
1002
|
+
readonly detail?: ReactNode;
|
|
1003
|
+
readonly actionLabel: string;
|
|
1004
|
+
readonly renderLink: (className: string, children: ReactNode) => ReactNode;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export declare interface SignalWorkspaceProps {
|
|
1008
|
+
readonly brand: ReactNode;
|
|
1009
|
+
readonly header: ReactNode;
|
|
1010
|
+
readonly children: ReactNode;
|
|
1011
|
+
readonly className?: string;
|
|
1012
|
+
/** Signed-out pages can supply their own full-height, animated field. */
|
|
1013
|
+
readonly field?: boolean;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
983
1016
|
export declare const SiteFooter: ({ brand, tagline, social, columns, bottomLeft, bottomRight, copyrightHolder, socialLabel, LinkComponent, className, }: SiteFooterProps) => ReactNode;
|
|
984
1017
|
|
|
985
1018
|
export declare interface SiteFooterColumn {
|