@absolutejs/voice 0.0.1 → 0.0.2

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.
Files changed (172) hide show
  1. package/dist/{voice/src/angular → angular}/voice-stream.service.d.ts +1 -1
  2. package/dist/{voice/src/client → client}/createVoiceStream.d.ts +1 -1
  3. package/dist/{voice/src/react → react}/useVoiceStream.d.ts +1 -1
  4. package/dist/{voice/src/svelte → svelte}/createVoiceStream.d.ts +1 -1
  5. package/dist/{voice/src/vue → vue}/useVoiceStream.d.ts +1 -1
  6. package/package.json +14 -13
  7. package/dist/absolutejs/src/angular/angularDeps.d.ts +0 -2
  8. package/dist/absolutejs/src/angular/angularPatch.d.ts +0 -1
  9. package/dist/absolutejs/src/angular/injectorPatch.d.ts +0 -1
  10. package/dist/absolutejs/src/angular/islands.d.ts +0 -3
  11. package/dist/absolutejs/src/angular/lowerDeferSyntax.d.ts +0 -18
  12. package/dist/absolutejs/src/angular/lowerServerIslands.d.ts +0 -1
  13. package/dist/absolutejs/src/angular/pageHandler.d.ts +0 -26
  14. package/dist/absolutejs/src/angular/resolveAngularPackage.d.ts +0 -7
  15. package/dist/absolutejs/src/angular/ssrRender.d.ts +0 -16
  16. package/dist/absolutejs/src/angular/ssrSanitizer.d.ts +0 -3
  17. package/dist/absolutejs/src/build/angularLinkerPlugin.d.ts +0 -11
  18. package/dist/absolutejs/src/build/buildAngularVendor.d.ts +0 -4
  19. package/dist/absolutejs/src/build/buildDepVendor.d.ts +0 -2
  20. package/dist/absolutejs/src/build/buildReactVendor.d.ts +0 -8
  21. package/dist/absolutejs/src/build/buildSvelteVendor.d.ts +0 -6
  22. package/dist/absolutejs/src/build/buildVueVendor.d.ts +0 -6
  23. package/dist/absolutejs/src/build/compileAngular.d.ts +0 -29
  24. package/dist/absolutejs/src/build/compileSvelte.d.ts +0 -13
  25. package/dist/absolutejs/src/build/compileVue.d.ts +0 -19
  26. package/dist/absolutejs/src/build/generateManifest.d.ts +0 -2
  27. package/dist/absolutejs/src/build/generateReactIndexes.d.ts +0 -1
  28. package/dist/absolutejs/src/build/htmlScriptHMRPlugin.d.ts +0 -13
  29. package/dist/absolutejs/src/build/islandEntries.d.ts +0 -32
  30. package/dist/absolutejs/src/build/nativeRewrite.d.ts +0 -5
  31. package/dist/absolutejs/src/build/optimizeHtmlImages.d.ts +0 -2
  32. package/dist/absolutejs/src/build/outputLogs.d.ts +0 -1
  33. package/dist/absolutejs/src/build/resolvePackageImport.d.ts +0 -9
  34. package/dist/absolutejs/src/build/rewriteImports.d.ts +0 -7
  35. package/dist/absolutejs/src/build/rewriteReactImports.d.ts +0 -7
  36. package/dist/absolutejs/src/build/scanConventions.d.ts +0 -5
  37. package/dist/absolutejs/src/build/scanCssEntryPoints.d.ts +0 -1
  38. package/dist/absolutejs/src/build/scanEntryPoints.d.ts +0 -1
  39. package/dist/absolutejs/src/build/staticIslandPages.d.ts +0 -9
  40. package/dist/absolutejs/src/build/updateAssetPaths.d.ts +0 -1
  41. package/dist/absolutejs/src/build/wrapHTMLScript.d.ts +0 -17
  42. package/dist/absolutejs/src/cli/scripts/telemetry.d.ts +0 -5
  43. package/dist/absolutejs/src/cli/telemetryEvent.d.ts +0 -1
  44. package/dist/absolutejs/src/client/islandStore.d.ts +0 -22
  45. package/dist/absolutejs/src/client/streamSwap.d.ts +0 -11
  46. package/dist/absolutejs/src/constants.d.ts +0 -60
  47. package/dist/absolutejs/src/core/build.d.ts +0 -9
  48. package/dist/absolutejs/src/core/currentIslandRegistry.d.ts +0 -7
  49. package/dist/absolutejs/src/core/devBuild.d.ts +0 -6
  50. package/dist/absolutejs/src/core/devRouteRegistrationCallsite.d.ts +0 -2
  51. package/dist/absolutejs/src/core/devVendorPaths.d.ts +0 -13
  52. package/dist/absolutejs/src/core/index.d.ts +0 -7
  53. package/dist/absolutejs/src/core/islandManifest.d.ts +0 -3
  54. package/dist/absolutejs/src/core/islandMarkupAttributes.d.ts +0 -12
  55. package/dist/absolutejs/src/core/islandPageContext.d.ts +0 -12
  56. package/dist/absolutejs/src/core/islandSsr.d.ts +0 -6
  57. package/dist/absolutejs/src/core/islands.d.ts +0 -16
  58. package/dist/absolutejs/src/core/loadIslandRegistry.d.ts +0 -1
  59. package/dist/absolutejs/src/core/lookup.d.ts +0 -1
  60. package/dist/absolutejs/src/core/pageHandlers.d.ts +0 -6
  61. package/dist/absolutejs/src/core/prepare.d.ts +0 -274
  62. package/dist/absolutejs/src/core/prerender.d.ts +0 -31
  63. package/dist/absolutejs/src/core/renderIslandMarkup.d.ts +0 -13
  64. package/dist/absolutejs/src/core/responseEnhancers.d.ts +0 -10
  65. package/dist/absolutejs/src/core/staticStreaming.d.ts +0 -25
  66. package/dist/absolutejs/src/core/streamingSlotRegistrar.d.ts +0 -16
  67. package/dist/absolutejs/src/core/streamingSlotRegistry.d.ts +0 -2
  68. package/dist/absolutejs/src/core/streamingSlotWarningScope.d.ts +0 -4
  69. package/dist/absolutejs/src/core/svelteServerModule.d.ts +0 -1
  70. package/dist/absolutejs/src/core/wrapPageHandlerWithStreamingSlots.d.ts +0 -2
  71. package/dist/absolutejs/src/dev/assetStore.d.ts +0 -8
  72. package/dist/absolutejs/src/dev/buildHMRClient.d.ts +0 -1
  73. package/dist/absolutejs/src/dev/clientManager.d.ts +0 -31
  74. package/dist/absolutejs/src/dev/configResolver.d.ts +0 -14
  75. package/dist/absolutejs/src/dev/dependencyGraph.d.ts +0 -10
  76. package/dist/absolutejs/src/dev/devCert.d.ts +0 -11
  77. package/dist/absolutejs/src/dev/fileHashTracker.d.ts +0 -2
  78. package/dist/absolutejs/src/dev/fileWatcher.d.ts +0 -4
  79. package/dist/absolutejs/src/dev/moduleMapper.d.ts +0 -27
  80. package/dist/absolutejs/src/dev/moduleServer.d.ts +0 -21
  81. package/dist/absolutejs/src/dev/moduleVersionTracker.d.ts +0 -7
  82. package/dist/absolutejs/src/dev/pathUtils.d.ts +0 -5
  83. package/dist/absolutejs/src/dev/reactComponentClassifier.d.ts +0 -2
  84. package/dist/absolutejs/src/dev/rebuildTrigger.d.ts +0 -10
  85. package/dist/absolutejs/src/dev/simpleHTMLHMR.d.ts +0 -4
  86. package/dist/absolutejs/src/dev/simpleHTMXHMR.d.ts +0 -4
  87. package/dist/absolutejs/src/dev/transformCache.d.ts +0 -6
  88. package/dist/absolutejs/src/dev/webSocket.d.ts +0 -9
  89. package/dist/absolutejs/src/index.d.ts +0 -5
  90. package/dist/absolutejs/src/islands/pageMetadata.d.ts +0 -13
  91. package/dist/absolutejs/src/islands/sourceMetadata.d.ts +0 -10
  92. package/dist/absolutejs/src/plugins/devtoolsJson.d.ts +0 -58
  93. package/dist/absolutejs/src/plugins/hmr.d.ts +0 -138
  94. package/dist/absolutejs/src/plugins/imageOptimizer.d.ts +0 -67
  95. package/dist/absolutejs/src/plugins/index.d.ts +0 -3
  96. package/dist/absolutejs/src/plugins/networking.d.ts +0 -2
  97. package/dist/absolutejs/src/plugins/pageRouter.d.ts +0 -1
  98. package/dist/absolutejs/src/react/Island.d.ts +0 -2
  99. package/dist/absolutejs/src/react/bridgeInternals.d.ts +0 -1
  100. package/dist/absolutejs/src/react/createIsland.d.ts +0 -2
  101. package/dist/absolutejs/src/react/hooks/useIslandStore.d.ts +0 -3
  102. package/dist/absolutejs/src/react/index.d.ts +0 -4
  103. package/dist/absolutejs/src/react/pageHandler.d.ts +0 -21
  104. package/dist/absolutejs/src/svelte/lowerAwaitSlotSyntax.d.ts +0 -4
  105. package/dist/absolutejs/src/svelte/lowerIslandSyntax.d.ts +0 -4
  106. package/dist/absolutejs/src/svelte/pageHandler.d.ts +0 -23
  107. package/dist/absolutejs/src/svelte/renderToReadableStream.d.ts +0 -14
  108. package/dist/absolutejs/src/utils/cleanStaleOutputs.d.ts +0 -1
  109. package/dist/absolutejs/src/utils/cleanup.d.ts +0 -8
  110. package/dist/absolutejs/src/utils/commonAncestor.d.ts +0 -1
  111. package/dist/absolutejs/src/utils/defineConfig.d.ts +0 -2
  112. package/dist/absolutejs/src/utils/defineEnv.d.ts +0 -10
  113. package/dist/absolutejs/src/utils/escapeScriptContent.d.ts +0 -1
  114. package/dist/absolutejs/src/utils/generateHeadElement.d.ts +0 -4
  115. package/dist/absolutejs/src/utils/generateSitemap.d.ts +0 -6
  116. package/dist/absolutejs/src/utils/getDurationString.d.ts +0 -1
  117. package/dist/absolutejs/src/utils/getEnv.d.ts +0 -1
  118. package/dist/absolutejs/src/utils/imageProcessing.d.ts +0 -33
  119. package/dist/absolutejs/src/utils/index.d.ts +0 -9
  120. package/dist/absolutejs/src/utils/jsonLd.d.ts +0 -2
  121. package/dist/absolutejs/src/utils/loadConfig.d.ts +0 -1
  122. package/dist/absolutejs/src/utils/logger.d.ts +0 -55
  123. package/dist/absolutejs/src/utils/networking.d.ts +0 -2
  124. package/dist/absolutejs/src/utils/normalizePath.d.ts +0 -9
  125. package/dist/absolutejs/src/utils/registerClientScript.d.ts +0 -36
  126. package/dist/absolutejs/src/utils/resolveConvention.d.ts +0 -9
  127. package/dist/absolutejs/src/utils/ssrErrorPage.d.ts +0 -1
  128. package/dist/absolutejs/src/utils/startupBanner.d.ts +0 -9
  129. package/dist/absolutejs/src/utils/streamingSlotMetricSink.d.ts +0 -18
  130. package/dist/absolutejs/src/utils/streamingSlots.d.ts +0 -76
  131. package/dist/absolutejs/src/utils/stringModifiers.d.ts +0 -3
  132. package/dist/absolutejs/src/utils/validateSafePath.d.ts +0 -1
  133. package/dist/absolutejs/src/vue/pageHandler.d.ts +0 -29
  134. package/dist/absolutejs/types/ai.d.ts +0 -4631
  135. package/dist/absolutejs/types/angular.d.ts +0 -29
  136. package/dist/absolutejs/types/build.d.ts +0 -67
  137. package/dist/absolutejs/types/cli.d.ts +0 -19
  138. package/dist/absolutejs/types/client.d.ts +0 -65
  139. package/dist/absolutejs/types/conventions.d.ts +0 -20
  140. package/dist/absolutejs/types/env.d.ts +0 -2
  141. package/dist/absolutejs/types/image.d.ts +0 -77
  142. package/dist/absolutejs/types/index.d.ts +0 -19
  143. package/dist/absolutejs/types/island.d.ts +0 -48
  144. package/dist/absolutejs/types/jsonLd.d.ts +0 -271
  145. package/dist/absolutejs/types/messages.d.ts +0 -144
  146. package/dist/absolutejs/types/metadata.d.ts +0 -49
  147. package/dist/absolutejs/types/react.d.ts +0 -2
  148. package/dist/absolutejs/types/session.d.ts +0 -16
  149. package/dist/absolutejs/types/sitemap.d.ts +0 -14
  150. package/dist/absolutejs/types/svelte.d.ts +0 -2
  151. package/dist/absolutejs/types/telemetry.d.ts +0 -15
  152. package/dist/absolutejs/types/tool.d.ts +0 -11
  153. package/dist/absolutejs/types/typeGuards.d.ts +0 -5
  154. package/dist/absolutejs/types/vue.d.ts +0 -14
  155. package/dist/absolutejs/types/websocket.d.ts +0 -6
  156. /package/dist/{voice/src/angular → angular}/index.d.ts +0 -0
  157. /package/dist/{voice/src/client → client}/actions.d.ts +0 -0
  158. /package/dist/{voice/src/client → client}/connection.d.ts +0 -0
  159. /package/dist/{voice/src/client → client}/index.d.ts +0 -0
  160. /package/dist/{voice/src/client → client}/microphone.d.ts +0 -0
  161. /package/dist/{voice/src/client → client}/store.d.ts +0 -0
  162. /package/dist/{voice/src/index.d.ts → index.d.ts} +0 -0
  163. /package/dist/{voice/src/logger.d.ts → logger.d.ts} +0 -0
  164. /package/dist/{voice/src/memoryStore.d.ts → memoryStore.d.ts} +0 -0
  165. /package/dist/{voice/src/plugin.d.ts → plugin.d.ts} +0 -0
  166. /package/dist/{voice/src/react → react}/index.d.ts +0 -0
  167. /package/dist/{voice/src/session.d.ts → session.d.ts} +0 -0
  168. /package/dist/{voice/src/store.d.ts → store.d.ts} +0 -0
  169. /package/dist/{voice/src/svelte → svelte}/index.d.ts +0 -0
  170. /package/dist/{voice/src/turnDetection.d.ts → turnDetection.d.ts} +0 -0
  171. /package/dist/{voice/src/types.d.ts → types.d.ts} +0 -0
  172. /package/dist/{voice/src/vue → vue}/index.d.ts +0 -0
@@ -1,6 +0,0 @@
1
- import type { BuildConfig } from '../../types/build';
2
- export declare const devBuild: (config: BuildConfig) => Promise<{
3
- hmrState: import("../dev/clientManager").HMRState;
4
- manifest: Record<string, string>;
5
- conventions?: import("..").ConventionsMap;
6
- }>;
@@ -1,2 +0,0 @@
1
- export declare const getCurrentRouteRegistrationCallsite: () => string | undefined;
2
- export declare const patchElysiaRouteRegistrationCallsites: () => void;
@@ -1,13 +0,0 @@
1
- /** Module-level dev vendor paths state.
2
- * Set by devBuild() before the initial build so that build() can
3
- * externalize React and rewrite imports to stable vendor files.
4
- * Production builds never call setDevVendorPaths, so the getter
5
- * returns null and build() bundles React normally. */
6
- export declare const getDevVendorPaths: () => Record<string, string> | null;
7
- export declare const setDevVendorPaths: (paths: Record<string, string>) => void;
8
- export declare const getAngularVendorPaths: () => Record<string, string> | null;
9
- export declare const setAngularVendorPaths: (paths: Record<string, string>) => void;
10
- export declare const getSvelteVendorPaths: () => Record<string, string> | null;
11
- export declare const setSvelteVendorPaths: (paths: Record<string, string>) => void;
12
- export declare const getVueVendorPaths: () => Record<string, string> | null;
13
- export declare const setVueVendorPaths: (paths: Record<string, string>) => void;
@@ -1,7 +0,0 @@
1
- export * from './lookup';
2
- export * from './islands';
3
- export * from './pageHandlers';
4
- export * from './prepare';
5
- export * from './responseEnhancers';
6
- export * from './renderIslandMarkup';
7
- export * from './wrapPageHandlerWithStreamingSlots';
@@ -1,3 +0,0 @@
1
- import type { IslandFramework } from '../../types/island';
2
- export declare const getIslandManifestEntries: (manifest: Record<string, string>) => Partial<Record<IslandFramework, Record<string, string>>>;
3
- export declare const getIslandManifestKey: (framework: IslandFramework, component: string) => string;
@@ -1,12 +0,0 @@
1
- import type { RuntimeIslandRenderProps } from '../../types/island';
2
- type IslandMarkerAttributes = {
3
- 'data-component': string;
4
- 'data-framework': string;
5
- 'data-hydrate': string;
6
- 'data-island': 'true';
7
- 'data-island-id'?: string;
8
- 'data-props': string;
9
- };
10
- export declare const getIslandMarkerAttributes: (props: RuntimeIslandRenderProps, islandId?: string) => IslandMarkerAttributes;
11
- export declare const serializeIslandAttributes: (attributes: Record<string, string>) => string;
12
- export {};
@@ -1,12 +0,0 @@
1
- declare global {
2
- var __absoluteManifest: Record<string, string> | undefined;
3
- var __ABS_ISLAND_STATE__: Record<string, Record<string, unknown>> | undefined;
4
- }
5
- export declare const htmlContainsIslands: (html: string) => boolean;
6
- export declare const injectIslandPageContext: (html: string, options?: {
7
- hasIslands?: boolean;
8
- }) => string;
9
- export declare const injectIslandPageContextStream: (stream: ReadableStream<string | Uint8Array>, options?: {
10
- hasIslands?: boolean;
11
- }) => ReadableStream<string | Uint8Array<ArrayBufferLike>>;
12
- export declare const setCurrentIslandManifest: (manifest: Record<string, string>) => void;
@@ -1,6 +0,0 @@
1
- type ReactComponentType<Props extends Record<string, unknown>> = import('react').ComponentType<Props>;
2
- export declare const renderAngularIslandToHtml: (component: import("@angular/core").Type<object>, props: Record<string, unknown>, islandId: string) => Promise<string>;
3
- export declare const renderReactIslandToHtml: <Props extends Record<string, unknown>>(component: ReactComponentType<Props>, props: Props) => Promise<string>;
4
- export declare const renderSvelteIslandToHtml: <Props extends Record<string, unknown>>(component: import("svelte").Component<Props>, props: Props) => Promise<string>;
5
- export declare const renderVueIslandToHtml: <Props extends Record<string, unknown>>(component: import("vue").Component<Props>, props: Props) => Promise<string>;
6
- export {};
@@ -1,16 +0,0 @@
1
- import type { IslandComponentDefinition, IslandRegistry, IslandRegistryInput } from '../../types/island';
2
- export declare const defineIslandComponent: <Component>(component: Component, options: {
3
- export?: string;
4
- source: string;
5
- }) => IslandComponentDefinition<Component>;
6
- export declare const defineIslandRegistry: <T extends IslandRegistryInput>(registry: IslandRegistry<T>) => T;
7
- export declare const getIslandBuildReference: <Component>(component: Component | IslandComponentDefinition<Component>) => {
8
- export: string | undefined;
9
- source: string;
10
- } | null;
11
- export declare const isIslandComponentDefinition: <Component>(value: Component | IslandComponentDefinition<Component>) => value is IslandComponentDefinition<Component>;
12
- export declare function getIslandComponent<Component>(component: Component): Component;
13
- export declare function getIslandComponent<Component>(component: IslandComponentDefinition<Component>): Component;
14
- export declare const parseIslandProps: (rawProps: string | null) => any;
15
- export declare const serializeIslandProps: (props: unknown) => string;
16
- export { getIslandManifestEntries, getIslandManifestKey } from './islandManifest';
@@ -1 +0,0 @@
1
- export declare const loadIslandRegistry: (registryPath: string) => Promise<Partial<Record<import("..").IslandFramework, Record<string, unknown>>>>;
@@ -1 +0,0 @@
1
- export declare const asset: (source: Record<string, string>, name: string) => string;
@@ -1,6 +0,0 @@
1
- import { type StreamingSlotEnhancerOptions } from './responseEnhancers';
2
- export { handleReactPageRequest } from '../react';
3
- export type StaticPageRequestOptions = StreamingSlotEnhancerOptions;
4
- export type HTMLPageRequestOptions = StaticPageRequestOptions;
5
- export declare const handleHTMLPageRequest: (pagePath: string, options?: HTMLPageRequestOptions) => Promise<Response>;
6
- export declare const handleHTMXPageRequest: (pagePath: string) => Promise<Response>;
@@ -1,274 +0,0 @@
1
- import { Elysia } from 'elysia';
2
- export declare const prepare: (configOrPath?: string) => Promise<{
3
- absolutejs: Elysia<"", {
4
- decorator: {};
5
- store: {};
6
- derive: {};
7
- resolve: {};
8
- }, {
9
- typebox: {};
10
- error: {};
11
- } & {
12
- typebox: {};
13
- error: {};
14
- }, {
15
- schema: {};
16
- standaloneSchema: {};
17
- macro: {};
18
- macroFn: {};
19
- parser: {};
20
- response: {};
21
- } & {
22
- schema: {};
23
- standaloneSchema: {};
24
- macro: {};
25
- macroFn: {};
26
- parser: {};
27
- response: {};
28
- }, ((({
29
- ".well-known": {
30
- appspecific: {
31
- "com.chrome.devtools.json": {
32
- get: {
33
- body: unknown;
34
- params: {};
35
- query: unknown;
36
- headers: unknown;
37
- response: {
38
- 200: {
39
- workspace: {
40
- root: string;
41
- uuid: string;
42
- };
43
- };
44
- };
45
- };
46
- };
47
- };
48
- };
49
- } | ({
50
- ".well-known": {
51
- appspecific: {
52
- "com.chrome.devtools.json": {
53
- get: {
54
- body: unknown;
55
- params: {};
56
- query: unknown;
57
- headers: unknown;
58
- response: {
59
- 200: {
60
- workspace: {
61
- root: string;
62
- uuid: string;
63
- };
64
- };
65
- };
66
- };
67
- };
68
- };
69
- };
70
- } & {
71
- [x: string]: {
72
- get: {
73
- body: unknown;
74
- params: {};
75
- query: unknown;
76
- headers: unknown;
77
- response: {};
78
- };
79
- };
80
- })) & {
81
- "@src": {
82
- "*": {
83
- get: {
84
- body: unknown;
85
- params: {
86
- "*": string;
87
- } & {};
88
- query: unknown;
89
- headers: unknown;
90
- response: {
91
- 200: Response;
92
- 422: {
93
- type: "validation";
94
- on: string;
95
- summary?: string;
96
- message?: string;
97
- found?: unknown;
98
- property?: string;
99
- expected?: string;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- } & {
106
- "@stub": {
107
- "*": {
108
- get: {
109
- body: unknown;
110
- params: {
111
- "*": string;
112
- } & {};
113
- query: unknown;
114
- headers: unknown;
115
- response: {
116
- 200: Response;
117
- 422: {
118
- type: "validation";
119
- on: string;
120
- summary?: string;
121
- message?: string;
122
- found?: unknown;
123
- property?: string;
124
- expected?: string;
125
- };
126
- };
127
- };
128
- };
129
- };
130
- } & {
131
- "@hmr": {
132
- "*": {
133
- get: {
134
- body: unknown;
135
- params: {
136
- "*": string;
137
- } & {};
138
- query: unknown;
139
- headers: unknown;
140
- response: {
141
- 200: Response;
142
- 422: {
143
- type: "validation";
144
- on: string;
145
- summary?: string;
146
- message?: string;
147
- found?: unknown;
148
- property?: string;
149
- expected?: string;
150
- };
151
- };
152
- };
153
- };
154
- };
155
- } & {
156
- hmr: {
157
- subscribe: {
158
- body: unknown;
159
- params: {};
160
- query: unknown;
161
- headers: unknown;
162
- response: {
163
- 200: Response;
164
- };
165
- };
166
- };
167
- } & {
168
- "hmr-status": {
169
- get: {
170
- body: unknown;
171
- params: {};
172
- query: unknown;
173
- headers: unknown;
174
- response: {
175
- 200: Response | {
176
- connectedClients: number;
177
- isRebuilding: boolean;
178
- manifestKeys: string[];
179
- rebuildCount: number;
180
- rebuildQueue: string[];
181
- timestamp: number;
182
- };
183
- };
184
- };
185
- };
186
- }) & {}) & {}, {
187
- derive: {};
188
- resolve: {};
189
- schema: {};
190
- standaloneSchema: {};
191
- response: {};
192
- }, {
193
- derive: {};
194
- resolve: {};
195
- schema: {};
196
- standaloneSchema: {};
197
- response: {};
198
- } & {
199
- derive: {};
200
- resolve: {};
201
- schema: {};
202
- standaloneSchema: {};
203
- response: {};
204
- } & {
205
- derive: {};
206
- resolve: {};
207
- schema: {};
208
- standaloneSchema: {};
209
- response: {};
210
- }>;
211
- manifest: Record<string, string>;
212
- } | {
213
- absolutejs: Elysia<"", {
214
- decorator: {};
215
- store: {};
216
- derive: {};
217
- resolve: {};
218
- }, {
219
- typebox: {};
220
- error: {};
221
- } & {
222
- typebox: {};
223
- error: {};
224
- }, {
225
- schema: {};
226
- standaloneSchema: {};
227
- macro: {};
228
- macroFn: {};
229
- parser: {};
230
- response: {};
231
- } & {
232
- schema: {};
233
- standaloneSchema: {};
234
- macro: {};
235
- macroFn: {};
236
- parser: {};
237
- response: {};
238
- }, {} | {
239
- [x: string]: {
240
- get: {
241
- body: unknown;
242
- params: {};
243
- query: unknown;
244
- headers: unknown;
245
- response: {};
246
- };
247
- };
248
- }, {
249
- derive: {};
250
- resolve: {};
251
- schema: {};
252
- standaloneSchema: {};
253
- response: {};
254
- }, {
255
- derive: {};
256
- resolve: {};
257
- schema: {};
258
- standaloneSchema: {};
259
- response: {};
260
- } & {
261
- derive: {};
262
- resolve: {};
263
- schema: {};
264
- standaloneSchema: {};
265
- response: {};
266
- } & {
267
- derive: {};
268
- resolve: {};
269
- schema: {};
270
- standaloneSchema: {};
271
- response: {};
272
- }>;
273
- manifest: Record<string, string>;
274
- }>;
@@ -1,31 +0,0 @@
1
- import type { StaticConfig } from '../../types/build';
2
- export type PrerenderResult = {
3
- /** Map of route path → rendered HTML file path on disk */
4
- routes: Map<string, string>;
5
- /** Directory where pre-rendered files are stored */
6
- dir: string;
7
- };
8
- type LogFn = (message: string) => void;
9
- /** Header used to bypass the prerender cache during ISR re-renders */
10
- export declare const PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass";
11
- /** Convert a URL path to a filename: "/" → "index.html", "/vue" → "vue.html" */
12
- export declare const routeToFilename: (route: string) => string;
13
- /** Read the render timestamp for a pre-rendered page. Returns 0 if not found. */
14
- export declare const readTimestamp: (htmlPath: string) => number;
15
- /**
16
- * Re-render a single route by fetching it from the running server
17
- * with the bypass header so it hits SSR instead of the cache.
18
- */
19
- export declare const rerenderRoute: (route: string, port: number, prerenderDir: string) => Promise<boolean>;
20
- /**
21
- * Pre-render routes by fetching them from a running server and saving the HTML to disk.
22
- *
23
- * Used by both `absolute start` (SSG) and `absolute compile`.
24
- */
25
- export declare const prerender: (port: number, outDir: string, staticConfig: StaticConfig, log?: LogFn) => Promise<PrerenderResult>;
26
- /**
27
- * Start the bundled production server, wait for it to be ready, pre-render,
28
- * then kill it.
29
- */
30
- export declare const prerenderWithServer: (serverBundlePath: string, port: number, outDir: string, staticConfig: StaticConfig, env: Record<string, string>, log?: LogFn) => Promise<PrerenderResult>;
31
- export {};
@@ -1,13 +0,0 @@
1
- import type { IslandRegistry, IslandRegistryInput, RuntimeIslandRenderProps } from '../../types/island';
2
- export declare const renderIslandMarkup: <T extends IslandRegistryInput>(registry: IslandRegistry<T> | T, props: RuntimeIslandRenderProps) => Promise<string>;
3
- export declare const renderIslandResult: <T extends IslandRegistryInput>(registry: IslandRegistry<T> | T, props: RuntimeIslandRenderProps) => Promise<{
4
- attributes: {
5
- 'data-component': string;
6
- 'data-framework': string;
7
- 'data-hydrate': string;
8
- 'data-island': "true";
9
- 'data-island-id'?: string;
10
- 'data-props': string;
11
- };
12
- html: string;
13
- }>;
@@ -1,10 +0,0 @@
1
- import { type AppendStreamingSlotsOptions, type StreamingSlotPolicy, type StreamingSlot } from '../utils/streamingSlots';
2
- type ResponseLike = Response | Promise<Response>;
3
- export type StreamingSlotEnhancerOptions = Omit<AppendStreamingSlotsOptions, 'injectRuntime'> & {
4
- streamingSlots?: StreamingSlot[];
5
- policy?: StreamingSlotPolicy;
6
- };
7
- export declare const enhanceHtmlResponseWithStreamingSlots: (response: Response, { nonce, onError, runtimePlacement, runtimePreludeScript, streamingSlots, policy }?: StreamingSlotEnhancerOptions) => Response;
8
- export declare const withStreamingSlots: (responseLike: ResponseLike, options?: StreamingSlotEnhancerOptions) => Promise<Response>;
9
- export declare const withRegisteredStreamingSlots: (renderResponse: () => ResponseLike, options?: StreamingSlotEnhancerOptions) => Promise<Response>;
10
- export {};
@@ -1,25 +0,0 @@
1
- import type { StreamingSlotPatchPayload } from '../utils/streamingSlots';
2
- export type StaticStreamingSlotResolver = () => Promise<StreamingSlotPatchPayload> | StreamingSlotPatchPayload;
3
- export type StaticStreamingSlotDefinition = {
4
- resolve: StaticStreamingSlotResolver;
5
- timeoutMs?: number;
6
- errorHtml?: string;
7
- };
8
- export type StaticStreamingSlotDefinitions = Record<string, StaticStreamingSlotResolver | StaticStreamingSlotDefinition>;
9
- export declare const defineStaticStreamingSlots: <const T extends StaticStreamingSlotDefinitions>(slots: T) => T;
10
- type StaticStreamingTagDefinition = {
11
- errorHtml?: string;
12
- fallbackHtml: string;
13
- id: string;
14
- resolver: string;
15
- timeoutMs?: number;
16
- };
17
- export declare const extractStaticStreamingTags: (html: string) => StaticStreamingTagDefinition[];
18
- export declare const loadStaticStreamingSlots: (pagePath: string, html: string) => Promise<{
19
- errorHtml: string | undefined;
20
- fallbackHtml: string;
21
- id: string;
22
- resolve: StaticStreamingSlotResolver;
23
- timeoutMs: number | undefined;
24
- }[]>;
25
- export {};
@@ -1,16 +0,0 @@
1
- import type { StreamingSlot } from '../utils/streamingSlots';
2
- type StreamingSlotRegistrar = (slot: StreamingSlot) => void;
3
- type StreamingSlotWarningController = {
4
- maybeWarn(primitiveName: string): void;
5
- };
6
- type StreamingSlotCollectionController = {
7
- isCollecting(): boolean;
8
- };
9
- export declare const hasRegisteredStreamingSlotRegistrar: () => boolean;
10
- export declare const isStreamingSlotCollectionActive: () => boolean;
11
- export declare const registerStreamingSlot: (slot: StreamingSlot) => void;
12
- export declare const setStreamingSlotCollectionController: (controller: StreamingSlotCollectionController | null) => void;
13
- export declare const setStreamingSlotRegistrar: (nextRegistrar: StreamingSlotRegistrar | null) => void;
14
- export declare const setStreamingSlotWarningController: (controller: StreamingSlotWarningController | null) => void;
15
- export declare const warnMissingStreamingSlotCollector: (primitiveName: string) => void;
16
- export {};
@@ -1,2 +0,0 @@
1
- export declare const hasActiveStreamingSlotRegistry: () => boolean;
2
- export declare const runWithStreamingSlotRegistry: <T>(task: () => Promise<T> | T) => Promise<any>;
@@ -1,4 +0,0 @@
1
- export declare const captureStreamingSlotWarningCallsite: () => string | undefined;
2
- export declare const runWithStreamingSlotWarningScope: <T>(task: () => Promise<T> | T, metadata?: {
3
- handlerCallsite?: string;
4
- }) => T | Promise<T>;
@@ -1 +0,0 @@
1
- export declare const compileSvelteServerModule: (sourcePath: string) => Promise<string>;
@@ -1,2 +0,0 @@
1
- import { withRegisteredStreamingSlots } from './responseEnhancers';
2
- export declare const wrapPageHandlerWithStreamingSlots: <T extends (...args: unknown[]) => Response | Promise<Response>>(handler: T, options?: Parameters<typeof withRegisteredStreamingSlots>[1]) => T;
@@ -1,8 +0,0 @@
1
- /** Determine Content-Type from a file path extension */
2
- export declare const getMimeType: (filePath: string) => string;
3
- /** Upsert build outputs into the in-memory asset store.
4
- * Evicts previous entries for the same logical asset (same base name,
5
- * different hash) so stale paths don't accumulate. */
6
- export declare const cleanStaleAssets: (store: Map<string, Uint8Array>, manifest: Record<string, string>, buildDir: string) => Promise<void>;
7
- export declare const lookupAsset: (store: Map<string, Uint8Array>, path: string) => Uint8Array<ArrayBufferLike> | undefined;
8
- export declare const populateAssetStore: (store: Map<string, Uint8Array>, manifest: Record<string, string>, buildDir: string) => Promise<void>;
@@ -1 +0,0 @@
1
- export declare const buildHMRClient: () => Promise<string>;
@@ -1,31 +0,0 @@
1
- import type { FSWatcher } from 'fs';
2
- import { type DependencyGraph } from './dependencyGraph';
3
- import { type ModuleVersions } from './moduleVersionTracker';
4
- import type { HMRWebSocket } from '../../types/websocket';
5
- import type { BuildConfig } from '../../types/build';
6
- import { type ResolvedBuildPaths } from './configResolver';
7
- export type HMRState = {
8
- connectedClients: Set<HMRWebSocket>;
9
- activeFrameworks: Set<string>;
10
- dependencyGraph: DependencyGraph;
11
- isRebuilding: boolean;
12
- rebuildQueue: Set<string>;
13
- rebuildTimeout: NodeJS.Timeout | null;
14
- fileChangeQueue: Map<string, string[]>;
15
- debounceTimeout: NodeJS.Timeout | null;
16
- fileHashes: Map<string, number>;
17
- watchers: FSWatcher[];
18
- moduleVersions: ModuleVersions;
19
- sourceFileVersions: Map<string, number>;
20
- config: BuildConfig;
21
- resolvedPaths: ResolvedBuildPaths;
22
- vueChangeTypes: Map<string, 'template-only' | 'script' | 'full'>;
23
- assetStore: Map<string, Uint8Array>;
24
- manifest: Record<string, string>;
25
- rebuildCount: number;
26
- lastHmrPath?: string;
27
- lastHmrFramework?: string;
28
- };
29
- export declare const createHMRState: (config: BuildConfig) => HMRState;
30
- export declare const incrementSourceFileVersion: (state: HMRState, filePath: string) => number;
31
- export declare const incrementSourceFileVersions: (state: HMRState, filePaths: string[]) => void;
@@ -1,14 +0,0 @@
1
- import type { BuildConfig } from '../../types/build';
2
- /** Normalize and default build paths so HMR works outside the example app. */
3
- export declare const resolveBuildPaths: (config: BuildConfig) => {
4
- angularDir: string | undefined;
5
- assetsDir: string | undefined;
6
- buildDir: string;
7
- htmlDir: string | undefined;
8
- htmxDir: string | undefined;
9
- reactDir: string | undefined;
10
- stylesDir: string | undefined;
11
- svelteDir: string | undefined;
12
- vueDir: string | undefined;
13
- };
14
- export type ResolvedBuildPaths = ReturnType<typeof resolveBuildPaths>;
@@ -1,10 +0,0 @@
1
- export type DependencyGraph = {
2
- dependents: Map<string, Set<string>>;
3
- dependencies: Map<string, Set<string>>;
4
- };
5
- export declare const emptyDependencyGraph: DependencyGraph;
6
- export declare const addFileToGraph: (graph: DependencyGraph, filePath: string) => void;
7
- export declare const buildInitialDependencyGraph: (graph: DependencyGraph, directories: string[]) => void;
8
- export declare const extractDependencies: (filePath: string) => string[];
9
- export declare const getAffectedFiles: (graph: DependencyGraph, changedFile: string) => string[];
10
- export declare const removeFileFromGraph: (graph: DependencyGraph, filePath: string) => void;
@@ -1,11 +0,0 @@
1
- export declare const hasMkcert: () => boolean;
2
- export declare const ensureDevCert: () => {
3
- cert: string;
4
- key: string;
5
- } | null;
6
- export declare const hasCert: () => boolean;
7
- export declare const loadDevCert: () => {
8
- cert: string;
9
- key: string;
10
- } | null;
11
- export declare const setupMkcert: () => boolean;
@@ -1,2 +0,0 @@
1
- export declare const computeFileHash: (filePath: string) => number;
2
- export declare const hasFileChanged: (filePath: string, currentHash: number, previousHashes: Map<string, number>) => boolean;
@@ -1,4 +0,0 @@
1
- import type { BuildConfig } from '../../types/build';
2
- import type { HMRState } from './clientManager';
3
- export declare const addFileWatchers: (state: HMRState, paths: string[], onFileChange: (filePath: string) => void) => void;
4
- export declare const startFileWatching: (state: HMRState, config: BuildConfig, onFileChange: (filePath: string) => void) => void;
@@ -1,27 +0,0 @@
1
- import { type ComponentType } from './reactComponentClassifier';
2
- export type ModuleUpdate = {
3
- sourceFile: string;
4
- framework: string;
5
- moduleKeys: string[];
6
- modulePaths: Record<string, string>;
7
- componentType?: ComponentType;
8
- };
9
- export declare const createModuleUpdates: (changedFiles: string[], framework: string, manifest: Record<string, string>, resolvedPaths?: {
10
- reactDir?: string;
11
- svelteDir?: string;
12
- vueDir?: string;
13
- angularDir?: string;
14
- }) => {
15
- componentType: "client" | "server" | undefined;
16
- framework: string;
17
- moduleKeys: string[];
18
- modulePaths: Record<string, string>;
19
- sourceFile: string;
20
- }[];
21
- export declare const groupModuleUpdatesByFramework: (updates: ModuleUpdate[]) => Map<string, ModuleUpdate[]>;
22
- export declare const mapSourceFileToManifestKeys: (sourceFile: string, framework: string, resolvedPaths?: {
23
- reactDir?: string;
24
- svelteDir?: string;
25
- vueDir?: string;
26
- angularDir?: string;
27
- }) => string[];
@@ -1,21 +0,0 @@
1
- type ModuleServerConfig = {
2
- projectRoot: string;
3
- vendorPaths: Record<string, string>;
4
- frameworkDirs?: {
5
- angular?: string;
6
- react?: string;
7
- svelte?: string;
8
- vue?: string;
9
- };
10
- };
11
- export declare const warmCompilers: (frameworks: {
12
- svelte?: boolean;
13
- vue?: boolean;
14
- }) => Promise<void>;
15
- export declare const createModuleServer: (config: ModuleServerConfig) => (pathname: string) => Promise<Response | undefined>;
16
- export declare const invalidateModule: (filePath: string) => void;
17
- export declare const warmCache: (pathname: string) => void;
18
- declare let globalModuleServer: ((pathname: string) => Promise<Response | undefined> | Response | undefined) | null;
19
- export declare const SRC_URL_PREFIX = "/@src/";
20
- export declare const setGlobalModuleServer: (handler: typeof globalModuleServer) => void;
21
- export {};
@@ -1,7 +0,0 @@
1
- export type ModuleVersion = number;
2
- export type ModuleVersions = Map<string, ModuleVersion>;
3
- export declare const createModuleVersionTracker: () => Map<string, number>;
4
- export declare const getNextVersion: () => number;
5
- export declare const incrementModuleVersion: (versions: ModuleVersions, modulePath: string) => number;
6
- export declare const incrementModuleVersions: (versions: ModuleVersions, modulePaths: string[]) => Map<string, number>;
7
- export declare const serializeModuleVersions: (versions: ModuleVersions) => Record<string, number>;