@quickback-dev/cli 0.66.1 → 0.66.2
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/README.md +7 -4
- package/dist/commands/build.d.ts +51 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +793 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/build.test.d.ts +2 -0
- package/dist/commands/build.test.d.ts.map +1 -0
- package/dist/commands/build.test.js +150 -0
- package/dist/commands/build.test.js.map +1 -0
- package/dist/commands/check.d.ts +2 -2
- package/dist/commands/check.js +4 -4
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/create.d.ts +1 -1
- package/dist/commands/create.js +7 -7
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/deploy.d.ts +6 -6
- package/dist/commands/deploy.js +23 -23
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/example.js +1 -1
- package/dist/commands/example.js.map +1 -1
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/migrate.d.ts +1 -1
- package/dist/commands/migrate.js +3 -3
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/migrations.js +2 -2
- package/dist/commands/migrations.js.map +1 -1
- package/dist/commands/push.js +1 -1
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/start.js +1 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/cursor/quickback.mdc +1 -1
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/lib/auth.js +1 -1
- package/dist/lib/auth.js.map +1 -1
- package/dist/lib/compiler-floor.d.ts +1 -1
- package/dist/lib/compiler-floor.js +1 -1
- package/dist/lib/file-loader.js +2 -2
- package/dist/lib/file-loader.js.map +1 -1
- package/dist/lib/file-writer.d.ts +2 -0
- package/dist/lib/file-writer.d.ts.map +1 -1
- package/dist/lib/file-writer.js +16 -0
- package/dist/lib/file-writer.js.map +1 -1
- package/dist/lib/file-writer.test.js +16 -0
- package/dist/lib/file-writer.test.js.map +1 -1
- package/dist/lib/migrations/file-envelopes.js +3 -3
- package/dist/lib/migrations/file-envelopes.js.map +1 -1
- package/dist/lib/prepare-output.test.js +1 -1
- package/dist/lib/prepare-output.test.js.map +1 -1
- package/dist/lib/schema-sync/index.js +1 -1
- package/dist/lib/schema-sync/index.test.js +1 -1
- package/dist/lib/schema-sync/index.test.js.map +1 -1
- package/dist/skill/SKILL.md +6 -6
- package/dist/skill/docs/api/crud.md +7 -0
- package/dist/skill/docs/api/index.md +1 -1
- package/dist/skill/docs/api/openapi.md +1 -1
- package/dist/skill/docs/changelog/index.md +19 -1
- package/dist/skill/docs/configure/agents.md +1 -1
- package/dist/skill/docs/configure/index.md +8 -3
- package/dist/skill/docs/configure/providers.md +1 -0
- package/dist/skill/docs/configure/variables.md +3 -3
- package/dist/skill/docs/define/access.md +7 -0
- package/dist/skill/docs/define/actions/defining.md +35 -7
- package/dist/skill/docs/define/actions/record-and-standalone.md +7 -4
- package/dist/skill/docs/define/actions/scoped-db.md +46 -16
- package/dist/skill/docs/define/areas.md +1 -1
- package/dist/skill/docs/define/diagnostics.md +1 -0
- package/dist/skill/docs/define/encryption.md +1 -1
- package/dist/skill/docs/define/feature.md +14 -7
- package/dist/skill/docs/define/guards.md +27 -3
- package/dist/skill/docs/define/schema.md +24 -14
- package/dist/skill/docs/define/security.md +1 -1
- package/dist/skill/docs/define/transitions.md +35 -4
- package/dist/skill/docs/define/views.md +33 -0
- package/dist/skill/docs/index.md +2 -2
- package/dist/skill/docs/platform/auth/api-keys.md +1 -1
- package/dist/skill/docs/platform/auth/using-auth.md +37 -0
- package/dist/skill/docs/platform/database/d1.md +2 -2
- package/dist/skill/docs/platform/database/neon.md +4 -4
- package/dist/skill/docs/platform/email/index.md +1 -1
- package/dist/skill/docs/platform/queues/handlers.md +1 -1
- package/dist/skill/docs/platform/queues/using-queues.md +1 -1
- package/dist/skill/docs/platform/schedules/index.md +1 -1
- package/dist/skill/docs/platform/storage/index.md +3 -3
- package/dist/skill/docs/platform/storage/r2.md +87 -37
- package/dist/skill/docs/platform/storage/using-r2.md +99 -19
- package/dist/skill/docs/platform/webhooks/inbound.md +40 -0
- package/dist/skill/docs/start/deploy-browser.md +39 -44
- package/dist/skill/docs/start/deploy-owner-access.md +28 -19
- package/dist/skill/docs/start/deploy.md +2 -2
- package/dist/skill/docs/start/first-api.md +1 -1
- package/dist/skill/docs/start/hand-crafted.md +3 -3
- package/dist/skill/docs/start/index.md +3 -3
- package/dist/skill/docs/start/quickstart.md +3 -3
- package/dist/skill/docs/start/template-blog.md +2 -2
- package/dist/skill/docs/start/template-cloudflare.md +2 -2
- package/dist/skill/docs/start/template-empty.md +1 -1
- package/dist/skill/docs/start/templates.md +1 -1
- package/dist/skill/docs/tooling/claude-skill.md +1 -1
- package/dist/skill/docs/tooling/cli.md +20 -15
- package/dist/skill/docs/tooling/cloud-compiler/authentication.md +1 -1
- package/dist/skill/docs/tooling/cloud-compiler/endpoints.md +5 -3
- package/dist/skill/docs/tooling/cloud-compiler/index.md +1 -1
- package/dist/skill/docs/tooling/cloud-compiler/local-compiler.md +2 -2
- package/dist/skill/docs/tooling/cloud-compiler/troubleshooting.md +47 -2
- package/dist/skill/docs/tooling/output.md +23 -2
- package/dist/skill/docs/tooling/troubleshooting.md +1 -1
- package/dist/skill/docs/ui/account/environment-variables.md +2 -2
- package/dist/skill/docs/ui/account/features/admin.md +1 -1
- package/dist/skill/docs/ui/account/features/avatars.md +24 -8
- package/dist/skill/docs/ui/account/features/index.md +9 -5
- package/dist/skill/docs/ui/account/features/organizations.md +3 -2
- package/dist/skill/docs/ui/account/index.md +3 -1
- package/dist/skill/docs/ui/account/with-quickback.md +1 -1
- package/dist/skill/docs/ui/admin/actions.md +97 -3
- package/dist/skill/docs/ui/admin/components.md +4 -6
- package/dist/skill/docs/ui/admin/connecting.md +15 -3
- package/dist/skill/docs/ui/admin/index.md +71 -6
- package/dist/skill/docs/ui/admin/inline-editing.md +38 -4
- package/dist/skill/docs/ui/admin/record-layouts.md +22 -21
- package/dist/skill/docs/ui/admin/schema-format.md +39 -2
- package/dist/skill/docs/ui/admin/schema-registry.md +107 -7
- package/dist/skill/docs/ui/admin/security.md +19 -4
- package/dist/skill/docs/ui/admin/table-views.md +59 -12
- package/package.json +1 -1
- package/src/cursor/quickback.mdc +1 -1
- package/src/skill/SKILL.md +6 -6
- package/src/skill/docs/api/crud.md +7 -0
- package/src/skill/docs/api/index.md +1 -1
- package/src/skill/docs/api/openapi.md +1 -1
- package/src/skill/docs/changelog/index.md +19 -1
- package/src/skill/docs/configure/agents.md +1 -1
- package/src/skill/docs/configure/index.md +8 -3
- package/src/skill/docs/configure/providers.md +1 -0
- package/src/skill/docs/configure/variables.md +3 -3
- package/src/skill/docs/define/access.md +7 -0
- package/src/skill/docs/define/actions/defining.md +35 -7
- package/src/skill/docs/define/actions/record-and-standalone.md +7 -4
- package/src/skill/docs/define/actions/scoped-db.md +46 -16
- package/src/skill/docs/define/areas.md +1 -1
- package/src/skill/docs/define/diagnostics.md +1 -0
- package/src/skill/docs/define/encryption.md +1 -1
- package/src/skill/docs/define/feature.md +14 -7
- package/src/skill/docs/define/guards.md +27 -3
- package/src/skill/docs/define/schema.md +24 -14
- package/src/skill/docs/define/security.md +1 -1
- package/src/skill/docs/define/transitions.md +35 -4
- package/src/skill/docs/define/views.md +33 -0
- package/src/skill/docs/index.md +2 -2
- package/src/skill/docs/platform/auth/api-keys.md +1 -1
- package/src/skill/docs/platform/auth/using-auth.md +37 -0
- package/src/skill/docs/platform/database/d1.md +2 -2
- package/src/skill/docs/platform/database/neon.md +4 -4
- package/src/skill/docs/platform/email/index.md +1 -1
- package/src/skill/docs/platform/queues/handlers.md +1 -1
- package/src/skill/docs/platform/queues/using-queues.md +1 -1
- package/src/skill/docs/platform/schedules/index.md +1 -1
- package/src/skill/docs/platform/storage/index.md +3 -3
- package/src/skill/docs/platform/storage/r2.md +87 -37
- package/src/skill/docs/platform/storage/using-r2.md +99 -19
- package/src/skill/docs/platform/webhooks/inbound.md +40 -0
- package/src/skill/docs/start/deploy-browser.md +39 -44
- package/src/skill/docs/start/deploy-owner-access.md +28 -19
- package/src/skill/docs/start/deploy.md +2 -2
- package/src/skill/docs/start/first-api.md +1 -1
- package/src/skill/docs/start/hand-crafted.md +3 -3
- package/src/skill/docs/start/index.md +3 -3
- package/src/skill/docs/start/quickstart.md +3 -3
- package/src/skill/docs/start/template-blog.md +2 -2
- package/src/skill/docs/start/template-cloudflare.md +2 -2
- package/src/skill/docs/start/template-empty.md +1 -1
- package/src/skill/docs/start/templates.md +1 -1
- package/src/skill/docs/tooling/claude-skill.md +1 -1
- package/src/skill/docs/tooling/cli.md +20 -15
- package/src/skill/docs/tooling/cloud-compiler/authentication.md +1 -1
- package/src/skill/docs/tooling/cloud-compiler/endpoints.md +5 -3
- package/src/skill/docs/tooling/cloud-compiler/index.md +1 -1
- package/src/skill/docs/tooling/cloud-compiler/local-compiler.md +2 -2
- package/src/skill/docs/tooling/cloud-compiler/troubleshooting.md +47 -2
- package/src/skill/docs/tooling/output.md +23 -2
- package/src/skill/docs/tooling/troubleshooting.md +1 -1
- package/src/skill/docs/ui/account/environment-variables.md +2 -2
- package/src/skill/docs/ui/account/features/admin.md +1 -1
- package/src/skill/docs/ui/account/features/avatars.md +24 -8
- package/src/skill/docs/ui/account/features/index.md +9 -5
- package/src/skill/docs/ui/account/features/organizations.md +3 -2
- package/src/skill/docs/ui/account/index.md +3 -1
- package/src/skill/docs/ui/account/with-quickback.md +1 -1
- package/src/skill/docs/ui/admin/actions.md +97 -3
- package/src/skill/docs/ui/admin/components.md +4 -6
- package/src/skill/docs/ui/admin/connecting.md +15 -3
- package/src/skill/docs/ui/admin/index.md +71 -6
- package/src/skill/docs/ui/admin/inline-editing.md +38 -4
- package/src/skill/docs/ui/admin/record-layouts.md +22 -21
- package/src/skill/docs/ui/admin/schema-format.md +39 -2
- package/src/skill/docs/ui/admin/schema-registry.md +107 -7
- package/src/skill/docs/ui/admin/security.md +19 -4
- package/src/skill/docs/ui/admin/table-views.md +59 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-envelopes.js","sourceRoot":"","sources":["../../../src/lib/migrations/file-envelopes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AASH,MAAM,YAAY,GAAG;IACnB,4BAA4B;IAC5B,oEAAoE;IACpE,EAAE;IACF,wEAAwE;IACxE,uFAAuF;IACvF,
|
|
1
|
+
{"version":3,"file":"file-envelopes.js","sourceRoot":"","sources":["../../../src/lib/migrations/file-envelopes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AASH,MAAM,YAAY,GAAG;IACnB,4BAA4B;IAC5B,oEAAoE;IACpE,EAAE;IACF,wEAAwE;IACxE,uFAAuF;IACvF,2CAA2C;IAC3C,iEAAiE;CAClE,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,gBAAgB,GAAG;IACvB,4BAA4B;IAC5B,EAAE;IACF,wEAAwE;IACxE,uFAAuF;IACvF,2CAA2C;CAC5C,CAAC;AAIF,MAAM,SAAS,GAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC5E,MAAM,UAAU,GAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC9D,MAAM,WAAW,GAAgB,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC7D,mEAAmE;AACnE,uEAAuE;AACvE,MAAM,WAAW,GAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAE9E,MAAM,YAAY,GAAgC;IAChD,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;I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CAAC,qBAAqB,CAAC;IAC1B,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAgB;QACtB,OAAO,EAAE;;gBAEG,MAAM;;;;;;;;;;;;;;;;;;;CAmBrB;KACE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,OAAgB;QACtB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;CAwBZ;KACE,CAAC;AACJ,CAAC"}
|
|
@@ -91,7 +91,7 @@ describe('prepareGeneratedDir — clean-slate compile output prep', () => {
|
|
|
91
91
|
expect(remaining).toContain('src-0004');
|
|
92
92
|
expect(remaining).not.toContain('src-0001');
|
|
93
93
|
});
|
|
94
|
-
// User story: As a developer running quickback
|
|
94
|
+
// User story: As a developer running quickback build back-to-back with
|
|
95
95
|
// the archive turned on, I want to see consistent timestamps on the
|
|
96
96
|
// archive directory so I can identify which snapshot came from which
|
|
97
97
|
// compile if I need to recover.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-output.test.js","sourceRoot":"","sources":["../../src/lib/prepare-output.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,IAAI,GAAW,CAAC;AAEhB,UAAU,CAAC,KAAK,IAAI,EAAE;IACpB,GAAG,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AACzD,C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,gCAAgC;IAChC,IAAI,CAAC,0DAA0D,EAAE,KAAK,IAAI,EAAE;QAC1E,MAAM,SAAS,CAAC,cAAc,CAAC,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;QACvF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACtF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -144,7 +144,7 @@ export async function applyProjectSchemaSync(projectPlan) {
|
|
|
144
144
|
*
|
|
145
145
|
* Must agree with the compiler's `resourceUsesSoftDelete`, because the compiler
|
|
146
146
|
* validates what this function synchronizes. Any disagreement produces a gate
|
|
147
|
-
* with no path forward: `quickback
|
|
147
|
+
* with no path forward: `quickback build` fails demanding a column,
|
|
148
148
|
* `quickback schema sync` reports success without adding it, and the tool's own
|
|
149
149
|
* output offers the user nothing further.
|
|
150
150
|
*
|
|
@@ -53,7 +53,7 @@ describe('project schema synchronization', () => {
|
|
|
53
53
|
expect((await readFile(fixture.internalPath, 'utf8')).match(/quickback:audit/g)?.length).toBe(2);
|
|
54
54
|
// Child tables (no resource config) soft-delete too — the compiler validates
|
|
55
55
|
// them with `resourceUsesSoftDelete(undefined) === true`, so sync has to
|
|
56
|
-
// declare the columns or `quickback
|
|
56
|
+
// declare the columns or `quickback build` rejects what sync just wrote.
|
|
57
57
|
// This assertion previously read `.not.toContain('deletedAt')`, pinning the
|
|
58
58
|
// behaviour that made the compile gate unsatisfiable (#200).
|
|
59
59
|
const internalAfter = await readFile(fixture.internalPath, 'utf8');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/lib/schema-sync/index.test.ts"],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AAW,EAAE,OAAO,CAAC,IAAI;YACzB,UAAU,EAAE,EAAE,OAAO,EAAE,OAAO,EAA0B;SACzD,CAAC,CACH,CAAC,OAAO,CAAC,OAAO,CAAC,0CAA0C,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,+DAA+D,EAAE,KAAK,IAAI,EAAE;QAC/E,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,yBAAyB,CAAC,CAAC,CAAC;QACtE,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1B,MAAM,IAAI,GAAG,MAAM,qBAAqB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QAEhE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -46,7 +46,7 @@ Everything runs on the user's own Cloudflare account — no Quickback infrastruc
|
|
|
46
46
|
npm install -g @quickback-dev/cli
|
|
47
47
|
quickback create cloudflare my-app
|
|
48
48
|
cd my-app
|
|
49
|
-
quickback
|
|
49
|
+
quickback build
|
|
50
50
|
wrangler deploy
|
|
51
51
|
```
|
|
52
52
|
|
|
@@ -58,9 +58,9 @@ Three concept files do most of the work:
|
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
61
|
-
## What `quickback
|
|
61
|
+
## What `quickback build` regenerates (and what it never touches)
|
|
62
62
|
|
|
63
|
-
`quickback
|
|
63
|
+
`quickback build` is a **pure code generator**. It reads your `quickback/`
|
|
64
64
|
definitions, sends them to the compiler service, and writes output to disk. It does
|
|
65
65
|
**not** connect to, migrate, or read any database — that is a separate, explicit
|
|
66
66
|
deploy step.
|
|
@@ -90,7 +90,7 @@ migrations are no-ops and only pending ones run. The safe loop against a live pr
|
|
|
90
90
|
DB:
|
|
91
91
|
|
|
92
92
|
1. Edit `quickback/` definitions.
|
|
93
|
-
2. `quickback
|
|
93
|
+
2. `quickback build` → regenerates `src/` and **appends only the new migration(s)**
|
|
94
94
|
to `quickback/drizzle/` (diffed from your committed meta — it does not rewrite or
|
|
95
95
|
replay history).
|
|
96
96
|
3. Deploy → apply pending migrations (no-op for any prod already has), **then**
|
|
@@ -306,14 +306,14 @@ from a table file to reach AUTH_DB.
|
|
|
306
306
|
## Quickback CLI (commands the user runs)
|
|
307
307
|
|
|
308
308
|
```bash
|
|
309
|
-
quickback
|
|
309
|
+
quickback build # build project (prompts to log in if not authenticated)
|
|
310
310
|
quickback create <template> # new project from template
|
|
311
311
|
quickback login # authenticate via browser device flow
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
The CLI calls `compiler.quickback.dev` by default. Override with `QUICKBACK_API_URL=http://localhost:3000` for self-hosted compilation.
|
|
315
315
|
|
|
316
|
-
If you have shell access (e.g. Claude Code), run these commands directly — `quickback
|
|
316
|
+
If you have shell access (e.g. Claude Code), run these commands directly — `quickback build` is interactive-safe and prompts for login in the browser. In environments without a shell, surface the commands to the user as instructions instead.
|
|
317
317
|
|
|
318
318
|
---
|
|
319
319
|
|
|
@@ -158,6 +158,10 @@ Content-Type: application/json
|
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
Creates a new record. Only fields listed in `guards.createable` are accepted.
|
|
161
|
+
Required columns (`.required()` with no default) must be present; nullable
|
|
162
|
+
columns may be omitted or sent as `null`. An empty string is **not** a blank —
|
|
163
|
+
`""` is validated like any other value (so it fails `q.url()`, `q.enum()`, and
|
|
164
|
+
`q.int()`).
|
|
161
165
|
|
|
162
166
|
### Response
|
|
163
167
|
|
|
@@ -196,6 +200,9 @@ Content-Type: application/json
|
|
|
196
200
|
```
|
|
197
201
|
|
|
198
202
|
Updates an existing record. Only fields listed in `guards.updatable` are accepted.
|
|
203
|
+
Omit a key to leave that column untouched; send `null` to clear a nullable
|
|
204
|
+
column. `null` on a `.required()` column is a `400` — the DB would reject the
|
|
205
|
+
write, so the API does first.
|
|
199
206
|
|
|
200
207
|
### Response
|
|
201
208
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Using the API
|
|
2
2
|
|
|
3
|
-
When you run `quickback
|
|
3
|
+
When you run `quickback build`, Quickback generates a complete REST API from your definitions. This section covers how to use the generated endpoints.
|
|
4
4
|
|
|
5
5
|
## Base URL
|
|
6
6
|
|
|
@@ -155,7 +155,7 @@ export default defineConfig({
|
|
|
155
155
|
});
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
The file is generated by piping the in-memory spec through [openapi-typescript](https://github.com/openapi-ts/openapi-typescript) — you can keep running it manually if you want a different output path or version, but for the typical case there's nothing to wire up. If your API project and SPA live in the same repo, prefer multiple `openapi.types` outputs over a second manual `codegen:api` step so one `quickback
|
|
158
|
+
The file is generated by piping the in-memory spec through [openapi-typescript](https://github.com/openapi-ts/openapi-typescript) — you can keep running it manually if you want a different output path or version, but for the typical case there's nothing to wire up. If your API project and SPA live in the same repo, prefer multiple `openapi.types` outputs over a second manual `codegen:api` step so one `quickback build` keeps both copies in sync. Skipped automatically when `openapi.generate` is `false`.
|
|
159
159
|
|
|
160
160
|
For application code, prefer the compact first-party [`quickback.gen.ts` type tree](/api/typescript). Keep `api-types.gen.ts` for `openapi-fetch` and third-party OpenAPI tooling.
|
|
161
161
|
|
|
@@ -124,6 +124,22 @@ tenant route. The callback sanitizer now re-applies the basepath to
|
|
|
124
124
|
same-origin paths, covering every sign-in flow (password, passkey, email OTP,
|
|
125
125
|
signup) and social-link callbacks.
|
|
126
126
|
|
|
127
|
+
### Fix: Start deploys of R2 apps failed to resolve `aws4fetch`
|
|
128
|
+
|
|
129
|
+
Package-mode compiles (Start's **Deploy to Cloudflare**) bundle against the
|
|
130
|
+
compiler image's `/deps/node_modules`, not a generated `npm install`. R2
|
|
131
|
+
apps import `aws4fetch` from `src/storage/presign.ts`, but it was only
|
|
132
|
+
declared on the generated `package.json` — CLI deploys worked, Start died
|
|
133
|
+
with `Could not resolve "aws4fetch"`. The compiler image now ships the same
|
|
134
|
+
pin the generator writes.
|
|
135
|
+
|
|
136
|
+
### Start: seeded admin uses your Quickback email
|
|
137
|
+
|
|
138
|
+
A browser deploy writes the first `sysadmin` with the **verified email on
|
|
139
|
+
your Quickback account**, not a synthetic `owner@<app>.invalid` address.
|
|
140
|
+
Reset admin password still rotates the hash only — the broker never
|
|
141
|
+
`UPDATE`s that email afterwards. See [Owner access](/start/deploy-owner-access).
|
|
142
|
+
|
|
127
143
|
## v0.65.0 — August 16, 2026
|
|
128
144
|
|
|
129
145
|
### All Quickback auth plugins are now bundled — zero `@quickback-dev/*` npm dependencies
|
|
@@ -237,7 +253,9 @@ evaluation failed, and the underlying local error. This was previously the
|
|
|
237
253
|
behavior of `contract.version: 'v2'` only.
|
|
238
254
|
|
|
239
255
|
`quickback compile --allow-degraded-schemas` restores degrade-and-continue for a
|
|
240
|
-
single compile. It prints every action that fell back and why.
|
|
256
|
+
single compile. It prints every action that fell back and why. (Removed in
|
|
257
|
+
0.66.2 — it worked on a total harvest failure but still threw on a partial one,
|
|
258
|
+
the case it existed for.)
|
|
241
259
|
|
|
242
260
|
The compiler also warns when a caller supplies no schemas at all — `rawFiles`
|
|
243
261
|
callers such as the Start app cannot harvest — naming how many actions of the
|
|
@@ -23,7 +23,7 @@ export default defineConfig({
|
|
|
23
23
|
|
|
24
24
|
## Discoverable options block
|
|
25
25
|
|
|
26
|
-
After your first `quickback
|
|
26
|
+
After your first `quickback build`, the file gets a managed block bracketed by sentinel comments:
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
29
|
export default defineConfig({
|
|
@@ -41,7 +41,7 @@ export default defineConfig({
|
|
|
41
41
|
//
|
|
42
42
|
// Login/signup/profile/orgs SPA. Set `true` for default, or object to customize.
|
|
43
43
|
// account: {
|
|
44
|
-
// fileUploads: false, //
|
|
44
|
+
// fileUploads: false, // avatar + org-logo upload. Needs managed R2 + valid R2 credentials. Off on Start.
|
|
45
45
|
// auth: { passkey: false, emailOTP: false, ... },
|
|
46
46
|
// ...
|
|
47
47
|
// },
|
|
@@ -76,7 +76,7 @@ Quickback notices that `account` is set above the marker and drops it from the m
|
|
|
76
76
|
If you ever want to opt out of the auto-managed block, run:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
quickback
|
|
79
|
+
quickback build --no-sync-config
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
## Required Fields
|
|
@@ -310,6 +310,11 @@ export default defineConfig({
|
|
|
310
310
|
|
|
311
311
|
These are merged into the generated `package.json` alongside Quickback's own dependencies. Run `npm install` after compiling to install them.
|
|
312
312
|
|
|
313
|
+
The cloud compiler never installs them — it has no network. A project that
|
|
314
|
+
declares `build.dependencies` therefore skips the [Worker bundle
|
|
315
|
+
check](/tooling/cloud-compiler/troubleshooting#complete-compile-wrangler-bundle-failed)
|
|
316
|
+
and reports that as a compile warning.
|
|
317
|
+
|
|
313
318
|
## Headless Migration Rename Hints
|
|
314
319
|
|
|
315
320
|
When `drizzle-kit generate` detects a potential rename, it normally prompts for confirmation. Cloud/CI compiles are non-interactive, so you must provide explicit rename hints.
|
|
@@ -100,6 +100,7 @@ single Postgres database with no bindings or split mode (see
|
|
|
100
100
|
| `featuresBinding` | `string` | `"DB"` | Binding name for features database |
|
|
101
101
|
| `databaseId` | `string` | — | D1 database ID for the features database (used in generated wrangler.toml) |
|
|
102
102
|
| `authDatabaseId` | `string` | — | D1 database ID for the auth database |
|
|
103
|
+
| `authMigrations` | `'managed' \| 'external'` | `'managed'` | `'external'` when another project owns the auth D1 (a sibling worker sharing one auth database): no `db:migrate:auth:*` script is emitted and `db:migrate:*` / `deploy` skip it. Deleting the step from `package.json` by hand does not stick — compiler-owned scripts converge on every compile |
|
|
103
104
|
| `featuresDatabaseId` | `string` | — | Explicit features DB ID (falls back to `databaseId`) |
|
|
104
105
|
| `filesDatabaseId` | `string` | — | D1 database ID for the files metadata database |
|
|
105
106
|
| `webhooksDatabaseId` | `string` | — | D1 database ID for the webhooks database |
|
|
@@ -19,13 +19,13 @@ The CLI authenticates via two methods:
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# Use the cloud compiler (default)
|
|
22
|
-
quickback
|
|
22
|
+
quickback build
|
|
23
23
|
|
|
24
24
|
# Use a local compiler instance
|
|
25
|
-
QUICKBACK_API_URL=http://localhost:3000 quickback
|
|
25
|
+
QUICKBACK_API_URL=http://localhost:3000 quickback build
|
|
26
26
|
|
|
27
27
|
# CI/CD with API key
|
|
28
|
-
QUICKBACK_API_KEY=qb_key_... quickback
|
|
28
|
+
QUICKBACK_API_KEY=qb_key_... quickback build
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Compiler Service Variables
|
|
@@ -414,6 +414,13 @@ opaque 404 instead.
|
|
|
414
414
|
Function-form access (`access: async (ctx, record) => ...`) is opaque to
|
|
415
415
|
the pre-record phase and always passes there; it's fully evaluated post-record.
|
|
416
416
|
|
|
417
|
+
Collection routes (`GET /`, `POST /batch`, and the generated MCP list tool)
|
|
418
|
+
stop at step 2: there is no record to evaluate, so `access.record` is **not**
|
|
419
|
+
applied to a list — row scoping on a list is the [firewall's](/define/firewall)
|
|
420
|
+
job. Don't use an unsatisfiable predicate (`record: { id: { equals: "never" } }`)
|
|
421
|
+
to hide a resource; it still lists. To give a resource no read surface, omit
|
|
422
|
+
`read` — no list, get, batch, or MCP route is emitted.
|
|
423
|
+
|
|
417
424
|
## Context Variables
|
|
418
425
|
|
|
419
426
|
Use `$ctx.` prefix to reference context values in conditions:
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
// features/applications/actions/advance.ts
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
import { eq } from "drizzle-orm";
|
|
9
8
|
import { defineAction, applications } from "../.quickback/define-action";
|
|
10
9
|
|
|
11
10
|
export default defineAction({
|
|
@@ -56,11 +55,11 @@ export default defineAction({
|
|
|
56
55
|
> `db.insert().values()` and `db.update().set()` — handlers don't pass
|
|
57
56
|
> them and can't override them.
|
|
58
57
|
|
|
59
|
-
> **Your editor is typed too.** `quickback
|
|
58
|
+
> **Your editor is typed too.** `quickback build` writes the same typed
|
|
60
59
|
> helpers into `quickback/features/<feature>/.quickback/` (plus a
|
|
61
60
|
> `quickback/tsconfig.json`), so the import above resolves — and typechecks —
|
|
62
61
|
> in the tree you actually edit, not just in the generated output. The helper
|
|
63
|
-
> also **re-exports the feature
|
|
62
|
+
> also **re-exports every table in the feature** typed with the generated schema, so
|
|
64
63
|
> compiler-managed columns (`createdAt`, `modifiedBy`, `deletedAt`,
|
|
65
64
|
> `organizationId`) are visible on it without casts:
|
|
66
65
|
>
|
|
@@ -68,6 +67,10 @@ export default defineAction({
|
|
|
68
67
|
> import { defineAction, applications } from "../.quickback/define-action";
|
|
69
68
|
> ```
|
|
70
69
|
>
|
|
70
|
+
> Other tables in the same feature come from that same helper. The boundary is
|
|
71
|
+
> the **feature**, not the whole project: a table owned by another feature is
|
|
72
|
+
> not re-exported here.
|
|
73
|
+
>
|
|
71
74
|
> Prefer this single import over the older
|
|
72
75
|
> `import { applications } from "../applications"` — that path resolves to
|
|
73
76
|
> your authored file at edit time, which has no named export and none of the
|
|
@@ -75,6 +78,32 @@ export default defineAction({
|
|
|
75
78
|
> `quickback/features/*/.quickback/` in `.gitignore` (new projects get this
|
|
76
79
|
> automatically).
|
|
77
80
|
|
|
81
|
+
For an action that joins or writes a table owned by another feature, keep
|
|
82
|
+
`defineAction` from the action's own helper and import the other table
|
|
83
|
+
separately from its feature's generated helper (or generated table module).
|
|
84
|
+
Query operators come from the generated project `lib/q`, not from either
|
|
85
|
+
feature helper:
|
|
86
|
+
|
|
87
|
+
{/* doc-compile: skip — demonstrates generated cross-feature helper and runtime paths; the isolated fence does not declare either feature. */}
|
|
88
|
+
```typescript
|
|
89
|
+
// features/waitlist/actions/promote.ts
|
|
90
|
+
import {
|
|
91
|
+
defineAction,
|
|
92
|
+
waitlistEntries,
|
|
93
|
+
} from "../.quickback/define-action";
|
|
94
|
+
import { reservations } from "../../reservations/.quickback/define-action";
|
|
95
|
+
import { q } from "../../../lib/q";
|
|
96
|
+
|
|
97
|
+
// `defineAction` stays bound to waitlistEntries; reservations is only a table.
|
|
98
|
+
// For a direct generated-table import, use "../../reservations/reservations".
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
This waitlist/reservations shape is generic: for any cross-feature action, the
|
|
102
|
+
own-feature helper supplies the action's `record`, `whereRecord`, and
|
|
103
|
+
`whereTransition` context; each external feature supplies only its own tables.
|
|
104
|
+
Importing `defineAction` from the external feature would bind the wrong
|
|
105
|
+
context.
|
|
106
|
+
|
|
78
107
|
### Local action-schema harvest
|
|
79
108
|
|
|
80
109
|
Before sending a compile request, the CLI loads each action in an isolated
|
|
@@ -96,9 +125,8 @@ generated clients treat every required field as optional, and unknown keys pass.
|
|
|
96
125
|
Constructs it cannot parse at all degrade further, to a bare `{}` with no
|
|
97
126
|
`properties`. Neither is visible in a diff.
|
|
98
127
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
compiler warns again with the count and sampled paths.
|
|
128
|
+
There is no opt-out. Fix the action so its input schema harvests — the error
|
|
129
|
+
names each one, the phase that failed, and the underlying local error.
|
|
102
130
|
|
|
103
131
|
Bare imports are resolved from the generated runtime's configured
|
|
104
132
|
`build.outputDir/node_modules` first. If definitions live in `quickback/` and
|
|
@@ -183,6 +211,7 @@ namespace parameters.
|
|
|
183
211
|
| `record` | Standalone only | Feature-area transition adapter binding: `{ table, idFrom: "path.<param>", matchScope? }`. Binds + firewalls the record a `transition` operates on from a proven route param. See [Feature-area transition adapter](#feature-area-transition-adapter) |
|
|
184
212
|
| `bulkVariant` | No | Auto-generate a `POST /:resource/batch/{action}` route alongside the per-record route (record-based actions). See [Bulk Variant](#bulk-variant) |
|
|
185
213
|
| `webhook` | No | Standalone only. Compile-declared inbound signature verification (`standard-webhooks`, `hmac-sha256`, or `aws-sns`) that runs on the raw bytes **before** parse/access — see [Inbound webhooks](/platform/webhooks/inbound) |
|
|
214
|
+
| `rawBody` | No | Standalone, non-GET only. Hand `execute` the request body as received (`rawBody: string`, bounded to 1 MiB) for signature schemes the compiler does not model — a per-organization secret stored in the database, a provider with its own canonicalisation. `input` still parses from the same bytes. Actions with `webhook:` receive `rawBody` automatically — see [Per-organization secrets](/platform/webhooks/inbound#per-organization-secrets-verify-in-the-action) |
|
|
186
215
|
| `idempotency` | No | `'dedupe'` — PUBLIC-action opt-in for the `Idempotency-Key` header with dedupe-only semantics (duplicate ⇒ `409` reference; the cached body is never served to a second caller). Standalone actions with a **static** path only (a `:param` path is a compile error — the allowlist matches literal request paths) and the action's access must admit `PUBLIC`. Authenticated routes accept the header automatically — see [API contract](/platform/api-contract) |
|
|
187
216
|
| `cms` | No | Pass-through metadata blob for CMS surfaces |
|
|
188
217
|
|
|
@@ -243,4 +272,3 @@ export default defineAction({
|
|
|
243
272
|
- Ref keys must exist on the inline `z.object` input with agreeing
|
|
244
273
|
optionality; `as` names can't shadow reserved context keys. Injected rows
|
|
245
274
|
are the **unmasked** DB rows (masking remains a read-projection concern).
|
|
246
|
-
|
|
@@ -199,14 +199,17 @@ land in `success[]` masked the same way the single-record response is.
|
|
|
199
199
|
|
|
200
200
|
Standalone actions are independent endpoints that don't require a record context. Set a `path:` to declare the action standalone.
|
|
201
201
|
|
|
202
|
-
**
|
|
202
|
+
**Public URL:** `/api/v1` plus `path:`
|
|
203
203
|
|
|
204
204
|
```
|
|
205
|
-
POST /chat
|
|
206
|
-
GET /reports/summary
|
|
207
|
-
POST /webhooks/stripe
|
|
205
|
+
POST /api/v1/chat
|
|
206
|
+
GET /api/v1/reports/summary
|
|
207
|
+
POST /api/v1/webhooks/stripe
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
+
`path:` is the suffix under `/api/v1`. `path: "/chat"` and `path: "/api/v1/chat"`
|
|
211
|
+
are the same route. Write either; do not tell callers a URL that omits `/api/v1`.
|
|
212
|
+
|
|
210
213
|
Paths are absolute (`/...`). Inside a [feature area](/define/areas)
|
|
211
214
|
with a mounted prefix, two more forms apply:
|
|
212
215
|
|
|
@@ -157,11 +157,14 @@ Drizzle's relational query API — `db.query.<table>.findFirst()` /
|
|
|
157
157
|
relations config and your `where` alone, so the scoped wrapper cannot inject
|
|
158
158
|
the org/owner/team firewall into it. The scoped `db` therefore exposes the
|
|
159
159
|
Drizzle select builder—the path where Quickback can guarantee firewall
|
|
160
|
-
injection—and refuses `db.query.<table>` rather than returning unscoped rows
|
|
160
|
+
injection—and refuses `db.query.<table>` rather than returning unscoped rows.
|
|
161
|
+
The compiler rejects authored uses before code generation, including Start's
|
|
162
|
+
definition-validation build; the generated runtime guard remains as a
|
|
163
|
+
fail-closed backstop:
|
|
161
164
|
|
|
162
165
|
```typescript
|
|
163
166
|
async execute({ db, input }) {
|
|
164
|
-
// ❌
|
|
167
|
+
// ❌ Compile error: relational queries aren't org-scoped
|
|
165
168
|
const item = await db.query.media.findFirst({ where: eq(media.id, input.id) });
|
|
166
169
|
|
|
167
170
|
// ✅ Scoped builder — firewall conditions injected automatically
|
|
@@ -303,25 +306,53 @@ export default defineAction({
|
|
|
303
306
|
|
|
304
307
|
### Importing Tables
|
|
305
308
|
|
|
306
|
-
|
|
309
|
+
The action's own generated helper supplies `defineAction` and the tables owned
|
|
310
|
+
by that feature. It does not re-export tables from sibling features. Import a
|
|
311
|
+
cross-feature table from that feature's generated helper or generated table
|
|
312
|
+
module, and import Drizzle query operators through the generated project
|
|
313
|
+
`lib/q`:
|
|
307
314
|
|
|
315
|
+
{/* doc-compile: skip — demonstrates generated cross-feature helper and runtime paths; the isolated fence does not declare either feature. */}
|
|
308
316
|
```typescript
|
|
309
|
-
// features/
|
|
310
|
-
import {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
import {
|
|
317
|
+
// features/waitlist/actions/promote.ts
|
|
318
|
+
import {
|
|
319
|
+
defineAction,
|
|
320
|
+
waitlistEntries,
|
|
321
|
+
} from "../.quickback/define-action";
|
|
322
|
+
import { reservations } from "../../reservations/.quickback/define-action";
|
|
323
|
+
import { q } from "../../../lib/q";
|
|
315
324
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
325
|
+
export default defineAction({
|
|
326
|
+
// ...input, access, and transition...
|
|
327
|
+
async execute({ db, record, whereRecord, now }) {
|
|
328
|
+
const existing = await db
|
|
329
|
+
.select()
|
|
330
|
+
.from(reservations)
|
|
331
|
+
.where(q.eq(reservations.waitlistEntryId, record.id));
|
|
332
|
+
|
|
333
|
+
await db
|
|
334
|
+
.update(waitlistEntries)
|
|
335
|
+
.set({ promotedAt: now })
|
|
336
|
+
.where(whereRecord!(waitlistEntries));
|
|
337
|
+
|
|
338
|
+
return existing;
|
|
339
|
+
},
|
|
340
|
+
});
|
|
319
341
|
```
|
|
320
342
|
|
|
321
343
|
**Path pattern from `features/{name}/actions/`:**
|
|
322
|
-
|
|
323
|
-
-
|
|
324
|
-
-
|
|
344
|
+
|
|
345
|
+
- Own feature helper: `../.quickback/define-action`
|
|
346
|
+
- Other feature helper: `../../{other-feature}/.quickback/define-action`
|
|
347
|
+
- Other generated table module: `../../{other-feature}/{table-file-name}`
|
|
348
|
+
- Generated project query helper: `../../../lib/q`
|
|
349
|
+
- Other generated lib files: `../../../lib/{module}` (for example,
|
|
350
|
+
`../../../lib/realtime` or `../../../lib/webhooks`)
|
|
351
|
+
|
|
352
|
+
Keep `defineAction` from the action's own feature: that helper binds `record`,
|
|
353
|
+
`whereRecord`, and `whereTransition`. Import only the external table from a
|
|
354
|
+
sibling feature. The waitlist/reservations names above are just the common
|
|
355
|
+
pattern; the rule applies to every cross-feature action.
|
|
325
356
|
|
|
326
357
|
### Executor Parameters
|
|
327
358
|
|
|
@@ -500,4 +531,3 @@ exports the Better Auth CLI's plural names: `users`, `organizations`,
|
|
|
500
531
|
| Action `execute` | `c.get("authDb")` | Import schema from `../../../auth/schema` |
|
|
501
532
|
| [Account hooks](/ui/account/hooks) | `{ authDb, authSchema }` injected | Use the injected namespace — do not invent a path to `auth/schema` |
|
|
502
533
|
| Trigger `handler:` | **none** | Args are `{ ctx, db, env }` — `db` is features only. There is no `c`. Prefer `ctx` for the acting user. Do not import `../../auth/schema` from the table file to reach AUTH_DB; that path used to compile and then fail package-mode wrangler. Check another user's membership in an action. |
|
|
503
|
-
|
|
@@ -553,7 +553,7 @@ Actions that keep their existing `import { defineAction } from '../.quickback/de
|
|
|
553
553
|
|
|
554
554
|
#### Compile-time advisory
|
|
555
555
|
|
|
556
|
-
When `quickback
|
|
556
|
+
When `quickback build` sees a namespace-scoped action still importing the generic helper, it emits a one-line advisory pointing at the narrowed path:
|
|
557
557
|
|
|
558
558
|
```text
|
|
559
559
|
[quickback:typing] action "feedMoments" in feature "feeds" lives under
|
|
@@ -58,6 +58,7 @@ compile.
|
|
|
58
58
|
| `AUTHZ_UNREACHABLE_ROLE` | warn | A scoped role declared under `authz.scopes` with **no grant profile** — it can authorize no read, action, or channel. Dead config, deny-safe. |
|
|
59
59
|
| `AUTHZ_UNREACHABLE_VIEW` | warn | A grant's `read` names a `resource:view` whose resource has no firewall — no role can reach that view. (A reachability proxy — heuristic by design.) |
|
|
60
60
|
| `AUTHZ_NOT_OVER_RESOURCE` | warn | A `not` whose operand resolves to a **resource (SQL) site** — `NOT EXISTS` over a nullable join can silently pass (the null-trap). The site resolution is conservative, so this stays advisory. |
|
|
61
|
+
| `AUTHZ_RECORD_PREDICATE_NOT_ON_LIST` | warn | A **constant** `read.access.record` predicate (`status: { equals: "published" }`, `id: { equals: "never" }`). `access.record` runs against a loaded row on `GET /:id` only — `GET /`, `POST /batch`, and the MCP list tool stop at the role gate, so the rows still list. Omit `read` to hide a resource; use the firewall to filter. `$ctx`-relative predicates are the per-record shape and stay silent. |
|
|
61
62
|
| `AUTHZ_PUSHDOWN_COST` | info | Per-permission report: how many SQL subqueries the permission lowers to, plus the max recursive-CTE depth. Advisory, never fails a build. |
|
|
62
63
|
|
|
63
64
|
A few codes are reserved in the diagnostic enum for the milestones that emit
|
|
@@ -26,7 +26,7 @@ That one modifier changes what a database breach means: a leaked D1 backup, expo
|
|
|
26
26
|
- **`org_data_keys`** — one row per organization holding a random 256-bit data key (DEK), stored **wrapped** under the `ENCRYPTION_KEK` worker secret. Created lazily on the org's first encrypted write.
|
|
27
27
|
- **Write path** — every write (CRUD routes, batch routes, and `db.insert`/`db.update` inside your actions) flows through the same chokepoint, which AES-256-GCM-encrypts the column before anything else sees it. Audit snapshots, webhook payloads, and realtime deltas therefore carry ciphertext by construction.
|
|
28
28
|
- **Read path** — generated routes decrypt behind the firewall and then apply masking, so authorized callers see plaintext and everyone else sees the redaction — never ciphertext.
|
|
29
|
-
- **`ctx.crypto`** — explicit `await ctx.crypto.decrypt(value)` / `ctx.crypto.encrypt(value)` for action code that processes the field server-side (building a manifest, sending an email). Scoped to the caller's active organization.
|
|
29
|
+
- **`ctx.crypto`** — explicit `await ctx.crypto.decrypt(value)` / `ctx.crypto.encrypt(value)` for action code that processes the field server-side (building a manifest, sending an email). Scoped to the caller's active organization. `ctx.crypto` is only hydrated for authenticated requests — inside schedules, queue consumers, email handlers, and `PUBLIC` actions it is undefined. There, import the primitives directly: `import { encryptValue, decryptValue } from '../lib/encryption'` and call `decryptValue(env, db, organizationId, stored)`. Writes through the `withInternalContext` handle still encrypt automatically.
|
|
30
30
|
- **Boot guard** — a project with encrypted columns refuses to serve without `ENCRYPTION_KEK` (503 `MISSING_ENV`), instead of silently storing plaintext.
|
|
31
31
|
|
|
32
32
|
Values at rest look like `qbenc:1:<keyVersion>:<iv>:<ciphertext>` — the prefix makes accidental plaintext detectable, and the embedded key version supports rotation with lazy re-encryption on write.
|