void 0.7.6 → 0.7.8
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-DrfOTMmr.d.mts → auth-DmuALf16.d.mts} +4 -4
- package/dist/{auth-cmd-Dk0acCT5.mjs → auth-cmd-CKKnwjJr.mjs} +2 -2
- package/dist/{better-auth-shared-CZsIpjey.d.mts → better-auth-shared-HXlHRw02.d.mts} +15 -15
- package/dist/{cache-DGSZ5Bh6.mjs → cache-GQaCgNU_.mjs} +1 -1
- package/dist/{cancel-deploy-CrY3kt93.mjs → cancel-deploy-Lm-s-VNM.mjs} +1 -1
- package/dist/cli/cli.mjs +22 -22
- package/dist/{client-DCqnMpDt.mjs → client-BCHb449S.mjs} +13 -3
- package/dist/{config-BIa9HwVX.mjs → config-DqkeX_Fa.mjs} +5 -5
- package/dist/{create-project-Bg88Kq_I.mjs → create-project-B4_81uPO.mjs} +1 -1
- package/dist/{db-DvBg7Oc5.mjs → db-DEgoBwm1.mjs} +26 -22
- package/dist/{delete-DXcX1yQZ.mjs → delete-B3XRid-6.mjs} +1 -1
- package/dist/{deploy-B5rTuzXw.mjs → deploy-BVhinNvN.mjs} +35 -12
- package/dist/{domain-CDQhvYNZ.mjs → domain-CwjrEwk9.mjs} +25 -2
- package/dist/{dotenv-DwO4ti0Z.mjs → dotenv-zdFCCgFU.mjs} +26 -26
- package/dist/{env-helpers-CbeM_7-k.d.mts → env-helpers-Dw95CU8e.d.mts} +4 -4
- package/dist/{env-CnrQY2b6.mjs → env-kXobUKhc.mjs} +2 -2
- package/dist/{env-validation-DJKjR_8q.mjs → env-validation-Bc_aiBUm.mjs} +1 -1
- package/dist/{fetch-error-DflegrF3.d.mts → fetch-error-DZ868Xq4.d.mts} +4 -4
- package/dist/{gen-C0EY2k27.mjs → gen-CpeKIqlM.mjs} +2 -2
- package/dist/{handler-dKQWyF-G.d.mts → handler-DJTuxB10.d.mts} +24 -27
- package/dist/{head-CZGAunBV.d.mts → head-C7QW7UY1.d.mts} +5 -6
- package/dist/{headers-YVkHjOyq.mjs → headers-C7Yf6_CN.mjs} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +42 -33
- package/dist/{init-BiXWyKEf.mjs → init-CfdGhcG_.mjs} +5 -5
- package/dist/{link-eZ0aiHFK.mjs → link-sYAGQEVa.mjs} +2 -2
- package/dist/{list-ztyEz4TW.mjs → list-B_cMVlKj.mjs} +1 -1
- package/dist/{login-B5HHT32i.mjs → login-B-hYch9Z.mjs} +1 -1
- package/dist/{logs-J4BN0LXd.mjs → logs-JrG0_AxV.mjs} +1 -1
- package/dist/{mcp-Bdu9bnjR.mjs → mcp-BcssKxth.mjs} +1 -1
- package/dist/{node-DFqMcZR1.mjs → node-DHVCtkgt.mjs} +1 -1
- package/dist/pages/client.d.mts +35 -41
- package/dist/pages/head-client.d.mts +1 -1
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/head.mjs +4 -4
- package/dist/pages/index.d.mts +6 -6
- package/dist/pages/index.mjs +6 -6
- package/dist/pages/islands-plugin.d.mts +3 -3
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/prefetch.d.mts +5 -5
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +2 -2
- package/dist/{prepare-BrfiJBju.mjs → prepare-CKzO06-Z.mjs} +3 -3
- package/dist/{project-cmd-DKiQYdSd.mjs → project-cmd-DDDakkqn.mjs} +8 -8
- package/dist/{protocol-COz1NHxc.d.mts → protocol-D7r_deVZ.d.mts} +5 -5
- package/dist/{rollback-ZNvT8T54.mjs → rollback-_11JdPsF.mjs} +1 -1
- package/dist/{route-types-DReF1gUY.mjs → route-types-Cnqj_8a7.mjs} +2 -2
- package/dist/runtime/ai.d.mts +33 -40
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/env-helpers.d.mts +1 -1
- package/dist/runtime/env-helpers.mjs +3 -3
- package/dist/runtime/env-public-client.d.mts +3 -3
- package/dist/runtime/env-public.d.mts +7 -7
- package/dist/runtime/fetch-stream.d.mts +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +3 -3
- package/dist/runtime/isr.d.mts +2 -2
- package/dist/runtime/kv.d.mts +12 -12
- package/dist/runtime/live-server.d.mts +4 -4
- package/dist/runtime/live.d.mts +2 -2
- package/dist/runtime/migration-handler.d.mts +6 -6
- package/dist/runtime/seed.d.mts +4 -4
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +8 -8
- package/dist/runtime/ws.d.mts +21 -21
- package/dist/{scan-vv5u7rHu.mjs → scan-B8iEm8xn.mjs} +5 -5
- package/dist/{scan-Ba4hFwlH.mjs → scan-CWfLxtOe.mjs} +8 -8
- package/dist/{secret-BXHx515u.mjs → secret-DwG7uDho.mjs} +1 -1
- package/dist/{standard-schema-BfGDWXff.d.mts → standard-schema-D2qvCEYV.d.mts} +14 -14
- package/dist/sveltekit.d.mts +3 -5
- package/dist/types-DG_Ynnyd.d.mts +42 -0
- package/package.json +2 -2
- package/dist/types-D6AuY5Bf.d.mts +0 -65
package/dist/pages/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageObject } from "../protocol-
|
|
1
|
+
import { t as PageObject } from "../protocol-D7r_deVZ.mjs";
|
|
2
2
|
import { CacheForInput, CacheForResult } from "./prefetch.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/pages/action-result.d.ts
|
|
@@ -32,39 +32,36 @@ declare function isCallSiteActionError(error: unknown): error is VoidActionError
|
|
|
32
32
|
declare function isAbortError(error: unknown): boolean;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/pages/navigation-engine.d.ts
|
|
35
|
-
|
|
35
|
+
type PageComponentModule = {
|
|
36
36
|
default: unknown;
|
|
37
|
-
}
|
|
37
|
+
};
|
|
38
38
|
type PageData = PageObject;
|
|
39
|
-
|
|
39
|
+
type VisitOptions$1 = {
|
|
40
40
|
method?: string;
|
|
41
41
|
data?: unknown;
|
|
42
42
|
preserveScroll?: boolean;
|
|
43
43
|
preserveState?: boolean;
|
|
44
44
|
replace?: boolean;
|
|
45
|
-
viewTransition?: boolean;
|
|
46
|
-
/** @internal Used by
|
|
47
|
-
_resolveOnShell?: boolean;
|
|
48
|
-
/** @internal Used by popstate handler to pass saved scroll position */
|
|
45
|
+
viewTransition?: boolean; /** @internal Used by React Actions to avoid waiting for a commit blocked by the action itself. */
|
|
46
|
+
_resolveOnShell?: boolean; /** @internal Used by popstate handler to pass saved scroll position */
|
|
49
47
|
_scrollPosition?: {
|
|
50
48
|
x: number;
|
|
51
49
|
y: number;
|
|
52
|
-
} | null;
|
|
53
|
-
/** @internal Used by popstate handler to avoid writing history while traversing */
|
|
50
|
+
} | null; /** @internal Used by popstate handler to avoid writing history while traversing */
|
|
54
51
|
_popstate?: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
52
|
+
};
|
|
53
|
+
type PrefetchOptions$1 = {
|
|
57
54
|
method?: string;
|
|
58
55
|
cacheFor?: CacheForInput;
|
|
59
|
-
}
|
|
60
|
-
|
|
56
|
+
};
|
|
57
|
+
type VoidRouterAdapter$1 = {
|
|
61
58
|
createDeferred(): unknown;
|
|
62
59
|
resolveDeferred(ref: unknown, value: unknown): unknown;
|
|
63
60
|
rejectDeferred(ref: unknown, error: string): unknown;
|
|
64
61
|
isLoading(ref: unknown): boolean;
|
|
65
62
|
onDeferredUpdate?(props: Record<string, unknown>): void;
|
|
66
|
-
}
|
|
67
|
-
|
|
63
|
+
};
|
|
64
|
+
type PageNavigationEngineConfig = {
|
|
68
65
|
adapter: VoidRouterAdapter$1;
|
|
69
66
|
components: Record<string, () => Promise<PageComponentModule>>;
|
|
70
67
|
layoutTree: Record<string, Array<string>>;
|
|
@@ -77,13 +74,13 @@ interface PageNavigationEngineConfig {
|
|
|
77
74
|
viewTransitions: boolean;
|
|
78
75
|
prefetchHoverDelay: number;
|
|
79
76
|
prefetchDefaultCacheFor: CacheForResult;
|
|
80
|
-
}
|
|
81
|
-
|
|
77
|
+
};
|
|
78
|
+
type PageNavigationResult = {
|
|
82
79
|
pageData: PageData;
|
|
83
80
|
component: unknown;
|
|
84
81
|
layouts: Array<unknown>;
|
|
85
|
-
}
|
|
86
|
-
|
|
82
|
+
};
|
|
83
|
+
type PageNavigationResource = {
|
|
87
84
|
id: number;
|
|
88
85
|
url: string;
|
|
89
86
|
fetchUrl: string;
|
|
@@ -95,8 +92,8 @@ interface PageNavigationResource {
|
|
|
95
92
|
abort(): void;
|
|
96
93
|
commit(): Promise<void>;
|
|
97
94
|
dispose(): void;
|
|
98
|
-
}
|
|
99
|
-
|
|
95
|
+
};
|
|
96
|
+
type PageNavigationEngine = {
|
|
100
97
|
_hoverDelay: number;
|
|
101
98
|
initialPageData: PageData;
|
|
102
99
|
initialComponent: unknown;
|
|
@@ -107,42 +104,39 @@ interface PageNavigationEngine {
|
|
|
107
104
|
flushAll(): void;
|
|
108
105
|
setPopStateHandler(handler: (url: string, options: VisitOptions$1) => void): void;
|
|
109
106
|
start(): void;
|
|
110
|
-
}
|
|
107
|
+
};
|
|
111
108
|
declare function createPageNavigationEngine(config: PageNavigationEngineConfig): Promise<PageNavigationEngine>;
|
|
112
109
|
//#endregion
|
|
113
110
|
//#region src/pages/form-value-equality.d.ts
|
|
114
111
|
declare function isEqualFormValue(a: unknown, b: unknown): boolean;
|
|
115
112
|
//#endregion
|
|
116
113
|
//#region src/pages/client.d.ts
|
|
117
|
-
|
|
114
|
+
type VisitOptions = {
|
|
118
115
|
method?: string;
|
|
119
116
|
data?: unknown;
|
|
120
117
|
preserveScroll?: boolean;
|
|
121
118
|
preserveState?: boolean;
|
|
122
119
|
replace?: boolean;
|
|
123
|
-
viewTransition?: boolean;
|
|
124
|
-
/** @internal Used by
|
|
125
|
-
_resolveOnShell?: boolean;
|
|
126
|
-
/** @internal Used by popstate handler to pass saved scroll position */
|
|
120
|
+
viewTransition?: boolean; /** @internal Used by React Actions to avoid waiting for a commit blocked by the action itself. */
|
|
121
|
+
_resolveOnShell?: boolean; /** @internal Used by popstate handler to pass saved scroll position */
|
|
127
122
|
_scrollPosition?: {
|
|
128
123
|
x: number;
|
|
129
124
|
y: number;
|
|
130
|
-
} | null;
|
|
131
|
-
/** @internal Used by popstate handler to avoid writing history while traversing */
|
|
125
|
+
} | null; /** @internal Used by popstate handler to avoid writing history while traversing */
|
|
132
126
|
_popstate?: boolean;
|
|
133
|
-
}
|
|
134
|
-
|
|
127
|
+
};
|
|
128
|
+
type PrefetchOptions = {
|
|
135
129
|
method?: string;
|
|
136
130
|
cacheFor?: CacheForInput;
|
|
137
|
-
}
|
|
131
|
+
};
|
|
138
132
|
type NavigationStateType = "idle" | "loading" | "submitting";
|
|
139
133
|
type NavigationMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
140
|
-
|
|
134
|
+
type NavigationState = {
|
|
141
135
|
state: NavigationStateType;
|
|
142
136
|
location: URL | null;
|
|
143
137
|
method: NavigationMethod | null;
|
|
144
|
-
}
|
|
145
|
-
|
|
138
|
+
};
|
|
139
|
+
type VoidRouter = {
|
|
146
140
|
_hoverDelay: number;
|
|
147
141
|
readonly url: URL;
|
|
148
142
|
readonly path: string;
|
|
@@ -153,16 +147,16 @@ interface VoidRouter {
|
|
|
153
147
|
prefetch(url: string | URL, options?: PrefetchOptions): Promise<unknown>;
|
|
154
148
|
flush(url: string | URL, method?: string): void;
|
|
155
149
|
flushAll(): void;
|
|
156
|
-
}
|
|
157
|
-
|
|
150
|
+
};
|
|
151
|
+
type VoidRouterAdapter = {
|
|
158
152
|
createDeferred(): unknown;
|
|
159
153
|
resolveDeferred(ref: unknown, value: unknown): unknown;
|
|
160
154
|
rejectDeferred(ref: unknown, error: string): unknown;
|
|
161
155
|
isLoading(ref: unknown): boolean;
|
|
162
156
|
applyUpdate(pageData: PageData, component: unknown, layouts: Array<unknown>): void | Promise<void>;
|
|
163
157
|
onDeferredUpdate?(props: Record<string, unknown>): void;
|
|
164
|
-
}
|
|
165
|
-
|
|
158
|
+
};
|
|
159
|
+
type VoidRouterConfig = {
|
|
166
160
|
adapter: VoidRouterAdapter;
|
|
167
161
|
components: Record<string, () => Promise<PageComponentModule>>;
|
|
168
162
|
layoutTree: Record<string, Array<string>>;
|
|
@@ -177,7 +171,7 @@ interface VoidRouterConfig {
|
|
|
177
171
|
prefetchDefaultCacheFor: CacheForResult;
|
|
178
172
|
onRouteChange?(url: string): void;
|
|
179
173
|
onNavigationChange?(navigation: NavigationState): void;
|
|
180
|
-
}
|
|
174
|
+
};
|
|
181
175
|
declare function idleNavigationState(): NavigationState;
|
|
182
176
|
declare function createRouterFacade(router: VoidRouter, getCurrentUrl: () => string, getCurrentParams?: () => Record<string, string>): VoidRouter;
|
|
183
177
|
declare function createSsrRouter(url?: string, params?: Record<string, string>): VoidRouter;
|
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-C7QW7UY1.mjs";
|
|
2
2
|
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/head.mjs
CHANGED
|
@@ -85,12 +85,12 @@ function renderHeadToString(head) {
|
|
|
85
85
|
parts.push(`<meta ${attrs.join(" ")}>`);
|
|
86
86
|
}
|
|
87
87
|
if (head.link) for (const entry of head.link) {
|
|
88
|
-
const attrs = Object.entries(entry).filter(([,
|
|
88
|
+
const attrs = Object.entries(entry).filter(([, value]) => value != null).map(([key, value]) => `${key}="${escapeHtml(value)}"`).join(" ");
|
|
89
89
|
parts.push(`<link ${attrs}>`);
|
|
90
90
|
}
|
|
91
91
|
if (head.script) for (const entry of head.script) {
|
|
92
92
|
const { innerHTML, ...rest } = entry;
|
|
93
|
-
const attrs = Object.entries(rest).filter(([,
|
|
93
|
+
const attrs = Object.entries(rest).filter(([, value]) => value != null).map(([key, value]) => `${key}="${escapeHtml(value)}"`).join(" ");
|
|
94
94
|
if (innerHTML) parts.push(`<script${attrs ? " " + attrs : ""}>${innerHTML}<\/script>`);
|
|
95
95
|
else if (attrs) parts.push(`<script ${attrs}><\/script>`);
|
|
96
96
|
}
|
|
@@ -99,13 +99,13 @@ function renderHeadToString(head) {
|
|
|
99
99
|
/** Serialize htmlAttrs to an attribute string (includes leading space). */
|
|
100
100
|
function renderHtmlAttrs(head) {
|
|
101
101
|
if (!head.htmlAttrs) return "";
|
|
102
|
-
const attrs = Object.entries(head.htmlAttrs).map(([
|
|
102
|
+
const attrs = Object.entries(head.htmlAttrs).map(([key, value]) => `${key}="${escapeHtml(value)}"`).join(" ");
|
|
103
103
|
return attrs ? " " + attrs : "";
|
|
104
104
|
}
|
|
105
105
|
/** Serialize bodyAttrs to an attribute string (includes leading space). */
|
|
106
106
|
function renderBodyAttrs(head) {
|
|
107
107
|
if (!head.bodyAttrs) return "";
|
|
108
|
-
const attrs = Object.entries(head.bodyAttrs).map(([
|
|
108
|
+
const attrs = Object.entries(head.bodyAttrs).map(([key, value]) => `${key}="${escapeHtml(value)}"`).join(" ");
|
|
109
109
|
return attrs ? " " + attrs : "";
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
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 { a as PageScanResult, i as PageDefinition, n as LayoutDefinition, 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-C7QW7UY1.mjs";
|
|
2
|
+
import { a as PageScanResult, i as PageDefinition, n as LayoutDefinition, r as NamedLayoutDefinition } from "../types-DG_Ynnyd.mjs";
|
|
3
3
|
import { serializePageData } from "./serialize.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/pages/layout-resolution.d.ts
|
|
@@ -26,13 +26,13 @@ declare function scanPages(root: string, options?: {
|
|
|
26
26
|
declare function generateComponentManifest(scan: PageScanResult, pagesDir: string): string;
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/pages/static-data.d.ts
|
|
29
|
-
|
|
29
|
+
type StaticPageDataBuildOptions = {
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
fastPath: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
32
|
+
};
|
|
33
|
+
type ResolveStaticPageDataBuildOptionsInput = {
|
|
34
34
|
publicDir?: string | false;
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
declare function resolveStaticPageDataBuildOptions(root: string, options?: ResolveStaticPageDataBuildOptionsInput): StaticPageDataBuildOptions;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageScanResult, type StaticPageDataBuildOptions, generateComponentManifest, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveEffectiveLayoutChain, resolveHead, resolveLayoutChain, resolveNamedLayout, resolveStaticPageDataBuildOptions, scanPages, serializePageData };
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "../pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { f as readConfig } from "../config-
|
|
3
|
-
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-
|
|
4
|
-
import { i as parseRedirectsFile } from "../headers-
|
|
2
|
+
import { f as readConfig } from "../config-DqkeX_Fa.mjs";
|
|
3
|
+
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-CWfLxtOe.mjs";
|
|
4
|
+
import { i as parseRedirectsFile } from "../headers-C7Yf6_CN.mjs";
|
|
5
5
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
6
6
|
import { serializePageData } from "./serialize.mjs";
|
|
7
7
|
//#region src/pages/manifest.ts
|
|
@@ -21,9 +21,9 @@ function generateComponentManifest(scan, pagesDir) {
|
|
|
21
21
|
const layoutId = layout.directory ? `${layout.directory}/layout` : "layout";
|
|
22
22
|
lines.push(` ${JSON.stringify(layoutId)}: () => import(${JSON.stringify(importPath)}),`);
|
|
23
23
|
}
|
|
24
|
-
for (const
|
|
25
|
-
const importPath = `${pagesDir}/${
|
|
26
|
-
const layoutId =
|
|
24
|
+
for (const namedLayout of scan.namedLayouts) {
|
|
25
|
+
const importPath = `${pagesDir}/${namedLayout.filePath}`;
|
|
26
|
+
const layoutId = namedLayout.directory ? `${namedLayout.directory}/_layouts/${namedLayout.name}` : `_layouts/${namedLayout.name}`;
|
|
27
27
|
lines.push(` ${JSON.stringify(layoutId)}: () => import(${JSON.stringify(importPath)}),`);
|
|
28
28
|
}
|
|
29
29
|
lines.push("};");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as PageScanResult } from "../types-
|
|
1
|
+
import { a as PageScanResult } from "../types-DG_Ynnyd.mjs";
|
|
2
2
|
import { ResolvedConfig, ViteDevServer } from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/pages/islands-plugin.d.ts
|
|
5
5
|
declare const ISLANDS_RENDERER_ID = "virtual:void-islands-renderer";
|
|
6
6
|
declare const ISLANDS_CLIENT_ENTRY_ID = "virtual:void-islands-client";
|
|
7
|
-
|
|
7
|
+
type IslandEntry = {
|
|
8
8
|
componentPath: string;
|
|
9
9
|
islandId: string;
|
|
10
10
|
hydrate: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/** Resolve a relative import specifier to an absolute path by checking extensions. */
|
|
13
13
|
declare function resolveSpecifier(specifier: string, importerDir: string, extensions: Array<string>): string | null;
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as dirname, s as resolve } from "../pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-
|
|
2
|
+
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-CWfLxtOe.mjs";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { normalizePath } from "vite";
|
|
5
5
|
//#region src/pages/islands-plugin.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/pages/prefetch.d.ts
|
|
2
|
-
|
|
2
|
+
type CacheForResult = {
|
|
3
3
|
stale: number;
|
|
4
4
|
expires: number;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
type CacheForInput = number | string | [string, string];
|
|
7
7
|
declare function parseCacheFor(value: CacheForInput): CacheForResult;
|
|
8
|
-
|
|
8
|
+
type CacheEntry = {
|
|
9
9
|
url: string;
|
|
10
10
|
method: string;
|
|
11
11
|
response: Promise<unknown>;
|
|
@@ -13,9 +13,9 @@ interface CacheEntry {
|
|
|
13
13
|
expiresAt: number;
|
|
14
14
|
singleUse: boolean;
|
|
15
15
|
timer: ReturnType<typeof setTimeout> | null;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
declare class PrefetchCache {
|
|
18
|
-
private entries;
|
|
18
|
+
private readonly entries;
|
|
19
19
|
private key;
|
|
20
20
|
has(url: string, method?: string): boolean;
|
|
21
21
|
get(url: string, method?: string): CacheEntry | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as ValidationError } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-
|
|
1
|
+
import { S as ValidationError } from "../handler-DJTuxB10.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-D7r_deVZ.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -176,8 +176,8 @@ async function handlePageGet(handler, headFn, c, componentId, renderFn, getAsset
|
|
|
176
176
|
if (handler) {
|
|
177
177
|
const result = await handler(c);
|
|
178
178
|
if (result instanceof Response && !isConvertedResponse(result)) {
|
|
179
|
-
const
|
|
180
|
-
if (result.status >= 300 || !
|
|
179
|
+
const contentType = result.headers.get("content-type") || "";
|
|
180
|
+
if (result.status >= 300 || !contentType.includes("application/json")) return result;
|
|
181
181
|
}
|
|
182
182
|
props = await extractProps(result);
|
|
183
183
|
}
|
|
@@ -2,10 +2,10 @@ import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
|
2
2
|
import { n as cliTitle } from "./output-BwlcIYSR.mjs";
|
|
3
3
|
import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-CvHtTM0q.mjs";
|
|
4
4
|
import { c as R, g as ge, u as Se, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
5
|
-
import { c as getDatabaseDialect, f as readConfig } from "./config-
|
|
6
|
-
import { t as scanRoutes } from "./scan-
|
|
5
|
+
import { c as getDatabaseDialect, f as readConfig } from "./config-DqkeX_Fa.mjs";
|
|
6
|
+
import { t as scanRoutes } from "./scan-B8iEm8xn.mjs";
|
|
7
7
|
import { i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, r as detectFramework } from "./plugin-inference-CXUuq0aC.mjs";
|
|
8
|
-
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-
|
|
8
|
+
import { i as generateDbDts, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-Cnqj_8a7.mjs";
|
|
9
9
|
import { n as ensureProjectTsconfig } from "./project-tsconfig-DfkESbDL.mjs";
|
|
10
10
|
import { t as discoverSchema } from "./discover-B7FkXBLB.mjs";
|
|
11
11
|
import { n as generateEnvTypes, t as findEnvFile } from "./env-types-DknSA4SO.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as dim, l as tablePrefix, n as cliTitle, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { c as R, g as ge, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
|
-
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-
|
|
3
|
+
import { c as getToken, n as PlatformClient, s as getSiteDomain } from "./client-BCHb449S.mjs";
|
|
4
4
|
//#region src/cli/projects.ts
|
|
5
5
|
async function runProjectsCommand(root) {
|
|
6
6
|
console.log();
|
|
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
|
|
|
34
34
|
//#region src/cli/project-cmd.ts
|
|
35
35
|
async function runProjectCommand(root, args) {
|
|
36
36
|
if (args.subcommand === "status") {
|
|
37
|
-
const { runListCommand } = await import("./list-
|
|
37
|
+
const { runListCommand } = await import("./list-B_cMVlKj.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-sYAGQEVa.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-JrG0_AxV.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-_11JdPsF.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-Lm-s-VNM.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-B3XRid-6.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-GQaCgNU_.mjs");
|
|
63
63
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as HeadDescriptor, t as HeadConfig } from "./head-
|
|
2
|
-
import { n as CloudContext, t as CloudBindings } from "./handler-
|
|
3
|
-
import { t as DevCssAsset } from "./types-
|
|
1
|
+
import { n as HeadDescriptor, t as HeadConfig } from "./head-C7QW7UY1.mjs";
|
|
2
|
+
import { n as CloudContext, t as CloudBindings } from "./handler-DJTuxB10.mjs";
|
|
3
|
+
import { t as DevCssAsset } from "./types-DG_Ynnyd.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. */
|
|
7
7
|
declare function safeJsonStringify(value: unknown): string;
|
|
8
|
-
|
|
8
|
+
type PageObject = {
|
|
9
9
|
component: string;
|
|
10
10
|
props: Record<string, unknown>;
|
|
11
11
|
params: Record<string, string>;
|
|
@@ -15,7 +15,7 @@ interface PageObject {
|
|
|
15
15
|
head?: HeadDescriptor;
|
|
16
16
|
deferred?: Array<string>;
|
|
17
17
|
deferredKeys?: Record<string, string>;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
type PageRenderResult = string | ReadableStream<Uint8Array>;
|
|
20
20
|
type PageHandler = ((c: CloudContext) => unknown | Promise<unknown>) | undefined;
|
|
21
21
|
type PageHeadHandler = ((c: CloudContext, props: Record<string, unknown>) => HeadDescriptor | undefined) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as ensureUtc, i as dim, n as cliTitle, r as createSpinner, s as import_picocolors } from "./output-BwlcIYSR.mjs";
|
|
2
2
|
import { _ as me, c as R, g as ge, i as Ee, v as ue, x as q, y as ye } from "./dist-Dayj3gCK.mjs";
|
|
3
3
|
import { r as readProjectConfig } from "./project-TqORyHn8.mjs";
|
|
4
|
-
import { c as getToken, n as PlatformClient } from "./client-
|
|
4
|
+
import { c as getToken, n as PlatformClient } from "./client-BCHb449S.mjs";
|
|
5
5
|
//#region src/cli/rollback.ts
|
|
6
6
|
async function runRollbackCommand(root, deployId) {
|
|
7
7
|
console.log();
|
|
@@ -90,14 +90,14 @@ function generateRouteTypes(scan, routesDir, outDir, pagesDir) {
|
|
|
90
90
|
const lines = [];
|
|
91
91
|
lines.push("// Auto-generated by void — do not edit");
|
|
92
92
|
lines.push("export {}");
|
|
93
|
-
lines.push("
|
|
93
|
+
lines.push("type StandardSchemaV1<Input = unknown, Output = Input> = {");
|
|
94
94
|
lines.push(" readonly \"~standard\": {");
|
|
95
95
|
lines.push(" readonly version: 1;");
|
|
96
96
|
lines.push(" readonly vendor: string;");
|
|
97
97
|
lines.push(" readonly validate: (value: unknown) => unknown;");
|
|
98
98
|
lines.push(" readonly types?: { readonly input: Input; readonly output: Output } | undefined;");
|
|
99
99
|
lines.push(" };");
|
|
100
|
-
lines.push("}");
|
|
100
|
+
lines.push("};");
|
|
101
101
|
lines.push("declare namespace StandardSchemaV1 {");
|
|
102
102
|
lines.push(" type InferInput<Schema extends StandardSchemaV1> = NonNullable<");
|
|
103
103
|
lines.push(" Schema[\"~standard\"][\"types\"]");
|
package/dist/runtime/ai.d.mts
CHANGED
|
@@ -11,11 +11,11 @@ type ChatContent = string | Array<{
|
|
|
11
11
|
detail?: "auto" | "low" | "high";
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
|
-
|
|
14
|
+
type ChatMessage = {
|
|
15
15
|
role: "system" | "user" | "assistant";
|
|
16
16
|
content: ChatContent;
|
|
17
|
-
}
|
|
18
|
-
|
|
17
|
+
};
|
|
18
|
+
type ChatCompletionInputs = {
|
|
19
19
|
messages: Array<ChatMessage>;
|
|
20
20
|
temperature?: number;
|
|
21
21
|
max_tokens?: number;
|
|
@@ -24,26 +24,26 @@ interface ChatCompletionInputs {
|
|
|
24
24
|
presence_penalty?: number;
|
|
25
25
|
stop?: string | Array<string>;
|
|
26
26
|
stream?: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
};
|
|
28
|
+
type ChatCompletionResponse = {
|
|
29
29
|
id: string;
|
|
30
30
|
object: string;
|
|
31
31
|
created: number;
|
|
32
32
|
model: string;
|
|
33
33
|
choices: Array<ChatCompletionChoice>;
|
|
34
34
|
usage: ChatCompletionUsage;
|
|
35
|
-
}
|
|
36
|
-
|
|
35
|
+
};
|
|
36
|
+
type ChatCompletionChoice = {
|
|
37
37
|
index: number;
|
|
38
38
|
message: ChatMessage;
|
|
39
39
|
finish_reason: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
40
|
+
};
|
|
41
|
+
type ChatCompletionUsage = {
|
|
42
42
|
prompt_tokens: number;
|
|
43
43
|
completion_tokens: number;
|
|
44
44
|
total_tokens: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
45
|
+
};
|
|
46
|
+
type ChatCompletionChunk = {
|
|
47
47
|
id: string;
|
|
48
48
|
choices: Array<{
|
|
49
49
|
index: number;
|
|
@@ -53,14 +53,14 @@ interface ChatCompletionChunk {
|
|
|
53
53
|
};
|
|
54
54
|
finish_reason: string | null;
|
|
55
55
|
}>;
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
type ImageGatewayEndpoint = "images/generations" | "images/edits";
|
|
58
58
|
type ImageFileInput = Blob | ArrayBuffer | ArrayBufferView | {
|
|
59
59
|
data: string;
|
|
60
60
|
name?: string;
|
|
61
61
|
type?: string;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
type ImageGenerationInputs = {
|
|
64
64
|
prompt: string;
|
|
65
65
|
n?: number;
|
|
66
66
|
size?: string;
|
|
@@ -68,27 +68,27 @@ interface ImageGenerationInputs {
|
|
|
68
68
|
response_format?: "url" | "b64_json";
|
|
69
69
|
user?: string;
|
|
70
70
|
[key: string]: unknown;
|
|
71
|
-
}
|
|
72
|
-
|
|
71
|
+
};
|
|
72
|
+
type ImageGenerationData = {
|
|
73
73
|
url?: string;
|
|
74
74
|
b64_json?: string;
|
|
75
75
|
revised_prompt?: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
76
|
+
};
|
|
77
|
+
type ImageGenerationResponse = {
|
|
78
78
|
created?: number;
|
|
79
79
|
data: Array<ImageGenerationData>;
|
|
80
80
|
usage?: unknown;
|
|
81
81
|
[key: string]: unknown;
|
|
82
|
-
}
|
|
83
|
-
|
|
82
|
+
};
|
|
83
|
+
type ImageGenerationOptions = {
|
|
84
84
|
endpoint?: "images/generations";
|
|
85
85
|
[key: string]: unknown;
|
|
86
|
-
}
|
|
87
|
-
|
|
86
|
+
};
|
|
87
|
+
type ImageEditOptions = {
|
|
88
88
|
endpoint: "images/edits";
|
|
89
89
|
[key: string]: unknown;
|
|
90
|
-
}
|
|
91
|
-
|
|
90
|
+
};
|
|
91
|
+
type ImageEditInputs = {
|
|
92
92
|
prompt: string;
|
|
93
93
|
image: ImageFileInput | Array<ImageFileInput>;
|
|
94
94
|
mask?: ImageFileInput;
|
|
@@ -97,31 +97,24 @@ interface ImageEditInputs {
|
|
|
97
97
|
response_format?: "url" | "b64_json";
|
|
98
98
|
user?: string;
|
|
99
99
|
[key: string]: unknown;
|
|
100
|
-
}
|
|
100
|
+
};
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/runtime/ai.d.ts
|
|
103
103
|
/**
|
|
104
|
-
* Extended AI
|
|
104
|
+
* Extended AI type with a convenience `stream()` method.
|
|
105
105
|
*
|
|
106
106
|
* `stream()` calls `ai.run()` with `stream: true` and wraps the result
|
|
107
107
|
* in a `Response` with SSE headers — ready to return from a route handler.
|
|
108
108
|
*/
|
|
109
|
-
|
|
110
|
-
/** Workers AI inference (existing) */
|
|
111
|
-
run
|
|
112
|
-
/** Third-party
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/** Third-party image generation or editing through AI Gateway. */
|
|
117
|
-
image(model: ThirdPartyModel, inputs: ImageEditInputs, options: ImageEditOptions): Promise<Response>;
|
|
118
|
-
/** Third-party image generation through AI Gateway. */
|
|
119
|
-
image(model: ThirdPartyModel, inputs: ImageGenerationInputs, options?: ImageGenerationOptions): Promise<Response>;
|
|
120
|
-
/** Stream Workers AI response as SSE */
|
|
121
|
-
stream<Name extends keyof AiModels>(model: Name, inputs: Omit<AiModels[Name]["inputs"], "stream">, options?: AiOptions): Promise<Response>;
|
|
122
|
-
/** Stream third-party chat completions as SSE */
|
|
109
|
+
type VoidAi = Omit<Ai, "run"> & {
|
|
110
|
+
/** Workers AI inference (existing) */run<Name extends keyof AiModels>(model: Name, inputs: AiModels[Name]["inputs"], options?: AiOptions): Promise<AiModels[Name]["postProcessedOutputs"]>; /** Third-party chat completions (OpenAI, Anthropic, etc.) */
|
|
111
|
+
run(model: ThirdPartyModel, inputs: ChatCompletionInputs, options?: AiOptions): Promise<ChatCompletionResponse>; /** Image generation. Returns the proxy response so callers can return or parse it. */
|
|
112
|
+
image<Name extends keyof AiModels>(model: Name, inputs: AiModels[Name]["inputs"], options?: ImageGenerationOptions): Promise<Response>; /** Third-party image generation or editing through AI Gateway. */
|
|
113
|
+
image(model: ThirdPartyModel, inputs: ImageEditInputs, options: ImageEditOptions): Promise<Response>; /** Third-party image generation through AI Gateway. */
|
|
114
|
+
image(model: ThirdPartyModel, inputs: ImageGenerationInputs, options?: ImageGenerationOptions): Promise<Response>; /** Stream Workers AI response as SSE */
|
|
115
|
+
stream<Name extends keyof AiModels>(model: Name, inputs: Omit<AiModels[Name]["inputs"], "stream">, options?: AiOptions): Promise<Response>; /** Stream third-party chat completions as SSE */
|
|
123
116
|
stream(model: ThirdPartyModel, inputs: Omit<ChatCompletionInputs, "stream">, options?: AiOptions): Promise<Response>;
|
|
124
|
-
}
|
|
117
|
+
};
|
|
125
118
|
declare const ai: VoidAi;
|
|
126
119
|
//#endregion
|
|
127
120
|
export { type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionInputs, type ChatCompletionResponse, type ChatCompletionUsage, type ChatContent, type ChatMessage, type ImageEditInputs, type ImageEditOptions, type ImageFileInput, type ImageGatewayEndpoint, type ImageGenerationData, type ImageGenerationInputs, type ImageGenerationOptions, type ImageGenerationResponse, type ThirdPartyModel, type ThirdPartyProvider, VoidAi, ai };
|
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-DmuALf16.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-HXlHRw02.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth-pg.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -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-HXlHRw02.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime/better-auth.d.ts
|
|
4
4
|
declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
@@ -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-DmuALf16.mjs";
|
|
2
2
|
import { auth, createAuthClient } from "./auth-client.mjs";
|
|
3
|
-
import { t as FetchError } from "../fetch-error-
|
|
3
|
+
import { t as FetchError } from "../fetch-error-DZ868Xq4.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 };
|