void 0.7.10 → 0.7.12
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-wVm1oBDB.mjs → auth-cmd-bS88H4Lb.mjs} +3 -3
- package/dist/{better-auth-shared-CjnJZFC0.mjs → better-auth-shared-D2JaoCs4.mjs} +1 -1
- package/dist/{cache-DQ0nyYqX.mjs → cache-DUDCNty6.mjs} +4 -4
- package/dist/{cancel-deploy-Ues45U-R.mjs → cancel-deploy-DOuSbPwX.mjs} +4 -4
- package/dist/cli/cli.mjs +26 -26
- package/dist/{client-BollDL7Y.mjs → client-C_DYiXeu.mjs} +80 -76
- 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-C6c0tsda.mjs → create-project-hvFe6rbI.mjs} +4 -4
- package/dist/{db-DotnZ8gC.mjs → db-YEYSTfGw.mjs} +27 -27
- package/dist/{delete-DGBvVhNi.mjs → delete-XyM_VD9o.mjs} +4 -4
- package/dist/{deploy-BoivjIGQ.mjs → deploy-CPAEgVQm.mjs} +23 -23
- package/dist/{domain-BvO6J5pb.mjs → domain-Dvj7u8tr.mjs} +4 -4
- package/dist/{drizzle-C-NRqGhx.mjs → drizzle-Cx7cVwrE.mjs} +1 -1
- package/dist/{env-D5rCrXsJ.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 +79 -41
- package/dist/{init-XYRQUhxJ.mjs → init-iIiQWzyB.mjs} +15 -15
- package/dist/{link-CTw4KItw.mjs → link-DdXqlUiJ.mjs} +5 -5
- package/dist/{list-DEUWWBKk.mjs → list-9Bxa5Odn.mjs} +4 -4
- package/dist/{login-wdS4k9e-.mjs → login-C_MfDjhu.mjs} +3 -3
- package/dist/{logs-BoZ4ZWnl.mjs → logs-DjqCpEER.mjs} +4 -4
- package/dist/{mcp-CVKEl-Sc.mjs → mcp-vA0880_K.mjs} +2 -2
- package/dist/{node-DHVCtkgt.mjs → node-gxRQXIRT.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-i9Kvz4KZ.mjs → project-cmd-CeXO06hG.mjs} +10 -10
- package/dist/{rollback-CGsGd4ti.mjs → rollback-C8OSMxmq.mjs} +4 -4
- package/dist/{runner-BUPRnMFN.mjs → runner-C0d3lJo1.mjs} +42 -2
- 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-BeBmBxwf.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,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";
|
|
@@ -163,6 +163,7 @@ var DevCssProvider = class {
|
|
|
163
163
|
const seenCssUrls = /* @__PURE__ */ new Set();
|
|
164
164
|
const cssUrls = [];
|
|
165
165
|
const cssViteDevIds = /* @__PURE__ */ new Map();
|
|
166
|
+
const transformedCss = /* @__PURE__ */ new Map();
|
|
166
167
|
const addByUrl = async (rawUrl) => {
|
|
167
168
|
const url = normalizeDevCssUrl(rawUrl, this.root);
|
|
168
169
|
if (isOptimizedDepUrl(url)) return;
|
|
@@ -185,8 +186,13 @@ var DevCssProvider = class {
|
|
|
185
186
|
seenCssUrls.add(node.url);
|
|
186
187
|
cssUrls.push(node.url);
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
if (transformedCode) {
|
|
190
|
+
const viteDevId = extractViteDevId(transformedCode);
|
|
191
|
+
cssViteDevIds.set(node.url, viteDevId ?? node.id ?? node.url);
|
|
192
|
+
try {
|
|
193
|
+
transformedCss.set(node.url, extractInlineCss(transformedCode));
|
|
194
|
+
} catch {}
|
|
195
|
+
} else cssViteDevIds.set(node.url, node.id ?? node.url);
|
|
190
196
|
return;
|
|
191
197
|
}
|
|
192
198
|
if (isOptimizedDepUrl(node.url)) return;
|
|
@@ -200,14 +206,33 @@ var DevCssProvider = class {
|
|
|
200
206
|
for (const roots of normalizedPhases) for (const root of roots) await addByUrl(root);
|
|
201
207
|
const assets = [];
|
|
202
208
|
for (const url of cssUrls) {
|
|
209
|
+
const existingCss = transformedCss.get(url);
|
|
210
|
+
if (existingCss !== void 0) {
|
|
211
|
+
assets.push({
|
|
212
|
+
url,
|
|
213
|
+
id: cssViteDevIds.get(url) ?? url,
|
|
214
|
+
css: existingCss
|
|
215
|
+
});
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
203
218
|
const inlineUrl = appendInlineQuery(url);
|
|
204
|
-
|
|
219
|
+
let result;
|
|
220
|
+
try {
|
|
221
|
+
result = await environment.transformRequest(inlineUrl);
|
|
222
|
+
} catch (error) {
|
|
223
|
+
this.server.config.logger.warnOnce(`[void] Skipping dev CSS asset for ${url}: ${error instanceof Error ? error.message : String(error)}`);
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
205
226
|
if (!result) continue;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
227
|
+
try {
|
|
228
|
+
assets.push({
|
|
229
|
+
url,
|
|
230
|
+
id: cssViteDevIds.get(url) ?? url,
|
|
231
|
+
css: extractInlineCss(result.code)
|
|
232
|
+
});
|
|
233
|
+
} catch (error) {
|
|
234
|
+
this.server.config.logger.warnOnce(`[void] Skipping dev CSS asset for ${url}: ${error instanceof Error ? error.message : String(error)}`);
|
|
235
|
+
}
|
|
211
236
|
}
|
|
212
237
|
this.cache.set(cacheKey, assets);
|
|
213
238
|
if (this.cache.size > 100) {
|
|
@@ -564,10 +589,16 @@ export function createDb(d1) {
|
|
|
564
589
|
`;
|
|
565
590
|
}
|
|
566
591
|
},
|
|
567
|
-
configureServer(server) {
|
|
592
|
+
async configureServer(server) {
|
|
568
593
|
if (!schema) return;
|
|
569
594
|
const migrationsDir = join(root, "db", "migrations");
|
|
570
|
-
if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql"))))
|
|
595
|
+
if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql")))) {
|
|
596
|
+
if (dialect === "sqlite") {
|
|
597
|
+
const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-C0d3lJo1.mjs");
|
|
598
|
+
if ((await getApplicationTables(getMiniflareDatabasePath(options.localD1PersistRoot ?? join(root, ".void"), options.localD1DatabaseId ?? "local")).catch(() => [])).length > 0) return;
|
|
599
|
+
}
|
|
600
|
+
voidWarn("Schema found but no migrations in db/migrations/.\n `void db push` syncs the schema to your local DB without creating migration files.\n Run `void db generate` to create migration files for dev startup and deploy.");
|
|
601
|
+
}
|
|
571
602
|
const watchPath = schema.path;
|
|
572
603
|
const regenerate = (path) => {
|
|
573
604
|
if (path === watchPath || schema.type === "directory" && path.startsWith(watchPath)) generateDbDts(outDir, schema, dialect);
|
|
@@ -1536,9 +1567,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1536
1567
|
else warn();
|
|
1537
1568
|
return;
|
|
1538
1569
|
}
|
|
1539
|
-
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-
|
|
1540
|
-
const { collectMigrations } = await import("./collect-
|
|
1541
|
-
const { validateMigrations } = await import("./validate-
|
|
1570
|
+
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-Bd_172vF.mjs");
|
|
1571
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
1572
|
+
const { validateMigrations } = await import("./validate-DW3ViKTA.mjs").then((n) => n.i);
|
|
1542
1573
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1543
1574
|
const pgApplied = await getPgAppliedMigrations(url);
|
|
1544
1575
|
const pgAppliedSet = new Set(pgApplied);
|
|
@@ -1551,9 +1582,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1551
1582
|
const applied = await runPgMigrations(migrationsDir, url);
|
|
1552
1583
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1553
1584
|
} else if (hasSqlMigrations) {
|
|
1554
|
-
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-
|
|
1555
|
-
const { collectMigrations } = await import("./collect-
|
|
1556
|
-
const { validateMigrations } = await import("./validate-
|
|
1585
|
+
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-C0d3lJo1.mjs");
|
|
1586
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
1587
|
+
const { validateMigrations } = await import("./validate-DW3ViKTA.mjs").then((n) => n.i);
|
|
1557
1588
|
const dbPath = getMiniflareDatabasePath(persistRoot, databaseId);
|
|
1558
1589
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1559
1590
|
const appliedRows = await getAppliedMigrations(dbPath);
|
|
@@ -1568,7 +1599,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1568
1599
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1569
1600
|
}
|
|
1570
1601
|
if (auth?.enabled) {
|
|
1571
|
-
const { runLocalVoidAuthMigrations } = await import("./node-
|
|
1602
|
+
const { runLocalVoidAuthMigrations } = await import("./node-gxRQXIRT.mjs");
|
|
1572
1603
|
await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth.configPath);
|
|
1573
1604
|
voidLog("Applied Better Auth migrations");
|
|
1574
1605
|
}
|
|
@@ -4193,7 +4224,7 @@ function routingPlugin(root, options) {
|
|
|
4193
4224
|
if (!options.target) {
|
|
4194
4225
|
const migrationsDir = join(root, "db", "migrations");
|
|
4195
4226
|
if (existsSync(migrationsDir) || compileOptions.auth) {
|
|
4196
|
-
const { collectMigrations } = await import("./collect-
|
|
4227
|
+
const { collectMigrations } = await import("./collect-HqAuilH6.mjs").then((n) => n.n);
|
|
4197
4228
|
const migrations = existsSync(migrationsDir) ? collectMigrations(migrationsDir) : [];
|
|
4198
4229
|
const dialect = getDatabaseDialect(readConfig(root));
|
|
4199
4230
|
compileOptions.migrationHandlerPath = resolveFile(dialect === "postgresql" ? "#self/runtime/migration-handler-pg" : "#self/runtime/migration-handler");
|
|
@@ -4596,9 +4627,9 @@ const STAGING_API_URL = "https://api.staging.void.cloud";
|
|
|
4596
4627
|
* block the server. On completion, writes project.json and restarts the server.
|
|
4597
4628
|
*/
|
|
4598
4629
|
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-
|
|
4630
|
+
const { select, text, isCancel, log } = await import("./dist-D2L3_KTK.mjs").then((n) => n.p);
|
|
4631
|
+
const { PlatformClient } = await import("./client-C_DYiXeu.mjs").then((n) => n.r);
|
|
4632
|
+
const { writeProjectConfig } = await import("./project-DhB4A8_g.mjs").then((n) => n.n);
|
|
4602
4633
|
const { inferDefaultSlug } = await import("./resolve-project-DdjLQ2tB.mjs").then((n) => n.i);
|
|
4603
4634
|
const client = new PlatformClient(token, staging ? STAGING_API_URL : DEFAULT_API_URL);
|
|
4604
4635
|
let projects;
|
|
@@ -4785,7 +4816,10 @@ function voidPlugin(options) {
|
|
|
4785
4816
|
envSchemaPlugin(root),
|
|
4786
4817
|
envClientGuardPlugin(root),
|
|
4787
4818
|
envClientFoldPlugin(),
|
|
4788
|
-
drizzlePlugin(root, false, dialect, {
|
|
4819
|
+
drizzlePlugin(root, false, dialect, {
|
|
4820
|
+
forceVirtualDb: authEnabled,
|
|
4821
|
+
localD1PersistRoot: frameworkPersistRoot
|
|
4822
|
+
}),
|
|
4789
4823
|
migrationPlugin(root, dialect, "local", frameworkPersistRoot, { enabled: false }),
|
|
4790
4824
|
devTriggersHintPlugin(root, {
|
|
4791
4825
|
framework: true,
|
|
@@ -5061,6 +5095,7 @@ function voidPlugin(options) {
|
|
|
5061
5095
|
clientStubsPlugin,
|
|
5062
5096
|
drizzlePlugin(root, false, getDatabaseDialect(config), {
|
|
5063
5097
|
forceVirtualDb: authEnabled,
|
|
5098
|
+
localD1PersistRoot: options?.persistTo ?? outDir,
|
|
5064
5099
|
redirectDbTypePaths
|
|
5065
5100
|
}),
|
|
5066
5101
|
migrationPlugin(root, getDatabaseDialect(config)),
|
|
@@ -5145,7 +5180,10 @@ function voidPlugin(options) {
|
|
|
5145
5180
|
sandboxClassName: sandboxConfig?.className,
|
|
5146
5181
|
live: liveConfig
|
|
5147
5182
|
}),
|
|
5148
|
-
drizzlePlugin(root, true, dialect, {
|
|
5183
|
+
drizzlePlugin(root, true, dialect, {
|
|
5184
|
+
forceVirtualDb: authEnabled,
|
|
5185
|
+
localD1PersistRoot: options?.persistTo ?? outDir
|
|
5186
|
+
}),
|
|
5149
5187
|
migrationPlugin(root, dialect, "local", join(root, ".void"), {
|
|
5150
5188
|
enabled: authEnabled,
|
|
5151
5189
|
configPath: authConfigPath
|
|
@@ -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-C0d3lJo1.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)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-DJd-R1mw.mjs";
|
|
2
|
-
import { c as R, f as at, h as ft } from "./dist-
|
|
2
|
+
import { c as R, f as at, h as ft } from "./dist-D2L3_KTK.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
4
4
|
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "../pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { f as readConfig } from "../config-
|
|
3
|
-
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-
|
|
4
|
-
import { i as parseRedirectsFile } from "../headers-
|
|
2
|
+
import { f as readConfig } from "../config-CeRQg3Lz.mjs";
|
|
3
|
+
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-CKpylFj9.mjs";
|
|
4
|
+
import { i as parseRedirectsFile } from "../headers-CuVHn6Kl.mjs";
|
|
5
5
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
6
6
|
import { serializePageData } from "./serialize.mjs";
|
|
7
7
|
//#region src/pages/manifest.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as dirname, s as resolve } from "../pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-
|
|
2
|
+
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-CKpylFj9.mjs";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { normalizePath } from "vite";
|
|
5
5
|
//#region src/pages/islands-plugin.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as globSync } from "./dist-
|
|
2
|
+
import { n as globSync } from "./dist-q8b2Mjgb.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { parseSync } from "vite";
|
|
5
5
|
import { parse } from "es-module-lexer/js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as cliTitle } from "./output-
|
|
2
|
+
import { n as cliTitle } from "./output-D3g5otMC.mjs";
|
|
3
3
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
4
|
-
import { c as R, g as ge, u as Se, y as ye } from "./dist-
|
|
5
|
-
import { c as getDatabaseDialect, f as readConfig } from "./config-
|
|
6
|
-
import { t as scanRoutes } from "./scan-
|
|
7
|
-
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-
|
|
8
|
-
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-
|
|
9
|
-
import { n as ensureProjectTsconfig } from "./project-tsconfig-
|
|
10
|
-
import { t as discoverSchema } from "./discover-
|
|
11
|
-
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
12
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
4
|
+
import { c as R, g as ge, u as Se, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
5
|
+
import { c as getDatabaseDialect, f as readConfig } from "./config-CeRQg3Lz.mjs";
|
|
6
|
+
import { t as scanRoutes } from "./scan-CkK1Hzpa.mjs";
|
|
7
|
+
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-BexV6LL3.mjs";
|
|
8
|
+
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-qVL-v-CB.mjs";
|
|
9
|
+
import { n as ensureProjectTsconfig } from "./project-tsconfig-Bfy55qvs.mjs";
|
|
10
|
+
import { t as discoverSchema } from "./discover-CKGQpis8.mjs";
|
|
11
|
+
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-BSQghXbx.mjs";
|
|
12
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-Cx7cVwrE.mjs";
|
|
13
13
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import { loadEnv } from "vite";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, s as resolve } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { s as hasSsrEntry } from "./plugin-inference-
|
|
2
|
+
import { s as hasSsrEntry } from "./plugin-inference-BexV6LL3.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
//#region src/cli/preset.ts
|
|
5
5
|
/**
|