@homepages/template-kit 0.1.0 → 0.3.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/CHANGELOG.md +220 -0
- package/README.md +70 -16
- package/dist/base.css +36 -48
- package/dist/cli/check/config.js +37 -0
- package/dist/cli/check/css.js +117 -0
- package/dist/cli/check/diagnostics.js +32 -0
- package/dist/cli/check/index.js +87 -0
- package/dist/cli/check/loader.js +142 -0
- package/dist/cli/check/paths.js +15 -0
- package/dist/cli/check/relativize.js +18 -0
- package/dist/cli/check/render-invariants.js +24 -0
- package/dist/cli/check/resolve-tool.js +38 -0
- package/dist/cli/check/stages/deps.js +337 -0
- package/dist/cli/check/stages/lint.js +46 -0
- package/dist/cli/check/stages/render.js +101 -0
- package/dist/cli/check/stages/size.js +158 -0
- package/dist/cli/check/stages/tree.js +207 -0
- package/dist/cli/check/stages/typecheck.js +46 -0
- package/dist/cli/check/stages/validate/catalog-exhaustiveness.js +18 -0
- package/dist/cli/check/stages/validate/facts.js +18 -0
- package/dist/cli/check/stages/validate/formatter-contract.js +14 -0
- package/dist/cli/check/stages/validate/group-contract.js +21 -0
- package/dist/cli/check/stages/validate/index.js +66 -0
- package/dist/cli/check/stages/validate/list-scalar-contract.js +22 -0
- package/dist/cli/check/stages/validate/nav-contract.js +93 -0
- package/dist/cli/check/stages/validate/nested-slot-contract.js +12 -0
- package/dist/cli/check/stages/validate/object-list-contract.js +31 -0
- package/dist/cli/check/stages/validate/orchestrator.js +241 -0
- package/dist/cli/check/stages/validate/produced-by-contract.js +18 -0
- package/dist/cli/check/stages/validate/row-contract.js +31 -0
- package/dist/cli/check/stages/validate/select-contract.js +13 -0
- package/dist/cli/check/stages/validate/source-contract.js +21 -0
- package/dist/cli/check/stages/validate/variant-contract.js +15 -0
- package/dist/cli/check/workspace.js +86 -0
- package/dist/cli/theme/generate.js +43 -0
- package/dist/cli/theme/index.js +33 -0
- package/dist/cli/theme/load-theme.js +69 -0
- package/dist/cli.js +22 -4
- package/dist/contracts/fill-treatments.js +47 -0
- package/dist/design-system/theme.d.ts +30 -299
- package/dist/design-system/theme.js +112 -83
- package/dist/eslint/rules/image-bare-needs-reason.js +6 -1
- package/dist/eslint/rules/no-client-directive-in-contract.js +6 -1
- package/dist/eslint/rules/no-client-runtime-in-server.js +5 -1
- package/dist/eslint/rules/no-css-import-from-render-path.js +8 -2
- package/dist/eslint/rules/no-hex.js +84 -7
- package/dist/eslint/rules/no-inline-style.js +5 -1
- package/dist/eslint/rules/no-nondeterminism.js +5 -1
- package/dist/eslint/rules/no-raw-element.js +6 -1
- package/dist/eslint/rules/props-from-schema.js +6 -1
- package/dist/eslint/rules/serializable-island-props.js +5 -1
- package/dist/eslint/rules/slot-marker-literal.js +6 -1
- package/dist/eslint.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/primitives/Image.js +1 -1
- package/dist/rules/registry.js +16 -0
- package/dist/schema/fill-spec.d.ts +80 -590
- package/dist/schema/fixture-schema.d.ts +5 -81
- package/dist/schema/manifest.d.ts +39 -475
- package/dist/schema/resolve-section-ref.js +10 -0
- package/dist/schema/rows.js +10 -0
- package/dist/schema/section-nav.js +9 -0
- package/dist/schema/section-schema.d.ts +51 -437
- package/dist/schema/slot-types.d.ts +12 -16
- package/dist/styles.css +31 -88
- package/docs/INDEX.md +5 -3
- package/docs/check.md +121 -0
- package/docs/eslint.md +25 -50
- package/docs/llms.txt +26 -11
- package/docs/primitives.md +5 -0
- package/docs/rules/INDEX.md +65 -0
- package/docs/rules/audit-severity.md +91 -0
- package/docs/rules/bundle-binary-asset.md +102 -0
- package/docs/rules/bundle-incomplete.md +117 -0
- package/docs/rules/css-reason.md +94 -0
- package/docs/rules/determinism-drift.md +112 -0
- package/docs/rules/fixtures-invalid.md +96 -0
- package/docs/rules/image-bare-needs-reason.md +117 -0
- package/docs/rules/license-denied.md +114 -0
- package/docs/rules/lockfile-missing.md +68 -0
- package/docs/rules/lockfile-stale.md +88 -0
- package/docs/rules/manifest-invalid.md +99 -0
- package/docs/rules/missing-slot-marker.md +140 -0
- package/docs/rules/no-bare-css-import.md +128 -0
- package/docs/rules/no-client-directive-in-contract.md +111 -0
- package/docs/rules/no-client-runtime-in-server.md +143 -0
- package/docs/rules/no-css-import-from-render-path.md +118 -0
- package/docs/rules/no-hex.md +163 -0
- package/docs/rules/no-inline-style.md +121 -0
- package/docs/rules/no-nondeterminism.md +100 -0
- package/docs/rules/no-raw-element.md +100 -0
- package/docs/rules/no-templates.md +87 -0
- package/docs/rules/parse-error.md +76 -0
- package/docs/rules/props-from-schema.md +119 -0
- package/docs/rules/render-invariant.md +165 -0
- package/docs/rules/schema-invalid.md +96 -0
- package/docs/rules/serializable-island-props.md +146 -0
- package/docs/rules/server-vs-client.md +105 -0
- package/docs/rules/sidebar-order.md +109 -0
- package/docs/rules/single-react.md +97 -0
- package/docs/rules/size-renderer-bundle.md +109 -0
- package/docs/rules/size-section-css.md +95 -0
- package/docs/rules/slot-group-marker.md +127 -0
- package/docs/rules/slot-marker-literal.md +148 -0
- package/docs/rules/typecheck.md +103 -0
- package/docs/rules/unlayered-fence.md +113 -0
- package/docs/theme-and-css.md +193 -82
- package/package.json +4 -9
- package/tsconfig.json +1 -1
|
@@ -1,188 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/schema/fill-spec.d.ts
|
|
3
|
-
declare const Decision: z.ZodDiscriminatedUnion<
|
|
3
|
+
declare const Decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
type: z.ZodLiteral<"image-assign">;
|
|
6
6
|
tag_query: z.ZodOptional<z.ZodString>;
|
|
7
7
|
selection_prompt: z.ZodOptional<z.ZodString>;
|
|
8
8
|
from_fact: z.ZodOptional<z.ZodString>;
|
|
9
|
-
produces: z.ZodArray<z.ZodString
|
|
10
|
-
},
|
|
11
|
-
type: "image-assign";
|
|
12
|
-
id: string;
|
|
13
|
-
produces: string[];
|
|
14
|
-
tag_query?: string | undefined;
|
|
15
|
-
selection_prompt?: string | undefined;
|
|
16
|
-
from_fact?: string | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
type: "image-assign";
|
|
19
|
-
id: string;
|
|
20
|
-
produces: string[];
|
|
21
|
-
tag_query?: string | undefined;
|
|
22
|
-
selection_prompt?: string | undefined;
|
|
23
|
-
from_fact?: string | undefined;
|
|
24
|
-
}>, z.ZodObject<{
|
|
9
|
+
produces: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
11
|
id: z.ZodString;
|
|
26
12
|
type: z.ZodLiteral<"image-collection">;
|
|
27
13
|
tag_query: z.ZodOptional<z.ZodString>;
|
|
28
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
14
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
spread: "spread";
|
|
16
|
+
walkthrough: "walkthrough";
|
|
17
|
+
}>>;
|
|
29
18
|
count: z.ZodOptional<z.ZodObject<{
|
|
30
19
|
min: z.ZodNumber;
|
|
31
20
|
max: z.ZodNumber;
|
|
32
|
-
},
|
|
33
|
-
min: number;
|
|
34
|
-
max: number;
|
|
35
|
-
}, {
|
|
36
|
-
min: number;
|
|
37
|
-
max: number;
|
|
38
|
-
}>>;
|
|
21
|
+
}, z.core.$strict>>;
|
|
39
22
|
selection_prompt: z.ZodString;
|
|
40
|
-
produces: z.ZodArray<z.ZodString
|
|
41
|
-
},
|
|
42
|
-
type: "image-collection";
|
|
43
|
-
id: string;
|
|
44
|
-
selection_prompt: string;
|
|
45
|
-
produces: string[];
|
|
46
|
-
tag_query?: string | undefined;
|
|
47
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
48
|
-
count?: {
|
|
49
|
-
min: number;
|
|
50
|
-
max: number;
|
|
51
|
-
} | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
type: "image-collection";
|
|
54
|
-
id: string;
|
|
55
|
-
selection_prompt: string;
|
|
56
|
-
produces: string[];
|
|
57
|
-
tag_query?: string | undefined;
|
|
58
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
59
|
-
count?: {
|
|
60
|
-
min: number;
|
|
61
|
-
max: number;
|
|
62
|
-
} | undefined;
|
|
63
|
-
}>, z.ZodObject<{
|
|
23
|
+
produces: z.ZodArray<z.ZodString>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
25
|
id: z.ZodString;
|
|
65
26
|
type: z.ZodLiteral<"text-block">;
|
|
66
|
-
length_cap: z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
27
|
+
length_cap: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
67
28
|
bind: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
29
|
+
}, z.core.$strict>]>;
|
|
30
|
+
structure: z.ZodUnion<readonly [z.ZodEnum<{
|
|
31
|
+
single_sentence: "single_sentence";
|
|
32
|
+
paragraph: "paragraph";
|
|
33
|
+
bullet_list: "bullet_list";
|
|
34
|
+
}>, z.ZodObject<{
|
|
74
35
|
bind: z.ZodString;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
36
|
+
}, z.core.$strict>]>;
|
|
37
|
+
perspective: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
first: "first";
|
|
39
|
+
second: "second";
|
|
40
|
+
third: "third";
|
|
41
|
+
}>>;
|
|
81
42
|
voice_prompt: z.ZodString;
|
|
82
43
|
content_prompt: z.ZodOptional<z.ZodString>;
|
|
83
|
-
produces: z.ZodArray<z.ZodString
|
|
84
|
-
},
|
|
85
|
-
type: "text-block";
|
|
86
|
-
id: string;
|
|
87
|
-
produces: string[];
|
|
88
|
-
length_cap: number | {
|
|
89
|
-
bind: string;
|
|
90
|
-
};
|
|
91
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
92
|
-
bind: string;
|
|
93
|
-
};
|
|
94
|
-
voice_prompt: string;
|
|
95
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
96
|
-
content_prompt?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
type: "text-block";
|
|
99
|
-
id: string;
|
|
100
|
-
produces: string[];
|
|
101
|
-
length_cap: number | {
|
|
102
|
-
bind: string;
|
|
103
|
-
};
|
|
104
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
105
|
-
bind: string;
|
|
106
|
-
};
|
|
107
|
-
voice_prompt: string;
|
|
108
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
109
|
-
content_prompt?: string | undefined;
|
|
110
|
-
}>, z.ZodObject<{
|
|
44
|
+
produces: z.ZodArray<z.ZodString>;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
46
|
id: z.ZodString;
|
|
112
47
|
type: z.ZodLiteral<"text-seed">;
|
|
113
48
|
source: z.ZodString;
|
|
114
|
-
produces: z.ZodArray<z.ZodString
|
|
115
|
-
},
|
|
116
|
-
type: "text-seed";
|
|
117
|
-
id: string;
|
|
118
|
-
source: string;
|
|
119
|
-
produces: string[];
|
|
120
|
-
}, {
|
|
121
|
-
type: "text-seed";
|
|
122
|
-
id: string;
|
|
123
|
-
source: string;
|
|
124
|
-
produces: string[];
|
|
125
|
-
}>, z.ZodObject<{
|
|
49
|
+
produces: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
126
51
|
id: z.ZodString;
|
|
127
52
|
type: z.ZodLiteral<"list-extract">;
|
|
128
53
|
iterate: z.ZodOptional<z.ZodString>;
|
|
129
|
-
item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
54
|
+
item_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
130
55
|
bind: z.ZodString;
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
}, {
|
|
134
|
-
bind: string;
|
|
135
|
-
}>]>>;
|
|
136
|
-
per_item_length_cap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
56
|
+
}, z.core.$strict>]>>;
|
|
57
|
+
per_item_length_cap: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
137
58
|
bind: z.ZodString;
|
|
138
|
-
},
|
|
139
|
-
bind: string;
|
|
140
|
-
}, {
|
|
141
|
-
bind: string;
|
|
142
|
-
}>]>>;
|
|
59
|
+
}, z.core.$strict>]>>;
|
|
143
60
|
structure_hint: z.ZodString;
|
|
144
61
|
voice_prompt: z.ZodString;
|
|
145
62
|
content_prompt: z.ZodOptional<z.ZodString>;
|
|
146
|
-
produces: z.ZodArray<z.ZodString
|
|
147
|
-
},
|
|
148
|
-
type: "list-extract";
|
|
149
|
-
id: string;
|
|
150
|
-
produces: string[];
|
|
151
|
-
voice_prompt: string;
|
|
152
|
-
structure_hint: string;
|
|
153
|
-
content_prompt?: string | undefined;
|
|
154
|
-
iterate?: string | undefined;
|
|
155
|
-
item_count?: number | {
|
|
156
|
-
bind: string;
|
|
157
|
-
} | undefined;
|
|
158
|
-
per_item_length_cap?: number | {
|
|
159
|
-
bind: string;
|
|
160
|
-
} | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
type: "list-extract";
|
|
163
|
-
id: string;
|
|
164
|
-
produces: string[];
|
|
165
|
-
voice_prompt: string;
|
|
166
|
-
structure_hint: string;
|
|
167
|
-
content_prompt?: string | undefined;
|
|
168
|
-
iterate?: string | undefined;
|
|
169
|
-
item_count?: number | {
|
|
170
|
-
bind: string;
|
|
171
|
-
} | undefined;
|
|
172
|
-
per_item_length_cap?: number | {
|
|
173
|
-
bind: string;
|
|
174
|
-
} | undefined;
|
|
175
|
-
}>, z.ZodObject<{
|
|
63
|
+
produces: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
176
65
|
id: z.ZodString;
|
|
177
66
|
type: z.ZodLiteral<"structured-list">;
|
|
178
67
|
iterate: z.ZodOptional<z.ZodString>;
|
|
179
|
-
item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
68
|
+
item_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
180
69
|
bind: z.ZodString;
|
|
181
|
-
},
|
|
182
|
-
bind: string;
|
|
183
|
-
}, {
|
|
184
|
-
bind: string;
|
|
185
|
-
}>]>>;
|
|
70
|
+
}, z.core.$strict>]>>;
|
|
186
71
|
item_fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
187
72
|
structure_hint: z.ZodString;
|
|
188
73
|
voice_prompt: z.ZodString;
|
|
@@ -191,264 +76,87 @@ declare const Decision: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
191
76
|
route_by: z.ZodOptional<z.ZodString>;
|
|
192
77
|
per_field_cap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
193
78
|
per_field_min: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
194
|
-
produces: z.ZodArray<z.ZodString
|
|
79
|
+
produces: z.ZodArray<z.ZodString>;
|
|
195
80
|
catalog: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
196
81
|
key: z.ZodString;
|
|
197
82
|
label: z.ZodString;
|
|
198
83
|
icon: z.ZodString;
|
|
199
|
-
aliases: z.ZodDefault<z.ZodArray<z.ZodString
|
|
84
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
200
85
|
slot: z.ZodOptional<z.ZodString>;
|
|
201
|
-
},
|
|
202
|
-
label: string;
|
|
203
|
-
key: string;
|
|
204
|
-
icon: string;
|
|
205
|
-
aliases: string[];
|
|
206
|
-
slot?: string | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
label: string;
|
|
209
|
-
key: string;
|
|
210
|
-
icon: string;
|
|
211
|
-
aliases?: string[] | undefined;
|
|
212
|
-
slot?: string | undefined;
|
|
213
|
-
}>, "many">>;
|
|
86
|
+
}, z.core.$strict>>>;
|
|
214
87
|
per_category_max: z.ZodOptional<z.ZodNumber>;
|
|
215
88
|
min: z.ZodOptional<z.ZodNumber>;
|
|
216
|
-
},
|
|
217
|
-
type: "structured-list";
|
|
218
|
-
id: string;
|
|
219
|
-
produces: string[];
|
|
220
|
-
voice_prompt: string;
|
|
221
|
-
structure_hint: string;
|
|
222
|
-
item_fields: Record<string, string>;
|
|
223
|
-
min?: number | undefined;
|
|
224
|
-
content_prompt?: string | undefined;
|
|
225
|
-
iterate?: string | undefined;
|
|
226
|
-
item_count?: number | {
|
|
227
|
-
bind: string;
|
|
228
|
-
} | undefined;
|
|
229
|
-
system_prompt?: string | undefined;
|
|
230
|
-
route_by?: string | undefined;
|
|
231
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
232
|
-
per_field_min?: Record<string, number> | undefined;
|
|
233
|
-
catalog?: {
|
|
234
|
-
label: string;
|
|
235
|
-
key: string;
|
|
236
|
-
icon: string;
|
|
237
|
-
aliases: string[];
|
|
238
|
-
slot?: string | undefined;
|
|
239
|
-
}[] | undefined;
|
|
240
|
-
per_category_max?: number | undefined;
|
|
241
|
-
}, {
|
|
242
|
-
type: "structured-list";
|
|
243
|
-
id: string;
|
|
244
|
-
produces: string[];
|
|
245
|
-
voice_prompt: string;
|
|
246
|
-
structure_hint: string;
|
|
247
|
-
item_fields: Record<string, string>;
|
|
248
|
-
min?: number | undefined;
|
|
249
|
-
content_prompt?: string | undefined;
|
|
250
|
-
iterate?: string | undefined;
|
|
251
|
-
item_count?: number | {
|
|
252
|
-
bind: string;
|
|
253
|
-
} | undefined;
|
|
254
|
-
system_prompt?: string | undefined;
|
|
255
|
-
route_by?: string | undefined;
|
|
256
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
257
|
-
per_field_min?: Record<string, number> | undefined;
|
|
258
|
-
catalog?: {
|
|
259
|
-
label: string;
|
|
260
|
-
key: string;
|
|
261
|
-
icon: string;
|
|
262
|
-
aliases?: string[] | undefined;
|
|
263
|
-
slot?: string | undefined;
|
|
264
|
-
}[] | undefined;
|
|
265
|
-
per_category_max?: number | undefined;
|
|
266
|
-
}>]>;
|
|
89
|
+
}, z.core.$strict>], "type">;
|
|
267
90
|
declare const FillSpec: z.ZodObject<{
|
|
268
|
-
reads: z.ZodDefault<z.ZodArray<z.ZodString
|
|
269
|
-
decisions: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
91
|
+
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
92
|
+
decisions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
93
|
id: z.ZodString;
|
|
271
94
|
type: z.ZodLiteral<"image-assign">;
|
|
272
95
|
tag_query: z.ZodOptional<z.ZodString>;
|
|
273
96
|
selection_prompt: z.ZodOptional<z.ZodString>;
|
|
274
97
|
from_fact: z.ZodOptional<z.ZodString>;
|
|
275
|
-
produces: z.ZodArray<z.ZodString
|
|
276
|
-
},
|
|
277
|
-
type: "image-assign";
|
|
278
|
-
id: string;
|
|
279
|
-
produces: string[];
|
|
280
|
-
tag_query?: string | undefined;
|
|
281
|
-
selection_prompt?: string | undefined;
|
|
282
|
-
from_fact?: string | undefined;
|
|
283
|
-
}, {
|
|
284
|
-
type: "image-assign";
|
|
285
|
-
id: string;
|
|
286
|
-
produces: string[];
|
|
287
|
-
tag_query?: string | undefined;
|
|
288
|
-
selection_prompt?: string | undefined;
|
|
289
|
-
from_fact?: string | undefined;
|
|
290
|
-
}>, z.ZodObject<{
|
|
98
|
+
produces: z.ZodArray<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
291
100
|
id: z.ZodString;
|
|
292
101
|
type: z.ZodLiteral<"image-collection">;
|
|
293
102
|
tag_query: z.ZodOptional<z.ZodString>;
|
|
294
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
103
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
spread: "spread";
|
|
105
|
+
walkthrough: "walkthrough";
|
|
106
|
+
}>>;
|
|
295
107
|
count: z.ZodOptional<z.ZodObject<{
|
|
296
108
|
min: z.ZodNumber;
|
|
297
109
|
max: z.ZodNumber;
|
|
298
|
-
},
|
|
299
|
-
min: number;
|
|
300
|
-
max: number;
|
|
301
|
-
}, {
|
|
302
|
-
min: number;
|
|
303
|
-
max: number;
|
|
304
|
-
}>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
305
111
|
selection_prompt: z.ZodString;
|
|
306
|
-
produces: z.ZodArray<z.ZodString
|
|
307
|
-
},
|
|
308
|
-
type: "image-collection";
|
|
309
|
-
id: string;
|
|
310
|
-
selection_prompt: string;
|
|
311
|
-
produces: string[];
|
|
312
|
-
tag_query?: string | undefined;
|
|
313
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
314
|
-
count?: {
|
|
315
|
-
min: number;
|
|
316
|
-
max: number;
|
|
317
|
-
} | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
type: "image-collection";
|
|
320
|
-
id: string;
|
|
321
|
-
selection_prompt: string;
|
|
322
|
-
produces: string[];
|
|
323
|
-
tag_query?: string | undefined;
|
|
324
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
325
|
-
count?: {
|
|
326
|
-
min: number;
|
|
327
|
-
max: number;
|
|
328
|
-
} | undefined;
|
|
329
|
-
}>, z.ZodObject<{
|
|
112
|
+
produces: z.ZodArray<z.ZodString>;
|
|
113
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
114
|
id: z.ZodString;
|
|
331
115
|
type: z.ZodLiteral<"text-block">;
|
|
332
|
-
length_cap: z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
116
|
+
length_cap: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
333
117
|
bind: z.ZodString;
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
118
|
+
}, z.core.$strict>]>;
|
|
119
|
+
structure: z.ZodUnion<readonly [z.ZodEnum<{
|
|
120
|
+
single_sentence: "single_sentence";
|
|
121
|
+
paragraph: "paragraph";
|
|
122
|
+
bullet_list: "bullet_list";
|
|
123
|
+
}>, z.ZodObject<{
|
|
340
124
|
bind: z.ZodString;
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
125
|
+
}, z.core.$strict>]>;
|
|
126
|
+
perspective: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
first: "first";
|
|
128
|
+
second: "second";
|
|
129
|
+
third: "third";
|
|
130
|
+
}>>;
|
|
347
131
|
voice_prompt: z.ZodString;
|
|
348
132
|
content_prompt: z.ZodOptional<z.ZodString>;
|
|
349
|
-
produces: z.ZodArray<z.ZodString
|
|
350
|
-
},
|
|
351
|
-
type: "text-block";
|
|
352
|
-
id: string;
|
|
353
|
-
produces: string[];
|
|
354
|
-
length_cap: number | {
|
|
355
|
-
bind: string;
|
|
356
|
-
};
|
|
357
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
358
|
-
bind: string;
|
|
359
|
-
};
|
|
360
|
-
voice_prompt: string;
|
|
361
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
362
|
-
content_prompt?: string | undefined;
|
|
363
|
-
}, {
|
|
364
|
-
type: "text-block";
|
|
365
|
-
id: string;
|
|
366
|
-
produces: string[];
|
|
367
|
-
length_cap: number | {
|
|
368
|
-
bind: string;
|
|
369
|
-
};
|
|
370
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
371
|
-
bind: string;
|
|
372
|
-
};
|
|
373
|
-
voice_prompt: string;
|
|
374
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
375
|
-
content_prompt?: string | undefined;
|
|
376
|
-
}>, z.ZodObject<{
|
|
133
|
+
produces: z.ZodArray<z.ZodString>;
|
|
134
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
377
135
|
id: z.ZodString;
|
|
378
136
|
type: z.ZodLiteral<"text-seed">;
|
|
379
137
|
source: z.ZodString;
|
|
380
|
-
produces: z.ZodArray<z.ZodString
|
|
381
|
-
},
|
|
382
|
-
type: "text-seed";
|
|
383
|
-
id: string;
|
|
384
|
-
source: string;
|
|
385
|
-
produces: string[];
|
|
386
|
-
}, {
|
|
387
|
-
type: "text-seed";
|
|
388
|
-
id: string;
|
|
389
|
-
source: string;
|
|
390
|
-
produces: string[];
|
|
391
|
-
}>, z.ZodObject<{
|
|
138
|
+
produces: z.ZodArray<z.ZodString>;
|
|
139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
392
140
|
id: z.ZodString;
|
|
393
141
|
type: z.ZodLiteral<"list-extract">;
|
|
394
142
|
iterate: z.ZodOptional<z.ZodString>;
|
|
395
|
-
item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
143
|
+
item_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
396
144
|
bind: z.ZodString;
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
}, {
|
|
400
|
-
bind: string;
|
|
401
|
-
}>]>>;
|
|
402
|
-
per_item_length_cap: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
145
|
+
}, z.core.$strict>]>>;
|
|
146
|
+
per_item_length_cap: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
403
147
|
bind: z.ZodString;
|
|
404
|
-
},
|
|
405
|
-
bind: string;
|
|
406
|
-
}, {
|
|
407
|
-
bind: string;
|
|
408
|
-
}>]>>;
|
|
148
|
+
}, z.core.$strict>]>>;
|
|
409
149
|
structure_hint: z.ZodString;
|
|
410
150
|
voice_prompt: z.ZodString;
|
|
411
151
|
content_prompt: z.ZodOptional<z.ZodString>;
|
|
412
|
-
produces: z.ZodArray<z.ZodString
|
|
413
|
-
},
|
|
414
|
-
type: "list-extract";
|
|
415
|
-
id: string;
|
|
416
|
-
produces: string[];
|
|
417
|
-
voice_prompt: string;
|
|
418
|
-
structure_hint: string;
|
|
419
|
-
content_prompt?: string | undefined;
|
|
420
|
-
iterate?: string | undefined;
|
|
421
|
-
item_count?: number | {
|
|
422
|
-
bind: string;
|
|
423
|
-
} | undefined;
|
|
424
|
-
per_item_length_cap?: number | {
|
|
425
|
-
bind: string;
|
|
426
|
-
} | undefined;
|
|
427
|
-
}, {
|
|
428
|
-
type: "list-extract";
|
|
429
|
-
id: string;
|
|
430
|
-
produces: string[];
|
|
431
|
-
voice_prompt: string;
|
|
432
|
-
structure_hint: string;
|
|
433
|
-
content_prompt?: string | undefined;
|
|
434
|
-
iterate?: string | undefined;
|
|
435
|
-
item_count?: number | {
|
|
436
|
-
bind: string;
|
|
437
|
-
} | undefined;
|
|
438
|
-
per_item_length_cap?: number | {
|
|
439
|
-
bind: string;
|
|
440
|
-
} | undefined;
|
|
441
|
-
}>, z.ZodObject<{
|
|
152
|
+
produces: z.ZodArray<z.ZodString>;
|
|
153
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
442
154
|
id: z.ZodString;
|
|
443
155
|
type: z.ZodLiteral<"structured-list">;
|
|
444
156
|
iterate: z.ZodOptional<z.ZodString>;
|
|
445
|
-
item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
157
|
+
item_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
446
158
|
bind: z.ZodString;
|
|
447
|
-
},
|
|
448
|
-
bind: string;
|
|
449
|
-
}, {
|
|
450
|
-
bind: string;
|
|
451
|
-
}>]>>;
|
|
159
|
+
}, z.core.$strict>]>>;
|
|
452
160
|
item_fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
453
161
|
structure_hint: z.ZodString;
|
|
454
162
|
voice_prompt: z.ZodString;
|
|
@@ -457,236 +165,18 @@ declare const FillSpec: z.ZodObject<{
|
|
|
457
165
|
route_by: z.ZodOptional<z.ZodString>;
|
|
458
166
|
per_field_cap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
459
167
|
per_field_min: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
460
|
-
produces: z.ZodArray<z.ZodString
|
|
168
|
+
produces: z.ZodArray<z.ZodString>;
|
|
461
169
|
catalog: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
170
|
key: z.ZodString;
|
|
463
171
|
label: z.ZodString;
|
|
464
172
|
icon: z.ZodString;
|
|
465
|
-
aliases: z.ZodDefault<z.ZodArray<z.ZodString
|
|
173
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
466
174
|
slot: z.ZodOptional<z.ZodString>;
|
|
467
|
-
},
|
|
468
|
-
label: string;
|
|
469
|
-
key: string;
|
|
470
|
-
icon: string;
|
|
471
|
-
aliases: string[];
|
|
472
|
-
slot?: string | undefined;
|
|
473
|
-
}, {
|
|
474
|
-
label: string;
|
|
475
|
-
key: string;
|
|
476
|
-
icon: string;
|
|
477
|
-
aliases?: string[] | undefined;
|
|
478
|
-
slot?: string | undefined;
|
|
479
|
-
}>, "many">>;
|
|
175
|
+
}, z.core.$strict>>>;
|
|
480
176
|
per_category_max: z.ZodOptional<z.ZodNumber>;
|
|
481
177
|
min: z.ZodOptional<z.ZodNumber>;
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
id: string;
|
|
485
|
-
produces: string[];
|
|
486
|
-
voice_prompt: string;
|
|
487
|
-
structure_hint: string;
|
|
488
|
-
item_fields: Record<string, string>;
|
|
489
|
-
min?: number | undefined;
|
|
490
|
-
content_prompt?: string | undefined;
|
|
491
|
-
iterate?: string | undefined;
|
|
492
|
-
item_count?: number | {
|
|
493
|
-
bind: string;
|
|
494
|
-
} | undefined;
|
|
495
|
-
system_prompt?: string | undefined;
|
|
496
|
-
route_by?: string | undefined;
|
|
497
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
498
|
-
per_field_min?: Record<string, number> | undefined;
|
|
499
|
-
catalog?: {
|
|
500
|
-
label: string;
|
|
501
|
-
key: string;
|
|
502
|
-
icon: string;
|
|
503
|
-
aliases: string[];
|
|
504
|
-
slot?: string | undefined;
|
|
505
|
-
}[] | undefined;
|
|
506
|
-
per_category_max?: number | undefined;
|
|
507
|
-
}, {
|
|
508
|
-
type: "structured-list";
|
|
509
|
-
id: string;
|
|
510
|
-
produces: string[];
|
|
511
|
-
voice_prompt: string;
|
|
512
|
-
structure_hint: string;
|
|
513
|
-
item_fields: Record<string, string>;
|
|
514
|
-
min?: number | undefined;
|
|
515
|
-
content_prompt?: string | undefined;
|
|
516
|
-
iterate?: string | undefined;
|
|
517
|
-
item_count?: number | {
|
|
518
|
-
bind: string;
|
|
519
|
-
} | undefined;
|
|
520
|
-
system_prompt?: string | undefined;
|
|
521
|
-
route_by?: string | undefined;
|
|
522
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
523
|
-
per_field_min?: Record<string, number> | undefined;
|
|
524
|
-
catalog?: {
|
|
525
|
-
label: string;
|
|
526
|
-
key: string;
|
|
527
|
-
icon: string;
|
|
528
|
-
aliases?: string[] | undefined;
|
|
529
|
-
slot?: string | undefined;
|
|
530
|
-
}[] | undefined;
|
|
531
|
-
per_category_max?: number | undefined;
|
|
532
|
-
}>]>, "many">;
|
|
533
|
-
}, "strict", z.ZodTypeAny, {
|
|
534
|
-
reads: string[];
|
|
535
|
-
decisions: ({
|
|
536
|
-
type: "image-assign";
|
|
537
|
-
id: string;
|
|
538
|
-
produces: string[];
|
|
539
|
-
tag_query?: string | undefined;
|
|
540
|
-
selection_prompt?: string | undefined;
|
|
541
|
-
from_fact?: string | undefined;
|
|
542
|
-
} | {
|
|
543
|
-
type: "image-collection";
|
|
544
|
-
id: string;
|
|
545
|
-
selection_prompt: string;
|
|
546
|
-
produces: string[];
|
|
547
|
-
tag_query?: string | undefined;
|
|
548
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
549
|
-
count?: {
|
|
550
|
-
min: number;
|
|
551
|
-
max: number;
|
|
552
|
-
} | undefined;
|
|
553
|
-
} | {
|
|
554
|
-
type: "text-block";
|
|
555
|
-
id: string;
|
|
556
|
-
produces: string[];
|
|
557
|
-
length_cap: number | {
|
|
558
|
-
bind: string;
|
|
559
|
-
};
|
|
560
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
561
|
-
bind: string;
|
|
562
|
-
};
|
|
563
|
-
voice_prompt: string;
|
|
564
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
565
|
-
content_prompt?: string | undefined;
|
|
566
|
-
} | {
|
|
567
|
-
type: "text-seed";
|
|
568
|
-
id: string;
|
|
569
|
-
source: string;
|
|
570
|
-
produces: string[];
|
|
571
|
-
} | {
|
|
572
|
-
type: "list-extract";
|
|
573
|
-
id: string;
|
|
574
|
-
produces: string[];
|
|
575
|
-
voice_prompt: string;
|
|
576
|
-
structure_hint: string;
|
|
577
|
-
content_prompt?: string | undefined;
|
|
578
|
-
iterate?: string | undefined;
|
|
579
|
-
item_count?: number | {
|
|
580
|
-
bind: string;
|
|
581
|
-
} | undefined;
|
|
582
|
-
per_item_length_cap?: number | {
|
|
583
|
-
bind: string;
|
|
584
|
-
} | undefined;
|
|
585
|
-
} | {
|
|
586
|
-
type: "structured-list";
|
|
587
|
-
id: string;
|
|
588
|
-
produces: string[];
|
|
589
|
-
voice_prompt: string;
|
|
590
|
-
structure_hint: string;
|
|
591
|
-
item_fields: Record<string, string>;
|
|
592
|
-
min?: number | undefined;
|
|
593
|
-
content_prompt?: string | undefined;
|
|
594
|
-
iterate?: string | undefined;
|
|
595
|
-
item_count?: number | {
|
|
596
|
-
bind: string;
|
|
597
|
-
} | undefined;
|
|
598
|
-
system_prompt?: string | undefined;
|
|
599
|
-
route_by?: string | undefined;
|
|
600
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
601
|
-
per_field_min?: Record<string, number> | undefined;
|
|
602
|
-
catalog?: {
|
|
603
|
-
label: string;
|
|
604
|
-
key: string;
|
|
605
|
-
icon: string;
|
|
606
|
-
aliases: string[];
|
|
607
|
-
slot?: string | undefined;
|
|
608
|
-
}[] | undefined;
|
|
609
|
-
per_category_max?: number | undefined;
|
|
610
|
-
})[];
|
|
611
|
-
}, {
|
|
612
|
-
decisions: ({
|
|
613
|
-
type: "image-assign";
|
|
614
|
-
id: string;
|
|
615
|
-
produces: string[];
|
|
616
|
-
tag_query?: string | undefined;
|
|
617
|
-
selection_prompt?: string | undefined;
|
|
618
|
-
from_fact?: string | undefined;
|
|
619
|
-
} | {
|
|
620
|
-
type: "image-collection";
|
|
621
|
-
id: string;
|
|
622
|
-
selection_prompt: string;
|
|
623
|
-
produces: string[];
|
|
624
|
-
tag_query?: string | undefined;
|
|
625
|
-
mode?: "spread" | "walkthrough" | undefined;
|
|
626
|
-
count?: {
|
|
627
|
-
min: number;
|
|
628
|
-
max: number;
|
|
629
|
-
} | undefined;
|
|
630
|
-
} | {
|
|
631
|
-
type: "text-block";
|
|
632
|
-
id: string;
|
|
633
|
-
produces: string[];
|
|
634
|
-
length_cap: number | {
|
|
635
|
-
bind: string;
|
|
636
|
-
};
|
|
637
|
-
structure: "single_sentence" | "paragraph" | "bullet_list" | {
|
|
638
|
-
bind: string;
|
|
639
|
-
};
|
|
640
|
-
voice_prompt: string;
|
|
641
|
-
perspective?: "first" | "second" | "third" | undefined;
|
|
642
|
-
content_prompt?: string | undefined;
|
|
643
|
-
} | {
|
|
644
|
-
type: "text-seed";
|
|
645
|
-
id: string;
|
|
646
|
-
source: string;
|
|
647
|
-
produces: string[];
|
|
648
|
-
} | {
|
|
649
|
-
type: "list-extract";
|
|
650
|
-
id: string;
|
|
651
|
-
produces: string[];
|
|
652
|
-
voice_prompt: string;
|
|
653
|
-
structure_hint: string;
|
|
654
|
-
content_prompt?: string | undefined;
|
|
655
|
-
iterate?: string | undefined;
|
|
656
|
-
item_count?: number | {
|
|
657
|
-
bind: string;
|
|
658
|
-
} | undefined;
|
|
659
|
-
per_item_length_cap?: number | {
|
|
660
|
-
bind: string;
|
|
661
|
-
} | undefined;
|
|
662
|
-
} | {
|
|
663
|
-
type: "structured-list";
|
|
664
|
-
id: string;
|
|
665
|
-
produces: string[];
|
|
666
|
-
voice_prompt: string;
|
|
667
|
-
structure_hint: string;
|
|
668
|
-
item_fields: Record<string, string>;
|
|
669
|
-
min?: number | undefined;
|
|
670
|
-
content_prompt?: string | undefined;
|
|
671
|
-
iterate?: string | undefined;
|
|
672
|
-
item_count?: number | {
|
|
673
|
-
bind: string;
|
|
674
|
-
} | undefined;
|
|
675
|
-
system_prompt?: string | undefined;
|
|
676
|
-
route_by?: string | undefined;
|
|
677
|
-
per_field_cap?: Record<string, number> | undefined;
|
|
678
|
-
per_field_min?: Record<string, number> | undefined;
|
|
679
|
-
catalog?: {
|
|
680
|
-
label: string;
|
|
681
|
-
key: string;
|
|
682
|
-
icon: string;
|
|
683
|
-
aliases?: string[] | undefined;
|
|
684
|
-
slot?: string | undefined;
|
|
685
|
-
}[] | undefined;
|
|
686
|
-
per_category_max?: number | undefined;
|
|
687
|
-
})[];
|
|
688
|
-
reads?: string[] | undefined;
|
|
689
|
-
}>;
|
|
178
|
+
}, z.core.$strict>], "type">>;
|
|
179
|
+
}, z.core.$strict>;
|
|
690
180
|
type FillSpecShape = z.infer<typeof FillSpec>;
|
|
691
181
|
//#endregion
|
|
692
182
|
export { Decision, FillSpec, FillSpecShape };
|