@blockrun/clawrouter 0.12.270 → 0.12.272
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 +43 -7
- package/dist/cli.js +700 -127
- package/dist/index.d.ts +17 -0
- package/dist/index.js +385 -74
- package/docs/configuration.md +17 -1
- package/package.json +1 -1
- package/skills/surf/SKILL.md +32 -5
package/dist/index.d.ts
CHANGED
|
@@ -1416,6 +1416,23 @@ type UsageEntry = {
|
|
|
1416
1416
|
partnerId?: string;
|
|
1417
1417
|
/** Partner service name (e.g., "BlockRun") — only set for partner API calls */
|
|
1418
1418
|
service?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* The gateway's own id for this request, from the `x-blockrun-request-id`
|
|
1421
|
+
* response header. Absent for requests that never reached the gateway (a
|
|
1422
|
+
* cache hit, a local refusal, an aborted call).
|
|
1423
|
+
*
|
|
1424
|
+
* This is the JOIN KEY for billing reconciliation. Every `cost` in this file
|
|
1425
|
+
* is a LOCAL estimate computed from our copy of the price table, so it drifts
|
|
1426
|
+
* whenever that copy goes stale — six prices were wrong until v0.12.270, and
|
|
1427
|
+
* `/stats` had been reporting the wrong money the whole time. Recording the
|
|
1428
|
+
* gateway's id is what will let us diff this journal line-by-line against a
|
|
1429
|
+
* server-side ledger and show what was actually charged instead of what we
|
|
1430
|
+
* guessed. It cannot be backfilled: a call whose id we did not record is
|
|
1431
|
+
* unreconcilable forever, which is why this is captured before the ledger API
|
|
1432
|
+
* that will consume it exists. It is also the id support needs to trace one
|
|
1433
|
+
* failed call.
|
|
1434
|
+
*/
|
|
1435
|
+
requestId?: string;
|
|
1419
1436
|
};
|
|
1420
1437
|
/**
|
|
1421
1438
|
* Log a usage entry as a JSON line.
|