void 0.9.3 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auth-cmd-CPkWrQR9.mjs → auth-cmd-DBnbrX9Y.mjs} +2 -2
- package/dist/{better-auth-shared-CmEQZs1T.d.mts → better-auth-shared-a7H3wk9J.d.mts} +2 -2
- package/dist/{cache-1SVxZ7BK.mjs → cache-DNX0hLsO.mjs} +1 -1
- package/dist/{cancel-deploy-JaFClLr7.mjs → cancel-deploy-CDzkVaYZ.mjs} +1 -1
- package/dist/cli/cli.mjs +205 -36
- package/dist/{client-DIfOFf1W.mjs → client-D4awzTnj.mjs} +149 -45
- package/dist/{create-project-DCUrFJxa.mjs → create-project-CGodxfzH.mjs} +1 -1
- package/dist/{db-UW4IYQFw.mjs → db-ERzz4oly.mjs} +14 -14
- package/dist/{delete-CYknzwXU.mjs → delete-CJZGDLBR.mjs} +1 -1
- package/dist/{deploy-RQXpVBL-.mjs → deploy-Cwa5sooV.mjs} +74 -102
- package/dist/{domain-B7RntQ1r.mjs → domain-WvoAHE6w.mjs} +1 -1
- package/dist/{env-C_ZcxxED.mjs → env-Cx4czPsR.mjs} +1 -1
- package/dist/{env-helpers-Bd2wVdxz.d.mts → env-helpers-ZatKyjen.d.mts} +1 -1
- package/dist/{gen-O5mXZ76K.mjs → gen-Dgi4D7GC.mjs} +1 -1
- package/dist/git-metadata-Ce0AtSZL.mjs +82 -0
- package/dist/github-cmd-CUB041gj.mjs +308 -0
- package/dist/{handler-hm9KldPP.d.mts → handler-DczZlaXR.d.mts} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +18 -18
- package/dist/{init-DGrLx2ls.mjs → init-DvaRDMIc.mjs} +122 -77
- package/dist/{link-7MoXUMaI.mjs → link-CpbWJY3P.mjs} +2 -2
- package/dist/{list-N2mCHv8q.mjs → list-BkwE5vH4.mjs} +1 -1
- package/dist/{login-tt1OmNVg.mjs → login-Ca6mhQVI.mjs} +1 -1
- package/dist/{logs-Cl7q2CjZ.mjs → logs-ArQzZquo.mjs} +1 -1
- package/dist/{mcp-BXD35N2J.mjs → mcp-Cc2MMXdQ.mjs} +1 -1
- package/dist/{node-Df8UjQ2H.mjs → node-B07cZs0d.mjs} +3 -3
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +1 -0
- package/dist/pages/head-client.d.mts +1 -1
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +1 -1
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/{plugin-inference--7geW5Z2.mjs → plugin-inference-C3fLzFvP.mjs} +2 -0
- package/dist/{prepare-DT-7QII_.mjs → prepare-DH2WnEpD.mjs} +3 -3
- package/dist/{preset-2aBxMfY1.mjs → preset-B7ZQZn0u.mjs} +2 -2
- package/dist/{project-cmd-CLrqSbqj.mjs → project-cmd-CWZeawuN.mjs} +8 -8
- package/dist/{protocol-B9GZA4Bn.d.mts → protocol-63PHtCHS.d.mts} +3 -3
- package/dist/{rollback-CEbAwbHK.mjs → rollback-BJ60ktsW.mjs} +1 -1
- package/dist/{runner-DLZ9E_cX.mjs → runner-BQyKUqAL.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +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/env-helpers.d.mts +1 -1
- package/dist/runtime/env-public-client.d.mts +1 -1
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/env-public.mjs +1 -1
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +1 -1
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.mjs +1 -1
- package/dist/runtime/live.d.mts +2 -2
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/migration-handler-pg.mjs +1 -1
- 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.d.mts +3 -3
- package/dist/{scan-B2H1Vo2C.mjs → scan-DGEp1-1Q.mjs} +17 -9
- package/dist/{secret-C_uTY7xx.mjs → secret-BRbXyu7E.mjs} +1 -1
- package/package.json +2 -2
- package/schema.json +3 -3
- package/skills/void/docs/guide/deployment.md +37 -11
- package/skills/void/docs/guide/edge/headers.md +10 -3
- package/skills/void/docs/guide/edge/rewrites.md +5 -5
- package/skills/void/docs/reference/cli.md +65 -2
- /package/dist/{auth-migrations-CuQkjjWE.mjs → auth-migrations-BP-hMzYl.mjs} +0 -0
- /package/dist/{auth-CDeb2XAl.d.mts → auth-nEUVHuFI.d.mts} +0 -0
- /package/dist/{better-auth-shared-QAfk8CAS.mjs → better-auth-shared-D0Mbmx5V.mjs} +0 -0
- /package/dist/{defer-CouVukrf.mjs → defer-C-bdSM_b.mjs} +0 -0
- /package/dist/{drizzle-DYstYz0j.mjs → drizzle-DqstQTGq.mjs} +0 -0
- /package/dist/{env-raw-RDkMnSTC.mjs → env-raw-Dtj1UAoK.mjs} +0 -0
- /package/dist/{fetch-error-CimrygMq.d.mts → fetch-error-BQMdPvge.d.mts} +0 -0
- /package/dist/{fetch-error-BFIoojjf.mjs → fetch-error-C6qffTl2.mjs} +0 -0
- /package/dist/{head-BsSTGnIe.d.mts → head-JAH2l3fg.d.mts} +0 -0
- /package/dist/{headers-VkAnACKX.mjs → headers-BNWymgnH.mjs} +0 -0
- /package/dist/{package-json-B2TD0JLu.mjs → package-json-Bg_GJdJB.mjs} +0 -0
- /package/dist/{pg-CMZ_5wsC.mjs → pg-CempqvEJ.mjs} +0 -0
- /package/dist/{providers-3Kkv63Ha.d.mts → providers-BkiAlEad.d.mts} +0 -0
- /package/dist/{runner-pg-Cv9V7ydr.mjs → runner-pg-BAheiT6v.mjs} +0 -0
- /package/dist/{skills-BRKc--As.mjs → skills--OMgLmXW.mjs} +0 -0
- /package/dist/{standard-schema-Dnsh2vnl.d.mts → standard-schema-BCBv-QaP.d.mts} +0 -0
- /package/dist/{subcommand-prompt-OD-x_Tsm.mjs → subcommand-prompt-ClwpLlKD.mjs} +0 -0
- /package/dist/{types-DEWCqHtl.d.mts → types-BnHMXezo.d.mts} +0 -0
- /package/dist/{yarn-pnp-0SwYgQxx.mjs → yarn-pnp-DhCHHLAz.mjs} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as cliTitle } from "./output-DeiS4oEX.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { d as getToken, n as PlatformClient, p as isStagingMode } from "./client-D4awzTnj.mjs";
|
|
5
5
|
import { _ as me, c as R, g as ge, i as Ee, l as Re, u as Se, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
7
7
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-BTNuNoJ0.mjs";
|
|
8
8
|
import { c as getDatabaseDialect, f as readConfig } from "./config-8dLIngKW.mjs";
|
|
9
|
-
import { r as detectFramework } from "./plugin-inference
|
|
9
|
+
import { r as detectFramework } from "./plugin-inference-C3fLzFvP.mjs";
|
|
10
10
|
import { r as parseDotenvFile, t as expandDotenv } from "./dotenv-lS94ymhM.mjs";
|
|
11
11
|
import { t as MagicString } from "./magic-string.es-C1Fb0uxq.mjs";
|
|
12
12
|
import { n as writeDrizzleConfig } from "./config--wXmVOoe.mjs";
|
|
13
13
|
import { n as getAgentById, r as getPackageDir, t as detectAgents } from "./agents-MhSzNMiC.mjs";
|
|
14
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
15
|
-
import { t as promptForLoginToken } from "./login-
|
|
16
|
-
import { r as formatProjectCommand } from "./preset-
|
|
17
|
-
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
14
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-CGodxfzH.mjs";
|
|
15
|
+
import { t as promptForLoginToken } from "./login-Ca6mhQVI.mjs";
|
|
16
|
+
import { r as formatProjectCommand } from "./preset-B7ZQZn0u.mjs";
|
|
17
|
+
import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DhCHHLAz.mjs";
|
|
18
18
|
import { createRequire } from "node:module";
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { fileURLToPath } from "node:url";
|
|
@@ -1767,95 +1767,138 @@ function getNodeVersionLine(root) {
|
|
|
1767
1767
|
if (existsSync(join(root, ".node-version"))) return "node-version-file: .node-version";
|
|
1768
1768
|
return "node-version: lts/*";
|
|
1769
1769
|
}
|
|
1770
|
-
|
|
1770
|
+
const WORKFLOW_DEFAULT_API_URL = "https://api.void.cloud";
|
|
1771
|
+
function getWorkflowSetupSteps(root, pm) {
|
|
1771
1772
|
const nodeVersion = getNodeVersionLine(root);
|
|
1772
1773
|
switch (pm) {
|
|
1773
|
-
case "pnpm": return
|
|
1774
|
-
|
|
1775
|
-
push:
|
|
1776
|
-
branches: [main]
|
|
1777
|
-
|
|
1778
|
-
jobs:
|
|
1779
|
-
deploy:
|
|
1780
|
-
runs-on: ubuntu-latest
|
|
1781
|
-
steps:
|
|
1782
|
-
- uses: actions/checkout@v6
|
|
1783
|
-
- uses: pnpm/action-setup@v5
|
|
1774
|
+
case "pnpm": return {
|
|
1775
|
+
setup: ` - uses: pnpm/action-setup@v5
|
|
1784
1776
|
- uses: actions/setup-node@v6
|
|
1785
1777
|
with:
|
|
1786
1778
|
${nodeVersion}
|
|
1787
|
-
cache: pnpm
|
|
1788
|
-
- run: pnpm install
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
case "yarn": return `name: Deploy
|
|
1794
|
-
on:
|
|
1795
|
-
push:
|
|
1796
|
-
branches: [main]
|
|
1797
|
-
|
|
1798
|
-
jobs:
|
|
1799
|
-
deploy:
|
|
1800
|
-
runs-on: ubuntu-latest
|
|
1801
|
-
steps:
|
|
1802
|
-
- uses: actions/checkout@v6
|
|
1803
|
-
- uses: actions/setup-node@v6
|
|
1779
|
+
cache: pnpm`,
|
|
1780
|
+
install: " - run: pnpm install --frozen-lockfile",
|
|
1781
|
+
runner: "pnpm exec void"
|
|
1782
|
+
};
|
|
1783
|
+
case "yarn": return {
|
|
1784
|
+
setup: ` - uses: actions/setup-node@v6
|
|
1804
1785
|
with:
|
|
1805
1786
|
${nodeVersion}
|
|
1806
|
-
cache: yarn
|
|
1807
|
-
- run: yarn install --immutable
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1787
|
+
cache: yarn`,
|
|
1788
|
+
install: " - run: yarn install --immutable",
|
|
1789
|
+
runner: "yarn void"
|
|
1790
|
+
};
|
|
1791
|
+
case "bun": return {
|
|
1792
|
+
setup: " - uses: oven-sh/setup-bun@v2",
|
|
1793
|
+
install: " - run: bun install --frozen-lockfile",
|
|
1794
|
+
runner: "bunx void"
|
|
1795
|
+
};
|
|
1796
|
+
default: return {
|
|
1797
|
+
setup: ` - uses: actions/setup-node@v6
|
|
1798
|
+
with:
|
|
1799
|
+
${nodeVersion}
|
|
1800
|
+
cache: npm`,
|
|
1801
|
+
install: " - run: npm ci",
|
|
1802
|
+
runner: "npx void"
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* Scaffold the GitHub Actions workflow that deploys via GitHub OIDC — no
|
|
1808
|
+
* long-lived secret stored in the repo. The job requests an OIDC token from
|
|
1809
|
+
* GitHub (audience `void`), exchanges it at `POST $VOID_API_URL/auth/github-oidc`
|
|
1810
|
+
* for a short-lived (15-min) project-scoped deploy token, then runs
|
|
1811
|
+
* `void deploy --project <slug>` with that token exported as `VOID_TOKEN`.
|
|
1812
|
+
*
|
|
1813
|
+
* `slug` is the linked project slug when known (from `.void/project.json`);
|
|
1814
|
+
* otherwise a `${{ vars.VOID_PROJECT }}` placeholder is emitted with a comment
|
|
1815
|
+
* telling the user to set the repository variable.
|
|
1816
|
+
*/
|
|
1817
|
+
function getWorkflowYaml(root, pm, slug) {
|
|
1818
|
+
const { setup, install, runner } = getWorkflowSetupSteps(root, pm);
|
|
1819
|
+
return `name: Deploy to Void
|
|
1813
1820
|
on:
|
|
1814
1821
|
push:
|
|
1815
1822
|
branches: [main]
|
|
1816
1823
|
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1824
|
+
# Latest push wins: cancel an in-flight deploy for the same repo+branch so a
|
|
1825
|
+
# newer commit is never overtaken by an older one. Keyed by repo + ref only —
|
|
1826
|
+
# workflow-level concurrency cannot read the \`env\` context, so VOID_PROJECT is
|
|
1827
|
+
# not used here (one repo+branch deploys to one project in this scaffold).
|
|
1828
|
+
concurrency:
|
|
1829
|
+
group: void-deploy-\${{ github.repository }}-\${{ github.ref }}
|
|
1830
|
+
cancel-in-progress: true
|
|
1831
|
+
|
|
1832
|
+
# id-token: write lets the job mint a GitHub OIDC token. No long-lived
|
|
1833
|
+
# VOID_TOKEN secret is stored — the token below is exchanged for a
|
|
1834
|
+
# short-lived, project-scoped deploy token at deploy time.
|
|
1835
|
+
permissions:
|
|
1836
|
+
id-token: write
|
|
1837
|
+
contents: read
|
|
1838
|
+
|
|
1839
|
+
env:
|
|
1840
|
+
# Override with a VOID_API_URL repository variable to target staging.
|
|
1841
|
+
VOID_API_URL: \${{ vars.VOID_API_URL || '${WORKFLOW_DEFAULT_API_URL}' }}
|
|
1842
|
+
${slug ? `VOID_PROJECT: ${slug}` : `# Set a VOID_PROJECT repository variable to your project slug
|
|
1843
|
+
# (Settings → Secrets and variables → Actions → Variables).
|
|
1844
|
+
VOID_PROJECT: \${{ vars.VOID_PROJECT }}`}
|
|
1832
1845
|
|
|
1833
1846
|
jobs:
|
|
1834
1847
|
deploy:
|
|
1835
1848
|
runs-on: ubuntu-latest
|
|
1836
1849
|
steps:
|
|
1837
1850
|
- uses: actions/checkout@v6
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
VOID_TOKEN
|
|
1851
|
+
${setup}
|
|
1852
|
+
${install}
|
|
1853
|
+
- name: Exchange GitHub OIDC token for a Void deploy token
|
|
1854
|
+
run: |
|
|
1855
|
+
OIDC_TOKEN="$(curl -sf \\
|
|
1856
|
+
-H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \\
|
|
1857
|
+
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=void" | jq -r '.value')"
|
|
1858
|
+
VOID_TOKEN="$(curl -sf \\
|
|
1859
|
+
-H 'Content-Type: application/json' \\
|
|
1860
|
+
-d "$(jq -n --arg t "$OIDC_TOKEN" --arg p "$VOID_PROJECT" '{oidcToken: $t, project: $p}')" \\
|
|
1861
|
+
"$VOID_API_URL/auth/github-oidc" | jq -r '.token')"
|
|
1862
|
+
echo "::add-mask::$VOID_TOKEN"
|
|
1863
|
+
echo "VOID_TOKEN=$VOID_TOKEN" >> "$GITHUB_ENV"
|
|
1864
|
+
- name: Deploy
|
|
1865
|
+
run: ${runner} deploy --project "$VOID_PROJECT"
|
|
1846
1866
|
`;
|
|
1847
|
-
}
|
|
1848
1867
|
}
|
|
1849
1868
|
function setupGithubActions(root, state) {
|
|
1850
|
-
const
|
|
1869
|
+
const workflowDir = join(root, ".github", "workflows");
|
|
1870
|
+
const workflowPath = join(workflowDir, "void-deploy.yml");
|
|
1851
1871
|
if (existsSync(workflowPath)) {
|
|
1852
|
-
R.warn("deploy.yml already exists, skipping");
|
|
1872
|
+
R.warn("void-deploy.yml already exists, skipping");
|
|
1853
1873
|
return;
|
|
1854
1874
|
}
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1875
|
+
const slug = readProjectConfig(root)?.slug ?? null;
|
|
1876
|
+
mkdirSync(workflowDir, { recursive: true });
|
|
1877
|
+
writeFileSync(workflowPath, getWorkflowYaml(root, state.packageManager, slug));
|
|
1878
|
+
R.success("Created .github/workflows/void-deploy.yml");
|
|
1879
|
+
if (slug) Se(`Pushes to main will build and deploy "${slug}" via GitHub OIDC — no token to store.\nConnect the repo to your project in the Void dashboard to authorize it.`, "GitHub Actions OIDC deploy");
|
|
1880
|
+
else Se("Pushes to main will build and deploy via GitHub OIDC — no token to store.\nSet a VOID_PROJECT repository variable (Settings → Secrets and variables → Actions → Variables)\nto your project slug, and connect the repo to your project in the Void dashboard.", "GitHub Actions OIDC deploy");
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Bake a resolved project slug into an already-written `void-deploy.yml`.
|
|
1884
|
+
*
|
|
1885
|
+
* Step 8 (GitHub Actions) runs BEFORE Step 9 (project link), so when a user
|
|
1886
|
+
* links a project during the same interactive init the workflow was written
|
|
1887
|
+
* with the `${{ vars.VOID_PROJECT }}` placeholder. Once the link resolves a
|
|
1888
|
+
* slug, rewrite the placeholder `env.VOID_PROJECT` block in place so the user
|
|
1889
|
+
* does not also have to set a repository variable. No-op (returns `false`)
|
|
1890
|
+
* when the workflow is missing or the placeholder is not present (e.g. the
|
|
1891
|
+
* slug was already known at scaffold time, or the user declined linking).
|
|
1892
|
+
*/
|
|
1893
|
+
function patchWorkflowProjectSlug(root, slug) {
|
|
1894
|
+
const workflowPath = join(root, ".github", "workflows", "void-deploy.yml");
|
|
1895
|
+
if (!existsSync(workflowPath)) return false;
|
|
1896
|
+
const yaml = readFileSync(workflowPath, "utf-8");
|
|
1897
|
+
const placeholderBlock = " # Set a VOID_PROJECT repository variable to your project slug\n # (Settings → Secrets and variables → Actions → Variables).\n VOID_PROJECT: ${{ vars.VOID_PROJECT }}";
|
|
1898
|
+
if (!yaml.includes(placeholderBlock)) return false;
|
|
1899
|
+
writeFileSync(workflowPath, yaml.replace(placeholderBlock, ` VOID_PROJECT: ${slug}`));
|
|
1900
|
+
R.success(`Set VOID_PROJECT: ${slug} in .github/workflows/void-deploy.yml`);
|
|
1901
|
+
return true;
|
|
1859
1902
|
}
|
|
1860
1903
|
function writeFileIfMissing(root, filePath, content) {
|
|
1861
1904
|
const fullPath = join(root, filePath);
|
|
@@ -2764,7 +2807,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2764
2807
|
const agentSetup = await resolveAgentSetup(root);
|
|
2765
2808
|
injectAgentBlock(root, agentSetup.instructionFilePath);
|
|
2766
2809
|
if (agentSetup.agents.length > 0) {
|
|
2767
|
-
const { linkSkillsForSpecificAgents } = await import("./skills
|
|
2810
|
+
const { linkSkillsForSpecificAgents } = await import("./skills--OMgLmXW.mjs");
|
|
2768
2811
|
linkSkillsForSpecificAgents(root, agentSetup.agents);
|
|
2769
2812
|
} else R.info("Skills linking skipped for generic agent setup");
|
|
2770
2813
|
setupMcpConfig(root, agentSetup.agents);
|
|
@@ -2789,10 +2832,9 @@ async function runInitCommand(root, initArgs) {
|
|
|
2789
2832
|
}
|
|
2790
2833
|
}
|
|
2791
2834
|
const githubStepSkipForSubpackage = isInsideWorkspaceSubpackage(root);
|
|
2792
|
-
if ((!targeted || initArgs?.github) && !githubStepSkipForSubpackage) if (
|
|
2793
|
-
else if (targeted) setupGithubActions(root, state);
|
|
2835
|
+
if ((!targeted || initArgs?.github) && !githubStepSkipForSubpackage) if (targeted) setupGithubActions(root, state);
|
|
2794
2836
|
else {
|
|
2795
|
-
const setupGha = await ue({ message: "Create .github/workflows/deploy.yml to deploy on pushes to main?" });
|
|
2837
|
+
const setupGha = await ue({ message: "Create .github/workflows/void-deploy.yml to deploy on pushes to main?" });
|
|
2796
2838
|
if (q(setupGha)) {
|
|
2797
2839
|
me("Setup cancelled.");
|
|
2798
2840
|
process.exit(0);
|
|
@@ -2810,7 +2852,10 @@ async function runInitCommand(root, initArgs) {
|
|
|
2810
2852
|
}
|
|
2811
2853
|
if (scaffoldAddedDependencies) installProjectDependencies(root, state.packageManager);
|
|
2812
2854
|
if (scaffoldedStarterMode && !workspaceSubpackageSkip) generateStarterMigration(root, scaffoldedStarterMode);
|
|
2813
|
-
if (!targeted)
|
|
2855
|
+
if (!targeted) {
|
|
2856
|
+
const linked = await maybeSetupDeployProject(root);
|
|
2857
|
+
if (linked?.slug) patchWorkflowProjectSlug(root, linked.slug);
|
|
2858
|
+
}
|
|
2814
2859
|
if (workspaceSubpackageSkip) if (scaffoldedStarterMode) ye("Run your workspace install, then `void db generate` to finish setup.");
|
|
2815
2860
|
else ye("Run your workspace install to finish setup.");
|
|
2816
2861
|
else ye(`Run \`${getDevCommand(root, framework)}\` to start developing`);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient, u as getSiteDomain } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { a as writeProjectConfig, r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
|
-
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-
|
|
5
|
+
import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-CGodxfzH.mjs";
|
|
6
6
|
import { r as resolveProjectBySlug } from "./resolve-project-D4O1_fZz.mjs";
|
|
7
7
|
//#region src/cli/link.ts
|
|
8
8
|
async function runLink(root, slug) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
import { r as resolveProjectBySlug } from "./resolve-project-D4O1_fZz.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import { a as isExpiredTokenError,
|
|
2
|
+
import { _ as saveToken, a as isExpiredTokenError, d as getToken, f as getTokenSource, g as runLogin, h as removeToken, n as PlatformClient, p as isStagingMode } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/login.ts
|
|
5
5
|
async function promptForLoginToken(root = process.cwd()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/logs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { a as writeProjectConfig } from "./project-CH9pdo16.mjs";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as join } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYPVRT.mjs";
|
|
3
3
|
import { f as readConfig } from "./config-8dLIngKW.mjs";
|
|
4
|
-
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-
|
|
5
|
-
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-
|
|
6
|
-
import { getMiniflareDatabasePath } from "./runner-
|
|
4
|
+
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DqstQTGq.mjs";
|
|
5
|
+
import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-BP-hMzYl.mjs";
|
|
6
|
+
import { getMiniflareDatabasePath } from "./runner-BQyKUqAL.mjs";
|
|
7
7
|
import { loadEnv } from "vite";
|
|
8
8
|
//#region src/auth/node.ts
|
|
9
9
|
async function runLocalVoidAuthMigrations(root, dialect, persistRoot = join(root, ".void"), databaseId = "local", configPath = findVoidAuthConfig(root)) {
|
package/dist/pages/client.d.mts
CHANGED
package/dist/pages/client.mjs
CHANGED
package/dist/pages/head.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-JAH2l3fg.mjs";
|
|
2
2
|
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
2
|
-
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-JAH2l3fg.mjs";
|
|
2
|
+
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-BnHMXezo.mjs";
|
|
3
3
|
import { serializePageData } from "./serialize.mjs";
|
|
4
4
|
import { RewriteDestination } from "void/routes";
|
|
5
5
|
|
package/dist/pages/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as join } from "../pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
|
2
2
|
import { r as resolvePagesDir } from "../project-paths-CCMrHYQm.mjs";
|
|
3
3
|
import { f as readConfig } from "../config-8dLIngKW.mjs";
|
|
4
4
|
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-VCAM1oh3.mjs";
|
|
5
|
-
import { i as parseRedirectsFile } from "../headers-
|
|
5
|
+
import { i as parseRedirectsFile } from "../headers-BNWymgnH.mjs";
|
|
6
6
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
7
7
|
import { serializePageData } from "./serialize.mjs";
|
|
8
8
|
//#region src/pages/manifest.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { w as ValidationError } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-
|
|
1
|
+
import { w as ValidationError } from "../handler-DczZlaXR.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-63PHtCHS.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isConvertedResponse } from "../runtime/response.mjs";
|
|
2
|
-
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-
|
|
2
|
+
import { i as ValidationError, r as separateDeferred, t as DEFERRED } from "../defer-C-bdSM_b.mjs";
|
|
3
3
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
4
4
|
import { serializePageData } from "./serialize.mjs";
|
|
5
5
|
//#region src/pages/protocol.ts
|
|
@@ -398,6 +398,7 @@ function validateServerRenderExport(entry) {
|
|
|
398
398
|
return false;
|
|
399
399
|
}
|
|
400
400
|
if (node.type !== "ExportNamedDeclaration") return false;
|
|
401
|
+
if (node.exportKind === "type") return false;
|
|
401
402
|
const declaration = node.declaration;
|
|
402
403
|
if (declaration?.type === "FunctionDeclaration") {
|
|
403
404
|
const fn = declaration;
|
|
@@ -405,6 +406,7 @@ function validateServerRenderExport(entry) {
|
|
|
405
406
|
}
|
|
406
407
|
if (declaration?.type === "VariableDeclaration") return (declaration.declarations ?? []).some((decl) => isIdentifier(decl.id) && decl.id.name === "render");
|
|
407
408
|
return (node.specifiers ?? []).some((specifier) => {
|
|
409
|
+
if (specifier.exportKind === "type") return false;
|
|
408
410
|
const exported = specifier.exported;
|
|
409
411
|
return isIdentifier(exported) && exported.name === "render";
|
|
410
412
|
});
|
|
@@ -5,12 +5,12 @@ import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYP
|
|
|
5
5
|
import { c as R, g as ge, u as Se, y as ye } from "./dist-abzUneor.mjs";
|
|
6
6
|
import { n as ensureProjectTsconfig, r as writeFileIfChanged } from "./project-tsconfig-BTNuNoJ0.mjs";
|
|
7
7
|
import { c as getDatabaseDialect, f as readConfig } from "./config-8dLIngKW.mjs";
|
|
8
|
-
import { r as scanRoutes } from "./scan-
|
|
9
|
-
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference
|
|
8
|
+
import { r as scanRoutes } from "./scan-DGEp1-1Q.mjs";
|
|
9
|
+
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-C3fLzFvP.mjs";
|
|
10
10
|
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-D03ryMXz.mjs";
|
|
11
11
|
import { t as discoverSchema } from "./discover-C8N1I4tK.mjs";
|
|
12
12
|
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-CaJaIRXU.mjs";
|
|
13
|
-
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-
|
|
13
|
+
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-DqstQTGq.mjs";
|
|
14
14
|
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
16
|
import { loadEnv } from "vite";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, c as resolve } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { n as readProjectPaths } from "./project-paths-CCMrHYQm.mjs";
|
|
3
|
-
import { s as hasSsrEntry } from "./plugin-inference
|
|
4
|
-
import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-
|
|
3
|
+
import { s as hasSsrEntry } from "./plugin-inference-C3fLzFvP.mjs";
|
|
4
|
+
import { i as readPackageJson, n as hasPackageDependency, t as getPackageDependencies } from "./package-json-Bg_GJdJB.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
//#region src/cli/preset.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient, u as getSiteDomain } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { c as R, g as ge, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
//#region src/cli/projects.ts
|
|
5
5
|
async function runProjectsCommand(root) {
|
|
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
|
|
|
34
34
|
//#region src/cli/project-cmd.ts
|
|
35
35
|
async function runProjectCommand(root, args) {
|
|
36
36
|
if (args.subcommand === "status") {
|
|
37
|
-
const { runListCommand } = await import("./list-
|
|
37
|
+
const { runListCommand } = await import("./list-BkwE5vH4.mjs");
|
|
38
38
|
return runListCommand(root, args.name || void 0);
|
|
39
39
|
}
|
|
40
40
|
if (args.subcommand === "link") {
|
|
41
|
-
const { runLink } = await import("./link-
|
|
41
|
+
const { runLink } = await import("./link-CpbWJY3P.mjs");
|
|
42
42
|
return runLink(root, args.name || void 0);
|
|
43
43
|
}
|
|
44
44
|
if (args.subcommand === "list") return runProjectsCommand(root);
|
|
45
45
|
if (args.subcommand === "logs") {
|
|
46
|
-
const { runLogsCommand } = await import("./logs-
|
|
46
|
+
const { runLogsCommand } = await import("./logs-ArQzZquo.mjs");
|
|
47
47
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
48
48
|
}
|
|
49
49
|
if (args.subcommand === "rollback") {
|
|
50
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
50
|
+
const { runRollbackCommand } = await import("./rollback-BJ60ktsW.mjs");
|
|
51
51
|
return runRollbackCommand(root, args.deployId || void 0);
|
|
52
52
|
}
|
|
53
53
|
if (args.subcommand === "cancel") {
|
|
54
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
54
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-CDzkVaYZ.mjs");
|
|
55
55
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
56
56
|
}
|
|
57
57
|
if (args.subcommand === "delete") {
|
|
58
|
-
const { runDeleteCommand } = await import("./delete-
|
|
58
|
+
const { runDeleteCommand } = await import("./delete-CJZGDLBR.mjs");
|
|
59
59
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
60
60
|
}
|
|
61
61
|
if (args.subcommand === "purge-cache") {
|
|
62
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
62
|
+
const { runPurgeCacheCommand } = await import("./cache-DNX0hLsO.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as HeadDescriptor, t as HeadConfig } from "./head-
|
|
2
|
-
import { n as CloudBindings, r as CloudContext } from "./handler-
|
|
3
|
-
import { a as PageRenderMode, t as DevCssAsset } from "./types-
|
|
1
|
+
import { n as HeadDescriptor, t as HeadConfig } from "./head-JAH2l3fg.mjs";
|
|
2
|
+
import { n as CloudBindings, r as CloudContext } from "./handler-DczZlaXR.mjs";
|
|
3
|
+
import { a as PageRenderMode, t as DevCssAsset } from "./types-BnHMXezo.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/pages/protocol.d.ts
|
|
6
6
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-DeiS4oEX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { d as getToken, n as PlatformClient } from "./client-D4awzTnj.mjs";
|
|
3
3
|
import { _ as me, c as R, g as ge, i as Ee, v as ue, x as q, y as ye } from "./dist-abzUneor.mjs";
|
|
4
4
|
import { r as readProjectConfig } from "./project-CH9pdo16.mjs";
|
|
5
5
|
//#region src/cli/rollback.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
|
|
2
2
|
import { t as collectMigrations } from "./collect-9rO3JFNM.mjs";
|
|
3
3
|
import { r as classifyMigration } from "./plan-aD3wRDqF.mjs";
|
|
4
|
-
import { n as hasPackageDependency, r as readNearestPackageJson } from "./package-json-
|
|
4
|
+
import { n as hasPackageDependency, r as readNearestPackageJson } from "./package-json-Bg_GJdJB.mjs";
|
|
5
5
|
import { existsSync, mkdirSync } from "node:fs";
|
|
6
6
|
import { createHash, createHmac } from "node:crypto";
|
|
7
7
|
//#region src/migrations/runner.ts
|
package/dist/runtime/ai.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cfAccessHeaders } from "../cf-access-DKDsgwOU.mjs";
|
|
2
|
-
import { i as getRawRuntimeEnv } from "../env-raw-
|
|
2
|
+
import { i as getRawRuntimeEnv } from "../env-raw-Dtj1UAoK.mjs";
|
|
3
3
|
//#region src/runtime/ai-types.ts
|
|
4
4
|
/** Maps provider prefix to expected env var name for the API key */
|
|
5
5
|
const PROVIDER_KEY_MAP = {
|
package/dist/runtime/auth.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-
|
|
1
|
+
import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
export { AuthSession, AuthState, AuthUser, VoidAuthConfig, VoidAuthConfigContext, authContext, defineAuth, getSession, getUser, requireAuth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-
|
|
1
|
+
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-a7H3wk9J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth-pg.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as applyPgAuthMigrations } from "../auth-migrations-
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
3
|
-
import { t as disablePgPassFallback } from "../pg-
|
|
1
|
+
import { t as applyPgAuthMigrations } from "../auth-migrations-BP-hMzYl.mjs";
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D0Mbmx5V.mjs";
|
|
3
|
+
import { t as disablePgPassFallback } from "../pg-CempqvEJ.mjs";
|
|
4
4
|
//#region src/runtime/better-auth-pg.ts
|
|
5
5
|
function resolveConnectionString(env) {
|
|
6
6
|
const connectionString = typeof env.DATABASE_URL === "string" && env.DATABASE_URL.length > 0 ? env.DATABASE_URL : typeof env.HYPERDRIVE?.connectionString === "string" && env.HYPERDRIVE.connectionString.length > 0 ? env.HYPERDRIVE.connectionString : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-
|
|
1
|
+
import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-a7H3wk9J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as applySqliteAuthMigrations } from "../auth-migrations-
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
1
|
+
import { n as applySqliteAuthMigrations } from "../auth-migrations-BP-hMzYl.mjs";
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-D0Mbmx5V.mjs";
|
|
3
3
|
//#region src/runtime/better-auth.ts
|
|
4
4
|
async function resolveDatabase(env) {
|
|
5
5
|
if (!env.DB) throw new Error("auth: Better Auth requires the \"DB\" D1 binding for sqlite apps.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-react.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FetchError } from "../fetch-error-
|
|
1
|
+
import { t as FetchError } from "../fetch-error-C6qffTl2.mjs";
|
|
2
2
|
import { fetch } from "./fetch.mjs";
|
|
3
3
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
4
4
|
import { auth, createAuthClient } from "./auth-client-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-solid.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FetchError } from "../fetch-error-
|
|
1
|
+
import { t as FetchError } from "../fetch-error-C6qffTl2.mjs";
|
|
2
2
|
import { fetch } from "./fetch.mjs";
|
|
3
3
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
4
4
|
import { auth, createAuthClient } from "./auth-client-solid.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-
|
|
1
|
+
import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-nEUVHuFI.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client-svelte.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-BQMdPvge.mjs";
|
|
4
4
|
import { fetch } from "./fetch.mjs";
|
|
5
5
|
import { fetchStream } from "./fetch-stream.mjs";
|
|
6
6
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|