void 0.7.1 → 0.7.3
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/agents-DqkFfc2c.mjs +151 -0
- package/dist/{auth-cmd-DVKi6dzh.mjs → auth-cmd-Dk0acCT5.mjs} +2 -2
- package/dist/{better-auth-shared-C9_GHSkR.d.mts → better-auth-shared-CZsIpjey.d.mts} +1 -1
- package/dist/{cache-B0BgSTZi.mjs → cache-DGSZ5Bh6.mjs} +2 -2
- package/dist/{cancel-deploy-D9OFt5gA.mjs → cancel-deploy-CrY3kt93.mjs} +1 -1
- package/dist/cli/cli.mjs +27 -174
- package/dist/{client-BUdfE3QJ.mjs → client-DCqnMpDt.mjs} +97 -11
- package/dist/{create-project-CN1pF-OQ.mjs → create-project-Bg88Kq_I.mjs} +3 -3
- package/dist/{db-BIP2kuEt.mjs → db-ClNu7vYQ.mjs} +13 -13
- package/dist/{delete-DJTvwbr-.mjs → delete-DXcX1yQZ.mjs} +2 -2
- package/dist/{deploy-BqXz1ycW.mjs → deploy-BkjqNk9U.mjs} +565 -161
- package/dist/{domain-B-fIU3VE.mjs → domain-CDQhvYNZ.mjs} +1 -1
- package/dist/{env-BwbZJd2x.mjs → env-CnrQY2b6.mjs} +1 -1
- package/dist/{env-helpers-Dr9Y7RnE.d.mts → env-helpers-CbeM_7-k.d.mts} +1 -1
- package/dist/{gen-U0Ktr4Zd.mjs → gen-C0EY2k27.mjs} +1 -1
- package/dist/{handler-B0ds0OHJ.d.mts → handler-dKQWyF-G.d.mts} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +13 -12
- package/dist/{init-Bb_Qsdq6.mjs → init-CPny6w9D.mjs} +63 -28
- package/dist/{link-D4d26PCm.mjs → link-eZ0aiHFK.mjs} +2 -2
- package/dist/{list-bQc1eQCZ.mjs → list-ztyEz4TW.mjs} +2 -2
- package/dist/{login-RWUDCfdx.mjs → login-B5HHT32i.mjs} +1 -1
- package/dist/{logs-DrkTklop.mjs → logs-J4BN0LXd.mjs} +1 -1
- package/dist/{mcp-kZ4zg13a.mjs → mcp-Bdu9bnjR.mjs} +1 -1
- package/dist/{node-DDfXj10V.mjs → node-DFqMcZR1.mjs} +3 -3
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +3 -0
- package/dist/pages/head-client.d.mts +1 -1
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +1 -1
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +23 -18
- package/dist/{prepare-BAtWufvm.mjs → prepare-DKkx-2Kt.mjs} +1 -1
- package/dist/{project-cmd-ATFi3kRm.mjs → project-cmd-DKiQYdSd.mjs} +8 -8
- package/dist/{protocol-BWzXs2A2.d.mts → protocol-CK4OFwfR.d.mts} +2 -2
- package/dist/{rollback-BSyita3C.mjs → rollback-ZNvT8T54.mjs} +1 -1
- package/dist/{runner-6Ep3fNQu.mjs → runner-BUPRnMFN.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +2 -2
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +2 -2
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/client.mjs +1 -1
- package/dist/runtime/env-helpers.d.mts +1 -1
- package/dist/runtime/env-public-client.d.mts +1 -1
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/env-public.mjs +1 -1
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +1 -1
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.mjs +1 -1
- package/dist/runtime/migration-handler.mjs +2 -2
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws.d.mts +3 -3
- package/dist/{secret-DmjBDxB1.mjs → secret-BXHx515u.mjs} +2 -2
- package/dist/{skills-ipldjlKE.mjs → skills-CbuYOthf.mjs} +1 -1
- package/package.json +13 -13
- package/skills/void/docs/guide/deployment.md +4 -6
- package/skills/void/docs/index.md +3 -3
- package/skills/void/docs/node_modules/void/AGENTS.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +15 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +208 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +21 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +18 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +31 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +24 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +17 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +249 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +15 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +18 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/build.md +40 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +119 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +44 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +64 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +88 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/dev.md +24 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +102 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/fmt.md +41 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/implode.md +23 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +128 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +147 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/lint.md +50 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +173 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +61 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +324 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/test.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/vpx.md +66 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/why.md +39 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/index.md +12 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/team.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/generator/README.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/monorepo/README.md +29 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +15 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +208 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +21 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +18 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +31 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +24 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +17 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +249 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +15 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +18 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/build.md +40 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +119 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +44 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +64 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +88 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/dev.md +24 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +102 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/fmt.md +41 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/implode.md +23 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +128 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +147 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/lint.md +50 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +173 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +61 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +324 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/test.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/vpx.md +66 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/why.md +39 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/index.md +12 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/team.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/generator/README.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/monorepo/README.md +29 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tsdown/README.md +0 -55
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/LICENSE.md +0 -2230
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/README.md +0 -20
- package/skills/void/docs/node_modules/void/node_modules/tsdown/README.md +0 -55
- package/skills/void/docs/node_modules/void/node_modules/vite/LICENSE.md +0 -2230
- package/skills/void/docs/node_modules/void/node_modules/vite/README.md +0 -20
- /package/dist/{auth-BdsJ0Aff.d.mts → auth-DrfOTMmr.d.mts} +0 -0
- /package/dist/{auth-migrations-BAtAck2g.mjs → auth-migrations-BwLPwRgH.mjs} +0 -0
- /package/dist/{better-auth-shared-CdYmQGry.mjs → better-auth-shared-APuDaPqW.mjs} +0 -0
- /package/dist/{defer-DcxEsVH1.mjs → defer-2ARBu8Et.mjs} +0 -0
- /package/dist/{drizzle-NnudE_UN.mjs → drizzle-C-NRqGhx.mjs} +0 -0
- /package/dist/{env-raw-BDL4TvdN.mjs → env-raw-DtfQ9E31.mjs} +0 -0
- /package/dist/{fetch-error-BQ8sZ5Nd.mjs → fetch-error-CEr0ACTl.mjs} +0 -0
- /package/dist/{fetch-error-CVZ5CGA-.d.mts → fetch-error-DflegrF3.d.mts} +0 -0
- /package/dist/{head-P-egrtFE.d.mts → head-CZGAunBV.d.mts} +0 -0
- /package/dist/{headers-DCXc7mDs.mjs → headers-YVkHjOyq.mjs} +0 -0
- /package/dist/{preset-D4I73kT4.mjs → preset-DFvePt0l.mjs} +0 -0
- /package/dist/{project-slug-CKam8lF9.mjs → project-slug-KRvHQEQI.mjs} +0 -0
- /package/dist/{resolve-project-Br5BR03U.mjs → resolve-project-DdjLQ2tB.mjs} +0 -0
- /package/dist/{runner-pg-D0wWHYnr.mjs → runner-pg-BI6f6Ncm.mjs} +0 -0
- /package/dist/{standard-schema-9CRjx-uR.d.mts → standard-schema-BfGDWXff.d.mts} +0 -0
- /package/dist/{subcommand-prompt-BKjuNAPb.mjs → subcommand-prompt-BMS1TNG5.mjs} +0 -0
- /package/dist/{types-mHOEwpW4.d.mts → types-AdKzPp2C.d.mts} +0 -0
- /package/dist/{yarn-pnp-BFqMV_bl.mjs → yarn-pnp-6LD6_3Ej.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { c as R, u as Se } from "./dist-Dayj3gCK.mjs";
|
|
3
3
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { c as getToken, n as PlatformClient } from "./client-DCqnMpDt.mjs";
|
|
5
5
|
//#region src/cli/domain.ts
|
|
6
6
|
async function runDomainCommand(root, args) {
|
|
7
7
|
const token = getToken(root);
|
|
@@ -2,7 +2,7 @@ import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
|
2
2
|
import { n as cliTitle } from "./output-BwlcIYSR.mjs";
|
|
3
3
|
import { c as R, g as ge, u as Se, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { c as getToken, n as PlatformClient } from "./client-DCqnMpDt.mjs";
|
|
6
6
|
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-DknSA4SO.mjs";
|
|
7
7
|
import { a as loadUserEnvFile, i as validateProdEnv, n as formatEnvReport, t as fetchRemoteSecretNames } from "./env-validation-DJKjR_8q.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -6,7 +6,7 @@ import { n as ensureProjectTsconfig } from "./project-tsconfig-DfkESbDL.mjs";
|
|
|
6
6
|
import { n as writeDrizzleConfig } from "./config-BzM9Dy7T.mjs";
|
|
7
7
|
import { r as readJournal, t as collectMigrations } from "./collect-CjeZgz5D.mjs";
|
|
8
8
|
import { n as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-CaMavMxu.mjs";
|
|
9
|
-
import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
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";
|
|
12
12
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as HeadDescriptor } from "./head-
|
|
2
|
-
import { r as AuthUser, t as AuthSession } from "./auth-
|
|
3
|
-
import { t as StandardSchemaV1 } from "./standard-schema-
|
|
1
|
+
import { n as HeadDescriptor } from "./head-CZGAunBV.mjs";
|
|
2
|
+
import { r as AuthUser, t as AuthSession } from "./auth-DrfOTMmr.mjs";
|
|
3
|
+
import { t as StandardSchemaV1 } from "./standard-schema-BfGDWXff.mjs";
|
|
4
4
|
import * as _$_cloudflare_sandbox0 from "@cloudflare/sandbox";
|
|
5
5
|
import { Context, Env, MiddlewareHandler } from "hono";
|
|
6
6
|
import { RewriteDestination } from "void/routes";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as HeadDescriptor } from "./head-
|
|
2
|
-
import { r as AuthUser } from "./auth-
|
|
3
|
-
import { C as HandlerInput, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer, y as DeferredState } from "./handler-
|
|
1
|
+
import { n as HeadDescriptor } from "./head-CZGAunBV.mjs";
|
|
2
|
+
import { r as AuthUser } from "./auth-DrfOTMmr.mjs";
|
|
3
|
+
import { C as HandlerInput, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer, y as DeferredState } from "./handler-dKQWyF-G.mjs";
|
|
4
4
|
import { QueueMap } from "./runtime/queues.mjs";
|
|
5
5
|
import { PluginConfig } from "@cloudflare/vite-plugin";
|
|
6
6
|
import { Plugin } from "vite";
|
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import { a as join, n as dirname, o as relative } from "./pathe.M-eThtNZ-D-kmWkC
|
|
|
3
3
|
import { u as require_picocolors } from "./output-BwlcIYSR.mjs";
|
|
4
4
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { _ as resolveSandboxConfig, a as prerenderPagesNode, c as filterLoadedEnv, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as isSandboxEnabled, h as SANDBOX_MIGRATION_TAG, i as prerenderPages, l as resolveRemoteMode, m as syncWranglerBindings, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as readWranglerCompat, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys } from "./deploy-
|
|
6
|
+
import { c as getToken, u as isStagingMode } from "./client-DCqnMpDt.mjs";
|
|
7
|
+
import { _ as resolveSandboxConfig, a as prerenderPagesNode, c as filterLoadedEnv, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as isSandboxEnabled, h as SANDBOX_MIGRATION_TAG, i as prerenderPages, l as resolveRemoteMode, m as syncWranglerBindings, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as readWranglerCompat, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys } from "./deploy-BkjqNk9U.mjs";
|
|
8
8
|
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-BIa9HwVX.mjs";
|
|
9
9
|
import { i as scanJobsSync, n as scanWebSocketRoutesSync, r as scanQueuesSync, t as scanRoutes } from "./scan-C6HMEIdW.mjs";
|
|
10
10
|
import { a as SSR_SERVER_ENTRY_RELATIVE_PATHS, c as validateSsrEntry, d as isIdentifier, f as isLiteral, h as walk, i as SSR_CLIENT_ENTRY_RELATIVE_PATHS, l as inferBindingsFromSource, n as detectFramework, p as isMemberExpression, r as inferProjectBindings, s as validateSsrEntries, t as FRAMEWORK_SCAN_DIRS } from "./plugin-inference-oZ6Ybu2_.mjs";
|
|
@@ -17,10 +17,10 @@ import { t as MagicString } from "./magic-string.es-D6g9UnIy.mjs";
|
|
|
17
17
|
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-DknSA4SO.mjs";
|
|
18
18
|
import { a as loadUserEnvFile } from "./env-validation-DJKjR_8q.mjs";
|
|
19
19
|
import { i as resolveLayoutIds } from "./scan-Ba4hFwlH.mjs";
|
|
20
|
-
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-
|
|
21
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
22
|
-
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-
|
|
23
|
-
import { n as defer } from "./defer-
|
|
20
|
+
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-YVkHjOyq.mjs";
|
|
21
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-C-NRqGhx.mjs";
|
|
22
|
+
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-DtfQ9E31.mjs";
|
|
23
|
+
import { n as defer } from "./defer-2ARBu8Et.mjs";
|
|
24
24
|
import { VoidAssetRewriteError, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled } from "./runtime/handler.mjs";
|
|
25
25
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, rmSync, writeFileSync, writeSync } from "node:fs";
|
|
26
26
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1170,7 +1170,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1170
1170
|
else warn();
|
|
1171
1171
|
return;
|
|
1172
1172
|
}
|
|
1173
|
-
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-
|
|
1173
|
+
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-BI6f6Ncm.mjs");
|
|
1174
1174
|
const { collectMigrations } = await import("./collect-CjeZgz5D.mjs").then((n) => n.n);
|
|
1175
1175
|
const { validateMigrations } = await import("./validate-CaMavMxu.mjs").then((n) => n.i);
|
|
1176
1176
|
const allMigrations = collectMigrations(migrationsDir);
|
|
@@ -1185,7 +1185,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1185
1185
|
const applied = await runPgMigrations(migrationsDir, url);
|
|
1186
1186
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1187
1187
|
} else if (hasSqlMigrations) {
|
|
1188
|
-
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-
|
|
1188
|
+
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BUPRnMFN.mjs");
|
|
1189
1189
|
const { collectMigrations } = await import("./collect-CjeZgz5D.mjs").then((n) => n.n);
|
|
1190
1190
|
const { validateMigrations } = await import("./validate-CaMavMxu.mjs").then((n) => n.i);
|
|
1191
1191
|
const dbPath = getMiniflareDatabasePath(persistRoot, databaseId);
|
|
@@ -1202,7 +1202,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1202
1202
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1203
1203
|
}
|
|
1204
1204
|
if (auth?.enabled) {
|
|
1205
|
-
const { runLocalVoidAuthMigrations } = await import("./node-
|
|
1205
|
+
const { runLocalVoidAuthMigrations } = await import("./node-DFqMcZR1.mjs");
|
|
1206
1206
|
await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth.configPath);
|
|
1207
1207
|
voidLog("Applied Better Auth migrations");
|
|
1208
1208
|
}
|
|
@@ -4154,9 +4154,9 @@ const STAGING_API_URL = "https://api.staging.void.cloud";
|
|
|
4154
4154
|
*/
|
|
4155
4155
|
async function runAiSetupPrompt(root, token, staging, server) {
|
|
4156
4156
|
const { select, text, isCancel, log } = await import("./dist-Dayj3gCK.mjs").then((n) => n.p);
|
|
4157
|
-
const { PlatformClient } = await import("./client-
|
|
4157
|
+
const { PlatformClient } = await import("./client-DCqnMpDt.mjs").then((n) => n.r);
|
|
4158
4158
|
const { writeProjectConfig } = await import("./project-TqORyHn8.mjs").then((n) => n.n);
|
|
4159
|
-
const { inferDefaultSlug } = await import("./resolve-project-
|
|
4159
|
+
const { inferDefaultSlug } = await import("./resolve-project-DdjLQ2tB.mjs").then((n) => n.i);
|
|
4160
4160
|
const client = new PlatformClient(token, staging ? STAGING_API_URL : DEFAULT_API_URL);
|
|
4161
4161
|
let projects;
|
|
4162
4162
|
try {
|
|
@@ -4183,7 +4183,7 @@ async function runAiSetupPrompt(root, token, staging, server) {
|
|
|
4183
4183
|
let slug;
|
|
4184
4184
|
if (result === "__create__") {
|
|
4185
4185
|
const defaultSlug = inferDefaultSlug(root);
|
|
4186
|
-
const { validateProjectSlug } = await import("./project-slug-
|
|
4186
|
+
const { validateProjectSlug } = await import("./project-slug-KRvHQEQI.mjs").then((n) => n.t);
|
|
4187
4187
|
const slugResult = await text({
|
|
4188
4188
|
message: "Choose a slug for your new Void project:",
|
|
4189
4189
|
placeholder: "my-app",
|
|
@@ -4647,6 +4647,7 @@ function voidPlugin(options) {
|
|
|
4647
4647
|
if (jobs.length > 0) workerConfig.triggers = { crons: jobs.flatMap((job) => job.crons) };
|
|
4648
4648
|
if (ssrEntry || hasPages) workerConfig.assets = {
|
|
4649
4649
|
binding: "ASSETS",
|
|
4650
|
+
not_found_handling: "none",
|
|
4650
4651
|
run_worker_first: ["/**"]
|
|
4651
4652
|
};
|
|
4652
4653
|
return [
|
|
@@ -2,18 +2,18 @@ import { a as join, i as isAbsolute, n as dirname, o as relative, s as resolve,
|
|
|
2
2
|
import { n as cliTitle } from "./output-BwlcIYSR.mjs";
|
|
3
3
|
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-Dayj3gCK.mjs";
|
|
4
4
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { c as getToken, n as PlatformClient, u as isStagingMode } from "./client-DCqnMpDt.mjs";
|
|
6
6
|
import { c as getDatabaseDialect, f as readConfig } from "./config-BIa9HwVX.mjs";
|
|
7
7
|
import { n as detectFramework } from "./plugin-inference-oZ6Ybu2_.mjs";
|
|
8
8
|
import { r as parseDotenvFile, t as expandDotenv } from "./dotenv-DwO4ti0Z.mjs";
|
|
9
9
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-DfkESbDL.mjs";
|
|
10
10
|
import { t as MagicString } from "./magic-string.es-D6g9UnIy.mjs";
|
|
11
11
|
import { n as writeDrizzleConfig } from "./config-BzM9Dy7T.mjs";
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
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-Bg88Kq_I.mjs";
|
|
14
|
+
import { t as promptForLoginToken } from "./login-B5HHT32i.mjs";
|
|
15
|
+
import { r as formatProjectCommand } from "./preset-DFvePt0l.mjs";
|
|
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";
|
|
@@ -651,7 +651,7 @@ const EMPTY_PROJECT_ALLOWED_ENTRIES = new Set([
|
|
|
651
651
|
".windsurf",
|
|
652
652
|
".zencoder"
|
|
653
653
|
]);
|
|
654
|
-
const
|
|
654
|
+
const PNPM_ALLOWED_BUILDS = [
|
|
655
655
|
"better-sqlite3",
|
|
656
656
|
"esbuild",
|
|
657
657
|
"workerd"
|
|
@@ -1730,12 +1730,55 @@ function ensureGitignore(root) {
|
|
|
1730
1730
|
writeFileSync(gitignorePath, content + (content.endsWith("\n") ? "" : "\n") + missing.join("\n") + "\n");
|
|
1731
1731
|
R.success("Updated .gitignore with Void defaults");
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1733
|
+
function removeTopLevelYamlBlock(yaml, key) {
|
|
1734
|
+
const lines = yaml.split(/\r?\n/);
|
|
1735
|
+
const next = [];
|
|
1736
|
+
for (let i = 0; i < lines.length; i += 1) {
|
|
1737
|
+
const line = lines[i];
|
|
1738
|
+
if (!new RegExp(`^${key}:\\s*(?:#.*)?$`).test(line)) {
|
|
1739
|
+
next.push(line);
|
|
1740
|
+
continue;
|
|
1741
|
+
}
|
|
1742
|
+
i += 1;
|
|
1743
|
+
while (i < lines.length && (lines[i].trim() === "" || /^\s/.test(lines[i]))) i += 1;
|
|
1744
|
+
i -= 1;
|
|
1745
|
+
}
|
|
1746
|
+
return next.join("\n");
|
|
1747
|
+
}
|
|
1748
|
+
function pnpmAllowBuildsYaml() {
|
|
1749
|
+
const lines = ["allowBuilds:"];
|
|
1750
|
+
for (const dependency of PNPM_ALLOWED_BUILDS) lines.push(` ${dependency}: true`);
|
|
1751
|
+
return lines.join("\n");
|
|
1752
|
+
}
|
|
1753
|
+
function insertPnpmAllowBuilds(yaml) {
|
|
1754
|
+
const trimmed = yaml.trim();
|
|
1755
|
+
const allowBuilds = pnpmAllowBuildsYaml();
|
|
1756
|
+
if (trimmed === "") return `${allowBuilds}\n`;
|
|
1757
|
+
const lines = trimmed.split(/\r?\n/);
|
|
1758
|
+
const packagesIndex = lines.findIndex((line) => /^packages:\s*(?:#.*)?$/.test(line));
|
|
1759
|
+
if (packagesIndex === -1) return `${trimmed}\n\n${allowBuilds}\n`;
|
|
1760
|
+
let insertIndex = packagesIndex + 1;
|
|
1761
|
+
while (insertIndex < lines.length && (lines[insertIndex].trim() === "" || /^\s/.test(lines[insertIndex]))) insertIndex += 1;
|
|
1762
|
+
lines.splice(insertIndex, 0, "", ...allowBuilds.split("\n"), "");
|
|
1763
|
+
return `${lines.join("\n").replace(/\n{3,}/g, "\n\n")}\n`;
|
|
1764
|
+
}
|
|
1765
|
+
function resolvePnpmConfigRoot(root, pkg) {
|
|
1766
|
+
if (existsSync(join(root, "pnpm-workspace.yaml")) || existsSync(join(root, "pnpm-lock.yaml")) || parsePackageManagerField(pkg) === "pnpm") return root;
|
|
1767
|
+
const workspaceRoot = findWorkspaceRoot(root);
|
|
1768
|
+
if (workspaceRoot !== void 0 && isWorkspaceSubpackage(workspaceRoot, root) && hasAncestorPnpmMarkers(root)) return workspaceRoot;
|
|
1769
|
+
return root;
|
|
1770
|
+
}
|
|
1771
|
+
function ensurePnpmAllowBuilds(root, pkg) {
|
|
1772
|
+
const configRoot = resolvePnpmConfigRoot(root, pkg);
|
|
1773
|
+
const workspacePath = join(configRoot, "pnpm-workspace.yaml");
|
|
1774
|
+
const before = existsSync(workspacePath) ? readFileSync(workspacePath, "utf-8") : "";
|
|
1775
|
+
const after = insertPnpmAllowBuilds(removeTopLevelYamlBlock(removeTopLevelYamlBlock(before, "onlyBuiltDependencies"), "allowBuilds"));
|
|
1776
|
+
if (after !== before) {
|
|
1777
|
+
writeFileSync(workspacePath, after);
|
|
1778
|
+
R.success(configRoot === root ? "Updated pnpm-workspace.yaml with approved builds" : `Updated ${relative(root, workspacePath)} with approved builds`);
|
|
1779
|
+
return true;
|
|
1780
|
+
}
|
|
1781
|
+
return false;
|
|
1739
1782
|
}
|
|
1740
1783
|
function installProjectDependencies(root, packageManager) {
|
|
1741
1784
|
R.step(`Installing dependencies with ${packageManager}`);
|
|
@@ -1849,8 +1892,8 @@ function scaffoldPagesApp(root, packageManager, framework, starterMode) {
|
|
|
1849
1892
|
};
|
|
1850
1893
|
for (const [name, version] of Object.entries(template.dependencies)) ensureDependency("dependencies", name, version);
|
|
1851
1894
|
for (const [name, version] of Object.entries(template.devDependencies)) ensureDependency("devDependencies", name, version);
|
|
1852
|
-
if (isPnpmProject(root, pkg))
|
|
1853
|
-
if (packageManager === "pnpm" && (!pkg.packageManager || typeof pkg.packageManager !== "string")) pkg.packageManager = "pnpm@
|
|
1895
|
+
if (isPnpmProject(root, pkg)) ensurePnpmAllowBuilds(root, pkg);
|
|
1896
|
+
if (packageManager === "pnpm" && (!pkg.packageManager || typeof pkg.packageManager !== "string")) pkg.packageManager = "pnpm@11.0.9";
|
|
1854
1897
|
writeFileSync(packageJsonPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
1855
1898
|
R.success("Updated package.json with starter scripts and dependencies");
|
|
1856
1899
|
for (const [filePath, content] of Object.entries(template.files)) writeFileIfMissing(root, filePath, content);
|
|
@@ -1917,18 +1960,14 @@ function ensureExistingProjectPackage(root, options = {}) {
|
|
|
1917
1960
|
changed = true;
|
|
1918
1961
|
dependencyAdded = true;
|
|
1919
1962
|
}
|
|
1920
|
-
|
|
1921
|
-
const before = JSON.stringify(asRecord(pkg.pnpm)?.onlyBuiltDependencies ?? null);
|
|
1922
|
-
ensurePnpmBuiltDependencies(pkg);
|
|
1923
|
-
if (before !== JSON.stringify(asRecord(pkg.pnpm)?.onlyBuiltDependencies ?? null)) changed = true;
|
|
1924
|
-
}
|
|
1963
|
+
const pnpmConfigChanged = isPnpmProject(root, pkg) ? ensurePnpmAllowBuilds(root, pkg) : false;
|
|
1925
1964
|
if (changed) {
|
|
1926
1965
|
writeFileSync(packageJsonPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
1927
1966
|
R.success(existedBefore ? plainViteSetup ? "Updated package.json with Void dependencies and Vite scripts" : "Updated package.json with Void dependency" : plainViteSetup ? "Created package.json with Void dependencies and Vite scripts" : "Created package.json with Void dependency");
|
|
1928
1967
|
}
|
|
1929
1968
|
return {
|
|
1930
1969
|
dependencyAdded,
|
|
1931
|
-
packageJsonMutated: changed
|
|
1970
|
+
packageJsonMutated: changed || pnpmConfigChanged
|
|
1932
1971
|
};
|
|
1933
1972
|
}
|
|
1934
1973
|
function insertVoidImport(code) {
|
|
@@ -2354,16 +2393,12 @@ function ensureVoidDependency(root) {
|
|
|
2354
2393
|
devDependencies.void = voidSpec;
|
|
2355
2394
|
changed = true;
|
|
2356
2395
|
}
|
|
2357
|
-
|
|
2358
|
-
const before = JSON.stringify(asRecord(pkg.pnpm)?.onlyBuiltDependencies ?? null);
|
|
2359
|
-
ensurePnpmBuiltDependencies(pkg);
|
|
2360
|
-
if (before !== JSON.stringify(asRecord(pkg.pnpm)?.onlyBuiltDependencies ?? null)) changed = true;
|
|
2361
|
-
}
|
|
2396
|
+
const pnpmConfigChanged = isPnpmProject(root, pkg) ? ensurePnpmAllowBuilds(root, pkg) : false;
|
|
2362
2397
|
if (changed) {
|
|
2363
2398
|
writeFileSync(packageJsonPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
2364
2399
|
R.success(existedBefore ? "Ensured void is in package.json devDependencies" : "Created package.json with void as a devDependency");
|
|
2365
2400
|
}
|
|
2366
|
-
return changed;
|
|
2401
|
+
return changed || pnpmConfigChanged;
|
|
2367
2402
|
}
|
|
2368
2403
|
function detectInstructionFilePath(root, agents) {
|
|
2369
2404
|
if (agents.some((a) => a.skillsDir === ".claude/skills")) return "CLAUDE.md";
|
|
@@ -2570,7 +2605,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2570
2605
|
const agentSetup = await resolveAgentSetup(root);
|
|
2571
2606
|
injectAgentBlock(root, agentSetup.instructionFilePath);
|
|
2572
2607
|
if (agentSetup.agents.length > 0) {
|
|
2573
|
-
const { linkSkillsForSpecificAgents } = await import("./skills-
|
|
2608
|
+
const { linkSkillsForSpecificAgents } = await import("./skills-CbuYOthf.mjs");
|
|
2574
2609
|
linkSkillsForSpecificAgents(root, agentSetup.agents);
|
|
2575
2610
|
} else R.info("Skills linking skipped for generic agent setup");
|
|
2576
2611
|
setupMcpConfig(root, agentSetup.agents);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as cliTitle, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { _ as me, c as R, g as ge, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
3
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-
|
|
4
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-DCqnMpDt.mjs";
|
|
5
|
+
import { n as promptProjectSelection, t as promptAndCreateProject } from "./create-project-Bg88Kq_I.mjs";
|
|
6
6
|
//#region src/cli/link.ts
|
|
7
7
|
async function runLink(root, slug) {
|
|
8
8
|
console.log();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { c as R, g as ge, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
3
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { r as resolveProjectBySlug } from "./resolve-project-
|
|
4
|
+
import { c as getToken, n as PlatformClient } from "./client-DCqnMpDt.mjs";
|
|
5
|
+
import { r as resolveProjectBySlug } from "./resolve-project-DdjLQ2tB.mjs";
|
|
6
6
|
//#region src/cli/list.ts
|
|
7
7
|
async function runListCommand(root, slug) {
|
|
8
8
|
console.log();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
|
-
import {
|
|
3
|
+
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-DCqnMpDt.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
1
|
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { c as R, g as ge, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
3
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { c as getToken, n as PlatformClient } from "./client-DCqnMpDt.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
2
|
import { a as writeProjectConfig } from "./project-TqORyHn8.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { c as getToken, n as PlatformClient } from "./client-DCqnMpDt.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
3
|
import { f as readConfig } from "./config-BIa9HwVX.mjs";
|
|
4
|
-
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-
|
|
5
|
-
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-
|
|
6
|
-
import { getMiniflareDatabasePath } from "./runner-
|
|
4
|
+
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-C-NRqGhx.mjs";
|
|
5
|
+
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-BwLPwRgH.mjs";
|
|
6
|
+
import { getMiniflareDatabasePath } from "./runner-BUPRnMFN.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)) {
|
package/dist/pages/client.d.mts
CHANGED
package/dist/pages/client.mjs
CHANGED
|
@@ -890,6 +890,9 @@ async function createVoidRouter(config) {
|
|
|
890
890
|
await resource.commit();
|
|
891
891
|
if (activeNavigationId === resource.id) setRouteUrl(currentUrl());
|
|
892
892
|
return result.pageData;
|
|
893
|
+
} catch (error) {
|
|
894
|
+
if (resource.method.toUpperCase() === "GET" && !resource.options._resolveOnShell && isAbortError(error)) return;
|
|
895
|
+
throw error;
|
|
893
896
|
} finally {
|
|
894
897
|
if (activeNavigationId === resource.id) {
|
|
895
898
|
activeNavigationId = null;
|
package/dist/pages/head.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-CZGAunBV.mjs";
|
|
2
2
|
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
2
|
-
import { i as PageScanResult, n as NamedLayoutDefinition, r as PageDefinition, t as LayoutDefinition } from "../types-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-CZGAunBV.mjs";
|
|
2
|
+
import { i as PageScanResult, n as NamedLayoutDefinition, r as PageDefinition, t as LayoutDefinition } from "../types-AdKzPp2C.mjs";
|
|
3
3
|
import { serializePageData } from "./serialize.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/pages/layout-resolution.d.ts
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "../pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
2
|
import { f as readConfig } from "../config-BIa9HwVX.mjs";
|
|
3
3
|
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-Ba4hFwlH.mjs";
|
|
4
|
-
import { i as parseRedirectsFile } from "../headers-
|
|
4
|
+
import { i as parseRedirectsFile } from "../headers-YVkHjOyq.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,3 +1,3 @@
|
|
|
1
|
-
import { S as ValidationError } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-
|
|
1
|
+
import { S as ValidationError } from "../handler-dKQWyF-G.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-CK4OFwfR.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isConvertedResponse } from "../runtime/response.mjs";
|
|
2
|
-
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-
|
|
2
|
+
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-2ARBu8Et.mjs";
|
|
3
3
|
import { resolveHead } from "./head.mjs";
|
|
4
4
|
//#region src/pages/protocol.ts
|
|
5
5
|
const POWERED_BY = { "X-Powered-By": "Void" };
|
|
@@ -10,12 +10,17 @@ function safeJsonStringify(value) {
|
|
|
10
10
|
function isPagesRequest(c) {
|
|
11
11
|
return c.req.header("x-voidpages") === "true";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
13
|
+
function pageResponseHeaders(c, headers) {
|
|
14
|
+
const out = new Headers(c.res.headers);
|
|
15
|
+
for (const [key, value] of Object.entries(headers)) out.set(key, value);
|
|
16
|
+
return out;
|
|
17
|
+
}
|
|
18
|
+
function pageJsonResponse(c, pageObj) {
|
|
19
|
+
return Response.json(pageObj, { headers: pageResponseHeaders(c, {
|
|
15
20
|
"X-VoidPages": "true",
|
|
16
21
|
Vary: "X-VoidPages",
|
|
17
22
|
...POWERED_BY
|
|
18
|
-
} });
|
|
23
|
+
}) });
|
|
19
24
|
}
|
|
20
25
|
function requestPathWithSearch(c) {
|
|
21
26
|
return c.req.path + new URL(c.req.url).search;
|
|
@@ -57,11 +62,11 @@ async function writeRenderResult(writer, encoder, result) {
|
|
|
57
62
|
await writer.write(value);
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
|
-
function renderedResponse(result, contentType) {
|
|
61
|
-
return new Response(result, { headers: {
|
|
65
|
+
function renderedResponse(c, result, contentType) {
|
|
66
|
+
return new Response(result, { headers: pageResponseHeaders(c, {
|
|
62
67
|
"content-type": contentType,
|
|
63
68
|
...POWERED_BY
|
|
64
|
-
} });
|
|
69
|
+
}) });
|
|
65
70
|
}
|
|
66
71
|
/** Build a streaming response that sends an initial chunk then streams deferred results. */
|
|
67
72
|
function streamDeferredResponse(initialChunk, deferredMap, c, contentType, formatResolved, formatRejected) {
|
|
@@ -76,10 +81,10 @@ function streamDeferredResponse(initialChunk, deferredMap, c, contentType, forma
|
|
|
76
81
|
})().catch((error) => {
|
|
77
82
|
writer.abort(error).catch(() => {});
|
|
78
83
|
});
|
|
79
|
-
return new Response(readable, { headers: {
|
|
84
|
+
return new Response(readable, { headers: pageResponseHeaders(c, {
|
|
80
85
|
"content-type": contentType,
|
|
81
86
|
...POWERED_BY
|
|
82
|
-
} });
|
|
87
|
+
}) });
|
|
83
88
|
}
|
|
84
89
|
/** Handle GET page request — run handler, return page object or SSR HTML */
|
|
85
90
|
async function handlePageGet(handler, headFn, c, componentId, renderFn, getAssetTags, configHead, island) {
|
|
@@ -126,13 +131,13 @@ async function handlePageGet(handler, headFn, c, componentId, renderFn, getAsset
|
|
|
126
131
|
for (const key of keys) resolvedProps[key] = null;
|
|
127
132
|
}
|
|
128
133
|
}));
|
|
129
|
-
return pageJsonResponse({
|
|
134
|
+
return pageJsonResponse(c, {
|
|
130
135
|
...pageObj,
|
|
131
136
|
props: resolvedProps,
|
|
132
137
|
deferred: void 0
|
|
133
138
|
});
|
|
134
139
|
}
|
|
135
|
-
if (!hasDeferred) return pageJsonResponse(pageObj);
|
|
140
|
+
if (!hasDeferred) return pageJsonResponse(c, pageObj);
|
|
136
141
|
return streamDeferredResponse(JSON.stringify(pageObj) + "\n", deferredMap, c, "application/x-ndjson", (group, data) => JSON.stringify({
|
|
137
142
|
__deferred: group,
|
|
138
143
|
data
|
|
@@ -142,7 +147,7 @@ async function handlePageGet(handler, headFn, c, componentId, renderFn, getAsset
|
|
|
142
147
|
}) + "\n");
|
|
143
148
|
}
|
|
144
149
|
const html = await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId));
|
|
145
|
-
if (!hasDeferred) return renderedResponse(html, "text/html; charset=utf-8");
|
|
150
|
+
if (!hasDeferred) return renderedResponse(c, html, "text/html; charset=utf-8");
|
|
146
151
|
return streamDeferredResponse(html, deferredMap, c, "text/html; charset=utf-8", (group, data) => `\n<script>window.__resolveDeferred?window.__resolveDeferred(${safeJsonStringify(group)},${safeJsonStringify(data)}):(window.__deferredQueue??=[]).push([${safeJsonStringify(group)},${safeJsonStringify(data)}])<\/script>`, (group, error) => `\n<script>window.__rejectDeferred?window.__rejectDeferred(${safeJsonStringify(group)},${safeJsonStringify(error)}):(window.__deferredQueue??=[]).push([${safeJsonStringify(group)},0,${safeJsonStringify(error)}])<\/script>`);
|
|
147
152
|
}
|
|
148
153
|
/** Handle POST/PUT/DELETE page request — run mutation, then re-run GET or redirect */
|
|
@@ -167,8 +172,8 @@ async function handlePageMutation(mutationHandler, getHandler, headFn, c, compon
|
|
|
167
172
|
if (e instanceof ValidationError) {
|
|
168
173
|
if (island) return Response.json({ errors: e.errors }, { status: 422 });
|
|
169
174
|
const pageObj = buildMutationPageObj(stripDeferred(getHandler ? await extractProps(await getHandler(c)) : {}), e.errors);
|
|
170
|
-
if (isPagesRequest(c)) return pageJsonResponse(pageObj);
|
|
171
|
-
return renderedResponse(await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
175
|
+
if (isPagesRequest(c)) return pageJsonResponse(c, pageObj);
|
|
176
|
+
return renderedResponse(c, await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
172
177
|
}
|
|
173
178
|
throw e;
|
|
174
179
|
}
|
|
@@ -179,15 +184,15 @@ async function handlePageMutation(mutationHandler, getHandler, headFn, c, compon
|
|
|
179
184
|
const errors = flattenValidationErrors(await result.json());
|
|
180
185
|
if (island) return Response.json({ errors }, { status: 422 });
|
|
181
186
|
const pageObj = buildMutationPageObj(stripDeferred(getHandler ? await extractProps(await getHandler(c)) : {}), errors);
|
|
182
|
-
if (isPagesRequest(c)) return pageJsonResponse(pageObj);
|
|
183
|
-
return renderedResponse(await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
187
|
+
if (isPagesRequest(c)) return pageJsonResponse(c, pageObj);
|
|
188
|
+
return renderedResponse(c, await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
184
189
|
}
|
|
185
190
|
if (status !== 204) return result;
|
|
186
191
|
}
|
|
187
192
|
if (island) return Response.json({ success: true });
|
|
188
193
|
const pageObj = buildMutationPageObj(stripDeferred(getHandler ? await extractProps(await getHandler(c)) : {}), null);
|
|
189
|
-
if (isPagesRequest(c)) return pageJsonResponse(pageObj);
|
|
190
|
-
return renderedResponse(await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
194
|
+
if (isPagesRequest(c)) return pageJsonResponse(c, pageObj);
|
|
195
|
+
return renderedResponse(c, await renderFn(pageObj, await getAssetTags(c.req.raw, c.env, componentId)), "text/html; charset=utf-8");
|
|
191
196
|
}
|
|
192
197
|
//#endregion
|
|
193
198
|
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
|
@@ -9,7 +9,7 @@ import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes }
|
|
|
9
9
|
import { n as ensureProjectTsconfig } from "./project-tsconfig-DfkESbDL.mjs";
|
|
10
10
|
import { t as discoverSchema } from "./discover-B7FkXBLB.mjs";
|
|
11
11
|
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-DknSA4SO.mjs";
|
|
12
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
12
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-C-NRqGhx.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,6 +1,6 @@
|
|
|
1
1
|
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { c as R, g as ge, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-DCqnMpDt.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-ztyEz4TW.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-eZ0aiHFK.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-J4BN0LXd.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-ZNvT8T54.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-CrY3kt93.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-DXcX1yQZ.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-DGSZ5Bh6.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HeadDescriptor, t as HeadConfig } from "./head-
|
|
2
|
-
import { n as CloudContext, t as CloudBindings } from "./handler-
|
|
1
|
+
import { n as HeadDescriptor, t as HeadConfig } from "./head-CZGAunBV.mjs";
|
|
2
|
+
import { n as CloudContext, t as CloudBindings } from "./handler-dKQWyF-G.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/pages/protocol.d.ts
|
|
5
5
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|