@quickback-dev/cli 0.70.3 → 0.70.4

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/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.70.3";
13
+ const CLI_VERSION = "0.70.4";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -126,6 +126,11 @@ Firewall filtering is transparent — the query is scoped by `WHERE organization
126
126
  | `FIREWALL_SOFT_DELETED` | Record has been soft deleted |
127
127
  | `FIREWALL_WRITE_DENIED` | A create would land a row outside the caller's firewall (see [Firewall on write](/define/firewall#firewall-on-write)); also a Postgres RLS refusal (`42501`) |
128
128
 
129
+ An action that throws `new ActionError(message, code, status)` answers with
130
+ that status as Problem Details too: `detail` is the message, `code` and
131
+ `layer: "action"` are extension members, and `details` / `hint` ride along when
132
+ set. Generated clients read the message from `detail` like every other error.
133
+
129
134
  Inside an action, any statement through the [scoped `db`](/define/actions/scoped-db)
130
135
  on a table whose firewall needs a claim the caller does not carry (no
131
136
  `activeOrgId` for an org-scoped table, say — a `PUBLIC` or `AUTHENTICATED`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickback-dev/cli",
3
- "version": "0.70.3",
3
+ "version": "0.70.4",
4
4
  "description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
5
5
  "author": "Kardoe Incorporated <paul@kardoe.com>",
6
6
  "license": "MIT",
@@ -126,6 +126,11 @@ Firewall filtering is transparent — the query is scoped by `WHERE organization
126
126
  | `FIREWALL_SOFT_DELETED` | Record has been soft deleted |
127
127
  | `FIREWALL_WRITE_DENIED` | A create would land a row outside the caller's firewall (see [Firewall on write](/define/firewall#firewall-on-write)); also a Postgres RLS refusal (`42501`) |
128
128
 
129
+ An action that throws `new ActionError(message, code, status)` answers with
130
+ that status as Problem Details too: `detail` is the message, `code` and
131
+ `layer: "action"` are extension members, and `details` / `hint` ride along when
132
+ set. Generated clients read the message from `detail` like every other error.
133
+
129
134
  Inside an action, any statement through the [scoped `db`](/define/actions/scoped-db)
130
135
  on a table whose firewall needs a claim the caller does not carry (no
131
136
  `activeOrgId` for an org-scoped table, say — a `PUBLIC` or `AUTHENTICATED`