@protobase/cli 0.95.10 → 0.95.12

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.95.10";
2
+ var version = "0.95.12";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.95.10",
3
+ "version": "0.95.12",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.95.10",
47
- "@protobase/layout": "0.95.10",
48
- "@protobase/query": "0.95.10",
49
- "@protobase/schema": "0.95.10",
50
- "@protobase/server": "0.95.10",
51
- "@protobase/ui": "0.95.10",
52
- "@protobase/workflows": "0.95.10",
46
+ "@protobase/config": "0.95.12",
47
+ "@protobase/layout": "0.95.12",
48
+ "@protobase/query": "0.95.12",
49
+ "@protobase/schema": "0.95.12",
50
+ "@protobase/server": "0.95.12",
51
+ "@protobase/ui": "0.95.12",
52
+ "@protobase/workflows": "0.95.12",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -256,7 +256,7 @@ Every error is `application/problem+json` (RFC 9457) with `type` (`urn:protobase
256
256
  | 404 | `not-found` |
257
257
  | 409 | `conflict`: a unique key, a record other records point at, or a deadlock with another write, which may be sent again |
258
258
  | 412 / 428 | `precondition-failed` / `precondition-required` |
259
- | 503 | `read-only`: the database refuses writes, as during a deploy's write freeze; send the write again after `Retry-After`. `connections-busy`: every database connection stayed busy for 2 seconds (see [Safety](#safety)) |
259
+ | 503 | `read-only`: the database refuses writes, as during a deploy's write freeze; send the write again after `Retry-After`. `database-restarting`: the database or its connection pooler is shutting down or starting up; send the request again after `Retry-After`. `connections-busy`: every database connection stayed busy for 2 seconds (see [Safety](#safety)) |
260
260
  | 504 | `statement-timeout`: a query ran past its limit (see [Safety](#safety)) |
261
261
 
262
262
  ### Error reporting
@@ -273,7 +273,7 @@ export default defineConfig({
273
273
  })
274
274
  ```
275
275
 
276
- - **Server:** every `500` with the request it failed, and every `504 statement-timeout` and `503 connections-busy` with the request it names, under `dev`, `serve` and the runtime, besides the default export of `hooks/error.ts` or the console. Under `serve`, the runtime and `worker`, an uncaught exception or unhandled rejection too, which then still ends the process with exit code 1.
276
+ - **Server:** every `500` with the request it failed, and every `504 statement-timeout` and `503 connections-busy` with the request it names, under `dev`, `serve` and the runtime, besides the default export of `hooks/error.ts` or the console. Under `serve`, the runtime and `worker`, an uncaught exception or unhandled rejection too, which then still ends the process with exit code 1. <gap>The assistant and MCP tool calls cannot leave a database restart's `503` unreported because their reporting check knows only the write freeze's `read-only`.</gap>
277
277
  - **Admin app:** uncaught errors and the errors of components that fail to draw. `/api/meta` names the DSN to every signed-in caller, as a browser app always shows its own. Only the app's own errors are sent: `build`, `build-shell` and `build-plugin` mark every script they write as the app's, and an error none of whose stack frames is in a marked script, such as one raised by a browser extension or a script the browser injects, is dropped. Under `dev`, whose scripts are not built, every error is sent.
278
278
  - Errors only, with no performance tracing. Before an event leaves, the values of authorization headers, cookies, passwords, tokens and other credentials, in fields and in URLs, are replaced by `[Filtered]`.
279
279
  - `environment` names the deployment in the tracker; without it the tracker's default, `production`. `errorReporting: false` turns reporting off whatever the environment says. A DSN that is no `http(s)` URL with a key and a project id stops startup.
@@ -53,7 +53,7 @@ Every commit message follows [Conventional Commits](https://www.conventionalcomm
53
53
 
54
54
  When `main` moved on while the checks ran, the run of the newer push releases both. `bun run release --dry-run` prints the next version and its notes without tagging anything.
55
55
 
56
- A push made with GitHub Actions' own token, such as a pull request the AI review merged, [starts no workflow](https://docs.github.com/en/actions/concepts/security/github_token), but a run by hand always starts one. Running the workflow by hand from `main` without a tag (`gh workflow run release.yml`) releases `main`'s head as a push does, with the same checks, which then run in full, commitlint over the commits since the head the previous release run of `main` linted, as a push lints those since the previous push (the commits since the last `v<version>` tag when no recent run linted), and the same release. A malformed message that reached `main` so fails one release, not every later one. A release started while another runs waits for it.
56
+ A push made with GitHub Actions' own token, such as a pull request the AI review merged, [starts no workflow](https://docs.github.com/en/actions/concepts/security/github_token), but a run by hand always starts one. Running the workflow by hand from `main` without a tag (`gh workflow run release.yml`) releases `main`'s head as a push does, with the same checks, which then run in full, commitlint over the commits since the head the previous release run of `main` linted, as a push lints those since the previous push (the commits since the last `v<version>` tag when no recent run linted), and the same release. A malformed message that reached `main` so fails one release, not every later one. A release started while another runs checks at once, and from cutting its tag on, each step waits for the other run's same step, so releases tag, publish and build their images one at a time, oldest first.
57
57
 
58
58
  Running the workflow by hand with a tag (`gh workflow run release.yml -f tag=v0.1.0`) only packs and publishes: the packages at that tag and its version, skipping every version npm already has, and the images, which repeats a missed or half-done publish. A publish that npm fails because it could not read the identity token, or because Sigstore's transparency log already holds its provenance (a 409 after npm's own retry), is tried again up to 3 times, and the 409 counts as published when npm has the version; any other failure fails the run. `node scripts/publish.mjs --dry-run` packs the packages and shows what `npm publish` would send, and `node scripts/publish.mjs --pack`, which CI runs, packs every package without asking npm or publishing. Each package on npm trusts `release.yml` of `PrototeamHQ/protobase` as its publisher; a new package has to be published once by hand before that can be set up. The workflow pushes the images with its own token; a new image on GitHub's registry starts out private and is made public once in its package settings.
59
59