void 0.25.0 → 0.26.0
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-DcR1ywt8.mjs → account-cmd-CDry3B5V.mjs} +4 -4
- package/dist/{application-analysis-BVsVqc11.mjs → application-analysis-DC2yPvzY.mjs} +1 -1
- package/dist/{application-routing-B7QEjqSR.mjs → application-routing-C9khgLiS.mjs} +1 -1
- package/dist/{auth-CdgZ9uag.mjs → auth-B60QDbjg.mjs} +1 -1
- package/dist/{auth-7wuZ5ob8.mjs → auth-D52yG7hl.mjs} +3 -3
- package/dist/{auth-link-Z6E5DYvM.mjs → auth-link-DjeOptYi.mjs} +4 -4
- package/dist/{auth-router-BdM4avI8.mjs → auth-router-BRxIuqDi.mjs} +5 -5
- package/dist/{build-cmd-CEE7D-hM.mjs → build-cmd-Ce3C8huo.mjs} +4 -4
- package/dist/{cache-TcZnBLtH.mjs → cache-CS8Yxr5a.mjs} +4 -4
- package/dist/{cancel-deploy-CYoZmcmR.mjs → cancel-deploy-mZsD88Xa.mjs} +3 -3
- package/dist/{cf-access-AHKBzmuu.mjs → cf-access-YTlqvAsk.mjs} +1 -1
- package/dist/cli/cli.mjs +40 -40
- package/dist/cli/cloudflare-operation-process.mjs +1 -1
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/client-BxVixJBI.mjs +2 -0
- package/dist/{client-RsPo8wsP.mjs → client-mC-dFGDD.mjs} +5 -5
- package/dist/{cloudflare-operations-CjaV4lZi.mjs → cloudflare-operations-DYa3coIk.mjs} +1 -1
- package/dist/{cloudflare-operations-BhbK6yTq.mjs → cloudflare-operations-DoQrVHAt.mjs} +1 -1
- package/dist/{connect-DCvUmPXY.mjs → connect-H6EvP62X.mjs} +6 -6
- package/dist/{create-project-eAPgYq35.mjs → create-project-B2kk9Q0o.mjs} +4 -4
- package/dist/{create-project-C734I-Mu.mjs → create-project-Dbb4uiN-.mjs} +1 -1
- package/dist/{db-C07GEdKF.mjs → db-DpCKZto0.mjs} +21 -21
- package/dist/{delete-pKMVsrpJ.mjs → delete-CxlSvsvW.mjs} +6 -6
- package/dist/{deploy-DfsAe-T0.mjs → deploy-CeEbnv4b.mjs} +38 -24
- package/dist/{deploy-BDu1vhSH.mjs → deploy-qmiLE1G1.mjs} +1 -1
- package/dist/{domain-D3uA9ize.mjs → domain-B_9VgOm6.mjs} +6 -6
- package/dist/{email-z3o2cwjH.mjs → email-BokHgjKj.mjs} +6 -6
- package/dist/{env-3Q8-_2IH.mjs → env-BdTc-K2L.mjs} +6 -5
- package/dist/{env-public-BX_r8HR6.d.mts → env-public-DR7ZM6d-.d.mts} +1 -1
- package/dist/{fetch-stream-IvCYKyQL.mjs → fetch-stream-Nm3hkZbT.mjs} +8 -1
- package/dist/{gen-NjwoG9FK.mjs → gen-BhDlTpwW.mjs} +1 -1
- package/dist/gen-qCBwH3fZ.mjs +2 -0
- package/dist/{github-cmd-DquUq-b1.mjs → github-cmd-hhkTzlGS.mjs} +4 -4
- package/dist/{handler-CZ4nAylQ.d.mts → handler-BeK3weD4.d.mts} +1 -1
- package/dist/{help-DRZXC4fj.mjs → help-Bv44e2tm.mjs} +13 -9
- package/dist/help-Dw5f9Xrg.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +30 -17
- package/dist/{info-BmA3_IFZ.mjs → info-DhtTKh65.mjs} +1 -1
- package/dist/{init-DT7yuuyl.mjs → init-BMf4T03q.mjs} +10 -9
- package/dist/{limits-Bq5LG8Id.d.mts → limits-CFsDKQvU.d.mts} +1 -10
- package/dist/{limits-Cjuk2VPm.mjs → limits-D0vD1M9A.mjs} +1 -22
- package/dist/{link-CXOlqh2F.mjs → link-BqYsSS_I.mjs} +5 -5
- package/dist/{list-eEWVJEPn.mjs → list-_kBToO-l.mjs} +7 -6
- package/dist/{live-Chw1eIMv.d.mts → live-iAuEH1hd.d.mts} +1 -1
- package/dist/{local-d1-Df4XpwhW.mjs → local-d1-fGxYrVD6.mjs} +1 -1
- package/dist/login-D7meQg_3.mjs +2 -0
- package/dist/{login-pWQHYVu2.mjs → login-DFuo-RWO.mjs} +4 -4
- package/dist/{logs-DnxVX7TR.mjs → logs-DYgnh6dH.mjs} +5 -5
- package/dist/{node-BkyRWRx8.mjs → node-C6Q6e1Es.mjs} +1 -1
- package/dist/{operator-args-CAVcmwUt.mjs → operator-args-DdY54Bgb.mjs} +1 -1
- package/dist/{operator-auth-CkmTE3rt.mjs → operator-auth-2dsGlTT5.mjs} +4 -8
- package/dist/{operator-client-LmwjxT6q.mjs → operator-client-BFqpp6z0.mjs} +3 -3
- package/dist/{operator-cmd-d-IEKgNk.mjs → operator-cmd-CUGHXrQf.mjs} +27 -9
- package/dist/operator-cmd-DRPvhpjM.mjs +2 -0
- package/dist/{output-BBsUwdyT.mjs → output-BvdaehtE.mjs} +26 -2
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/index.mjs +1 -1
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/{plan-NPpwZ_kc.mjs → plan-CJGEeTEI.mjs} +2 -2
- package/dist/plan-COtUvdMA.mjs +2 -0
- package/dist/{platform-args-Bzf8JPc2.mjs → platform-args-DSV2p4nY.mjs} +4 -2
- package/dist/platform-args-Dcy_5b_Y.mjs +2 -0
- package/dist/{platform-auth-config-0V0lA3pF.mjs → platform-auth-config-Bosx7U1h.mjs} +18 -17
- package/dist/{platform-auth-protection-DFeJ-JkK.mjs → platform-auth-protection-DcbL_LW_.mjs} +6 -6
- package/dist/{platform-auth-recovery-ICy4muq6.mjs → platform-auth-recovery-WfTZ8K6o.mjs} +5 -5
- package/dist/{platform-cmd-D7vSWMvV.mjs → platform-cmd-DbKtQb_4.mjs} +45 -20
- package/dist/{platform-cmd-BPySFOew.mjs → platform-cmd-dyFUof0t.mjs} +1 -1
- package/dist/{platform-discovery-DDDUvnqp.mjs → platform-discovery-BC0HCKYt.mjs} +18 -4
- package/dist/{platform-domain-CUdY064e.mjs → platform-domain-Bsq43AJp.mjs} +5 -4
- package/dist/{platform-lifecycle-BaUdTRPU.mjs → platform-lifecycle--5gWmDoI.mjs} +1 -1
- package/dist/{platform-lifecycle-Dm09JNkn.mjs → platform-lifecycle-Cfi0o6xM.mjs} +863 -35
- package/dist/{platform-management-Bp6aoH2C.mjs → platform-management-Bbwf6-Dq.mjs} +1 -1
- package/dist/{platform-management-BSEc_ZeG.mjs → platform-management-BrF9STZp.mjs} +173 -30
- package/dist/{platform-plans-config-B0pOVQyW.mjs → platform-plans-config-DU-8nC2Y.mjs} +2 -2
- package/dist/{platform-recovery-WOZ95Uze.mjs → platform-recovery-DQAqAQYu.mjs} +3 -3
- package/dist/{platform-registry-KfNEF84O.mjs → platform-registry-P387v42A.mjs} +17 -10
- package/dist/prepare-BBknoZI1.mjs +2 -0
- package/dist/{prepare-39EvOhI6.mjs → prepare-BMrRWLwP.mjs} +3 -2
- package/dist/{prepare-DnaKBi--.mjs → prepare-WoUubFKL.mjs} +1 -1
- package/dist/{project-IOjBU8R6.mjs → project-BiaPQ7ur.mjs} +1 -1
- package/dist/{project-BkbfDs0V.mjs → project-DQstYTxO.mjs} +1 -1
- package/dist/{project-cmd-Bs5A392E.mjs → project-cmd-BbH2LptN.mjs} +18 -18
- package/dist/{project-team-ohAWWaew.mjs → project-team-Yiww3-go.mjs} +5 -5
- package/dist/{project-token-CP01Jna6.mjs → project-token-BrtT2NkY.mjs} +4 -4
- package/dist/{project-zero-trust-BzkVgx35.mjs → project-zero-trust-nYJ2V2nc.mjs} +5 -5
- package/dist/{protocol-CjF_iI9X.d.mts → protocol-BX8t2jiw.d.mts} +1 -1
- package/dist/{provision-BEv0k-qz.mjs → provision-DMTPG8Rh.mjs} +1 -1
- package/dist/{provision-Btj1jppf.mjs → provision-VeqAC77A.mjs} +13 -1
- package/dist/{requests-B3PBuGlX.mjs → requests-TIz_jtSu.mjs} +4 -4
- package/dist/{rollback-DDub9GsO.mjs → rollback-dBqICPzj.mjs} +5 -5
- package/dist/{runner-Ol0TNjk6.mjs → runner--2KF6Kua.mjs} +1 -1
- package/dist/{runner-CXA9Fh8h.mjs → runner-voIltZrY.mjs} +1 -1
- package/dist/runtime/ai.d.mts +10 -11
- package/dist/runtime/ai.mjs +13 -18
- package/dist/runtime/client-react.mjs +1 -1
- package/dist/runtime/client-solid.mjs +1 -1
- package/dist/runtime/client-svelte.mjs +1 -1
- package/dist/runtime/client-vue.mjs +1 -1
- package/dist/runtime/client.mjs +1 -1
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/limits.d.mts +2 -2
- package/dist/runtime/limits.mjs +2 -2
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/migration-handler.mjs +33 -7
- package/dist/runtime/routing.d.mts +1 -1
- package/dist/runtime/sandbox.d.mts +1 -1
- package/dist/runtime/sandbox.mjs +12 -22
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{sandbox-XZAqzFlG.d.mts → sandbox-C5LFoJMf.d.mts} +7 -7
- package/dist/{scan-C7okrLyM.mjs → scan-C8dA7iM4.mjs} +10 -6
- package/dist/{secret-3c72lY1U.mjs → secret-AKnNXNP5.mjs} +6 -6
- package/dist/{subcommand-prompt-Dhom39bd.mjs → subcommand-prompt-B6WS9Aoz.mjs} +1 -1
- package/dist/validate-pna7R3Pv.mjs +2 -0
- package/dist/{validate-ctOrgiS3.mjs → validate-ymhap6M_.mjs} +1 -1
- package/dist/{ws-CL1w7GXU.d.mts → ws-C79j4aED.d.mts} +1 -1
- package/package.json +7 -7
- package/skills/void/SKILL.md +5 -2
- package/skills/void/docs/guide/ai.md +65 -62
- package/skills/void/docs/guide/app-types.md +1 -1
- package/skills/void/docs/guide/database.md +15 -0
- package/skills/void/docs/guide/live.md +2 -0
- package/skills/void/docs/guide/pages-routing/actions-and-forms.md +1 -1
- package/skills/void/docs/guide/platform/installation/credentials.md +2 -2
- package/skills/void/docs/guide/platform/installation/first-deployment.md +5 -1
- package/skills/void/docs/guide/platform/installation/maintenance.md +3 -1
- package/skills/void/docs/guide/platform/installation/setup.md +1 -1
- package/skills/void/docs/guide/platform/installation/uninstall.md +44 -11
- package/skills/void/docs/guide/sandboxes.md +39 -20
- package/skills/void/docs/reference/api/resources.md +11 -14
- package/skills/void/docs/reference/api.md +35 -34
- package/skills/void/docs/reference/cli/auth.md +3 -1
- package/skills/void/docs/reference/cli/platform-config.md +2 -2
- package/skills/void/docs/reference/cli/platform-installation.md +14 -12
- package/skills/void/docs/reference/cli/platform.md +4 -2
- package/skills/void/docs/reference/cli.md +1 -1
- package/skills/void/docs/reference/resource-inference.md +1 -0
- package/dist/client-B4Me-9HE.mjs +0 -2
- package/dist/gen-ById9r2j.mjs +0 -2
- package/dist/help-DPGBwomV.mjs +0 -2
- package/dist/login-C98-sw79.mjs +0 -2
- package/dist/plan-D1Q5rf-r.mjs +0 -2
- package/dist/platform-args-Cq6EjQro.mjs +0 -2
- package/dist/prepare-CnjcTV2s.mjs +0 -2
- package/dist/validate-Dq_L3s0S.mjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as getToken, f as removeToken } from "./auth-
|
|
1
|
+
import { c as getToken, f as removeToken } from "./auth-D52yG7hl.mjs";
|
|
2
2
|
import { L as log } from "./prompts-6OSVA7DJ.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { n as runLoginCommand } from "./login-
|
|
3
|
+
import { r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
4
|
+
import { n as runLoginCommand } from "./login-DFuo-RWO.mjs";
|
|
5
5
|
import { execSync } from "node:child_process";
|
|
6
6
|
//#region src/cli/account-cmd.ts
|
|
7
7
|
async function runAccountCommand(root, args) {
|
|
8
8
|
switch (args.subcommand) {
|
|
9
9
|
case "login": return runLoginCommand(root);
|
|
10
|
-
case "link": return import("./auth-link-
|
|
10
|
+
case "link": return import("./auth-link-DjeOptYi.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
|
|
11
11
|
case "logout":
|
|
12
12
|
if (removeToken(root)) log.success("Logged out.");
|
|
13
13
|
else log.info("Not logged in.");
|
|
@@ -9,7 +9,7 @@ import { a as staticLiteral, i as staticExportInitializers, n as parseRouteFilen
|
|
|
9
9
|
import { n as resourceNameWords } from "./resource-name-C7LVpcRm.mjs";
|
|
10
10
|
import { t as collectMigrations } from "./collect-DiTn9yr6.mjs";
|
|
11
11
|
import { a as scanEmailHandlersSync, i as scanEmailHandlers, r as hasEmailHandlers } from "./email--tEtMoj_.mjs";
|
|
12
|
-
import { t as scanPages } from "./scan-
|
|
12
|
+
import { t as scanPages } from "./scan-C8dA7iM4.mjs";
|
|
13
13
|
import { o as isSandboxEnabled } from "./config-C_XRIPx2.mjs";
|
|
14
14
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
15
15
|
import { parseSync } from "vite";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-
|
|
1
|
+
import { n as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-DC2yPvzY.mjs";
|
|
2
2
|
//#region src/application-routing.ts
|
|
3
3
|
/** Complete route/page analysis using the same resource and handler inventories. */
|
|
4
4
|
async function completeApplicationAnalysis(analysis) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getApiUrl, m as runPlatformLogin, s as getSiteDomain } from "./auth-
|
|
1
|
+
import { a as getApiUrl, m as runPlatformLogin, s as getSiteDomain } from "./auth-D52yG7hl.mjs";
|
|
2
2
|
export { getApiUrl, getSiteDomain, runPlatformLogin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
|
-
import { C as
|
|
3
|
-
import { i as readProjectPlatformUrl, r as readProjectConfig } from "./project-
|
|
2
|
+
import { C as deleteKeyringPassword, T as writeKeyringPassword, c as normalizePlatformApiUrl, i as getActivePlatformConnection, s as listPlatformConnections, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-P387v42A.mjs";
|
|
3
|
+
import { i as readProjectPlatformUrl, r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
4
4
|
import { t as cfAccessHeaders } from "./cf-access-TWNzXltp.mjs";
|
|
5
|
-
import { t as ensureCloudflaredToken } from "./cf-access-
|
|
5
|
+
import { t as ensureCloudflaredToken } from "./cf-access-YTlqvAsk.mjs";
|
|
6
6
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { createHash, randomBytes } from "node:crypto";
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as getApiUrl, c as getToken, h as savePlatformToken, m as runPlatformLogin, u as openBrowser } from "./auth-
|
|
1
|
+
import { a as getApiUrl, c as getToken, h as savePlatformToken, m as runPlatformLogin, u as openBrowser } from "./auth-D52yG7hl.mjs";
|
|
2
2
|
import { L as log } from "./prompts-6OSVA7DJ.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { r as selectPlatformLoginMethod } from "./login-
|
|
5
|
-
import { t as discoverPlatform } from "./platform-cmd-
|
|
3
|
+
import { r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
4
|
+
import { r as selectPlatformLoginMethod } from "./login-DFuo-RWO.mjs";
|
|
5
|
+
import { t as discoverPlatform } from "./platform-cmd-DbKtQb_4.mjs";
|
|
6
6
|
import { execFile } from "node:child_process";
|
|
7
7
|
//#region src/cli/auth-link.ts
|
|
8
8
|
async function runAuthLink(root, connectionId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as readDeploymentPlatform } from "./project-
|
|
1
|
+
import { s as listPlatformConnections } from "./platform-registry-P387v42A.mjs";
|
|
2
|
+
import { n as readDeploymentPlatform } from "./project-DQstYTxO.mjs";
|
|
3
3
|
import { K as select, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
4
4
|
//#region src/cli/auth-router.ts
|
|
5
5
|
async function chooseDestination(root, args, interactive) {
|
|
@@ -37,7 +37,7 @@ async function chooseDestination(root, args, interactive) {
|
|
|
37
37
|
}
|
|
38
38
|
async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isTTY)) {
|
|
39
39
|
if (args.subcommand === "link") {
|
|
40
|
-
const { runAccountCommand } = await import("./account-cmd-
|
|
40
|
+
const { runAccountCommand } = await import("./account-cmd-CDry3B5V.mjs");
|
|
41
41
|
await runAccountCommand(root, {
|
|
42
42
|
subcommand: "link",
|
|
43
43
|
...args.connectionId ? { connectionId: args.connectionId } : {}
|
|
@@ -45,7 +45,7 @@ async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isT
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
if (args.subcommand === "token") {
|
|
48
|
-
const { runAccountCommand } = await import("./account-cmd-
|
|
48
|
+
const { runAccountCommand } = await import("./account-cmd-CDry3B5V.mjs");
|
|
49
49
|
await runAccountCommand(root, { subcommand: "token" });
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isT
|
|
|
55
55
|
await runCloudflareCommand(root, { subcommand: args.subcommand === "whoami" || args.subcommand === "status" ? "status" : args.subcommand });
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
const { runAccountCommand } = await import("./account-cmd-
|
|
58
|
+
const { runAccountCommand } = await import("./account-cmd-CDry3B5V.mjs");
|
|
59
59
|
const subcommand = args.subcommand === "status" ? "whoami" : args.subcommand;
|
|
60
60
|
if (!destination.apiUrl) {
|
|
61
61
|
await runAccountCommand(root, { subcommand });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as readProjectConfig } from "./project-
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
1
|
+
import { r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-D52yG7hl.mjs";
|
|
3
3
|
import { H as outro, L as log } from "./prompts-6OSVA7DJ.mjs";
|
|
4
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
5
|
-
import { c as import_picocolors, i as dim } from "./output-
|
|
4
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
5
|
+
import { c as import_picocolors, i as dim } from "./output-BvdaehtE.mjs";
|
|
6
6
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-BG5ORGID.mjs";
|
|
7
7
|
import { appendFileSync, writeFileSync } from "node:fs";
|
|
8
8
|
//#region src/cli/build-cmd.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as readProjectConfig } from "./project-
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
1
|
+
import { r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-D52yG7hl.mjs";
|
|
3
3
|
import { H as outro, L as log } from "./prompts-6OSVA7DJ.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
5
|
-
import { i as dim, o as formatCount, r as createSpinner } from "./output-
|
|
4
|
+
import { r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
5
|
+
import { i as dim, o as formatCount, r as createSpinner } from "./output-BvdaehtE.mjs";
|
|
6
6
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-BG5ORGID.mjs";
|
|
7
7
|
//#region src/cli/cache.ts
|
|
8
8
|
async function runPurgeCacheCommand(root, projectSlug) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as readProjectConfig } from "./project-
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
1
|
+
import { r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-D52yG7hl.mjs";
|
|
3
3
|
import { A as confirm, H as outro, L as log, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
+
import { r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
5
5
|
//#region src/cli/cancel-deploy.ts
|
|
6
6
|
const ACTIVE_STATUSES = /* @__PURE__ */ new Set([
|
|
7
7
|
"pending",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as writeKeyringPassword, c as normalizePlatformApiUrl, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-P387v42A.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-TWNzXltp.mjs";
|
|
3
3
|
import { spawnSync } from "node:child_process";
|
|
4
4
|
//#region src/cli/cf-access.ts
|
package/dist/cli/cli.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import { a as join } from "../dist-BVqXeR_h.mjs";
|
|
|
3
3
|
import { L as log } from "../prompts-6OSVA7DJ.mjs";
|
|
4
4
|
import { n as getPackageDir } from "../agents-B_pX_HmQ.mjs";
|
|
5
5
|
import { t as formatCloudflareUserMessage } from "../cloudflare-user-output-Q-k0QoNQ.mjs";
|
|
6
|
-
import { c as import_picocolors } from "../output-
|
|
7
|
-
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "../help-
|
|
8
|
-
import { r as OperatorClientError } from "../operator-client-
|
|
9
|
-
import { n as platformSubcommands, t as parsePlatformArgs } from "../platform-args-
|
|
6
|
+
import { c as import_picocolors } from "../output-BvdaehtE.mjs";
|
|
7
|
+
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "../help-Bv44e2tm.mjs";
|
|
8
|
+
import { r as OperatorClientError } from "../operator-client-BFqpp6z0.mjs";
|
|
9
|
+
import { n as platformSubcommands, t as parsePlatformArgs } from "../platform-args-DSV2p4nY.mjs";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
12
12
|
//#region src/cli/account-args.ts
|
|
@@ -1613,7 +1613,7 @@ async function runSubcommandGroup(command, subcommands, parse, run) {
|
|
|
1613
1613
|
const hasNamedSubcommand = args.slice(1).some((arg) => subcommands.some(({ name }) => name === arg));
|
|
1614
1614
|
try {
|
|
1615
1615
|
if ((!sub || sub.startsWith("-") && !hasNamedSubcommand) && process.stdin.isTTY) {
|
|
1616
|
-
const { promptSubcommand } = await import("../subcommand-prompt-
|
|
1616
|
+
const { promptSubcommand } = await import("../subcommand-prompt-B6WS9Aoz.mjs");
|
|
1617
1617
|
if (command === "platform" && !sub) log.info("A Void platform lets a team deploy Void apps to a shared Cloudflare account.\nThis command sets up and manages platforms. Join with `void connect <url>`.\nDocs: https://void.cloud/guide/self-hosted-platform");
|
|
1618
1618
|
const result = await promptSubcommand(command, subcommands);
|
|
1619
1619
|
if (!result) process.exit(0);
|
|
@@ -1655,7 +1655,7 @@ if (helpPath) {
|
|
|
1655
1655
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1656
1656
|
process.exit(1);
|
|
1657
1657
|
}
|
|
1658
|
-
import("../deploy-
|
|
1658
|
+
import("../deploy-qmiLE1G1.mjs").then(({ runDeploy }) => {
|
|
1659
1659
|
runDeploy(root, {
|
|
1660
1660
|
projectSlug: deployArgs.projectSlug,
|
|
1661
1661
|
dir: deployArgs.dir,
|
|
@@ -1673,26 +1673,26 @@ if (helpPath) {
|
|
|
1673
1673
|
});
|
|
1674
1674
|
} else if (command === "connect") (async () => {
|
|
1675
1675
|
const parsed = parseConnectArgs(args.slice(1));
|
|
1676
|
-
const { runConnectCommand } = await import("../connect-
|
|
1676
|
+
const { runConnectCommand } = await import("../connect-H6EvP62X.mjs");
|
|
1677
1677
|
await runConnectCommand(process.cwd(), parsed);
|
|
1678
1678
|
})().catch((err) => {
|
|
1679
1679
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1680
1680
|
process.exit(1);
|
|
1681
1681
|
});
|
|
1682
|
-
else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-router-
|
|
1683
|
-
else if (command === "account") runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("../account-cmd-
|
|
1684
|
-
else if (command === "platform") runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("../platform-cmd-
|
|
1682
|
+
else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-router-BRxIuqDi.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed)));
|
|
1683
|
+
else if (command === "account") runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("../account-cmd-CDry3B5V.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed)));
|
|
1684
|
+
else if (command === "platform") runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("../platform-cmd-dyFUof0t.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed)));
|
|
1685
1685
|
else if (command === "cloudflare") runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("../cloudflare-cmd-bhwCxAN6.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed)));
|
|
1686
|
-
else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-
|
|
1687
|
-
else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-
|
|
1688
|
-
else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-
|
|
1689
|
-
else if (command === "email") runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("../email-
|
|
1690
|
-
else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-
|
|
1691
|
-
else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-
|
|
1692
|
-
else if (command === "gen") runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-
|
|
1693
|
-
else if (command === "github") runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("../github-cmd-
|
|
1694
|
-
else if (command === "build") runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("../build-cmd-
|
|
1695
|
-
else if (command === "info") import("../info-
|
|
1686
|
+
else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-BbH2LptN.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed)));
|
|
1687
|
+
else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-AKnNXNP5.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed)));
|
|
1688
|
+
else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-B_9VgOm6.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed)));
|
|
1689
|
+
else if (command === "email") runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("../email-BokHgjKj.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed)));
|
|
1690
|
+
else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-DpCKZto0.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed)));
|
|
1691
|
+
else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-BdTc-K2L.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed)));
|
|
1692
|
+
else if (command === "gen") runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-qCBwH3fZ.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed)));
|
|
1693
|
+
else if (command === "github") runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("../github-cmd-hhkTzlGS.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed)));
|
|
1694
|
+
else if (command === "build") runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("../build-cmd-Ce3C8huo.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)));
|
|
1695
|
+
else if (command === "info") import("../info-DhtTKh65.mjs").then(async ({ runInfoCommand }) => {
|
|
1696
1696
|
try {
|
|
1697
1697
|
await runInfoCommand(process.cwd(), parseInfoArgs(args.slice(1)));
|
|
1698
1698
|
} catch (err) {
|
|
@@ -1714,7 +1714,7 @@ else if (command === "prepare") {
|
|
|
1714
1714
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1715
1715
|
process.exit(1);
|
|
1716
1716
|
}
|
|
1717
|
-
import("../prepare-
|
|
1717
|
+
import("../prepare-BMrRWLwP.mjs").then(({ runPrepareCommand }) => {
|
|
1718
1718
|
runPrepareCommand(root, prepareArgs).catch((err) => {
|
|
1719
1719
|
log.error(formatCloudflareUserMessage(err.message ?? String(err)));
|
|
1720
1720
|
process.exit(1);
|
|
@@ -1722,7 +1722,7 @@ else if (command === "prepare") {
|
|
|
1722
1722
|
});
|
|
1723
1723
|
} else if (command === "init") {
|
|
1724
1724
|
const root = process.cwd();
|
|
1725
|
-
import("../init-
|
|
1725
|
+
import("../init-BMf4T03q.mjs").then(({ runInitCommand, parseInitArgs }) => {
|
|
1726
1726
|
let initArgs;
|
|
1727
1727
|
try {
|
|
1728
1728
|
initArgs = parseInitArgs(args.slice(1));
|
|
@@ -1852,19 +1852,19 @@ else if (command === "prepare") {
|
|
|
1852
1852
|
];
|
|
1853
1853
|
(async () => {
|
|
1854
1854
|
printVoidHeader();
|
|
1855
|
-
const { promptSubcommand } = await import("../subcommand-prompt-
|
|
1855
|
+
const { promptSubcommand } = await import("../subcommand-prompt-B6WS9Aoz.mjs");
|
|
1856
1856
|
const result = await promptSubcommand("", topLevelCommands);
|
|
1857
1857
|
if (!result) process.exit(0);
|
|
1858
1858
|
const cmd = result.subcommand;
|
|
1859
1859
|
const root = process.cwd();
|
|
1860
1860
|
switch (cmd) {
|
|
1861
1861
|
case "connect": {
|
|
1862
|
-
const { runConnectCommand } = await import("../connect-
|
|
1862
|
+
const { runConnectCommand } = await import("../connect-H6EvP62X.mjs");
|
|
1863
1863
|
await runConnectCommand(root, parseConnectArgs([]));
|
|
1864
1864
|
return;
|
|
1865
1865
|
}
|
|
1866
1866
|
case "init": {
|
|
1867
|
-
const { runInitCommand, parseInitArgs } = await import("../init-
|
|
1867
|
+
const { runInitCommand, parseInitArgs } = await import("../init-BMf4T03q.mjs");
|
|
1868
1868
|
await runInitCommand(root, parseInitArgs([]));
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
@@ -1874,30 +1874,30 @@ else if (command === "prepare") {
|
|
|
1874
1874
|
return;
|
|
1875
1875
|
}
|
|
1876
1876
|
case "deploy": {
|
|
1877
|
-
const { runDeploy } = await import("../deploy-
|
|
1877
|
+
const { runDeploy } = await import("../deploy-qmiLE1G1.mjs");
|
|
1878
1878
|
await runDeploy(root);
|
|
1879
1879
|
return;
|
|
1880
1880
|
}
|
|
1881
|
-
case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-router-
|
|
1882
|
-
case "account": return runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (r, p) => import("../account-cmd-
|
|
1883
|
-
case "platform": return runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (r, p) => import("../platform-cmd-
|
|
1881
|
+
case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-router-BRxIuqDi.mjs").then(({ runAuthRouter }) => runAuthRouter(r, p)));
|
|
1882
|
+
case "account": return runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (r, p) => import("../account-cmd-CDry3B5V.mjs").then(({ runAccountCommand }) => runAccountCommand(r, p)));
|
|
1883
|
+
case "platform": return runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (r, p) => import("../platform-cmd-dyFUof0t.mjs").then(({ runPlatformCommand }) => runPlatformCommand(r, p)));
|
|
1884
1884
|
case "cloudflare": return runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (r, p) => import("../cloudflare-cmd-bhwCxAN6.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(r, p)));
|
|
1885
|
-
case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-
|
|
1886
|
-
case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-
|
|
1887
|
-
case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-
|
|
1888
|
-
case "github": return runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (r, p) => import("../github-cmd-
|
|
1889
|
-
case "build": return runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (r, p) => import("../build-cmd-
|
|
1890
|
-
case "email": return runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (r, p) => import("../email-
|
|
1891
|
-
case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-
|
|
1892
|
-
case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-
|
|
1893
|
-
case "gen": return runSubcommandGroup("gen", genSubcommands, parseGenArgs, (r, p) => import("../gen-
|
|
1885
|
+
case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-BbH2LptN.mjs").then(({ runProjectCommand }) => runProjectCommand(r, p)));
|
|
1886
|
+
case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-AKnNXNP5.mjs").then(({ runSecretCommand }) => runSecretCommand(r, p)));
|
|
1887
|
+
case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-B_9VgOm6.mjs").then(({ runDomainCommand }) => runDomainCommand(r, p)));
|
|
1888
|
+
case "github": return runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (r, p) => import("../github-cmd-hhkTzlGS.mjs").then(({ runGithubCommand }) => runGithubCommand(r, p)));
|
|
1889
|
+
case "build": return runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (r, p) => import("../build-cmd-Ce3C8huo.mjs").then(({ runBuildCommand }) => runBuildCommand(r, p)));
|
|
1890
|
+
case "email": return runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (r, p) => import("../email-BokHgjKj.mjs").then(({ runEmailCommand }) => runEmailCommand(r, p)));
|
|
1891
|
+
case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-DpCKZto0.mjs").then(({ runDbCommand }) => runDbCommand(r, p)));
|
|
1892
|
+
case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-BdTc-K2L.mjs").then(({ runEnvCommand }) => runEnvCommand(r, p)));
|
|
1893
|
+
case "gen": return runSubcommandGroup("gen", genSubcommands, parseGenArgs, (r, p) => import("../gen-qCBwH3fZ.mjs").then(({ runGenCommand }) => runGenCommand(r, p)));
|
|
1894
1894
|
case "info": {
|
|
1895
|
-
const { runInfoCommand } = await import("../info-
|
|
1895
|
+
const { runInfoCommand } = await import("../info-DhtTKh65.mjs");
|
|
1896
1896
|
await runInfoCommand(root, parseInfoArgs([]));
|
|
1897
1897
|
return;
|
|
1898
1898
|
}
|
|
1899
1899
|
case "prepare": {
|
|
1900
|
-
const { runPrepareCommand } = await import("../prepare-
|
|
1900
|
+
const { runPrepareCommand } = await import("../prepare-BMrRWLwP.mjs");
|
|
1901
1901
|
await runPrepareCommand(root, parsePrepareArgs([]));
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
@@ -304,7 +304,7 @@ async function cloudflareApiGet(path, failure, extraHeaders = {}) {
|
|
|
304
304
|
...proxy ? { dispatcher: proxy } : {}
|
|
305
305
|
});
|
|
306
306
|
const body = object(await response.json());
|
|
307
|
-
if (!response.ok || body.success !== true) throw new Error(failure);
|
|
307
|
+
if (!response.ok || body.success !== true) throw new Error(`${failure} (HTTP ${response.status})`);
|
|
308
308
|
return body;
|
|
309
309
|
} finally {
|
|
310
310
|
await proxy?.close();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-P387v42A.mjs";
|
|
3
3
|
import { t as cfAccessHeaders } from "./cf-access-TWNzXltp.mjs";
|
|
4
|
-
import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, t as ensureCloudflaredToken } from "./cf-access-
|
|
5
|
-
import { a as getApiUrl } from "./auth-
|
|
4
|
+
import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, t as ensureCloudflaredToken } from "./cf-access-YTlqvAsk.mjs";
|
|
5
|
+
import { a as getApiUrl } from "./auth-D52yG7hl.mjs";
|
|
6
6
|
import { n as getPackageDir } from "./agents-B_pX_HmQ.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { n as readPlatformDiscoveryResponse } from "./platform-discovery-BC0HCKYt.mjs";
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
//#region src/cli/platform-errors.ts
|
|
@@ -108,7 +108,7 @@ function readCliVersion() {
|
|
|
108
108
|
}
|
|
109
109
|
const VOID_CLI_VERSION = readCliVersion();
|
|
110
110
|
/** The oldest Void platform release this CLI supports. */
|
|
111
|
-
const MIN_PLATFORM_VERSION = "0.
|
|
111
|
+
const MIN_PLATFORM_VERSION = "0.26.0";
|
|
112
112
|
const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
|
|
113
113
|
/**
|
|
114
114
|
* Version checks keyed by platform base URL. Every outcome (pass, inconclusive,
|
|
@@ -3,7 +3,7 @@ import { i as persistCloudflareConfig, r as materializeCloudflareConfig } from "
|
|
|
3
3
|
import { C as readWranglerPublishedTrafficSnapshot, j as writeWranglerPublishedTrafficSnapshot, k as updateWranglerCustomDomain, x as readWranglerCustomDomains } from "./wrangler-DhUerFkW.mjs";
|
|
4
4
|
import { r as scanWranglerDotenvKeys } from "./dotenv-VQxupEUv.mjs";
|
|
5
5
|
import { t as createCloudflareProcessRunner } from "./cloudflare-process-B-wekeR6.mjs";
|
|
6
|
-
import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-
|
|
6
|
+
import { _ as resolvePinnedApiBaseUrl, g as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware } from "./provision-VeqAC77A.mjs";
|
|
7
7
|
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { tmpdir } from "node:os";
|
|
9
9
|
import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as resolveCloudflareD1Context, b as tailCloudflareWorker, c as listCloudflareDomains, g as readCloudflareWorkerStatus, h as readCloudflareD1Migrations, l as listCloudflareSecrets, m as putCloudflareSecret, n as applyCloudflareD1Migrations, o as deleteCloudflareSecret, r as changeCloudflareDomain, s as executeCloudflareD1Sql, t as activateCloudflareExistingVersion, v as resolveCloudflareOperationContext, y as syncCloudflareSecrets } from "./cloudflare-operations-
|
|
1
|
+
import { _ as resolveCloudflareD1Context, b as tailCloudflareWorker, c as listCloudflareDomains, g as readCloudflareWorkerStatus, h as readCloudflareD1Migrations, l as listCloudflareSecrets, m as putCloudflareSecret, n as applyCloudflareD1Migrations, o as deleteCloudflareSecret, r as changeCloudflareDomain, s as executeCloudflareD1Sql, t as activateCloudflareExistingVersion, v as resolveCloudflareOperationContext, y as syncCloudflareSecrets } from "./cloudflare-operations-DYa3coIk.mjs";
|
|
2
2
|
export { activateCloudflareExistingVersion, applyCloudflareD1Migrations, changeCloudflareDomain, deleteCloudflareSecret, executeCloudflareD1Sql, listCloudflareDomains, listCloudflareSecrets, putCloudflareSecret, readCloudflareD1Migrations, readCloudflareWorkerStatus, resolveCloudflareD1Context, resolveCloudflareOperationContext, syncCloudflareSecrets, tailCloudflareWorker };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as writePlatformSelection, n as readDeploymentPlatform, s as writeDeploymentPlatform } from "./project-
|
|
3
|
-
import { d as readPlatformToken } from "./auth-
|
|
1
|
+
import { c as normalizePlatformApiUrl, s as listPlatformConnections } from "./platform-registry-P387v42A.mjs";
|
|
2
|
+
import { c as writePlatformSelection, n as readDeploymentPlatform, s as writeDeploymentPlatform } from "./project-DQstYTxO.mjs";
|
|
3
|
+
import { d as readPlatformToken } from "./auth-D52yG7hl.mjs";
|
|
4
4
|
import { K as select, L as log, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
5
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
6
|
-
import { t as promptForLoginToken } from "./login-
|
|
7
|
-
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-
|
|
5
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
6
|
+
import { t as promptForLoginToken } from "./login-DFuo-RWO.mjs";
|
|
7
|
+
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-DbKtQb_4.mjs";
|
|
8
8
|
import { t as connectCloudflare } from "./cloudflare-connect-CuhRgk3k.mjs";
|
|
9
9
|
//#region src/cli/connect.ts
|
|
10
10
|
async function selectVoidPlatform(interactive) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as writeProjectConfig, t as attachSelectedPlatform } from "./project-
|
|
2
|
-
import { s as getSiteDomain } from "./auth-
|
|
1
|
+
import { l as writeProjectConfig, t as attachSelectedPlatform } from "./project-DQstYTxO.mjs";
|
|
2
|
+
import { s as getSiteDomain } from "./auth-D52yG7hl.mjs";
|
|
3
3
|
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
4
|
-
import { n as PlatformApiError } from "./client-
|
|
5
|
-
import { c as import_picocolors,
|
|
4
|
+
import { n as PlatformApiError } from "./client-mC-dFGDD.mjs";
|
|
5
|
+
import { c as import_picocolors, u as sanitizeTerminalText } from "./output-BvdaehtE.mjs";
|
|
6
6
|
import { t as validateProjectSlug } from "./project-slug-23TpquG4.mjs";
|
|
7
7
|
import { n as inferDefaultSlug } from "./resolve-project-BG5ORGID.mjs";
|
|
8
8
|
//#region src/cli/prompt.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProjectWithSlugRetry } from "./create-project-
|
|
1
|
+
import { t as createProjectWithSlugRetry } from "./create-project-B2kk9Q0o.mjs";
|
|
2
2
|
export { createProjectWithSlugRetry };
|
|
@@ -3,17 +3,17 @@ import { r as detectFramework } from "./plugin-inference-CXWnn79A.mjs";
|
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-GgcMozYz.mjs";
|
|
4
4
|
import { h as resolveBindingNames, m as readConfig, u as getDatabaseDialect } from "./config-Br_JZD6u.mjs";
|
|
5
5
|
import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-DiTn9yr6.mjs";
|
|
6
|
-
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-
|
|
7
|
-
import { t as resolveLocalD1Target } from "./local-d1-
|
|
6
|
+
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
7
|
+
import { t as resolveLocalD1Target } from "./local-d1-fGxYrVD6.mjs";
|
|
8
8
|
import { t as cfAccessHeaders } from "./cf-access-TWNzXltp.mjs";
|
|
9
|
-
import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, r as ensurePlatformProxyAccess } from "./cf-access-
|
|
10
|
-
import { c as getToken, o as getProxyUrl } from "./auth-
|
|
9
|
+
import { i as isCloudflareAccessChallenge, n as ensurePlatformAccessToken, r as ensurePlatformProxyAccess } from "./cf-access-YTlqvAsk.mjs";
|
|
10
|
+
import { c as getToken, o as getProxyUrl } from "./auth-D52yG7hl.mjs";
|
|
11
11
|
import { a as loadLocalEnv } from "./env-_v349JBd.mjs";
|
|
12
12
|
import { A as confirm, H as outro, L as log, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
13
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
14
|
-
import { c as import_picocolors, i as dim, o as formatCount } from "./output-
|
|
15
|
-
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-
|
|
16
|
-
import { n as formatTimestamp } from "./gen-
|
|
13
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
14
|
+
import { c as import_picocolors, i as dim, o as formatCount } from "./output-BvdaehtE.mjs";
|
|
15
|
+
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-ymhap6M_.mjs";
|
|
16
|
+
import { n as formatTimestamp } from "./gen-BhDlTpwW.mjs";
|
|
17
17
|
import { createRequire } from "node:module";
|
|
18
18
|
import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -315,7 +315,7 @@ async function runPush(root, dialect) {
|
|
|
315
315
|
outro("Done.");
|
|
316
316
|
}
|
|
317
317
|
async function runGenerate(root, dialect) {
|
|
318
|
-
const { prepareProject } = await import("./prepare-
|
|
318
|
+
const { prepareProject } = await import("./prepare-BBknoZI1.mjs");
|
|
319
319
|
const { writeDrizzleConfig } = await import("./config-0acf1oys.mjs");
|
|
320
320
|
await prepareProject(root);
|
|
321
321
|
const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
|
|
@@ -381,7 +381,7 @@ async function runStatus(root, dialect) {
|
|
|
381
381
|
localApplied = [];
|
|
382
382
|
}
|
|
383
383
|
else {
|
|
384
|
-
const { getAppliedMigrations } = await import("./runner-
|
|
384
|
+
const { getAppliedMigrations } = await import("./runner-voIltZrY.mjs");
|
|
385
385
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
386
386
|
localApplied = await getAppliedMigrations(dbPath);
|
|
387
387
|
}
|
|
@@ -396,7 +396,7 @@ async function runStatus(root, dialect) {
|
|
|
396
396
|
applied_at: ""
|
|
397
397
|
}));
|
|
398
398
|
} else {
|
|
399
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
399
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-DoQrVHAt.mjs");
|
|
400
400
|
remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"))).map((name) => ({
|
|
401
401
|
name,
|
|
402
402
|
applied_at: ""
|
|
@@ -477,7 +477,7 @@ async function resetDatabase(root, dialect) {
|
|
|
477
477
|
}
|
|
478
478
|
return migrations.length;
|
|
479
479
|
}
|
|
480
|
-
const { runMigrations } = await import("./runner-
|
|
480
|
+
const { runMigrations } = await import("./runner-voIltZrY.mjs");
|
|
481
481
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
482
482
|
rmSync(dbPath, { force: true });
|
|
483
483
|
rmSync(dbPath + "-wal", { force: true });
|
|
@@ -512,7 +512,7 @@ async function runSeed(root, file, dialect) {
|
|
|
512
512
|
outro("Done.");
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
515
|
+
const { openSqliteDatabase } = await import("./runner-voIltZrY.mjs");
|
|
516
516
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
517
517
|
const db = await openSqliteDatabase(dbPath);
|
|
518
518
|
try {
|
|
@@ -638,7 +638,7 @@ async function runExecute(root, command, file, dialect, remote) {
|
|
|
638
638
|
process.exit(0);
|
|
639
639
|
}
|
|
640
640
|
if (dialect === "sqlite") {
|
|
641
|
-
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
641
|
+
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-DoQrVHAt.mjs");
|
|
642
642
|
const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB"), sql);
|
|
643
643
|
if (rows.length > 0) printTable(rows);
|
|
644
644
|
else log.success("Executed successfully.");
|
|
@@ -743,7 +743,7 @@ async function runExecute(root, command, file, dialect, remote) {
|
|
|
743
743
|
outro("Done.");
|
|
744
744
|
return;
|
|
745
745
|
}
|
|
746
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
746
|
+
const { openSqliteDatabase } = await import("./runner-voIltZrY.mjs");
|
|
747
747
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
748
748
|
if (!existsSync(dbPath)) {
|
|
749
749
|
log.error("No local database found. Run `void dev` first.");
|
|
@@ -843,7 +843,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
843
843
|
outro("Done.");
|
|
844
844
|
return;
|
|
845
845
|
}
|
|
846
|
-
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
846
|
+
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-DoQrVHAt.mjs");
|
|
847
847
|
const binding = resolveBindingNames(readConfig(root).inference?.bindings)?.d1 ?? "DB";
|
|
848
848
|
const context = resolveCloudflareD1Context(root, binding);
|
|
849
849
|
const remoteBefore = new Set(await readCloudflareD1Migrations(context));
|
|
@@ -859,7 +859,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
859
859
|
log.error(getErrorMessage(error));
|
|
860
860
|
process.exit(1);
|
|
861
861
|
}
|
|
862
|
-
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-
|
|
862
|
+
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-qmiLE1G1.mjs");
|
|
863
863
|
const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations);
|
|
864
864
|
if (!applySet.ok) {
|
|
865
865
|
log.error(applySet.reason);
|
|
@@ -977,7 +977,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
977
977
|
outro("Done.");
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
const { getAppliedMigrations, runMigrations } = await import("./runner-
|
|
980
|
+
const { getAppliedMigrations, runMigrations } = await import("./runner-voIltZrY.mjs");
|
|
981
981
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
982
982
|
try {
|
|
983
983
|
const existingRows = await getAppliedMigrations(dbPath);
|
|
@@ -1287,7 +1287,7 @@ async function runRenameMigrations(root, dialect) {
|
|
|
1287
1287
|
process.exit(1);
|
|
1288
1288
|
}
|
|
1289
1289
|
else {
|
|
1290
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
1290
|
+
const { openSqliteDatabase } = await import("./runner-voIltZrY.mjs");
|
|
1291
1291
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1292
1292
|
if (existsSync(dbPath)) try {
|
|
1293
1293
|
const db = await openSqliteDatabase(dbPath);
|
|
@@ -1439,7 +1439,7 @@ async function runExport(root, args, dialect) {
|
|
|
1439
1439
|
} else process.stdout.write(output);
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
1442
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
1442
|
+
const { openSqliteDatabase } = await import("./runner-voIltZrY.mjs");
|
|
1443
1443
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1444
1444
|
if (!existsSync(dbPath)) {
|
|
1445
1445
|
log.error("No local database found. Run `void dev` first.", errOut);
|
|
@@ -1608,7 +1608,7 @@ async function runSeedModule(root, seedPath, dialect) {
|
|
|
1608
1608
|
return;
|
|
1609
1609
|
}
|
|
1610
1610
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
|
1611
|
-
const { openSqliteDatabase } = await import("./runner-
|
|
1611
|
+
const { openSqliteDatabase } = await import("./runner-voIltZrY.mjs");
|
|
1612
1612
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1613
1613
|
const sqlite = await openSqliteDatabase(dbPath);
|
|
1614
1614
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as removeProjectConfig, r as readProjectConfig } from "./project-
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
3
|
-
import {
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
5
|
-
import { r as createSpinner } from "./output-
|
|
1
|
+
import { a as removeProjectConfig, r as readProjectConfig } from "./project-DQstYTxO.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-D52yG7hl.mjs";
|
|
3
|
+
import { H as outro, L as log, O as cancel, X as text, tt as isCancel } from "./prompts-6OSVA7DJ.mjs";
|
|
4
|
+
import { r as PlatformClient } from "./client-mC-dFGDD.mjs";
|
|
5
|
+
import { l as note, r as createSpinner } from "./output-BvdaehtE.mjs";
|
|
6
6
|
import { r as resolveProjectBySlug } from "./resolve-project-BG5ORGID.mjs";
|
|
7
7
|
//#region src/cli/delete.ts
|
|
8
8
|
async function runDeleteCommand(root, slug, options) {
|
|
@@ -54,7 +54,7 @@ async function runDeleteCommand(root, slug, options) {
|
|
|
54
54
|
const s = createSpinner();
|
|
55
55
|
s.start("Deleting project...");
|
|
56
56
|
const result = await client.deleteProject(projectId);
|
|
57
|
-
s.
|
|
57
|
+
s.clear();
|
|
58
58
|
if (result.warnings && result.warnings.length > 0) for (const warning of result.warnings) log.warn(warning);
|
|
59
59
|
if (readProjectConfig(root)?.projectId === projectId) {
|
|
60
60
|
removeProjectConfig(root);
|