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/runtime/handler.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { convertReturnValue } from "./response.mjs";
|
|
2
2
|
import { runValidation } from "./validator.mjs";
|
|
3
|
-
import { i as ValidationError, n as defer } from "../defer-
|
|
3
|
+
import { i as ValidationError, n as defer } from "../defer-YsYDUoii.mjs";
|
|
4
4
|
//#region src/runtime/handler.ts
|
|
5
5
|
/**
|
|
6
6
|
* Thrown when `c.rewrite()` is called with a destination whose final path
|
package/dist/runtime/isr.mjs
CHANGED
package/dist/runtime/live.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
-
import { r as AuthUser } from "../auth-
|
|
3
|
-
import { a as CloudEnv, r as CloudContext } from "../handler-
|
|
2
|
+
import { r as AuthUser } from "../auth-qgMlYp7Z.mjs";
|
|
3
|
+
import { a as CloudEnv, r as CloudContext } from "../handler-imD0UVDT.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/live.d.ts
|
|
6
6
|
type MaybePromise<T> = T | Promise<T>;
|
package/dist/runtime/live.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getRawRuntimeEnv } from "../env-raw-
|
|
1
|
+
import { i as getRawRuntimeEnv } from "../env-raw-CoS20LHP.mjs";
|
|
2
2
|
import { getUser } from "./auth.mjs";
|
|
3
3
|
//#region src/runtime/live.ts
|
|
4
4
|
let liveBindingName = "VOID_LIVE";
|
|
@@ -369,6 +369,8 @@ function internalUrl(path) {
|
|
|
369
369
|
return `https://void.live${path}`;
|
|
370
370
|
}
|
|
371
371
|
var LiveResponseError = class extends Error {
|
|
372
|
+
code;
|
|
373
|
+
status;
|
|
372
374
|
constructor(code, message, status) {
|
|
373
375
|
super(message);
|
|
374
376
|
this.code = code;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as disablePgPassFallback } from "../pg-
|
|
1
|
+
import { t as disablePgPassFallback } from "../pg-J2HbZIkX.mjs";
|
|
2
2
|
//#region src/runtime/migration-handler-pg.ts
|
|
3
3
|
function createMigrationHandler(env, migrations, _dialect, runAuthMigrations) {
|
|
4
4
|
return async (request) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as canonicalJson } from "../canonical-json-
|
|
1
|
+
import { t as canonicalJson } from "../canonical-json-DuDiiUsQ.mjs";
|
|
2
2
|
//#region src/runtime/migration-handler.ts
|
|
3
3
|
const SUPPORTED_CLASSIFIER_VERSION = 1;
|
|
4
4
|
function createMigrationHandler(env, migrations, _dialect, runAuthMigrations, planBundle) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as cfAccessHeaders } from "../../cf-access-
|
|
1
|
+
import { t as cfAccessHeaders } from "../../cf-access-Bqw81xAf.mjs";
|
|
2
2
|
//#region src/runtime/remote/client.ts
|
|
3
3
|
/**
|
|
4
4
|
* HTTP client for the remote bindings proxy (proxy.void.cloud).
|
|
@@ -7,6 +7,8 @@ import { t as cfAccessHeaders } from "../../cf-access-DKDsgwOU.mjs";
|
|
|
7
7
|
* binding operations to the platform proxy during local development.
|
|
8
8
|
*/
|
|
9
9
|
var ProxyClient = class {
|
|
10
|
+
proxyUrl;
|
|
11
|
+
projectId;
|
|
10
12
|
authHeaders;
|
|
11
13
|
constructor(proxyUrl, token, projectId, env = {}) {
|
|
12
14
|
this.proxyUrl = proxyUrl;
|
|
@@ -75,6 +77,8 @@ var ProxyClient = class {
|
|
|
75
77
|
* Used during local development when `remote: true` is set in void.json.
|
|
76
78
|
*/
|
|
77
79
|
var ProxyD1Database = class {
|
|
80
|
+
client;
|
|
81
|
+
binding;
|
|
78
82
|
constructor(client, binding) {
|
|
79
83
|
this.client = client;
|
|
80
84
|
this.binding = binding;
|
|
@@ -112,6 +116,8 @@ var ProxyD1Database = class {
|
|
|
112
116
|
* Accumulates SQL and params synchronously; terminal methods (all, first, run, raw) make the HTTP call.
|
|
113
117
|
*/
|
|
114
118
|
var ProxyD1PreparedStatement = class {
|
|
119
|
+
client;
|
|
120
|
+
binding;
|
|
115
121
|
/** @internal */
|
|
116
122
|
_sql;
|
|
117
123
|
/** @internal */
|
|
@@ -171,6 +177,8 @@ var ProxyD1PreparedStatement = class {
|
|
|
171
177
|
* Used during local development when `remote: true` is set in void.json.
|
|
172
178
|
*/
|
|
173
179
|
var ProxyKVNamespace = class {
|
|
180
|
+
client;
|
|
181
|
+
binding;
|
|
174
182
|
normalizeGetOptions(options) {
|
|
175
183
|
if (typeof options === "string") return options;
|
|
176
184
|
if (options?.type === "json" || options?.type === "text" || options?.type === "arrayBuffer" || options?.type === "stream") return { type: options.type };
|
|
@@ -291,6 +299,8 @@ var ProxyKVNamespace = class {
|
|
|
291
299
|
* Used during local development when `remote: true` is set in void.json.
|
|
292
300
|
*/
|
|
293
301
|
var ProxyR2Bucket = class {
|
|
302
|
+
client;
|
|
303
|
+
binding;
|
|
294
304
|
constructor(client, binding) {
|
|
295
305
|
this.client = client;
|
|
296
306
|
this.binding = binding;
|
|
@@ -43,10 +43,7 @@ declare function __setSandboxBindingName(bindingName: string): void;
|
|
|
43
43
|
*/
|
|
44
44
|
declare class VoidPlatformSandbox<Env = unknown> extends Sandbox<Env> {
|
|
45
45
|
override onStart(): Promise<void>;
|
|
46
|
-
override alarm(alarmProps?:
|
|
47
|
-
isRetry: boolean;
|
|
48
|
-
retryCount: number;
|
|
49
|
-
}): Promise<void>;
|
|
46
|
+
override alarm(alarmProps?: AlarmInvocationInfo): Promise<void>;
|
|
50
47
|
override onStop(): Promise<void>;
|
|
51
48
|
override onActivityExpired(): Promise<void>;
|
|
52
49
|
private flushFinal;
|
package/dist/runtime/sandbox.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getRawRuntimeEnv } from "../env-raw-
|
|
1
|
+
import { i as getRawRuntimeEnv } from "../env-raw-CoS20LHP.mjs";
|
|
2
2
|
import { requireRuntimeBinding } from "./env.mjs";
|
|
3
3
|
import { Sandbox, getSandbox as getSandbox$1 } from "@cloudflare/sandbox";
|
|
4
4
|
//#region src/runtime/sandbox.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as runValidation, E as ValidatorSlots, T as HandlerInput } from "../handler-
|
|
1
|
+
import { D as runValidation, E as ValidatorSlots, T as HandlerInput } from "../handler-imD0UVDT.mjs";
|
|
2
2
|
export { HandlerInput, ValidatorSlots, runValidation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as AuthState } from "../auth-
|
|
2
|
-
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv } from "../better-auth-shared-
|
|
1
|
+
import { n as AuthState } from "../auth-qgMlYp7Z.mjs";
|
|
2
|
+
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv } from "../better-auth-shared-BvnM9px6.mjs";
|
|
3
3
|
import { AnyWebSocketDefinition } from "./ws.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/ws-server.d.ts
|
|
@@ -164,6 +164,8 @@ function assertDefinition(definition) {
|
|
|
164
164
|
function createWebSocketDurableObject(definition, route, authRuntime, resolveAuthState) {
|
|
165
165
|
assertDefinition(definition);
|
|
166
166
|
class VoidWebSocketDurableObject {
|
|
167
|
+
state;
|
|
168
|
+
env;
|
|
167
169
|
constructor(state, env) {
|
|
168
170
|
this.state = state;
|
|
169
171
|
this.env = env;
|
package/dist/runtime/ws.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as AuthUser } from "../auth-
|
|
2
|
-
import { t as StandardSchemaV1 } from "../standard-schema-
|
|
3
|
-
import { a as CloudEnv } from "../handler-
|
|
1
|
+
import { r as AuthUser } from "../auth-qgMlYp7Z.mjs";
|
|
2
|
+
import { t as StandardSchemaV1 } from "../standard-schema-DJ0HW7QP.mjs";
|
|
3
|
+
import { a as CloudEnv } from "../handler-imD0UVDT.mjs";
|
|
4
4
|
import { WebSocketRouteMap } from "void/routes";
|
|
5
5
|
|
|
6
6
|
//#region src/runtime/ws.d.ts
|
package/dist/runtime/ws.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as join, n as dirname, r as extname, t as basename } from "./pathe.M-eThtNZ-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { t as glob } from "./dist-
|
|
1
|
+
import { a as join, n as dirname, r as extname, t as basename } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-tpdR1mJR.mjs";
|
|
3
|
+
import { t as glob } from "./dist-BuiRJkTd.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/router/parse-filename.ts
|
|
6
6
|
const EXTENSIONS = [
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
import { a as join, i as isAbsolute, t as basename } from "./pathe.M-eThtNZ-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { n as globSync, t as glob } from "./dist-
|
|
4
|
-
import { d as isCallExpression, f as isIdentifier, h as isObjectExpression, p as isLiteral } from "./plugin-inference-
|
|
5
|
-
import { o as parseRouteFilename, s as parseWebSocketFilename, t as scanPages } from "./scan-
|
|
6
|
-
import { readFileSync } from "node:fs";
|
|
1
|
+
import { a as join, i as isAbsolute, t as basename } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-tpdR1mJR.mjs";
|
|
3
|
+
import { n as globSync, t as glob } from "./dist-BuiRJkTd.mjs";
|
|
4
|
+
import { d as isCallExpression, f as isIdentifier, h as isObjectExpression, p as isLiteral } from "./plugin-inference-CJxi_fWI.mjs";
|
|
5
|
+
import { o as parseRouteFilename, s as parseWebSocketFilename, t as scanPages } from "./scan-Dp_Gyzs3.mjs";
|
|
6
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
7
|
+
import { pathToFileURL } from "node:url";
|
|
7
8
|
import { parseSync } from "vite";
|
|
9
|
+
//#region src/auth/config.ts
|
|
10
|
+
function isVoidAuthConfigSource(code) {
|
|
11
|
+
return /\bfrom\s+["']void\/auth["']/.test(code);
|
|
12
|
+
}
|
|
13
|
+
function findVoidAuthConfig(root, paths = readProjectPaths(root)) {
|
|
14
|
+
for (const absPath of paths.authConfigCandidates) {
|
|
15
|
+
if (!existsSync(absPath)) continue;
|
|
16
|
+
if (isVoidAuthConfigSource(readFileSync(absPath, "utf-8"))) return absPath;
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
async function loadVoidAuthConfig(configPath) {
|
|
21
|
+
if (!configPath) return;
|
|
22
|
+
const mod = await import(pathToFileURL(configPath).href);
|
|
23
|
+
return mod.default ?? mod.auth ?? mod.config;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
8
26
|
//#region src/crons/scan.ts
|
|
9
27
|
const JOB_EXTENSIONS = [
|
|
10
28
|
"ts",
|
|
@@ -121,7 +139,7 @@ function scanQueuesSync(root, queuesDir = "queues") {
|
|
|
121
139
|
}
|
|
122
140
|
//#endregion
|
|
123
141
|
//#region src/router/detect-exports.ts
|
|
124
|
-
const HTTP_METHODS = new Set([
|
|
142
|
+
const HTTP_METHODS = /* @__PURE__ */ new Set([
|
|
125
143
|
"GET",
|
|
126
144
|
"POST",
|
|
127
145
|
"PUT",
|
|
@@ -362,4 +380,4 @@ function scanRoutePatternsSync(root, paths = readProjectPaths(root)) {
|
|
|
362
380
|
return routeFiles.filter((f) => !isWebSocketPatternFile(f)).filter((f) => !f.split("/").some((s) => s.startsWith("_"))).map((f) => parseRouteFilename(f)).sort(compareRouteSpecificity);
|
|
363
381
|
}
|
|
364
382
|
//#endregion
|
|
365
|
-
export { scanQueuesSync as a, scanWebSocketRoutesSync as i, scanRoutePatternsSync as n, scanJobsSync as o, scanRoutes as r, scanMiddlewareSync as t };
|
|
383
|
+
export { scanQueuesSync as a, loadVoidAuthConfig as c, scanWebSocketRoutesSync as i, scanRoutePatternsSync as n, scanJobsSync as o, scanRoutes as r, findVoidAuthConfig as s, scanMiddlewareSync as t };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as getToken, n as PlatformClient } from "./client-
|
|
3
|
-
import {
|
|
4
|
-
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
|
-
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D4O1_fZz.mjs";
|
|
1
|
+
import { D as outro, E as note, O as password, S as confirm, T as log, a as cliTitle, j as isCancel, w as intro, x as cancel } from "./agents-Bmr5tFFb.mjs";
|
|
2
|
+
import { b as readProjectConfig, f as getToken, n as PlatformClient } from "./client-Cj96iiBH.mjs";
|
|
3
|
+
import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D2HI3TrG.mjs";
|
|
6
4
|
import { readFileSync } from "node:fs";
|
|
7
5
|
//#region src/cli/secret.ts
|
|
8
6
|
async function runSecretCommand(root, args) {
|
|
9
7
|
console.log();
|
|
10
|
-
|
|
8
|
+
intro(cliTitle("secret"));
|
|
11
9
|
const token = getToken(root);
|
|
12
10
|
if (!token) {
|
|
13
|
-
|
|
11
|
+
log.error("Not logged in. Run `void auth login` first.");
|
|
14
12
|
process.exit(1);
|
|
15
13
|
}
|
|
16
14
|
const client = new PlatformClient(token, { root });
|
|
@@ -28,42 +26,42 @@ async function runSecretCommand(root, args) {
|
|
|
28
26
|
if (args.action === "list") {
|
|
29
27
|
const secrets = await client.listSecrets(projectId);
|
|
30
28
|
if (secrets.length === 0) {
|
|
31
|
-
|
|
29
|
+
outro("No secrets set.");
|
|
32
30
|
return;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
note(secrets.map((s) => ` ${s.name}`).join("\n"), "Secrets");
|
|
33
|
+
outro(`${secrets.length} secret(s)`);
|
|
36
34
|
return;
|
|
37
35
|
}
|
|
38
36
|
if (args.action === "put") {
|
|
39
37
|
const value = args.value ?? await readSecretValue();
|
|
40
38
|
await client.setSecret(projectId, args.name, value);
|
|
41
|
-
|
|
39
|
+
outro(`Secret ${args.name} set.`);
|
|
42
40
|
return;
|
|
43
41
|
}
|
|
44
42
|
if (args.action === "sync") {
|
|
45
43
|
const secrets = parseDotenvFile(args.file);
|
|
46
44
|
if (secrets.length === 0) {
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
log.warn("No secrets found in file.");
|
|
46
|
+
outro("Nothing to sync.");
|
|
49
47
|
return;
|
|
50
48
|
}
|
|
51
|
-
|
|
52
|
-
for (const s of secrets)
|
|
53
|
-
const proceed = await
|
|
54
|
-
if (
|
|
55
|
-
|
|
49
|
+
log.info(`Found ${secrets.length} secret(s):`);
|
|
50
|
+
for (const s of secrets) log.message(` ${s.name}`);
|
|
51
|
+
const proceed = await confirm({ message: `This will overwrite ${secrets.length} secret(s) in the remote environment. Continue?` });
|
|
52
|
+
if (isCancel(proceed) || !proceed) {
|
|
53
|
+
cancel("Secret sync cancelled.");
|
|
56
54
|
process.exit(0);
|
|
57
55
|
}
|
|
58
56
|
for (const s of secrets) {
|
|
59
57
|
await client.setSecret(projectId, s.name, s.value);
|
|
60
|
-
|
|
58
|
+
log.success(`Set ${s.name}`);
|
|
61
59
|
}
|
|
62
|
-
|
|
60
|
+
outro(`Synced ${secrets.length} secret(s).`);
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
65
63
|
await client.deleteSecret(projectId, args.name);
|
|
66
|
-
|
|
64
|
+
outro(`Secret ${args.name} deleted.`);
|
|
67
65
|
}
|
|
68
66
|
const SECRET_KEY_RE = /^[A-Z][A-Z0-9_]*$/;
|
|
69
67
|
function parseDotenvFile(filePath) {
|
|
@@ -93,12 +91,12 @@ async function readSecretValue() {
|
|
|
93
91
|
if (value.length === 0) throw new Error("Secret value is required.");
|
|
94
92
|
return value;
|
|
95
93
|
}
|
|
96
|
-
const result = await
|
|
94
|
+
const result = await password({
|
|
97
95
|
message: "Enter secret value:",
|
|
98
96
|
mask: "*"
|
|
99
97
|
});
|
|
100
|
-
if (
|
|
101
|
-
|
|
98
|
+
if (isCancel(result)) {
|
|
99
|
+
cancel("Secret command cancelled.");
|
|
102
100
|
process.exit(0);
|
|
103
101
|
}
|
|
104
102
|
const value = result ?? "";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as join, s as relative } from "./pathe.M-eThtNZ-
|
|
2
|
-
import {
|
|
3
|
-
import { r as getPackageDir } from "./agents-MhSzNMiC.mjs";
|
|
1
|
+
import { a as join, s as relative } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
|
+
import { T as log, r as getPackageDir } from "./agents-Bmr5tFFb.mjs";
|
|
4
3
|
import { existsSync, mkdirSync, readFileSync, readdirSync, readlinkSync, symlinkSync } from "node:fs";
|
|
5
4
|
//#region src/cli/skills.ts
|
|
6
5
|
function parseSkills(skillsDir) {
|
|
@@ -33,15 +32,15 @@ function linkSkills(root, skillsDir, skills, agentSkillsDir) {
|
|
|
33
32
|
if (existsSync(linkPath)) {
|
|
34
33
|
try {
|
|
35
34
|
if (readlinkSync(linkPath) === relativeTarget) {
|
|
36
|
-
|
|
35
|
+
log.info(` ${skill.name} — already linked`);
|
|
37
36
|
continue;
|
|
38
37
|
}
|
|
39
38
|
} catch {}
|
|
40
|
-
|
|
39
|
+
log.warn(` ${skill.name} — path exists but is not the expected symlink, skipping`);
|
|
41
40
|
continue;
|
|
42
41
|
}
|
|
43
42
|
symlinkSync(relativeTarget, linkPath, process.platform === "win32" ? "junction" : "dir");
|
|
44
|
-
|
|
43
|
+
log.success(` ${skill.name} — linked`);
|
|
45
44
|
linked++;
|
|
46
45
|
}
|
|
47
46
|
return linked;
|
|
@@ -53,7 +52,7 @@ function linkSkillsForSpecificAgents(root, agents) {
|
|
|
53
52
|
if (agents.length === 0) return 0;
|
|
54
53
|
let totalLinked = 0;
|
|
55
54
|
for (const agent of agents) {
|
|
56
|
-
|
|
55
|
+
log.info(`${agent.displayName} → ${agent.skillsDir}`);
|
|
57
56
|
totalLinked += linkSkills(root, skillsDir, skills, agent.skillsDir);
|
|
58
57
|
}
|
|
59
58
|
return totalLinked;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as F, b as z, d as _t, m as et, o as H, r as E, s as J, t as $ } from "./dist-abzUneor.mjs";
|
|
1
|
+
import { _ as S_RADIO_ACTIVE, b as S_STEP_SUBMIT, g as S_CHECKBOX_INACTIVE, h as S_CHECKBOX_ACTIVE, m as S_BAR_END, p as S_BAR, u as import_picocolors, v as S_RADIO_INACTIVE, y as S_STEP_ACTIVE } from "./agents-Bmr5tFFb.mjs";
|
|
3
2
|
//#region src/cli/subcommand-prompt.ts
|
|
4
3
|
function promptSubcommand(command, subcommands) {
|
|
5
4
|
return new Promise((resolve) => {
|
|
@@ -33,31 +32,31 @@ function promptSubcommand(command, subcommands) {
|
|
|
33
32
|
const title = command ? `void ${command}` : "void";
|
|
34
33
|
function headerLine() {
|
|
35
34
|
const argPart = selectedArg ? ` ${selectedArg}` : "";
|
|
36
|
-
return `${import_picocolors.default.cyan(
|
|
35
|
+
return `${import_picocolors.default.cyan(S_STEP_ACTIVE)} ${import_picocolors.default.cyan(title)} ${import_picocolors.default.dim("·")} ${import_picocolors.default.cyan(`${selectedSub.name}${argPart}`)}`;
|
|
37
36
|
}
|
|
38
37
|
function renderSelect() {
|
|
39
38
|
const lines = [];
|
|
40
39
|
const focused = subcommands[cursor];
|
|
41
|
-
lines.push(`${import_picocolors.default.cyan(
|
|
42
|
-
lines.push(import_picocolors.default.gray(
|
|
40
|
+
lines.push(`${import_picocolors.default.cyan(S_STEP_ACTIVE)} ${import_picocolors.default.cyan(title)}`);
|
|
41
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
43
42
|
const maxName = Math.max(...subcommands.map((s) => s.name.length));
|
|
44
43
|
for (let i = 0; i < subcommands.length; i++) {
|
|
45
44
|
const sub = subcommands[i];
|
|
46
45
|
const isFocused = i === cursor;
|
|
47
|
-
const radio = isFocused ? import_picocolors.default.green(
|
|
46
|
+
const radio = isFocused ? import_picocolors.default.green(S_RADIO_ACTIVE) : import_picocolors.default.dim(S_RADIO_INACTIVE);
|
|
48
47
|
const name = sub.name.padEnd(maxName);
|
|
49
48
|
let suffix = "";
|
|
50
49
|
if (sub.arg) if (isFocused && input.length > 0) suffix = ` ${import_picocolors.default.cyan(input)}`;
|
|
51
50
|
else suffix = ` ${import_picocolors.default.dim(sub.arg)}`;
|
|
52
51
|
else if (sub.hint) suffix = ` ${import_picocolors.default.dim(sub.hint)}`;
|
|
53
|
-
if (isFocused) lines.push(`${import_picocolors.default.gray(
|
|
54
|
-
else lines.push(`${import_picocolors.default.gray(
|
|
52
|
+
if (isFocused) lines.push(`${import_picocolors.default.gray(S_BAR)} ${radio} ${import_picocolors.default.reset(name)}${suffix}`);
|
|
53
|
+
else lines.push(`${import_picocolors.default.gray(S_BAR)} ${radio} ${import_picocolors.default.dim(name)}${suffix}`);
|
|
55
54
|
}
|
|
56
|
-
lines.push(import_picocolors.default.gray(
|
|
57
|
-
lines.push(`${import_picocolors.default.gray(
|
|
58
|
-
if (focused.arg) if (focused.arg.startsWith("<")) lines.push(`${import_picocolors.default.gray(
|
|
59
|
-
else lines.push(`${import_picocolors.default.gray(
|
|
60
|
-
lines.push(import_picocolors.default.gray(
|
|
55
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
56
|
+
lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(focused.description)}`);
|
|
57
|
+
if (focused.arg) if (focused.arg.startsWith("<")) lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(`Type ${focused.arg}, then press Enter`)}`);
|
|
58
|
+
else lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(`Type ${focused.arg}, then press Enter, or press Enter to skip`)}`);
|
|
59
|
+
lines.push(import_picocolors.default.gray(S_BAR_END));
|
|
61
60
|
stdout.write(lines.join("\n") + "\n");
|
|
62
61
|
prevLineCount = lines.length;
|
|
63
62
|
}
|
|
@@ -66,23 +65,23 @@ function promptSubcommand(command, subcommands) {
|
|
|
66
65
|
const focused = flags[cursor];
|
|
67
66
|
const lines = [];
|
|
68
67
|
lines.push(headerLine());
|
|
69
|
-
lines.push(import_picocolors.default.gray(
|
|
68
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
70
69
|
const maxFlag = Math.max(...flags.map((f) => f.name.length));
|
|
71
70
|
for (let i = 0; i < flags.length; i++) {
|
|
72
71
|
const flag = flags[i];
|
|
73
72
|
const state = flagStates[i];
|
|
74
73
|
const isFocused = i === cursor;
|
|
75
|
-
const checkbox = state.enabled ? import_picocolors.default.green(
|
|
74
|
+
const checkbox = state.enabled ? import_picocolors.default.green(S_CHECKBOX_ACTIVE) : isFocused ? S_CHECKBOX_INACTIVE : import_picocolors.default.dim(S_CHECKBOX_INACTIVE);
|
|
76
75
|
const name = flag.name.padEnd(maxFlag);
|
|
77
76
|
let valueText = "";
|
|
78
77
|
if (flag.arg) if (state.enabled && state.value.length > 0) valueText = ` ${isFocused ? import_picocolors.default.cyan(state.value) : import_picocolors.default.dim(state.value)}`;
|
|
79
78
|
else valueText = ` ${import_picocolors.default.dim(flag.arg)}`;
|
|
80
|
-
if (isFocused) lines.push(`${import_picocolors.default.gray(
|
|
81
|
-
else lines.push(`${import_picocolors.default.gray(
|
|
79
|
+
if (isFocused) lines.push(`${import_picocolors.default.gray(S_BAR)} ${checkbox} ${import_picocolors.default.reset(name)}${valueText}`);
|
|
80
|
+
else lines.push(`${import_picocolors.default.gray(S_BAR)} ${checkbox} ${import_picocolors.default.dim(name)}${valueText}`);
|
|
82
81
|
}
|
|
83
|
-
lines.push(import_picocolors.default.gray(
|
|
84
|
-
lines.push(`${import_picocolors.default.gray(
|
|
85
|
-
lines.push(import_picocolors.default.gray(
|
|
82
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
83
|
+
lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(focused.description)}`);
|
|
84
|
+
lines.push(import_picocolors.default.gray(S_BAR_END));
|
|
86
85
|
stdout.write(lines.join("\n") + "\n");
|
|
87
86
|
prevLineCount = lines.length;
|
|
88
87
|
}
|
|
@@ -90,20 +89,20 @@ function promptSubcommand(command, subcommands) {
|
|
|
90
89
|
const options = selectedSub.followUp.options;
|
|
91
90
|
const lines = [];
|
|
92
91
|
lines.push(headerLine());
|
|
93
|
-
lines.push(import_picocolors.default.gray(
|
|
92
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
94
93
|
const maxLabel = Math.max(...options.map((o) => o.label.length));
|
|
95
94
|
for (let i = 0; i < options.length; i++) {
|
|
96
95
|
const opt = options[i];
|
|
97
96
|
const selected = multiSelectStates[i];
|
|
98
97
|
const isFocused = i === cursor;
|
|
99
|
-
const checkbox = selected ? import_picocolors.default.green(
|
|
98
|
+
const checkbox = selected ? import_picocolors.default.green(S_CHECKBOX_ACTIVE) : isFocused ? S_CHECKBOX_INACTIVE : import_picocolors.default.dim(S_CHECKBOX_INACTIVE);
|
|
100
99
|
const label = opt.label.padEnd(maxLabel);
|
|
101
|
-
if (isFocused) lines.push(`${import_picocolors.default.gray(
|
|
102
|
-
else lines.push(`${import_picocolors.default.gray(
|
|
100
|
+
if (isFocused) lines.push(`${import_picocolors.default.gray(S_BAR)} ${checkbox} ${import_picocolors.default.reset(label)}`);
|
|
101
|
+
else lines.push(`${import_picocolors.default.gray(S_BAR)} ${checkbox} ${import_picocolors.default.dim(label)}`);
|
|
103
102
|
}
|
|
104
|
-
lines.push(import_picocolors.default.gray(
|
|
105
|
-
lines.push(`${import_picocolors.default.gray(
|
|
106
|
-
lines.push(import_picocolors.default.gray(
|
|
103
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
104
|
+
lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim("space to toggle, enter to confirm")}`);
|
|
105
|
+
lines.push(import_picocolors.default.gray(S_BAR_END));
|
|
107
106
|
stdout.write(lines.join("\n") + "\n");
|
|
108
107
|
prevLineCount = lines.length;
|
|
109
108
|
}
|
|
@@ -111,13 +110,13 @@ function promptSubcommand(command, subcommands) {
|
|
|
111
110
|
const followUp = selectedSub.followUp;
|
|
112
111
|
const lines = [];
|
|
113
112
|
lines.push(headerLine());
|
|
114
|
-
lines.push(import_picocolors.default.gray(
|
|
115
|
-
for (const entry of repeatEntries) lines.push(`${import_picocolors.default.gray(
|
|
116
|
-
if (repeatInput.length > 0) lines.push(`${import_picocolors.default.gray(
|
|
117
|
-
else lines.push(`${import_picocolors.default.gray(
|
|
118
|
-
lines.push(import_picocolors.default.gray(
|
|
119
|
-
lines.push(`${import_picocolors.default.gray(
|
|
120
|
-
lines.push(import_picocolors.default.gray(
|
|
113
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
114
|
+
for (const entry of repeatEntries) lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(entry)}`);
|
|
115
|
+
if (repeatInput.length > 0) lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.cyan(repeatInput)}`);
|
|
116
|
+
else lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim(followUp.placeholder)}`);
|
|
117
|
+
lines.push(import_picocolors.default.gray(S_BAR));
|
|
118
|
+
lines.push(`${import_picocolors.default.gray(S_BAR)} ${import_picocolors.default.dim("enter to add, empty to finish")}`);
|
|
119
|
+
lines.push(import_picocolors.default.gray(S_BAR_END));
|
|
121
120
|
stdout.write(lines.join("\n") + "\n");
|
|
122
121
|
prevLineCount = lines.length;
|
|
123
122
|
}
|
|
@@ -140,7 +139,7 @@ function promptSubcommand(command, subcommands) {
|
|
|
140
139
|
if (typeof value === "string") summary += ` ${value}`;
|
|
141
140
|
}
|
|
142
141
|
if (result.extraArgs && result.extraArgs.length > 0) summary += ` ${result.extraArgs.join(" ")}`;
|
|
143
|
-
stdout.write(`${import_picocolors.default.gray(
|
|
142
|
+
stdout.write(`${import_picocolors.default.gray(S_STEP_SUBMIT)} ${import_picocolors.default.dim(title)} ${import_picocolors.default.dim("·")} ${import_picocolors.default.dim(summary)}\n`);
|
|
144
143
|
}
|
|
145
144
|
resolve(result);
|
|
146
145
|
}
|
package/dist/sveltekit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as join, c as resolve, i as isAbsolute, s as relative } from "./pathe.M-eThtNZ-
|
|
1
|
+
import { a as join, c as resolve, i as isAbsolute, s as relative } from "./pathe.M-eThtNZ-CQzLbt4c.mjs";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
//#region src/sveltekit.ts
|
|
4
4
|
/**
|