pupt-lib 1.3.0 → 1.3.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.
- package/dist/components/ask/Choice.d.ts +155 -0
- package/dist/components/ask/Choice.d.ts.map +1 -0
- package/dist/components/ask/Confirm.d.ts +61 -0
- package/dist/components/ask/Confirm.d.ts.map +1 -0
- package/dist/components/ask/Date.d.ts +78 -0
- package/dist/components/ask/Date.d.ts.map +1 -0
- package/dist/components/ask/Editor.d.ts +66 -0
- package/dist/components/ask/Editor.d.ts.map +1 -0
- package/dist/components/ask/File.d.ts +84 -0
- package/dist/components/ask/File.d.ts.map +1 -0
- package/dist/components/ask/Label.d.ts +27 -0
- package/dist/components/ask/Label.d.ts.map +1 -0
- package/dist/components/ask/MultiSelect.d.ts +147 -0
- package/dist/components/ask/MultiSelect.d.ts.map +1 -0
- package/dist/components/ask/Number.d.ts +72 -0
- package/dist/components/ask/Number.d.ts.map +1 -0
- package/dist/components/ask/Option.d.ts +28 -0
- package/dist/components/ask/Option.d.ts.map +1 -0
- package/dist/components/ask/Path.d.ts +72 -0
- package/dist/components/ask/Path.d.ts.map +1 -0
- package/dist/components/ask/Rating.d.ts +78 -0
- package/dist/components/ask/Rating.d.ts.map +1 -0
- package/dist/components/ask/ReviewFile.d.ts +78 -0
- package/dist/components/ask/ReviewFile.d.ts.map +1 -0
- package/dist/components/ask/Secret.d.ts +66 -0
- package/dist/components/ask/Secret.d.ts.map +1 -0
- package/dist/components/ask/Select.d.ts +135 -0
- package/dist/components/ask/Select.d.ts.map +1 -0
- package/dist/components/ask/Text.d.ts +66 -0
- package/dist/components/ask/Text.d.ts.map +1 -0
- package/dist/components/ask/index.d.ts +34 -0
- package/dist/components/ask/index.d.ts.map +1 -0
- package/dist/components/ask/utils.d.ts +26 -0
- package/dist/components/ask/utils.d.ts.map +1 -0
- package/dist/components/control/ForEach.d.ts +31 -0
- package/dist/components/control/ForEach.d.ts.map +1 -0
- package/dist/components/control/If.d.ts +35 -0
- package/dist/components/control/If.d.ts.map +1 -0
- package/dist/components/control/index.d.ts +3 -0
- package/dist/components/control/index.d.ts.map +1 -0
- package/dist/components/data/Code.d.ts +30 -0
- package/dist/components/data/Code.d.ts.map +1 -0
- package/dist/components/data/Data.d.ts +30 -0
- package/dist/components/data/Data.d.ts.map +1 -0
- package/dist/components/data/File.d.ts +37 -0
- package/dist/components/data/File.d.ts.map +1 -0
- package/dist/components/data/Json.d.ts +24 -0
- package/dist/components/data/Json.d.ts.map +1 -0
- package/dist/components/data/Xml.d.ts +24 -0
- package/dist/components/data/Xml.d.ts.map +1 -0
- package/dist/components/data/index.d.ts +6 -0
- package/dist/components/data/index.d.ts.map +1 -0
- package/dist/components/examples/Example.d.ts +16 -0
- package/dist/components/examples/Example.d.ts.map +1 -0
- package/dist/components/examples/ExampleInput.d.ts +12 -0
- package/dist/components/examples/ExampleInput.d.ts.map +1 -0
- package/dist/components/examples/ExampleOutput.d.ts +12 -0
- package/dist/components/examples/ExampleOutput.d.ts.map +1 -0
- package/dist/components/examples/Examples.d.ts +12 -0
- package/dist/components/examples/Examples.d.ts.map +1 -0
- package/dist/components/examples/NegativeExample.d.ts +24 -0
- package/dist/components/examples/NegativeExample.d.ts.map +1 -0
- package/dist/components/examples/index.d.ts +6 -0
- package/dist/components/examples/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/manifest.d.ts +15 -0
- package/dist/components/manifest.d.ts.map +1 -0
- package/dist/components/meta/Uses.d.ts +97 -0
- package/dist/components/meta/Uses.d.ts.map +1 -0
- package/dist/components/meta/index.d.ts +2 -0
- package/dist/components/meta/index.d.ts.map +1 -0
- package/dist/components/post-execution/OpenUrl.d.ts +28 -0
- package/dist/components/post-execution/OpenUrl.d.ts.map +1 -0
- package/dist/components/post-execution/PostExecution.d.ts +12 -0
- package/dist/components/post-execution/PostExecution.d.ts.map +1 -0
- package/dist/components/post-execution/ReviewFile.d.ts +29 -0
- package/dist/components/post-execution/ReviewFile.d.ts.map +1 -0
- package/dist/components/post-execution/RunCommand.d.ts +34 -0
- package/dist/components/post-execution/RunCommand.d.ts.map +1 -0
- package/dist/components/post-execution/index.d.ts +5 -0
- package/dist/components/post-execution/index.d.ts.map +1 -0
- package/dist/components/presets/constraint-presets.d.ts +13 -0
- package/dist/components/presets/constraint-presets.d.ts.map +1 -0
- package/dist/components/presets/default-constraints.d.ts +6 -0
- package/dist/components/presets/default-constraints.d.ts.map +1 -0
- package/dist/components/presets/guardrail-presets.d.ts +22 -0
- package/dist/components/presets/guardrail-presets.d.ts.map +1 -0
- package/dist/components/presets/index.d.ts +13 -0
- package/dist/components/presets/index.d.ts.map +1 -0
- package/dist/components/presets/provider-adaptations.d.ts +30 -0
- package/dist/components/presets/provider-adaptations.d.ts.map +1 -0
- package/dist/components/presets/role-presets.d.ts +19 -0
- package/dist/components/presets/role-presets.d.ts.map +1 -0
- package/dist/components/presets/steps-presets.d.ts +12 -0
- package/dist/components/presets/steps-presets.d.ts.map +1 -0
- package/dist/components/presets/task-presets.d.ts +14 -0
- package/dist/components/presets/task-presets.d.ts.map +1 -0
- package/dist/components/reasoning/ChainOfThought.d.ts +36 -0
- package/dist/components/reasoning/ChainOfThought.d.ts.map +1 -0
- package/dist/components/reasoning/Step.d.ts +24 -0
- package/dist/components/reasoning/Step.d.ts.map +1 -0
- package/dist/components/reasoning/Steps.d.ts +69 -0
- package/dist/components/reasoning/Steps.d.ts.map +1 -0
- package/dist/components/reasoning/index.d.ts +4 -0
- package/dist/components/reasoning/index.d.ts.map +1 -0
- package/dist/components/structural/Audience.d.ts +55 -0
- package/dist/components/structural/Audience.d.ts.map +1 -0
- package/dist/components/structural/Constraint.d.ts +49 -0
- package/dist/components/structural/Constraint.d.ts.map +1 -0
- package/dist/components/structural/Constraints.d.ts +50 -0
- package/dist/components/structural/Constraints.d.ts.map +1 -0
- package/dist/components/structural/Context.d.ts +72 -0
- package/dist/components/structural/Context.d.ts.map +1 -0
- package/dist/components/structural/Contexts.d.ts +36 -0
- package/dist/components/structural/Contexts.d.ts.map +1 -0
- package/dist/components/structural/Criterion.d.ts +36 -0
- package/dist/components/structural/Criterion.d.ts.map +1 -0
- package/dist/components/structural/EdgeCases.d.ts +46 -0
- package/dist/components/structural/EdgeCases.d.ts.map +1 -0
- package/dist/components/structural/Fallback.d.ts +43 -0
- package/dist/components/structural/Fallback.d.ts.map +1 -0
- package/dist/components/structural/Fallbacks.d.ts +46 -0
- package/dist/components/structural/Fallbacks.d.ts.map +1 -0
- package/dist/components/structural/Format.d.ts +79 -0
- package/dist/components/structural/Format.d.ts.map +1 -0
- package/dist/components/structural/Guardrails.d.ts +63 -0
- package/dist/components/structural/Guardrails.d.ts.map +1 -0
- package/dist/components/structural/Objective.d.ts +42 -0
- package/dist/components/structural/Objective.d.ts.map +1 -0
- package/dist/components/structural/Prompt.d.ts +243 -0
- package/dist/components/structural/Prompt.d.ts.map +1 -0
- package/dist/components/structural/Reference.d.ts +50 -0
- package/dist/components/structural/Reference.d.ts.map +1 -0
- package/dist/components/structural/References.d.ts +123 -0
- package/dist/components/structural/References.d.ts.map +1 -0
- package/dist/components/structural/Role.d.ts +74 -0
- package/dist/components/structural/Role.d.ts.map +1 -0
- package/dist/components/structural/Section.d.ts +30 -0
- package/dist/components/structural/Section.d.ts.map +1 -0
- package/dist/components/structural/Specialization.d.ts +36 -0
- package/dist/components/structural/Specialization.d.ts.map +1 -0
- package/dist/components/structural/Style.d.ts +43 -0
- package/dist/components/structural/Style.d.ts.map +1 -0
- package/dist/components/structural/SuccessCriteria.d.ts +96 -0
- package/dist/components/structural/SuccessCriteria.d.ts.map +1 -0
- package/dist/components/structural/Task.d.ts +60 -0
- package/dist/components/structural/Task.d.ts.map +1 -0
- package/dist/components/structural/Tone.d.ts +61 -0
- package/dist/components/structural/Tone.d.ts.map +1 -0
- package/dist/components/structural/When.d.ts +44 -0
- package/dist/components/structural/When.d.ts.map +1 -0
- package/dist/components/structural/WhenUncertain.d.ts +30 -0
- package/dist/components/structural/WhenUncertain.d.ts.map +1 -0
- package/dist/components/structural/index.d.ts +25 -0
- package/dist/components/structural/index.d.ts.map +1 -0
- package/dist/components/utility/Cwd.d.ts +10 -0
- package/dist/components/utility/Cwd.d.ts.map +1 -0
- package/dist/components/utility/DateTime.d.ts +22 -0
- package/dist/components/utility/DateTime.d.ts.map +1 -0
- package/dist/components/utility/Hostname.d.ts +10 -0
- package/dist/components/utility/Hostname.d.ts.map +1 -0
- package/dist/components/utility/Timestamp.d.ts +10 -0
- package/dist/components/utility/Timestamp.d.ts.map +1 -0
- package/dist/components/utility/UUID.d.ts +10 -0
- package/dist/components/utility/UUID.d.ts.map +1 -0
- package/dist/components/utility/Username.d.ts +10 -0
- package/dist/components/utility/Username.d.ts.map +1 -0
- package/dist/components/utility/index.d.ts +7 -0
- package/dist/components/utility/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/src/api.d.ts +38 -0
- package/dist/src/api.d.ts.map +1 -0
- package/dist/src/component.d.ts +112 -0
- package/dist/src/component.d.ts.map +1 -0
- package/dist/src/create-prompt.d.ts +118 -0
- package/dist/src/create-prompt.d.ts.map +1 -0
- package/dist/src/index.d.ts +39 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/jsx-runtime/index.d.ts +29 -0
- package/dist/src/jsx-runtime/index.d.ts.map +1 -0
- package/dist/src/jsx-runtime/jsx-dev-runtime.d.ts +26 -0
- package/dist/src/jsx-runtime/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/src/render.d.ts +19 -0
- package/dist/src/render.d.ts.map +1 -0
- package/dist/src/services/babel-plugins/index.d.ts +3 -0
- package/dist/src/services/babel-plugins/index.d.ts.map +1 -0
- package/dist/src/services/babel-plugins/name-hoisting.d.ts +8 -0
- package/dist/src/services/babel-plugins/name-hoisting.d.ts.map +1 -0
- package/dist/src/services/babel-plugins/uses-to-import.d.ts +16 -0
- package/dist/src/services/babel-plugins/uses-to-import.d.ts.map +1 -0
- package/dist/src/services/browser-support.d.ts +185 -0
- package/dist/src/services/browser-support.d.ts.map +1 -0
- package/dist/src/services/component-discovery.d.ts +42 -0
- package/dist/src/services/component-discovery.d.ts.map +1 -0
- package/dist/src/services/file-search-engine.d.ts +162 -0
- package/dist/src/services/file-search-engine.d.ts.map +1 -0
- package/dist/src/services/formula-parser.d.ts +9 -0
- package/dist/src/services/formula-parser.d.ts.map +1 -0
- package/dist/src/services/input-iterator.d.ts +54 -0
- package/dist/src/services/input-iterator.d.ts.map +1 -0
- package/dist/src/services/module-evaluator.d.ts +38 -0
- package/dist/src/services/module-evaluator.d.ts.map +1 -0
- package/dist/src/services/module-loader.d.ts +92 -0
- package/dist/src/services/module-loader.d.ts.map +1 -0
- package/dist/src/services/preprocessor.d.ts +39 -0
- package/dist/src/services/preprocessor.d.ts.map +1 -0
- package/dist/src/services/prop-validator.d.ts +21 -0
- package/dist/src/services/prop-validator.d.ts.map +1 -0
- package/dist/src/services/search-engine.d.ts +10 -0
- package/dist/src/services/search-engine.d.ts.map +1 -0
- package/dist/src/services/transformer.d.ts +19 -0
- package/dist/src/services/transformer.d.ts.map +1 -0
- package/dist/{index.d.ts → src/types/context.d.ts} +425 -458
- package/dist/src/types/context.d.ts.map +1 -0
- package/dist/src/types/element.d.ts +47 -0
- package/dist/src/types/element.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +10 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/input.d.ts +51 -0
- package/dist/src/types/input.d.ts.map +1 -0
- package/dist/src/types/module.d.ts +61 -0
- package/dist/src/types/module.d.ts.map +1 -0
- package/dist/src/types/render.d.ts +82 -0
- package/dist/src/types/render.d.ts.map +1 -0
- package/dist/src/types/search.d.ts +59 -0
- package/dist/src/types/search.d.ts.map +1 -0
- package/dist/src/types/symbols.d.ts +9 -0
- package/dist/src/types/symbols.d.ts.map +1 -0
- package/dist/src/utils/children.d.ts +29 -0
- package/dist/src/utils/children.d.ts.map +1 -0
- package/dist/src/utils/delimiter.d.ts +13 -0
- package/dist/src/utils/delimiter.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/jsx-dev-runtime.d.ts +0 -483
- package/dist/jsx-runtime/index.d.ts +0 -2
- package/dist/jsx-runtime/jsx-dev-runtime.d.ts +0 -2
|
@@ -1,458 +1,425 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}, z.ZodTypeAny,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
*
|
|
383
|
-
*/
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
*
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
*
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
/** Error code (Zod issue code or 'runtime_error' / 'missing_schema') */
|
|
427
|
-
code: string;
|
|
428
|
-
/** Path within the props object */
|
|
429
|
-
path: (string | number)[];
|
|
430
|
-
/** The value that was received */
|
|
431
|
-
received?: unknown;
|
|
432
|
-
/** The expected type or constraint */
|
|
433
|
-
expected?: string;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Action to open a file for review in an editor
|
|
438
|
-
*/
|
|
439
|
-
declare interface ReviewFileAction {
|
|
440
|
-
type: 'reviewFile';
|
|
441
|
-
file: string;
|
|
442
|
-
editor?: string;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Action to execute a shell command
|
|
447
|
-
*/
|
|
448
|
-
declare interface RunCommandAction {
|
|
449
|
-
type: 'runCommand';
|
|
450
|
-
command: string;
|
|
451
|
-
cwd?: string;
|
|
452
|
-
env?: Record<string, string>;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/** Symbol for element type */
|
|
456
|
-
declare const TYPE: unique symbol;
|
|
457
|
-
|
|
458
|
-
export { }
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PostExecutionAction, RenderError } from './render';
|
|
3
|
+
/**
|
|
4
|
+
* Ensure the Node.js runtime cache is initialized.
|
|
5
|
+
* In browser environments, this resolves immediately.
|
|
6
|
+
* In Node.js, this waits for the async initialization to complete.
|
|
7
|
+
*
|
|
8
|
+
* This is primarily useful for testing to ensure runtime values are available.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ensureRuntimeCacheReady(): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Known LLM providers (model creators, not hosting platforms).
|
|
13
|
+
* Hosting platforms like AWS Bedrock and Azure are not included here
|
|
14
|
+
* because the provider represents who created the model, which determines
|
|
15
|
+
* the prompt optimization strategy.
|
|
16
|
+
*/
|
|
17
|
+
export declare const LLM_PROVIDERS: readonly ["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"];
|
|
18
|
+
export type LlmProvider = typeof LLM_PROVIDERS[number];
|
|
19
|
+
/**
|
|
20
|
+
* Infer the LLM provider from a model name/ID.
|
|
21
|
+
* Returns the provider if the model matches a known pattern, or null if unknown.
|
|
22
|
+
*/
|
|
23
|
+
export declare function inferProviderFromModel(model: string): LlmProvider | null;
|
|
24
|
+
/**
|
|
25
|
+
* Schema for LLM configuration.
|
|
26
|
+
* When a model is specified but provider is not, the provider is automatically
|
|
27
|
+
* inferred from the model name.
|
|
28
|
+
*/
|
|
29
|
+
export declare const llmConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
30
|
+
model: z.ZodDefault<z.ZodString>;
|
|
31
|
+
provider: z.ZodDefault<z.ZodEnum<["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"]>>;
|
|
32
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
model: string;
|
|
36
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
37
|
+
maxTokens?: number | undefined;
|
|
38
|
+
temperature?: number | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
model?: string | undefined;
|
|
41
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
42
|
+
maxTokens?: number | undefined;
|
|
43
|
+
temperature?: number | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
model: string;
|
|
46
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
47
|
+
maxTokens?: number | undefined;
|
|
48
|
+
temperature?: number | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
model?: string | undefined;
|
|
51
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
52
|
+
maxTokens?: number | undefined;
|
|
53
|
+
temperature?: number | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Schema for output configuration
|
|
57
|
+
*/
|
|
58
|
+
export declare const outputConfigSchema: z.ZodObject<{
|
|
59
|
+
format: z.ZodDefault<z.ZodEnum<["xml", "markdown", "json", "text", "unspecified"]>>;
|
|
60
|
+
trim: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
indent: z.ZodDefault<z.ZodString>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
format: "unspecified" | "xml" | "markdown" | "json" | "text";
|
|
64
|
+
trim: boolean;
|
|
65
|
+
indent: string;
|
|
66
|
+
}, {
|
|
67
|
+
format?: "unspecified" | "xml" | "markdown" | "json" | "text" | undefined;
|
|
68
|
+
trim?: boolean | undefined;
|
|
69
|
+
indent?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
/**
|
|
72
|
+
* Schema for code configuration
|
|
73
|
+
*/
|
|
74
|
+
export declare const codeConfigSchema: z.ZodObject<{
|
|
75
|
+
language: z.ZodDefault<z.ZodString>;
|
|
76
|
+
highlight: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
language: string;
|
|
79
|
+
highlight?: boolean | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
language?: string | undefined;
|
|
82
|
+
highlight?: boolean | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* Schema for user/caller context configuration
|
|
86
|
+
*/
|
|
87
|
+
export declare const userConfigSchema: z.ZodObject<{
|
|
88
|
+
editor: z.ZodDefault<z.ZodString>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
editor: string;
|
|
91
|
+
}, {
|
|
92
|
+
editor?: string | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* Schema for runtime configuration (auto-detected values)
|
|
96
|
+
*/
|
|
97
|
+
export declare const runtimeConfigSchema: z.ZodObject<{
|
|
98
|
+
hostname: z.ZodString;
|
|
99
|
+
username: z.ZodString;
|
|
100
|
+
cwd: z.ZodString;
|
|
101
|
+
platform: z.ZodString;
|
|
102
|
+
os: z.ZodString;
|
|
103
|
+
locale: z.ZodString;
|
|
104
|
+
timestamp: z.ZodNumber;
|
|
105
|
+
date: z.ZodString;
|
|
106
|
+
time: z.ZodString;
|
|
107
|
+
uuid: z.ZodString;
|
|
108
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
109
|
+
hostname: z.ZodString;
|
|
110
|
+
username: z.ZodString;
|
|
111
|
+
cwd: z.ZodString;
|
|
112
|
+
platform: z.ZodString;
|
|
113
|
+
os: z.ZodString;
|
|
114
|
+
locale: z.ZodString;
|
|
115
|
+
timestamp: z.ZodNumber;
|
|
116
|
+
date: z.ZodString;
|
|
117
|
+
time: z.ZodString;
|
|
118
|
+
uuid: z.ZodString;
|
|
119
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
120
|
+
hostname: z.ZodString;
|
|
121
|
+
username: z.ZodString;
|
|
122
|
+
cwd: z.ZodString;
|
|
123
|
+
platform: z.ZodString;
|
|
124
|
+
os: z.ZodString;
|
|
125
|
+
locale: z.ZodString;
|
|
126
|
+
timestamp: z.ZodNumber;
|
|
127
|
+
date: z.ZodString;
|
|
128
|
+
time: z.ZodString;
|
|
129
|
+
uuid: z.ZodString;
|
|
130
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
131
|
+
/**
|
|
132
|
+
* Schema for prompt configuration (controls Prompt component default sections)
|
|
133
|
+
*/
|
|
134
|
+
export declare const promptConfigSchema: z.ZodObject<{
|
|
135
|
+
includeRole: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
includeFormat: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
includeConstraints: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
includeSuccessCriteria: z.ZodDefault<z.ZodBoolean>;
|
|
139
|
+
includeGuardrails: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
141
|
+
defaultExpertise: z.ZodDefault<z.ZodString>;
|
|
142
|
+
delimiter: z.ZodDefault<z.ZodEnum<["xml", "markdown", "none"]>>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
includeRole: boolean;
|
|
145
|
+
includeFormat: boolean;
|
|
146
|
+
includeConstraints: boolean;
|
|
147
|
+
includeSuccessCriteria: boolean;
|
|
148
|
+
includeGuardrails: boolean;
|
|
149
|
+
defaultRole: string;
|
|
150
|
+
defaultExpertise: string;
|
|
151
|
+
delimiter: "xml" | "markdown" | "none";
|
|
152
|
+
}, {
|
|
153
|
+
includeRole?: boolean | undefined;
|
|
154
|
+
includeFormat?: boolean | undefined;
|
|
155
|
+
includeConstraints?: boolean | undefined;
|
|
156
|
+
includeSuccessCriteria?: boolean | undefined;
|
|
157
|
+
includeGuardrails?: boolean | undefined;
|
|
158
|
+
defaultRole?: string | undefined;
|
|
159
|
+
defaultExpertise?: string | undefined;
|
|
160
|
+
delimiter?: "xml" | "markdown" | "none" | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* Schema for the full environment context
|
|
164
|
+
*/
|
|
165
|
+
export declare const environmentContextSchema: z.ZodObject<{
|
|
166
|
+
llm: z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
167
|
+
model: z.ZodDefault<z.ZodString>;
|
|
168
|
+
provider: z.ZodDefault<z.ZodEnum<["anthropic", "openai", "google", "meta", "mistral", "deepseek", "xai", "cohere", "unspecified"]>>;
|
|
169
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
model: string;
|
|
173
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
174
|
+
maxTokens?: number | undefined;
|
|
175
|
+
temperature?: number | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
model?: string | undefined;
|
|
178
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
179
|
+
maxTokens?: number | undefined;
|
|
180
|
+
temperature?: number | undefined;
|
|
181
|
+
}>, {
|
|
182
|
+
model: string;
|
|
183
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
184
|
+
maxTokens?: number | undefined;
|
|
185
|
+
temperature?: number | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
model?: string | undefined;
|
|
188
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
189
|
+
maxTokens?: number | undefined;
|
|
190
|
+
temperature?: number | undefined;
|
|
191
|
+
}>>;
|
|
192
|
+
output: z.ZodDefault<z.ZodObject<{
|
|
193
|
+
format: z.ZodDefault<z.ZodEnum<["xml", "markdown", "json", "text", "unspecified"]>>;
|
|
194
|
+
trim: z.ZodDefault<z.ZodBoolean>;
|
|
195
|
+
indent: z.ZodDefault<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
format: "unspecified" | "xml" | "markdown" | "json" | "text";
|
|
198
|
+
trim: boolean;
|
|
199
|
+
indent: string;
|
|
200
|
+
}, {
|
|
201
|
+
format?: "unspecified" | "xml" | "markdown" | "json" | "text" | undefined;
|
|
202
|
+
trim?: boolean | undefined;
|
|
203
|
+
indent?: string | undefined;
|
|
204
|
+
}>>;
|
|
205
|
+
code: z.ZodDefault<z.ZodObject<{
|
|
206
|
+
language: z.ZodDefault<z.ZodString>;
|
|
207
|
+
highlight: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
language: string;
|
|
210
|
+
highlight?: boolean | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
language?: string | undefined;
|
|
213
|
+
highlight?: boolean | undefined;
|
|
214
|
+
}>>;
|
|
215
|
+
user: z.ZodDefault<z.ZodObject<{
|
|
216
|
+
editor: z.ZodDefault<z.ZodString>;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
editor: string;
|
|
219
|
+
}, {
|
|
220
|
+
editor?: string | undefined;
|
|
221
|
+
}>>;
|
|
222
|
+
runtime: z.ZodDefault<z.ZodObject<{
|
|
223
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
224
|
+
username: z.ZodOptional<z.ZodString>;
|
|
225
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
226
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
227
|
+
os: z.ZodOptional<z.ZodString>;
|
|
228
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
229
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
date: z.ZodOptional<z.ZodString>;
|
|
231
|
+
time: z.ZodOptional<z.ZodString>;
|
|
232
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
234
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
235
|
+
username: z.ZodOptional<z.ZodString>;
|
|
236
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
237
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
238
|
+
os: z.ZodOptional<z.ZodString>;
|
|
239
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
240
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
date: z.ZodOptional<z.ZodString>;
|
|
242
|
+
time: z.ZodOptional<z.ZodString>;
|
|
243
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
245
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
246
|
+
username: z.ZodOptional<z.ZodString>;
|
|
247
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
248
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
249
|
+
os: z.ZodOptional<z.ZodString>;
|
|
250
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
251
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
date: z.ZodOptional<z.ZodString>;
|
|
253
|
+
time: z.ZodOptional<z.ZodString>;
|
|
254
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
256
|
+
prompt: z.ZodDefault<z.ZodObject<{
|
|
257
|
+
includeRole: z.ZodDefault<z.ZodBoolean>;
|
|
258
|
+
includeFormat: z.ZodDefault<z.ZodBoolean>;
|
|
259
|
+
includeConstraints: z.ZodDefault<z.ZodBoolean>;
|
|
260
|
+
includeSuccessCriteria: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
includeGuardrails: z.ZodDefault<z.ZodBoolean>;
|
|
262
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
263
|
+
defaultExpertise: z.ZodDefault<z.ZodString>;
|
|
264
|
+
delimiter: z.ZodDefault<z.ZodEnum<["xml", "markdown", "none"]>>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
includeRole: boolean;
|
|
267
|
+
includeFormat: boolean;
|
|
268
|
+
includeConstraints: boolean;
|
|
269
|
+
includeSuccessCriteria: boolean;
|
|
270
|
+
includeGuardrails: boolean;
|
|
271
|
+
defaultRole: string;
|
|
272
|
+
defaultExpertise: string;
|
|
273
|
+
delimiter: "xml" | "markdown" | "none";
|
|
274
|
+
}, {
|
|
275
|
+
includeRole?: boolean | undefined;
|
|
276
|
+
includeFormat?: boolean | undefined;
|
|
277
|
+
includeConstraints?: boolean | undefined;
|
|
278
|
+
includeSuccessCriteria?: boolean | undefined;
|
|
279
|
+
includeGuardrails?: boolean | undefined;
|
|
280
|
+
defaultRole?: string | undefined;
|
|
281
|
+
defaultExpertise?: string | undefined;
|
|
282
|
+
delimiter?: "xml" | "markdown" | "none" | undefined;
|
|
283
|
+
}>>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
code: {
|
|
286
|
+
language: string;
|
|
287
|
+
highlight?: boolean | undefined;
|
|
288
|
+
};
|
|
289
|
+
llm: {
|
|
290
|
+
model: string;
|
|
291
|
+
provider: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere";
|
|
292
|
+
maxTokens?: number | undefined;
|
|
293
|
+
temperature?: number | undefined;
|
|
294
|
+
};
|
|
295
|
+
output: {
|
|
296
|
+
format: "unspecified" | "xml" | "markdown" | "json" | "text";
|
|
297
|
+
trim: boolean;
|
|
298
|
+
indent: string;
|
|
299
|
+
};
|
|
300
|
+
user: {
|
|
301
|
+
editor: string;
|
|
302
|
+
};
|
|
303
|
+
runtime: {
|
|
304
|
+
hostname?: string | undefined;
|
|
305
|
+
username?: string | undefined;
|
|
306
|
+
cwd?: string | undefined;
|
|
307
|
+
platform?: string | undefined;
|
|
308
|
+
os?: string | undefined;
|
|
309
|
+
locale?: string | undefined;
|
|
310
|
+
timestamp?: number | undefined;
|
|
311
|
+
date?: string | undefined;
|
|
312
|
+
time?: string | undefined;
|
|
313
|
+
uuid?: string | undefined;
|
|
314
|
+
} & {
|
|
315
|
+
[k: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
prompt: {
|
|
318
|
+
includeRole: boolean;
|
|
319
|
+
includeFormat: boolean;
|
|
320
|
+
includeConstraints: boolean;
|
|
321
|
+
includeSuccessCriteria: boolean;
|
|
322
|
+
includeGuardrails: boolean;
|
|
323
|
+
defaultRole: string;
|
|
324
|
+
defaultExpertise: string;
|
|
325
|
+
delimiter: "xml" | "markdown" | "none";
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
code?: {
|
|
329
|
+
language?: string | undefined;
|
|
330
|
+
highlight?: boolean | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
llm?: {
|
|
333
|
+
model?: string | undefined;
|
|
334
|
+
provider?: "unspecified" | "anthropic" | "openai" | "google" | "meta" | "mistral" | "deepseek" | "xai" | "cohere" | undefined;
|
|
335
|
+
maxTokens?: number | undefined;
|
|
336
|
+
temperature?: number | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
output?: {
|
|
339
|
+
format?: "unspecified" | "xml" | "markdown" | "json" | "text" | undefined;
|
|
340
|
+
trim?: boolean | undefined;
|
|
341
|
+
indent?: string | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
user?: {
|
|
344
|
+
editor?: string | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
runtime?: z.objectInputType<{
|
|
347
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
348
|
+
username: z.ZodOptional<z.ZodString>;
|
|
349
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
350
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
351
|
+
os: z.ZodOptional<z.ZodString>;
|
|
352
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
353
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
date: z.ZodOptional<z.ZodString>;
|
|
355
|
+
time: z.ZodOptional<z.ZodString>;
|
|
356
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
358
|
+
prompt?: {
|
|
359
|
+
includeRole?: boolean | undefined;
|
|
360
|
+
includeFormat?: boolean | undefined;
|
|
361
|
+
includeConstraints?: boolean | undefined;
|
|
362
|
+
includeSuccessCriteria?: boolean | undefined;
|
|
363
|
+
includeGuardrails?: boolean | undefined;
|
|
364
|
+
defaultRole?: string | undefined;
|
|
365
|
+
defaultExpertise?: string | undefined;
|
|
366
|
+
delimiter?: "xml" | "markdown" | "none" | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
}>;
|
|
369
|
+
/**
|
|
370
|
+
* LLM configuration for prompt rendering
|
|
371
|
+
*/
|
|
372
|
+
export type LlmConfig = z.infer<typeof llmConfigSchema>;
|
|
373
|
+
/**
|
|
374
|
+
* Output configuration for rendered prompts
|
|
375
|
+
*/
|
|
376
|
+
export type OutputConfig = z.infer<typeof outputConfigSchema>;
|
|
377
|
+
/**
|
|
378
|
+
* Code-related configuration
|
|
379
|
+
*/
|
|
380
|
+
export type CodeConfig = z.infer<typeof codeConfigSchema>;
|
|
381
|
+
/**
|
|
382
|
+
* User/caller context configuration
|
|
383
|
+
*/
|
|
384
|
+
export type UserConfig = z.infer<typeof userConfigSchema>;
|
|
385
|
+
/**
|
|
386
|
+
* Prompt configuration for default section behavior
|
|
387
|
+
*/
|
|
388
|
+
export type PromptConfig = z.infer<typeof promptConfigSchema>;
|
|
389
|
+
/**
|
|
390
|
+
* Runtime configuration gathered from the environment
|
|
391
|
+
*/
|
|
392
|
+
export type RuntimeConfig = z.infer<typeof runtimeConfigSchema>;
|
|
393
|
+
/**
|
|
394
|
+
* Environment context containing all configuration
|
|
395
|
+
*/
|
|
396
|
+
export type EnvironmentContext = z.infer<typeof environmentContextSchema>;
|
|
397
|
+
/**
|
|
398
|
+
* Render context passed to components during rendering
|
|
399
|
+
*/
|
|
400
|
+
export interface RenderContext {
|
|
401
|
+
inputs: Map<string, unknown>;
|
|
402
|
+
env: EnvironmentContext;
|
|
403
|
+
postExecution: PostExecutionAction[];
|
|
404
|
+
errors: RenderError[];
|
|
405
|
+
metadata: Map<string, unknown>;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Default environment configuration
|
|
409
|
+
*/
|
|
410
|
+
export declare const DEFAULT_ENVIRONMENT: EnvironmentContext;
|
|
411
|
+
/**
|
|
412
|
+
* Create an environment context with optional overrides.
|
|
413
|
+
* Validates input against the schema.
|
|
414
|
+
*/
|
|
415
|
+
export declare function createEnvironment(overrides?: Partial<EnvironmentContext>): EnvironmentContext;
|
|
416
|
+
/**
|
|
417
|
+
* Create a runtime configuration from the current environment.
|
|
418
|
+
* Works in both Node.js and browser environments.
|
|
419
|
+
*
|
|
420
|
+
* In Node.js, system values (hostname, username, os) are loaded asynchronously
|
|
421
|
+
* via dynamic import to avoid bundling Node.js modules in browser builds.
|
|
422
|
+
* If the cache isn't ready on first call, defaults are used temporarily.
|
|
423
|
+
*/
|
|
424
|
+
export declare function createRuntimeConfig(): RuntimeConfig;
|
|
425
|
+
//# sourceMappingURL=context.d.ts.map
|