@quickback-dev/cli 0.70.10 → 0.70.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ response to an LLM agent without grepping logs:
|
|
|
64
64
|
| `title` | string | Human-stable summary derived from the code |
|
|
65
65
|
| `status` | number | The HTTP status, repeated in the body |
|
|
66
66
|
| `detail` | string | Human-readable error message (optional) |
|
|
67
|
+
| `error` | string | Extension — the same text as `detail`, kept for clients written against the pre-0.70.4 action-error body `{ error, code }`. On by default; set `contract.errors.legacyErrorField: false` in `quickback.config.ts` once every client reads `detail` |
|
|
67
68
|
| `instance` | string | Request path (optional) |
|
|
68
69
|
| `layer` | string | Extension — security layer that rejected the request |
|
|
69
70
|
| `code` | string | Extension — machine-readable error code (the full enum ships in `openapi.json` as `Problem.code`) |
|
|
@@ -1319,6 +1319,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
|
|
|
1319
1319
|
| `stmts` | Statements run, including those inside `db.transaction()` |
|
|
1320
1320
|
| `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
|
|
1321
1321
|
| `cold` | Connections the lease pool had to open for this invocation |
|
|
1322
|
+
| `auth` | Time from the request-id middleware to the end of the auth middleware: Better Auth's session and user lookups plus the membership/role lookup for the active org. Paid by every authenticated request, CRUD and action alike |
|
|
1322
1323
|
| `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
|
|
1323
1324
|
|
|
1324
1325
|
Statement text and parameters are never logged. Work the invocation defers to
|
|
@@ -1327,7 +1328,12 @@ and is not counted.
|
|
|
1327
1328
|
|
|
1328
1329
|
The header and log line are on by default. Set the Wrangler var
|
|
1329
1330
|
`SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
|
|
1330
|
-
to turn both off there.
|
|
1331
|
+
to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
|
|
1332
|
+
the log line only (never the header): one entry per statement with the first
|
|
1333
|
+
120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
|
|
1334
|
+
a `db.transaction()`), and whether it was the first statement on its
|
|
1335
|
+
connection. Parameters are never logged, and the trace is for dev and staging:
|
|
1336
|
+
an N+1 shape shows up as the same SQL head repeated with per-row durations. Aggregate p50 / p95 by `route` with `wrangler tail` or
|
|
1331
1337
|
Workers Logs to find the endpoints where round trips, not the statements
|
|
1332
1338
|
themselves, are the cost.
|
|
1333
1339
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickback-dev/cli",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.12",
|
|
4
4
|
"description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
|
|
5
5
|
"author": "Kardoe Incorporated <paul@kardoe.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,6 +64,7 @@ response to an LLM agent without grepping logs:
|
|
|
64
64
|
| `title` | string | Human-stable summary derived from the code |
|
|
65
65
|
| `status` | number | The HTTP status, repeated in the body |
|
|
66
66
|
| `detail` | string | Human-readable error message (optional) |
|
|
67
|
+
| `error` | string | Extension — the same text as `detail`, kept for clients written against the pre-0.70.4 action-error body `{ error, code }`. On by default; set `contract.errors.legacyErrorField: false` in `quickback.config.ts` once every client reads `detail` |
|
|
67
68
|
| `instance` | string | Request path (optional) |
|
|
68
69
|
| `layer` | string | Extension — security layer that rejected the request |
|
|
69
70
|
| `code` | string | Extension — machine-readable error code (the full enum ships in `openapi.json` as `Problem.code`) |
|
|
@@ -1319,6 +1319,7 @@ Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;d
|
|
|
1319
1319
|
| `stmts` | Statements run, including those inside `db.transaction()` |
|
|
1320
1320
|
| `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
|
|
1321
1321
|
| `cold` | Connections the lease pool had to open for this invocation |
|
|
1322
|
+
| `auth` | Time from the request-id middleware to the end of the auth middleware: Better Auth's session and user lookups plus the membership/role lookup for the active org. Paid by every authenticated request, CRUD and action alike |
|
|
1322
1323
|
| `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
|
|
1323
1324
|
|
|
1324
1325
|
Statement text and parameters are never logged. Work the invocation defers to
|
|
@@ -1327,7 +1328,12 @@ and is not counted.
|
|
|
1327
1328
|
|
|
1328
1329
|
The header and log line are on by default. Set the Wrangler var
|
|
1329
1330
|
`SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
|
|
1330
|
-
to turn both off there.
|
|
1331
|
+
to turn both off there. `SERVER_TIMING = "debug"` adds a `statements` array to
|
|
1332
|
+
the log line only (never the header): one entry per statement with the first
|
|
1333
|
+
120 characters of the SQL, its duration, its lane (`read`, `write`, or `tx` for
|
|
1334
|
+
a `db.transaction()`), and whether it was the first statement on its
|
|
1335
|
+
connection. Parameters are never logged, and the trace is for dev and staging:
|
|
1336
|
+
an N+1 shape shows up as the same SQL head repeated with per-row durations. Aggregate p50 / p95 by `route` with `wrangler tail` or
|
|
1331
1337
|
Workers Logs to find the endpoints where round trips, not the statements
|
|
1332
1338
|
themselves, are the cost.
|
|
1333
1339
|
|