void 1.8.0 → 1.9.1
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/{account-cmd-CZKntRH2.mjs → account-cmd-BEMOdwtl.mjs} +3 -3
- package/dist/{application-analysis-CyTagJQM.mjs → application-analysis-3VVsflWZ.mjs} +5 -5
- package/dist/{application-routing-BLrMVpqi.mjs → application-routing-CJRlXCc2.mjs} +1 -1
- package/dist/{auth-Bk9VGtQW.d.mts → auth-CV9kXHKe.d.mts} +3 -1
- package/dist/{auth-DyWp-fSo.mjs → auth-aMuFOZeI.mjs} +8 -2
- package/dist/{auth-link-BOaQWMKw.mjs → auth-link-B1IynRW5.mjs} +3 -3
- package/dist/{auth-router-D0-VcmDs.mjs → auth-router-DVaWJdRB.mjs} +2 -2
- package/dist/{better-auth-shared-CdVyCUou.mjs → better-auth-shared-C7LHvF4L.mjs} +1 -1
- package/dist/{better-auth-shared-CQFdtguU.d.mts → better-auth-shared-ajs3LNrY.d.mts} +1 -1
- package/dist/{build-cmd-JTsXXf2F.mjs → build-cmd-Dq8tdqQG.mjs} +1 -1
- package/dist/{cache-D0m3Z_Xf.mjs → cache-DGMnskX7.mjs} +1 -1
- package/dist/{cancel-deploy-Ce6Os4fa.mjs → cancel-deploy-96S5hD1E.mjs} +1 -1
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/{cli-main-rkrJy2Ge.mjs → cli-main-CQRLxZAu.mjs} +28 -28
- package/dist/client-66c0RLDM.mjs +1 -0
- package/dist/{client-SZPyj4X_.mjs → client-D6w5x7hM.mjs} +7 -7
- package/dist/{cloudflare-auth-7jTqy9Bx.mjs → cloudflare-auth-pNvmT6kL.mjs} +1 -1
- package/dist/{cloudflare-cmd-ChPLQcTP.mjs → cloudflare-cmd-BuuHUM4z.mjs} +3 -3
- package/dist/{cloudflare-config-DtOGAbeB.mjs → cloudflare-config-PxbinLLE.mjs} +2 -2
- package/dist/{cloudflare-connect-Co93VYTo.mjs → cloudflare-connect-D1QOosLd.mjs} +2 -2
- package/dist/{cloudflare-operations-CXaDKYj2.mjs → cloudflare-operations-G5AObYzF.mjs} +5 -5
- package/dist/{cloudflare-operations-DATekLwI.mjs → cloudflare-operations-I4t3mt4R.mjs} +1 -1
- package/dist/{cloudflare-process-DmTxZR-N.mjs → cloudflare-process-wcnaQ5JG.mjs} +2 -2
- package/dist/{config-wo2EaH0X.mjs → config-C1DPf8EK.mjs} +1 -1
- package/dist/{config-CTlUaXWZ.d.mts → config-CCWVY7DY.d.mts} +1 -1
- package/dist/{config-5oSQhZNj.mjs → config-CzFdJYNA.mjs} +1 -1
- package/dist/{config-DcqUBGCb.mjs → config-DlWQ_hIJ.mjs} +3 -3
- package/dist/{config-eeDzKBS9.mjs → config-Do7gJI3T.mjs} +2 -2
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-DlvXt1JR.mjs → connect-4uImOwut.mjs} +4 -4
- package/dist/{create-project-CC_7hmYJ.mjs → create-project-BaUzZnLZ.mjs} +1 -1
- package/dist/{create-project-DzY05xqC.mjs → create-project-CQMyzTvK.mjs} +1 -1
- package/dist/{db-FhyYGcJJ.mjs → db-DEpDeDsi.mjs} +19 -19
- package/dist/{db-types-sVwEpyPR.mjs → db-types-BpPYAx0B.mjs} +1 -1
- package/dist/{delete-CModjyOC.mjs → delete-BVD2kI82.mjs} +1 -1
- package/dist/deploy-Dr_Qamzw.mjs +2 -0
- package/dist/{deploy-Cz9TEzZy.mjs → deploy-Dyeo5soA.mjs} +24 -75
- package/dist/{deploy-managed-static-DlxxXkAM.mjs → deploy-managed-static-Kn73R83A.mjs} +20 -20
- package/dist/{deploy-transport-DUvm6-CR.mjs → deploy-transport-BpKBs_KR.mjs} +2 -2
- package/dist/deploy.mjs +6 -6
- package/dist/discover-Diq0l6TZ.mjs +1 -0
- package/dist/{discover-CVFCWU7W.mjs → discover-Vd18lHsj.mjs} +1 -1
- package/dist/{dispatch-CCiaAnSK.mjs → dispatch-BBfb519j.mjs} +5 -5
- package/dist/{domain-DvdZPA50.mjs → domain-BTIdyUVk.mjs} +2 -2
- package/dist/{email-ASpNrfLd.mjs → email-DvrS-I0U.mjs} +7 -7
- package/dist/{email-cloudflare-kqoN9jst.mjs → email-cloudflare-DAGpgzY1.mjs} +3 -3
- package/dist/{entry-BweGTCgj.mjs → entry-DMgR7XOf.mjs} +1 -1
- package/dist/{env-Bpkg3G5i.mjs → env-D7vORwpn.mjs} +4 -4
- package/dist/{env-types-Dz9qkiOn.mjs → env-types-WEZw5D-r.mjs} +1 -1
- package/dist/{env-validation-CN386Utu.mjs → env-validation-DKDcpxbt.mjs} +1 -1
- package/dist/{env-validation-BpCCQE_6.mjs → env-validation-DeYNRp1d.mjs} +3 -3
- package/dist/{gen-upKJChvd.mjs → gen-DimkGNve.mjs} +4 -4
- package/dist/gen-DmEeVEs4.mjs +1 -0
- package/dist/{github-cmd-BvMOlb8Z.mjs → github-cmd-D-zs6VQr.mjs} +1 -1
- package/dist/{handler-BO7Od-z9.d.mts → handler-6fzr_ikp.d.mts} +3 -3
- package/dist/{head-5XPcnG-j.mjs → head-0o0QoREY.mjs} +63 -4
- package/dist/{head-MeF_5M_3.d.mts → head-CVO92KEx.d.mts} +14 -3
- package/dist/{headers-COGEDoMN.mjs → headers-Q0kZDpk8.mjs} +1 -1
- package/dist/{help-TPCjTu6e.mjs → help-Cgdcd-SG.mjs} +4 -4
- package/dist/help-Cp3K5m1w.mjs +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +29 -24
- package/dist/{info-EsDyihwf.mjs → info-BbxQ34kk.mjs} +4 -4
- package/dist/{init-a4lVagrb.mjs → init-zyRj3QRw.mjs} +14 -14
- package/dist/{link-CE55DDzS.mjs → link-DAFXuIER.mjs} +2 -2
- package/dist/{list-CxRthQks.mjs → list-BTIcC3W9.mjs} +2 -2
- package/dist/{live-Kc55iuOQ.d.mts → live-DBybyDt0.d.mts} +2 -2
- package/dist/{live-CYJ4KGoR.mjs → live-Dw7NF1t2.mjs} +1 -1
- package/dist/load-user-env-ztmIyiLx.mjs +34 -0
- package/dist/{local-d1-CFcH9Bx3.mjs → local-d1-BnVb7Fem.mjs} +1 -1
- package/dist/login-DBs8JuSl.mjs +1 -0
- package/dist/{login-AfcSGSmE.mjs → login-DOE-MkeK.mjs} +2 -2
- package/dist/{logs-BgRJuvb1.mjs → logs-CUsjihc3.mjs} +2 -2
- package/dist/migrate-BYhoIK9R.mjs +1 -0
- package/dist/{migrate-BNAh6m_C.mjs → migrate-DtoKdGas.mjs} +4 -4
- package/dist/nitro.mjs +3 -3
- package/dist/{node-CXFUw0Uz.mjs → node-D9dPyUr0.mjs} +2 -2
- package/dist/operator-ai-logging-DFTEp81Z.mjs +121 -0
- package/dist/{operator-args-DGTuCdSE.mjs → operator-args-BCCohcz3.mjs} +3 -2
- package/dist/{operator-cmd-C-viB7Si.mjs → operator-cmd-CQOQrUiO.mjs} +26 -6
- package/dist/operator-cmd-xCACDtT1.mjs +1 -0
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +15 -13
- package/dist/pages/head.d.mts +2 -2
- package/dist/pages/head.mjs +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +5 -1
- package/dist/pages/islands-plugin.mjs +6 -2
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/platform-args-DSi4_M8n.mjs +1 -0
- package/dist/{platform-args-CiYeZmc5.mjs → platform-args-DtpHS_75.mjs} +1 -1
- package/dist/{platform-auth-config-Dt2qEc2w.mjs → platform-auth-config-fLwIS5VG.mjs} +3 -3
- package/dist/{platform-auth-protection-B7TaF-PZ.mjs → platform-auth-protection-BTRI_YwD.mjs} +2 -2
- package/dist/{platform-auth-recovery-suXSteJ6.mjs → platform-auth-recovery-DPK2Mvmo.mjs} +2 -2
- package/dist/{platform-cmd-DuAsIxbU.mjs → platform-cmd-BLy5uCa-.mjs} +1 -1
- package/dist/{platform-cmd-9rvYBBtr.mjs → platform-cmd-HS_FSthn.mjs} +5 -5
- package/dist/{platform-domain-DhH_vDr6.mjs → platform-domain-CHpcq_qg.mjs} +2 -2
- package/dist/{platform-lifecycle-3uI-E2bF.mjs → platform-lifecycle-B6LUBwjS.mjs} +1 -1
- package/dist/{platform-lifecycle-CXmXe2xt.mjs → platform-lifecycle-D2RS7DE0.mjs} +236 -26
- package/dist/{platform-management-PdrgDQTe.mjs → platform-management-C-T0ch4y.mjs} +1 -1
- package/dist/{platform-management-BBCHfwji.mjs → platform-management-d3ETv3Dw.mjs} +14 -14
- package/dist/{platform-plans-config-BGwkXYDM.mjs → platform-plans-config-B7yJQKf7.mjs} +114 -30
- package/dist/{platform-recovery-C8NxXGRR.mjs → platform-recovery-DS5CAsly.mjs} +2 -2
- package/dist/{plugin-inference-CErfTgEx.mjs → plugin-inference-DZHmVe1f.mjs} +3 -3
- package/dist/{prepare-BDKWZgfL.mjs → prepare-AVM4Hj3T.mjs} +8 -8
- package/dist/prepare-BSXKz6m8.mjs +1 -0
- package/dist/{prepare-BLrzXjIl.mjs → prepare-DMk8NAO-.mjs} +1 -1
- package/dist/{project-cmd-DzGvxXKH.mjs → project-cmd-TQKAOTMV.mjs} +15 -15
- package/dist/{project-paths-G0yut6Zz.mjs → project-paths-CUhCPMpK.mjs} +33 -2
- package/dist/{project-team-C5XtHbZk.mjs → project-team-B1OKeb-T.mjs} +1 -1
- package/dist/{project-token-B4D5yhHQ.mjs → project-token-RW_wpmN-.mjs} +1 -1
- package/dist/{project-tsconfig-nhnTWO_Y.mjs → project-tsconfig-MyRJgufB.mjs} +1 -1
- package/dist/{project-zero-trust--0LvktDg.mjs → project-zero-trust-TNc66p0_.mjs} +1 -1
- package/dist/{protocol-Cg2I81NA.d.mts → protocol-YS3tbxWE.d.mts} +2 -2
- package/dist/{protocol-B1Tvc9-x.mjs → protocol-a3ZUQq5W.mjs} +56 -20
- package/dist/{provision-CAcrauvr.mjs → provision-BLdkpFT4.mjs} +1 -1
- package/dist/{provision-C3yiHdld.mjs → provision-bgQTi5QZ.mjs} +2 -2
- package/dist/redirect-Dqb4fEc5.mjs +80 -0
- package/dist/{requests-CrRiTgQA.mjs → requests-Cj15-yrI.mjs} +1 -1
- package/dist/{rollback-BsmQyj-Q.mjs → rollback-CYnkng7B.mjs} +2 -2
- package/dist/{route-types-CgtlFCDz.mjs → route-types-C6eAOmOj.mjs} +1 -1
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +1 -1
- package/dist/runtime/client-solid.d.mts +1 -1
- package/dist/runtime/client-svelte.d.mts +1 -1
- package/dist/runtime/client-vue.d.mts +1 -1
- package/dist/runtime/client.d.mts +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/routing.d.mts +2 -2
- package/dist/runtime/routing.mjs +6 -5
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{scan-BJ3bj6aP.mjs → scan-4YOxDaw2.mjs} +2 -2
- package/dist/{secret-D0g5oBsP.mjs → secret-BSf7dgg_.mjs} +3 -3
- package/dist/{action-key-ByZ6DDld.mjs → url-DaehRGKR.mjs} +43 -1
- package/dist/{version-metadata-eUd6Ar_U.mjs → version-metadata-CeftH0fQ.mjs} +1 -1
- package/dist/{wrangler-k40T7XTQ.mjs → wrangler-B1gkT_wC.mjs} +3 -3
- package/dist/wrangler-fNGvPTlO.mjs +1 -0
- package/dist/{wrapper-CVMZarxf.mjs → wrapper-xJ4LP5A7.mjs} +3 -3
- package/dist/{ws--U7QicYy.d.mts → ws-C2zy0QBf.d.mts} +2 -2
- package/docs/guide/ai.md +1 -1
- package/docs/guide/app-types.md +1 -1
- package/docs/guide/auth.md +24 -27
- package/docs/guide/database/d1.md +4 -2
- package/docs/guide/database.md +29 -27
- package/docs/guide/deployment.md +2 -2
- package/docs/guide/edge/headers.md +3 -3
- package/docs/guide/edge/prerendering.md +5 -5
- package/docs/guide/edge/redirects.md +1 -1
- package/docs/guide/edge/revalidation.md +4 -2
- package/docs/guide/edge/rewrites.md +1 -1
- package/docs/guide/edge/static-assets.md +4 -0
- package/docs/guide/email/sending.md +4 -2
- package/docs/guide/live.md +1 -1
- package/docs/guide/pages-routing/actions-and-forms.md +25 -7
- package/docs/guide/pages-routing/errors.md +17 -9
- package/docs/guide/pages-routing/head.md +44 -1
- package/docs/guide/pages-routing/islands.md +3 -1
- package/docs/guide/pages-routing/layouts.md +2 -2
- package/docs/guide/pages-routing/loaders.md +3 -1
- package/docs/guide/pages-routing/markdown.md +5 -3
- package/docs/guide/pages-routing/overview.md +14 -21
- package/docs/guide/platform/administration/connected-apps.md +10 -3
- package/docs/guide/platform/administration/email.md +1 -1
- package/docs/guide/platform/administration/plans.md +34 -1
- package/docs/guide/platform/administration/projects.md +6 -2
- package/docs/guide/platform/installation/credentials.md +12 -10
- package/docs/guide/platform/installation/maintenance.md +7 -1
- package/docs/guide/platform/installation/setup.md +8 -7
- package/docs/guide/queues.md +1 -1
- package/docs/guide/server-routing.md +2 -2
- package/docs/guide/sse.md +1 -1
- package/docs/guide/ssg.md +17 -6
- package/docs/guide/storage.md +1 -1
- package/docs/guide/testing.md +9 -7
- package/docs/guide/type-safety.md +23 -21
- package/docs/integrations/cloudflare.md +6 -2
- package/docs/integrations/frameworks/nuxt.md +1 -1
- package/docs/integrations/hono.md +21 -0
- package/docs/integrations/nodejs-bun-deno.md +4 -4
- package/docs/reference/api/auth.md +22 -4
- package/docs/reference/api/database.md +2 -2
- package/docs/reference/api/pages.md +17 -13
- package/docs/reference/api/resources.md +1 -1
- package/docs/reference/api/rewrites.md +8 -4
- package/docs/reference/api.md +1 -1
- package/docs/reference/cli/deploy.md +4 -2
- package/docs/reference/cli/platform-config.md +3 -3
- package/docs/reference/cli/platform-users.md +58 -11
- package/docs/reference/cli.md +1 -1
- package/docs/reference/config.md +7 -3
- package/package.json +7 -7
- package/skills/void/SKILL.md +1 -1
- package/dist/client-D1Vz1Zep.mjs +0 -1
- package/dist/deploy-DMieisRu.mjs +0 -2
- package/dist/discover-1DJD4YXD.mjs +0 -1
- package/dist/gen-M5fNQKfH.mjs +0 -1
- package/dist/help-CItQVDL4.mjs +0 -1
- package/dist/load-user-env-CSwdofj0.mjs +0 -48
- package/dist/login-ZHsAm-I6.mjs +0 -1
- package/dist/migrate-BflbbZQK.mjs +0 -1
- package/dist/operator-cmd-D6qNuJ_z.mjs +0 -1
- package/dist/platform-args-DJvF1-kl.mjs +0 -1
- package/dist/prepare-a1_5usAn.mjs +0 -1
- package/dist/url-CuoEn0o3.mjs +0 -43
- package/dist/wrangler-R3kMdJfw.mjs +0 -1
|
@@ -21,11 +21,11 @@ void platform config plans default <plan-id>
|
|
|
21
21
|
void platform config plans sync
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Use `--plan` to preview changes and affected accounts; scripted mutations require `--yes`. Every command supports `--connection <slug-or-url>` and `--json`. `show` reports the effective limits, default, assignments, and pending account updates. `reset` restores a built-in plan's original limits and build instance size. Archived plans keep their existing accounts but cannot receive new assignments; change the default before archiving it. `remove` requires a replacement for a plan that has accounts or is the default. Changing the default affects
|
|
24
|
+
Use `--plan` to preview changes and affected accounts; scripted mutations require `--yes`. Every command supports `--connection <slug-or-url>` and `--json`. `show` reports the effective limits, default, assignments, and pending account and AI logging updates. `show <plan-id>` also reports the plan's AI Gateway logging default. `reset` restores a built-in plan's original limits and build instance size. Archived plans keep their existing accounts but cannot receive new assignments; change the default before archiving it. `remove` requires a replacement for a plan that has accounts or is the default. Changing the default affects new accounts, plus the AI Gateway logging of accounts whose plan is not in the catalog.
|
|
25
25
|
|
|
26
|
-
For `add` and `set`, `--file` reads a JSON object with optional `name`, `limits`, `buildInstanceType`, and boolean `allowShortSlugs`. `limits` is a partial object of nonnegative whole numbers; `0` means unlimited by the plan. Build timeouts remain capped at the platform maximum of 60 minutes; `0` uses that maximum. Omitted settings keep their current values or the copied plan's values. `buildInstanceType` is `standard-3` or `standard-4`. `allowShortSlugs` permits future assignments of project slugs of five characters or fewer; existing URLs remain available. Storage quotas are not editable. See [Plans and Limits](../../guide/platform/administration/plans.md) for supported limits and examples.
|
|
26
|
+
For `add` and `set`, `--file` reads a JSON object with optional `name`, `limits`, `buildInstanceType`, and boolean `allowShortSlugs`. `limits` is a partial object of nonnegative whole numbers; `0` means unlimited by the plan. Build timeouts remain capped at the platform maximum of 60 minutes; `0` uses that maximum. Omitted settings keep their current values or the copied plan's values. `buildInstanceType` is `standard-3` or `standard-4`. `allowShortSlugs` permits future assignments of project slugs of five characters or fewer; existing URLs remain available. `aiLogging` sets the plan's [AI Gateway logging](./platform-users.md#ai-gateway-logging) default: `off`, `metadata`, or `full`. `"inherit"` clears it; leaving it out keeps the current value. Storage quotas are not editable. See [Plans and Limits](../../guide/platform/administration/plans.md) for supported limits and examples.
|
|
27
27
|
|
|
28
|
-
An apply checks the preview's revision and rejects concurrent changes. Lower quotas can restrict accounts already above them; usage history and billing periods are preserved. The CLI continues account updates until complete. If an update fails or stops making progress, the configuration remains saved and the command exits unsuccessfully. Run `sync --yes` to continue before editing plans again. Inspect `show` and operator events after an uncertain request outcome.
|
|
28
|
+
An apply checks the preview's revision and rejects concurrent changes. Lower quotas can restrict accounts already above them; usage history and billing periods are preserved. The CLI continues account updates and AI logging publishing until complete, then prints how many projects received the AI logging default and when new requests are expected to follow it. If an update fails or stops making progress, the configuration remains saved and the command exits unsuccessfully. Run `sync --yes` to continue before editing plans again. Inspect `show` and operator events after an uncertain request outcome.
|
|
29
29
|
|
|
30
30
|
## Authentication configuration {#authentication-configuration}
|
|
31
31
|
|
|
@@ -23,7 +23,7 @@ void platform user restore <id>
|
|
|
23
23
|
void platform user delete <id>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Suspending a user blocks their applications, including scheduled jobs and queue consumers. While the account is suspended, each queue message is retried about once an hour, and each retry uses one of its queue's retries. Messages that run out of retries are dropped: after about 3 hours with the default of 3 retries, and at once for a queue with `maxRetries: 0`. Restore an account suspended by mistake promptly; queue delivery resumes within about an hour. Deleting a user also deletes their project resources. A plan change updates resource limits while preserving any administrator suspension.
|
|
26
|
+
Suspending a user blocks their applications, including scheduled jobs and queue consumers. While the account is suspended, each queue message is retried about once an hour, and each retry uses one of its queue's retries. Messages that run out of retries are dropped: after about 3 hours with the default of 3 retries, and at once for a queue with `maxRetries: 0`. Restore an account suspended by mistake promptly; queue delivery resumes within about an hour. Deleting a user also deletes their project resources. A plan change updates resource limits while preserving any administrator suspension. It also applies the new plan's [AI Gateway logging](#ai-gateway-logging) default to the account's projects, up to 100 projects per run. If the account has more, or if that step fails, the command says so; run the same plan change again until it completes. Each run continues where the last one stopped.
|
|
27
27
|
|
|
28
28
|
The last active administrator cannot be deleted or suspended. Both previews and
|
|
29
29
|
actual mutations enforce this rule, including in the browser admin UI. Allowed
|
|
@@ -51,24 +51,71 @@ If deployment reports that a project requires normalization, an operator can pre
|
|
|
51
51
|
|
|
52
52
|
### AI Gateway Logging
|
|
53
53
|
|
|
54
|
-
Administrators
|
|
54
|
+
Administrators choose how AI Gateway logs a project's AI requests. Apps cannot change this setting.
|
|
55
55
|
|
|
56
|
-
| Mode |
|
|
57
|
-
| ---------- |
|
|
58
|
-
| `inherit` |
|
|
59
|
-
| `off` |
|
|
60
|
-
| `metadata` |
|
|
61
|
-
| `full` |
|
|
56
|
+
| Mode | AI Gateway stores |
|
|
57
|
+
| ---------- | ------------------------------------------------------------------------------------- |
|
|
58
|
+
| `inherit` | Whatever the gateway is set to. This is the default. |
|
|
59
|
+
| `off` | No log entry. |
|
|
60
|
+
| `metadata` | Model, provider, status, token counts, cost, and duration, but no prompt or response. |
|
|
61
|
+
| `full` | A log entry with the prompt and response. |
|
|
62
|
+
|
|
63
|
+
`inherit` follows the installation gateway's own logging setting, which the platform does not read. A new installation creates its gateway with logging turned on, so `inherit` stores prompts and responses until you change the gateway in Cloudflare.
|
|
64
|
+
|
|
65
|
+
Each project uses the first setting that applies:
|
|
66
|
+
|
|
67
|
+
1. The project's own setting, from `void platform project ai-logging`.
|
|
68
|
+
2. The default of the owner's plan. See [Plans and Limits](../../guide/platform/administration/plans.md#ai-gateway-logging). An account whose plan is not in the catalog uses the default plan's setting.
|
|
69
|
+
3. `inherit`.
|
|
70
|
+
|
|
71
|
+
Preview a change, then apply it:
|
|
62
72
|
|
|
63
73
|
```sh
|
|
64
74
|
void platform project ai-logging <project-id> metadata --plan
|
|
65
75
|
void platform project ai-logging <project-id> metadata --yes
|
|
66
|
-
void platform project show <project-id> --json
|
|
67
76
|
```
|
|
68
77
|
|
|
69
|
-
|
|
78
|
+
The preview shows the current and new setting. The result names the setting, where it comes from, and when new requests are expected to follow it:
|
|
79
|
+
|
|
80
|
+
```txt
|
|
81
|
+
AI logging for <project-id>: metadata (set on project; plan "pro" default: inherit)
|
|
82
|
+
New AI requests are expected to follow it by 14:03:20 UTC (normally within 2 minutes).
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Set the project back to `inherit` to remove its own setting and use the plan default again. Changes apply to new requests without redeploying.
|
|
86
|
+
|
|
87
|
+
`void platform project show <project-id>` reports the setting and whether it is applied:
|
|
88
|
+
|
|
89
|
+
```txt
|
|
90
|
+
AI Gateway logging: metadata (from plan "pro") — applied
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
| `state` | Meaning |
|
|
94
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
95
|
+
| `applied` | New AI requests follow the setting. |
|
|
96
|
+
| `pending` | The setting is published. New requests are expected to follow it by the time shown. |
|
|
97
|
+
| `pending_plan_publish` | The plan default is still being published. Run `void platform config plans sync --yes`, or repeat the account's `user plan` change, to continue. |
|
|
98
|
+
| `drift` | The published setting differs from the saved one. An hourly check repairs it; to fix a project setting now, run `project ai-logging` again. |
|
|
99
|
+
| `unknown` | The published setting could not be read. Check again shortly. |
|
|
100
|
+
|
|
101
|
+
`show` prints the state in words, such as `pending (expected by 14:03:20 UTC)`. With `--json`, `aiLogging` holds `mode` (the project's own setting, or `inherit`), `planId`, `planKnown`, `defaultPlanId`, `planMode`, `effective`, `source` (`project`, `plan`, or `gateway`), `published`, `publishedAt`, and `state`.
|
|
102
|
+
|
|
103
|
+
#### What the Setting Covers
|
|
104
|
+
|
|
105
|
+
When an administrator sets a project's AI logging to `off` or `metadata`, the command prints the time by which new requests are expected to follow it (normally within 2 minutes). `void platform project show <project-id>` reports `applied` once that time has passed and the setting is published. From then on, for every new AI request the platform runs for that project (Workers AI calls, Markdown conversion and provider calls, from deployed Workers and from `void dev`), AI Gateway stores:
|
|
106
|
+
|
|
107
|
+
- `off`: no log entry.
|
|
108
|
+
- `metadata`: model, provider, status, token counts, cost and duration, but no prompt or response.
|
|
109
|
+
|
|
110
|
+
A plan default applies to a project once the plan change reports "AI logging published", then normally within 2 minutes.
|
|
111
|
+
|
|
112
|
+
If the platform cannot read the published setting, it refuses the AI request with status 503. `ai_logging_policy_unavailable` is temporary; the app can retry. `ai_logging_policy_invalid` means the published value is not valid; set the project's AI logging again. Until a change is published, the project keeps its previous behavior. `show` reports this as `pending_plan_publish` (a plan default not yet published to the project) or `drift` (a published setting that differs from the saved one). `pending` means the change is already published and is still reaching every location. On a new installation the previous behavior is full logging.
|
|
113
|
+
|
|
114
|
+
Not covered: requests already running, logs stored earlier, separately configured Logpush exports, billing details that Cloudflare always keeps for Unified Billing requests, and log retention, which Cloudflare sets per gateway. AI usage limits still apply in every mode. See [Cloudflare logging controls](https://developers.cloudflare.com/ai-gateway/observability/logging/).
|
|
115
|
+
|
|
116
|
+
If the command fails with `ai_logging_publish_failed`, this change was not saved; the message names the project setting that is still saved. With `ai_logging_publish_pending`, the setting was saved but not published, and the project keeps its previous behavior until it is. In both cases, run the same command again. A saved setting that is not published yet goes live at the next hourly repair even if you do not retry, so to cancel a pending change, set the previous value again.
|
|
70
117
|
|
|
71
|
-
|
|
118
|
+
Project settings need platform 1.8.0 or later. On an older platform, the CLI stops with "This platform does not support AI logging policies. Run `void platform upgrade`."
|
|
72
119
|
|
|
73
120
|
## Signup Access {#operator-signup}
|
|
74
121
|
|
package/docs/reference/cli.md
CHANGED
|
@@ -34,7 +34,7 @@ Use this page as a command reference. If you are setting up a project for the fi
|
|
|
34
34
|
|
|
35
35
|
## Cheat Sheet {#cheat-sheet}
|
|
36
36
|
|
|
37
|
-
Platform administrators can also
|
|
37
|
+
Platform administrators can also choose AI Gateway logging [per project](./cli/platform-users.md#ai-gateway-logging) with `void platform project ai-logging`, or [per plan](../guide/platform/administration/plans.md#ai-gateway-logging) with `void platform config plans`.
|
|
38
38
|
|
|
39
39
|
| Command | Purpose |
|
|
40
40
|
| --------------------------------- | ----------------------------------------------------------------------------- |
|
package/docs/reference/config.md
CHANGED
|
@@ -44,6 +44,8 @@ export default defineConfig({
|
|
|
44
44
|
|
|
45
45
|
TypeScript provides editor completion and checks. Void validates the config again when it runs, including values computed at runtime.
|
|
46
46
|
|
|
47
|
+
Use relative imports or package names inside `void.config.ts`. TypeScript path aliases such as `@/lib/theme` are not supported.
|
|
48
|
+
|
|
47
49
|
The shorter JSON fragments below show individual fields to place inside `defineConfig({ ... })`.
|
|
48
50
|
|
|
49
51
|
## Fields
|
|
@@ -381,7 +383,7 @@ routing: {
|
|
|
381
383
|
|
|
382
384
|
#### `routing.trailingSlash`
|
|
383
385
|
|
|
384
|
-
|
|
386
|
+
Give Pages URLs a trailing slash and prerender them as directory indexes. For example, `/posts/` produces `posts/index.html`; `/posts` redirects to `/posts/`.
|
|
385
387
|
|
|
386
388
|
```ts
|
|
387
389
|
routing: {
|
|
@@ -389,11 +391,11 @@ routing: {
|
|
|
389
391
|
}
|
|
390
392
|
```
|
|
391
393
|
|
|
392
|
-
See [Static Site Generation](../guide/ssg.md#trailing-slashes-and-directory-indexes) for hosting details.
|
|
394
|
+
The default is `false`, which writes `posts.html`. API routes keep their URLs, and third-party frameworks use their own routing settings. See [Static Site Generation](../guide/ssg.md#trailing-slashes-and-directory-indexes) for hosting details.
|
|
393
395
|
|
|
394
396
|
#### `routing.typedRoutes`
|
|
395
397
|
|
|
396
|
-
|
|
398
|
+
Check URL strings against your app's routes in links, router methods, redirects, rewrites, island forms, cache revalidation, and stream clients. This changes TypeScript checks only; navigation at runtime stays the same.
|
|
397
399
|
|
|
398
400
|
```ts
|
|
399
401
|
routing: {
|
|
@@ -401,6 +403,8 @@ routing: {
|
|
|
401
403
|
}
|
|
402
404
|
```
|
|
403
405
|
|
|
406
|
+
The default is `false`; `void init` enables it for new apps. See [Checked URL strings](../guide/type-safety#checked-url-strings) for accepted URLs and casts for values you validate at runtime. To check `routing.prerender`, [annotate its paths](#routing-prerender).
|
|
407
|
+
|
|
404
408
|
#### `routing.headers`
|
|
405
409
|
|
|
406
410
|
Custom response headers. Keys are URL patterns, values are arrays of `"Name: value"` strings. See [Custom Headers](../guide/edge/headers) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "void",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Full-stack framework and deployment CLI for Cloudflare Workers, powered by Vite.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -352,11 +352,11 @@
|
|
|
352
352
|
"@cloudflare/workers-types": "^5.20261110.1",
|
|
353
353
|
"@cloudflare/workers-utils": "^0.53.1",
|
|
354
354
|
"@napi-rs/keyring": "^2.1.2",
|
|
355
|
-
"@void/deploy-cloudflare": "1.
|
|
356
|
-
"@void/deploy-core": "1.
|
|
357
|
-
"@void/edge": "1.
|
|
358
|
-
"@void/isr": "1.
|
|
359
|
-
"@void/platform": "1.
|
|
355
|
+
"@void/deploy-cloudflare": "1.9.1",
|
|
356
|
+
"@void/deploy-core": "1.9.1",
|
|
357
|
+
"@void/edge": "1.9.1",
|
|
358
|
+
"@void/isr": "1.9.1",
|
|
359
|
+
"@void/platform": "1.9.1",
|
|
360
360
|
"better-auth": "^1.7.20",
|
|
361
361
|
"better-sqlite3": "^13.0.3",
|
|
362
362
|
"blake3-jit": "^1.1.0",
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"zod": "^4.6.7"
|
|
410
410
|
},
|
|
411
411
|
"peerDependencies": {
|
|
412
|
-
"@void/md": "1.
|
|
412
|
+
"@void/md": "1.9.1",
|
|
413
413
|
"arktype": ">=2.0.0",
|
|
414
414
|
"valibot": ">=1.0.0-beta.7",
|
|
415
415
|
"vite": "^8.0.0",
|
package/skills/void/SKILL.md
CHANGED
|
@@ -45,7 +45,7 @@ Use `void deploy --skip-migrations` when database migrations run separately; it
|
|
|
45
45
|
| Pages mode, loader/action, forms, layouts | `docs/guide/pages-routing/*.md`, `docs/guide/type-safety.md` |
|
|
46
46
|
| Database and migrations | `docs/guide/database.md`, `docs/guide/type-safety.md` |
|
|
47
47
|
| Typed fetch and end-to-end typing | `docs/guide/typed-fetch.md`, `docs/guide/type-safety.md` |
|
|
48
|
-
| Authentication | `docs/guide/auth.md`, `docs/guide/env-vars.md`
|
|
48
|
+
| Authentication | `docs/guide/auth.md`, `docs/reference/api/auth.md`, `docs/guide/env-vars.md` |
|
|
49
49
|
| Cloudflare runtime bindings and config | `docs/integrations/cloudflare.md`, `docs/reference/config.md`, `docs/guide/env-vars.md` |
|
|
50
50
|
| AI inference (Workers AI, providers) | `docs/guide/ai.md` |
|
|
51
51
|
| Platform AI logging policy | `docs/reference/cli/platform-users.md#ai-gateway-logging` |
|
package/dist/client-D1Vz1Zep.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
package/dist/deploy-DMieisRu.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
|
package/dist/gen-M5fNQKfH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runGenCommand } from "./gen-upKJChvd.mjs";
|
package/dist/help-CItQVDL4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as printHelpPage } from "./help-TPCjTu6e.mjs";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { pathToFileURL } from "node:url";
|
|
2
|
-
// src/host/load-user-env.ts
|
|
3
|
-
/**
|
|
4
|
-
* Loader for the user's `env.ts`.
|
|
5
|
-
*
|
|
6
|
-
* Uses Node's native `import()` (type-stripping is on by default in the
|
|
7
|
-
* supported Node version), so only relative imports and bare package
|
|
8
|
-
* specifiers resolve. tsconfig path aliases (`@/foo`, `~/foo`) are NOT
|
|
9
|
-
* supported — if the user writes one, we detect the resulting resolution
|
|
10
|
-
* error and re-throw with guidance pointing at the offending specifier.
|
|
11
|
-
*
|
|
12
|
-
* Side-effect contract: loading the file evaluates the user's `defineEnv`
|
|
13
|
-
* call, which registers the schema in the singleton state in
|
|
14
|
-
* `runtime/env-public.ts`. Callers read the result from there.
|
|
15
|
-
*
|
|
16
|
-
* Node-only (lives under `host/`). Must not be imported from anything
|
|
17
|
-
* that ships in worker bundles.
|
|
18
|
-
*/
|
|
19
|
-
let loadCounter = 0;
|
|
20
|
-
/** Returns the failed specifier from a Node module-resolution error, or `null`. */
|
|
21
|
-
function extractFailedSpecifier(err) {
|
|
22
|
-
if (!(err instanceof Error)) return null;
|
|
23
|
-
const code = err.code;
|
|
24
|
-
if (code !== "ERR_MODULE_NOT_FOUND" && code !== "ERR_PACKAGE_PATH_NOT_EXPORTED") return null;
|
|
25
|
-
const match = /Cannot find (?:package|module) '([^']+)'/.exec(err.message);
|
|
26
|
-
return match ? match[1] ?? null : null;
|
|
27
|
-
}
|
|
28
|
-
/** A specifier is alias-shaped if it isn't relative, absolute, a node: URL, or a valid bare package name. */
|
|
29
|
-
function looksLikeAlias(specifier) {
|
|
30
|
-
if (specifier.startsWith("./") || specifier.startsWith("../") || specifier.startsWith("/") || specifier.startsWith("node:") || specifier.startsWith("file:")) return false;
|
|
31
|
-
if (specifier.startsWith("@")) return !/^@[^/]+\/[^/]+/.test(specifier);
|
|
32
|
-
return specifier.startsWith("~") || specifier.startsWith("#");
|
|
33
|
-
}
|
|
34
|
-
async function loadUserEnvFile(envFile) {
|
|
35
|
-
const url = pathToFileURL(envFile).href + `?t=${Date.now()}-${++loadCounter}`;
|
|
36
|
-
try {
|
|
37
|
-
await import(
|
|
38
|
-
/* @vite-ignore */
|
|
39
|
-
url
|
|
40
|
-
);
|
|
41
|
-
} catch (err) {
|
|
42
|
-
const specifier = extractFailedSpecifier(err);
|
|
43
|
-
const base = `env: Failed to load '${envFile}': '${err.message}'.`;
|
|
44
|
-
if (specifier && looksLikeAlias(specifier)) throw new Error(`${base}\n\nHint: '${specifier}' looks like a tsconfig path alias. env.ts is loaded directly by Node and does not resolve tsconfig "paths" — use a relative import (e.g. "./shared/...") instead.`);
|
|
45
|
-
throw new Error(base);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export { loadUserEnvFile as t };
|
package/dist/login-ZHsAm-I6.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as selectPlatformLoginMethod } from "./login-AfcSGSmE.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runMigrateCommand } from "./migrate-BNAh6m_C.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as runOperatorCommand } from "./operator-cmd-C-viB7Si.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as parsePlatformArgs } from "./platform-args-CiYeZmc5.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as prepareProject } from "./prepare-BDKWZgfL.mjs";
|
package/dist/url-CuoEn0o3.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// src/pages/url.ts
|
|
2
|
-
function isSameOrigin(url, origin) {
|
|
3
|
-
if (url.protocol === "capacitor:") {
|
|
4
|
-
const current = new URL(origin);
|
|
5
|
-
return current.protocol === "capacitor:" && url.host !== "" && url.host === current.host;
|
|
6
|
-
}
|
|
7
|
-
return url.origin === origin;
|
|
8
|
-
}
|
|
9
|
-
function isHexDigit(char) {
|
|
10
|
-
return char !== void 0 && (char >= "0" && char <= "9" || char >= "a" && char <= "f" || char >= "A" && char <= "F");
|
|
11
|
-
}
|
|
12
|
-
function tryDecodeURI(text) {
|
|
13
|
-
try {
|
|
14
|
-
return decodeURI(text);
|
|
15
|
-
} catch {
|
|
16
|
-
return text;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The path a page is matched on, decoded the way the server (Hono's getPath)
|
|
21
|
-
* decodes it: `/caf%C3%A9` becomes `/café`, while `%25`, reserved escapes such
|
|
22
|
-
* as `%2F` and malformed escapes stay encoded.
|
|
23
|
-
*/
|
|
24
|
-
function decodePagePath(path) {
|
|
25
|
-
if (!path.includes("%")) return path;
|
|
26
|
-
const escaped = path.split("%25").join("%2525");
|
|
27
|
-
try {
|
|
28
|
-
return decodeURI(escaped);
|
|
29
|
-
} catch {}
|
|
30
|
-
let decoded = "";
|
|
31
|
-
let index = 0;
|
|
32
|
-
while (index < escaped.length) {
|
|
33
|
-
let end = index;
|
|
34
|
-
while (escaped[end] === "%" && isHexDigit(escaped[end + 1]) && isHexDigit(escaped[end + 2])) end += 3;
|
|
35
|
-
if (end === index) decoded += escaped[index++];
|
|
36
|
-
else {
|
|
37
|
-
decoded += tryDecodeURI(escaped.slice(index, end));
|
|
38
|
-
index = end;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return decoded;
|
|
42
|
-
}
|
|
43
|
-
export { isSameOrigin as n, decodePagePath as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { b as readRootWranglerConfig } from "./wrangler-k40T7XTQ.mjs";
|