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.
Files changed (237) hide show
  1. package/dist/components/ask/Choice.d.ts +155 -0
  2. package/dist/components/ask/Choice.d.ts.map +1 -0
  3. package/dist/components/ask/Confirm.d.ts +61 -0
  4. package/dist/components/ask/Confirm.d.ts.map +1 -0
  5. package/dist/components/ask/Date.d.ts +78 -0
  6. package/dist/components/ask/Date.d.ts.map +1 -0
  7. package/dist/components/ask/Editor.d.ts +66 -0
  8. package/dist/components/ask/Editor.d.ts.map +1 -0
  9. package/dist/components/ask/File.d.ts +84 -0
  10. package/dist/components/ask/File.d.ts.map +1 -0
  11. package/dist/components/ask/Label.d.ts +27 -0
  12. package/dist/components/ask/Label.d.ts.map +1 -0
  13. package/dist/components/ask/MultiSelect.d.ts +147 -0
  14. package/dist/components/ask/MultiSelect.d.ts.map +1 -0
  15. package/dist/components/ask/Number.d.ts +72 -0
  16. package/dist/components/ask/Number.d.ts.map +1 -0
  17. package/dist/components/ask/Option.d.ts +28 -0
  18. package/dist/components/ask/Option.d.ts.map +1 -0
  19. package/dist/components/ask/Path.d.ts +72 -0
  20. package/dist/components/ask/Path.d.ts.map +1 -0
  21. package/dist/components/ask/Rating.d.ts +78 -0
  22. package/dist/components/ask/Rating.d.ts.map +1 -0
  23. package/dist/components/ask/ReviewFile.d.ts +78 -0
  24. package/dist/components/ask/ReviewFile.d.ts.map +1 -0
  25. package/dist/components/ask/Secret.d.ts +66 -0
  26. package/dist/components/ask/Secret.d.ts.map +1 -0
  27. package/dist/components/ask/Select.d.ts +135 -0
  28. package/dist/components/ask/Select.d.ts.map +1 -0
  29. package/dist/components/ask/Text.d.ts +66 -0
  30. package/dist/components/ask/Text.d.ts.map +1 -0
  31. package/dist/components/ask/index.d.ts +34 -0
  32. package/dist/components/ask/index.d.ts.map +1 -0
  33. package/dist/components/ask/utils.d.ts +26 -0
  34. package/dist/components/ask/utils.d.ts.map +1 -0
  35. package/dist/components/control/ForEach.d.ts +31 -0
  36. package/dist/components/control/ForEach.d.ts.map +1 -0
  37. package/dist/components/control/If.d.ts +35 -0
  38. package/dist/components/control/If.d.ts.map +1 -0
  39. package/dist/components/control/index.d.ts +3 -0
  40. package/dist/components/control/index.d.ts.map +1 -0
  41. package/dist/components/data/Code.d.ts +30 -0
  42. package/dist/components/data/Code.d.ts.map +1 -0
  43. package/dist/components/data/Data.d.ts +30 -0
  44. package/dist/components/data/Data.d.ts.map +1 -0
  45. package/dist/components/data/File.d.ts +37 -0
  46. package/dist/components/data/File.d.ts.map +1 -0
  47. package/dist/components/data/Json.d.ts +24 -0
  48. package/dist/components/data/Json.d.ts.map +1 -0
  49. package/dist/components/data/Xml.d.ts +24 -0
  50. package/dist/components/data/Xml.d.ts.map +1 -0
  51. package/dist/components/data/index.d.ts +6 -0
  52. package/dist/components/data/index.d.ts.map +1 -0
  53. package/dist/components/examples/Example.d.ts +16 -0
  54. package/dist/components/examples/Example.d.ts.map +1 -0
  55. package/dist/components/examples/ExampleInput.d.ts +12 -0
  56. package/dist/components/examples/ExampleInput.d.ts.map +1 -0
  57. package/dist/components/examples/ExampleOutput.d.ts +12 -0
  58. package/dist/components/examples/ExampleOutput.d.ts.map +1 -0
  59. package/dist/components/examples/Examples.d.ts +12 -0
  60. package/dist/components/examples/Examples.d.ts.map +1 -0
  61. package/dist/components/examples/NegativeExample.d.ts +24 -0
  62. package/dist/components/examples/NegativeExample.d.ts.map +1 -0
  63. package/dist/components/examples/index.d.ts +6 -0
  64. package/dist/components/examples/index.d.ts.map +1 -0
  65. package/dist/components/index.d.ts +10 -0
  66. package/dist/components/index.d.ts.map +1 -0
  67. package/dist/components/manifest.d.ts +15 -0
  68. package/dist/components/manifest.d.ts.map +1 -0
  69. package/dist/components/meta/Uses.d.ts +97 -0
  70. package/dist/components/meta/Uses.d.ts.map +1 -0
  71. package/dist/components/meta/index.d.ts +2 -0
  72. package/dist/components/meta/index.d.ts.map +1 -0
  73. package/dist/components/post-execution/OpenUrl.d.ts +28 -0
  74. package/dist/components/post-execution/OpenUrl.d.ts.map +1 -0
  75. package/dist/components/post-execution/PostExecution.d.ts +12 -0
  76. package/dist/components/post-execution/PostExecution.d.ts.map +1 -0
  77. package/dist/components/post-execution/ReviewFile.d.ts +29 -0
  78. package/dist/components/post-execution/ReviewFile.d.ts.map +1 -0
  79. package/dist/components/post-execution/RunCommand.d.ts +34 -0
  80. package/dist/components/post-execution/RunCommand.d.ts.map +1 -0
  81. package/dist/components/post-execution/index.d.ts +5 -0
  82. package/dist/components/post-execution/index.d.ts.map +1 -0
  83. package/dist/components/presets/constraint-presets.d.ts +13 -0
  84. package/dist/components/presets/constraint-presets.d.ts.map +1 -0
  85. package/dist/components/presets/default-constraints.d.ts +6 -0
  86. package/dist/components/presets/default-constraints.d.ts.map +1 -0
  87. package/dist/components/presets/guardrail-presets.d.ts +22 -0
  88. package/dist/components/presets/guardrail-presets.d.ts.map +1 -0
  89. package/dist/components/presets/index.d.ts +13 -0
  90. package/dist/components/presets/index.d.ts.map +1 -0
  91. package/dist/components/presets/provider-adaptations.d.ts +30 -0
  92. package/dist/components/presets/provider-adaptations.d.ts.map +1 -0
  93. package/dist/components/presets/role-presets.d.ts +19 -0
  94. package/dist/components/presets/role-presets.d.ts.map +1 -0
  95. package/dist/components/presets/steps-presets.d.ts +12 -0
  96. package/dist/components/presets/steps-presets.d.ts.map +1 -0
  97. package/dist/components/presets/task-presets.d.ts +14 -0
  98. package/dist/components/presets/task-presets.d.ts.map +1 -0
  99. package/dist/components/reasoning/ChainOfThought.d.ts +36 -0
  100. package/dist/components/reasoning/ChainOfThought.d.ts.map +1 -0
  101. package/dist/components/reasoning/Step.d.ts +24 -0
  102. package/dist/components/reasoning/Step.d.ts.map +1 -0
  103. package/dist/components/reasoning/Steps.d.ts +69 -0
  104. package/dist/components/reasoning/Steps.d.ts.map +1 -0
  105. package/dist/components/reasoning/index.d.ts +4 -0
  106. package/dist/components/reasoning/index.d.ts.map +1 -0
  107. package/dist/components/structural/Audience.d.ts +55 -0
  108. package/dist/components/structural/Audience.d.ts.map +1 -0
  109. package/dist/components/structural/Constraint.d.ts +49 -0
  110. package/dist/components/structural/Constraint.d.ts.map +1 -0
  111. package/dist/components/structural/Constraints.d.ts +50 -0
  112. package/dist/components/structural/Constraints.d.ts.map +1 -0
  113. package/dist/components/structural/Context.d.ts +72 -0
  114. package/dist/components/structural/Context.d.ts.map +1 -0
  115. package/dist/components/structural/Contexts.d.ts +36 -0
  116. package/dist/components/structural/Contexts.d.ts.map +1 -0
  117. package/dist/components/structural/Criterion.d.ts +36 -0
  118. package/dist/components/structural/Criterion.d.ts.map +1 -0
  119. package/dist/components/structural/EdgeCases.d.ts +46 -0
  120. package/dist/components/structural/EdgeCases.d.ts.map +1 -0
  121. package/dist/components/structural/Fallback.d.ts +43 -0
  122. package/dist/components/structural/Fallback.d.ts.map +1 -0
  123. package/dist/components/structural/Fallbacks.d.ts +46 -0
  124. package/dist/components/structural/Fallbacks.d.ts.map +1 -0
  125. package/dist/components/structural/Format.d.ts +79 -0
  126. package/dist/components/structural/Format.d.ts.map +1 -0
  127. package/dist/components/structural/Guardrails.d.ts +63 -0
  128. package/dist/components/structural/Guardrails.d.ts.map +1 -0
  129. package/dist/components/structural/Objective.d.ts +42 -0
  130. package/dist/components/structural/Objective.d.ts.map +1 -0
  131. package/dist/components/structural/Prompt.d.ts +243 -0
  132. package/dist/components/structural/Prompt.d.ts.map +1 -0
  133. package/dist/components/structural/Reference.d.ts +50 -0
  134. package/dist/components/structural/Reference.d.ts.map +1 -0
  135. package/dist/components/structural/References.d.ts +123 -0
  136. package/dist/components/structural/References.d.ts.map +1 -0
  137. package/dist/components/structural/Role.d.ts +74 -0
  138. package/dist/components/structural/Role.d.ts.map +1 -0
  139. package/dist/components/structural/Section.d.ts +30 -0
  140. package/dist/components/structural/Section.d.ts.map +1 -0
  141. package/dist/components/structural/Specialization.d.ts +36 -0
  142. package/dist/components/structural/Specialization.d.ts.map +1 -0
  143. package/dist/components/structural/Style.d.ts +43 -0
  144. package/dist/components/structural/Style.d.ts.map +1 -0
  145. package/dist/components/structural/SuccessCriteria.d.ts +96 -0
  146. package/dist/components/structural/SuccessCriteria.d.ts.map +1 -0
  147. package/dist/components/structural/Task.d.ts +60 -0
  148. package/dist/components/structural/Task.d.ts.map +1 -0
  149. package/dist/components/structural/Tone.d.ts +61 -0
  150. package/dist/components/structural/Tone.d.ts.map +1 -0
  151. package/dist/components/structural/When.d.ts +44 -0
  152. package/dist/components/structural/When.d.ts.map +1 -0
  153. package/dist/components/structural/WhenUncertain.d.ts +30 -0
  154. package/dist/components/structural/WhenUncertain.d.ts.map +1 -0
  155. package/dist/components/structural/index.d.ts +25 -0
  156. package/dist/components/structural/index.d.ts.map +1 -0
  157. package/dist/components/utility/Cwd.d.ts +10 -0
  158. package/dist/components/utility/Cwd.d.ts.map +1 -0
  159. package/dist/components/utility/DateTime.d.ts +22 -0
  160. package/dist/components/utility/DateTime.d.ts.map +1 -0
  161. package/dist/components/utility/Hostname.d.ts +10 -0
  162. package/dist/components/utility/Hostname.d.ts.map +1 -0
  163. package/dist/components/utility/Timestamp.d.ts +10 -0
  164. package/dist/components/utility/Timestamp.d.ts.map +1 -0
  165. package/dist/components/utility/UUID.d.ts +10 -0
  166. package/dist/components/utility/UUID.d.ts.map +1 -0
  167. package/dist/components/utility/Username.d.ts +10 -0
  168. package/dist/components/utility/Username.d.ts.map +1 -0
  169. package/dist/components/utility/index.d.ts +7 -0
  170. package/dist/components/utility/index.d.ts.map +1 -0
  171. package/dist/index.js +1 -1
  172. package/dist/src/api.d.ts +38 -0
  173. package/dist/src/api.d.ts.map +1 -0
  174. package/dist/src/component.d.ts +112 -0
  175. package/dist/src/component.d.ts.map +1 -0
  176. package/dist/src/create-prompt.d.ts +118 -0
  177. package/dist/src/create-prompt.d.ts.map +1 -0
  178. package/dist/src/index.d.ts +39 -0
  179. package/dist/src/index.d.ts.map +1 -0
  180. package/dist/src/jsx-runtime/index.d.ts +29 -0
  181. package/dist/src/jsx-runtime/index.d.ts.map +1 -0
  182. package/dist/src/jsx-runtime/jsx-dev-runtime.d.ts +26 -0
  183. package/dist/src/jsx-runtime/jsx-dev-runtime.d.ts.map +1 -0
  184. package/dist/src/render.d.ts +19 -0
  185. package/dist/src/render.d.ts.map +1 -0
  186. package/dist/src/services/babel-plugins/index.d.ts +3 -0
  187. package/dist/src/services/babel-plugins/index.d.ts.map +1 -0
  188. package/dist/src/services/babel-plugins/name-hoisting.d.ts +8 -0
  189. package/dist/src/services/babel-plugins/name-hoisting.d.ts.map +1 -0
  190. package/dist/src/services/babel-plugins/uses-to-import.d.ts +16 -0
  191. package/dist/src/services/babel-plugins/uses-to-import.d.ts.map +1 -0
  192. package/dist/src/services/browser-support.d.ts +185 -0
  193. package/dist/src/services/browser-support.d.ts.map +1 -0
  194. package/dist/src/services/component-discovery.d.ts +42 -0
  195. package/dist/src/services/component-discovery.d.ts.map +1 -0
  196. package/dist/src/services/file-search-engine.d.ts +162 -0
  197. package/dist/src/services/file-search-engine.d.ts.map +1 -0
  198. package/dist/src/services/formula-parser.d.ts +9 -0
  199. package/dist/src/services/formula-parser.d.ts.map +1 -0
  200. package/dist/src/services/input-iterator.d.ts +54 -0
  201. package/dist/src/services/input-iterator.d.ts.map +1 -0
  202. package/dist/src/services/module-evaluator.d.ts +38 -0
  203. package/dist/src/services/module-evaluator.d.ts.map +1 -0
  204. package/dist/src/services/module-loader.d.ts +92 -0
  205. package/dist/src/services/module-loader.d.ts.map +1 -0
  206. package/dist/src/services/preprocessor.d.ts +39 -0
  207. package/dist/src/services/preprocessor.d.ts.map +1 -0
  208. package/dist/src/services/prop-validator.d.ts +21 -0
  209. package/dist/src/services/prop-validator.d.ts.map +1 -0
  210. package/dist/src/services/search-engine.d.ts +10 -0
  211. package/dist/src/services/search-engine.d.ts.map +1 -0
  212. package/dist/src/services/transformer.d.ts +19 -0
  213. package/dist/src/services/transformer.d.ts.map +1 -0
  214. package/dist/{index.d.ts → src/types/context.d.ts} +425 -458
  215. package/dist/src/types/context.d.ts.map +1 -0
  216. package/dist/src/types/element.d.ts +47 -0
  217. package/dist/src/types/element.d.ts.map +1 -0
  218. package/dist/src/types/index.d.ts +10 -0
  219. package/dist/src/types/index.d.ts.map +1 -0
  220. package/dist/src/types/input.d.ts +51 -0
  221. package/dist/src/types/input.d.ts.map +1 -0
  222. package/dist/src/types/module.d.ts +61 -0
  223. package/dist/src/types/module.d.ts.map +1 -0
  224. package/dist/src/types/render.d.ts +82 -0
  225. package/dist/src/types/render.d.ts.map +1 -0
  226. package/dist/src/types/search.d.ts +59 -0
  227. package/dist/src/types/search.d.ts.map +1 -0
  228. package/dist/src/types/symbols.d.ts +9 -0
  229. package/dist/src/types/symbols.d.ts.map +1 -0
  230. package/dist/src/utils/children.d.ts +29 -0
  231. package/dist/src/utils/children.d.ts.map +1 -0
  232. package/dist/src/utils/delimiter.d.ts +13 -0
  233. package/dist/src/utils/delimiter.d.ts.map +1 -0
  234. package/package.json +4 -4
  235. package/dist/jsx-dev-runtime.d.ts +0 -483
  236. package/dist/jsx-runtime/index.d.ts +0 -2
  237. package/dist/jsx-runtime/jsx-dev-runtime.d.ts +0 -2
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const openUrlSchema: z.ZodObject<{
4
+ url: z.ZodString;
5
+ browser: z.ZodOptional<z.ZodString>;
6
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7
+ url: z.ZodString;
8
+ browser: z.ZodOptional<z.ZodString>;
9
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10
+ url: z.ZodString;
11
+ browser: z.ZodOptional<z.ZodString>;
12
+ }, z.ZodTypeAny, "passthrough">>;
13
+ type OpenUrlProps = z.infer<typeof openUrlSchema>;
14
+ export declare class OpenUrl extends Component<OpenUrlProps> {
15
+ static schema: z.ZodObject<{
16
+ url: z.ZodString;
17
+ browser: z.ZodOptional<z.ZodString>;
18
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
19
+ url: z.ZodString;
20
+ browser: z.ZodOptional<z.ZodString>;
21
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
22
+ url: z.ZodString;
23
+ browser: z.ZodOptional<z.ZodString>;
24
+ }, z.ZodTypeAny, "passthrough">>;
25
+ render({ url, browser }: OpenUrlProps, _resolvedValue: void, context: RenderContext): PuptNode;
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=OpenUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenUrl.d.ts","sourceRoot":"","sources":["../../../components/post-execution/OpenUrl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAiB,MAAM,UAAU,CAAC;AAEvE,eAAO,MAAM,aAAa;;;;;;;;;gCAGV,CAAC;AAEjB,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD,qBAAa,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAClD,MAAM,CAAC,MAAM;;;;;;;;;qCAAiB;IAE9B,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;CAW/F"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const postExecutionSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
4
+ type PostExecutionProps = z.infer<typeof postExecutionSchema> & {
5
+ children: PuptNode;
6
+ };
7
+ export declare class PostExecution extends Component<PostExecutionProps> {
8
+ static schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
9
+ render({ children }: PostExecutionProps, _resolvedValue: void, _context: RenderContext): PuptNode;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=PostExecution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostExecution.d.ts","sourceRoot":"","sources":["../../../components/post-execution/PostExecution.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,mBAAmB,uJAA6B,CAAC;AAE9D,KAAK,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEvF,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAC9D,MAAM,CAAC,MAAM,wJAAuB;IAEpC,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAIlG"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const reviewFileSchema: z.ZodObject<{
4
+ file: z.ZodString;
5
+ editor: z.ZodOptional<z.ZodString>;
6
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7
+ file: z.ZodString;
8
+ editor: z.ZodOptional<z.ZodString>;
9
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10
+ file: z.ZodString;
11
+ editor: z.ZodOptional<z.ZodString>;
12
+ }, z.ZodTypeAny, "passthrough">>;
13
+ type ReviewFileProps = z.infer<typeof reviewFileSchema>;
14
+ export declare class ReviewFile extends Component<ReviewFileProps> {
15
+ static schema: z.ZodObject<{
16
+ file: z.ZodString;
17
+ editor: z.ZodOptional<z.ZodString>;
18
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
19
+ file: z.ZodString;
20
+ editor: z.ZodOptional<z.ZodString>;
21
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
22
+ file: z.ZodString;
23
+ editor: z.ZodOptional<z.ZodString>;
24
+ }, z.ZodTypeAny, "passthrough">>;
25
+ static hoistName: boolean;
26
+ render({ file, editor }: ReviewFileProps, _resolvedValue: void, context: RenderContext): PuptNode;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=ReviewFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewFile.d.ts","sourceRoot":"","sources":["../../../components/post-execution/ReviewFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAoB,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;gCAGb,CAAC;AAEjB,KAAK,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAExD,qBAAa,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACxD,MAAM,CAAC,MAAM;;;;;;;;;qCAAoB;IACjC,MAAM,CAAC,SAAS,UAAQ;IAExB,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;CAWlG"}
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const runCommandSchema: z.ZodObject<{
4
+ command: z.ZodString;
5
+ cwd: z.ZodOptional<z.ZodString>;
6
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8
+ command: z.ZodString;
9
+ cwd: z.ZodOptional<z.ZodString>;
10
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12
+ command: z.ZodString;
13
+ cwd: z.ZodOptional<z.ZodString>;
14
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15
+ }, z.ZodTypeAny, "passthrough">>;
16
+ type RunCommandProps = z.infer<typeof runCommandSchema>;
17
+ export declare class RunCommand extends Component<RunCommandProps> {
18
+ static schema: z.ZodObject<{
19
+ command: z.ZodString;
20
+ cwd: z.ZodOptional<z.ZodString>;
21
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
23
+ command: z.ZodString;
24
+ cwd: z.ZodOptional<z.ZodString>;
25
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
27
+ command: z.ZodString;
28
+ cwd: z.ZodOptional<z.ZodString>;
29
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30
+ }, z.ZodTypeAny, "passthrough">>;
31
+ render({ command, cwd, env }: RunCommandProps, _resolvedValue: void, context: RenderContext): PuptNode;
32
+ }
33
+ export {};
34
+ //# sourceMappingURL=RunCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RunCommand.d.ts","sourceRoot":"","sources":["../../../components/post-execution/RunCommand.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAoB,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gCAIb,CAAC;AAEjB,KAAK,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAExD,qBAAa,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACxD,MAAM,CAAC,MAAM;;;;;;;;;;;;qCAAoB;IAEjC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;CAcvG"}
@@ -0,0 +1,5 @@
1
+ export { PostExecution } from './PostExecution';
2
+ export { ReviewFile } from './ReviewFile';
3
+ export { OpenUrl } from './OpenUrl';
4
+ export { RunCommand } from './RunCommand';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/post-execution/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Constraint preset configurations for the Constraint component.
3
+ * Each preset defines a constraint category, level, text, and optional positive alternative.
4
+ */
5
+ export interface ConstraintPresetConfig {
6
+ name: string;
7
+ category: 'content' | 'format' | 'tone' | 'scope' | 'accuracy' | 'safety' | 'performance';
8
+ level: 'must' | 'should' | 'may' | 'must-not' | 'should-not';
9
+ text: string;
10
+ positiveAlternative?: string;
11
+ }
12
+ export declare const CONSTRAINT_PRESETS: Record<string, ConstraintPresetConfig>;
13
+ //# sourceMappingURL=constraint-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constraint-presets.d.ts","sourceRoot":"","sources":["../../../components/presets/constraint-presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAC;IAC1F,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAmDrE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Default constraint texts used by the Prompt component when
3
+ * no explicit Constraint children are provided.
4
+ */
5
+ export declare const DEFAULT_CONSTRAINTS: string[];
6
+ //# sourceMappingURL=default-constraints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-constraints.d.ts","sourceRoot":"","sources":["../../../components/presets/default-constraints.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAIvC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Standard guardrails presets for safety constraints.
3
+ * Used by both the Guardrails component and Prompt's default guardrails.
4
+ */
5
+ export declare const STANDARD_GUARDRAILS: Record<string, string[]>;
6
+ /**
7
+ * Standard edge case presets.
8
+ * Used by the EdgeCases component.
9
+ */
10
+ export declare const EDGE_CASE_PRESETS: Record<string, Array<{
11
+ condition: string;
12
+ action: string;
13
+ }>>;
14
+ /**
15
+ * Standard fallback presets.
16
+ * Used by the Fallbacks component.
17
+ */
18
+ export declare const FALLBACK_PRESETS: Record<string, Array<{
19
+ when: string;
20
+ then: string;
21
+ }>>;
22
+ //# sourceMappingURL=guardrail-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail-presets.d.ts","sourceRoot":"","sources":["../../../components/presets/guardrail-presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAqBxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAS1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAMlF,CAAC"}
@@ -0,0 +1,13 @@
1
+ export { ROLE_PRESETS } from './role-presets';
2
+ export type { RolePresetConfig } from './role-presets';
3
+ export { TASK_PRESETS } from './task-presets';
4
+ export type { TaskPresetConfig } from './task-presets';
5
+ export { CONSTRAINT_PRESETS } from './constraint-presets';
6
+ export type { ConstraintPresetConfig } from './constraint-presets';
7
+ export { DEFAULT_CONSTRAINTS } from './default-constraints';
8
+ export { STEPS_PRESETS } from './steps-presets';
9
+ export type { StepsPresetConfig } from './steps-presets';
10
+ export { PROVIDER_ADAPTATIONS, LANGUAGE_CONVENTIONS } from './provider-adaptations';
11
+ export type { ProviderAdaptations } from './provider-adaptations';
12
+ export { STANDARD_GUARDRAILS, EDGE_CASE_PRESETS, FALLBACK_PRESETS } from './guardrail-presets';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/presets/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { LlmProvider } from '../../src/index.ts';
2
+ /**
3
+ * Provider-specific adaptation settings that influence how components
4
+ * render their content for different LLM providers.
5
+ */
6
+ export interface ProviderAdaptations {
7
+ /** Prefix used when rendering role instructions (e.g., "You are " vs "Your role: ") */
8
+ rolePrefix: string;
9
+ /** How constraints should be framed for this provider */
10
+ constraintStyle: 'positive' | 'negative' | 'balanced';
11
+ /** Preferred output format for structured content */
12
+ formatPreference: 'xml' | 'markdown' | 'json';
13
+ /** How instructions should be structured */
14
+ instructionStyle: 'direct' | 'elaborate' | 'structured';
15
+ }
16
+ /**
17
+ * Provider adaptation lookup table.
18
+ * Maps each LLM provider to its preferred rendering settings.
19
+ *
20
+ * Covers all values from LLM_PROVIDERS:
21
+ * 'anthropic', 'openai', 'google', 'meta', 'mistral', 'deepseek', 'xai', 'cohere', 'unspecified'
22
+ */
23
+ export declare const PROVIDER_ADAPTATIONS: Record<LlmProvider, ProviderAdaptations>;
24
+ /**
25
+ * Language-specific coding conventions.
26
+ * Used by components like Role, Format, and Constraint to provide
27
+ * language-appropriate guidance.
28
+ */
29
+ export declare const LANGUAGE_CONVENTIONS: Record<string, string[]>;
30
+ //# sourceMappingURL=provider-adaptations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-adaptations.d.ts","sourceRoot":"","sources":["../../../components/presets/provider-adaptations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,uFAAuF;IACvF,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,eAAe,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IACtD,qDAAqD;IACrD,gBAAgB,EAAE,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;IAC9C,4CAA4C;IAC5C,gBAAgB,EAAE,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC;CACzD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAuDzE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAwBzD,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Role preset configurations for the Role component and Prompt defaults.
3
+ * Each preset defines a role title, default expertise areas, optional traits,
4
+ * experience level, and style.
5
+ */
6
+ export interface RolePresetConfig {
7
+ name: string;
8
+ title: string;
9
+ expertise: string[];
10
+ traits?: string[];
11
+ experienceLevel?: 'junior' | 'mid' | 'senior' | 'expert' | 'principal';
12
+ style?: 'professional' | 'casual' | 'academic' | 'friendly';
13
+ }
14
+ /**
15
+ * Lookup table of common role presets.
16
+ * Organized by category: Support, Technical, Creative, Business, Education, Domain Expert.
17
+ */
18
+ export declare const ROLE_PRESETS: Record<string, RolePresetConfig>;
19
+ //# sourceMappingURL=role-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-presets.d.ts","sourceRoot":"","sources":["../../../components/presets/role-presets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;IACvE,KAAK,CAAC,EAAE,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;CAC7D;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA4NzD,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Steps preset configurations for the Steps component.
3
+ * Each preset defines a reasoning style and named phases.
4
+ */
5
+ export interface StepsPresetConfig {
6
+ name: string;
7
+ style: 'step-by-step' | 'think-aloud' | 'structured' | 'minimal' | 'least-to-most';
8
+ phases?: string[];
9
+ showReasoning: boolean;
10
+ }
11
+ export declare const STEPS_PRESETS: Record<string, StepsPresetConfig>;
12
+ //# sourceMappingURL=steps-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps-presets.d.ts","sourceRoot":"","sources":["../../../components/presets/steps-presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,eAAe,CAAC;IACnF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA+B3D,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Task preset configurations for the Task component.
3
+ * Each preset defines a task type, action verbs, and suggested output format.
4
+ */
5
+ export interface TaskPresetConfig {
6
+ name: string;
7
+ type: 'generation' | 'transformation' | 'analysis' | 'extraction' | 'classification' | 'qa' | 'reasoning' | 'planning' | 'coding' | 'conversation';
8
+ verbs: string[];
9
+ defaultFormat?: string;
10
+ requiresContext?: boolean;
11
+ supportsExamples?: boolean;
12
+ }
13
+ export declare const TASK_PRESETS: Record<string, TaskPresetConfig>;
14
+ //# sourceMappingURL=task-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-presets.d.ts","sourceRoot":"","sources":["../../../components/presets/task-presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,GAAG,gBAAgB,GAAG,UAAU,GAAG,YAAY,GAAG,gBAAgB,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;IACnJ,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAuEzD,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const chainOfThoughtSchema: z.ZodObject<{
4
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
5
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
6
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
7
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
9
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
10
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
11
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
13
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
14
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
15
+ }, z.ZodTypeAny, "passthrough">>;
16
+ type ChainOfThoughtProps = z.infer<typeof chainOfThoughtSchema> & {
17
+ children?: PuptNode;
18
+ };
19
+ export declare class ChainOfThought extends Component<ChainOfThoughtProps> {
20
+ static schema: z.ZodObject<{
21
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
22
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
23
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
24
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
26
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
27
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
28
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal"]>>;
30
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
31
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
32
+ }, z.ZodTypeAny, "passthrough">>;
33
+ render(props: ChainOfThoughtProps, _resolvedValue: void, _context: RenderContext): PuptNode;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=ChainOfThought.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainOfThought.d.ts","sourceRoot":"","sources":["../../../components/reasoning/ChainOfThought.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;gCAIjB,CAAC;AAEjB,KAAK,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAS1F,qBAAa,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAChE,MAAM,CAAC,MAAM;;;;;;;;;;;;qCAAwB;IAErC,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAwB5F"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const stepSchema: z.ZodObject<{
4
+ number: z.ZodOptional<z.ZodNumber>;
5
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6
+ number: z.ZodOptional<z.ZodNumber>;
7
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8
+ number: z.ZodOptional<z.ZodNumber>;
9
+ }, z.ZodTypeAny, "passthrough">>;
10
+ type StepProps = z.infer<typeof stepSchema> & {
11
+ children: PuptNode;
12
+ };
13
+ export declare class Step extends Component<StepProps> {
14
+ static schema: z.ZodObject<{
15
+ number: z.ZodOptional<z.ZodNumber>;
16
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
17
+ number: z.ZodOptional<z.ZodNumber>;
18
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
19
+ number: z.ZodOptional<z.ZodNumber>;
20
+ }, z.ZodTypeAny, "passthrough">>;
21
+ render({ number, children }: StepProps, _resolvedValue: void, _context: RenderContext): PuptNode;
22
+ }
23
+ export {};
24
+ //# sourceMappingURL=Step.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../components/reasoning/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;gCAEP,CAAC;AAEjB,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAErE,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IAC5C,MAAM,CAAC,MAAM;;;;;;qCAAc;IAE3B,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAKjG"}
@@ -0,0 +1,69 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const stepsSchema: z.ZodObject<{
4
+ preset: z.ZodOptional<z.ZodString>;
5
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
6
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
7
+ verify: z.ZodOptional<z.ZodBoolean>;
8
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
9
+ extend: z.ZodOptional<z.ZodBoolean>;
10
+ numbered: z.ZodOptional<z.ZodBoolean>;
11
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
12
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
13
+ preset: z.ZodOptional<z.ZodString>;
14
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
15
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
16
+ verify: z.ZodOptional<z.ZodBoolean>;
17
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
18
+ extend: z.ZodOptional<z.ZodBoolean>;
19
+ numbered: z.ZodOptional<z.ZodBoolean>;
20
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
21
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
22
+ preset: z.ZodOptional<z.ZodString>;
23
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
24
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
25
+ verify: z.ZodOptional<z.ZodBoolean>;
26
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
27
+ extend: z.ZodOptional<z.ZodBoolean>;
28
+ numbered: z.ZodOptional<z.ZodBoolean>;
29
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
30
+ }, z.ZodTypeAny, "passthrough">>;
31
+ type StepsProps = z.infer<typeof stepsSchema> & {
32
+ children?: PuptNode;
33
+ };
34
+ export declare class Steps extends Component<StepsProps> {
35
+ static schema: z.ZodObject<{
36
+ preset: z.ZodOptional<z.ZodString>;
37
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
38
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
39
+ verify: z.ZodOptional<z.ZodBoolean>;
40
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
41
+ extend: z.ZodOptional<z.ZodBoolean>;
42
+ numbered: z.ZodOptional<z.ZodBoolean>;
43
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
44
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
45
+ preset: z.ZodOptional<z.ZodString>;
46
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
47
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
48
+ verify: z.ZodOptional<z.ZodBoolean>;
49
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
50
+ extend: z.ZodOptional<z.ZodBoolean>;
51
+ numbered: z.ZodOptional<z.ZodBoolean>;
52
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
53
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
54
+ preset: z.ZodOptional<z.ZodString>;
55
+ style: z.ZodOptional<z.ZodEnum<["step-by-step", "think-aloud", "structured", "minimal", "least-to-most"]>>;
56
+ showReasoning: z.ZodOptional<z.ZodBoolean>;
57
+ verify: z.ZodOptional<z.ZodBoolean>;
58
+ selfCritique: z.ZodOptional<z.ZodBoolean>;
59
+ extend: z.ZodOptional<z.ZodBoolean>;
60
+ numbered: z.ZodOptional<z.ZodBoolean>;
61
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
62
+ }, z.ZodTypeAny, "passthrough">>;
63
+ render(props: StepsProps, _resolvedValue: void, _context: RenderContext): PuptNode;
64
+ private getStyleInstruction;
65
+ private autoNumberSteps;
66
+ private flattenFragments;
67
+ }
68
+ export {};
69
+ //# sourceMappingURL=Steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../components/reasoning/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAyD,MAAM,UAAU,CAAC;AAE5F,OAAO,KAAK,EAAE,QAAQ,EAAe,aAAa,EAAE,MAAM,UAAU,CAAC;AAIrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;gCASR,CAAC;AAEjB,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAExE,qBAAa,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IAC9C,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAe;IAE5B,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;IAsDlF,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,gBAAgB;CAgCzB"}
@@ -0,0 +1,4 @@
1
+ export { Steps } from './Steps';
2
+ export { Step } from './Step';
3
+ export { ChainOfThought } from './ChainOfThought';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/reasoning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const audienceSchema: z.ZodObject<{
4
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
5
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
8
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
10
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
12
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
15
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
17
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
18
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
19
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
22
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
24
+ }, z.ZodTypeAny, "passthrough">>;
25
+ type AudienceProps = z.infer<typeof audienceSchema> & {
26
+ children?: PuptNode;
27
+ };
28
+ export declare class Audience extends Component<AudienceProps> {
29
+ static schema: z.ZodObject<{
30
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
31
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
32
+ description: z.ZodOptional<z.ZodString>;
33
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
34
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
36
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
37
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
38
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
41
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
43
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
44
+ level: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert", "mixed"]>>;
45
+ type: z.ZodOptional<z.ZodEnum<["technical", "business", "academic", "general", "children"]>>;
46
+ description: z.ZodOptional<z.ZodString>;
47
+ knowledgeLevel: z.ZodOptional<z.ZodString>;
48
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
50
+ }, z.ZodTypeAny, "passthrough">>;
51
+ render(props: AudienceProps, _resolvedValue: void, _context: RenderContext): PuptNode;
52
+ private getLevelGuidance;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=Audience.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Audience.d.ts","sourceRoot":"","sources":["../../../components/structural/Audience.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;gCAOX,CAAC;AAEjB,KAAK,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE9E,qBAAa,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IACpD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;qCAAkB;IAE/B,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;IAuCrF,OAAO,CAAC,gBAAgB;CAWzB"}
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const constraintSchema: z.ZodObject<{
4
+ preset: z.ZodOptional<z.ZodString>;
5
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
6
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
7
+ positive: z.ZodOptional<z.ZodString>;
8
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
9
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10
+ preset: z.ZodOptional<z.ZodString>;
11
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
12
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
13
+ positive: z.ZodOptional<z.ZodString>;
14
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
15
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16
+ preset: z.ZodOptional<z.ZodString>;
17
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
18
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
19
+ positive: z.ZodOptional<z.ZodString>;
20
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
21
+ }, z.ZodTypeAny, "passthrough">>;
22
+ type ConstraintProps = z.infer<typeof constraintSchema> & {
23
+ children?: PuptNode;
24
+ };
25
+ export declare class Constraint extends Component<ConstraintProps> {
26
+ static schema: z.ZodObject<{
27
+ preset: z.ZodOptional<z.ZodString>;
28
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
29
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
30
+ positive: z.ZodOptional<z.ZodString>;
31
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
32
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
+ preset: z.ZodOptional<z.ZodString>;
34
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
35
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
36
+ positive: z.ZodOptional<z.ZodString>;
37
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
38
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
39
+ preset: z.ZodOptional<z.ZodString>;
40
+ type: z.ZodOptional<z.ZodEnum<["must", "should", "must-not", "may", "should-not"]>>;
41
+ category: z.ZodOptional<z.ZodEnum<["content", "format", "tone", "scope", "accuracy", "safety", "performance"]>>;
42
+ positive: z.ZodOptional<z.ZodString>;
43
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
44
+ }, z.ZodTypeAny, "passthrough">>;
45
+ render(props: ConstraintProps, _resolvedValue: void, context: RenderContext): PuptNode;
46
+ private formatConstraint;
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=Constraint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constraint.d.ts","sourceRoot":"","sources":["../../../components/structural/Constraint.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;gCAMb,CAAC;AAEjB,KAAK,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAElF,qBAAa,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACxD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;qCAAoB;IAEjC,MAAM,CAAC,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;IAoCtF,OAAO,CAAC,gBAAgB;CAYzB"}