void 0.10.5 → 0.10.6
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-Bmr5tFFb.mjs +1454 -0
- package/dist/{auth-cmd-UoCwfDQv.mjs → auth-cmd-DlgNwByu.mjs} +10 -10
- package/dist/{better-auth-shared-D0Mbmx5V.mjs → better-auth-shared-BQooDxbw.mjs} +1 -1
- package/dist/{better-auth-shared-jkksALri.d.mts → better-auth-shared-BvnM9px6.d.mts} +2 -2
- package/dist/{build-cmd-CVyuBHjP.mjs → build-cmd-Br8qL0rA.mjs} +15 -17
- package/dist/{cache-ACORQCIq.mjs → cache-wH-mP8UE.mjs} +10 -12
- package/dist/{cancel-deploy-Gi8zmoZC.mjs → cancel-deploy-BEBOEgtu.mjs} +16 -18
- package/dist/cli/cli.mjs +47 -49
- package/dist/{client-BlbnA92X.mjs → client-Cj96iiBH.mjs} +74 -8
- package/dist/{config-8dLIngKW.mjs → config-1twldYCW.mjs} +10 -10
- package/dist/{config-CbJS4Krx.mjs → config-BdUctCZD.mjs} +4 -4
- package/dist/{create-project-LjvkYziS.mjs → create-project-DD9n8Ho-.mjs} +28 -23
- package/dist/{db-C00yjN01.mjs → db-DjKE2-A-.mjs} +147 -149
- package/dist/{delete-CplfvTgU.mjs → delete-D2kr3Kmk.mjs} +13 -15
- package/dist/{deploy-CISNL5uK.mjs → deploy-C4PbkFyE.mjs} +97 -100
- package/dist/{discover-ZWuBvt22.mjs → discover-BuVVSAum.mjs} +3 -3
- package/dist/{dist-5cGIJHQQ.mjs → dist-BuiRJkTd.mjs} +59 -27
- package/dist/{domain-B4HpcgNG.mjs → domain-_luIsM_B.mjs} +14 -16
- package/dist/{env-DNMJpeVF.mjs → env-CO5XAS9t.mjs} +23 -25
- package/dist/{env-helpers-B_ks681T.d.mts → env-helpers-z4stu8uc.d.mts} +1 -1
- package/dist/{env-types-BS8cZead.mjs → env-types-D51bnR-c.mjs} +3 -3
- package/dist/{env-validation-BxbtBbjh.mjs → env-validation-CeC2FL66.mjs} +4 -4
- package/dist/{fetch-error-C6qffTl2.mjs → fetch-error-Dj3crt0e.mjs} +3 -3
- package/dist/{gen-C0pV2gRQ.mjs → gen-Cf79J4aw.mjs} +42 -44
- package/dist/{github-cmd-CwtLD1yI.mjs → github-cmd-DnqxyOsb.mjs} +88 -90
- package/dist/{handler-B7rCOy21.d.mts → handler-imD0UVDT.d.mts} +4 -5
- package/dist/{headers-BNWymgnH.mjs → headers-BwvFGhkx.mjs} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +102 -83
- package/dist/{init-D58GxCtt.mjs → init-KirOzVDs.mjs} +132 -134
- package/dist/link-CUmiosyb.mjs +45 -0
- package/dist/{list-CbNNjXTm.mjs → list-3GEw7b6m.mjs} +10 -12
- package/dist/{login-CvxxF_9z.mjs → login-DJReaT_Q.mjs} +14 -15
- package/dist/{logs-BDZ9AuhM.mjs → logs-D-rQ56Lq.mjs} +9 -11
- package/dist/{magic-string.es-C1Fb0uxq.mjs → magic-string.es-ZQjdJFFn.mjs} +3 -3
- package/dist/{mcp-C8BjRt_z.mjs → mcp-D7yc0dXY.mjs} +2 -3
- package/dist/{node-B07cZs0d.mjs → node-yFFk626c.mjs} +6 -6
- package/dist/{package-json-Bg_GJdJB.mjs → package-json-B0NuUWGd.mjs} +1 -1
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +2 -1
- 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 +5 -5
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/islands-plugin.mjs +3 -3
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +5 -2
- package/dist/{plugin-inference-D04iL1mW.mjs → plugin-inference-CJxi_fWI.mjs} +3 -3
- package/dist/{prepare-DUo9q8cM.mjs → prepare-C_cVurhP.mjs} +15 -18
- package/dist/{preset-D0My64KQ.mjs → preset-CVvwCeIy.mjs} +4 -4
- package/dist/{project-cmd-Dd1gNRdd.mjs → project-cmd-DnU7u9QF.mjs} +13 -14
- package/dist/{project-paths-CCMrHYQm.mjs → project-paths-tpdR1mJR.mjs} +2 -2
- package/dist/{project-tsconfig-DMBV55K2.mjs → project-tsconfig-D9uSVVpA.mjs} +2 -2
- package/dist/{protocol-6UZCowS1.d.mts → protocol-6hTJ04T1.d.mts} +3 -3
- package/dist/{resolve-project-D4O1_fZz.mjs → resolve-project-D2HI3TrG.mjs} +2 -2
- package/dist/{rollback-DzmCCrFg.mjs → rollback-Yh7bCKob.mjs} +21 -23
- package/dist/{route-types-BpSJEW20.mjs → route-types-CfKfhbIg.mjs} +234 -3
- package/dist/{runner-BQyKUqAL.mjs → runner-h272wcPj.mjs} +4 -5
- package/dist/{runner-pg-EuhrFW3D.mjs → runner-pg-waxJOnBb.mjs} +1 -1
- package/dist/runtime/ai.mjs +2 -2
- 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 +3 -3
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +2 -2
- package/dist/runtime/client-react.d.mts +2 -2
- package/dist/runtime/client-react.mjs +1 -1
- package/dist/runtime/client-solid.d.mts +2 -2
- package/dist/runtime/client-solid.mjs +1 -1
- package/dist/runtime/client-svelte.d.mts +2 -2
- package/dist/runtime/client-svelte.mjs +1 -1
- package/dist/runtime/client-vue.d.mts +2 -2
- package/dist/runtime/client-vue.mjs +1 -1
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/client.mjs +1 -1
- package/dist/runtime/db-pg.d.mts +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-client.mjs +2 -0
- package/dist/runtime/env-public.d.mts +3 -4
- package/dist/runtime/env-public.mjs +3 -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 +2 -2
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.mjs +1 -1
- package/dist/runtime/live-server.mjs +2 -0
- package/dist/runtime/live.d.mts +2 -2
- package/dist/runtime/live.mjs +3 -1
- package/dist/runtime/migration-handler-pg.mjs +1 -1
- package/dist/runtime/migration-handler.mjs +1 -1
- package/dist/runtime/remote/index.mjs +11 -1
- package/dist/runtime/sandbox.d.mts +1 -4
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws-server.mjs +2 -0
- package/dist/runtime/ws.d.mts +3 -3
- package/dist/runtime/ws.mjs +2 -0
- package/dist/{scan-VCAM1oh3.mjs → scan-Dp_Gyzs3.mjs} +3 -3
- package/dist/{scan---8wfN58.mjs → scan-i7Yz54fv.mjs} +26 -8
- package/dist/{secret-CMLYWkE-.mjs → secret-u7FRvg8d.mjs} +22 -24
- package/dist/{skills-Dl3u05da.mjs → skills-DsdNDtX3.mjs} +6 -7
- package/dist/{subcommand-prompt-B8ng0FTS.mjs → subcommand-prompt-DtES-oP6.mjs} +34 -35
- package/dist/sveltekit.mjs +1 -1
- package/dist/validate-DT7nFMlf.mjs +504 -0
- package/dist/{yarn-pnp-WLW2IHUY.mjs → yarn-pnp-CW8LB6g_.mjs} +1 -1
- package/package.json +19 -19
- package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/CHANGELOG.md +94 -0
- package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/README.md +32 -11
- package/skills/void/docs/node_modules/void/node_modules/@cloudflare/sandbox/README.md +45 -0
- package/skills/void/docs/node_modules/void/node_modules/@electric-sql/pglite/README.md +5 -5
- 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/markdown-exit/README.md +4 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-attrs/README.md +29 -12
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tinyglobby/README.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +1 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +18 -6
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/check.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/create.md +70 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +3 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +11 -7
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +3 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +141 -26
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +145 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +16 -28
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +16 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +15 -17
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +9 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +255 -2
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/docker.md +175 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +70 -5
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/github-actions-cache.md +165 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +2 -2
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +9 -3
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +63 -11
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate-rules.md +347 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +27 -3
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/monorepo.md +176 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +8 -0
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +36 -4
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +11 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +65 -13
- package/skills/void/docs/node_modules/void/node_modules/es-module-lexer/README.md +403 -390
- package/skills/void/docs/node_modules/void/node_modules/pg/README.md +2 -1
- package/skills/void/docs/node_modules/void/node_modules/tinyglobby/README.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +1 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +18 -6
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/check.md +35 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/create.md +70 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +3 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +11 -7
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +3 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +141 -26
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +1 -1
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +145 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +16 -28
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +16 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +15 -17
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +9 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +255 -2
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/docker.md +175 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +70 -5
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/github-actions-cache.md +165 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +2 -2
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +9 -3
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +63 -11
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate-rules.md +347 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +27 -3
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/monorepo.md +176 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +8 -0
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +36 -4
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +11 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +65 -13
- package/skills/void/docs/reference/cli.md +5 -1
- package/dist/agents-MhSzNMiC.mjs +0 -151
- package/dist/collect-9rO3JFNM.mjs +0 -55
- package/dist/config-hhMYPVRT.mjs +0 -21
- package/dist/dist-abzUneor.mjs +0 -1287
- package/dist/drizzle-DqstQTGq.mjs +0 -232
- package/dist/link-ZFmboqY3.mjs +0 -47
- package/dist/output-DeiS4oEX.mjs +0 -139
- package/dist/plan-aD3wRDqF.mjs +0 -271
- package/dist/project-CH9pdo16.mjs +0 -72
- package/dist/project-slug-rX3kTOfY.mjs +0 -10
- package/dist/validate-CNWm-PsL.mjs +0 -186
- /package/dist/{auth-migrations-BP-hMzYl.mjs → auth-migrations-BTZ-ATvQ.mjs} +0 -0
- /package/dist/{auth-Dz2CCn4T.d.mts → auth-qgMlYp7Z.d.mts} +0 -0
- /package/dist/{canonical-json-CEyQaVDa.mjs → canonical-json-DuDiiUsQ.mjs} +0 -0
- /package/dist/{cf-access-DKDsgwOU.mjs → cf-access-Bqw81xAf.mjs} +0 -0
- /package/dist/{defer-C-bdSM_b.mjs → defer-YsYDUoii.mjs} +0 -0
- /package/dist/{dotenv-lS94ymhM.mjs → dotenv-D_UbC_vc.mjs} +0 -0
- /package/dist/{env-raw-Dtj1UAoK.mjs → env-raw-CoS20LHP.mjs} +0 -0
- /package/dist/{fetch-error-B6RaJ-eZ.d.mts → fetch-error-Sp1R4mZv.d.mts} +0 -0
- /package/dist/{git-metadata-Ce0AtSZL.mjs → git-metadata-CBKaL0v5.mjs} +0 -0
- /package/dist/{head-eOUCWUNy.d.mts → head-nmvOgFjd.d.mts} +0 -0
- /package/dist/{log-BdD_Fpms.mjs → log-ChfPKsVd.mjs} +0 -0
- /package/dist/{pathe.M-eThtNZ-BrPhGF_K.mjs → pathe.M-eThtNZ-CQzLbt4c.mjs} +0 -0
- /package/dist/{pg-CempqvEJ.mjs → pg-J2HbZIkX.mjs} +0 -0
- /package/dist/{providers-BJIoduK9.d.mts → providers-BNKRacMr.d.mts} +0 -0
- /package/dist/{providers-BwPbdHdi.mjs → providers-CJlNS3kT.mjs} +0 -0
- /package/dist/{proxy-M3pxItg2.mjs → proxy-D-3_D-Gl.mjs} +0 -0
- /package/dist/{chunk-DJd-R1mw.mjs → rolldown-runtime-DJK8HYOj.mjs} +0 -0
- /package/dist/{standard-schema-Cy0lfeWv.d.mts → standard-schema-DJ0HW7QP.d.mts} +0 -0
- /package/dist/{types-BodZGegX.d.mts → types-lLjNE9Qp.d.mts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import { r as __toESM } from "./
|
|
2
|
-
import { a as join, n as dirname, s as relative } from "./pathe.M-eThtNZ-
|
|
3
|
-
import {
|
|
4
|
-
import { C as hasApiRoutes, S as resolveSandboxConfig, T as resolveAssetRoutingPolicy, _ as readWranglerCompat, a as prerenderPagesNode, b as SANDBOX_MIGRATION_TAG, c as stripInternalEnvKeys, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as readExistingLiveBindingConfig, h as normalizeWranglerCompatibilityFlags, i as prerenderPages, l as LIVE_MIGRATION_TAG, m as nextDurableObjectMigrationTag, n as resolveDistDir, o as filterLoadedEnv, p as hasDurableObjectSqliteMigration, r as resolveWorkerDirName, s as resolveRemoteMode, u as ensureWranglerCompat, v as resolveLiveBindingConfig, w as hasDocumentRoutes, x as isSandboxEnabled, y as syncWranglerBindings } from "./deploy-
|
|
5
|
-
import { i as resolveProjectPaths, n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-
|
|
6
|
-
import {
|
|
7
|
-
import { f as getToken, m as isStagingMode } from "./client-
|
|
8
|
-
import { r as
|
|
9
|
-
import {
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { n as
|
|
23
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-DqstQTGq.mjs";
|
|
24
|
-
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-Dtj1UAoK.mjs";
|
|
25
|
-
import { n as defer } from "./defer-C-bdSM_b.mjs";
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime-DJK8HYOj.mjs";
|
|
2
|
+
import { a as join, n as dirname, s as relative } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
3
|
+
import { M as require_picocolors } from "./agents-Bmr5tFFb.mjs";
|
|
4
|
+
import { C as hasApiRoutes, S as resolveSandboxConfig, T as resolveAssetRoutingPolicy, _ as readWranglerCompat, a as prerenderPagesNode, b as SANDBOX_MIGRATION_TAG, c as stripInternalEnvKeys, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as readExistingLiveBindingConfig, h as normalizeWranglerCompatibilityFlags, i as prerenderPages, l as LIVE_MIGRATION_TAG, m as nextDurableObjectMigrationTag, n as resolveDistDir, o as filterLoadedEnv, p as hasDurableObjectSqliteMigration, r as resolveWorkerDirName, s as resolveRemoteMode, u as ensureWranglerCompat, v as resolveLiveBindingConfig, w as hasDocumentRoutes, x as isSandboxEnabled, y as syncWranglerBindings } from "./deploy-C4PbkFyE.mjs";
|
|
5
|
+
import { i as resolveProjectPaths, n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-tpdR1mJR.mjs";
|
|
6
|
+
import { a as scanQueuesSync, c as loadVoidAuthConfig, i as scanWebSocketRoutesSync, n as scanRoutePatternsSync, o as scanJobsSync, r as scanRoutes, s as findVoidAuthConfig, t as scanMiddlewareSync } from "./scan-i7Yz54fv.mjs";
|
|
7
|
+
import { b as readProjectConfig, f as getToken, m as isStagingMode } from "./client-Cj96iiBH.mjs";
|
|
8
|
+
import { n as ensureProjectTsconfig, r as writeFileIfChanged } from "./project-tsconfig-D9uSVVpA.mjs";
|
|
9
|
+
import { c as getDatabaseDialect, f as readConfig, l as isNodeTarget, p as resolveBindingNames } from "./config-1twldYCW.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-CJxi_fWI.mjs";
|
|
11
|
+
import { i as voidWarn, n as voidError, r as voidLog, t as setShowTimestamp } from "./log-ChfPKsVd.mjs";
|
|
12
|
+
import { r as parseDotenvFile } from "./dotenv-D_UbC_vc.mjs";
|
|
13
|
+
import { i as generateVoidAuthDrizzleSchema, n as generateQueueTypes, o as DRIZZLE_OPERATORS, r as generateVoidAuthDatabaseModule, s as generateDbDts, t as generateRouteTypes } from "./route-types-CfKfhbIg.mjs";
|
|
14
|
+
import { t as discoverSchema } from "./discover-BuVVSAum.mjs";
|
|
15
|
+
import { t as MagicString } from "./magic-string.es-ZQjdJFFn.mjs";
|
|
16
|
+
import { n as findEnvFileForPaths, r as generateEnvTypes, t as findEnvFile } from "./env-types-D51bnR-c.mjs";
|
|
17
|
+
import { a as loadUserEnvFile } from "./env-validation-CeC2FL66.mjs";
|
|
18
|
+
import { i as resolveLayoutIds } from "./scan-Dp_Gyzs3.mjs";
|
|
19
|
+
import { n as STAGING_PROXY_URL, t as DEFAULT_PROXY_URL } from "./proxy-D-3_D-Gl.mjs";
|
|
20
|
+
import { n as lintDuplicateSources, r as mergeRoutingRules, t as lintDestinationSplats } from "./headers-BwvFGhkx.mjs";
|
|
21
|
+
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-CoS20LHP.mjs";
|
|
22
|
+
import { n as defer } from "./defer-YsYDUoii.mjs";
|
|
26
23
|
import { VoidAssetRewriteError, basicAuth, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled } from "./runtime/handler.mjs";
|
|
27
24
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, rmSync, writeFileSync, writeSync } from "node:fs";
|
|
28
25
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -107,7 +104,7 @@ function createOrderedEdgeStore(root) {
|
|
|
107
104
|
const byKey = /* @__PURE__ */ new Map();
|
|
108
105
|
const aliasesForId = (id) => {
|
|
109
106
|
const normalized = normalizePath(id);
|
|
110
|
-
const aliases = new Set([normalized, normalizeDevCssUrl(normalized, root)]);
|
|
107
|
+
const aliases = /* @__PURE__ */ new Set([normalized, normalizeDevCssUrl(normalized, root)]);
|
|
111
108
|
if (normalized.startsWith("/@id/__x00__")) aliases.add(normalized.replace("/@id/__x00__", "\0"));
|
|
112
109
|
return [...aliases];
|
|
113
110
|
};
|
|
@@ -139,6 +136,9 @@ function createOrderedEdgeStore(root) {
|
|
|
139
136
|
};
|
|
140
137
|
}
|
|
141
138
|
var DevCssProvider = class {
|
|
139
|
+
server;
|
|
140
|
+
root;
|
|
141
|
+
edgeStore;
|
|
142
142
|
cache = /* @__PURE__ */ new Map();
|
|
143
143
|
graphVersion = 0;
|
|
144
144
|
constructor(server, root, edgeStore) {
|
|
@@ -271,7 +271,7 @@ function pagesDevCssAssetsPlugin(root, token) {
|
|
|
271
271
|
resolveId(id) {
|
|
272
272
|
if (id !== "virtual:void-pages-dev-assets") return;
|
|
273
273
|
if (this.environment?.name === "client") throw new Error(`${DEV_CSS_ASSET_MODULE_ID} is server-only and cannot be imported by client code.`);
|
|
274
|
-
return "\
|
|
274
|
+
return "\0virtual:void-pages-dev-assets";
|
|
275
275
|
},
|
|
276
276
|
load(id) {
|
|
277
277
|
if (id !== "\0virtual:void-pages-dev-assets") return;
|
|
@@ -654,7 +654,7 @@ export function createDb(d1) {
|
|
|
654
654
|
const migrationsDir = paths.migrationsDir;
|
|
655
655
|
if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql")))) {
|
|
656
656
|
if (dialect === "sqlite") {
|
|
657
|
-
const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-
|
|
657
|
+
const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-h272wcPj.mjs");
|
|
658
658
|
if ((await getApplicationTables(getMiniflareDatabasePath(options.localD1PersistRoot ?? join(root, ".void"), options.localD1DatabaseId ?? "local")).catch(() => [])).length > 0) return;
|
|
659
659
|
}
|
|
660
660
|
voidWarn(`Schema found but no migrations in ${paths.sourceRelative("db/migrations")}/.\n \`void db push\` syncs the schema to your local DB without creating migration files.
|
|
@@ -1654,9 +1654,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1654
1654
|
else warn();
|
|
1655
1655
|
return;
|
|
1656
1656
|
}
|
|
1657
|
-
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-
|
|
1658
|
-
const { collectMigrations } = await import("./
|
|
1659
|
-
const { validateMigrations } = await import("./validate-
|
|
1657
|
+
const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-waxJOnBb.mjs");
|
|
1658
|
+
const { collectMigrations } = await import("./validate-DT7nFMlf.mjs").then((n) => n.l);
|
|
1659
|
+
const { validateMigrations } = await import("./validate-DT7nFMlf.mjs").then((n) => n.i);
|
|
1660
1660
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1661
1661
|
const pgApplied = await getPgAppliedMigrations(url);
|
|
1662
1662
|
const pgAppliedSet = new Set(pgApplied);
|
|
@@ -1669,9 +1669,9 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1669
1669
|
const applied = await runPgMigrations(migrationsDir, url);
|
|
1670
1670
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1671
1671
|
} else if (hasSqlMigrations) {
|
|
1672
|
-
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-
|
|
1673
|
-
const { collectMigrations } = await import("./
|
|
1674
|
-
const { validateMigrations } = await import("./validate-
|
|
1672
|
+
const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-h272wcPj.mjs");
|
|
1673
|
+
const { collectMigrations } = await import("./validate-DT7nFMlf.mjs").then((n) => n.l);
|
|
1674
|
+
const { validateMigrations } = await import("./validate-DT7nFMlf.mjs").then((n) => n.i);
|
|
1675
1675
|
const dbPath = getMiniflareDatabasePath(persistRoot, databaseId);
|
|
1676
1676
|
const allMigrations = collectMigrations(migrationsDir);
|
|
1677
1677
|
const appliedRows = await getAppliedMigrations(dbPath);
|
|
@@ -1686,7 +1686,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1686
1686
|
if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
|
|
1687
1687
|
}
|
|
1688
1688
|
if (auth?.enabled) {
|
|
1689
|
-
const { runLocalVoidAuthMigrations } = await import("./node-
|
|
1689
|
+
const { runLocalVoidAuthMigrations } = await import("./node-yFFk626c.mjs");
|
|
1690
1690
|
await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth.configPath);
|
|
1691
1691
|
voidLog("Applied Better Auth migrations");
|
|
1692
1692
|
}
|
|
@@ -4484,8 +4484,8 @@ function routingPlugin(root, options) {
|
|
|
4484
4484
|
if (!options.target) {
|
|
4485
4485
|
const migrationsDir = paths.migrationsDir;
|
|
4486
4486
|
if (existsSync(migrationsDir) || compileOptions.auth) {
|
|
4487
|
-
const { collectMigrations } = await import("./
|
|
4488
|
-
const { buildMigrationPlanBundle } = await import("./
|
|
4487
|
+
const { collectMigrations } = await import("./validate-DT7nFMlf.mjs").then((n) => n.l);
|
|
4488
|
+
const { buildMigrationPlanBundle } = await import("./validate-DT7nFMlf.mjs").then((n) => n.s);
|
|
4489
4489
|
const migrations = existsSync(migrationsDir) ? collectMigrations(migrationsDir) : [];
|
|
4490
4490
|
const dialect = getDatabaseDialect(readConfig(root));
|
|
4491
4491
|
compileOptions.migrationHandlerPath = resolveFile(dialect === "postgresql" ? "#self/runtime/migration-handler-pg" : "#self/runtime/migration-handler");
|
|
@@ -4915,10 +4915,10 @@ const STAGING_API_URL = "https://api.staging.void.cloud";
|
|
|
4915
4915
|
* block the server. On completion, writes project.json and restarts the server.
|
|
4916
4916
|
*/
|
|
4917
4917
|
async function runAiSetupPrompt(root, token, staging, server) {
|
|
4918
|
-
const { select, text, isCancel, log } = await import("./
|
|
4919
|
-
const { PlatformClient } = await import("./client-
|
|
4920
|
-
const { writeProjectConfig } = await import("./
|
|
4921
|
-
const { inferDefaultSlug } = await import("./resolve-project-
|
|
4918
|
+
const { select, text, isCancel, log } = await import("./agents-Bmr5tFFb.mjs").then((n) => n.C);
|
|
4919
|
+
const { PlatformClient } = await import("./client-Cj96iiBH.mjs").then((n) => n.r);
|
|
4920
|
+
const { writeProjectConfig } = await import("./client-Cj96iiBH.mjs").then((n) => n.y);
|
|
4921
|
+
const { inferDefaultSlug } = await import("./resolve-project-D2HI3TrG.mjs").then((n) => n.i);
|
|
4922
4922
|
const client = new PlatformClient(token, staging ? STAGING_API_URL : DEFAULT_API_URL);
|
|
4923
4923
|
let projects;
|
|
4924
4924
|
try {
|
|
@@ -4944,8 +4944,8 @@ async function runAiSetupPrompt(root, token, staging, server) {
|
|
|
4944
4944
|
let projectId;
|
|
4945
4945
|
let slug;
|
|
4946
4946
|
if (result === "__create__") {
|
|
4947
|
-
const { validateProjectSlug } = await import("./project-
|
|
4948
|
-
const { createProjectWithSlugRetry } = await import("./create-project-
|
|
4947
|
+
const { validateProjectSlug } = await import("./create-project-DD9n8Ho-.mjs").then((n) => n.a);
|
|
4948
|
+
const { createProjectWithSlugRetry } = await import("./create-project-DD9n8Ho-.mjs").then((n) => n.t);
|
|
4949
4949
|
let created;
|
|
4950
4950
|
try {
|
|
4951
4951
|
created = await createProjectWithSlugRetry(client, inferDefaultSlug(root), async (defaultSlug) => {
|
|
@@ -5077,49 +5077,68 @@ function voidPlugin(options) {
|
|
|
5077
5077
|
const syncFrameworkCompat = (compat) => {
|
|
5078
5078
|
if (ensureWranglerCompatibilityDate(root, compat.compatibilityDate)) voidLog("Synced compatibility_date to wrangler config");
|
|
5079
5079
|
};
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
if (env.command !== "serve") return;
|
|
5088
|
-
if (ensureWranglerNodejsAlsFlag(root)) voidLog("Synced nodejs_als to wrangler config");
|
|
5089
|
-
},
|
|
5090
|
-
buildStart() {
|
|
5091
|
-
syncFrameworkCompat(ensureWranglerCompat(root, config));
|
|
5092
|
-
},
|
|
5093
|
-
configureServer() {
|
|
5094
|
-
syncFrameworkCompat(ensureWranglerCompat(root, config));
|
|
5095
|
-
}
|
|
5080
|
+
const wranglerCompatPlugin = {
|
|
5081
|
+
name: "void:wrangler-compat",
|
|
5082
|
+
enforce: "pre",
|
|
5083
|
+
config(_, env) {
|
|
5084
|
+
syncFrameworkCompat(ensureWranglerCompat(root, config));
|
|
5085
|
+
if (env.command !== "serve") return;
|
|
5086
|
+
if (ensureWranglerNodejsAlsFlag(root)) voidLog("Synced nodejs_als to wrangler config");
|
|
5096
5087
|
},
|
|
5097
|
-
{
|
|
5098
|
-
|
|
5099
|
-
configResolved(resolvedConfig) {
|
|
5100
|
-
syncFrameworkCompat(readWranglerCompat(root, config));
|
|
5101
|
-
if (resolvedConfig.command !== "serve") return;
|
|
5102
|
-
if (syncWranglerBindings(root, bindings, {
|
|
5103
|
-
bindingNames,
|
|
5104
|
-
websockets: websocketRoutes,
|
|
5105
|
-
sandbox: sandboxConfig,
|
|
5106
|
-
live: liveConfig
|
|
5107
|
-
})) voidLog("Synced bindings to wrangler.jsonc");
|
|
5108
|
-
}
|
|
5088
|
+
buildStart() {
|
|
5089
|
+
syncFrameworkCompat(ensureWranglerCompat(root, config));
|
|
5109
5090
|
},
|
|
5110
|
-
{
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5091
|
+
configureServer() {
|
|
5092
|
+
syncFrameworkCompat(ensureWranglerCompat(root, config));
|
|
5093
|
+
}
|
|
5094
|
+
};
|
|
5095
|
+
const wranglerSyncPlugin = {
|
|
5096
|
+
name: "void:wrangler-sync",
|
|
5097
|
+
configResolved(resolvedConfig) {
|
|
5098
|
+
syncFrameworkCompat(readWranglerCompat(root, config));
|
|
5099
|
+
if (resolvedConfig.command !== "serve") return;
|
|
5100
|
+
if (syncWranglerBindings(root, bindings, {
|
|
5101
|
+
bindingNames,
|
|
5102
|
+
websockets: websocketRoutes,
|
|
5103
|
+
sandbox: sandboxConfig,
|
|
5104
|
+
live: liveConfig
|
|
5105
|
+
})) voidLog("Synced bindings to wrangler.jsonc");
|
|
5106
|
+
}
|
|
5107
|
+
};
|
|
5108
|
+
const nuxtVite8WebSocketCompatPlugin = detected.name === "nuxt" ? {
|
|
5109
|
+
name: "void:nuxt-vite8-websocket-compat",
|
|
5110
|
+
enforce: "post",
|
|
5111
|
+
configResolved(resolvedConfig) {
|
|
5112
|
+
if (!resolvedConfig.build.ssr) return;
|
|
5113
|
+
if (typeof resolvedConfig.server.hmr === "object" && resolvedConfig.server.hmr.port !== void 0) resolvedConfig.server.hmr = {
|
|
5114
|
+
...resolvedConfig.server.hmr,
|
|
5115
|
+
server: void 0
|
|
5116
|
+
};
|
|
5117
|
+
if (typeof resolvedConfig.server.ws === "object" && resolvedConfig.server.ws.port !== void 0) resolvedConfig.server.ws = {
|
|
5118
|
+
...resolvedConfig.server.ws,
|
|
5119
|
+
server: void 0
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5122
|
+
} : void 0;
|
|
5123
|
+
const svelteKitHooksInjectPlugin = {
|
|
5124
|
+
name: "void:sveltekit-hooks-inject",
|
|
5125
|
+
apply: "serve",
|
|
5126
|
+
transform(code, id) {
|
|
5127
|
+
if (detected.class !== "b") return;
|
|
5128
|
+
if (!id.includes(".svelte-kit/generated/server/internal")) return;
|
|
5129
|
+
if (!code.includes("export async function get_hooks")) return;
|
|
5130
|
+
const dispatchPath = JSON.stringify(frameworkTriggersDispatchPath(root));
|
|
5131
|
+
return code.replace("export async function get_hooks() {", `export async function get_hooks() {
|
|
5119
5132
|
const { withRuntimeEnv } = await import("void/_env");
|
|
5120
5133
|
const { handleDevTrigger } = await import(${dispatchPath});`).replace(/return\s*\{/, "const __origHandle = handle ?? (({ event, resolve }) => resolve(event));\n handle = ({ event, resolve }) => withRuntimeEnv(event.platform?.env, async () => {\n const __triggerResp = await handleDevTrigger(event.request, event.platform?.env, undefined);\n if (__triggerResp) return __triggerResp;\n return __origHandle({ event, resolve });\n });\n return {");
|
|
5121
|
-
|
|
5122
|
-
|
|
5134
|
+
}
|
|
5135
|
+
};
|
|
5136
|
+
return [
|
|
5137
|
+
createCloudflareBuiltinsExternalPlugin(),
|
|
5138
|
+
wranglerCompatPlugin,
|
|
5139
|
+
wranglerSyncPlugin,
|
|
5140
|
+
...nuxtVite8WebSocketCompatPlugin ? [nuxtVite8WebSocketCompatPlugin] : [],
|
|
5141
|
+
svelteKitHooksInjectPlugin,
|
|
5123
5142
|
clientStubsPlugin,
|
|
5124
5143
|
bindingRuntimePlugin(bindingNames),
|
|
5125
5144
|
envSchemaPlugin(root),
|
|
@@ -5343,7 +5362,7 @@ function voidPlugin(options) {
|
|
|
5343
5362
|
apply: "serve",
|
|
5344
5363
|
configureServer(server) {
|
|
5345
5364
|
if (!autoDetectBindings && !autoDetectAuth) return;
|
|
5346
|
-
const watchDirs = [
|
|
5365
|
+
const watchDirs = [.../* @__PURE__ */ new Set([...scanDirs ?? DEFAULT_SCAN_DIRS, "src"])].map((d) => join(root, d));
|
|
5347
5366
|
let hintShown = false;
|
|
5348
5367
|
const check = (path) => {
|
|
5349
5368
|
if (hintShown) return;
|