@clarify-labs/cli 0.10.1 → 0.10.3

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.
@@ -53,104 +53,18 @@ export declare const clarifySourceConfigSchema: z.ZodObject<{
53
53
  branch: z.ZodOptional<z.ZodString>;
54
54
  directory: z.ZodOptional<z.ZodString>;
55
55
  }, z.core.$strip>;
56
- export declare const clarifyPagesItemSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
57
- page: z.ZodString;
58
- path: z.ZodOptional<z.ZodString>;
59
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
60
- icon: z.ZodOptional<z.ZodString>;
61
- redirect: z.ZodOptional<z.ZodString>;
62
- }, z.core.$strip>, z.ZodObject<{
63
- openapi: z.ZodString;
64
- path: z.ZodOptional<z.ZodString>;
65
- icon: z.ZodOptional<z.ZodString>;
66
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
67
- filter: z.ZodOptional<z.ZodObject<{
68
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
- }, z.core.$strip>>;
70
- }, z.core.$strip>]>;
71
- export declare const clarifyPagesGroupSchema: z.ZodObject<{
72
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
73
- icon: z.ZodOptional<z.ZodString>;
74
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
75
- page: z.ZodString;
76
- path: z.ZodOptional<z.ZodString>;
77
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
78
- icon: z.ZodOptional<z.ZodString>;
79
- redirect: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>, z.ZodObject<{
81
- openapi: z.ZodString;
82
- path: z.ZodOptional<z.ZodString>;
83
- icon: z.ZodOptional<z.ZodString>;
84
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
85
- filter: z.ZodOptional<z.ZodObject<{
86
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- }, z.core.$strip>>;
88
- }, z.core.$strip>]>>;
89
- }, z.core.$strip>;
90
- export declare const clarifyPagesConfigSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
91
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
92
- icon: z.ZodOptional<z.ZodString>;
93
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
94
- page: z.ZodString;
95
- path: z.ZodOptional<z.ZodString>;
96
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
97
- icon: z.ZodOptional<z.ZodString>;
98
- redirect: z.ZodOptional<z.ZodString>;
99
- }, z.core.$strip>, z.ZodObject<{
100
- openapi: z.ZodString;
101
- path: z.ZodOptional<z.ZodString>;
102
- icon: z.ZodOptional<z.ZodString>;
103
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
104
- filter: z.ZodOptional<z.ZodObject<{
105
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
- }, z.core.$strip>>;
107
- }, z.core.$strip>]>>;
108
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>;
56
+ export declare const clarifyPagesItemSchema: z.ZodType<import('../../types.js').ClarifyPagesItem, import('../../types.js').ClarifyPagesItem>;
57
+ export declare const clarifyPagesGroupSchema: z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>;
58
+ export declare const clarifyPagesConfigSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>;
109
59
  export declare const clarifyTabItemSchema: z.ZodObject<{
110
60
  tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
111
61
  icon: z.ZodOptional<z.ZodString>;
112
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
113
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
114
- icon: z.ZodOptional<z.ZodString>;
115
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
116
- page: z.ZodString;
117
- path: z.ZodOptional<z.ZodString>;
118
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
119
- icon: z.ZodOptional<z.ZodString>;
120
- redirect: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>, z.ZodObject<{
122
- openapi: z.ZodString;
123
- path: z.ZodOptional<z.ZodString>;
124
- icon: z.ZodOptional<z.ZodString>;
125
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
126
- filter: z.ZodOptional<z.ZodObject<{
127
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
- }, z.core.$strip>>;
129
- }, z.core.$strip>]>>;
130
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
62
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
131
63
  }, z.core.$strip>;
132
64
  export declare const clarifyTabsConfigSchema: z.ZodArray<z.ZodObject<{
133
65
  tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
134
66
  icon: z.ZodOptional<z.ZodString>;
135
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
136
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
137
- icon: z.ZodOptional<z.ZodString>;
138
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
139
- page: z.ZodString;
140
- path: z.ZodOptional<z.ZodString>;
141
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
142
- icon: z.ZodOptional<z.ZodString>;
143
- redirect: z.ZodOptional<z.ZodString>;
144
- }, z.core.$strip>, z.ZodObject<{
145
- openapi: z.ZodString;
146
- path: z.ZodOptional<z.ZodString>;
147
- icon: z.ZodOptional<z.ZodString>;
148
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
149
- filter: z.ZodOptional<z.ZodObject<{
150
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
151
- }, z.core.$strip>>;
152
- }, z.core.$strip>]>>;
153
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
67
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
154
68
  }, z.core.$strip>>;
155
69
  export declare const clarifyThemePresetSchema: z.ZodEnum<{
156
70
  default: "default";
@@ -411,25 +325,7 @@ export declare const clarifyProjectConfigSchema: z.ZodObject<{
411
325
  tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
326
  tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
413
327
  icon: z.ZodOptional<z.ZodString>;
414
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
415
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
416
- icon: z.ZodOptional<z.ZodString>;
417
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
418
- page: z.ZodString;
419
- path: z.ZodOptional<z.ZodString>;
420
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
421
- icon: z.ZodOptional<z.ZodString>;
422
- redirect: z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>, z.ZodObject<{
424
- openapi: z.ZodString;
425
- path: z.ZodOptional<z.ZodString>;
426
- icon: z.ZodOptional<z.ZodString>;
427
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
428
- filter: z.ZodOptional<z.ZodObject<{
429
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
- }, z.core.$strip>>;
431
- }, z.core.$strip>]>>;
432
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
328
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
433
329
  }, z.core.$strip>>>;
434
330
  }, z.core.$strip>;
435
331
  export type ClarifyProjectConfigInput = z.input<typeof clarifyProjectConfigSchema>;
@@ -6,6 +6,7 @@ import { VirtualModules } from '../runtime/virtual-modules.js';
6
6
  import { ClarifyContext } from './context.js';
7
7
  import { ClarifyEngineRuntime, PrepareOptions } from './types.js';
8
8
  export type { ClarifyEngineMode, ClarifyEngineRuntime, PrepareOptions } from './types.js';
9
+ export declare function assertNoContentDiagnostics(routes: ContentRoute[]): void;
9
10
  export declare class ClarifyEngine {
10
11
  readonly options: ClarifyBuildOptions;
11
12
  readonly root: string;
@@ -47,6 +47,6 @@ export declare function createClientEntryModule(options?: CreateClientEntryModul
47
47
  * type — no runtime validation is needed.
48
48
  */
49
49
  export declare function createRuntimeSlotsModule(plugins?: ClarifyPlugin[], root?: string): string;
50
- export declare function generateMdxErrorModule(diagnostic: ContentDiagnostic): string;
50
+ export declare function generateContentDiagnosticModule(diagnostic: ContentDiagnostic): string;
51
51
  export declare function buildVirtualModules(args: BuildVirtualModulesArgs): VirtualModules;
52
52
  export {};