@quickback-dev/cli 0.72.9 → 0.72.11
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/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +8 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/db-explain.d.ts +67 -0
- package/dist/commands/db-explain.d.ts.map +1 -0
- package/dist/commands/db-explain.js +141 -0
- package/dist/commands/db-explain.js.map +1 -0
- package/dist/commands/db-export.d.ts +34 -0
- package/dist/commands/db-export.d.ts.map +1 -0
- package/dist/commands/db-export.js +250 -0
- package/dist/commands/db-export.js.map +1 -0
- package/dist/commands/db-insights.d.ts +60 -0
- package/dist/commands/db-insights.d.ts.map +1 -0
- package/dist/commands/db-insights.js +106 -0
- package/dist/commands/db-insights.js.map +1 -0
- package/dist/commands/db-recovery.d.ts +98 -0
- package/dist/commands/db-recovery.d.ts.map +1 -0
- package/dist/commands/db-recovery.js +558 -0
- package/dist/commands/db-recovery.js.map +1 -0
- package/dist/commands/db-target.d.ts +27 -0
- package/dist/commands/db-target.d.ts.map +1 -0
- package/dist/commands/db-target.js +83 -0
- package/dist/commands/db-target.js.map +1 -0
- package/dist/commands/db.d.ts +3 -0
- package/dist/commands/db.d.ts.map +1 -0
- package/dist/commands/db.js +43 -0
- package/dist/commands/db.js.map +1 -0
- package/dist/commands/effects.d.ts +8 -0
- package/dist/commands/effects.d.ts.map +1 -0
- package/dist/commands/effects.js +48 -0
- package/dist/commands/effects.js.map +1 -0
- package/dist/commands/platform-budget.d.ts +143 -0
- package/dist/commands/platform-budget.d.ts.map +1 -0
- package/dist/commands/platform-budget.js +619 -0
- package/dist/commands/platform-budget.js.map +1 -0
- package/dist/commands/preview.d.ts +57 -0
- package/dist/commands/preview.d.ts.map +1 -0
- package/dist/commands/preview.js +268 -0
- package/dist/commands/preview.js.map +1 -0
- package/dist/commands/search.d.ts +20 -0
- package/dist/commands/search.d.ts.map +1 -0
- package/dist/commands/search.js +133 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/api-client.d.ts +4 -0
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/cloudflare-spend-policies.d.ts +92 -0
- package/dist/lib/cloudflare-spend-policies.d.ts.map +1 -0
- package/dist/lib/cloudflare-spend-policies.js +289 -0
- package/dist/lib/cloudflare-spend-policies.js.map +1 -0
- package/dist/lib/compiler-stubs.d.ts +2 -0
- package/dist/lib/compiler-stubs.d.ts.map +1 -1
- package/dist/lib/compiler-stubs.js +2 -0
- package/dist/lib/compiler-stubs.js.map +1 -1
- package/dist/lib/d1-fingerprint.d.ts +8 -0
- package/dist/lib/d1-fingerprint.d.ts.map +1 -0
- package/dist/lib/d1-fingerprint.js +113 -0
- package/dist/lib/d1-fingerprint.js.map +1 -0
- package/dist/lib/file-loader.d.ts +12 -0
- package/dist/lib/file-loader.d.ts.map +1 -1
- package/dist/lib/file-loader.js +27 -1
- package/dist/lib/file-loader.js.map +1 -1
- package/dist/lib/migrations/plan.js +3 -0
- package/dist/lib/migrations/plan.js.map +1 -1
- package/dist/lib/migrations/postprocessors/index.d.ts +6 -5
- package/dist/lib/migrations/postprocessors/index.d.ts.map +1 -1
- package/dist/lib/migrations/postprocessors/index.js +24 -12
- package/dist/lib/migrations/postprocessors/index.js.map +1 -1
- package/dist/lib/migrations/postprocessors/search.d.ts +49 -0
- package/dist/lib/migrations/postprocessors/search.d.ts.map +1 -0
- package/dist/lib/migrations/postprocessors/search.js +160 -0
- package/dist/lib/migrations/postprocessors/search.js.map +1 -0
- package/dist/lib/migrations/prior-state.d.ts +7 -0
- package/dist/lib/migrations/prior-state.d.ts.map +1 -1
- package/dist/lib/migrations/prior-state.js +3 -0
- package/dist/lib/migrations/prior-state.js.map +1 -1
- package/dist/lib/migrations/types.d.ts +1 -1
- package/dist/lib/migrations/types.d.ts.map +1 -1
- package/dist/lib/migrations/types.js +1 -0
- package/dist/lib/migrations/types.js.map +1 -1
- package/dist/lib/preview-lifecycle.d.ts +139 -0
- package/dist/lib/preview-lifecycle.d.ts.map +1 -0
- package/dist/lib/preview-lifecycle.js +429 -0
- package/dist/lib/preview-lifecycle.js.map +1 -0
- package/dist/lib/preview.d.ts +146 -0
- package/dist/lib/preview.d.ts.map +1 -0
- package/dist/lib/preview.js +417 -0
- package/dist/lib/preview.js.map +1 -0
- package/dist/lib/wrangler-resources.d.ts.map +1 -1
- package/dist/lib/wrangler-resources.js +4 -2
- package/dist/lib/wrangler-resources.js.map +1 -1
- package/dist/skill/SKILL.md +9 -3
- package/dist/skill/agents/quickback-specialist/AGENT.md +9 -11
- package/dist/skill/docs/api/batch-operations.md +19 -0
- package/dist/skill/docs/api/caching.md +17 -0
- package/dist/skill/docs/api/crud.md +9 -0
- package/dist/skill/docs/api/errors.md +31 -2
- package/dist/skill/docs/api/query-params.md +6 -0
- package/dist/skill/docs/changelog/index.md +1 -0
- package/dist/skill/docs/configure/agents.md +1 -1
- package/dist/skill/docs/configure/bindings.md +177 -1
- package/dist/skill/docs/configure/cloudflare-access.md +43 -0
- package/dist/skill/docs/configure/domains.md +1 -1
- package/dist/skill/docs/configure/providers.md +5 -0
- package/dist/skill/docs/configure/tenant-databases.md +627 -14
- package/dist/skill/docs/define/access.md +26 -0
- package/dist/skill/docs/define/actions/defining.md +7 -1
- package/dist/skill/docs/define/actions/index.md +5 -0
- package/dist/skill/docs/define/actions/scoped-db.md +127 -1
- package/dist/skill/docs/define/authoring-basics.md +92 -0
- package/dist/skill/docs/define/changesets.md +8 -0
- package/dist/skill/docs/define/encryption.md +48 -2
- package/dist/skill/docs/define/feature.md +17 -2
- package/dist/skill/docs/define/guards.md +11 -3
- package/dist/skill/docs/define/index.md +1 -1
- package/dist/skill/docs/define/invariants.md +321 -0
- package/dist/skill/docs/define/issue-tracker-example.md +225 -0
- package/dist/skill/docs/define/masking.md +3 -3
- package/dist/skill/docs/define/rate-limit.md +78 -30
- package/dist/skill/docs/define/read.md +332 -5
- package/dist/skill/docs/define/relationships.md +10 -0
- package/dist/skill/docs/define/schema.md +137 -10
- package/dist/skill/docs/define/scopes.md +1 -0
- package/dist/skill/docs/define/transitions.md +9 -0
- package/dist/skill/docs/define/triggers.md +127 -1
- package/dist/skill/docs/platform/api-contract/index.md +35 -4
- package/dist/skill/docs/platform/auth/api-keys.md +26 -3
- package/dist/skill/docs/platform/auth/index.md +5 -2
- package/dist/skill/docs/platform/auth/plugins/index.md +1 -1
- package/dist/skill/docs/platform/database/d1.md +73 -1
- package/dist/skill/docs/platform/database/durable-effects.md +224 -0
- package/dist/skill/docs/platform/database/neon.md +8 -5
- package/dist/skill/docs/platform/database/read-replication.md +9 -0
- package/dist/skill/docs/platform/database/recovery.md +292 -0
- package/dist/skill/docs/platform/database/using-d1.md +152 -2
- package/dist/skill/docs/platform/index.md +1 -0
- package/dist/skill/docs/platform/operations/budgets.md +224 -0
- package/dist/skill/docs/platform/queues/handlers.md +1 -0
- package/dist/skill/docs/platform/queues/index.md +18 -0
- package/dist/skill/docs/platform/realtime/table-changes.md +1 -0
- package/dist/skill/docs/platform/storage/using-r2.md +13 -0
- package/dist/skill/docs/platform/vector/embeddings.md +28 -4
- package/dist/skill/docs/platform/vector/using-embeddings.md +17 -0
- package/dist/skill/docs/platform/workflows/index.md +385 -0
- package/dist/skill/docs/start/deploy-browser.md +51 -0
- package/dist/skill/docs/start/deploy.md +97 -1
- package/dist/skill/docs/tooling/cli.md +117 -0
- package/dist/skill/docs/tooling/cloud-compiler/index.md +15 -0
- package/dist/skill/docs/ui/account/customization.md +4 -0
- package/dist/skill/docs/ui/admin/record-layouts.md +3 -3
- package/package.json +1 -1
- package/src/skill/SKILL.md +9 -3
- package/src/skill/agents/quickback-specialist/AGENT.md +9 -11
- package/src/skill/docs/api/batch-operations.md +19 -0
- package/src/skill/docs/api/caching.md +17 -0
- package/src/skill/docs/api/crud.md +9 -0
- package/src/skill/docs/api/errors.md +31 -2
- package/src/skill/docs/api/query-params.md +6 -0
- package/src/skill/docs/changelog/index.md +1 -0
- package/src/skill/docs/configure/agents.md +1 -1
- package/src/skill/docs/configure/bindings.md +177 -1
- package/src/skill/docs/configure/cloudflare-access.md +43 -0
- package/src/skill/docs/configure/domains.md +1 -1
- package/src/skill/docs/configure/providers.md +5 -0
- package/src/skill/docs/configure/tenant-databases.md +627 -14
- package/src/skill/docs/define/access.md +26 -0
- package/src/skill/docs/define/actions/defining.md +7 -1
- package/src/skill/docs/define/actions/index.md +5 -0
- package/src/skill/docs/define/actions/scoped-db.md +127 -1
- package/src/skill/docs/define/authoring-basics.md +92 -0
- package/src/skill/docs/define/changesets.md +8 -0
- package/src/skill/docs/define/encryption.md +48 -2
- package/src/skill/docs/define/feature.md +17 -2
- package/src/skill/docs/define/guards.md +11 -3
- package/src/skill/docs/define/index.md +1 -1
- package/src/skill/docs/define/invariants.md +321 -0
- package/src/skill/docs/define/issue-tracker-example.md +225 -0
- package/src/skill/docs/define/masking.md +3 -3
- package/src/skill/docs/define/rate-limit.md +78 -30
- package/src/skill/docs/define/read.md +332 -5
- package/src/skill/docs/define/relationships.md +10 -0
- package/src/skill/docs/define/schema.md +137 -10
- package/src/skill/docs/define/scopes.md +1 -0
- package/src/skill/docs/define/transitions.md +9 -0
- package/src/skill/docs/define/triggers.md +127 -1
- package/src/skill/docs/platform/api-contract/index.md +35 -4
- package/src/skill/docs/platform/auth/api-keys.md +26 -3
- package/src/skill/docs/platform/auth/index.md +5 -2
- package/src/skill/docs/platform/auth/plugins/index.md +1 -1
- package/src/skill/docs/platform/database/d1.md +73 -1
- package/src/skill/docs/platform/database/durable-effects.md +224 -0
- package/src/skill/docs/platform/database/neon.md +8 -5
- package/src/skill/docs/platform/database/read-replication.md +9 -0
- package/src/skill/docs/platform/database/recovery.md +292 -0
- package/src/skill/docs/platform/database/using-d1.md +152 -2
- package/src/skill/docs/platform/index.md +1 -0
- package/src/skill/docs/platform/operations/budgets.md +224 -0
- package/src/skill/docs/platform/queues/handlers.md +1 -0
- package/src/skill/docs/platform/queues/index.md +18 -0
- package/src/skill/docs/platform/realtime/table-changes.md +1 -0
- package/src/skill/docs/platform/storage/using-r2.md +13 -0
- package/src/skill/docs/platform/vector/embeddings.md +28 -4
- package/src/skill/docs/platform/vector/using-embeddings.md +17 -0
- package/src/skill/docs/platform/workflows/index.md +385 -0
- package/src/skill/docs/start/deploy-browser.md +51 -0
- package/src/skill/docs/start/deploy.md +97 -1
- package/src/skill/docs/tooling/cli.md +117 -0
- package/src/skill/docs/tooling/cloud-compiler/index.md +15 -0
- package/src/skill/docs/ui/account/customization.md +4 -0
- package/src/skill/docs/ui/admin/record-layouts.md +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrangler-resources.js","sourceRoot":"","sources":["../../src/lib/wrangler-resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAsCH;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,WAAoB;IAClE,MAAM,SAAS,GAAsB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAkB,IAAI,CAAC;IAClC,IAAI,YAAY,GAAkB,IAAI,CAAC;IACvC,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAC7B,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,OAAO,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,IAAI,OAAO,GAA2B,EAAE,CAAC;IACzC,IAAI,iBAAqC,CAAC;IAC1C,IAAI,YAAgC,CAAC;IAErC,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,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ep, Glob, Edit, Write
|
|
|
8
8
|
|
|
9
9
|
Quickback is a **backend compiler**. Define your database schema and security rules in TypeScript; compile them into a Hono API running on Cloudflare Workers. Pair the output with the Quickback Stack for a complete Supabase alternative on Cloudflare.
|
|
10
10
|
|
|
11
|
+
## Authoring workflow
|
|
12
|
+
|
|
13
|
+
Read `docs/define/authoring-basics.md` first (CLI: `quickback docs define/authoring-basics`), then the current firewall/access pages. Treat canonical docs as authoritative over examples or remembered behavior in this file. Map the requested capabilities and permissions, retrieve their focused references, and validate a connected skeleton before adding actions and presentation details. After a compiler error, read the relevant contract before guessing a replacement. Before completion, compare final files against the original requirements; never drop an access branch to obtain a green compile.
|
|
14
|
+
|
|
15
|
+
For project/issue/assignment builds use `docs/define/issue-tracker-example.md`. It includes sibling helper imports, same-org FKs, submitted-user membership checks, and a persisted reporter-or-assignee update. Relationship roles compare the same resource-column name on both rows; they do not automatically map a junction's `issueId` to an issue's `id`. Returned table rows use `output: row(table)`; a green validation alone does not prove generated TypeScript or runtime permissions.
|
|
16
|
+
|
|
11
17
|
It's two products:
|
|
12
18
|
|
|
13
19
|
## 1. Quickback Compiler — the build tool
|
|
@@ -252,13 +258,13 @@ For Drizzle interop (existing `sqliteTable` schemas): `quickback docs define/esc
|
|
|
252
258
|
|
|
253
259
|
Before flagging "missing X", check whether a default already covers it:
|
|
254
260
|
|
|
255
|
-
- **Soft-delete is the default.**
|
|
256
|
-
- **Audit
|
|
261
|
+
- **Soft-delete is the default.** Declare `...q.softDelete()` visibly; firewall auto-AND-merges `deletedAt IS NULL`. Opt out with `crud.delete.mode: 'hard'`.
|
|
262
|
+
- **Audit columns must be visible.** Declare `...q.audit()` and, for soft-delete tables, `...q.softDelete()` in `columns`. The compiler validates their canonical shape. Runtime writes populate the values from verified context; do not supply managed fields in scoped inserts. See `define/schema` for the distinction between schema declaration and write-time population.
|
|
257
263
|
- **Sensitive columns auto-masked.** `email`, `phone`, `ssn`, `password`, `creditCard`, etc. get `show: { or: 'owner', roles: ['admin'] }` by default; falls back to `roles: ['admin']` only when there's no `ownerId` column. Absence of a `masking:` block does NOT mean plain-text — it means the compiler-default is in effect. Declare `masking:` only to override.
|
|
258
264
|
- **Firewall auto-derived** for tables with a single isolation column (e.g., `organizationId` only).
|
|
259
265
|
- **Soft-delete cascade** reaches cross-feature children with each child's own firewall AND-merged.
|
|
260
266
|
- **Reserved keys in `access.record`.** `and`, `or`, `roles`, `userRole` are rejected inside `record:` at compile time — those go on the parent access node.
|
|
261
|
-
- **Soft-delete
|
|
267
|
+
- **Soft-delete and uniqueness.** A full unique index still includes soft-deleted rows. Prefer the documented `unique: [{ columns: [...], whereNotDeleted: true }]` form for re-creatable soft-delete junction rows; see `define/schema`. Do not remove database uniqueness or change deletion semantics merely to avoid a compile error.
|
|
262
268
|
|
|
263
269
|
---
|
|
264
270
|
|
|
@@ -138,12 +138,16 @@ For state-machine fields (status, lifecycle), add `transition: { field, via|to,
|
|
|
138
138
|
|
|
139
139
|
**Retired** (rejected at load time): bundled `actions.ts`, `_feature.ts`, `handlers/` directory, `defineActions()`, `*-actions.ts` filenames.
|
|
140
140
|
|
|
141
|
+
## Grounding and acceptance
|
|
142
|
+
|
|
143
|
+
Start with the compact `docs/define/authoring-basics.md`, then retrieve the current references for the requested capabilities. Current canonical docs override this distillation. Keep a requirement inventory and test the final behavior, not only successful compilation. For assignment-style editing use the connected issue-tracker example: a relationship role requires matching resource-column names, and a reporter-only outer action gate would deny assignees before the join check. Preserve admin bypass, reporter success, and assignee lookup; validate submitted-user org membership separately from scope stamping. Use table-specific `defineAction` helpers for sibling actions, and `row(table)` for table-row output contracts.
|
|
144
|
+
|
|
141
145
|
## Defaults the compiler applies (audit before flagging "missing")
|
|
142
146
|
|
|
143
147
|
Before recommending a fix for "missing X", check whether the compiler has already applied X as a default. Common cases that trip up audits:
|
|
144
148
|
|
|
145
|
-
- **Soft-delete is the default.** Any table without explicit `crud.delete.mode: 'hard'` is soft-deleted;
|
|
146
|
-
- **Audit
|
|
149
|
+
- **Soft-delete is the default.** Any table without explicit `crud.delete.mode: 'hard'` is soft-deleted; declare the soft-delete pair visibly, and the firewall auto-AND-merges `{ field: 'deletedAt', isNull: true }`. Junction tables, including ones added via Drizzle interop, follow the same default.
|
|
150
|
+
- **Audit columns must be visible.** Declare `...q.audit()` and `...q.softDelete()` on soft-delete feature tables; raw Drizzle tables need canonical literal declarations. The compiler validates these shapes. Scoped runtime writes populate managed values from verified context; do not supply them in insert values. Consult `define/schema` before recommending a migration or raw write.
|
|
147
151
|
- **Sensitive columns are auto-masked.** Column names matching `email`, `phone`, `ssn`, `password`, `creditCard`, etc. get default masking with `show: { or: 'owner', roles: ['admin'] }` (or `roles: ['admin']` only when there's no `ownerId` column). A compile warning announces it. Absence of a `masking:` block does NOT mean the column is plain-text — it means the compiler-default is in effect. Only flag a "PII gap" if the user explicitly overrode the default with a weaker rule.
|
|
148
152
|
- **Firewall is auto-derived for single-isolation tables.** A table with exactly one isolation column (e.g., `organizationId`) gets `firewall: [{ field: 'organizationId', equals: 'ctx.activeOrgId' }, { field: 'deletedAt', isNull: true }]` derived automatically. Two isolation columns → user must declare explicitly.
|
|
149
153
|
- **Soft-delete cascade reaches cross-feature children.** When a parent is soft-deleted, every child table FK'd to it (same-feature AND cross-feature) is soft-deleted in the same transaction. The cascade UPDATE AND-merges the child's own firewall, so a parent delete in one tenant never touches another tenant's child. Fixed comprehensively for batch DELETE in v0.10.10 — older "cascade workarounds" in user code can be removed once the project is on v0.10.10+.
|
|
@@ -155,19 +159,13 @@ The scoped `db` (the action context's `db`) is a wrapper around Drizzle that:
|
|
|
155
159
|
|
|
156
160
|
- **Does** auto-AND the resource's firewall WHERE clause into every `select` / `update` / `delete` query.
|
|
157
161
|
- **Does** route soft-delete `delete()` calls to a `deletedAt`/`deletedBy` UPDATE.
|
|
158
|
-
- **Does
|
|
162
|
+
- **Does** populate declared tenant/owner scope columns from verified context on scoped inserts. Audit fields are populated at runtime too. Supply domain fields, not scope or managed audit values; use current `define/actions/scoped-db` guidance.
|
|
159
163
|
|
|
160
|
-
When auditing an action
|
|
164
|
+
When auditing an action, distinguish caller scope stamping from submitted-pointer validation. Scope stamping does not prove that a submitted assignee belongs to the organization: validate that user through `authDb` and `getOrgMemberRole`. Declare feature-table FKs and same-org matches; consult canonical docs before recommending raw writes.
|
|
161
165
|
|
|
162
166
|
## Drizzle interop traps
|
|
163
167
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
- `eq(table.organizationId, ...)` won't typecheck.
|
|
167
|
-
- `scopeTo({ organizationId })` falls back to string-keyed lookup.
|
|
168
|
-
- The interop pattern works at runtime but is fragile.
|
|
169
|
-
|
|
170
|
-
Fix: either declare the auto-injected columns explicitly in the `sqliteTable` body (so types align), OR migrate the table to `feature()` + `q.scope("organization")` which owns both sides.
|
|
168
|
+
Raw `sqliteTable(...)` / `pgTable` declarations must include their actual isolation columns and the canonical literal audit/soft-delete columns. Unknown spreads cannot substitute for those declarations. Read `define/schema` for the managed-column contract and migration command; do not rely on invisible injection to repair missing types or use casts to bypass it. Prefer `feature()` with `q.scope()`, `q.audit()`, and `q.softDelete()` for new tables.
|
|
171
169
|
|
|
172
170
|
## Security Principles
|
|
173
171
|
|
|
@@ -349,6 +349,25 @@ if (res.ok) {
|
|
|
349
349
|
}
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
+
### Authored atomic D1 actions
|
|
353
|
+
|
|
354
|
+
The matrix above describes generated HTTP batch/changeset handlers. An action's
|
|
355
|
+
[`db.batch(builders, options)`](/define/actions/scoped-db#atomic-d1-batches-and-concurrency)
|
|
356
|
+
is one native D1 transaction; it does not make an ordinary D1 `failFast` loop
|
|
357
|
+
transactional. SQL conditions and the action's idempotency commit marker join
|
|
358
|
+
that same transaction.
|
|
359
|
+
|
|
360
|
+
`DB_BATCH_ROLLED_BACK`, failed SQL batch conditions and a statement refused
|
|
361
|
+
by a `QB_TRIGGER_REJECTED` trigger or an [invariant](/define/invariants)
|
|
362
|
+
(`422 TRIGGER_REJECTED`, its code in `details.code`) report
|
|
363
|
+
`details.committed: false`. `DB_BATCH_POST_COMMIT_FAILED` reports
|
|
364
|
+
`details.committed: true`: the action's writes succeeded even though hooks failed.
|
|
365
|
+
`DB_BATCH_OUTCOME_UNKNOWN` reports `details.committed: null`: a timeout or lost
|
|
366
|
+
acknowledgement leaves the outcome unresolved. Reconcile committed/unknown
|
|
367
|
+
operations before taking further action; do not automatically resend with a new
|
|
368
|
+
key. Receipt retries return the saved response, `IDEMPOTENCY_COMMITTED`, or
|
|
369
|
+
`IDEMPOTENCY_OUTCOME_UNKNOWN` without repeating mutation code.
|
|
370
|
+
|
|
352
371
|
### Embeddings and Realtime
|
|
353
372
|
|
|
354
373
|
When a resource has `embeddings` or `realtime` configured, queue messages
|
|
@@ -54,6 +54,23 @@ Vary: Authorization, Cookie, Cf-Access-Jwt-Assertion
|
|
|
54
54
|
|
|
55
55
|
Every other JSON response produced under a cookie, bearer token, or [Cloudflare Access](/configure/cloudflare-access) assertion (writes, actions, auth, admin) is sent with `Cache-Control: private, no-store` unless the route sets its own policy, and always carries `Vary: Authorization, Cookie, Cf-Access-Jwt-Assertion`, so a proxy can never serve one user's body to another.
|
|
56
56
|
|
|
57
|
+
## Server-side caching
|
|
58
|
+
|
|
59
|
+
ETags save transfer. The read still runs. To skip the query and render on
|
|
60
|
+
repeat reads, opt a resource into the user-scoped
|
|
61
|
+
[Workers Cache](/define/read#workers-cache) with
|
|
62
|
+
`read.cache: { engine: "workers", scope: "user", ttlSeconds }`. Every hit is
|
|
63
|
+
authenticated and authorized first. The ETag, `304` and `Cache-Control`
|
|
64
|
+
behavior on this page does not change.
|
|
65
|
+
|
|
66
|
+
Freshness comes from a [data epoch](/define/read#the-data-epoch). It is one
|
|
67
|
+
row in the features database holding a random token, replaced in the same D1
|
|
68
|
+
batch as every write the Worker commits there. A token is never reused, so a
|
|
69
|
+
D1 restore cannot make an old entry serve the wrong data. The trade-off is one
|
|
70
|
+
extra single-row write per write batch, plus one primary read of the token per
|
|
71
|
+
cached request. Writes made outside the Worker, such as `wrangler d1 execute`,
|
|
72
|
+
must mint a new token themselves.
|
|
73
|
+
|
|
57
74
|
## Client usage
|
|
58
75
|
|
|
59
76
|
### fetch API
|
|
@@ -55,6 +55,13 @@ For a resource named `jobs`, Quickback generates:
|
|
|
55
55
|
| `PUT` | `/jobs/:id` | Upsert a record (requires config) |
|
|
56
56
|
| `PUT` | `/jobs/batch` | Batch upsert multiple records (requires config) |
|
|
57
57
|
|
|
58
|
+
Each route is generated only for a verb the table declares, and only with the
|
|
59
|
+
`access` that verb declares: a verb that mounts a route without `access` is a
|
|
60
|
+
compile error (`ACCESS_REQUIRED`), never an endpoint open to every signed-in
|
|
61
|
+
caller. To keep a verb's settings without its route (a soft-delete mode used
|
|
62
|
+
by cascades), set `routes: false`. See
|
|
63
|
+
[Operations without access](/define/access#operations-without-access).
|
|
64
|
+
|
|
58
65
|
A table a namespace claims mounts these under the namespace prefix
|
|
59
66
|
(`/event/:eventId/jobs`), and every row they read or write is confined to the instance in the URL
|
|
60
67
|
(see [Claimed tables are pinned to the URL instance](/define/areas#claimed-tables-are-pinned-to-the-url-instance)). With [`legacy`](/define/areas#keeping-the-old-url-legacy) it also keeps
|
|
@@ -438,6 +445,8 @@ DELETE /jobs/:id
|
|
|
438
445
|
```
|
|
439
446
|
|
|
440
447
|
Deletes a record. Behavior depends on the `delete.mode` configuration.
|
|
448
|
+
The route needs `delete.access`; `delete: { mode: "soft", routes: false }`
|
|
449
|
+
keeps the mode (for cascades and actions) with no `DELETE` route.
|
|
441
450
|
|
|
442
451
|
### Soft Delete (default)
|
|
443
452
|
|
|
@@ -19,7 +19,7 @@ The generated API returns structured error responses with consistent fields acro
|
|
|
19
19
|
| `422` | Unprocessable | `Idempotency-Key` reused with a different request or principal, or a stored encrypted value will not decrypt (`ENCRYPTION_UNREADABLE`), or a write carried a platform-managed JSON key (`JSON_KEY_RESTRICTED`) |
|
|
20
20
|
| `428` | Precondition Required | `If-Match` sent where it can't anchor: no revision column, a batch endpoint (single-resource precondition), or the POST changeset variant |
|
|
21
21
|
| `429` | Too Many Requests | Rate limit exceeded |
|
|
22
|
-
| `500` | Internal Error | Uncaught throw — generic body,
|
|
22
|
+
| `500` | Internal Error | Uncaught throw — generic body, diagnostics server-side. Also `DB_WRITE_OUTCOME_UNKNOWN`: a write passed the configured [`queryTimeoutMs`](/configure/providers#database-options) and may still have committed |
|
|
23
23
|
| `503` | Service Unavailable | **Retryable.** `AUTH_REVOCATION_UNAVAILABLE`, or `DB_TIMEOUT` — a read passed the configured D1 deadline |
|
|
24
24
|
|
|
25
25
|
## Error Response Format — RFC 9457 Problem Details
|
|
@@ -352,7 +352,7 @@ form can show the conflict inline. `details.column` is the first of them.
|
|
|
352
352
|
| `DB_TIMEOUT` | 503 | **Retryable.** A read passed [`queryTimeoutMs`](/configure/providers#database-options) (D1 only). The read had no side effects; retry. `details: { binding }` |
|
|
353
353
|
| `DB_WRITE_OUTCOME_UNKNOWN` | 500 | A write passed `queryTimeoutMs`. D1 does not cancel the statement, so it may still commit after the response. **Re-read the record before retrying** — a blind retry can double-apply. `details: { binding, outcome: 'unknown' }` |
|
|
354
354
|
| `ENCRYPTION_UNREADABLE` | 422 | A stored [`.encrypted()`](/define/encryption) value will not decrypt |
|
|
355
|
-
| `TRIGGER_REJECTED` | 422 / 403 | A [before-trigger](/define/triggers#rejection-status) refused the write; nothing was persisted. `layer: "trigger"`, `details.code` for a prefixed `sql:` rejection |
|
|
355
|
+
| `TRIGGER_REJECTED` | 422 / 403 | A [before-trigger](/define/triggers#rejection-status) refused the write; nothing was persisted. `layer: "trigger"`, `details.code` for a prefixed `sql:` rejection or an [invariant](/define/invariants) |
|
|
356
356
|
|
|
357
357
|
The `details.column` field is only present when the driver's error message identified the offending column (SQLite/D1 do; some PG variants don't).
|
|
358
358
|
|
|
@@ -468,6 +468,9 @@ With `tenancy.isolation: 'durable-object'`, responses about an organization's ow
|
|
|
468
468
|
| `TENANT_RPC_VERSION_MISMATCH` | The edge and tenant Workers disagree on the RPC contract; deploy the tenant Worker first |
|
|
469
469
|
| `TENANT_AUTHORIZATION_EPOCH_CHANGED` | A restore advanced the tenant's authorization epoch; credentials issued before it are refused |
|
|
470
470
|
| `TENANT_RESTORE_PENDING` | A restore is pending or unreconciled; sync or cancel it first |
|
|
471
|
+
| `STORAGE_FILE_NOT_READY` | A tenant upload is not verified (or is unavailable after a restore); `details.status` says which (409) |
|
|
472
|
+
| `STORAGE_FILE_BRIDGE_EDGE_OUTDATED` / `STORAGE_FILE_BRIDGE_UNAVAILABLE` | The tenant file bridge cannot sign here: the edge Worker is older than the object, or the call is not a forwarded request (a job or alarm) (503) |
|
|
473
|
+
| `TENANT_FILE_GRANT_FAILED` / `TENANT_FILES_PURGING` / `TENANT_BRIDGE_*` / `TENANT_FILE_*` | The edge refused (or could not sign) a tenant file grant: a forged or malformed envelope, a reused key, a stale generation, or a purge cleanup in progress |
|
|
471
474
|
| `TENANT_RESTORE_TOO_LARGE` | Operator restore: the dump exceeds the restore limit (413) |
|
|
472
475
|
| `TENANT_OPERATION_FAILED` | Operator route refused or failed (409); `detail` says why |
|
|
473
476
|
| `TENANT_COMMAND_INVALID` | A tenant command request failed its schema |
|
|
@@ -475,6 +478,8 @@ With `tenancy.isolation: 'durable-object'`, responses about an organization's ow
|
|
|
475
478
|
| `TENANT_COMMAND_REPLY_INVALID` | The tenant object answered a command with a malformed reply |
|
|
476
479
|
| `TENANT_JOB_INVALID` | A tenant job message is invalid |
|
|
477
480
|
| `TENANT_JOB_CALL_ONLY` | A result job was delivered instead of called (callTenantJob) |
|
|
481
|
+
| `TENANT_JOB_PLACEMENT` | A tenant job was sent to an object of the wrong placement (a partition job outside its partition, an organization job in a partition), or its message names another partition |
|
|
482
|
+
| `TENANT_JOB_STALE_GENERATION` | A queued tenant job was delivered under a restore generation the object no longer has; it is dropped, never run |
|
|
478
483
|
| `TENANT_JOB_FAILED` | A called tenant job failed |
|
|
479
484
|
| `TENANT_JOB_REPLY_INVALID` | The tenant object answered a job call with a malformed reply |
|
|
480
485
|
| `TENANT_JOB_RESULT_INVALID` | A tenant job result is not serializable |
|
|
@@ -634,3 +639,27 @@ error. With it, they still never carry a bound value — the message, cause and
|
|
|
634
639
|
stack go through the same [redaction](#bound-values-never-leave-the-database)
|
|
635
640
|
as the server log. `1` and `true` turn it on; any other value leaves it off. Leave it
|
|
636
641
|
unset in production.
|
|
642
|
+
|
|
643
|
+
## Tenant request diagnostics
|
|
644
|
+
|
|
645
|
+
With Durable Object tenancy, `tenant.request.failed`,
|
|
646
|
+
`tenant.data_keys.unavailable`, and `tenant.rpc.failed` emit structured logs.
|
|
647
|
+
Generated action execution failures emit `action.execute.failed`. Each includes
|
|
648
|
+
a UUID `requestId`, the registered route template, HTTP method, operation
|
|
649
|
+
`stage`, and up to four entries in `causes`. A cause contains an allowlisted
|
|
650
|
+
error name/code, a fixed category (such as `missing_table`, `query_failed`, or
|
|
651
|
+
`network_connection_lost`), and up to eight bundle locations. Unknown errors
|
|
652
|
+
retain the category `unknown`; arbitrary messages are never copied.
|
|
653
|
+
|
|
654
|
+
The edge forwards the correlation ID to the tenant and returns it in
|
|
655
|
+
`x-request-id`. Non-UUID inbound IDs are replaced for these diagnostics. Search
|
|
656
|
+
both Workers by that ID, then use the Worker event's deployed version to map
|
|
657
|
+
`index.js` / `worker.js` (or `.mjs`) line and column locations to source. Edge
|
|
658
|
+
forwarding routes may be wildcard templates; the tenant/action log identifies
|
|
659
|
+
the matched handler.
|
|
660
|
+
|
|
661
|
+
These diagnostics omit SQL, bound values, raw paths, queries, error messages,
|
|
662
|
+
function names, arbitrary filenames, and credential/key material. They do not
|
|
663
|
+
change HTTP status codes, encryption's fail-closed behavior, or retry policy.
|
|
664
|
+
They diagnose a failure without assuming that a data-key warning necessarily
|
|
665
|
+
caused the request to fail.
|
|
@@ -219,6 +219,12 @@ WHERE (title LIKE '%engineer%' OR department LIKE '%engineer%')
|
|
|
219
219
|
|
|
220
220
|
Only columns defined with `text()` in your Drizzle schema are searchable. Non-text columns (integers, timestamps, UUIDs, blobs) are automatically excluded.
|
|
221
221
|
|
|
222
|
+
A resource that declares [`read.search`](/define/read#full-text-search-readsearch)
|
|
223
|
+
(D1) uses SQLite FTS5 instead: whitespace-separated literal terms that must
|
|
224
|
+
all match whole tokens in the indexed fields, ordered by field-match relevance
|
|
225
|
+
with offset pagination unless `?sort=` is given. Its OpenAPI operations
|
|
226
|
+
describe the exact semantics under `x-search`.
|
|
227
|
+
|
|
222
228
|
## Complete Example
|
|
223
229
|
|
|
224
230
|
Combine all query parameters together:
|
|
@@ -5,6 +5,7 @@ listed separately; detailed setup instructions live in the product guides.
|
|
|
5
5
|
|
|
6
6
|
## Coming next
|
|
7
7
|
|
|
8
|
+
- **One sign-in for dedicated apps.** Enter through Cloudflare Access while keeping your workspace permissions in place. [Learn more](/configure/cloudflare-access#native-browser-applications-opt-in).
|
|
8
9
|
- **A lighter migration history.** Consolidate D1 migrations into a clean starting point, with checks that protect existing databases. [Learn more](/platform/database/schema-baselines).
|
|
9
10
|
|
|
10
11
|
## November 2026
|
|
@@ -420,7 +420,7 @@ Projects without an attendee server compile byte-identically.
|
|
|
420
420
|
- **Its hostname is bound as a custom domain on the same Worker automatically** — no `providers.runtime.config.routes` entry needed. A host the target already routes (its API host, say) adds no second route. See [Multi-Domain Architecture](/configure/domains#named-mcp-server-hosts).
|
|
421
421
|
- The URL needs a path (`https://mcp.attend.vip/guest`, or `…/mcp` on a dedicated host): the host root's `/.well-known/oauth-protected-resource` is the default server's document. `https://` only, no port, query or fragment, and the host can't be a CMS, Account, admin, app, auth or webhook host — their hostname middleware would serve or block the MCP path. On a host the target already serves (its API or `BETTER_AUTH_URL` host, a `routes` entry), the path can't be `/mcp` or any named server's `path` either: the public URL is matched first and would shadow that server there.
|
|
422
422
|
|
|
423
|
-
With [named environments](/configure/domains#named-environments), key `publicUrl` by environment name. Every environment runs the same bundle, so the compiler stamps `QUICKBACK_ENVIRONMENT = "<name>"` into each target's vars whenever a `publicUrl` is keyed by environment; the Worker reads it to know which public URL is its own. Only that URL is routed and accepted as an audience on that target — `mcp-dev.attend.vip` is never a resource of production. An environment without an entry serves the server at `BETTER_AUTH_URL + path` only. Keys must be plain environment names (a letter, then letters, digits, `-` or `_`), and never an `Object.prototype` member such as `constructor`. A host owned by another target, or a `domains: 'none'` target with an entry, fails the compile.
|
|
423
|
+
With [named environments](/configure/domains#named-environments), key `publicUrl` by environment name. Every environment runs the same bundle, so the compiler stamps `QUICKBACK_ENVIRONMENT = "<name>"` into each target's vars whenever a `publicUrl` is keyed by environment (or the `apiKey` plugin is on); the Worker reads it to know which public URL is its own. Only that URL is routed and accepted as an audience on that target — `mcp-dev.attend.vip` is never a resource of production. An environment without an entry serves the server at `BETTER_AUTH_URL + path` only. Keys must be plain environment names (a letter, then letters, digits, `-` or `_`), and never an `Object.prototype` member such as `constructor`. A host owned by another target, or a `domains: 'none'` target with an entry, fails the compile.
|
|
424
424
|
|
|
425
425
|
### Login and consent pages
|
|
426
426
|
|
|
@@ -38,7 +38,7 @@ Every binding declared here is also typed on `env` — the generated `Cloudflare
|
|
|
38
38
|
| `sendEmail` | `SendEmail` |
|
|
39
39
|
| `r2Buckets` | `R2Bucket` |
|
|
40
40
|
| `queueProducers` | `Queue` |
|
|
41
|
-
| `services` | `Fetcher` |
|
|
41
|
+
| `services` | `Fetcher`, or `Service<Entrypoint>` with an explicit `rpc` contract |
|
|
42
42
|
| `durableObjects` | `DurableObjectNamespace` |
|
|
43
43
|
| `ai` | `Ai` |
|
|
44
44
|
| `vars` | `string` / `number` / `boolean`, from the value |
|
|
@@ -108,6 +108,91 @@ services: [
|
|
|
108
108
|
]
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
+
### Typed service RPC
|
|
112
|
+
|
|
113
|
+
Opt in to a local contract for a sibling Worker's RPC methods:
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
services: [
|
|
117
|
+
{
|
|
118
|
+
binding: "CATALOG",
|
|
119
|
+
service: "catalog-dev",
|
|
120
|
+
entrypoint: "CatalogRpc",
|
|
121
|
+
rpc: { from: "lib/contracts/catalog", export: "CatalogContract" },
|
|
122
|
+
},
|
|
123
|
+
]
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`rpc.from` is an extensionless module in generated `src/` coordinates:
|
|
127
|
+
`lib/...` or `features/<feature>/lib/...`. Author it under the corresponding
|
|
128
|
+
`quickback/` directory. Absolute paths, `./`, traversal, URLs, extensions and
|
|
129
|
+
`node_modules` segments are refused. A local contract module may re-export a
|
|
130
|
+
type from a dependency explicitly declared by the project. Quickback never
|
|
131
|
+
loads a contract module to discover RPC methods, fetches a remote contract,
|
|
132
|
+
or reads a provider's source from outside the project.
|
|
133
|
+
|
|
134
|
+
`rpc.export` names the exported **WorkerEntrypoint subclass type**, not an
|
|
135
|
+
arbitrary structural interface. It is independent of `entrypoint`, which
|
|
136
|
+
names the deployed provider's export. For example, a shared contract module
|
|
137
|
+
can use `export type { CatalogRpc as CatalogContract } from "../CatalogRpc"`.
|
|
138
|
+
The generated environment uses
|
|
139
|
+
`Service<import("./lib/contracts/catalog").CatalogContract>`. Cloudflare's
|
|
140
|
+
[`Service` type](https://developers.cloudflare.com/workers/runtime-apis/rpc/typescript/)
|
|
141
|
+
checks method names, arguments and results, and makes synchronous provider
|
|
142
|
+
methods asynchronous for callers. Plain fetch bindings remain `Fetcher`;
|
|
143
|
+
existing projects need no migration.
|
|
144
|
+
|
|
145
|
+
Both generated compilation and `quickback check` check this contract. Missing
|
|
146
|
+
modules or exports, and unbranded structural contracts, fail typechecking even
|
|
147
|
+
when `skipLibCheck` is enabled. The contract import is type-only and adds no
|
|
148
|
+
provider code to the consumer's runtime bundle.
|
|
149
|
+
|
|
150
|
+
With named environments, declare services in
|
|
151
|
+
`environments.<key>.worker.bindings.services` for the edge Worker or
|
|
152
|
+
`environments.<key>.tenantWorker.services` for the tenant Worker. Every
|
|
153
|
+
occurrence of a binding in a given Worker role must have the same `rpc`
|
|
154
|
+
contract, or all must omit `rpc`. Target script names and remote entrypoint
|
|
155
|
+
names can differ. A binding missing from any target is optional in that role's
|
|
156
|
+
shared environment type. Edge and tenant roles may have different contracts;
|
|
157
|
+
tenant action helpers expose tenant services, not edge services. Existing
|
|
158
|
+
cross-target service restrictions still apply.
|
|
159
|
+
|
|
160
|
+
### `serviceEntrypoints`
|
|
161
|
+
|
|
162
|
+
To provide RPC from a Quickback **edge Worker**, declare named authored exports:
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
serviceEntrypoints: [
|
|
166
|
+
{ name: "CatalogRpc", from: "lib/CatalogRpc" },
|
|
167
|
+
]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Author `CatalogRpc` as an exported class extending `WorkerEntrypoint` from
|
|
171
|
+
`cloudflare:workers` at `quickback/lib/CatalogRpc.ts`. The compiler emits
|
|
172
|
+
`export { CatalogRpc } from './lib/CatalogRpc'` in `src/index.ts`. The same
|
|
173
|
+
path restrictions as `rpc.from` apply. Duplicate names, framework entrypoint
|
|
174
|
+
names, `default`, and collisions with Durable Object class exports are refused.
|
|
175
|
+
This declaration creates **no HTTP route**, tenant Worker export, or DO migration.
|
|
176
|
+
|
|
177
|
+
> RPC types grant no authorization. Calls to an authored entrypoint do not run
|
|
178
|
+
> Quickback's HTTP authentication middleware, resource Access/Firewall checks,
|
|
179
|
+
> host allowlist or HTTP required-secret guard. The provider must validate its
|
|
180
|
+
> own credentials, required configuration, caller permissions and inputs before
|
|
181
|
+
> accessing data. A caller-supplied `userId` or organization ID is not proof of
|
|
182
|
+
> identity or authority. No credentials, user identity or service URLs are
|
|
183
|
+
> inferred from a contract.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
Coordinate provider and consumer contract versions. Types check local source;
|
|
187
|
+
they cannot prove that the deployed target implements that source. Prefer
|
|
188
|
+
backward-compatible methods during rollout. Renaming an exported entrypoint
|
|
189
|
+
requires updating the provider and consumer configuration; it is not an
|
|
190
|
+
automatic remote migration.
|
|
191
|
+
|
|
192
|
+
Custom service bindings and `serviceEntrypoints` remain unsupported by brokered
|
|
193
|
+
deployment. Use the CLI to build and `wrangler deploy` to deploy each Worker,
|
|
194
|
+
with the provider available before the consumer calls it.
|
|
195
|
+
|
|
111
196
|
### `durableObjects`
|
|
112
197
|
|
|
113
198
|
Emits `[[durable_objects.bindings]]` for app-owned Durable Objects. Don't use this for Quickback's built-in `BROADCASTER` realtime DO — that one is compiler-owned.
|
|
@@ -359,3 +444,94 @@ allowed — only a name pointing at two *different* things is rejected.
|
|
|
359
444
|
|
|
360
445
|
- [Environment Variables](/configure/variables) — the non-secret `[vars]` / secret split
|
|
361
446
|
- [Providers](/configure/providers) — runtime / database / auth selection
|
|
447
|
+
|
|
448
|
+
## Durable Object code updates and retries
|
|
449
|
+
|
|
450
|
+
This opt-in policy belongs to `providers.runtime.config.durableObjects`, not
|
|
451
|
+
an individual binding. It requires the Cloudflare runtime and the generated
|
|
452
|
+
project's Wrangler / `@cloudflare/workers-types` pins. Omit it and the
|
|
453
|
+
generated code and configuration are unchanged.
|
|
454
|
+
|
|
455
|
+
```ts
|
|
456
|
+
import { defineRuntime } from "@quickback/compiler";
|
|
457
|
+
|
|
458
|
+
const runtime = defineRuntime("cloudflare", {
|
|
459
|
+
durableObjects: {
|
|
460
|
+
codeUpdateStrategy: { mode: "deferred", maxDelaySeconds: 60 },
|
|
461
|
+
retry: { maxRetries: 1, timeoutMs: 2000 },
|
|
462
|
+
},
|
|
463
|
+
});
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Unknown keys, an `immediate` strategy with a delay, and out-of-range values
|
|
467
|
+
are compile errors.
|
|
468
|
+
|
|
469
|
+
### `codeUpdateStrategy`
|
|
470
|
+
|
|
471
|
+
Emits `durable_objects.code_update_strategy` once in each generated Worker's
|
|
472
|
+
config. It applies to **all classes that Worker exports**, including
|
|
473
|
+
exports-based lifecycle declarations. A cross-worker binding follows its
|
|
474
|
+
exporting Worker's strategy. Choose `immediate` without a delay, or `deferred`
|
|
475
|
+
with an optional `maxDelaySeconds` from 0–86400 at millisecond precision.
|
|
476
|
+
Omission uses Cloudflare's deferred 300-second default on the next deployment.
|
|
477
|
+
Deferral is best effort; keep protocols compatible across versions. This
|
|
478
|
+
setting is neither a storage migration nor a no-downtime guarantee. The
|
|
479
|
+
brokered deploy rejects an explicit strategy (and `retry`); deploy with Wrangler. See
|
|
480
|
+
Cloudflare's
|
|
481
|
+
[code-update policy](https://developers.cloudflare.com/durable-objects/deployments/durable-objects-code-updates/).
|
|
482
|
+
|
|
483
|
+
### `retry`
|
|
484
|
+
|
|
485
|
+
Selects **native-only retries for the stubs Quickback creates** in that
|
|
486
|
+
Worker: realtime `Broadcaster` publish and read stubs (not the WebSocket upgrade, a stream the platform never replays), tenant forwarding, commands, jobs and
|
|
487
|
+
tenant control stubs. Optional `maxRetries` is an integer from 0–10;
|
|
488
|
+
`timeoutMs` is an integer from 500–60000. An empty object selects platform
|
|
489
|
+
defaults. See Cloudflare's
|
|
490
|
+
[automatic retries](https://developers.cloudflare.com/durable-objects/best-practices/automatic-retries/).
|
|
491
|
+
|
|
492
|
+
There is exactly one retry layer per call:
|
|
493
|
+
|
|
494
|
+
- **Without `retry`**, Quickback keeps its existing selective application
|
|
495
|
+
retries: one retry on a fresh stub after a reset or retryable error, only
|
|
496
|
+
for tenant `GET`/`HEAD` forwarding, read-mode commands, result jobs and
|
|
497
|
+
realtime publishes and sequence reads. The platform's default transport
|
|
498
|
+
retries still apply underneath.
|
|
499
|
+
- **With `retry`**, those application retries are skipped. The stub carries
|
|
500
|
+
your budget and the platform alone decides what to retry. A failure after a
|
|
501
|
+
method started is retried only for methods marked safe to run again — so a
|
|
502
|
+
tenant `GET` that loses its object mid-request now returns an error instead
|
|
503
|
+
of a second attempt. `maxRetries: 0` still disables the application retry.
|
|
504
|
+
|
|
505
|
+
Only `Broadcaster.readSurfaceSeq` and `QuickbackTenant.report` are marked safe
|
|
506
|
+
to run again. Both only read stored state. The mark follows the policy of the
|
|
507
|
+
Worker that exports the class; the budget follows the Worker that calls it.
|
|
508
|
+
Publishes, `fetch`, tenant `handle`/`command`, jobs, restores, hooks and alarms
|
|
509
|
+
stay unmarked, so the platform never replays them after they may have started.
|
|
510
|
+
This is not a deduplication mechanism for authored side effects. Tenant,
|
|
511
|
+
principal, admission, protocol-version and restore checks run on every
|
|
512
|
+
attempt. User errors, overload and HTTP error responses never trigger a retry.
|
|
513
|
+
The retry horizon does not cancel the first attempt, so realtime publish and
|
|
514
|
+
read deadlines stay in place.
|
|
515
|
+
|
|
516
|
+
Custom Durable Object methods and stubs your own code creates are yours: the
|
|
517
|
+
compiler neither marks nor wraps them. The compiler reserves the
|
|
518
|
+
`__QB_DO_RETRY_POLICY` var that carries the budget; declaring it as a var,
|
|
519
|
+
secret or binding is a compile error.
|
|
520
|
+
|
|
521
|
+
### Named targets and rollback
|
|
522
|
+
|
|
523
|
+
The runtime policy is the default for every generated Worker. Set
|
|
524
|
+
`environments.<target>.worker.durableObjects` or
|
|
525
|
+
`environments.<target>.tenantWorker.durableObjects` to override one Worker for
|
|
526
|
+
that target — the edge and tenant Workers resolve independently. Members
|
|
527
|
+
replace whole: overriding `retry` keeps the default `codeUpdateStrategy` but
|
|
528
|
+
replaces the entire retry object, not individual keys. A target-only `retry`
|
|
529
|
+
leaves the other targets on the application-retry path. The separately
|
|
530
|
+
generated broadcast Worker (`realtime.mode: 'separate'`) uses the top-level
|
|
531
|
+
runtime policy.
|
|
532
|
+
|
|
533
|
+
Roll back by removing the policy at every level, recompiling, and deploying the
|
|
534
|
+
affected Workers. Removing a target override alone restores the runtime
|
|
535
|
+
default. The code-update strategy is sent with every deployment; it does not
|
|
536
|
+
persist from a previous version. Object identities, exports and storage
|
|
537
|
+
migrations are unchanged.
|
|
@@ -189,3 +189,46 @@ Anything else gets **403 `CSRF_ORIGIN_REJECTED`**. Service-token requests skip t
|
|
|
189
189
|
2. Copy its **Application Audience (AUD) tag** into `aud`.
|
|
190
190
|
3. Set `teamDomain` to your team domain, `<team>.cloudflareaccess.com`.
|
|
191
191
|
4. For machines, create a service token and add a **Service Auth** policy. Then map its Client ID in `serviceTokens`.
|
|
192
|
+
|
|
193
|
+
## Native browser applications (opt in)
|
|
194
|
+
|
|
195
|
+
Set `browser: true` on an Access application and set `features.pinnedOrganizationId` to an existing organization. This mode is for a custom browser application whose employees authenticate through Access alone. The Account SPA still uses Better Auth session APIs; use an Access-aware custom account/team surface with the existing roster and `ctx.auth` operations. Nothing changes for applications without `browser: true`.
|
|
196
|
+
|
|
197
|
+
```ts title="quickback.config.ts"
|
|
198
|
+
export default defineConfig({
|
|
199
|
+
// Keep your existing Cloudflare + D1 + Better Auth providers.
|
|
200
|
+
features: { organizations: true, pinnedOrganizationId: 'org_studio' },
|
|
201
|
+
auth: {
|
|
202
|
+
cloudflareAccess: {
|
|
203
|
+
teamDomain: { env: 'CF_ACCESS_TEAM' },
|
|
204
|
+
aud: { env: 'CF_ACCESS_AUD' },
|
|
205
|
+
hosts: ['studio.example.com'],
|
|
206
|
+
roles: ['user'],
|
|
207
|
+
browser: true,
|
|
208
|
+
excludePaths: ['/auth/v1/oauth2/token', '/auth/v1/oauth2/register', '/mcp', '/.well-known'],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
The native browser lane requires HTTPS, an existing verified, nonbanned user, and live membership in the pinned organization. Mapped service tokens cannot create a browser identity in this mode. No users or memberships are automatically provisioned. `roles` remains the platform user-role admission list; data permissions still come from organization membership.
|
|
215
|
+
|
|
216
|
+
`GET /api/v1/auth/context` returns a no-store projection: `authMethod`, `identityType`, safe `user` fields (`id`, `email`, `name`), `organization` (`id`, `name`, `slug`, `role`), `browser` (`id`, `expiresAt` in Unix seconds), and `logoutUrl`. It never returns an assertion or a session credential. Use this endpoint instead of Better Auth's `get-session` and organization selection APIs. Pinned mode needs no organization switcher.
|
|
217
|
+
|
|
218
|
+
The Worker creates a real Better Auth session, binds it to the verified Access user, policy and organization, and keeps its credential inside an encrypted, Secure, HttpOnly, host-only browser cookie. That cookie cannot authenticate any request on its own. Every native request revalidates the Access assertion, user and membership, and checks the session store. Verified Access browser activity refreshes a live session according to Better Auth's configured update-age policy; connector bearer traffic cannot refresh that browser session. A revoked session is refused; a subsequent fresh browser binding requires another Access-authenticated request. `ctx.authMethod` stays `cloudflare-access`; `ctx.browser` proves the human browser context, with its real `id` also available as `ctx.sessionId`. `ctx.browser.expiresAt` is bounded by both the assertion and session expiry. Do not replace these checks with a client-provided user or session ID.
|
|
219
|
+
|
|
220
|
+
Actions may combine their existing organization-role rules with `authMethod: ['cloudflare-access']`. In browser mode the lane refuses service tokens; outside browser mode that auth method alone is not a human-only rule. Retain row firewalls and use `ctx.auth` for organization-bound member operations. Encryption uses the existing authenticated-context middleware. Realtime tickets carry the verified absolute authorization expiry into the existing socket lease cap; renewal requires fresh admission. App membership removal takes effect on the next request/renewal, while an existing socket remains bounded by its authorization lease/expiry. Access or IdP policy revocation follows the Access application's own session policy and is not instantaneous app revocation.
|
|
221
|
+
|
|
222
|
+
### OAuth without a second app login
|
|
223
|
+
|
|
224
|
+
Browser mode narrowly bridges `GET`/`HEAD /auth/v1/oauth2/authorize`, `GET`/`HEAD /auth/v1/oauth2/public-client` and `POST /auth/v1/oauth2/consent` to the provider's existing authorization engine with the verified internal session. Existing client, redirect, PKCE, consent, audience, scope and refresh/revocation validation still applies. Other Better Auth session, password and token-mint routes remain refused inside the scope. Internal session cookies and token headers from authorization responses are not exposed to the browser.
|
|
225
|
+
|
|
226
|
+
Noninteractive code exchange/refresh, discovery, DCR and MCP clients must run outside the Access scope. `excludePaths` is an explicit list of path-prefix exceptions to this application's Access lane, with the same segment-boundary matching as `paths`. It requires `browser: true`; it is not an authentication grant: ordinary route authentication and signature checks still run. Configure the edge's Access applications/policies to match these exceptions too. Never exclude an entire browser API or add cookie/bearer fallback on a protected path. For an endpoint used by both browsers and OAuth clients, give the browser a separate protected route that reuses the same domain implementation, or use a separate integration hostname.
|
|
227
|
+
|
|
228
|
+
`POST /api/v1/auth/logout` revokes the internal session and clears the binding cookie, then returns `{ url: '/cdn-cgi/access/logout' }`. Clear application/query/storage caches before navigating there. Existing ordinary OAuth grants tied to that session can no longer refresh. A user, membership or Access identity change must also clear client caches; do not persist data keyed only by organization.
|
|
229
|
+
|
|
230
|
+
### Custom Worker entrypoints
|
|
231
|
+
|
|
232
|
+
If an authored Worker returns documents before calling the generated app, protect those responses too. The generated `src/lib/cloudflare-access-browser.ts` exports `authenticateAccessBrowserRequest(request, env, executionCtx?)`, returning `{ context, headers }`. It uses the same configured application selection, verifier, live user/membership lookup and browser binding. Forward its `Set-Cookie` response headers. On a typed refusal forward `error.status`/`error.code` and any clearing cookie in `error.headers`; never fall back to a session. The helper refuses excluded paths and unconfigured applications. It is emitted as a disabled compatibility stub when browser mode is off so an authored entrypoint can import it behind a feature flag.
|
|
233
|
+
|
|
234
|
+
Generated APIs already perform this check in middleware; do not authenticate them twice in a wrapper. Do not copy the helper's private credentials, return the full context as JSON, or hand-parse Access headers in application code. Only the context endpoint's documented projection is suitable for the browser.
|
|
@@ -247,7 +247,7 @@ Each `domains` key maps 1:1 to a top-level source:
|
|
|
247
247
|
|
|
248
248
|
When the project generates exactly **one** hostname, `domain: "api-dev.attend.vip"` is accepted as shorthand for the single role.
|
|
249
249
|
|
|
250
|
-
Named MCP server hosts are not `domains` keys: `agents.mcp.servers.<key>.publicUrl` is itself keyed by environment (`{ production: "https://mcp.attend.vip/guest", dev: "https://mcp-dev.attend.vip/guest" }`), and each host is appended to that target's `routes`. The compiler also stamps `QUICKBACK_ENVIRONMENT = "<name>"` into each target's vars so the shared bundle knows which public URL is its own. A host claimed by another target fails the compile, like any other duplicate hostname.
|
|
250
|
+
Named MCP server hosts are not `domains` keys: `agents.mcp.servers.<key>.publicUrl` is itself keyed by environment (`{ production: "https://mcp.attend.vip/guest", dev: "https://mcp-dev.attend.vip/guest" }`), and each host is appended to that target's `routes`. The compiler also stamps `QUICKBACK_ENVIRONMENT = "<name>"` into each target's vars so the shared bundle knows which public URL is its own (it does the same whenever the `apiKey` plugin is on — [API keys](/platform/auth/api-keys#key-prefix) pick their `live_` / `<environment>_` segment from it). A host claimed by another target fails the compile, like any other duplicate hostname.
|
|
251
251
|
|
|
252
252
|
`domains: 'none'` marks a workers.dev-only target. It emits `routes = []` rather than omitting the block, so inheritance cannot hand that target a sibling's custom domain.
|
|
253
253
|
|