void 0.7.9 → 0.7.11
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/{auth-cmd-D3DNf9j9.mjs → auth-cmd-bS88H4Lb.mjs} +3 -3
- package/dist/{better-auth-shared-CjnJZFC0.mjs → better-auth-shared-D2JaoCs4.mjs} +1 -1
- package/dist/{cache-DcDAmion.mjs → cache-DUDCNty6.mjs} +4 -4
- package/dist/{cancel-deploy-CrMlOCW0.mjs → cancel-deploy-DOuSbPwX.mjs} +4 -4
- package/dist/cli/cli.mjs +26 -26
- package/dist/{client-Dw8roLzc.mjs → client-C_DYiXeu.mjs} +150 -89
- package/dist/{config-DqkeX_Fa.mjs → config-CeRQg3Lz.mjs} +1 -1
- package/dist/{config-BzM9Dy7T.mjs → config-DyUSwbeX.mjs} +1 -1
- package/dist/{create-project-CcPOkfA4.mjs → create-project-hvFe6rbI.mjs} +4 -4
- package/dist/{db-Daa0zMHP.mjs → db-j-XdTjQD.mjs} +27 -27
- package/dist/{delete-C96_gt6q.mjs → delete-XyM_VD9o.mjs} +4 -4
- package/dist/{deploy-Bfn434ed.mjs → deploy-CPAEgVQm.mjs} +23 -23
- package/dist/{domain-DUFBO_ob.mjs → domain-Dvj7u8tr.mjs} +4 -4
- package/dist/{drizzle-C-NRqGhx.mjs → drizzle-Cx7cVwrE.mjs} +1 -1
- package/dist/{env-Bt-92Ji0.mjs → env-Bjl0rzuf.mjs} +6 -6
- package/dist/{env-types-DknSA4SO.mjs → env-types-BSQghXbx.mjs} +1 -1
- package/dist/{env-validation-Bc_aiBUm.mjs → env-validation-Buy5pe3u.mjs} +3 -3
- package/dist/{gen-CpeKIqlM.mjs → gen-DU8NIdrH.mjs} +7 -7
- package/dist/{headers-C7Yf6_CN.mjs → headers-CuVHn6Kl.mjs} +2 -2
- package/dist/index.mjs +29 -29
- package/dist/{init-DwJ0Z0SL.mjs → init-iIiQWzyB.mjs} +15 -15
- package/dist/{link-wKnJUEcY.mjs → link-DdXqlUiJ.mjs} +5 -5
- package/dist/{list-BZI7LKvX.mjs → list-9Bxa5Odn.mjs} +4 -4
- package/dist/{login-21aIqVPD.mjs → login-C_MfDjhu.mjs} +3 -3
- package/dist/{logs-CFJ8deEd.mjs → logs-DjqCpEER.mjs} +4 -4
- package/dist/{mcp-CJduPlRn.mjs → mcp-vA0880_K.mjs} +2 -2
- package/dist/{node-DHVCtkgt.mjs → node-DDxMsKPm.mjs} +3 -3
- package/dist/{output-BwlcIYSR.mjs → output-D3g5otMC.mjs} +1 -1
- package/dist/pages/index.mjs +3 -3
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/{plugin-inference-CXUuq0aC.mjs → plugin-inference-BexV6LL3.mjs} +1 -1
- package/dist/{prepare-CKzO06-Z.mjs → prepare-BEkH89oX.mjs} +10 -10
- package/dist/{preset-BhnZpb7t.mjs → preset-CYQh93UF.mjs} +1 -1
- package/dist/{project-cmd-qzFonrph.mjs → project-cmd-CeXO06hG.mjs} +10 -10
- package/dist/{rollback-CyLJaSSS.mjs → rollback-C8OSMxmq.mjs} +4 -4
- package/dist/{runner-BUPRnMFN.mjs → runner-BaWsik5f.mjs} +1 -1
- package/dist/{runner-pg-BI6f6Ncm.mjs → runner-pg-Bd_172vF.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/remote/index.mjs +1 -1
- package/dist/{scan-CWfLxtOe.mjs → scan-CKpylFj9.mjs} +1 -1
- package/dist/{scan-B8iEm8xn.mjs → scan-CkK1Hzpa.mjs} +3 -3
- package/dist/{secret-DAfThcYQ.mjs → secret-NDvlqAN2.mjs} +4 -4
- package/dist/{skills-CbuYOthf.mjs → skills-SAG0WyVn.mjs} +1 -1
- package/dist/{subcommand-prompt-BMS1TNG5.mjs → subcommand-prompt-q9T06dpg.mjs} +2 -2
- package/dist/{validate-CaMavMxu.mjs → validate-DW3ViKTA.mjs} +1 -1
- package/package.json +2 -2
- /package/dist/{cf-access-Dee5cXxL.mjs → cf-access-BW8K93Fm.mjs} +0 -0
- /package/dist/{collect-CjeZgz5D.mjs → collect-HqAuilH6.mjs} +0 -0
- /package/dist/{discover-B7FkXBLB.mjs → discover-CKGQpis8.mjs} +0 -0
- /package/dist/{dist-Dayj3gCK.mjs → dist-D2L3_KTK.mjs} +0 -0
- /package/dist/{dist-DUyXJLkq.mjs → dist-q8b2Mjgb.mjs} +0 -0
- /package/dist/{dotenv-zdFCCgFU.mjs → dotenv-HQNhRalS.mjs} +0 -0
- /package/dist/{log-DXdqnmhF.mjs → log-7ChR5Fbc.mjs} +0 -0
- /package/dist/{magic-string.es-D6g9UnIy.mjs → magic-string.es-DS_lmuBe.mjs} +0 -0
- /package/dist/{project-TqORyHn8.mjs → project-DhB4A8_g.mjs} +0 -0
- /package/dist/{project-tsconfig-DfkESbDL.mjs → project-tsconfig-Bfy55qvs.mjs} +0 -0
- /package/dist/{providers-B3aMxWzP.mjs → providers-BlFNPYen.mjs} +0 -0
- /package/dist/{route-types-Cnqj_8a7.mjs → route-types-qVL-v-CB.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as join, o as relative, r as extname, s as resolve } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as getDatabaseDialect, f as readConfig } from "./config-
|
|
7
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
8
|
-
import { a as writeJournal, i as stripSqlExt, r as readJournal, t as collectMigrations } from "./collect-
|
|
9
|
-
import { n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence } from "./validate-
|
|
10
|
-
import { formatTimestamp } from "./gen-
|
|
2
|
+
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
3
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
4
|
+
import { c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
5
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
6
|
+
import { c as getDatabaseDialect, f as readConfig } from "./config-CeRQg3Lz.mjs";
|
|
7
|
+
import { r as detectFramework } from "./plugin-inference-BexV6LL3.mjs";
|
|
8
|
+
import { a as writeJournal, i as stripSqlExt, r as readJournal, t as collectMigrations } from "./collect-HqAuilH6.mjs";
|
|
9
|
+
import { n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence } from "./validate-DW3ViKTA.mjs";
|
|
10
|
+
import { formatTimestamp } from "./gen-DU8NIdrH.mjs";
|
|
11
11
|
import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
12
12
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
13
13
|
import { execFileSync } from "node:child_process";
|
|
@@ -94,13 +94,13 @@ async function runDbCommand(root, args) {
|
|
|
94
94
|
else await runExport(root, args, dialect);
|
|
95
95
|
}
|
|
96
96
|
async function runPush(root, dialect) {
|
|
97
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
97
|
+
const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
|
|
98
98
|
let configPath;
|
|
99
99
|
if (dialect === "postgresql") configPath = writeDrizzleConfig(root, getPgUrl(root), "postgresql");
|
|
100
100
|
else {
|
|
101
101
|
const { mkdirSync } = await import("node:fs");
|
|
102
102
|
const { dirname } = await import("node:path");
|
|
103
|
-
const { getMiniflareDatabasePath } = await import("./runner-
|
|
103
|
+
const { getMiniflareDatabasePath } = await import("./runner-BaWsik5f.mjs");
|
|
104
104
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
105
105
|
mkdirSync(dirname(dbPath), { recursive: true });
|
|
106
106
|
configPath = writeDrizzleConfig(root, dbPath);
|
|
@@ -117,7 +117,7 @@ async function runPush(root, dialect) {
|
|
|
117
117
|
ye("Done.");
|
|
118
118
|
}
|
|
119
119
|
async function runGenerate(root, dialect) {
|
|
120
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
120
|
+
const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
|
|
121
121
|
const configPath = dialect === "postgresql" ? writeDrizzleConfig(root, "postgresql://dummy", "postgresql") : writeDrizzleConfig(root, ":memory:");
|
|
122
122
|
try {
|
|
123
123
|
runDrizzleKit(root, [
|
|
@@ -157,7 +157,7 @@ async function runStatus(root, dialect) {
|
|
|
157
157
|
localApplied = [];
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
|
-
const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-
|
|
160
|
+
const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BaWsik5f.mjs");
|
|
161
161
|
localApplied = await getAppliedMigrations(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
|
|
162
162
|
}
|
|
163
163
|
const localSet = new Set(localApplied.map((m) => m.name));
|
|
@@ -215,7 +215,7 @@ async function resetDatabase(root, dialect) {
|
|
|
215
215
|
});
|
|
216
216
|
return migrations.length;
|
|
217
217
|
}
|
|
218
|
-
const { getMiniflareDatabasePath, runMigrations } = await import("./runner-
|
|
218
|
+
const { getMiniflareDatabasePath, runMigrations } = await import("./runner-BaWsik5f.mjs");
|
|
219
219
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
220
220
|
rmSync(dbPath, { force: true });
|
|
221
221
|
rmSync(dbPath + "-wal", { force: true });
|
|
@@ -242,7 +242,7 @@ async function runSeed(root, file, dialect) {
|
|
|
242
242
|
ye("Done.");
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-
|
|
245
|
+
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BaWsik5f.mjs");
|
|
246
246
|
const db = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
|
|
247
247
|
try {
|
|
248
248
|
db.exec(sql);
|
|
@@ -265,7 +265,7 @@ async function runExecute(root, command, file, dialect) {
|
|
|
265
265
|
ye("Done.");
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-
|
|
268
|
+
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BaWsik5f.mjs");
|
|
269
269
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
270
270
|
if (!existsSync(dbPath)) {
|
|
271
271
|
R.error("No local database found. Run `void dev` first.");
|
|
@@ -362,7 +362,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
362
362
|
return;
|
|
363
363
|
}
|
|
364
364
|
if (dialect === "postgresql") {
|
|
365
|
-
const { applyPgMigrations } = await import("./runner-pg-
|
|
365
|
+
const { applyPgMigrations } = await import("./runner-pg-Bd_172vF.mjs");
|
|
366
366
|
const applied = await withPgClient(root, async (client) => {
|
|
367
367
|
let existingRows = [];
|
|
368
368
|
try {
|
|
@@ -386,7 +386,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
386
386
|
ye("Done.");
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
|
-
const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-
|
|
389
|
+
const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-BaWsik5f.mjs");
|
|
390
390
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
391
391
|
try {
|
|
392
392
|
const existingRows = await getAppliedMigrations(dbPath);
|
|
@@ -406,7 +406,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
406
406
|
}
|
|
407
407
|
async function runStudio(root, dialect) {
|
|
408
408
|
if (dialect === "postgresql") {
|
|
409
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
409
|
+
const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
|
|
410
410
|
const configPath = writeDrizzleConfig(root, getPgUrl(root), "postgresql");
|
|
411
411
|
R.info("Opening Drizzle Studio...");
|
|
412
412
|
try {
|
|
@@ -420,8 +420,8 @@ async function runStudio(root, dialect) {
|
|
|
420
420
|
}
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
424
|
-
const { getMiniflareDatabasePath } = await import("./runner-
|
|
423
|
+
const { writeDrizzleConfig } = await import("./config-DyUSwbeX.mjs").then((n) => n.t);
|
|
424
|
+
const { getMiniflareDatabasePath } = await import("./runner-BaWsik5f.mjs");
|
|
425
425
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
426
426
|
if (!existsSync(dbPath)) {
|
|
427
427
|
R.error("No local database found. Run `void dev` first.");
|
|
@@ -641,7 +641,7 @@ async function runRenameMigrations(root, dialect) {
|
|
|
641
641
|
process.exit(1);
|
|
642
642
|
}
|
|
643
643
|
else {
|
|
644
|
-
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-
|
|
644
|
+
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BaWsik5f.mjs");
|
|
645
645
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
646
646
|
if (existsSync(dbPath)) try {
|
|
647
647
|
const db = await openSqliteDatabase(dbPath);
|
|
@@ -719,7 +719,7 @@ async function runExport(root, args, dialect) {
|
|
|
719
719
|
} else process.stdout.write(output);
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-
|
|
722
|
+
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BaWsik5f.mjs");
|
|
723
723
|
const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
|
|
724
724
|
if (!existsSync(dbPath)) {
|
|
725
725
|
R.error("No local database found. Run `void dev` first.");
|
|
@@ -767,7 +767,7 @@ async function runExport(root, args, dialect) {
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
async function runSetUrl(root) {
|
|
770
|
-
const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config-
|
|
770
|
+
const { readConfig: readVoidConfig, getDatabaseDialect: getDialect } = await import("./config-CeRQg3Lz.mjs").then((n) => n.n);
|
|
771
771
|
if (getDialect(readVoidConfig(root)) !== "postgresql") {
|
|
772
772
|
R.error("db: This command is only for PostgreSQL projects. Set \"database\": \"pg\" in void.json.");
|
|
773
773
|
process.exit(1);
|
|
@@ -782,7 +782,7 @@ async function runSetUrl(root) {
|
|
|
782
782
|
R.error("No project linked. Run `void deploy` first or link a project.");
|
|
783
783
|
process.exit(1);
|
|
784
784
|
}
|
|
785
|
-
const { text: promptText, isCancel: isCancelCheck } = await import("./dist-
|
|
785
|
+
const { text: promptText, isCancel: isCancelCheck } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
|
|
786
786
|
const connectionString = await promptText({
|
|
787
787
|
message: "Enter your PostgreSQL connection string:",
|
|
788
788
|
placeholder: "postgresql://user:pass@host:5432/dbname",
|
|
@@ -846,7 +846,7 @@ async function runSeedModule(root, seedPath, dialect) {
|
|
|
846
846
|
return;
|
|
847
847
|
}
|
|
848
848
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
|
849
|
-
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-
|
|
849
|
+
const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BaWsik5f.mjs");
|
|
850
850
|
const sqlite = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
|
|
851
851
|
try {
|
|
852
852
|
const options = getDrizzleSchemaOptions(schema);
|
|
@@ -866,7 +866,7 @@ async function loadSeedFunction(seedPath) {
|
|
|
866
866
|
return seed;
|
|
867
867
|
}
|
|
868
868
|
async function loadSeedSchema(root) {
|
|
869
|
-
const { discoverSchema } = await import("./discover-
|
|
869
|
+
const { discoverSchema } = await import("./discover-CKGQpis8.mjs").then((n) => n.n);
|
|
870
870
|
const location = discoverSchema(root);
|
|
871
871
|
if (!location) return {};
|
|
872
872
|
if (location.type === "file") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as cliTitle, r as createSpinner } from "./output-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as cliTitle, r as createSpinner } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { _ as me, c as R, g as ge, l as Re, u as Se, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { i as removeProjectConfig, r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-DdjLQ2tB.mjs";
|
|
6
6
|
//#region src/cli/delete.ts
|
|
7
7
|
async function runDeleteCommand(root, slug, options) {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-DJd-R1mw.mjs";
|
|
2
2
|
import { a as join, i as isAbsolute, n as dirname, o as relative, r as extname, s as resolve } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
3
|
-
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-
|
|
3
|
+
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
4
4
|
import { t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-
|
|
9
|
-
import { i as scanJobsSync, n as scanWebSocketRoutesSync, r as scanQueuesSync, t as scanRoutes } from "./scan-
|
|
10
|
-
import { i as inferProjectBindings, l as validateSsrEntry, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-
|
|
11
|
-
import { i as voidWarn, r as voidLog } from "./log-
|
|
12
|
-
import { t as discoverSchema } from "./discover-
|
|
13
|
-
import { t as findEnvFile } from "./env-types-
|
|
14
|
-
import { i as validateProdEnv, n as formatEnvReport, r as getDeployEnvDefaults, t as fetchRemoteSecretNames } from "./env-validation-
|
|
15
|
-
import { n as writeDrizzleConfig } from "./config-
|
|
16
|
-
import { t as collectMigrations } from "./collect-
|
|
17
|
-
import { r as validateMigrations, t as assertJournalCoherence } from "./validate-
|
|
18
|
-
import { t as scanPages } from "./scan-
|
|
19
|
-
import { n as promptProjectSelection, r as promptProjectSetupAction, t as promptAndCreateProject } from "./create-project-
|
|
5
|
+
import { a as isExpiredTokenError, c as getToken, i as isCliOutdatedError, l as getTokenSource, n as PlatformClient, o as parsePlatformErrorBody, t as PlatformApiError, u as isStagingMode } from "./client-C_DYiXeu.mjs";
|
|
6
|
+
import { c as R, g as ge, u as Se, v as ue, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
7
|
+
import { a as writeProjectConfig, r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
8
|
+
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-CeRQg3Lz.mjs";
|
|
9
|
+
import { i as scanJobsSync, n as scanWebSocketRoutesSync, r as scanQueuesSync, t as scanRoutes } from "./scan-CkK1Hzpa.mjs";
|
|
10
|
+
import { i as inferProjectBindings, l as validateSsrEntry, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-BexV6LL3.mjs";
|
|
11
|
+
import { i as voidWarn, r as voidLog } from "./log-7ChR5Fbc.mjs";
|
|
12
|
+
import { t as discoverSchema } from "./discover-CKGQpis8.mjs";
|
|
13
|
+
import { t as findEnvFile } from "./env-types-BSQghXbx.mjs";
|
|
14
|
+
import { i as validateProdEnv, n as formatEnvReport, r as getDeployEnvDefaults, t as fetchRemoteSecretNames } from "./env-validation-Buy5pe3u.mjs";
|
|
15
|
+
import { n as writeDrizzleConfig } from "./config-DyUSwbeX.mjs";
|
|
16
|
+
import { t as collectMigrations } from "./collect-HqAuilH6.mjs";
|
|
17
|
+
import { r as validateMigrations, t as assertJournalCoherence } from "./validate-DW3ViKTA.mjs";
|
|
18
|
+
import { t as scanPages } from "./scan-CKpylFj9.mjs";
|
|
19
|
+
import { n as promptProjectSelection, r as promptProjectSetupAction, t as promptAndCreateProject } from "./create-project-hvFe6rbI.mjs";
|
|
20
20
|
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-DdjLQ2tB.mjs";
|
|
21
|
-
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-
|
|
22
|
-
import { t as promptForLoginToken } from "./login-
|
|
23
|
-
import { i as resolveProjectCommand, n as detectPreset, r as formatProjectCommand, t as FRAMEWORK_PRESETS } from "./preset-
|
|
21
|
+
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-CuVHn6Kl.mjs";
|
|
22
|
+
import { t as promptForLoginToken } from "./login-C_MfDjhu.mjs";
|
|
23
|
+
import { i as resolveProjectCommand, n as detectPreset, r as formatProjectCommand, t as FRAMEWORK_PRESETS } from "./preset-CYQh93UF.mjs";
|
|
24
24
|
import { createRequire } from "node:module";
|
|
25
25
|
import { copyFileSync, cpSync, createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
26
26
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
27
27
|
import { build, loadEnv } from "vite";
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { homedir } from "node:os";
|
|
30
|
-
import { parse } from "jsonc-parser";
|
|
31
30
|
import { execFile, execFileSync, execSync, spawnSync } from "node:child_process";
|
|
31
|
+
import { parse } from "jsonc-parser";
|
|
32
32
|
import { hash } from "blake3-jit";
|
|
33
33
|
import ignore from "ignore";
|
|
34
34
|
const SANDBOX_MIGRATION_TAG = "void-sandbox-v1";
|
|
@@ -1921,7 +1921,7 @@ async function generateWrapper(workerDir, workerMain, root, features) {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
let migrations;
|
|
1923
1923
|
if (features.hasMigrations) {
|
|
1924
|
-
const { collectMigrations } = await import("./collect-
|
|
1924
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
1925
1925
|
migrations = collectMigrations(join(root, "db", "migrations"));
|
|
1926
1926
|
const handlerFilename_ = features.migrationDialect === "postgresql" ? "migration-handler-pg.mjs" : "migration-handler.mjs";
|
|
1927
1927
|
let handlerPath = join(import.meta.dirname, "runtime", handlerFilename_);
|
|
@@ -2723,7 +2723,7 @@ async function runFrameworkDeploy(root, config, client, detected, fwPreset, void
|
|
|
2723
2723
|
}
|
|
2724
2724
|
if (dialect === "postgresql" && (bindings.needsD1 || rawMigrations.length > 0)) try {
|
|
2725
2725
|
if (!(await client.getResources(config.projectId)).some((resource) => resource.type === "hyperdrive")) {
|
|
2726
|
-
const { text: promptText, isCancel: isCancelPrompt } = await import("./dist-
|
|
2726
|
+
const { text: promptText, isCancel: isCancelPrompt } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
|
|
2727
2727
|
const connectionString = await promptText({
|
|
2728
2728
|
message: "Your project uses PostgreSQL. Enter your connection string:",
|
|
2729
2729
|
placeholder: "postgresql://user:pass@host:5432/dbname",
|
|
@@ -2936,7 +2936,7 @@ async function runFullDeploy(root, config, client, fwPreset, skipBuild, gitMetad
|
|
|
2936
2936
|
}
|
|
2937
2937
|
if (dialect === "postgresql" && (effectiveBindings.needsD1 || rawMigrations.length > 0)) try {
|
|
2938
2938
|
if (!(await client.getResources(config.projectId)).some((resource) => resource.type === "hyperdrive")) {
|
|
2939
|
-
const { text: promptText, isCancel: isCancelPrompt } = await import("./dist-
|
|
2939
|
+
const { text: promptText, isCancel: isCancelPrompt } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
|
|
2940
2940
|
const connectionString = await promptText({
|
|
2941
2941
|
message: "Your project uses PostgreSQL. Enter your connection string:",
|
|
2942
2942
|
placeholder: "postgresql://user:pass@host:5432/dbname",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as import_picocolors } from "./output-
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { c as R, u as Se } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
5
|
//#region src/cli/domain.ts
|
|
6
6
|
async function runDomainCommand(root, args) {
|
|
7
7
|
const token = getToken(root);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isVoidSocialAuthProvider } from "./providers-
|
|
1
|
+
import { a as isVoidSocialAuthProvider } from "./providers-BlFNPYen.mjs";
|
|
2
2
|
import { getAuthTables, getSchema } from "better-auth/db";
|
|
3
3
|
//#region src/auth/drizzle.ts
|
|
4
4
|
const DEFAULT_TABLE_ORDER = Number.MAX_SAFE_INTEGER;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as cliTitle } from "./output-
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
7
|
-
import { a as loadUserEnvFile, i as validateProdEnv, n as formatEnvReport, t as fetchRemoteSecretNames } from "./env-validation-
|
|
2
|
+
import { n as cliTitle } from "./output-D3g5otMC.mjs";
|
|
3
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
4
|
+
import { c as R, g as ge, u as Se, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
5
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
6
|
+
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-BSQghXbx.mjs";
|
|
7
|
+
import { a as loadUserEnvFile, i as validateProdEnv, n as formatEnvReport, t as fetchRemoteSecretNames } from "./env-validation-Buy5pe3u.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
9
9
|
//#region src/cli/env-example.ts
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, o as relative } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { i as voidWarn } from "./log-
|
|
2
|
+
import { i as voidWarn } from "./log-7ChR5Fbc.mjs";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
//#region src/codegen/env-types.ts
|
|
5
5
|
/** Possible source locations for the user env schema, in priority order.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { i as voidWarn } from "./log-
|
|
3
|
-
import { n as mergeAndExpand, r as parseDotenvFile } from "./dotenv-
|
|
4
|
-
import { t as findEnvFile } from "./env-types-
|
|
2
|
+
import { i as voidWarn } from "./log-7ChR5Fbc.mjs";
|
|
3
|
+
import { n as mergeAndExpand, r as parseDotenvFile } from "./dotenv-HQNhRalS.mjs";
|
|
4
|
+
import { t as findEnvFile } from "./env-types-BSQghXbx.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
//#region src/host/load-user-env.ts
|
|
7
7
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as join, n as dirname, o as relative } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as cliTitle } from "./output-
|
|
3
|
-
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-
|
|
4
|
-
import { c as getDatabaseDialect, f as readConfig } from "./config-
|
|
5
|
-
import { n as ensureProjectTsconfig } from "./project-tsconfig-
|
|
6
|
-
import { n as writeDrizzleConfig } from "./config-
|
|
7
|
-
import { r as readJournal, t as collectMigrations } from "./collect-
|
|
8
|
-
import { n as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-
|
|
2
|
+
import { n as cliTitle } from "./output-D3g5otMC.mjs";
|
|
3
|
+
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { c as getDatabaseDialect, f as readConfig } from "./config-CeRQg3Lz.mjs";
|
|
5
|
+
import { n as ensureProjectTsconfig } from "./project-tsconfig-Bfy55qvs.mjs";
|
|
6
|
+
import { n as writeDrizzleConfig } from "./config-DyUSwbeX.mjs";
|
|
7
|
+
import { r as readJournal, t as collectMigrations } from "./collect-HqAuilH6.mjs";
|
|
8
|
+
import { n as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-DW3ViKTA.mjs";
|
|
9
9
|
import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-6LD6_3Ej.mjs";
|
|
10
10
|
import { existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { a as convertRedirectsConfig, d as parseHostPrefixedSource, i as convertHeadersConfig, o as convertRewritesConfig, r as convertFallbacksConfig, s as countSplats, t as VALID_REDIRECT_STATUSES, u as isProtocolRelative } from "./config-
|
|
3
|
-
import { i as voidWarn } from "./log-
|
|
2
|
+
import { a as convertRedirectsConfig, d as parseHostPrefixedSource, i as convertHeadersConfig, o as convertRewritesConfig, r as convertFallbacksConfig, s as countSplats, t as VALID_REDIRECT_STATUSES, u as isProtocolRelative } from "./config-CeRQg3Lz.mjs";
|
|
3
|
+
import { i as voidWarn } from "./log-7ChR5Fbc.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/cli/headers.ts
|
|
6
6
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { r as __toESM } from "./chunk-DJd-R1mw.mjs";
|
|
2
2
|
import { a as join, n as dirname, o as relative } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
3
|
-
import { u as require_picocolors } from "./output-
|
|
3
|
+
import { u as require_picocolors } from "./output-D3g5otMC.mjs";
|
|
4
4
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { C as isSandboxEnabled, S as SANDBOX_MIGRATION_TAG, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-
|
|
8
|
-
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-
|
|
9
|
-
import { i as scanJobsSync, n as scanWebSocketRoutesSync, r as scanQueuesSync, t as scanRoutes } from "./scan-
|
|
10
|
-
import { a as SSR_CLIENT_ENTRY_RELATIVE_PATHS, c as validateSsrEntries, f as isIdentifier, g as walk, i as inferProjectBindings, l as validateSsrEntry, m as isMemberExpression, n as FRAMEWORK_SCAN_DIRS, o as SSR_SERVER_ENTRY_RELATIVE_PATHS, p as isLiteral, r as detectFramework, t as DEFAULT_SCAN_DIRS, u as inferBindingsFromSource } from "./plugin-inference-
|
|
11
|
-
import { i as voidWarn, n as voidError, r as voidLog, t as setShowTimestamp } from "./log-
|
|
12
|
-
import { r as parseDotenvFile } from "./dotenv-
|
|
13
|
-
import { i as generateDbDts, n as generateQueueTypes, r as DRIZZLE_OPERATORS, t as generateRouteTypes } from "./route-types-
|
|
14
|
-
import { n as ensureProjectTsconfig } from "./project-tsconfig-
|
|
15
|
-
import { t as discoverSchema } from "./discover-
|
|
16
|
-
import { t as MagicString } from "./magic-string.es-
|
|
17
|
-
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
18
|
-
import { a as loadUserEnvFile } from "./env-validation-
|
|
19
|
-
import { i as resolveLayoutIds } from "./scan-
|
|
20
|
-
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-
|
|
21
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
5
|
+
import { c as getToken, u as isStagingMode } from "./client-C_DYiXeu.mjs";
|
|
6
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
7
|
+
import { C as isSandboxEnabled, S as SANDBOX_MIGRATION_TAG, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-CPAEgVQm.mjs";
|
|
8
|
+
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-CeRQg3Lz.mjs";
|
|
9
|
+
import { i as scanJobsSync, n as scanWebSocketRoutesSync, r as scanQueuesSync, t as scanRoutes } from "./scan-CkK1Hzpa.mjs";
|
|
10
|
+
import { a as SSR_CLIENT_ENTRY_RELATIVE_PATHS, c as validateSsrEntries, f as isIdentifier, g as walk, i as inferProjectBindings, l as validateSsrEntry, m as isMemberExpression, n as FRAMEWORK_SCAN_DIRS, o as SSR_SERVER_ENTRY_RELATIVE_PATHS, p as isLiteral, r as detectFramework, t as DEFAULT_SCAN_DIRS, u as inferBindingsFromSource } from "./plugin-inference-BexV6LL3.mjs";
|
|
11
|
+
import { i as voidWarn, n as voidError, r as voidLog, t as setShowTimestamp } from "./log-7ChR5Fbc.mjs";
|
|
12
|
+
import { r as parseDotenvFile } from "./dotenv-HQNhRalS.mjs";
|
|
13
|
+
import { i as generateDbDts, n as generateQueueTypes, r as DRIZZLE_OPERATORS, t as generateRouteTypes } from "./route-types-qVL-v-CB.mjs";
|
|
14
|
+
import { n as ensureProjectTsconfig } from "./project-tsconfig-Bfy55qvs.mjs";
|
|
15
|
+
import { t as discoverSchema } from "./discover-CKGQpis8.mjs";
|
|
16
|
+
import { t as MagicString } from "./magic-string.es-DS_lmuBe.mjs";
|
|
17
|
+
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-BSQghXbx.mjs";
|
|
18
|
+
import { a as loadUserEnvFile } from "./env-validation-Buy5pe3u.mjs";
|
|
19
|
+
import { i as resolveLayoutIds } from "./scan-CKpylFj9.mjs";
|
|
20
|
+
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-CuVHn6Kl.mjs";
|
|
21
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-Cx7cVwrE.mjs";
|
|
22
22
|
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-DtfQ9E31.mjs";
|
|
23
23
|
import { n as defer } from "./defer-2ARBu8Et.mjs";
|
|
24
24
|
import { VoidAssetRewriteError, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled } from "./runtime/handler.mjs";
|
|
@@ -1536,9 +1536,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1536
1536
|
else warn();
|
|
1537
1537
|
return;
|
|
1538
1538
|
}
|
|
1539
|
-
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-
|
|
1540
|
-
const { collectMigrations } = await import("./collect-
|
|
1541
|
-
const { validateMigrations } = await import("./validate-
|
|
1539
|
+
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-Bd_172vF.mjs");
|
|
1540
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
1541
|
+
const { validateMigrations } = await import("./validate-DW3ViKTA.mjs").then((n) => n.i);
|
|
1542
1542
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1543
1543
|
const pgApplied = await getPgAppliedMigrations(url);
|
|
1544
1544
|
const pgAppliedSet = new Set(pgApplied);
|
|
@@ -1551,9 +1551,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1551
1551
|
const applied = await runPgMigrations(migrationsDir, url);
|
|
1552
1552
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1553
1553
|
} else if (hasSqlMigrations) {
|
|
1554
|
-
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-
|
|
1555
|
-
const { collectMigrations } = await import("./collect-
|
|
1556
|
-
const { validateMigrations } = await import("./validate-
|
|
1554
|
+
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BaWsik5f.mjs");
|
|
1555
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
1556
|
+
const { validateMigrations } = await import("./validate-DW3ViKTA.mjs").then((n) => n.i);
|
|
1557
1557
|
const dbPath = getMiniflareDatabasePath(persistRoot, databaseId);
|
|
1558
1558
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1559
1559
|
const appliedRows = await getAppliedMigrations(dbPath);
|
|
@@ -1568,7 +1568,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1568
1568
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1569
1569
|
}
|
|
1570
1570
|
if (auth?.enabled) {
|
|
1571
|
-
const { runLocalVoidAuthMigrations } = await import("./node-
|
|
1571
|
+
const { runLocalVoidAuthMigrations } = await import("./node-DDxMsKPm.mjs");
|
|
1572
1572
|
await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth.configPath);
|
|
1573
1573
|
voidLog("Applied Better Auth migrations");
|
|
1574
1574
|
}
|
|
@@ -4193,7 +4193,7 @@ function routingPlugin(root, options) {
|
|
|
4193
4193
|
if (!options.target) {
|
|
4194
4194
|
const migrationsDir = join(root, "db", "migrations");
|
|
4195
4195
|
if (existsSync(migrationsDir) || compileOptions.auth) {
|
|
4196
|
-
const { collectMigrations } = await import("./collect-
|
|
4196
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
4197
4197
|
const migrations = existsSync(migrationsDir) ? collectMigrations(migrationsDir) : [];
|
|
4198
4198
|
const dialect = getDatabaseDialect(readConfig(root));
|
|
4199
4199
|
compileOptions.migrationHandlerPath = resolveFile(dialect === "postgresql" ? "#self/runtime/migration-handler-pg" : "#self/runtime/migration-handler");
|
|
@@ -4596,9 +4596,9 @@ const STAGING_API_URL = "https://api.staging.void.cloud";
|
|
|
4596
4596
|
* block the server. On completion, writes project.json and restarts the server.
|
|
4597
4597
|
*/
|
|
4598
4598
|
async function runAiSetupPrompt(root, token, staging, server) {
|
|
4599
|
-
const { select, text, isCancel, log } = await import("./dist-
|
|
4600
|
-
const { PlatformClient } = await import("./client-
|
|
4601
|
-
const { writeProjectConfig } = await import("./project-
|
|
4599
|
+
const { select, text, isCancel, log } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
|
|
4600
|
+
const { PlatformClient } = await import("./client-C_DYiXeu.mjs").then((n) => n.r);
|
|
4601
|
+
const { writeProjectConfig } = await import("./project-DhB4A8_g.mjs").then((n) => n.n);
|
|
4602
4602
|
const { inferDefaultSlug } = await import("./resolve-project-DdjLQ2tB.mjs").then((n) => n.i);
|
|
4603
4603
|
const client = new PlatformClient(token, staging ? STAGING_API_URL : DEFAULT_API_URL);
|
|
4604
4604
|
let projects;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { a as join, i as isAbsolute, n as dirname, o as relative, s as resolve, t as basename } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as cliTitle } from "./output-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as getDatabaseDialect, f as readConfig } from "./config-
|
|
7
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
8
|
-
import { r as parseDotenvFile, t as expandDotenv } from "./dotenv-
|
|
9
|
-
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-
|
|
10
|
-
import { t as MagicString } from "./magic-string.es-
|
|
11
|
-
import { n as writeDrizzleConfig } from "./config-
|
|
2
|
+
import { n as cliTitle } from "./output-D3g5otMC.mjs";
|
|
3
|
+
import { c as getToken, n as PlatformClient, u as isStagingMode } from "./client-C_DYiXeu.mjs";
|
|
4
|
+
import { _ as me, c as R, g as ge, i as Ee, u as Se, v as ue, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
5
|
+
import { a as writeProjectConfig, r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
6
|
+
import { c as getDatabaseDialect, f as readConfig } from "./config-CeRQg3Lz.mjs";
|
|
7
|
+
import { r as detectFramework } from "./plugin-inference-BexV6LL3.mjs";
|
|
8
|
+
import { r as parseDotenvFile, t as expandDotenv } from "./dotenv-HQNhRalS.mjs";
|
|
9
|
+
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-Bfy55qvs.mjs";
|
|
10
|
+
import { t as MagicString } from "./magic-string.es-DS_lmuBe.mjs";
|
|
11
|
+
import { n as writeDrizzleConfig } from "./config-DyUSwbeX.mjs";
|
|
12
12
|
import { n as getAgentById, r as getPackageDir, t as detectAgents } from "./agents-DqkFfc2c.mjs";
|
|
13
|
-
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-
|
|
14
|
-
import { t as promptForLoginToken } from "./login-
|
|
15
|
-
import { r as formatProjectCommand } from "./preset-
|
|
13
|
+
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-hvFe6rbI.mjs";
|
|
14
|
+
import { t as promptForLoginToken } from "./login-C_MfDjhu.mjs";
|
|
15
|
+
import { r as formatProjectCommand } from "./preset-CYQh93UF.mjs";
|
|
16
16
|
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-6LD6_3Ej.mjs";
|
|
17
17
|
import { createRequire } from "node:module";
|
|
18
18
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
|
+
import { spawnSync } from "node:child_process";
|
|
20
21
|
import { parseArgs } from "node:util";
|
|
21
22
|
import { parse } from "jsonc-parser";
|
|
22
|
-
import { spawnSync } from "node:child_process";
|
|
23
23
|
//#region src/cli/deploy-setup.ts
|
|
24
24
|
async function ensureToken(root) {
|
|
25
25
|
const existing = getToken(root);
|
|
@@ -2605,7 +2605,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2605
2605
|
const agentSetup = await resolveAgentSetup(root);
|
|
2606
2606
|
injectAgentBlock(root, agentSetup.instructionFilePath);
|
|
2607
2607
|
if (agentSetup.agents.length > 0) {
|
|
2608
|
-
const { linkSkillsForSpecificAgents } = await import("./skills-
|
|
2608
|
+
const { linkSkillsForSpecificAgents } = await import("./skills-SAG0WyVn.mjs");
|
|
2609
2609
|
linkSkillsForSpecificAgents(root, agentSetup.agents);
|
|
2610
2610
|
} else R.info("Skills linking skipped for generic agent setup");
|
|
2611
2611
|
setupMcpConfig(root, agentSetup.agents);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as cliTitle, s as import_picocolors } from "./output-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-
|
|
1
|
+
import { n as cliTitle, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { _ as me, c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { a as writeProjectConfig, r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
|
+
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-hvFe6rbI.mjs";
|
|
6
6
|
//#region src/cli/link.ts
|
|
7
7
|
async function runLink(root, slug) {
|
|
8
8
|
console.log();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-DdjLQ2tB.mjs";
|
|
6
6
|
//#region src/cli/list.ts
|
|
7
7
|
async function runListCommand(root, slug) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { a as isExpiredTokenError, c as getToken, d as removeToken, f as runLogin, l as getTokenSource, n as PlatformClient, p as saveToken, u as isStagingMode } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
4
|
//#region src/cli/login.ts
|
|
5
5
|
async function promptForLoginToken(root = process.cwd()) {
|
|
6
6
|
const provider = await Ee({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-D3g5otMC.mjs";
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
5
|
//#region src/cli/logs.ts
|
|
6
6
|
async function runLogsCommand(root, filter, range, deployment, level) {
|
|
7
7
|
console.log();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { c as getToken, n as PlatformClient } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { a as writeProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { createInterface } from "node:readline";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
2
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
3
|
-
import { f as readConfig } from "./config-
|
|
4
|
-
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-
|
|
3
|
+
import { f as readConfig } from "./config-CeRQg3Lz.mjs";
|
|
4
|
+
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-Cx7cVwrE.mjs";
|
|
5
5
|
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-BwLPwRgH.mjs";
|
|
6
|
-
import { getMiniflareDatabasePath } from "./runner-
|
|
6
|
+
import { getMiniflareDatabasePath } from "./runner-BaWsik5f.mjs";
|
|
7
7
|
import { loadEnv } from "vite";
|
|
8
8
|
//#region src/auth/node.ts
|
|
9
9
|
async function runLocalVoidAuthMigrations(root, dialect, persistRoot = join(root, ".void"), databaseId = "local", configPath = findVoidAuthConfig(root)) {
|