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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken, f as removeToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { n as runLoginCommand } from "./login-
|
|
3
|
+
import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
|
+
import { n as runLoginCommand } from "./login-DOE-MkeK.mjs";
|
|
5
5
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
6
6
|
import { execSync } from "node:child_process";
|
|
7
7
|
// src/cli/account-cmd.ts
|
|
8
8
|
async function runAccountCommand(root, args) {
|
|
9
9
|
switch (args.subcommand) {
|
|
10
10
|
case "login": return runLoginCommand(root);
|
|
11
|
-
case "link": return import("./auth-link-
|
|
11
|
+
case "link": return import("./auth-link-B1IynRW5.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
|
|
12
12
|
case "logout":
|
|
13
13
|
if (removeToken(root)) printSuccess("Logged out.");
|
|
14
14
|
else log.info("Not logged in.");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-
|
|
2
|
-
import { r as findVoidAuthConfig } from "./config-
|
|
3
|
-
import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-
|
|
1
|
+
import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-DZHmVe1f.mjs";
|
|
2
|
+
import { r as findVoidAuthConfig } from "./config-Do7gJI3T.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-CzFdJYNA.mjs";
|
|
4
4
|
import { a as join, i as isAbsolute, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
5
5
|
import { a as unwrapStaticExpression, i as staticLiteral, n as readStaticExports, o as bindingNames, t as mayExportAll } from "./static-exports-DFkzL-NX.mjs";
|
|
6
6
|
import { n as resourceNameWords } from "./resource-name-DlJ9QXzg.mjs";
|
|
7
7
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
8
|
-
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-
|
|
8
|
+
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
9
9
|
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
10
10
|
import { i as scanEmailHandlersSync } from "./email-BHY72ixO.mjs";
|
|
11
|
-
import { _ as isRouteEnabledForEnvironment, g as compareRouteSpecificity, n as scanPages, v as parseRouteFilename } from "./scan-
|
|
11
|
+
import { _ as isRouteEnabledForEnvironment, g as compareRouteSpecificity, n as scanPages, v as parseRouteFilename } from "./scan-4YOxDaw2.mjs";
|
|
12
12
|
import { n as globSync } from "./dist-BWNkVq50.mjs";
|
|
13
13
|
import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
|
|
14
14
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-
|
|
1
|
+
import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-3VVsflWZ.mjs";
|
|
2
2
|
// src/application-routing.ts
|
|
3
3
|
/** Complete route/page analysis using the same resource and handler inventories. */
|
|
4
4
|
async function completeApplicationAnalysis(analysis) {
|
|
@@ -71,5 +71,7 @@ declare function requireAuth<E extends Env & {
|
|
|
71
71
|
Variables: {
|
|
72
72
|
user: AuthUser | null;
|
|
73
73
|
};
|
|
74
|
-
}>(c: Context<E
|
|
74
|
+
}>(c: Context<E>, options?: {
|
|
75
|
+
throwRedirect?: string;
|
|
76
|
+
}): AuthUser;
|
|
75
77
|
export { InferAuthInstance as a, VoidAuthConfigContext as c, defineAuth as d, getAuth as f, requireAuth as h, AuthUser as i, VoidAuthTypes as l, getUser as m, AuthSession as n, InferAuthSession as o, getSession as p, AuthState as r, VoidAuthConfig as s, AuthInstance as t, authContext as u };
|
|
@@ -19,9 +19,15 @@ function getAuth(c) {
|
|
|
19
19
|
if (!auth) throw new Error("Better Auth is not available for this request. Enable auth in void.config.ts.");
|
|
20
20
|
return auth;
|
|
21
21
|
}
|
|
22
|
-
function requireAuth(c) {
|
|
22
|
+
function requireAuth(c, options) {
|
|
23
23
|
const user = c.get("user");
|
|
24
|
-
if (!user)
|
|
24
|
+
if (!user) {
|
|
25
|
+
if (options?.throwRedirect !== void 0) {
|
|
26
|
+
const status = c.req.method === "GET" || c.req.method === "HEAD" ? 302 : 303;
|
|
27
|
+
throw new HTTPException(status, { res: c.redirect(options.throwRedirect, status) });
|
|
28
|
+
}
|
|
29
|
+
throw new HTTPException(401, { message: "Unauthorized" });
|
|
30
|
+
}
|
|
25
31
|
return user;
|
|
26
32
|
}
|
|
27
33
|
export { getUser as a, getSession as i, defineAuth as n, requireAuth as o, getAuth as r, authContext as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as getApiUrl, c as getToken, m as savePlatformToken, p as runPlatformLogin, u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { r as selectPlatformLoginMethod } from "./login-
|
|
3
|
+
import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
|
+
import { r as selectPlatformLoginMethod } from "./login-DOE-MkeK.mjs";
|
|
5
5
|
import { l as formatUrl } from "./output-DNVILSz2.mjs";
|
|
6
|
-
import { t as discoverPlatform } from "./platform-cmd-
|
|
6
|
+
import { t as discoverPlatform } from "./platform-cmd-HS_FSthn.mjs";
|
|
7
7
|
// src/cli/auth-link.ts
|
|
8
8
|
async function runAuthLink(root, connectionId) {
|
|
9
9
|
const token = getToken(root);
|
|
@@ -39,11 +39,11 @@ async function chooseDestination(root, args, interactive) {
|
|
|
39
39
|
async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isTTY)) {
|
|
40
40
|
const destination = await chooseDestination(root, args, interactive);
|
|
41
41
|
if (destination.platform === "cloudflare") {
|
|
42
|
-
const { runCloudflareCommand } = await import("./cloudflare-cmd-
|
|
42
|
+
const { runCloudflareCommand } = await import("./cloudflare-cmd-BuuHUM4z.mjs");
|
|
43
43
|
await runCloudflareCommand(root, { subcommand: args.subcommand });
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const { runAccountCommand } = await import("./account-cmd-
|
|
46
|
+
const { runAccountCommand } = await import("./account-cmd-BEMOdwtl.mjs");
|
|
47
47
|
const subcommand = args.subcommand === "status" ? "whoami" : args.subcommand;
|
|
48
48
|
if (!destination.apiUrl) {
|
|
49
49
|
await runAccountCommand(root, { subcommand });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as getVoidAuthProviderSettingEnvNames, o as isVoidSocialAuthProvider, r as getVoidAuthProviderEnvNames } from "./providers-ZARwX2cL.mjs";
|
|
2
2
|
import { i as authDependentRequests, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "./static-asset-marker-DsQKz6lt.mjs";
|
|
3
|
-
import { t as authContext } from "./auth-
|
|
3
|
+
import { t as authContext } from "./auth-aMuFOZeI.mjs";
|
|
4
4
|
import { randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import { betterAuth } from "better-auth";
|
|
6
6
|
// src/runtime/better-auth-shared.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
|
|
2
|
-
import { r as AuthState, s as VoidAuthConfig } from "./auth-
|
|
2
|
+
import { r as AuthState, s as VoidAuthConfig } from "./auth-CV9kXHKe.mjs";
|
|
3
3
|
import { Context } from "hono";
|
|
4
4
|
import { BetterAuthOptions, betterAuth } from "better-auth";
|
|
5
5
|
import { DBFieldAttribute } from "better-auth/db";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
3
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
4
|
import { f as import_picocolors, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
3
|
+
import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
4
|
import { m as printSuccess, o as formatCount, r as createSpinner } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as confirm, H as outro, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
3
|
+
import { r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
4
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
// src/cli/cancel-deploy.ts
|
package/dist/cli/cli.mjs
CHANGED
|
@@ -84,5 +84,5 @@ const message = unsupportedRuntimeMessage(process.versions, process.execPath);
|
|
|
84
84
|
if (message) {
|
|
85
85
|
process.stderr.write(`${message}\n`);
|
|
86
86
|
process.exitCode = 1;
|
|
87
|
-
} else await import("../cli-main-
|
|
87
|
+
} else await import("../cli-main-CQRLxZAu.mjs");
|
|
88
88
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as findEnvFile } from "../env-types-
|
|
1
|
+
import { t as findEnvFile } from "../env-types-WEZw5D-r.mjs";
|
|
2
2
|
import { writeSync } from "node:fs";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
@@ -109,7 +109,7 @@ function emitResult(result) {
|
|
|
109
109
|
writeSync(RESULT_FD, JSON.stringify(result));
|
|
110
110
|
}
|
|
111
111
|
async function runFactsChild(root) {
|
|
112
|
-
const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-
|
|
112
|
+
const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-DKDcpxbt.mjs");
|
|
113
113
|
try {
|
|
114
114
|
emitResult({
|
|
115
115
|
kind: "ok",
|
|
@@ -128,7 +128,7 @@ async function runFactsChild(root) {
|
|
|
128
128
|
}
|
|
129
129
|
/** The parent already found the emitted config, so a read failure here fails closed. */
|
|
130
130
|
async function runValidateEmittedChild(root) {
|
|
131
|
-
const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-
|
|
131
|
+
const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-DKDcpxbt.mjs");
|
|
132
132
|
const emitted = readEmittedWorkerVars(root);
|
|
133
133
|
if (!emitted.ok) {
|
|
134
134
|
emitResult({
|
|
@@ -2,11 +2,11 @@ import { L as log } from "./dist-STQXl8ck.mjs";
|
|
|
2
2
|
import { n as getOwnVersion } from "./agents-DRo8gzni.mjs";
|
|
3
3
|
import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-zEwuGrEJ.mjs";
|
|
4
4
|
import { n as isD1Bookmark } from "./cf-command-values-Ccl-zRhl.mjs";
|
|
5
|
-
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "./help-
|
|
6
|
-
import { n as operatorGroups } from "./operator-args-
|
|
5
|
+
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "./help-Cgdcd-SG.mjs";
|
|
6
|
+
import { n as operatorGroups } from "./operator-args-BCCohcz3.mjs";
|
|
7
7
|
import { r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
8
8
|
import { f as import_picocolors, l as formatUrl } from "./output-DNVILSz2.mjs";
|
|
9
|
-
import { n as platformSubcommands, t as parsePlatformArgs } from "./platform-args-
|
|
9
|
+
import { n as platformSubcommands, t as parsePlatformArgs } from "./platform-args-DtpHS_75.mjs";
|
|
10
10
|
import { parseArgs } from "node:util";
|
|
11
11
|
// src/cli/account-args.ts
|
|
12
12
|
const accountSubcommands = [
|
|
@@ -1633,19 +1633,19 @@ const args = process.argv.slice(2);
|
|
|
1633
1633
|
const command = args[0];
|
|
1634
1634
|
const helpPath = getHelpPath(args);
|
|
1635
1635
|
const subcommandGroups = {
|
|
1636
|
-
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-
|
|
1637
|
-
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-
|
|
1638
|
-
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-
|
|
1639
|
-
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-
|
|
1640
|
-
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-
|
|
1641
|
-
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-
|
|
1642
|
-
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-
|
|
1643
|
-
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-
|
|
1644
|
-
db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("./db-
|
|
1645
|
-
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-
|
|
1646
|
-
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-
|
|
1647
|
-
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-
|
|
1648
|
-
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-
|
|
1636
|
+
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-DVaWJdRB.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed))),
|
|
1637
|
+
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-BEMOdwtl.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed))),
|
|
1638
|
+
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-BLy5uCa-.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed))),
|
|
1639
|
+
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-BuuHUM4z.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed))),
|
|
1640
|
+
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-TQKAOTMV.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed))),
|
|
1641
|
+
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-BSf7dgg_.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
|
|
1642
|
+
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-BTIdyUVk.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
|
|
1643
|
+
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-DvrS-I0U.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
|
|
1644
|
+
db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("./db-DEpDeDsi.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
|
|
1645
|
+
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-D7vORwpn.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
|
|
1646
|
+
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-DmEeVEs4.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
|
|
1647
|
+
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-D-zs6VQr.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed))),
|
|
1648
|
+
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-Dq8tdqQG.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)))
|
|
1649
1649
|
};
|
|
1650
1650
|
if (helpPath) {
|
|
1651
1651
|
if (helpPath.length === 0) printGlobalHelp();
|
|
@@ -1664,7 +1664,7 @@ if (helpPath) {
|
|
|
1664
1664
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1665
1665
|
process.exit(1);
|
|
1666
1666
|
}
|
|
1667
|
-
import("./deploy-
|
|
1667
|
+
import("./deploy-Dr_Qamzw.mjs").then(({ runDeploy }) => {
|
|
1668
1668
|
runDeploy(root, deployArgs).catch((err) => {
|
|
1669
1669
|
log.error(formatCloudflareUserMessage(err.message ?? String(err)));
|
|
1670
1670
|
process.exit(1);
|
|
@@ -1672,14 +1672,14 @@ if (helpPath) {
|
|
|
1672
1672
|
});
|
|
1673
1673
|
} else if (command === "connect") (async () => {
|
|
1674
1674
|
const parsed = parseConnectArgs(args.slice(1));
|
|
1675
|
-
const { runConnectCommand } = await import("./connect-
|
|
1675
|
+
const { runConnectCommand } = await import("./connect-4uImOwut.mjs");
|
|
1676
1676
|
await runConnectCommand(process.cwd(), parsed);
|
|
1677
1677
|
})().catch((err) => {
|
|
1678
1678
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1679
1679
|
process.exit(1);
|
|
1680
1680
|
});
|
|
1681
1681
|
else if (command && Object.hasOwn(subcommandGroups, command)) subcommandGroups[command]();
|
|
1682
|
-
else if (command === "info") import("./info-
|
|
1682
|
+
else if (command === "info") import("./info-BbxQ34kk.mjs").then(async ({ runInfoCommand }) => {
|
|
1683
1683
|
try {
|
|
1684
1684
|
await runInfoCommand(process.cwd(), parseInfoArgs(args.slice(1)));
|
|
1685
1685
|
} catch (err) {
|
|
@@ -1700,7 +1700,7 @@ else if (command === "prepare") {
|
|
|
1700
1700
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1701
1701
|
process.exit(1);
|
|
1702
1702
|
}
|
|
1703
|
-
import("./prepare-
|
|
1703
|
+
import("./prepare-DMk8NAO-.mjs").then(({ runPrepareCommand }) => {
|
|
1704
1704
|
runPrepareCommand(root).catch((err) => {
|
|
1705
1705
|
log.error(formatCloudflareUserMessage(err.message ?? String(err)));
|
|
1706
1706
|
process.exit(1);
|
|
@@ -1708,7 +1708,7 @@ else if (command === "prepare") {
|
|
|
1708
1708
|
});
|
|
1709
1709
|
} else if (command === "init") {
|
|
1710
1710
|
const root = process.cwd();
|
|
1711
|
-
import("./init-
|
|
1711
|
+
import("./init-zyRj3QRw.mjs").then(({ runInitCommand, parseInitArgs }) => {
|
|
1712
1712
|
let initArgs;
|
|
1713
1713
|
try {
|
|
1714
1714
|
initArgs = parseInitArgs(args.slice(1));
|
|
@@ -1726,7 +1726,7 @@ else if (command === "prepare") {
|
|
|
1726
1726
|
log.error("migrate: This command takes no arguments.");
|
|
1727
1727
|
process.exit(1);
|
|
1728
1728
|
}
|
|
1729
|
-
import("./migrate-
|
|
1729
|
+
import("./migrate-BYhoIK9R.mjs").then(({ runMigrateCommand }) => {
|
|
1730
1730
|
runMigrateCommand(process.cwd()).catch((err) => {
|
|
1731
1731
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1732
1732
|
process.exit(1);
|
|
@@ -1848,32 +1848,32 @@ else if (command) {
|
|
|
1848
1848
|
if (Object.hasOwn(subcommandGroups, cmd)) return subcommandGroups[cmd]();
|
|
1849
1849
|
switch (cmd) {
|
|
1850
1850
|
case "connect": {
|
|
1851
|
-
const { runConnectCommand } = await import("./connect-
|
|
1851
|
+
const { runConnectCommand } = await import("./connect-4uImOwut.mjs");
|
|
1852
1852
|
await runConnectCommand(root, parseConnectArgs([]));
|
|
1853
1853
|
return;
|
|
1854
1854
|
}
|
|
1855
1855
|
case "init": {
|
|
1856
|
-
const { runInitCommand, parseInitArgs } = await import("./init-
|
|
1856
|
+
const { runInitCommand, parseInitArgs } = await import("./init-zyRj3QRw.mjs");
|
|
1857
1857
|
await runInitCommand(root, parseInitArgs([]));
|
|
1858
1858
|
return;
|
|
1859
1859
|
}
|
|
1860
1860
|
case "migrate": {
|
|
1861
|
-
const { runMigrateCommand } = await import("./migrate-
|
|
1861
|
+
const { runMigrateCommand } = await import("./migrate-BYhoIK9R.mjs");
|
|
1862
1862
|
await runMigrateCommand(root);
|
|
1863
1863
|
return;
|
|
1864
1864
|
}
|
|
1865
1865
|
case "deploy": {
|
|
1866
|
-
const { runDeploy } = await import("./deploy-
|
|
1866
|
+
const { runDeploy } = await import("./deploy-Dr_Qamzw.mjs");
|
|
1867
1867
|
await runDeploy(root);
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
1870
1870
|
case "info": {
|
|
1871
|
-
const { runInfoCommand } = await import("./info-
|
|
1871
|
+
const { runInfoCommand } = await import("./info-BbxQ34kk.mjs");
|
|
1872
1872
|
await runInfoCommand(root, parseInfoArgs([]));
|
|
1873
1873
|
return;
|
|
1874
1874
|
}
|
|
1875
1875
|
case "prepare": {
|
|
1876
|
-
const { runPrepareCommand } = await import("./prepare-
|
|
1876
|
+
const { runPrepareCommand } = await import("./prepare-DMk8NAO-.mjs");
|
|
1877
1877
|
await runPrepareCommand(root);
|
|
1878
1878
|
return;
|
|
1879
1879
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as PlatformClient, s as isOlderPlatformVersion } from "./client-D6w5x7hM.mjs";
|
|
@@ -94,7 +94,7 @@ function readCliVersion() {
|
|
|
94
94
|
}
|
|
95
95
|
const VOID_CLI_VERSION = readCliVersion();
|
|
96
96
|
/** The oldest Void platform release this CLI supports. */
|
|
97
|
-
const MIN_PLATFORM_VERSION = "1.
|
|
97
|
+
const MIN_PLATFORM_VERSION = "1.9.0";
|
|
98
98
|
const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
|
|
99
99
|
/**
|
|
100
100
|
* Discovery probes keyed by platform base URL. Every outcome (pass,
|
|
@@ -103,12 +103,12 @@ const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+
|
|
|
103
103
|
*/
|
|
104
104
|
const platformVersionProbes = /* @__PURE__ */ new Map();
|
|
105
105
|
/**
|
|
106
|
-
* Returns whether `version` is older than
|
|
107
|
-
* it is not a release version. A prerelease sorts before its release.
|
|
106
|
+
* Returns whether `version` is older than the release `minimumVersion`, or null
|
|
107
|
+
* when it is not a release version. A prerelease sorts before its release.
|
|
108
108
|
*/
|
|
109
|
-
function
|
|
109
|
+
function isOlderPlatformVersion(version, minimumVersion) {
|
|
110
110
|
const actual = RELEASE_VERSION.exec(version);
|
|
111
|
-
const minimum = RELEASE_VERSION.exec(
|
|
111
|
+
const minimum = RELEASE_VERSION.exec(minimumVersion);
|
|
112
112
|
if (!actual) return null;
|
|
113
113
|
for (const part of [
|
|
114
114
|
1,
|
|
@@ -125,7 +125,7 @@ function assertSupportedPlatform(apiUrl, probe) {
|
|
|
125
125
|
if (probe.kind === "unknown") return;
|
|
126
126
|
if (probe.kind === "missing") throw new Error(`The Void platform at ${apiUrl} does not report its version, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
127
127
|
const { version } = probe;
|
|
128
|
-
if (version === "hosted" ||
|
|
128
|
+
if (version === "hosted" || isOlderPlatformVersion(version, "1.9.0") !== true) return;
|
|
129
129
|
throw new Error(`The Void platform at ${apiUrl} runs version ${version}, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
@@ -1071,4 +1071,4 @@ var PlatformClient = class {
|
|
|
1071
1071
|
function sleep(ms) {
|
|
1072
1072
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1073
1073
|
}
|
|
1074
|
-
export { isExpiredTokenError as a,
|
|
1074
|
+
export { isExpiredTokenError as a, parsePlatformErrorBody as c, isCliOutdatedError as i, platformErrorMessage as l, PlatformApiError as n, isHeadersTimeoutError as o, PlatformClient as r, isOlderPlatformVersion as s, MIN_PLATFORM_VERSION as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-
|
|
1
|
+
import { i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation, t as createCloudflareProcessRunner } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
// src/cli/cloudflare-auth.ts
|
|
4
4
|
var CloudflareAuthenticationError = class extends Error {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-
|
|
4
|
-
import { i as isCleanCloudflareExit } from "./cloudflare-process-
|
|
3
|
+
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-pNvmT6kL.mjs";
|
|
4
|
+
import { i as isCleanCloudflareExit } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
5
5
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
6
|
-
import { b as readRootWranglerConfig } from "./wrangler-
|
|
6
|
+
import { b as readRootWranglerConfig } from "./wrangler-B1gkT_wC.mjs";
|
|
7
7
|
// src/cli/cloudflare-cmd.ts
|
|
8
8
|
async function runCloudflareCommand(root, args) {
|
|
9
9
|
const runWrangler = createBundledCloudflareAuthRunner(root);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
3
|
-
import "./project-paths-
|
|
4
|
-
import { p as readConfig } from "./config-
|
|
3
|
+
import "./project-paths-CUhCPMpK.mjs";
|
|
4
|
+
import { p as readConfig } from "./config-CzFdJYNA.mjs";
|
|
5
5
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
6
6
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
7
7
|
import { isRecord } from "@void/deploy-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-
|
|
4
|
-
import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-
|
|
3
|
+
import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-pNvmT6kL.mjs";
|
|
4
|
+
import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-B1gkT_wC.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
// src/cli/cloudflare-connect.ts
|
|
7
7
|
async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY)) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-
|
|
3
|
-
import { t as createCloudflareProcessRunner } from "./cloudflare-process-
|
|
4
|
-
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-
|
|
2
|
+
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-PxbinLLE.mjs";
|
|
3
|
+
import { t as createCloudflareProcessRunner } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
4
|
+
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-BpKBs_KR.mjs";
|
|
5
5
|
import { u as getErrorMessage } from "./output-DNVILSz2.mjs";
|
|
6
|
-
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-
|
|
7
|
-
import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-
|
|
6
|
+
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-bgQTi5QZ.mjs";
|
|
7
|
+
import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-B1gkT_wC.mjs";
|
|
8
8
|
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { tmpdir } from "node:os";
|
|
10
10
|
import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-
|
|
1
|
+
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-G5AObYzF.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
|
|
2
2
|
import { a as join, c as resolve, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
+
import { n as readProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
4
4
|
import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-DvS6IFRv.mjs";
|
|
5
|
-
import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-
|
|
5
|
+
import { i as hasSsrEntry, r as getSsrServerEntryPath } from "./entry-DMgR7XOf.mjs";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { spawnSync } from "node:child_process";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-
|
|
1
|
+
export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-DlWQ_hIJ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
|
|
2
2
|
import "./types-CKWnYgfy.mjs";
|
|
3
|
-
import { t as HeadConfig } from "./head-
|
|
3
|
+
import { t as HeadConfig } from "./head-CVO92KEx.mjs";
|
|
4
4
|
import { AssetConfig } from "@void/deploy-core";
|
|
5
5
|
import { RewriteDestination } from "void/routes";
|
|
6
6
|
type SandboxInstanceType = "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isVoidAuthProvider, t as VOID_AUTH_PROVIDERS } from "./providers-ZARwX2cL.mjs";
|
|
2
|
-
import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-
|
|
2
|
+
import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-CUhCPMpK.mjs";
|
|
3
3
|
import { n as MimeError, o as parseAddress } from "./mime-CtP6-qAF.mjs";
|
|
4
4
|
import { isRecord } from "@void/deploy-core";
|
|
5
5
|
// src/config.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { c as getDatabaseCasing, p as readConfig } from "./config-
|
|
3
|
-
import { i as resolveProjectPaths } from "./project-paths-
|
|
4
|
-
import { n as schemaSpecifier, t as discoverSchema } from "./discover-
|
|
2
|
+
import { c as getDatabaseCasing, p as readConfig } from "./config-CzFdJYNA.mjs";
|
|
3
|
+
import { i as resolveProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
4
|
+
import { n as schemaSpecifier, t as discoverSchema } from "./discover-Vd18lHsj.mjs";
|
|
5
5
|
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { tmpdir } from "node:os";
|
|
7
7
|
// src/drizzle/config.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as discoverSchema } from "./discover-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
1
|
+
import { t as discoverSchema } from "./discover-Vd18lHsj.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isRunnableDevEnvironment, parseSync, runnerImport } from "vite";
|
|
5
5
|
// src/auth/config.ts
|
package/dist/config-entry.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VoidConfig } from "./config-
|
|
1
|
+
import { t as VoidConfig } from "./config-CCWVY7DY.mjs";
|
|
2
2
|
/** Define a typed Void project configuration without loading the Vite plugin. */
|
|
3
3
|
export declare function defineConfig<const T extends VoidConfig>(config: T): T;
|
|
4
4
|
export type { VoidConfig };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { d as readPlatformToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
4
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
5
|
-
import { t as promptForLoginToken } from "./login-
|
|
3
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-D6w5x7hM.mjs";
|
|
4
|
+
import { t as connectCloudflare } from "./cloudflare-connect-D1QOosLd.mjs";
|
|
5
|
+
import { t as promptForLoginToken } from "./login-DOE-MkeK.mjs";
|
|
6
6
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
7
|
-
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-
|
|
7
|
+
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-HS_FSthn.mjs";
|
|
8
8
|
import { c as normalizePlatformApiUrl, s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
9
9
|
import { c as writeDeploymentPlatform, l as writePlatformSelection, n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
|
|
10
10
|
// src/cli/connect.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
|
-
import { n as PlatformApiError } from "./client-
|
|
2
|
+
import { n as PlatformApiError } from "./client-D6w5x7hM.mjs";
|
|
3
3
|
import { f as import_picocolors, h as sanitizeTerminalText } from "./output-DNVILSz2.mjs";
|
|
4
4
|
import { t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
5
5
|
import { s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createProjectWithSlugRetry } from "./create-project-
|
|
1
|
+
export { t as createProjectWithSlugRetry } from "./create-project-BaUzZnLZ.mjs";
|