@quickback-dev/cli 0.70.3 → 0.70.5

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.5";
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`
@@ -589,7 +589,7 @@ policies, plus a fourth only where a delegated-principal lane is declared:
589
589
  |--------|------|--------------|
590
590
  | `<table>_deny_anon` | RESTRICTIVE `FOR ALL` | Blocks any query carrying neither a stamped user id, nor the service marker — nor, on a table with a delegated lane, a verified delegated/scope principal |
591
591
  | `<table>_service_role` | permissive `FOR ALL` | Admits Worker-internal contexts — see [Background jobs and cross-tenant actions](#background-jobs-and-cross-tenant-actions) |
592
- | `<table>_scope` | permissive `FOR ALL` | The firewall scope predicate. On a soft-deletable table `USING` also requires `deleted_at IS NULL OR public.in_soft_delete()` — see [The soft-delete lane](#the-soft-delete-lane); `WITH CHECK` is the scope predicate alone, so a row can be soft-deleted but never resurrected |
592
+ | `<table>_scope` | permissive `FOR ALL` | The firewall scope predicate. On a soft-deletable table `USING` also requires `deleted_at IS NULL OR public.in_soft_delete()` — see [The soft-delete lane](#the-soft-delete-lane); `WITH CHECK` is the scope predicate alone, so a row can be soft-deleted but never resurrected. Every other `isNull` arm (`{ field: 'projectId', isNull: true }` inside an `any:`, say) is scope and stays in both clauses |
593
593
  | `<table>_principal_fence` | RESTRICTIVE `FOR ALL` | **Only on tables with a `databaseAccess` lane or `access.principals`.** Caps every permissive policy, so no policy can broaden a request that carries the wrong principal type |
594
594
 
595
595
  The fence is per-lane, not per-table, because on a table no principal can reach
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.5",
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`
@@ -589,7 +589,7 @@ policies, plus a fourth only where a delegated-principal lane is declared:
589
589
  |--------|------|--------------|
590
590
  | `<table>_deny_anon` | RESTRICTIVE `FOR ALL` | Blocks any query carrying neither a stamped user id, nor the service marker — nor, on a table with a delegated lane, a verified delegated/scope principal |
591
591
  | `<table>_service_role` | permissive `FOR ALL` | Admits Worker-internal contexts — see [Background jobs and cross-tenant actions](#background-jobs-and-cross-tenant-actions) |
592
- | `<table>_scope` | permissive `FOR ALL` | The firewall scope predicate. On a soft-deletable table `USING` also requires `deleted_at IS NULL OR public.in_soft_delete()` — see [The soft-delete lane](#the-soft-delete-lane); `WITH CHECK` is the scope predicate alone, so a row can be soft-deleted but never resurrected |
592
+ | `<table>_scope` | permissive `FOR ALL` | The firewall scope predicate. On a soft-deletable table `USING` also requires `deleted_at IS NULL OR public.in_soft_delete()` — see [The soft-delete lane](#the-soft-delete-lane); `WITH CHECK` is the scope predicate alone, so a row can be soft-deleted but never resurrected. Every other `isNull` arm (`{ field: 'projectId', isNull: true }` inside an `any:`, say) is scope and stays in both clauses |
593
593
  | `<table>_principal_fence` | RESTRICTIVE `FOR ALL` | **Only on tables with a `databaseAccess` lane or `access.principals`.** Caps every permissive policy, so no policy can broaden a request that carries the wrong principal type |
594
594
 
595
595
  The fence is per-lane, not per-table, because on a table no principal can reach