void 1.12.0 → 1.12.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-D_0qJ9fx.mjs → account-cmd-BU1Fy_Bf.mjs} +4 -4
- package/dist/{application-analysis-Cx2S63z5.mjs → application-analysis-DVeN8yoi.mjs} +1 -1
- package/dist/{application-routing-BAXpnawu.mjs → application-routing-KKw4Y84h.mjs} +1 -1
- package/dist/{auth-Boz0lrb3.mjs → auth-A7cZ8aXA.mjs} +1 -1
- package/dist/{auth-DlLDymuc.mjs → auth-CqwJwItO.mjs} +1 -1
- package/dist/{auth-link-C97r9p2N.mjs → auth-link-Duu2NvN5.mjs} +4 -4
- package/dist/{auth-router-BmzEgzYx.mjs → auth-router-vgtOdb9j.mjs} +1 -1
- package/dist/{build-cmd-BaFsyZrz.mjs → build-cmd-B7OJ0U5R.mjs} +2 -2
- package/dist/build-id-4IV4hC1-.mjs +13 -0
- package/dist/{cache-xO711ATQ.mjs → cache-wSpi3aeM.mjs} +2 -2
- package/dist/{cancel-deploy-Di11ynsr.mjs → cancel-deploy-DMWzkAlb.mjs} +2 -2
- package/dist/{cf-access-FaIm95jA.mjs → cf-access-DHklo7Rg.mjs} +33 -19
- package/dist/{cf-build-output-Ca201_n1.mjs → cf-build-output-Cso7Vh-t.mjs} +4 -2
- package/dist/cf-build-output-Wpk_e5CI.mjs +1 -0
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +1 -1
- package/dist/cli/db-execute-process.d.mts +2 -0
- package/dist/cli/db-execute-process.mjs +57 -0
- package/dist/{cli-main-DlW6lB8s.mjs → cli-main-BrChcpE3.mjs} +37 -344
- package/dist/{client-ImIe7Mjq.mjs → client-DE2m2ldh.mjs} +4 -4
- package/dist/{client-DkYzDEC0.mjs → client-eLZwqkPH.mjs} +1 -1
- package/dist/{cloudflare-operations-BF0PSErW.mjs → cloudflare-operations-BIRQkYwL.mjs} +14 -8
- package/dist/cloudflare-operations-ByjFGats.mjs +1 -0
- package/dist/{connect-DDRQGfFE.mjs → connect-D0V0o40j.mjs} +4 -4
- package/dist/{create-project-CY7sP8sI.mjs → create-project-8FdN6D2i.mjs} +2 -2
- package/dist/{create-project-Dro3K-az.mjs → create-project-CbuDH5Hv.mjs} +1 -1
- package/dist/{db-DmlaWVBu.mjs → db-BNPIjLkK.mjs} +1348 -69
- package/dist/db-args-BvMwAber.mjs +1 -0
- package/dist/db-args-CiQVg8SJ.mjs +321 -0
- package/dist/{delete-Uuq9ch6o.mjs → delete-WtLEfap2.mjs} +2 -2
- package/dist/{deploy-B9E7_rHC.mjs → deploy-BgSbagIP.mjs} +14 -14
- package/dist/{deploy-BB3rsZbP.mjs → deploy-Do6FWqon.mjs} +1 -1
- package/dist/{deploy-managed-static-IKZyuc1W.mjs → deploy-managed-static-BWBsxOww.mjs} +5 -5
- package/dist/{deploy-security-notice-C3LalelR.mjs → deploy-security-notice-IRGy6Edf.mjs} +2 -2
- package/dist/deploy.mjs +4 -4
- package/dist/{domain-B_xY1yZ5.mjs → domain-mweyYXSw.mjs} +3 -3
- package/dist/{email-BIC15L7a.mjs → email-DcQNP40O.mjs} +5 -5
- package/dist/{email-cloudflare-C447nOqq.mjs → email-cloudflare-DeYH3Ke7.mjs} +2 -2
- package/dist/{env-DJPZYHT5.mjs → env-DaAoYR2-.mjs} +3 -3
- package/dist/{gen-DiTZlDx8.mjs → gen-aOtHhZLD.mjs} +1 -1
- package/dist/gen-vhBDHs3q.mjs +1 -0
- package/dist/{github-cmd-DPmby8x-.mjs → github-cmd-BR19Ffdz.mjs} +2 -2
- package/dist/{help-9wfMyXHb.mjs → help-DvClCzqL.mjs} +9 -1
- package/dist/help-fKPzcTJv.mjs +1 -0
- package/dist/index.mjs +16 -206
- package/dist/{info-BWEWaOBo.mjs → info-P6MBiVJi.mjs} +2 -2
- package/dist/{init-BuTPVLPO.mjs → init-C8YpkGIP.mjs} +63 -18
- package/dist/installed-packages-tfmYd-cC.mjs +198 -0
- package/dist/{link-BiesPyT4.mjs → link-Dyz9IGcM.mjs} +3 -3
- package/dist/{list-CkonftPQ.mjs → list-VGYBMjmx.mjs} +4 -4
- package/dist/{login-BSOSah1j.mjs → login-CWFr-G2I.mjs} +3 -3
- package/dist/login-DECm3e9b.mjs +1 -0
- package/dist/{logs-HOBUnroa.mjs → logs-kS1wuR4b.mjs} +3 -3
- package/dist/module-references-DWQmO6TW.mjs +27 -0
- package/dist/{mysql-sql-CB52k8tQ.mjs → mysql-lock-D8xtnI-D.mjs} +1 -118
- package/dist/mysql-sql-BIE7bc4Z.mjs +124 -0
- package/dist/{operator-ai-logging-ZDqqhnIq.mjs → operator-ai-logging-DD0n6zc2.mjs} +3 -3
- package/dist/{operator-args-DCkWbgT-.mjs → operator-args-nvetCWuz.mjs} +1 -1
- package/dist/{operator-auth-BjoPLgja.mjs → operator-auth-DMvn-y9X.mjs} +1 -1
- package/dist/{operator-client-DzebIntv.mjs → operator-client-dFNnXfyB.mjs} +4 -3
- package/dist/operator-cmd-CVfK5U0B.mjs +1 -0
- package/dist/{operator-cmd-AZoeI9Pl.mjs → operator-cmd-a7yOf2tH.mjs} +13 -9
- package/dist/{operator-security-Bo26FP01.mjs → operator-security-D5MToU0p.mjs} +1 -1
- package/dist/pages/client.mjs +77 -9
- package/dist/pages/index.d.mts +6 -0
- package/dist/pages/index.mjs +276 -6
- package/dist/pages/protocol.mjs +1 -1
- package/dist/platform-args-CMwMoiLp.mjs +1 -0
- package/dist/{platform-args-lwCyQ6Xy.mjs → platform-args-CvZSuhYS.mjs} +1 -1
- package/dist/{platform-auth-config-DLRMPw1G.mjs → platform-auth-config-CpszX-Ne.mjs} +7 -7
- package/dist/{platform-auth-protection-HSmLmD3d.mjs → platform-auth-protection-DA6Tw8Og.mjs} +5 -5
- package/dist/{platform-auth-recovery-BXPhTlKa.mjs → platform-auth-recovery-Cztrb1JC.mjs} +4 -4
- package/dist/{platform-cmd-DJ-fOYhL.mjs → platform-cmd-m6Asj6nO.mjs} +6 -6
- package/dist/{platform-cmd-CqRjxFEU.mjs → platform-cmd-u1j88ggF.mjs} +1 -1
- package/dist/{platform-domain-CRsRJOws.mjs → platform-domain-DJSznNTA.mjs} +2 -2
- package/dist/{platform-lifecycle-bx_kpqo7.mjs → platform-lifecycle-BC-9p58d.mjs} +1 -1
- package/dist/{platform-lifecycle-fau3VKv6.mjs → platform-lifecycle-GFeXv3NC.mjs} +58 -11
- package/dist/{platform-management-BRGhD-oF.mjs → platform-management-BwHkz46V.mjs} +1 -1
- package/dist/{platform-management-CnKBdDx5.mjs → platform-management-DX1zINou.mjs} +4 -4
- package/dist/{platform-plans-config-2C3_5EDs.mjs → platform-plans-config-DiydtNKY.mjs} +3 -3
- package/dist/{platform-recovery-poxgOOAY.mjs → platform-recovery-CnzBbudV.mjs} +2 -2
- package/dist/{platform-setup-DYylapHD.mjs → platform-setup-Lph9i-rh.mjs} +1 -1
- package/dist/{plugin-inference-7O11_E4H.mjs → plugin-inference-COlq96WJ.mjs} +2 -27
- package/dist/prepare-DcwigRUS.mjs +1 -0
- package/dist/{prepare-DWjn1Lzd.mjs → prepare-WvijE289.mjs} +1 -1
- package/dist/{prepare-BbvlKreR.mjs → prepare-co1o1FFd.mjs} +1 -1
- package/dist/{project-cmd-DyUEFi2b.mjs → project-cmd-BWJTplpc.mjs} +18 -18
- package/dist/{project-security-DZEQgnsS.mjs → project-security-BV1xfj1K.mjs} +1 -1
- package/dist/{project-security--tYGFPGo.mjs → project-security-CY_aahvW.mjs} +2 -2
- package/dist/{project-team-BszTHgzC.mjs → project-team-BlIFXlmT.mjs} +2 -2
- package/dist/{project-token-DBDy4NdV.mjs → project-token-CMsB7I1-.mjs} +2 -2
- package/dist/{project-zero-trust-D9sUouij.mjs → project-zero-trust-BI6pdpx4.mjs} +2 -2
- package/dist/{protocol-CE3wP-H1.mjs → protocol-4rEnumif.mjs} +10 -3
- package/dist/{redirect-DD825Stf.mjs → redirect-Dyvuil0Q.mjs} +5 -2
- package/dist/{requests-CBokjiOi.mjs → requests-CfmJxNYg.mjs} +2 -2
- package/dist/{rollback-CEeHNFUn.mjs → rollback-DL5HuAsM.mjs} +3 -3
- package/dist/{runner-mysql-3XDKrn-g.mjs → runner-mysql-D549vGGm.mjs} +2 -1
- package/dist/{runner-mysql-r688x6Y9.mjs → runner-mysql-DOjbj-N1.mjs} +1 -1
- package/dist/runtime/db/migrations/mysql-handler.mjs +2 -1
- package/dist/runtime/routing/index.mjs +2 -2
- package/dist/{secret-Deqo3n_N.mjs → secret-C-WBaUSS.mjs} +3 -3
- package/docs/guide/jobs.md +1 -1
- package/docs/guide/pages-routing/actions-and-forms.md +36 -15
- package/docs/guide/pages-routing/errors.md +3 -1
- package/docs/guide/pages-routing/overview.md +20 -0
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/platform/installation/maintenance.md +3 -3
- package/docs/guide/queues.md +1 -1
- package/docs/integrations/frameworks/sveltekit.md +1 -1
- package/docs/reference/api/pages.md +4 -0
- package/docs/reference/cli/database.md +42 -6
- package/docs/reference/cli/platform-security.md +1 -1
- package/docs/reference/cli/platform-zero-trust.md +4 -3
- package/docs/reference/cli/setup.md +4 -0
- package/package.json +7 -7
- package/dist/cf-build-output-Dy7N0hQN.mjs +0 -1
- package/dist/cloudflare-operations-dpRD-2Px.mjs +0 -1
- package/dist/gen-CQDiPi8m.mjs +0 -1
- package/dist/help-Dy3w4rPq.mjs +0 -1
- package/dist/login-DWCZeCX9.mjs +0 -1
- package/dist/operator-cmd-DEnHFmJF.mjs +0 -1
- package/dist/platform-args-DNbNZ_RR.mjs +0 -1
- package/dist/prepare-BmG2E6TI.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as parseDbArgs } from "./db-args-CiQVg8SJ.mjs";
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { n as isD1Bookmark } from "./cf-command-values-5BPBRc9Z.mjs";
|
|
2
|
+
import { parseArgs } from "node:util";
|
|
3
|
+
// src/cli/db-args.ts
|
|
4
|
+
const dbSubcommands = [
|
|
5
|
+
{
|
|
6
|
+
name: "push",
|
|
7
|
+
description: "Push schema to the development database (no migration files)"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "generate",
|
|
11
|
+
description: "Generate SQL migrations from schema changes"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "status",
|
|
15
|
+
description: "Show migration status (local + remote)"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "reset",
|
|
19
|
+
description: "Reset local DB and re-run migrations"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "seed",
|
|
23
|
+
description: "Reset local DB, run migrations, and seed",
|
|
24
|
+
flags: [{
|
|
25
|
+
name: "--file",
|
|
26
|
+
arg: "<path>",
|
|
27
|
+
description: "Seed from a specific file"
|
|
28
|
+
}]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "execute",
|
|
32
|
+
arg: "<sql>",
|
|
33
|
+
description: "Run SQL against the database (use --remote for the deployed database)",
|
|
34
|
+
flags: [{
|
|
35
|
+
name: "--remote",
|
|
36
|
+
description: "Run against the deployed database"
|
|
37
|
+
}, {
|
|
38
|
+
name: "--yes",
|
|
39
|
+
description: "Skip the confirmation prompt"
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "migrate",
|
|
44
|
+
description: "Apply pending migrations",
|
|
45
|
+
flags: [{
|
|
46
|
+
name: "--remote",
|
|
47
|
+
description: "Apply to the remote database"
|
|
48
|
+
}]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "studio",
|
|
52
|
+
description: "Open Drizzle Studio against the database (use --remote for the deployed PostgreSQL or MySQL database)",
|
|
53
|
+
flags: [{
|
|
54
|
+
name: "--remote",
|
|
55
|
+
description: "Open Studio against the deployed database"
|
|
56
|
+
}]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "set-url",
|
|
60
|
+
description: "Update the external database URL for deployment"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "connect",
|
|
64
|
+
arg: "[connection-string]",
|
|
65
|
+
description: "Connect or provision an external database",
|
|
66
|
+
flags: [
|
|
67
|
+
{
|
|
68
|
+
name: "--provider",
|
|
69
|
+
arg: "<name-or-module>",
|
|
70
|
+
description: "Provision with an adapter"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "--name",
|
|
74
|
+
arg: "<name>",
|
|
75
|
+
description: "Provider project/database name"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "--region",
|
|
79
|
+
arg: "<region>",
|
|
80
|
+
description: "Provider region identifier"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "--local-only",
|
|
84
|
+
description: "Do not sync a linked Void project"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "restore",
|
|
90
|
+
description: "Restore the deployed D1 database to an earlier point (direct Cloudflare)",
|
|
91
|
+
flags: [
|
|
92
|
+
{
|
|
93
|
+
name: "--bookmark",
|
|
94
|
+
arg: "<bookmark>",
|
|
95
|
+
description: "Restore point printed by deploy (or use --timestamp)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "--timestamp",
|
|
99
|
+
arg: "<iso-time>",
|
|
100
|
+
description: "Time to restore to, with Z or an offset (or use --bookmark)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "--platform",
|
|
104
|
+
arg: "cloudflare",
|
|
105
|
+
description: "Restore after a one-off deploy with --platform cloudflare"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "--yes",
|
|
109
|
+
description: "Skip the confirmation prompt"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "rename-migrations",
|
|
115
|
+
description: "Rename migrations to timestamp-based format"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "export",
|
|
119
|
+
description: "Export local database as SQL",
|
|
120
|
+
flags: [
|
|
121
|
+
{
|
|
122
|
+
name: "--output",
|
|
123
|
+
arg: "<path>",
|
|
124
|
+
description: "Export to a specific file path"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "--no-data",
|
|
128
|
+
description: "Schema only (no INSERT statements)"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "--no-schema",
|
|
132
|
+
description: "Data only (no CREATE TABLE)"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "--table",
|
|
136
|
+
arg: "<name>",
|
|
137
|
+
description: "Export a single table"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
const MAX_POSITIONALS = {
|
|
143
|
+
push: 0,
|
|
144
|
+
generate: 0,
|
|
145
|
+
status: 0,
|
|
146
|
+
reset: 0,
|
|
147
|
+
seed: 0,
|
|
148
|
+
execute: 1,
|
|
149
|
+
migrate: 0,
|
|
150
|
+
studio: 0,
|
|
151
|
+
"set-url": 0,
|
|
152
|
+
connect: 1,
|
|
153
|
+
restore: 0,
|
|
154
|
+
"rename-migrations": 0,
|
|
155
|
+
export: 0
|
|
156
|
+
};
|
|
157
|
+
const ACTION_FLAGS = {
|
|
158
|
+
push: [],
|
|
159
|
+
generate: [],
|
|
160
|
+
status: [],
|
|
161
|
+
reset: ["yes"],
|
|
162
|
+
seed: ["file", "yes"],
|
|
163
|
+
execute: [
|
|
164
|
+
"file",
|
|
165
|
+
"remote",
|
|
166
|
+
"yes",
|
|
167
|
+
"json"
|
|
168
|
+
],
|
|
169
|
+
migrate: ["remote"],
|
|
170
|
+
studio: ["remote"],
|
|
171
|
+
"set-url": [],
|
|
172
|
+
connect: [
|
|
173
|
+
"provider",
|
|
174
|
+
"name",
|
|
175
|
+
"region",
|
|
176
|
+
"local-only"
|
|
177
|
+
],
|
|
178
|
+
restore: [
|
|
179
|
+
"bookmark",
|
|
180
|
+
"timestamp",
|
|
181
|
+
"platform",
|
|
182
|
+
"yes"
|
|
183
|
+
],
|
|
184
|
+
"rename-migrations": [],
|
|
185
|
+
export: [
|
|
186
|
+
"output",
|
|
187
|
+
"no-data",
|
|
188
|
+
"no-schema",
|
|
189
|
+
"table"
|
|
190
|
+
]
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Read a restore time as a UTC ISO string. A time without a zone would depend on where the
|
|
194
|
+
* command runs, `new Date` rolls impossible dates over (Feb 30 becomes Mar 2), and it keeps only
|
|
195
|
+
* milliseconds, so all three are rejected instead of restoring to a moment the user did not write.
|
|
196
|
+
*/
|
|
197
|
+
function parseRestoreTime(value) {
|
|
198
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(?:Z|([+-])(\d{2}):(\d{2}))$/i.exec(value);
|
|
199
|
+
const time = new Date(value);
|
|
200
|
+
if (!match || Number.isNaN(time.getTime())) return;
|
|
201
|
+
const offsetMinutes = match[7] ? (match[7] === "-" ? -1 : 1) * (Number(match[8]) * 60 + Number(match[9])) : 0;
|
|
202
|
+
const written = new Date(time.getTime() + offsetMinutes * 6e4);
|
|
203
|
+
return [
|
|
204
|
+
written.getUTCFullYear(),
|
|
205
|
+
written.getUTCMonth() + 1,
|
|
206
|
+
written.getUTCDate(),
|
|
207
|
+
written.getUTCHours(),
|
|
208
|
+
written.getUTCMinutes(),
|
|
209
|
+
written.getUTCSeconds()
|
|
210
|
+
].every((field, index) => field === Number(match[index + 1] ?? 0)) ? time.toISOString() : void 0;
|
|
211
|
+
}
|
|
212
|
+
function isDbAction(value) {
|
|
213
|
+
return value !== void 0 && Object.hasOwn(MAX_POSITIONALS, value);
|
|
214
|
+
}
|
|
215
|
+
function parseDbArgs(args) {
|
|
216
|
+
const { values, positionals } = parseArgs({
|
|
217
|
+
args,
|
|
218
|
+
options: {
|
|
219
|
+
file: { type: "string" },
|
|
220
|
+
output: { type: "string" },
|
|
221
|
+
"no-data": { type: "boolean" },
|
|
222
|
+
"no-schema": { type: "boolean" },
|
|
223
|
+
table: { type: "string" },
|
|
224
|
+
remote: { type: "boolean" },
|
|
225
|
+
provider: { type: "string" },
|
|
226
|
+
name: { type: "string" },
|
|
227
|
+
region: { type: "string" },
|
|
228
|
+
"local-only": { type: "boolean" },
|
|
229
|
+
yes: { type: "boolean" },
|
|
230
|
+
json: { type: "boolean" },
|
|
231
|
+
bookmark: { type: "string" },
|
|
232
|
+
timestamp: { type: "string" },
|
|
233
|
+
platform: { type: "string" }
|
|
234
|
+
},
|
|
235
|
+
allowPositionals: true,
|
|
236
|
+
strict: true
|
|
237
|
+
});
|
|
238
|
+
const [action, ...rest] = positionals;
|
|
239
|
+
if (!isDbAction(action)) throw new Error("db: Usage: void db <push|generate|status|reset|seed|execute|migrate|studio|export|connect|set-url|restore|rename-migrations>.");
|
|
240
|
+
if (action === "export" && values.remote) throw new Error("db: `void db export` reads only the local database; --remote is not supported.");
|
|
241
|
+
const unsupported = Object.keys(values).find((flag) => !ACTION_FLAGS[action].includes(flag));
|
|
242
|
+
if (unsupported) throw new Error(`db: \`void db ${action}\` does not support --${unsupported}.`);
|
|
243
|
+
const maxPositionals = MAX_POSITIONALS[action];
|
|
244
|
+
if (rest.length > maxPositionals) throw new Error(`db: Unexpected argument '${rest[maxPositionals]}'.`);
|
|
245
|
+
switch (action) {
|
|
246
|
+
case "reset": return {
|
|
247
|
+
action,
|
|
248
|
+
yes: values.yes
|
|
249
|
+
};
|
|
250
|
+
case "seed": return {
|
|
251
|
+
action,
|
|
252
|
+
file: values.file,
|
|
253
|
+
yes: values.yes
|
|
254
|
+
};
|
|
255
|
+
case "execute": {
|
|
256
|
+
const [command] = rest;
|
|
257
|
+
if (!command && !values.file) throw new Error("db: Usage: void db execute <sql> or void db execute --file <path>.");
|
|
258
|
+
if (command && values.file) throw new Error("db: Provide either SQL inline or --file, not both.");
|
|
259
|
+
return {
|
|
260
|
+
action,
|
|
261
|
+
command,
|
|
262
|
+
file: values.file,
|
|
263
|
+
remote: values.remote,
|
|
264
|
+
yes: values.yes,
|
|
265
|
+
json: values.json
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
case "migrate":
|
|
269
|
+
case "studio": return {
|
|
270
|
+
action,
|
|
271
|
+
remote: values.remote
|
|
272
|
+
};
|
|
273
|
+
case "connect": {
|
|
274
|
+
const [url] = rest;
|
|
275
|
+
if (url && values.provider) throw new Error("db: Provide either a connection string or --provider, not both.");
|
|
276
|
+
return {
|
|
277
|
+
action,
|
|
278
|
+
url,
|
|
279
|
+
provider: values.provider,
|
|
280
|
+
name: values.name,
|
|
281
|
+
region: values.region,
|
|
282
|
+
localOnly: values["local-only"]
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
case "restore": {
|
|
286
|
+
if (values.platform !== void 0 && values.platform !== "cloudflare") throw new Error("db: `void db restore --platform` accepts only 'cloudflare'.");
|
|
287
|
+
const platform = values.platform;
|
|
288
|
+
const bookmark = values.bookmark?.trim();
|
|
289
|
+
const timestamp = values.timestamp?.trim();
|
|
290
|
+
if (bookmark && !timestamp) {
|
|
291
|
+
if (!isD1Bookmark(bookmark)) throw new Error("db: --bookmark must be a D1 restore point printed by `void deploy`, for example 00000085-0000024c-00004ef2.");
|
|
292
|
+
return {
|
|
293
|
+
action,
|
|
294
|
+
target: { bookmark },
|
|
295
|
+
platform,
|
|
296
|
+
yes: values.yes
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
if (timestamp && !bookmark) {
|
|
300
|
+
const time = parseRestoreTime(timestamp);
|
|
301
|
+
if (!time) throw new Error("db: --timestamp must be a valid ISO 8601 time with Z or an offset and at most millisecond precision, for example 2026-10-16T09:30:00Z.");
|
|
302
|
+
return {
|
|
303
|
+
action,
|
|
304
|
+
target: { timestamp: time },
|
|
305
|
+
platform,
|
|
306
|
+
yes: values.yes
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
throw new Error("db: Usage: void db restore --bookmark <bookmark> or void db restore --timestamp <iso-time>.");
|
|
310
|
+
}
|
|
311
|
+
case "export": return {
|
|
312
|
+
action,
|
|
313
|
+
output: values.output,
|
|
314
|
+
noData: values["no-data"],
|
|
315
|
+
noSchema: values["no-schema"],
|
|
316
|
+
table: values.table
|
|
317
|
+
};
|
|
318
|
+
default: return { action };
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
export { parseDbArgs as n, dbSubcommands as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as log, O as cancel, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken } from "./auth-CqwJwItO.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
4
4
|
import { a as createSpinner, g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
5
5
|
import { o as removeProjectConfig, r as readProjectConfig } from "./project-dh9431bN.mjs";
|
|
6
6
|
import { a as resolveProjectBySlug } from "./resolve-project-8WZ3iVmr.mjs";
|
|
@@ -3,20 +3,20 @@ import { A as confirm, K as select, L as log, tt as isCancel } from "./dist-Cr_x
|
|
|
3
3
|
import { a as join, c as resolve, n as dirname, o as normalize, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
4
4
|
import { a as persistCloudflareConfig, c as stashCloudflareDeployPointer, i as materializeCloudflareConfig } from "./cloudflare-config-D9UFH_A5.mjs";
|
|
5
5
|
import { m as resolveBindingNames, p as readConfig, r as convertHeadersConfig, u as isNodeTarget } from "./config-Dv5jri1-.mjs";
|
|
6
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
6
|
+
import { r as detectFramework } from "./plugin-inference-COlq96WJ.mjs";
|
|
7
7
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
8
8
|
import { a as buildEnv, i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, n as readVersionMetadataBinding, r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-DqgLa6gc.mjs";
|
|
9
|
-
import { a as getApiUrl, c as getToken, l as getTokenSource } from "./auth-
|
|
10
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
9
|
+
import { a as getApiUrl, c as getToken, l as getTokenSource } from "./auth-CqwJwItO.mjs";
|
|
10
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
11
11
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
12
12
|
import { r as discoverFrameworkWranglerFiles, t as migrateLegacyVoidConfig } from "./migrate-BNZL1hee.mjs";
|
|
13
13
|
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
|
|
14
14
|
import { a as FRAMEWORK_PRESETS, c as hasBackendFiles, i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, o as detectPreset, s as formatProjectCommand, t as createCloudflareProcessRunner, u as resolveProjectCommand } from "./cloudflare-process-60r4Z2Zf.mjs";
|
|
15
15
|
import { n as redactMessage } from "./env-mask-D31Qztl9.mjs";
|
|
16
|
-
import { a as assertSandboxNamespaceConfig, c as resolveSandboxConfig, d as hasEmailHandlers, i as SANDBOX_MIGRATION_TAG, l as sandboxContainerConfig, o as hasSandboxSqliteMigration, s as requiresSandboxPlatformImage, t as analyzeApplicationSync } from "./application-analysis-
|
|
16
|
+
import { a as assertSandboxNamespaceConfig, c as resolveSandboxConfig, d as hasEmailHandlers, i as SANDBOX_MIGRATION_TAG, l as sandboxContainerConfig, o as hasSandboxSqliteMigration, s as requiresSandboxPlatformImage, t as analyzeApplicationSync } from "./application-analysis-DVeN8yoi.mjs";
|
|
17
17
|
import { A as syncWranglerWebSockets, C as readWranglerManagedQueueCleanupCandidates, D as sameMigrationsDir, E as resolveLiveBindingConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, N as writeWranglerPublishedTrafficSnapshot, a as LIVE_MIGRATION_TAG, c as bindingEntriesForField, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, o as acknowledgeWranglerManagedQueueRemovals, r as FRIENDLY_BINDING_NAMES, v as readExistingLiveBindingConfig, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-DVe5KV5G.mjs";
|
|
18
|
-
import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-
|
|
19
|
-
import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-
|
|
18
|
+
import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-BWBsxOww.mjs";
|
|
19
|
+
import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-KKw4Y84h.mjs";
|
|
20
20
|
import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate } from "./isr-config-DiTnL9Tb.mjs";
|
|
21
21
|
import { i as otherQueueConsumers, n as chooseCloudflareQueueName, o as scopedCloudflareQueueName, r as cloudflareQueueName } from "./dispatch-DIhDA3NI.mjs";
|
|
22
22
|
import { a as checkCloudflareProvisionDrift, d as isRealD1Id, h as provisionCloudflareResources, i as assertValidResourceName, p as isRealKvId, s as deleteEnvVarCaseAware, u as isQueueConfirmedAbsent, y as resolveWorkersDevComplianceRegion } from "./provision-Bh44omGA.mjs";
|
|
@@ -27,31 +27,31 @@ import { a as createSpinner, c as formatCount, g as note, p as getErrorMessage }
|
|
|
27
27
|
import { t as collectMigrations } from "./collect-rNLybAnF.mjs";
|
|
28
28
|
import { n as openMigrationValidationDatabase, t as SqliteMigrationError } from "./sqlite-validation-CLJXXN93.mjs";
|
|
29
29
|
import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV, t as CLOUDFLARE_DEPLOY_BUILD_ENV, u as resolveRemoteMode } from "./env-EjHqc7m9.mjs";
|
|
30
|
-
import { n as prepareCfFrameworkBuildOutput, r as prepareCfStaticBuildOutput, t as prepareCfBuildOutput } from "./cf-build-output-
|
|
30
|
+
import { n as prepareCfFrameworkBuildOutput, r as prepareCfStaticBuildOutput, t as prepareCfBuildOutput } from "./cf-build-output-Cso7Vh-t.mjs";
|
|
31
31
|
import { c as VOID_INTERNAL_WORKER_FIRST, d as hasDocumentRoutes, f as resolveAssetConfig, i as readGeneratedAssetHeadersFile, l as edgeRulesNeedWorker, u as hasApiRoutes } from "./headers-DqBsjDxg.mjs";
|
|
32
32
|
import { o as validateSsrEntry } from "./entry-Bwb9ev8K.mjs";
|
|
33
|
-
import { v as require_ci_info } from "./project-security
|
|
33
|
+
import { v as require_ci_info } from "./project-security-CY_aahvW.mjs";
|
|
34
34
|
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, t as CloudflareAuthenticationError } from "./cloudflare-auth-eWfhdZCk.mjs";
|
|
35
35
|
import { r as trustedCloudflareWorkerAccessHeaders, t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
36
36
|
import { i as safePositional, r as readCfUploadOutput, t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-5BPBRc9Z.mjs";
|
|
37
37
|
import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-D271BTiw.mjs";
|
|
38
38
|
import { n as getCfCliVersion, r as getVoidUserAgent, t as publishCloudflareWorkerSettings } from "./cf-worker-settings-BBdlhm9U.mjs";
|
|
39
39
|
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
40
|
-
import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-
|
|
40
|
+
import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-BIRQkYwL.mjs";
|
|
41
41
|
import { i as validateMigrations, t as assertJournalCoherence } from "./validate-CtBWCzez.mjs";
|
|
42
42
|
import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-2ENfCCih.mjs";
|
|
43
43
|
import { t as sanitizeTerminalLogText } from "./terminal-log-text-CfS2JKM6.mjs";
|
|
44
|
-
import { a as runMySqlMigrations } from "./runner-mysql-
|
|
44
|
+
import { a as runMySqlMigrations } from "./runner-mysql-D549vGGm.mjs";
|
|
45
45
|
import { i as runPgMigrations } from "./runner-pg-Buzw17hl.mjs";
|
|
46
|
-
import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, f as collectPrerenderPaths, h as prerenderPagesNode, i as createNodeEmailDns, m as prerenderPages, n as SEND_EMAIL_BINDING, o as formatSendingOnlyPaidHint, p as collectPrerenderPathsNode, r as applyEmailSetup, s as isAwaitingSendingOnboarding, t as EMAIL_FROM_VAR, u as renderAddressMap } from "./email-cloudflare-
|
|
47
|
-
import { n as printDeploySecurityNotice } from "./deploy-security-notice-
|
|
46
|
+
import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, f as collectPrerenderPaths, h as prerenderPagesNode, i as createNodeEmailDns, m as prerenderPages, n as SEND_EMAIL_BINDING, o as formatSendingOnlyPaidHint, p as collectPrerenderPathsNode, r as applyEmailSetup, s as isAwaitingSendingOnboarding, t as EMAIL_FROM_VAR, u as renderAddressMap } from "./email-cloudflare-DeYH3Ke7.mjs";
|
|
47
|
+
import { n as printDeploySecurityNotice } from "./deploy-security-notice-IRGy6Edf.mjs";
|
|
48
48
|
import { a as needsWrapper, r as cleanupWrapper, t as bundleEntry } from "./wrapper-CcMYpOS8.mjs";
|
|
49
49
|
import { t as assertNoPrerenderFailures } from "./prerender-render-BAdYhivW.mjs";
|
|
50
50
|
import { t as collectGitDeployMetadata } from "./git-metadata-BEokJ6US.mjs";
|
|
51
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-
|
|
51
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-DHklo7Rg.mjs";
|
|
52
52
|
import { r as getPackageDir } from "./agents-64FnLwxP.mjs";
|
|
53
53
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
54
|
-
import { t as promptForLoginToken } from "./login-
|
|
54
|
+
import { t as promptForLoginToken } from "./login-CWFr-G2I.mjs";
|
|
55
55
|
import { s as listPlatformConnections } from "./platform-registry-DHH6fivm.mjs";
|
|
56
56
|
import { t as getRequestedProjectSlug } from "./resolve-project-8WZ3iVmr.mjs";
|
|
57
57
|
import { createRequire } from "node:module";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./deploy-transport-BKP_oV9q.mjs";
|
|
2
|
-
export { i as checkWranglerMigrationApplySet, t as parseRootWranglerConfig, r as runDeploy } from "./deploy-
|
|
2
|
+
export { i as checkWranglerMigrationApplySet, t as parseRootWranglerConfig, r as runDeploy } from "./deploy-BgSbagIP.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, c as resolve, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { m as needsApplicationDatabase } from "./plugin-inference-COlq96WJ.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
|
|
4
4
|
import { t as discoverSchema } from "./discover-IcspacCg.mjs";
|
|
5
5
|
import { t as findEnvFile } from "./env-types-D2hBodXP.mjs";
|
|
@@ -10,22 +10,22 @@ import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
|
10
10
|
import { s as shouldLinkDeployProject, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-dh9431bN.mjs";
|
|
11
11
|
import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-DVe5KV5G.mjs";
|
|
12
12
|
import { n as buildMigrationPlanBundle } from "./plan-BOD70XGS.mjs";
|
|
13
|
-
import { l as getTokenSource } from "./auth-
|
|
13
|
+
import { l as getTokenSource } from "./auth-CqwJwItO.mjs";
|
|
14
14
|
import { i as collectFiles, t as collectPages } from "./isr-config-DiTnL9Tb.mjs";
|
|
15
15
|
import { a as buildEnv } from "./version-metadata-DqgLa6gc.mjs";
|
|
16
16
|
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-BSoW3QCB.mjs";
|
|
17
17
|
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-CtBWCzez.mjs";
|
|
18
18
|
import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
19
19
|
import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-CCR99eQY.mjs";
|
|
20
|
-
import { c as parsePlatformErrorBody, i as isCliOutdatedError, l as platformErrorMessage, n as PlatformApiError, o as isHeadersTimeoutError } from "./client-
|
|
20
|
+
import { c as parsePlatformErrorBody, i as isCliOutdatedError, l as platformErrorMessage, n as PlatformApiError, o as isHeadersTimeoutError } from "./client-DE2m2ldh.mjs";
|
|
21
21
|
import { a as createSpinner, b as sanitizeTerminalText, c as formatCount, g as note, h as import_picocolors, p as getErrorMessage, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
22
|
-
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-
|
|
22
|
+
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-8FdN6D2i.mjs";
|
|
23
23
|
import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-60r4Z2Zf.mjs";
|
|
24
24
|
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-D-v5_CWL.mjs";
|
|
25
25
|
import { a as needsWrapper, i as generateWrapper } from "./wrapper-CcMYpOS8.mjs";
|
|
26
26
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
27
27
|
import { o as uploadAssetsToR2 } from "./direct-r2-upload-DFXLWfXV.mjs";
|
|
28
|
-
import { n as printDeploySecurityNotice } from "./deploy-security-notice-
|
|
28
|
+
import { n as printDeploySecurityNotice } from "./deploy-security-notice-IRGy6Edf.mjs";
|
|
29
29
|
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-BKP_oV9q.mjs";
|
|
30
30
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
|
|
31
31
|
import { createDeployArtifact, createDeployUploadPayload } from "@void/deploy-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
2
|
-
import { n as PlatformApiError } from "./client-
|
|
2
|
+
import { n as PlatformApiError } from "./client-DE2m2ldh.mjs";
|
|
3
3
|
import { r as cleanLine } from "./output-BZLnu0z8.mjs";
|
|
4
|
-
import { g as urgentCounts, i as budgetSkipCopy, n as budgetAhead, r as budgetCause } from "./project-security
|
|
4
|
+
import { g as urgentCounts, i as budgetSkipCopy, n as budgetAhead, r as budgetCause } from "./project-security-CY_aahvW.mjs";
|
|
5
5
|
import { SECURITY_PROVIDER_NAMES } from "@void/platform/security-models";
|
|
6
6
|
// src/cli/deploy-security-notice.ts
|
|
7
7
|
/** The read is best-effort: it may add this long to CLI exit, never to the deploy. */
|
package/dist/deploy.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as join, c as resolve } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { t as analyzeApplication } from "./application-routing-
|
|
2
|
+
import { t as analyzeApplication } from "./application-routing-KKw4Y84h.mjs";
|
|
3
3
|
import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers-DqBsjDxg.mjs";
|
|
4
4
|
import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName } from "./isr-config-DiTnL9Tb.mjs";
|
|
5
|
-
import { t as prepareCfBuildOutput$1 } from "./cf-build-output-
|
|
6
|
-
import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-
|
|
5
|
+
import { t as prepareCfBuildOutput$1 } from "./cf-build-output-Cso7Vh-t.mjs";
|
|
6
|
+
import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-BWBsxOww.mjs";
|
|
7
7
|
import { o as detectPreset } from "./cloudflare-process-60r4Z2Zf.mjs";
|
|
8
8
|
import { p as readConfig, u as isNodeTarget } from "./config-Dv5jri1-.mjs";
|
|
9
|
-
import { d as hasEmailHandlers } from "./application-analysis-
|
|
9
|
+
import { d as hasEmailHandlers } from "./application-analysis-DVeN8yoi.mjs";
|
|
10
10
|
import { o as validateSsrEntry } from "./entry-Bwb9ev8K.mjs";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { createDeployArtifact } from "@void/deploy-core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as log } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken } from "./auth-CqwJwItO.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
4
4
|
import { g as note, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
5
5
|
import { n as readDeploymentPlatform } from "./project-dh9431bN.mjs";
|
|
6
6
|
import { i as resolveCommandProjectId } from "./resolve-project-8WZ3iVmr.mjs";
|
|
@@ -25,7 +25,7 @@ async function runDomainCommand(root, args) {
|
|
|
25
25
|
}
|
|
26
26
|
async function runCloudflareDomainCommand(root, args) {
|
|
27
27
|
if (args.projectSlug) throw new Error("domain: --project selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
28
|
-
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-
|
|
28
|
+
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-ByjFGats.mjs");
|
|
29
29
|
if (args.subcommand === "add") {
|
|
30
30
|
const result = await changeCloudflareDomain(root, args.hostname, "add");
|
|
31
31
|
note("Cloudflare Custom Domains manages the DNS record and TLS certificate in the zone on your account.", "Cloudflare Domain");
|
|
@@ -2,11 +2,11 @@ import { A as confirm, L as log, U as password, tt as isCancel } from "./dist-Cr
|
|
|
2
2
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { p as readConfig } from "./config-Dv5jri1-.mjs";
|
|
4
4
|
import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
|
|
5
|
-
import { f as scanEmailHandlersSync } from "./application-analysis-
|
|
6
|
-
import { c as getToken, u as openBrowser } from "./auth-
|
|
7
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
8
|
-
import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-
|
|
9
|
-
import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, i as createNodeEmailDns, l as probeMx, o as formatSendingOnlyPaidHint, r as applyEmailSetup, s as isAwaitingSendingOnboarding, u as renderAddressMap } from "./email-cloudflare-
|
|
5
|
+
import { f as scanEmailHandlersSync } from "./application-analysis-DVeN8yoi.mjs";
|
|
6
|
+
import { c as getToken, u as openBrowser } from "./auth-CqwJwItO.mjs";
|
|
7
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
8
|
+
import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-BgSbagIP.mjs";
|
|
9
|
+
import { a as emailConfigInputs, c as preflightEmail, d as renderEmailChecklist, i as createNodeEmailDns, l as probeMx, o as formatSendingOnlyPaidHint, r as applyEmailSetup, s as isAwaitingSendingOnboarding, u as renderAddressMap } from "./email-cloudflare-DeYH3Ke7.mjs";
|
|
10
10
|
import { a as createSpinner, f as formatUrl, g as note, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
11
11
|
import { i as resolveCommandProjectId } from "./resolve-project-8WZ3iVmr.mjs";
|
|
12
12
|
import { o as resolveDeployTransport } from "./deploy-transport-BKP_oV9q.mjs";
|
|
@@ -7,8 +7,8 @@ import { i as readProjectIdField } from "./project-dh9431bN.mjs";
|
|
|
7
7
|
import { p as findBindingNameOwner, u as ensureWranglerCompat } from "./wrangler-DVe5KV5G.mjs";
|
|
8
8
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
9
9
|
import { n as scopedAccessCredentials } from "./cf-access-DmkKPcAI.mjs";
|
|
10
|
-
import { n as ensurePlatformProxyAccess } from "./cf-access-
|
|
11
|
-
import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-
|
|
10
|
+
import { n as ensurePlatformProxyAccess } from "./cf-access-DHklo7Rg.mjs";
|
|
11
|
+
import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-CqwJwItO.mjs";
|
|
12
12
|
import { d as stripInternalEnvKeys } from "./env-EjHqc7m9.mjs";
|
|
13
13
|
import { i as collectFiles } from "./isr-config-DiTnL9Tb.mjs";
|
|
14
14
|
import { a as renderPrerenderPaths, i as renderBoundary404, n as outputFileForPath, r as readPrerenderPathsResponse } from "./prerender-render-BAdYhivW.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { H as outro, L as log } from "./dist-Cr_xGE_K.mjs";
|
|
2
2
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-D2hBodXP.mjs";
|
|
4
|
-
import { c as getToken } from "./auth-
|
|
5
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
+
import { c as getToken } from "./auth-CqwJwItO.mjs";
|
|
5
|
+
import { r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
6
6
|
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-D-v5_CWL.mjs";
|
|
7
7
|
import { g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
8
8
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-dh9431bN.mjs";
|
|
@@ -25,7 +25,7 @@ async function runCheck(root, useRemoteSecrets) {
|
|
|
25
25
|
const platform = readDeploymentPlatform(root);
|
|
26
26
|
if (platform === "none") throw new Error("env: Deployment is disabled. Run `void init` to choose a platform.");
|
|
27
27
|
if (platform === "cloudflare") {
|
|
28
|
-
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
28
|
+
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-ByjFGats.mjs");
|
|
29
29
|
remoteSecrets = await listCloudflareSecrets(resolveCloudflareOperationContext(root));
|
|
30
30
|
} else {
|
|
31
31
|
const token = getToken(root);
|
|
@@ -332,7 +332,7 @@ async function runModel(root, name, columns) {
|
|
|
332
332
|
const existing = readFileSync(barrelPath, "utf8");
|
|
333
333
|
if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
|
|
334
334
|
} else writeFileSync(barrelPath, exportLine + "\n");
|
|
335
|
-
const { prepareProject } = await import("./prepare-
|
|
335
|
+
const { prepareProject } = await import("./prepare-DcwigRUS.mjs");
|
|
336
336
|
await prepareProject(root);
|
|
337
337
|
log.step(`Created ${relative(root, modelPath)}`);
|
|
338
338
|
log.step(`Updated ${relative(root, barrelPath)}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runGenCommand } from "./gen-aOtHhZLD.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
-
import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-
|
|
3
|
-
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-
|
|
2
|
+
import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-CqwJwItO.mjs";
|
|
3
|
+
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-DE2m2ldh.mjs";
|
|
4
4
|
import { t as collectGitDeployMetadata } from "./git-metadata-BEokJ6US.mjs";
|
|
5
5
|
import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
6
6
|
import { r as readProjectConfig } from "./project-dh9431bN.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro } from "./dist-Cr_xGE_K.mjs";
|
|
2
2
|
import { n as getOwnVersion } from "./agents-64FnLwxP.mjs";
|
|
3
|
-
import { n as operatorGroups, t as operatorCommands } from "./operator-args-
|
|
3
|
+
import { n as operatorGroups, t as operatorCommands } from "./operator-args-nvetCWuz.mjs";
|
|
4
4
|
import { f as formatUrl, g as note, h as import_picocolors, m as helpLine, t as categoryTitle, x as sectionTitle } from "./output-BZLnu0z8.mjs";
|
|
5
5
|
// src/cli/ascii.ts
|
|
6
6
|
const asciiArts = [
|
|
@@ -1581,6 +1581,10 @@ const HELP_TREE = {
|
|
|
1581
1581
|
{
|
|
1582
1582
|
command: "--yes",
|
|
1583
1583
|
description: "Skip the confirmation prompt for --remote"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
command: "--json",
|
|
1587
|
+
description: "Write each statement's results to stdout as JSON"
|
|
1584
1588
|
}
|
|
1585
1589
|
],
|
|
1586
1590
|
examples: [
|
|
@@ -1595,6 +1599,10 @@ const HELP_TREE = {
|
|
|
1595
1599
|
{
|
|
1596
1600
|
command: "void db execute --remote \"select count(*) from users\"",
|
|
1597
1601
|
description: "Query the deployed database"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
command: "void db execute --json \"select count(*) as total from users\"",
|
|
1605
|
+
description: "Print the results as JSON for a script"
|
|
1598
1606
|
}
|
|
1599
1607
|
]
|
|
1600
1608
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as printHelpPage } from "./help-DvClCzqL.mjs";
|