void 0.10.4 → 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-CblKzAdD.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-CJQSRupz.mjs → build-cmd-Br8qL0rA.mjs} +15 -17
- package/dist/{cache-CMzjhxHh.mjs → cache-wH-mP8UE.mjs} +10 -12
- package/dist/{cancel-deploy-S2N8NSv6.mjs → cancel-deploy-BEBOEgtu.mjs} +16 -18
- package/dist/cli/cli.mjs +62 -51
- package/dist/{client-YIzxv2ZO.mjs → client-Cj96iiBH.mjs} +118 -8
- package/dist/{config-8dLIngKW.mjs → config-1twldYCW.mjs} +10 -10
- package/dist/{config--wXmVOoe.mjs → config-BdUctCZD.mjs} +6 -6
- package/dist/{create-project-pLQdzEPe.mjs → create-project-DD9n8Ho-.mjs} +28 -23
- package/dist/{db-hAmBumot.mjs → db-DjKE2-A-.mjs} +151 -150
- package/dist/{delete-CfSe3EJO.mjs → delete-D2kr3Kmk.mjs} +13 -15
- package/dist/{deploy-DpOdwtla.mjs → deploy-C4PbkFyE.mjs} +114 -119
- package/dist/{discover-C8N1I4tK.mjs → discover-BuVVSAum.mjs} +4 -4
- package/dist/{dist-5cGIJHQQ.mjs → dist-BuiRJkTd.mjs} +59 -27
- package/dist/{domain-CkowysQx.mjs → domain-_luIsM_B.mjs} +14 -16
- package/dist/{env-CIwG2y7G.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-CaJaIRXU.mjs → env-types-D51bnR-c.mjs} +4 -4
- package/dist/{env-validation-LH6eoyW-.mjs → env-validation-CeC2FL66.mjs} +4 -4
- package/dist/{fetch-error-C6qffTl2.mjs → fetch-error-Dj3crt0e.mjs} +3 -3
- package/dist/{gen-q6McxXgE.mjs → gen-Cf79J4aw.mjs} +42 -44
- package/dist/{github-cmd-BvEKQmcD.mjs → github-cmd-DnqxyOsb.mjs} +197 -91
- 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-CZP69LJu.mjs → init-KirOzVDs.mjs} +132 -134
- package/dist/link-CUmiosyb.mjs +45 -0
- package/dist/{list-B7qXBBjo.mjs → list-3GEw7b6m.mjs} +10 -12
- package/dist/{login-B3l_sDwT.mjs → login-DJReaT_Q.mjs} +14 -15
- package/dist/{logs-AXm660MB.mjs → logs-D-rQ56Lq.mjs} +9 -11
- package/dist/{magic-string.es-C1Fb0uxq.mjs → magic-string.es-ZQjdJFFn.mjs} +3 -3
- package/dist/{mcp-D2plINxM.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-C3fLzFvP.mjs → plugin-inference-CJxi_fWI.mjs} +4 -4
- package/dist/{prepare-DRRboRqH.mjs → prepare-C_cVurhP.mjs} +15 -18
- package/dist/{preset-B7ZQZn0u.mjs → preset-CVvwCeIy.mjs} +4 -4
- package/dist/{project-cmd-InegJruy.mjs → project-cmd-DnU7u9QF.mjs} +13 -14
- package/dist/{project-paths-CCMrHYQm.mjs → project-paths-tpdR1mJR.mjs} +2 -2
- package/dist/{project-tsconfig-BTNuNoJ0.mjs → project-tsconfig-D9uSVVpA.mjs} +4 -4
- 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-CHVE-DeT.mjs → rollback-Yh7bCKob.mjs} +21 -23
- package/dist/{route-types-D03ryMXz.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-DGEp1-1Q.mjs → scan-i7Yz54fv.mjs} +26 -8
- package/dist/{secret-CVKwIOm3.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 +2 -2
- 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 +19 -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-BKLElphS.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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "./
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DJK8HYOj.mjs";
|
|
2
2
|
import * as nativeFs from "fs";
|
|
3
3
|
import { readdir, readdirSync, realpath, realpathSync, stat, statSync } from "fs";
|
|
4
4
|
import { basename, dirname, isAbsolute, normalize, posix, relative, resolve, sep } from "path";
|
|
5
5
|
import { fileURLToPath } from "url";
|
|
6
6
|
import { createRequire } from "module";
|
|
7
|
-
//#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.
|
|
7
|
+
//#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
|
|
8
8
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
9
|
function cleanPath(path) {
|
|
10
10
|
let normalized = normalize(path);
|
|
@@ -512,7 +512,7 @@ var Builder = class {
|
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
//#endregion
|
|
515
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
515
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
|
|
516
516
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
517
517
|
const WIN_SLASH = "\\\\/";
|
|
518
518
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -681,7 +681,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
681
681
|
};
|
|
682
682
|
}));
|
|
683
683
|
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
684
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
|
|
685
685
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
686
686
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
|
|
687
687
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -729,7 +729,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
729
729
|
};
|
|
730
730
|
}));
|
|
731
731
|
//#endregion
|
|
732
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
732
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
|
|
733
733
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
734
734
|
const utils = require_utils();
|
|
735
735
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
|
|
@@ -1016,7 +1016,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1016
1016
|
module.exports = scan;
|
|
1017
1017
|
}));
|
|
1018
1018
|
//#endregion
|
|
1019
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1019
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
|
|
1020
1020
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1021
1021
|
const constants = require_constants();
|
|
1022
1022
|
const utils = require_utils();
|
|
@@ -1171,7 +1171,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
};
|
|
1174
|
-
const
|
|
1174
|
+
const buildCharClassStar = (chars) => {
|
|
1175
|
+
return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
|
|
1176
|
+
};
|
|
1177
|
+
const getStarExtglobSequenceChars = (pattern) => {
|
|
1175
1178
|
let index = 0;
|
|
1176
1179
|
const chars = [];
|
|
1177
1180
|
while (index < pattern.length) {
|
|
@@ -1185,7 +1188,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1185
1188
|
index += match.end + 1;
|
|
1186
1189
|
}
|
|
1187
1190
|
if (chars.length < 1) return;
|
|
1188
|
-
return
|
|
1191
|
+
return chars;
|
|
1189
1192
|
};
|
|
1190
1193
|
const repeatedExtglobRecursion = (pattern) => {
|
|
1191
1194
|
let depth = 0;
|
|
@@ -1205,14 +1208,28 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1205
1208
|
if (branches.length > 1) {
|
|
1206
1209
|
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
|
|
1207
1210
|
}
|
|
1211
|
+
const safeChars = [];
|
|
1212
|
+
let sawStarSequence = false;
|
|
1213
|
+
let combinable = true;
|
|
1208
1214
|
for (const branch of branches) {
|
|
1209
|
-
const
|
|
1210
|
-
if (
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1215
|
+
const chars = getStarExtglobSequenceChars(branch);
|
|
1216
|
+
if (chars) {
|
|
1217
|
+
sawStarSequence = true;
|
|
1218
|
+
safeChars.push(...chars);
|
|
1219
|
+
continue;
|
|
1220
|
+
}
|
|
1221
|
+
const literal = normalizeSimpleBranch(branch);
|
|
1222
|
+
if (literal && literal.length === 1) {
|
|
1223
|
+
safeChars.push(literal);
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1226
|
+
combinable = false;
|
|
1214
1227
|
if (repeatedExtglobRecursion(branch) > max) return { risky: true };
|
|
1215
1228
|
}
|
|
1229
|
+
if (sawStarSequence) return combinable ? {
|
|
1230
|
+
risky: true,
|
|
1231
|
+
safeOutput: buildCharClassStar([...new Set(safeChars)])
|
|
1232
|
+
} : { risky: true };
|
|
1216
1233
|
return { risky: false };
|
|
1217
1234
|
};
|
|
1218
1235
|
/**
|
|
@@ -1363,7 +1380,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1363
1380
|
};
|
|
1364
1381
|
const extglobClose = (token) => {
|
|
1365
1382
|
const literal = input.slice(token.startIndex, state.index + 1);
|
|
1366
|
-
const
|
|
1383
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
1384
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
1367
1385
|
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
1368
1386
|
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
1369
1387
|
const open = tokens[token.tokensIndex];
|
|
@@ -1489,7 +1507,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1489
1507
|
if (inner.includes(":")) {
|
|
1490
1508
|
const idx = prev.value.lastIndexOf("[");
|
|
1491
1509
|
const pre = prev.value.slice(0, idx);
|
|
1492
|
-
const
|
|
1510
|
+
const rest = prev.value.slice(idx + 2);
|
|
1511
|
+
const posix = POSIX_REGEX_SOURCE[rest];
|
|
1493
1512
|
if (posix) {
|
|
1494
1513
|
prev.value = pre + posix;
|
|
1495
1514
|
state.backtrack = true;
|
|
@@ -2071,7 +2090,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2071
2090
|
module.exports = parse;
|
|
2072
2091
|
}));
|
|
2073
2092
|
//#endregion
|
|
2074
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
2093
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
|
|
2075
2094
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2076
2095
|
const scan = require_scan();
|
|
2077
2096
|
const parse = require_parse();
|
|
@@ -2092,6 +2111,18 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2092
2111
|
* const isMatch = picomatch('*.!(*a)');
|
|
2093
2112
|
* console.log(isMatch('a.a')); //=> false
|
|
2094
2113
|
* console.log(isMatch('a.b')); //=> true
|
|
2114
|
+
*
|
|
2115
|
+
* // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
2116
|
+
* const picomatch = require('picomatch/posix');
|
|
2117
|
+
* // the same API, defaulting to posix paths
|
|
2118
|
+
* const isMatch = picomatch('a/*');
|
|
2119
|
+
* console.log(isMatch('a\\b')); //=> false
|
|
2120
|
+
* console.log(isMatch('a/b')); //=> true
|
|
2121
|
+
*
|
|
2122
|
+
* // you can still configure the matcher function to accept windows paths
|
|
2123
|
+
* const isMatch = picomatch('a/*', { options: windows });
|
|
2124
|
+
* console.log(isMatch('a\\b')); //=> true
|
|
2125
|
+
* console.log(isMatch('a/b')); //=> true
|
|
2095
2126
|
* ```
|
|
2096
2127
|
* @name picomatch
|
|
2097
2128
|
* @param {String|Array} `globs` One or more glob patterns.
|
|
@@ -2210,8 +2241,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2210
2241
|
* @return {Boolean}
|
|
2211
2242
|
* @api public
|
|
2212
2243
|
*/
|
|
2213
|
-
picomatch.matchBase = (input, glob, options) => {
|
|
2214
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
|
|
2244
|
+
picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
|
|
2245
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input, { windows: posix }));
|
|
2215
2246
|
};
|
|
2216
2247
|
/**
|
|
2217
2248
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -2371,7 +2402,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2371
2402
|
module.exports = picomatch;
|
|
2372
2403
|
}));
|
|
2373
2404
|
//#endregion
|
|
2374
|
-
//#region ../../node_modules/.pnpm/tinyglobby@0.2.
|
|
2405
|
+
//#region ../../node_modules/.pnpm/tinyglobby@0.2.17/node_modules/tinyglobby/dist/index.mjs
|
|
2375
2406
|
var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2376
2407
|
const pico = require_picomatch$1();
|
|
2377
2408
|
const utils = require_utils();
|
|
@@ -2387,6 +2418,7 @@ var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((
|
|
|
2387
2418
|
})))(), 1);
|
|
2388
2419
|
const isReadonlyArray = Array.isArray;
|
|
2389
2420
|
const BACKSLASHES = /\\/g;
|
|
2421
|
+
const DRIVE_RELATIVE_PATH = /^[A-Za-z]:$/;
|
|
2390
2422
|
const isWin = process.platform === "win32";
|
|
2391
2423
|
const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
2392
2424
|
function getPartialMatcher(patterns, options = {}) {
|
|
@@ -2453,6 +2485,9 @@ function buildRelative(cwd, root) {
|
|
|
2453
2485
|
return p[p.length - 1] === "/" && result !== "" ? `${result}/` : result || ".";
|
|
2454
2486
|
};
|
|
2455
2487
|
}
|
|
2488
|
+
function ensureNonDriveRelativePath(path) {
|
|
2489
|
+
return path.replace(DRIVE_RELATIVE_PATH, (match) => `${match}/`);
|
|
2490
|
+
}
|
|
2456
2491
|
const splitPatternOptions = { parts: true };
|
|
2457
2492
|
function splitPattern(path) {
|
|
2458
2493
|
var _result$parts;
|
|
@@ -2514,7 +2549,7 @@ function normalizePattern(pattern, opts, props, isIgnore) {
|
|
|
2514
2549
|
}
|
|
2515
2550
|
const potentialRoot = posix.join(cwd, parentDir.slice(i * 3));
|
|
2516
2551
|
if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
|
|
2517
|
-
props.root = potentialRoot;
|
|
2552
|
+
props.root = ensureNonDriveRelativePath(potentialRoot);
|
|
2518
2553
|
props.depthOffset = -n + i;
|
|
2519
2554
|
}
|
|
2520
2555
|
}
|
|
@@ -2534,7 +2569,7 @@ function normalizePattern(pattern, opts, props, isIgnore) {
|
|
|
2534
2569
|
}
|
|
2535
2570
|
props.depthOffset = newCommonPath.length;
|
|
2536
2571
|
props.commonPath = newCommonPath;
|
|
2537
|
-
props.root = newCommonPath.length > 0 ? posix.join(cwd, ...newCommonPath) : cwd;
|
|
2572
|
+
props.root = ensureNonDriveRelativePath(newCommonPath.length > 0 ? posix.join(cwd, ...newCommonPath) : cwd);
|
|
2538
2573
|
}
|
|
2539
2574
|
return result;
|
|
2540
2575
|
}
|
|
@@ -2623,18 +2658,15 @@ function formatPaths(paths, mapper) {
|
|
|
2623
2658
|
}
|
|
2624
2659
|
const defaultOptions = {
|
|
2625
2660
|
caseSensitiveMatch: true,
|
|
2626
|
-
cwd: process.cwd(),
|
|
2627
2661
|
debug: !!process.env.TINYGLOBBY_DEBUG,
|
|
2628
2662
|
expandDirectories: true,
|
|
2629
2663
|
followSymbolicLinks: true,
|
|
2630
2664
|
onlyFiles: true
|
|
2631
2665
|
};
|
|
2632
2666
|
function getOptions(options) {
|
|
2633
|
-
const opts = {
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
};
|
|
2637
|
-
opts.cwd = (opts.cwd instanceof URL ? fileURLToPath(opts.cwd) : resolve(opts.cwd)).replace(BACKSLASHES, "/");
|
|
2667
|
+
const opts = Object.assign({}, options);
|
|
2668
|
+
for (const key in defaultOptions) if (opts[key] === void 0) Object.assign(opts, { [key]: defaultOptions[key] });
|
|
2669
|
+
opts.cwd = (opts.cwd instanceof URL ? fileURLToPath(opts.cwd) : resolve(opts.cwd || process.cwd())).replace(BACKSLASHES, "/");
|
|
2638
2670
|
opts.ignore = ensureStringArray(opts.ignore);
|
|
2639
2671
|
opts.fs && (opts.fs = {
|
|
2640
2672
|
readdir: opts.fs.readdir || readdir,
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as getToken, n as PlatformClient } from "./client-
|
|
3
|
-
import { c as R, u as Se } from "./dist-abzUneor.mjs";
|
|
4
|
-
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
1
|
+
import { E as note, T as log, u as import_picocolors } from "./agents-Bmr5tFFb.mjs";
|
|
2
|
+
import { b as readProjectConfig, f as getToken, n as PlatformClient } from "./client-Cj96iiBH.mjs";
|
|
5
3
|
//#region src/cli/domain.ts
|
|
6
4
|
async function runDomainCommand(root, args) {
|
|
7
5
|
const token = getToken(root);
|
|
8
6
|
if (!token) {
|
|
9
|
-
|
|
7
|
+
log.error("Not logged in. Run `void auth login` first.");
|
|
10
8
|
process.exit(1);
|
|
11
9
|
}
|
|
12
10
|
const client = new PlatformClient(token, { root });
|
|
@@ -15,14 +13,14 @@ async function runDomainCommand(root, args) {
|
|
|
15
13
|
if (requestedSlug) {
|
|
16
14
|
const project = (await client.listProjects()).find((p) => p.slug === requestedSlug);
|
|
17
15
|
if (!project) {
|
|
18
|
-
|
|
16
|
+
log.error(`project: No project found with slug '${requestedSlug}'.`);
|
|
19
17
|
process.exit(1);
|
|
20
18
|
}
|
|
21
19
|
projectId = project.id;
|
|
22
20
|
} else {
|
|
23
21
|
const config = readProjectConfig(root);
|
|
24
22
|
if (!config) {
|
|
25
|
-
|
|
23
|
+
log.error("No linked project. Run `void project link` or pass --project <name>.");
|
|
26
24
|
process.exit(1);
|
|
27
25
|
}
|
|
28
26
|
projectId = config.projectId;
|
|
@@ -36,7 +34,7 @@ async function runDomainCommand(root, args) {
|
|
|
36
34
|
}
|
|
37
35
|
async function domainAdd(client, projectId, hostname) {
|
|
38
36
|
const domain = await client.addDomain(projectId, hostname);
|
|
39
|
-
|
|
37
|
+
log.success(`Domain ${hostname} added (status: ${domain.status})`);
|
|
40
38
|
let cnameSection;
|
|
41
39
|
let ownershipSection;
|
|
42
40
|
if (domain.cname_target) cnameSection = `CNAME (traffic)\n ${hostname} → ${domain.cname_target}`;
|
|
@@ -44,25 +42,25 @@ async function domainAdd(client, projectId, hostname) {
|
|
|
44
42
|
const recordSections = [cnameSection, ownershipSection].filter((s) => s !== void 0);
|
|
45
43
|
if (recordSections.length > 0) {
|
|
46
44
|
const summary = `Add ${recordSections.length === 1 ? "the record above" : "the records above"} to your DNS, then run \`void domain status ${hostname}\` to check progress.`;
|
|
47
|
-
|
|
45
|
+
note([...recordSections, summary].join("\n\n"), "DNS Setup");
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
async function domainRemove(client, projectId, hostname) {
|
|
51
49
|
const domain = (await client.listDomains(projectId)).find((d) => d.hostname === hostname);
|
|
52
50
|
if (!domain) {
|
|
53
|
-
|
|
51
|
+
log.error(`domain: Domain '${hostname}' not found on this project.`);
|
|
54
52
|
process.exit(1);
|
|
55
53
|
}
|
|
56
54
|
await client.removeDomain(projectId, domain.id);
|
|
57
|
-
|
|
55
|
+
log.success(`Domain ${hostname} removed.`);
|
|
58
56
|
}
|
|
59
57
|
async function domainList(client, projectId) {
|
|
60
58
|
const domains = await client.listDomains(projectId);
|
|
61
59
|
if (domains.length === 0) {
|
|
62
|
-
|
|
60
|
+
log.info("No custom domains configured.");
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
65
|
-
|
|
63
|
+
note(domains.map((d) => {
|
|
66
64
|
const status = d.status === "active" ? import_picocolors.default.green("active") : import_picocolors.default.yellow(d.status);
|
|
67
65
|
return ` ${d.hostname} ${status}`;
|
|
68
66
|
}).join("\n"), "Custom Domains");
|
|
@@ -104,7 +102,7 @@ function computeRollup(status) {
|
|
|
104
102
|
async function domainStatus(client, projectId, hostname, verbose) {
|
|
105
103
|
const domain = (await client.listDomains(projectId)).find((d) => d.hostname === hostname);
|
|
106
104
|
if (!domain) {
|
|
107
|
-
|
|
105
|
+
log.error(`domain: Domain '${hostname}' not found on this project.`);
|
|
108
106
|
process.exit(1);
|
|
109
107
|
}
|
|
110
108
|
const status = await client.getDomainStatus(projectId, domain.id);
|
|
@@ -117,13 +115,13 @@ async function domainStatus(client, projectId, hostname, verbose) {
|
|
|
117
115
|
if (status.ownership_verification) rollupLines.push(` Ownership: pending`);
|
|
118
116
|
if (status.verification_errors && status.verification_errors.length > 0) rollupLines.push(` Errors: ${status.verification_errors.join(", ")}`);
|
|
119
117
|
}
|
|
120
|
-
|
|
118
|
+
note(rollupLines.join("\n"), "Domain Status");
|
|
121
119
|
let cnameSection;
|
|
122
120
|
let ownershipSection;
|
|
123
121
|
if (status.cname_target && status.ssl_status !== "active") cnameSection = `CNAME (traffic)\n ${status.hostname} → ${status.cname_target}`;
|
|
124
122
|
if (status.ownership_verification) ownershipSection = `TXT (ownership verification)\n ${status.ownership_verification.name} → ${status.ownership_verification.value}`;
|
|
125
123
|
const pendingRecords = [cnameSection, ownershipSection].filter((s) => s !== void 0);
|
|
126
|
-
if (pendingRecords.length > 0)
|
|
124
|
+
if (pendingRecords.length > 0) note(pendingRecords.join("\n\n"), pendingRecords.length === 1 ? "Add this DNS record to your provider" : "Add these DNS records to your provider");
|
|
127
125
|
}
|
|
128
126
|
//#endregion
|
|
129
127
|
export { runDomainCommand };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { a as join } from "./pathe.M-eThtNZ-
|
|
2
|
-
import {
|
|
3
|
-
import { f as getToken, n as PlatformClient } from "./client-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-CaJaIRXU.mjs";
|
|
7
|
-
import { a as loadUserEnvFile, i as validateProdEnv, n as formatEnvReport, t as fetchRemoteSecretNames } from "./env-validation-LH6eoyW-.mjs";
|
|
1
|
+
import { a as join } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { D as outro, E as note, T as log, a as cliTitle, w as intro } from "./agents-Bmr5tFFb.mjs";
|
|
3
|
+
import { b as readProjectConfig, f as getToken, n as PlatformClient } from "./client-Cj96iiBH.mjs";
|
|
4
|
+
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-D51bnR-c.mjs";
|
|
5
|
+
import { a as loadUserEnvFile, i as validateProdEnv, n as formatEnvReport, t as fetchRemoteSecretNames } from "./env-validation-CeC2FL66.mjs";
|
|
8
6
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
9
7
|
//#region src/cli/env-example.ts
|
|
10
8
|
/**
|
|
@@ -206,41 +204,41 @@ function applyMarkerBlock(existing, body) {
|
|
|
206
204
|
async function runEnvExample(root, options) {
|
|
207
205
|
const envFile = findEnvFile(root);
|
|
208
206
|
if (!envFile) {
|
|
209
|
-
|
|
207
|
+
outro("No env.ts found at project root — nothing to generate.");
|
|
210
208
|
return;
|
|
211
209
|
}
|
|
212
210
|
const schema = await loadRegisteredSchema(envFile);
|
|
213
211
|
if (!schema || Object.keys(schema).length === 0) {
|
|
214
|
-
|
|
212
|
+
outro("env.ts registered no keys — nothing to generate.");
|
|
215
213
|
return;
|
|
216
214
|
}
|
|
217
215
|
const outPath = join(root, ".env.example");
|
|
218
216
|
const existing = existsSync(outPath) ? readFileSync(outPath, "utf-8") : null;
|
|
219
217
|
const result = applyMarkerBlock(existing, formatEnvExample(schema));
|
|
220
218
|
if (result.action === "error") {
|
|
221
|
-
|
|
219
|
+
log.error(result.reason ?? "Failed to update .env.example.");
|
|
222
220
|
process.exit(1);
|
|
223
221
|
}
|
|
224
222
|
if (existing !== null && existing === result.content) {
|
|
225
|
-
|
|
223
|
+
outro(".env.example is already up to date.");
|
|
226
224
|
return;
|
|
227
225
|
}
|
|
228
226
|
writeFileSync(outPath, result.content);
|
|
229
227
|
const count = Object.keys(schema).length;
|
|
230
228
|
const keyCount = `${count} key${count === 1 ? "" : "s"}`;
|
|
231
|
-
if (result.action === "create")
|
|
232
|
-
else if (result.action === "replace")
|
|
229
|
+
if (result.action === "create") log.success(`Wrote .env.example (${keyCount}).`);
|
|
230
|
+
else if (result.action === "replace") log.success(`Refreshed void env block in .env.example (${keyCount}).`);
|
|
233
231
|
else if (result.action === "append") {
|
|
234
|
-
|
|
235
|
-
if (!options.force)
|
|
232
|
+
log.success(`Refreshed void env block in .env.example (${keyCount}).`);
|
|
233
|
+
if (!options.force) log.info("appended void env block to existing .env.example");
|
|
236
234
|
}
|
|
237
|
-
|
|
235
|
+
outro("Done.");
|
|
238
236
|
}
|
|
239
237
|
//#endregion
|
|
240
238
|
//#region src/cli/env.ts
|
|
241
239
|
async function runEnvCommand(root, args) {
|
|
242
240
|
console.log();
|
|
243
|
-
|
|
241
|
+
intro(cliTitle(`env ${args.subcommand}`));
|
|
244
242
|
if (args.subcommand === "check") {
|
|
245
243
|
await runCheck(root, args.useRemoteSecrets);
|
|
246
244
|
return;
|
|
@@ -259,12 +257,12 @@ async function runCheck(root, useRemoteSecrets) {
|
|
|
259
257
|
if (useRemoteSecrets) {
|
|
260
258
|
const token = getToken(root);
|
|
261
259
|
if (!token) {
|
|
262
|
-
|
|
260
|
+
log.error("--remote requires authentication. Run `void auth login` first.");
|
|
263
261
|
process.exit(1);
|
|
264
262
|
}
|
|
265
263
|
const config = readProjectConfig(root);
|
|
266
264
|
if (!config) {
|
|
267
|
-
|
|
265
|
+
log.error("--remote requires a linked project. Run `void project link` first.");
|
|
268
266
|
process.exit(1);
|
|
269
267
|
}
|
|
270
268
|
remoteSecrets = await fetchRemoteSecretNames(new PlatformClient(token, { root }), config.projectId);
|
|
@@ -274,28 +272,28 @@ async function runCheck(root, useRemoteSecrets) {
|
|
|
274
272
|
remoteSecrets
|
|
275
273
|
});
|
|
276
274
|
if (!hasSchema) {
|
|
277
|
-
|
|
275
|
+
outro("No env.ts found — nothing to validate.");
|
|
278
276
|
return;
|
|
279
277
|
}
|
|
280
278
|
if (report.valid) {
|
|
281
|
-
|
|
279
|
+
outro("All required env vars are present and valid.");
|
|
282
280
|
return;
|
|
283
281
|
}
|
|
284
|
-
|
|
285
|
-
if (report.missing.length > 0)
|
|
282
|
+
note(formatEnvReport(report), "Env validation failed");
|
|
283
|
+
if (report.missing.length > 0) log.info(`Set missing values via .env / .env.production, or upload as secrets with \`void secret put <NAME>\`.`);
|
|
286
284
|
process.exit(1);
|
|
287
285
|
}
|
|
288
286
|
function runTypes(root) {
|
|
289
287
|
const envFile = findEnvFile(root);
|
|
290
288
|
if (!envFile) {
|
|
291
|
-
|
|
289
|
+
outro("No env.ts found at project root — nothing to generate.");
|
|
292
290
|
return;
|
|
293
291
|
}
|
|
294
292
|
const outDir = join(root, ".void");
|
|
295
293
|
mkdirSync(outDir, { recursive: true });
|
|
296
294
|
const { dts } = generateEnvTypes(envFile, outDir);
|
|
297
295
|
writeFileSync(join(outDir, "env.d.ts"), dts);
|
|
298
|
-
|
|
296
|
+
outro(`Wrote ${join(".void", "env.d.ts")}.`);
|
|
299
297
|
}
|
|
300
298
|
//#endregion
|
|
301
299
|
export { runEnvCommand };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as relative } from "./pathe.M-eThtNZ-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { i as voidWarn } from "./log-
|
|
1
|
+
import { s as relative } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-tpdR1mJR.mjs";
|
|
3
|
+
import { i as voidWarn } from "./log-ChfPKsVd.mjs";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
//#region src/codegen/env-types.ts
|
|
6
6
|
/** Roots already warned about duplicate env.ts files — dedupes noisy repeat calls. */
|
|
@@ -31,7 +31,7 @@ function findEnvFileForPaths(root, paths) {
|
|
|
31
31
|
* @param outDir Absolute path to the project's `.void/` directory.
|
|
32
32
|
*/
|
|
33
33
|
function generateEnvTypes(envFileAbs, outDir) {
|
|
34
|
-
const importPath = relative(outDir, envFileAbs)
|
|
34
|
+
const importPath = relative(outDir, envFileAbs);
|
|
35
35
|
const lines = [];
|
|
36
36
|
lines.push("// Auto-generated by void — do not edit");
|
|
37
37
|
lines.push("export {}");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as join } from "./pathe.M-eThtNZ-
|
|
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-
|
|
1
|
+
import { a as join } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { i as voidWarn } from "./log-ChfPKsVd.mjs";
|
|
3
|
+
import { n as mergeAndExpand, r as parseDotenvFile } from "./dotenv-D_UbC_vc.mjs";
|
|
4
|
+
import { t as findEnvFile } from "./env-types-D51bnR-c.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
//#region src/host/load-user-env.ts
|
|
7
7
|
/**
|
|
@@ -101,7 +101,7 @@ function isJSONSerializable(value) {
|
|
|
101
101
|
if (value instanceof FormData || value instanceof URLSearchParams) return false;
|
|
102
102
|
return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function";
|
|
103
103
|
}
|
|
104
|
-
const textTypes = new Set([
|
|
104
|
+
const textTypes = /* @__PURE__ */ new Set([
|
|
105
105
|
"image/svg",
|
|
106
106
|
"application/xml",
|
|
107
107
|
"application/xhtml",
|
|
@@ -143,7 +143,7 @@ async function callHooks(context, hooks) {
|
|
|
143
143
|
if (hooks) if (Array.isArray(hooks)) for (const hook of hooks) await hook(context);
|
|
144
144
|
else await hooks(context);
|
|
145
145
|
}
|
|
146
|
-
const retryStatusCodes = new Set([
|
|
146
|
+
const retryStatusCodes = /* @__PURE__ */ new Set([
|
|
147
147
|
408,
|
|
148
148
|
409,
|
|
149
149
|
425,
|
|
@@ -153,7 +153,7 @@ const retryStatusCodes = new Set([
|
|
|
153
153
|
503,
|
|
154
154
|
504
|
|
155
155
|
]);
|
|
156
|
-
const nullBodyResponses = new Set([
|
|
156
|
+
const nullBodyResponses = /* @__PURE__ */ new Set([
|
|
157
157
|
101,
|
|
158
158
|
204,
|
|
159
159
|
205,
|