@absolutejs/absolute 0.19.0-beta.461 → 0.19.0-beta.462
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/ai/index.js +21 -3
- package/dist/ai/index.js.map +4 -4
- package/dist/index.js +6 -6
- package/dist/index.js.map +3 -3
- package/dist/src/core/prepare.d.ts +200 -6
- package/dist/src/plugins/imageOptimizer.d.ts +66 -1
- package/dist/types/ai.d.ts +8 -0
- package/package.json +7 -7
|
@@ -2,11 +2,205 @@ import { Elysia } from 'elysia';
|
|
|
2
2
|
export declare const prepare: (configOrPath?: string) => Promise<{
|
|
3
3
|
manifest: Record<string, string>;
|
|
4
4
|
absolutejs: Elysia<"", {
|
|
5
|
-
decorator:
|
|
6
|
-
store: {
|
|
7
|
-
|
|
5
|
+
decorator: {};
|
|
6
|
+
store: {};
|
|
7
|
+
derive: {};
|
|
8
|
+
resolve: {};
|
|
9
|
+
}, {
|
|
10
|
+
typebox: {};
|
|
11
|
+
error: {};
|
|
12
|
+
} & {
|
|
13
|
+
typebox: {};
|
|
14
|
+
error: {};
|
|
15
|
+
}, {
|
|
16
|
+
schema: {};
|
|
17
|
+
standaloneSchema: {};
|
|
18
|
+
macro: {};
|
|
19
|
+
macroFn: {};
|
|
20
|
+
parser: {};
|
|
21
|
+
response: {};
|
|
22
|
+
} & {
|
|
23
|
+
schema: {};
|
|
24
|
+
standaloneSchema: {};
|
|
25
|
+
macro: {};
|
|
26
|
+
macroFn: {};
|
|
27
|
+
parser: {};
|
|
28
|
+
response: {};
|
|
29
|
+
}, ({
|
|
30
|
+
".well-known": {
|
|
31
|
+
appspecific: {
|
|
32
|
+
"com.chrome.devtools.json": {
|
|
33
|
+
get: {
|
|
34
|
+
body: unknown;
|
|
35
|
+
params: {};
|
|
36
|
+
query: unknown;
|
|
37
|
+
headers: unknown;
|
|
38
|
+
response: {
|
|
39
|
+
200: {
|
|
40
|
+
workspace: {
|
|
41
|
+
root: string;
|
|
42
|
+
uuid: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
8
49
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
50
|
+
} & {
|
|
51
|
+
"hmr-status": {
|
|
52
|
+
get: {
|
|
53
|
+
body: unknown;
|
|
54
|
+
params: {};
|
|
55
|
+
query: unknown;
|
|
56
|
+
headers: unknown;
|
|
57
|
+
response: {
|
|
58
|
+
200: {
|
|
59
|
+
connectedClients: number;
|
|
60
|
+
isRebuilding: boolean;
|
|
61
|
+
manifestKeys: string[];
|
|
62
|
+
rebuildCount: number;
|
|
63
|
+
rebuildQueue: string[];
|
|
64
|
+
timestamp: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}) | ({
|
|
70
|
+
".well-known": {
|
|
71
|
+
appspecific: {
|
|
72
|
+
"com.chrome.devtools.json": {
|
|
73
|
+
get: {
|
|
74
|
+
body: unknown;
|
|
75
|
+
params: {};
|
|
76
|
+
query: unknown;
|
|
77
|
+
headers: unknown;
|
|
78
|
+
response: {
|
|
79
|
+
200: {
|
|
80
|
+
workspace: {
|
|
81
|
+
root: string;
|
|
82
|
+
uuid: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} & {
|
|
91
|
+
[x: string]: {
|
|
92
|
+
get: {
|
|
93
|
+
body: unknown;
|
|
94
|
+
params: {};
|
|
95
|
+
query: unknown;
|
|
96
|
+
headers: unknown;
|
|
97
|
+
response: {};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
} & {
|
|
101
|
+
"hmr-status": {
|
|
102
|
+
get: {
|
|
103
|
+
body: unknown;
|
|
104
|
+
params: {};
|
|
105
|
+
query: unknown;
|
|
106
|
+
headers: unknown;
|
|
107
|
+
response: {
|
|
108
|
+
200: {
|
|
109
|
+
connectedClients: number;
|
|
110
|
+
isRebuilding: boolean;
|
|
111
|
+
manifestKeys: string[];
|
|
112
|
+
rebuildCount: number;
|
|
113
|
+
rebuildQueue: string[];
|
|
114
|
+
timestamp: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}), {
|
|
120
|
+
derive: {};
|
|
121
|
+
resolve: {};
|
|
122
|
+
schema: {};
|
|
123
|
+
standaloneSchema: {};
|
|
124
|
+
response: {};
|
|
125
|
+
}, {
|
|
126
|
+
derive: {};
|
|
127
|
+
resolve: {};
|
|
128
|
+
schema: {};
|
|
129
|
+
standaloneSchema: {};
|
|
130
|
+
response: {};
|
|
131
|
+
} & {
|
|
132
|
+
derive: {};
|
|
133
|
+
resolve: {};
|
|
134
|
+
schema: {};
|
|
135
|
+
standaloneSchema: {};
|
|
136
|
+
response: {};
|
|
137
|
+
} & {
|
|
138
|
+
derive: {};
|
|
139
|
+
resolve: {};
|
|
140
|
+
schema: {};
|
|
141
|
+
standaloneSchema: {};
|
|
142
|
+
response: {};
|
|
143
|
+
}>;
|
|
144
|
+
} | {
|
|
145
|
+
absolutejs: Elysia<"", {
|
|
146
|
+
decorator: {};
|
|
147
|
+
store: {};
|
|
148
|
+
derive: {};
|
|
149
|
+
resolve: {};
|
|
150
|
+
}, {
|
|
151
|
+
typebox: {};
|
|
152
|
+
error: {};
|
|
153
|
+
} & {
|
|
154
|
+
typebox: {};
|
|
155
|
+
error: {};
|
|
156
|
+
}, {
|
|
157
|
+
schema: {};
|
|
158
|
+
standaloneSchema: {};
|
|
159
|
+
macro: {};
|
|
160
|
+
macroFn: {};
|
|
161
|
+
parser: {};
|
|
162
|
+
response: {};
|
|
163
|
+
} & {
|
|
164
|
+
schema: {};
|
|
165
|
+
standaloneSchema: {};
|
|
166
|
+
macro: {};
|
|
167
|
+
macroFn: {};
|
|
168
|
+
parser: {};
|
|
169
|
+
response: {};
|
|
170
|
+
}, {} | {
|
|
171
|
+
[x: string]: {
|
|
172
|
+
get: {
|
|
173
|
+
body: unknown;
|
|
174
|
+
params: {};
|
|
175
|
+
query: unknown;
|
|
176
|
+
headers: unknown;
|
|
177
|
+
response: {};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
}, {
|
|
181
|
+
derive: {};
|
|
182
|
+
resolve: {};
|
|
183
|
+
schema: {};
|
|
184
|
+
standaloneSchema: {};
|
|
185
|
+
response: {};
|
|
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
|
+
manifest: Record<string, string>;
|
|
12
206
|
}>;
|
|
@@ -1,2 +1,67 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
1
2
|
import type { ImageConfig } from '../../types/image';
|
|
2
|
-
export declare const imageOptimizer: (config: ImageConfig | undefined, buildDir: string) =>
|
|
3
|
+
export declare const imageOptimizer: (config: ImageConfig | undefined, buildDir: string) => Elysia<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
}, {
|
|
12
|
+
schema: {};
|
|
13
|
+
standaloneSchema: {};
|
|
14
|
+
macro: {};
|
|
15
|
+
macroFn: {};
|
|
16
|
+
parser: {};
|
|
17
|
+
response: {};
|
|
18
|
+
}, {}, {
|
|
19
|
+
derive: {};
|
|
20
|
+
resolve: {};
|
|
21
|
+
schema: {};
|
|
22
|
+
standaloneSchema: {};
|
|
23
|
+
response: {};
|
|
24
|
+
}, {
|
|
25
|
+
derive: {};
|
|
26
|
+
resolve: {};
|
|
27
|
+
schema: {};
|
|
28
|
+
standaloneSchema: {};
|
|
29
|
+
response: {};
|
|
30
|
+
}> | Elysia<"", {
|
|
31
|
+
decorator: {};
|
|
32
|
+
store: {};
|
|
33
|
+
derive: {};
|
|
34
|
+
resolve: {};
|
|
35
|
+
}, {
|
|
36
|
+
typebox: {};
|
|
37
|
+
error: {};
|
|
38
|
+
}, {
|
|
39
|
+
schema: {};
|
|
40
|
+
standaloneSchema: {};
|
|
41
|
+
macro: {};
|
|
42
|
+
macroFn: {};
|
|
43
|
+
parser: {};
|
|
44
|
+
response: {};
|
|
45
|
+
}, {
|
|
46
|
+
[x: string]: {
|
|
47
|
+
get: {
|
|
48
|
+
body: unknown;
|
|
49
|
+
params: {};
|
|
50
|
+
query: unknown;
|
|
51
|
+
headers: unknown;
|
|
52
|
+
response: {};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
derive: {};
|
|
57
|
+
resolve: {};
|
|
58
|
+
schema: {};
|
|
59
|
+
standaloneSchema: {};
|
|
60
|
+
response: {};
|
|
61
|
+
}, {
|
|
62
|
+
derive: {};
|
|
63
|
+
resolve: {};
|
|
64
|
+
schema: {};
|
|
65
|
+
standaloneSchema: {};
|
|
66
|
+
response: {};
|
|
67
|
+
}>;
|
package/dist/types/ai.d.ts
CHANGED
|
@@ -616,6 +616,13 @@ export type AIConversationStore = {
|
|
|
616
616
|
remove: (id: string) => Promise<void>;
|
|
617
617
|
};
|
|
618
618
|
export type AIHTMXRenderConfig = {
|
|
619
|
+
messageStart?: (input: {
|
|
620
|
+
conversationId: string;
|
|
621
|
+
messageId: string;
|
|
622
|
+
content: string;
|
|
623
|
+
sseUrl: string;
|
|
624
|
+
cancelUrl: string;
|
|
625
|
+
}) => string;
|
|
619
626
|
chunk?: (text: string, fullContent: string) => string;
|
|
620
627
|
thinking?: (text: string) => string;
|
|
621
628
|
toolRunning?: (name: string, input: unknown) => string;
|
|
@@ -634,6 +641,7 @@ export type AIHTMXRenderConfig = {
|
|
|
634
641
|
retrievedAt?: number;
|
|
635
642
|
retrievalDurationMs?: number;
|
|
636
643
|
}) => string;
|
|
644
|
+
canceled?: () => string;
|
|
637
645
|
error?: (message: string) => string;
|
|
638
646
|
};
|
|
639
647
|
export type RAGHTMXWorkflowRenderConfig = {
|
package/package.json
CHANGED
|
@@ -228,12 +228,12 @@
|
|
|
228
228
|
"main": "./dist/index.js",
|
|
229
229
|
"name": "@absolutejs/absolute",
|
|
230
230
|
"optionalDependencies": {
|
|
231
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
232
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
233
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
234
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
235
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
236
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
231
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.462",
|
|
232
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.462",
|
|
233
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.462",
|
|
234
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.462",
|
|
235
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.462",
|
|
236
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.462"
|
|
237
237
|
},
|
|
238
238
|
"overrides": {
|
|
239
239
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -314,5 +314,5 @@
|
|
|
314
314
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
|
|
315
315
|
},
|
|
316
316
|
"types": "./dist/src/index.d.ts",
|
|
317
|
-
"version": "0.19.0-beta.
|
|
317
|
+
"version": "0.19.0-beta.462"
|
|
318
318
|
}
|