@quickback-dev/cli 0.70.4 → 0.70.6

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.4";
13
+ const CLI_VERSION = "0.70.6";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -253,6 +253,11 @@ export default defineConfig({
253
253
  `types` output, and the compile fails if `types` is `false`. It is off by
254
254
  default.
255
255
 
256
+ A CRUD verb [mapped to an action](/define/actions#replace-a-crud-verb)
257
+ (`create: { action: "send" }`) keeps its method name but takes that action's
258
+ contract: `create(body: Api.messages.actions.send.Input)` returning
259
+ `actions.send.Output`, not `Insert` / `Row`. The action gets no second method.
260
+
256
261
  > **TanStack Start denies `*.client.*` on the server**
257
262
  >
258
263
  > TanStack Start's import protection rejects any `**/*.client.*` module in the
@@ -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.4",
3
+ "version": "0.70.6",
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",
@@ -253,6 +253,11 @@ export default defineConfig({
253
253
  `types` output, and the compile fails if `types` is `false`. It is off by
254
254
  default.
255
255
 
256
+ A CRUD verb [mapped to an action](/define/actions#replace-a-crud-verb)
257
+ (`create: { action: "send" }`) keeps its method name but takes that action's
258
+ contract: `create(body: Api.messages.actions.send.Input)` returning
259
+ `actions.send.Output`, not `Insert` / `Row`. The action gets no second method.
260
+
256
261
  > **TanStack Start denies `*.client.*` on the server**
257
262
  >
258
263
  > TanStack Start's import protection rejects any `**/*.client.*` module in the
@@ -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