void 0.7.10 → 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-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-j-XdTjQD.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 +29 -29
- 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-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-i9Kvz4KZ.mjs → project-cmd-CeXO06hG.mjs} +10 -10
- package/dist/{rollback-CGsGd4ti.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-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";
|
|
@@ -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)) {
|
|
@@ -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
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
1
|
+
import { 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, s as getSiteDomain } from "./client-C_DYiXeu.mjs";
|
|
3
|
+
import { c as R, g as ge, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
4
|
//#region src/cli/projects.ts
|
|
5
5
|
async function runProjectsCommand(root) {
|
|
6
6
|
console.log();
|
|
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
|
|
|
34
34
|
//#region src/cli/project-cmd.ts
|
|
35
35
|
async function runProjectCommand(root, args) {
|
|
36
36
|
if (args.subcommand === "status") {
|
|
37
|
-
const { runListCommand } = await import("./list-
|
|
37
|
+
const { runListCommand } = await import("./list-9Bxa5Odn.mjs");
|
|
38
38
|
return runListCommand(root, args.name || void 0);
|
|
39
39
|
}
|
|
40
40
|
if (args.subcommand === "link") {
|
|
41
|
-
const { runLink } = await import("./link-
|
|
41
|
+
const { runLink } = await import("./link-DdXqlUiJ.mjs");
|
|
42
42
|
return runLink(root, args.name || void 0);
|
|
43
43
|
}
|
|
44
44
|
if (args.subcommand === "list") return runProjectsCommand(root);
|
|
45
45
|
if (args.subcommand === "logs") {
|
|
46
|
-
const { runLogsCommand } = await import("./logs-
|
|
46
|
+
const { runLogsCommand } = await import("./logs-DjqCpEER.mjs");
|
|
47
47
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
48
48
|
}
|
|
49
49
|
if (args.subcommand === "rollback") {
|
|
50
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
50
|
+
const { runRollbackCommand } = await import("./rollback-C8OSMxmq.mjs");
|
|
51
51
|
return runRollbackCommand(root, args.deployId || void 0);
|
|
52
52
|
}
|
|
53
53
|
if (args.subcommand === "cancel") {
|
|
54
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
54
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-DOuSbPwX.mjs");
|
|
55
55
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
56
56
|
}
|
|
57
57
|
if (args.subcommand === "delete") {
|
|
58
|
-
const { runDeleteCommand } = await import("./delete-
|
|
58
|
+
const { runDeleteCommand } = await import("./delete-XyM_VD9o.mjs");
|
|
59
59
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
60
60
|
}
|
|
61
61
|
if (args.subcommand === "purge-cache") {
|
|
62
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
62
|
+
const { runPurgeCacheCommand } = await import("./cache-DUDCNty6.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } 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, i as Ee, v as ue, x as q, y as ye } from "./dist-D2L3_KTK.mjs";
|
|
4
|
+
import { r as readProjectConfig } from "./project-DhB4A8_g.mjs";
|
|
5
5
|
//#region src/cli/rollback.ts
|
|
6
6
|
async function runRollbackCommand(root, deployId) {
|
|
7
7
|
console.log();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { t as collectMigrations } from "./collect-
|
|
2
|
+
import { t as collectMigrations } from "./collect-HqAuilH6.mjs";
|
|
3
3
|
import { existsSync, mkdirSync } from "node:fs";
|
|
4
4
|
import { createHash, createHmac } from "node:crypto";
|
|
5
5
|
//#region src/migrations/runner.ts
|
package/dist/runtime/ai.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as cfAccessHeaders } from "../cf-access-
|
|
1
|
+
import { t as cfAccessHeaders } from "../cf-access-BW8K93Fm.mjs";
|
|
2
2
|
import { i as getRawRuntimeEnv } from "../env-raw-DtfQ9E31.mjs";
|
|
3
3
|
//#region src/runtime/ai-types.ts
|
|
4
4
|
/** Maps provider prefix to expected env var name for the API key */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyPgAuthMigrations } from "../auth-migrations-BwLPwRgH.mjs";
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D2JaoCs4.mjs";
|
|
3
3
|
//#region src/runtime/better-auth-pg.ts
|
|
4
4
|
function resolveConnectionString(env) {
|
|
5
5
|
const connectionString = typeof env.DATABASE_URL === "string" && env.DATABASE_URL.length > 0 ? env.DATABASE_URL : typeof env.HYPERDRIVE?.connectionString === "string" && env.HYPERDRIVE.connectionString.length > 0 ? env.HYPERDRIVE.connectionString : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as applySqliteAuthMigrations } from "../auth-migrations-BwLPwRgH.mjs";
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D2JaoCs4.mjs";
|
|
3
3
|
//#region src/runtime/better-auth.ts
|
|
4
4
|
async function resolveDatabase(env) {
|
|
5
5
|
if (!env.DB) throw new Error("auth: Better Auth requires the \"DB\" D1 binding for sqlite apps.");
|