blume 0.5.4 → 0.6.0
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/cli/index.js +380 -157
- package/dist/cli/index.js.map +23 -22
- package/dist/types/core/data.d.ts +4 -0
- package/dist/types/core/i18n-ui.d.ts +50 -0
- package/dist/types/core/schema.d.ts +328 -39
- package/dist/types/core/types.d.ts +8 -0
- package/docs/configuration/ai.mdx +56 -0
- package/docs/configuration/seo.mdx +59 -1
- package/docs/configuration/theming.mdx +14 -9
- package/docs/content/meta.mdx +3 -17
- package/docs/content/navigation.mdx +41 -4
- package/package.json +3 -1
- package/src/ai/agent-readability.ts +97 -0
- package/src/ai/ask-context.ts +131 -8
- package/src/ai/ask-data.ts +4 -1
- package/src/astro/generate.ts +4 -0
- package/src/astro/templates.ts +24 -5
- package/src/cli/commands/build.ts +15 -0
- package/src/cli/commands/dev.ts +31 -14
- package/src/cli/dev-lock.ts +94 -21
- package/src/components/content/GithubInfo.astro +11 -10
- package/src/components/content/TypeTable.astro +8 -3
- package/src/components/islands/AskAI.astro +66 -2
- package/src/components/islands/ask-ai.tsx +289 -53
- package/src/components/layout/Header.astro +1 -1
- package/src/components/layout/NavTree.astro +1 -1
- package/src/components/layout/PageActions.astro +73 -30
- package/src/components/layout/RootLayout.astro +48 -2
- package/src/core/data.ts +4 -0
- package/src/core/graph.ts +7 -2
- package/src/core/i18n-ui.ts +5 -0
- package/src/core/nav-diagnostics.ts +7 -0
- package/src/core/navigation.ts +38 -12
- package/src/core/schema.ts +124 -9
- package/src/core/sources/filesystem.ts +5 -1
- package/src/core/sources/watch.ts +43 -12
- package/src/core/types.ts +9 -0
- package/src/deploy/robots.ts +37 -4
- package/src/openapi/scalar.ts +1 -1
- package/src/search/documents.ts +9 -2
- package/src/theme/palette.ts +21 -14
|
@@ -82,6 +82,10 @@ export interface BlumeDataConfig {
|
|
|
82
82
|
analytics: NonNullable<ResolvedConfig["analytics"]> | null;
|
|
83
83
|
/** Apple touch icon, or `null` when none is configured/detected. */
|
|
84
84
|
appleIcon: BlumeFavicon | null;
|
|
85
|
+
/** Ask AI empty-state suggestions, or `null` when Ask AI is off. */
|
|
86
|
+
ask: {
|
|
87
|
+
suggestions: NonNullable<ResolvedConfig["ai"]["ask"]>["suggestions"];
|
|
88
|
+
} | null;
|
|
85
89
|
banner: BlumeBanner | null;
|
|
86
90
|
/** `markdown.code.wrap`: wrap long code lines instead of scrolling. */
|
|
87
91
|
codeWrap: boolean;
|
|
@@ -16,6 +16,7 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
16
16
|
connectMcp: z.ZodDefault<z.ZodString>;
|
|
17
17
|
copied: z.ZodDefault<z.ZodString>;
|
|
18
18
|
copyClaudeCode: z.ZodDefault<z.ZodString>;
|
|
19
|
+
copyCodex: z.ZodDefault<z.ZodString>;
|
|
19
20
|
copyMarkdown: z.ZodDefault<z.ZodString>;
|
|
20
21
|
copyServerUrl: z.ZodDefault<z.ZodString>;
|
|
21
22
|
edit: z.ZodDefault<z.ZodString>;
|
|
@@ -33,6 +34,7 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
33
34
|
edit: string;
|
|
34
35
|
openInChat: string;
|
|
35
36
|
scrollToTop: string;
|
|
37
|
+
copyCodex: string;
|
|
36
38
|
}, {
|
|
37
39
|
addToCursor?: string | undefined;
|
|
38
40
|
addToVscode?: string | undefined;
|
|
@@ -45,13 +47,18 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
45
47
|
edit?: string | undefined;
|
|
46
48
|
openInChat?: string | undefined;
|
|
47
49
|
scrollToTop?: string | undefined;
|
|
50
|
+
copyCodex?: string | undefined;
|
|
48
51
|
}>>;
|
|
49
52
|
ask: z.ZodDefault<z.ZodObject<{
|
|
53
|
+
clear: z.ZodDefault<z.ZodString>;
|
|
54
|
+
close: z.ZodDefault<z.ZodString>;
|
|
55
|
+
copy: z.ZodDefault<z.ZodString>;
|
|
50
56
|
empty: z.ZodDefault<z.ZodString>;
|
|
51
57
|
error: z.ZodDefault<z.ZodString>;
|
|
52
58
|
label: z.ZodDefault<z.ZodString>;
|
|
53
59
|
placeholder: z.ZodDefault<z.ZodString>;
|
|
54
60
|
send: z.ZodDefault<z.ZodString>;
|
|
61
|
+
tip: z.ZodDefault<z.ZodString>;
|
|
55
62
|
title: z.ZodDefault<z.ZodString>;
|
|
56
63
|
}, "strip", z.ZodTypeAny, {
|
|
57
64
|
empty: string;
|
|
@@ -60,6 +67,10 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
60
67
|
placeholder: string;
|
|
61
68
|
send: string;
|
|
62
69
|
title: string;
|
|
70
|
+
clear: string;
|
|
71
|
+
close: string;
|
|
72
|
+
copy: string;
|
|
73
|
+
tip: string;
|
|
63
74
|
}, {
|
|
64
75
|
empty?: string | undefined;
|
|
65
76
|
error?: string | undefined;
|
|
@@ -67,6 +78,10 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
67
78
|
placeholder?: string | undefined;
|
|
68
79
|
send?: string | undefined;
|
|
69
80
|
title?: string | undefined;
|
|
81
|
+
clear?: string | undefined;
|
|
82
|
+
close?: string | undefined;
|
|
83
|
+
copy?: string | undefined;
|
|
84
|
+
tip?: string | undefined;
|
|
70
85
|
}>>;
|
|
71
86
|
feedback: z.ZodDefault<z.ZodObject<{
|
|
72
87
|
no: z.ZodDefault<z.ZodString>;
|
|
@@ -165,6 +180,7 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
165
180
|
edit: string;
|
|
166
181
|
openInChat: string;
|
|
167
182
|
scrollToTop: string;
|
|
183
|
+
copyCodex: string;
|
|
168
184
|
};
|
|
169
185
|
ask: {
|
|
170
186
|
empty: string;
|
|
@@ -173,6 +189,10 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
173
189
|
placeholder: string;
|
|
174
190
|
send: string;
|
|
175
191
|
title: string;
|
|
192
|
+
clear: string;
|
|
193
|
+
close: string;
|
|
194
|
+
copy: string;
|
|
195
|
+
tip: string;
|
|
176
196
|
};
|
|
177
197
|
feedback: {
|
|
178
198
|
no: string;
|
|
@@ -219,6 +239,7 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
219
239
|
edit?: string | undefined;
|
|
220
240
|
openInChat?: string | undefined;
|
|
221
241
|
scrollToTop?: string | undefined;
|
|
242
|
+
copyCodex?: string | undefined;
|
|
222
243
|
} | undefined;
|
|
223
244
|
ask?: {
|
|
224
245
|
empty?: string | undefined;
|
|
@@ -227,6 +248,10 @@ declare const uiStringsObject: z.ZodObject<{
|
|
|
227
248
|
placeholder?: string | undefined;
|
|
228
249
|
send?: string | undefined;
|
|
229
250
|
title?: string | undefined;
|
|
251
|
+
clear?: string | undefined;
|
|
252
|
+
close?: string | undefined;
|
|
253
|
+
copy?: string | undefined;
|
|
254
|
+
tip?: string | undefined;
|
|
230
255
|
} | undefined;
|
|
231
256
|
feedback?: {
|
|
232
257
|
no?: string | undefined;
|
|
@@ -269,6 +294,7 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
269
294
|
connectMcp: z.ZodDefault<z.ZodString>;
|
|
270
295
|
copied: z.ZodDefault<z.ZodString>;
|
|
271
296
|
copyClaudeCode: z.ZodDefault<z.ZodString>;
|
|
297
|
+
copyCodex: z.ZodDefault<z.ZodString>;
|
|
272
298
|
copyMarkdown: z.ZodDefault<z.ZodString>;
|
|
273
299
|
copyServerUrl: z.ZodDefault<z.ZodString>;
|
|
274
300
|
edit: z.ZodDefault<z.ZodString>;
|
|
@@ -286,6 +312,7 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
286
312
|
edit: string;
|
|
287
313
|
openInChat: string;
|
|
288
314
|
scrollToTop: string;
|
|
315
|
+
copyCodex: string;
|
|
289
316
|
}, {
|
|
290
317
|
addToCursor?: string | undefined;
|
|
291
318
|
addToVscode?: string | undefined;
|
|
@@ -298,13 +325,18 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
298
325
|
edit?: string | undefined;
|
|
299
326
|
openInChat?: string | undefined;
|
|
300
327
|
scrollToTop?: string | undefined;
|
|
328
|
+
copyCodex?: string | undefined;
|
|
301
329
|
}>>;
|
|
302
330
|
ask: z.ZodDefault<z.ZodObject<{
|
|
331
|
+
clear: z.ZodDefault<z.ZodString>;
|
|
332
|
+
close: z.ZodDefault<z.ZodString>;
|
|
333
|
+
copy: z.ZodDefault<z.ZodString>;
|
|
303
334
|
empty: z.ZodDefault<z.ZodString>;
|
|
304
335
|
error: z.ZodDefault<z.ZodString>;
|
|
305
336
|
label: z.ZodDefault<z.ZodString>;
|
|
306
337
|
placeholder: z.ZodDefault<z.ZodString>;
|
|
307
338
|
send: z.ZodDefault<z.ZodString>;
|
|
339
|
+
tip: z.ZodDefault<z.ZodString>;
|
|
308
340
|
title: z.ZodDefault<z.ZodString>;
|
|
309
341
|
}, "strip", z.ZodTypeAny, {
|
|
310
342
|
empty: string;
|
|
@@ -313,6 +345,10 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
313
345
|
placeholder: string;
|
|
314
346
|
send: string;
|
|
315
347
|
title: string;
|
|
348
|
+
clear: string;
|
|
349
|
+
close: string;
|
|
350
|
+
copy: string;
|
|
351
|
+
tip: string;
|
|
316
352
|
}, {
|
|
317
353
|
empty?: string | undefined;
|
|
318
354
|
error?: string | undefined;
|
|
@@ -320,6 +356,10 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
320
356
|
placeholder?: string | undefined;
|
|
321
357
|
send?: string | undefined;
|
|
322
358
|
title?: string | undefined;
|
|
359
|
+
clear?: string | undefined;
|
|
360
|
+
close?: string | undefined;
|
|
361
|
+
copy?: string | undefined;
|
|
362
|
+
tip?: string | undefined;
|
|
323
363
|
}>>;
|
|
324
364
|
feedback: z.ZodDefault<z.ZodObject<{
|
|
325
365
|
no: z.ZodDefault<z.ZodString>;
|
|
@@ -418,6 +458,7 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
418
458
|
edit: string;
|
|
419
459
|
openInChat: string;
|
|
420
460
|
scrollToTop: string;
|
|
461
|
+
copyCodex: string;
|
|
421
462
|
};
|
|
422
463
|
ask: {
|
|
423
464
|
empty: string;
|
|
@@ -426,6 +467,10 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
426
467
|
placeholder: string;
|
|
427
468
|
send: string;
|
|
428
469
|
title: string;
|
|
470
|
+
clear: string;
|
|
471
|
+
close: string;
|
|
472
|
+
copy: string;
|
|
473
|
+
tip: string;
|
|
429
474
|
};
|
|
430
475
|
feedback: {
|
|
431
476
|
no: string;
|
|
@@ -472,6 +517,7 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
472
517
|
edit?: string | undefined;
|
|
473
518
|
openInChat?: string | undefined;
|
|
474
519
|
scrollToTop?: string | undefined;
|
|
520
|
+
copyCodex?: string | undefined;
|
|
475
521
|
} | undefined;
|
|
476
522
|
ask?: {
|
|
477
523
|
empty?: string | undefined;
|
|
@@ -480,6 +526,10 @@ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
480
526
|
placeholder?: string | undefined;
|
|
481
527
|
send?: string | undefined;
|
|
482
528
|
title?: string | undefined;
|
|
529
|
+
clear?: string | undefined;
|
|
530
|
+
close?: string | undefined;
|
|
531
|
+
copy?: string | undefined;
|
|
532
|
+
tip?: string | undefined;
|
|
483
533
|
} | undefined;
|
|
484
534
|
feedback?: {
|
|
485
535
|
no?: string | undefined;
|