pupt-lib 1.2.6 → 1.3.1

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 (261) hide show
  1. package/README.md +292 -256
  2. package/dist/components/ask/Choice.d.ts +1 -2
  3. package/dist/components/ask/Choice.d.ts.map +1 -1
  4. package/dist/components/ask/Confirm.d.ts +1 -2
  5. package/dist/components/ask/Confirm.d.ts.map +1 -1
  6. package/dist/components/ask/Date.d.ts +1 -2
  7. package/dist/components/ask/Date.d.ts.map +1 -1
  8. package/dist/components/ask/Editor.d.ts +1 -2
  9. package/dist/components/ask/Editor.d.ts.map +1 -1
  10. package/dist/components/ask/File.d.ts +1 -2
  11. package/dist/components/ask/File.d.ts.map +1 -1
  12. package/dist/components/ask/Label.d.ts +1 -2
  13. package/dist/components/ask/Label.d.ts.map +1 -1
  14. package/dist/components/ask/MultiSelect.d.ts +1 -2
  15. package/dist/components/ask/MultiSelect.d.ts.map +1 -1
  16. package/dist/components/ask/Number.d.ts +1 -2
  17. package/dist/components/ask/Number.d.ts.map +1 -1
  18. package/dist/components/ask/Option.d.ts +1 -2
  19. package/dist/components/ask/Option.d.ts.map +1 -1
  20. package/dist/components/ask/Path.d.ts +1 -2
  21. package/dist/components/ask/Path.d.ts.map +1 -1
  22. package/dist/components/ask/Rating.d.ts +1 -2
  23. package/dist/components/ask/Rating.d.ts.map +1 -1
  24. package/dist/components/ask/ReviewFile.d.ts +1 -2
  25. package/dist/components/ask/ReviewFile.d.ts.map +1 -1
  26. package/dist/components/ask/Secret.d.ts +1 -2
  27. package/dist/components/ask/Secret.d.ts.map +1 -1
  28. package/dist/components/ask/Select.d.ts +1 -2
  29. package/dist/components/ask/Select.d.ts.map +1 -1
  30. package/dist/components/ask/Text.d.ts +1 -2
  31. package/dist/components/ask/Text.d.ts.map +1 -1
  32. package/dist/components/ask/index.d.ts.map +1 -1
  33. package/dist/components/ask/utils.d.ts +1 -1
  34. package/dist/components/ask/utils.d.ts.map +1 -1
  35. package/dist/components/control/ForEach.d.ts +1 -2
  36. package/dist/components/control/ForEach.d.ts.map +1 -1
  37. package/dist/components/control/If.d.ts +20 -9
  38. package/dist/components/control/If.d.ts.map +1 -1
  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 +1 -2
  42. package/dist/components/data/Code.d.ts.map +1 -1
  43. package/dist/components/data/Data.d.ts +1 -2
  44. package/dist/components/data/Data.d.ts.map +1 -1
  45. package/dist/components/data/File.d.ts +2 -2
  46. package/dist/components/data/File.d.ts.map +1 -1
  47. package/dist/components/data/Json.d.ts +1 -2
  48. package/dist/components/data/Json.d.ts.map +1 -1
  49. package/dist/components/data/Xml.d.ts +1 -2
  50. package/dist/components/data/Xml.d.ts.map +1 -1
  51. package/dist/components/data/index.d.ts.map +1 -1
  52. package/dist/components/examples/Example.d.ts +3 -4
  53. package/dist/components/examples/Example.d.ts.map +1 -1
  54. package/dist/components/examples/ExampleInput.d.ts +1 -2
  55. package/dist/components/examples/ExampleInput.d.ts.map +1 -1
  56. package/dist/components/examples/ExampleOutput.d.ts +1 -2
  57. package/dist/components/examples/ExampleOutput.d.ts.map +1 -1
  58. package/dist/components/examples/Examples.d.ts +1 -2
  59. package/dist/components/examples/Examples.d.ts.map +1 -1
  60. package/dist/components/examples/NegativeExample.d.ts +24 -0
  61. package/dist/components/examples/NegativeExample.d.ts.map +1 -0
  62. package/dist/components/examples/index.d.ts +1 -0
  63. package/dist/components/examples/index.d.ts.map +1 -1
  64. package/dist/components/index.d.ts +1 -2
  65. package/dist/components/index.d.ts.map +1 -1
  66. package/dist/components/manifest.d.ts +15 -0
  67. package/dist/components/manifest.d.ts.map +1 -0
  68. package/dist/components/meta/Uses.d.ts +1 -2
  69. package/dist/components/meta/Uses.d.ts.map +1 -1
  70. package/dist/components/meta/index.d.ts.map +1 -1
  71. package/dist/components/post-execution/OpenUrl.d.ts +1 -2
  72. package/dist/components/post-execution/OpenUrl.d.ts.map +1 -1
  73. package/dist/components/post-execution/PostExecution.d.ts +1 -2
  74. package/dist/components/post-execution/PostExecution.d.ts.map +1 -1
  75. package/dist/components/post-execution/ReviewFile.d.ts +2 -2
  76. package/dist/components/post-execution/ReviewFile.d.ts.map +1 -1
  77. package/dist/components/post-execution/RunCommand.d.ts +1 -2
  78. package/dist/components/post-execution/RunCommand.d.ts.map +1 -1
  79. package/dist/components/post-execution/index.d.ts.map +1 -1
  80. package/dist/components/presets/constraint-presets.d.ts +13 -0
  81. package/dist/components/presets/constraint-presets.d.ts.map +1 -0
  82. package/dist/components/presets/default-constraints.d.ts +6 -0
  83. package/dist/components/presets/default-constraints.d.ts.map +1 -0
  84. package/dist/components/presets/guardrail-presets.d.ts +22 -0
  85. package/dist/components/presets/guardrail-presets.d.ts.map +1 -0
  86. package/dist/components/presets/index.d.ts +13 -0
  87. package/dist/components/presets/index.d.ts.map +1 -0
  88. package/dist/components/presets/provider-adaptations.d.ts +30 -0
  89. package/dist/components/presets/provider-adaptations.d.ts.map +1 -0
  90. package/dist/components/presets/role-presets.d.ts +19 -0
  91. package/dist/components/presets/role-presets.d.ts.map +1 -0
  92. package/dist/components/presets/steps-presets.d.ts +12 -0
  93. package/dist/components/presets/steps-presets.d.ts.map +1 -0
  94. package/dist/components/presets/task-presets.d.ts +14 -0
  95. package/dist/components/presets/task-presets.d.ts.map +1 -0
  96. package/dist/components/reasoning/ChainOfThought.d.ts +36 -0
  97. package/dist/components/reasoning/ChainOfThought.d.ts.map +1 -0
  98. package/dist/components/reasoning/Step.d.ts +1 -2
  99. package/dist/components/reasoning/Step.d.ts.map +1 -1
  100. package/dist/components/reasoning/Steps.d.ts +62 -7
  101. package/dist/components/reasoning/Steps.d.ts.map +1 -1
  102. package/dist/components/reasoning/index.d.ts +1 -0
  103. package/dist/components/reasoning/index.d.ts.map +1 -1
  104. package/dist/components/structural/Audience.d.ts +34 -4
  105. package/dist/components/structural/Audience.d.ts.map +1 -1
  106. package/dist/components/structural/Constraint.d.ts +28 -10
  107. package/dist/components/structural/Constraint.d.ts.map +1 -1
  108. package/dist/components/structural/Constraints.d.ts +50 -0
  109. package/dist/components/structural/Constraints.d.ts.map +1 -0
  110. package/dist/components/structural/Context.d.ts +51 -4
  111. package/dist/components/structural/Context.d.ts.map +1 -1
  112. package/dist/components/structural/Contexts.d.ts +36 -0
  113. package/dist/components/structural/Contexts.d.ts.map +1 -0
  114. package/dist/components/structural/Criterion.d.ts +28 -5
  115. package/dist/components/structural/Criterion.d.ts.map +1 -1
  116. package/dist/components/structural/EdgeCases.d.ts +46 -0
  117. package/dist/components/structural/EdgeCases.d.ts.map +1 -0
  118. package/dist/components/structural/Fallback.d.ts +43 -0
  119. package/dist/components/structural/Fallback.d.ts.map +1 -0
  120. package/dist/components/structural/Fallbacks.d.ts +46 -0
  121. package/dist/components/structural/Fallbacks.d.ts.map +1 -0
  122. package/dist/components/structural/Format.d.ts +51 -9
  123. package/dist/components/structural/Format.d.ts.map +1 -1
  124. package/dist/components/structural/Guardrails.d.ts +63 -0
  125. package/dist/components/structural/Guardrails.d.ts.map +1 -0
  126. package/dist/components/structural/Objective.d.ts +42 -0
  127. package/dist/components/structural/Objective.d.ts.map +1 -0
  128. package/dist/components/structural/Prompt.d.ts +203 -3
  129. package/dist/components/structural/Prompt.d.ts.map +1 -1
  130. package/dist/components/structural/Reference.d.ts +50 -0
  131. package/dist/components/structural/Reference.d.ts.map +1 -0
  132. package/dist/components/structural/References.d.ts +123 -0
  133. package/dist/components/structural/References.d.ts.map +1 -0
  134. package/dist/components/structural/Role.d.ts +47 -10
  135. package/dist/components/structural/Role.d.ts.map +1 -1
  136. package/dist/components/structural/Section.d.ts +1 -2
  137. package/dist/components/structural/Section.d.ts.map +1 -1
  138. package/dist/components/structural/Specialization.d.ts +36 -0
  139. package/dist/components/structural/Specialization.d.ts.map +1 -0
  140. package/dist/components/structural/Style.d.ts +43 -0
  141. package/dist/components/structural/Style.d.ts.map +1 -0
  142. package/dist/components/structural/SuccessCriteria.d.ts +75 -4
  143. package/dist/components/structural/SuccessCriteria.d.ts.map +1 -1
  144. package/dist/components/structural/Task.d.ts +39 -4
  145. package/dist/components/structural/Task.d.ts.map +1 -1
  146. package/dist/components/structural/Tone.d.ts +40 -4
  147. package/dist/components/structural/Tone.d.ts.map +1 -1
  148. package/dist/components/structural/When.d.ts +44 -0
  149. package/dist/components/structural/When.d.ts.map +1 -0
  150. package/dist/components/structural/WhenUncertain.d.ts +30 -0
  151. package/dist/components/structural/WhenUncertain.d.ts.map +1 -0
  152. package/dist/components/structural/index.d.ts +13 -0
  153. package/dist/components/structural/index.d.ts.map +1 -1
  154. package/dist/components/utility/Cwd.d.ts +1 -2
  155. package/dist/components/utility/Cwd.d.ts.map +1 -1
  156. package/dist/components/utility/DateTime.d.ts +1 -2
  157. package/dist/components/utility/DateTime.d.ts.map +1 -1
  158. package/dist/components/utility/Hostname.d.ts +1 -2
  159. package/dist/components/utility/Hostname.d.ts.map +1 -1
  160. package/dist/components/utility/Timestamp.d.ts +1 -2
  161. package/dist/components/utility/Timestamp.d.ts.map +1 -1
  162. package/dist/components/utility/UUID.d.ts +1 -2
  163. package/dist/components/utility/UUID.d.ts.map +1 -1
  164. package/dist/components/utility/Username.d.ts +1 -2
  165. package/dist/components/utility/Username.d.ts.map +1 -1
  166. package/dist/components/utility/index.d.ts.map +1 -1
  167. package/dist/index.js +2030 -360
  168. package/dist/src/api.d.ts.map +1 -0
  169. package/dist/{component.d.ts → src/component.d.ts} +29 -0
  170. package/dist/src/component.d.ts.map +1 -0
  171. package/dist/src/create-prompt.d.ts.map +1 -0
  172. package/dist/{index.d.ts → src/index.d.ts} +13 -3
  173. package/dist/src/index.d.ts.map +1 -0
  174. package/dist/src/jsx-runtime/index.d.ts.map +1 -0
  175. package/dist/src/jsx-runtime/jsx-dev-runtime.d.ts.map +1 -0
  176. package/dist/src/render.d.ts.map +1 -0
  177. package/dist/src/services/babel-plugins/index.d.ts.map +1 -0
  178. package/dist/src/services/babel-plugins/name-hoisting.d.ts.map +1 -0
  179. package/dist/src/services/babel-plugins/uses-to-import.d.ts.map +1 -0
  180. package/dist/src/services/browser-support.d.ts.map +1 -0
  181. package/dist/src/services/component-discovery.d.ts +42 -0
  182. package/dist/src/services/component-discovery.d.ts.map +1 -0
  183. package/dist/src/services/file-search-engine.d.ts.map +1 -0
  184. package/dist/src/services/formula-parser.d.ts.map +1 -0
  185. package/dist/src/services/input-iterator.d.ts.map +1 -0
  186. package/dist/src/services/module-evaluator.d.ts.map +1 -0
  187. package/dist/src/services/module-loader.d.ts.map +1 -0
  188. package/dist/{services → src/services}/preprocessor.d.ts +0 -13
  189. package/dist/src/services/preprocessor.d.ts.map +1 -0
  190. package/dist/src/services/prop-validator.d.ts.map +1 -0
  191. package/dist/src/services/search-engine.d.ts.map +1 -0
  192. package/dist/src/services/transformer.d.ts +19 -0
  193. package/dist/src/services/transformer.d.ts.map +1 -0
  194. package/dist/{types → src/types}/context.d.ts +90 -6
  195. package/dist/src/types/context.d.ts.map +1 -0
  196. package/dist/src/types/element.d.ts.map +1 -0
  197. package/dist/{types → src/types}/index.d.ts +4 -5
  198. package/dist/src/types/index.d.ts.map +1 -0
  199. package/dist/{types → src/types}/input.d.ts +4 -14
  200. package/dist/src/types/input.d.ts.map +1 -0
  201. package/dist/src/types/module.d.ts.map +1 -0
  202. package/dist/{types → src/types}/render.d.ts +3 -13
  203. package/dist/src/types/render.d.ts.map +1 -0
  204. package/dist/src/types/search.d.ts.map +1 -0
  205. package/dist/src/types/symbols.d.ts.map +1 -0
  206. package/dist/src/utils/children.d.ts +29 -0
  207. package/dist/src/utils/children.d.ts.map +1 -0
  208. package/dist/src/utils/delimiter.d.ts +13 -0
  209. package/dist/src/utils/delimiter.d.ts.map +1 -0
  210. package/package.json +7 -7
  211. package/dist/api.d.ts.map +0 -1
  212. package/dist/component.d.ts.map +0 -1
  213. package/dist/create-prompt.d.ts.map +0 -1
  214. package/dist/index.d.ts.map +0 -1
  215. package/dist/jsx-runtime/index.d.ts.map +0 -1
  216. package/dist/jsx-runtime/jsx-dev-runtime.d.ts.map +0 -1
  217. package/dist/render.d.ts.map +0 -1
  218. package/dist/services/babel-plugins/index.d.ts.map +0 -1
  219. package/dist/services/babel-plugins/name-hoisting.d.ts.map +0 -1
  220. package/dist/services/babel-plugins/uses-to-import.d.ts.map +0 -1
  221. package/dist/services/browser-support.d.ts.map +0 -1
  222. package/dist/services/file-search-engine.d.ts.map +0 -1
  223. package/dist/services/formula-parser.d.ts.map +0 -1
  224. package/dist/services/input-iterator.d.ts.map +0 -1
  225. package/dist/services/module-evaluator.d.ts.map +0 -1
  226. package/dist/services/module-loader.d.ts.map +0 -1
  227. package/dist/services/preprocessor.d.ts.map +0 -1
  228. package/dist/services/prop-validator.d.ts.map +0 -1
  229. package/dist/services/search-engine.d.ts.map +0 -1
  230. package/dist/services/transformer.d.ts +0 -38
  231. package/dist/services/transformer.d.ts.map +0 -1
  232. package/dist/types/component.d.ts +0 -30
  233. package/dist/types/component.d.ts.map +0 -1
  234. package/dist/types/context.d.ts.map +0 -1
  235. package/dist/types/element.d.ts.map +0 -1
  236. package/dist/types/index.d.ts.map +0 -1
  237. package/dist/types/input.d.ts.map +0 -1
  238. package/dist/types/module.d.ts.map +0 -1
  239. package/dist/types/render.d.ts.map +0 -1
  240. package/dist/types/search.d.ts.map +0 -1
  241. package/dist/types/symbols.d.ts.map +0 -1
  242. /package/dist/{api.d.ts → src/api.d.ts} +0 -0
  243. /package/dist/{create-prompt.d.ts → src/create-prompt.d.ts} +0 -0
  244. /package/dist/{jsx-runtime → src/jsx-runtime}/index.d.ts +0 -0
  245. /package/dist/{jsx-runtime → src/jsx-runtime}/jsx-dev-runtime.d.ts +0 -0
  246. /package/dist/{render.d.ts → src/render.d.ts} +0 -0
  247. /package/dist/{services → src/services}/babel-plugins/index.d.ts +0 -0
  248. /package/dist/{services → src/services}/babel-plugins/name-hoisting.d.ts +0 -0
  249. /package/dist/{services → src/services}/babel-plugins/uses-to-import.d.ts +0 -0
  250. /package/dist/{services → src/services}/browser-support.d.ts +0 -0
  251. /package/dist/{services → src/services}/file-search-engine.d.ts +0 -0
  252. /package/dist/{services → src/services}/formula-parser.d.ts +0 -0
  253. /package/dist/{services → src/services}/input-iterator.d.ts +0 -0
  254. /package/dist/{services → src/services}/module-evaluator.d.ts +0 -0
  255. /package/dist/{services → src/services}/module-loader.d.ts +0 -0
  256. /package/dist/{services → src/services}/prop-validator.d.ts +0 -0
  257. /package/dist/{services → src/services}/search-engine.d.ts +0 -0
  258. /package/dist/{types → src/types}/element.d.ts +0 -0
  259. /package/dist/{types → src/types}/module.d.ts +0 -0
  260. /package/dist/{types → src/types}/search.d.ts +0 -0
  261. /package/dist/{types → src/types}/symbols.d.ts +0 -0
@@ -1,24 +1,124 @@
1
1
  import { z } from 'zod';
2
- import { Component } from '../../component';
3
- import { PuptNode, RenderContext } from '../../types';
2
+ import { Component, PuptNode, RenderContext, ComponentType } from '../../src/index.ts';
4
3
  export declare const promptSchema: z.ZodObject<{
5
4
  name: z.ZodString;
6
5
  version: z.ZodOptional<z.ZodString>;
7
6
  description: z.ZodOptional<z.ZodString>;
8
7
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ bare: z.ZodOptional<z.ZodBoolean>;
9
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
10
+ role: z.ZodOptional<z.ZodBoolean>;
11
+ format: z.ZodOptional<z.ZodBoolean>;
12
+ constraints: z.ZodOptional<z.ZodBoolean>;
13
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
14
+ guardrails: z.ZodOptional<z.ZodBoolean>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ format?: boolean | undefined;
17
+ role?: boolean | undefined;
18
+ constraints?: boolean | undefined;
19
+ guardrails?: boolean | undefined;
20
+ successCriteria?: boolean | undefined;
21
+ }, {
22
+ format?: boolean | undefined;
23
+ role?: boolean | undefined;
24
+ constraints?: boolean | undefined;
25
+ guardrails?: boolean | undefined;
26
+ successCriteria?: boolean | undefined;
27
+ }>, z.ZodLiteral<"none">]>>;
28
+ noRole: z.ZodOptional<z.ZodBoolean>;
29
+ noFormat: z.ZodOptional<z.ZodBoolean>;
30
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
31
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
32
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
33
+ role: z.ZodOptional<z.ZodString>;
34
+ expertise: z.ZodOptional<z.ZodString>;
35
+ format: z.ZodOptional<z.ZodString>;
36
+ audience: z.ZodOptional<z.ZodString>;
37
+ tone: z.ZodOptional<z.ZodString>;
38
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
39
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10
40
  name: z.ZodString;
11
41
  version: z.ZodOptional<z.ZodString>;
12
42
  description: z.ZodOptional<z.ZodString>;
13
43
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ bare: z.ZodOptional<z.ZodBoolean>;
45
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
46
+ role: z.ZodOptional<z.ZodBoolean>;
47
+ format: z.ZodOptional<z.ZodBoolean>;
48
+ constraints: z.ZodOptional<z.ZodBoolean>;
49
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
50
+ guardrails: z.ZodOptional<z.ZodBoolean>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ format?: boolean | undefined;
53
+ role?: boolean | undefined;
54
+ constraints?: boolean | undefined;
55
+ guardrails?: boolean | undefined;
56
+ successCriteria?: boolean | undefined;
57
+ }, {
58
+ format?: boolean | undefined;
59
+ role?: boolean | undefined;
60
+ constraints?: boolean | undefined;
61
+ guardrails?: boolean | undefined;
62
+ successCriteria?: boolean | undefined;
63
+ }>, z.ZodLiteral<"none">]>>;
64
+ noRole: z.ZodOptional<z.ZodBoolean>;
65
+ noFormat: z.ZodOptional<z.ZodBoolean>;
66
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
67
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
68
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
69
+ role: z.ZodOptional<z.ZodString>;
70
+ expertise: z.ZodOptional<z.ZodString>;
71
+ format: z.ZodOptional<z.ZodString>;
72
+ audience: z.ZodOptional<z.ZodString>;
73
+ tone: z.ZodOptional<z.ZodString>;
74
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
75
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15
76
  name: z.ZodString;
16
77
  version: z.ZodOptional<z.ZodString>;
17
78
  description: z.ZodOptional<z.ZodString>;
18
79
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ bare: z.ZodOptional<z.ZodBoolean>;
81
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
82
+ role: z.ZodOptional<z.ZodBoolean>;
83
+ format: z.ZodOptional<z.ZodBoolean>;
84
+ constraints: z.ZodOptional<z.ZodBoolean>;
85
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
86
+ guardrails: z.ZodOptional<z.ZodBoolean>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ format?: boolean | undefined;
89
+ role?: boolean | undefined;
90
+ constraints?: boolean | undefined;
91
+ guardrails?: boolean | undefined;
92
+ successCriteria?: boolean | undefined;
93
+ }, {
94
+ format?: boolean | undefined;
95
+ role?: boolean | undefined;
96
+ constraints?: boolean | undefined;
97
+ guardrails?: boolean | undefined;
98
+ successCriteria?: boolean | undefined;
99
+ }>, z.ZodLiteral<"none">]>>;
100
+ noRole: z.ZodOptional<z.ZodBoolean>;
101
+ noFormat: z.ZodOptional<z.ZodBoolean>;
102
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
103
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
104
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
105
+ role: z.ZodOptional<z.ZodString>;
106
+ expertise: z.ZodOptional<z.ZodString>;
107
+ format: z.ZodOptional<z.ZodString>;
108
+ audience: z.ZodOptional<z.ZodString>;
109
+ tone: z.ZodOptional<z.ZodString>;
110
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
111
  }, z.ZodTypeAny, "passthrough">>;
112
+ type PromptSlots = {
113
+ role?: ComponentType;
114
+ format?: ComponentType;
115
+ constraints?: ComponentType;
116
+ successCriteria?: ComponentType;
117
+ guardrails?: ComponentType;
118
+ };
20
119
  type PromptProps = z.infer<typeof promptSchema> & {
21
120
  children: PuptNode;
121
+ slots?: PromptSlots;
22
122
  };
23
123
  export declare class Prompt extends Component<PromptProps> {
24
124
  static schema: z.ZodObject<{
@@ -26,18 +126,118 @@ export declare class Prompt extends Component<PromptProps> {
26
126
  version: z.ZodOptional<z.ZodString>;
27
127
  description: z.ZodOptional<z.ZodString>;
28
128
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
129
+ bare: z.ZodOptional<z.ZodBoolean>;
130
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
131
+ role: z.ZodOptional<z.ZodBoolean>;
132
+ format: z.ZodOptional<z.ZodBoolean>;
133
+ constraints: z.ZodOptional<z.ZodBoolean>;
134
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
135
+ guardrails: z.ZodOptional<z.ZodBoolean>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ format?: boolean | undefined;
138
+ role?: boolean | undefined;
139
+ constraints?: boolean | undefined;
140
+ guardrails?: boolean | undefined;
141
+ successCriteria?: boolean | undefined;
142
+ }, {
143
+ format?: boolean | undefined;
144
+ role?: boolean | undefined;
145
+ constraints?: boolean | undefined;
146
+ guardrails?: boolean | undefined;
147
+ successCriteria?: boolean | undefined;
148
+ }>, z.ZodLiteral<"none">]>>;
149
+ noRole: z.ZodOptional<z.ZodBoolean>;
150
+ noFormat: z.ZodOptional<z.ZodBoolean>;
151
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
152
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
153
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
154
+ role: z.ZodOptional<z.ZodString>;
155
+ expertise: z.ZodOptional<z.ZodString>;
156
+ format: z.ZodOptional<z.ZodString>;
157
+ audience: z.ZodOptional<z.ZodString>;
158
+ tone: z.ZodOptional<z.ZodString>;
159
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
160
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
30
161
  name: z.ZodString;
31
162
  version: z.ZodOptional<z.ZodString>;
32
163
  description: z.ZodOptional<z.ZodString>;
33
164
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
+ bare: z.ZodOptional<z.ZodBoolean>;
166
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
167
+ role: z.ZodOptional<z.ZodBoolean>;
168
+ format: z.ZodOptional<z.ZodBoolean>;
169
+ constraints: z.ZodOptional<z.ZodBoolean>;
170
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
171
+ guardrails: z.ZodOptional<z.ZodBoolean>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ format?: boolean | undefined;
174
+ role?: boolean | undefined;
175
+ constraints?: boolean | undefined;
176
+ guardrails?: boolean | undefined;
177
+ successCriteria?: boolean | undefined;
178
+ }, {
179
+ format?: boolean | undefined;
180
+ role?: boolean | undefined;
181
+ constraints?: boolean | undefined;
182
+ guardrails?: boolean | undefined;
183
+ successCriteria?: boolean | undefined;
184
+ }>, z.ZodLiteral<"none">]>>;
185
+ noRole: z.ZodOptional<z.ZodBoolean>;
186
+ noFormat: z.ZodOptional<z.ZodBoolean>;
187
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
188
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
189
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
190
+ role: z.ZodOptional<z.ZodString>;
191
+ expertise: z.ZodOptional<z.ZodString>;
192
+ format: z.ZodOptional<z.ZodString>;
193
+ audience: z.ZodOptional<z.ZodString>;
194
+ tone: z.ZodOptional<z.ZodString>;
195
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
196
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
197
  name: z.ZodString;
36
198
  version: z.ZodOptional<z.ZodString>;
37
199
  description: z.ZodOptional<z.ZodString>;
38
200
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ bare: z.ZodOptional<z.ZodBoolean>;
202
+ defaults: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
203
+ role: z.ZodOptional<z.ZodBoolean>;
204
+ format: z.ZodOptional<z.ZodBoolean>;
205
+ constraints: z.ZodOptional<z.ZodBoolean>;
206
+ successCriteria: z.ZodOptional<z.ZodBoolean>;
207
+ guardrails: z.ZodOptional<z.ZodBoolean>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ format?: boolean | undefined;
210
+ role?: boolean | undefined;
211
+ constraints?: boolean | undefined;
212
+ guardrails?: boolean | undefined;
213
+ successCriteria?: boolean | undefined;
214
+ }, {
215
+ format?: boolean | undefined;
216
+ role?: boolean | undefined;
217
+ constraints?: boolean | undefined;
218
+ guardrails?: boolean | undefined;
219
+ successCriteria?: boolean | undefined;
220
+ }>, z.ZodLiteral<"none">]>>;
221
+ noRole: z.ZodOptional<z.ZodBoolean>;
222
+ noFormat: z.ZodOptional<z.ZodBoolean>;
223
+ noConstraints: z.ZodOptional<z.ZodBoolean>;
224
+ noSuccessCriteria: z.ZodOptional<z.ZodBoolean>;
225
+ noGuardrails: z.ZodOptional<z.ZodBoolean>;
226
+ role: z.ZodOptional<z.ZodString>;
227
+ expertise: z.ZodOptional<z.ZodString>;
228
+ format: z.ZodOptional<z.ZodString>;
229
+ audience: z.ZodOptional<z.ZodString>;
230
+ tone: z.ZodOptional<z.ZodString>;
231
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
232
  }, z.ZodTypeAny, "passthrough">>;
40
- render({ children }: PromptProps, _resolvedValue: void, _context: RenderContext): PuptNode;
233
+ render(props: PromptProps, _resolvedValue: void, context: RenderContext): PuptNode;
234
+ private renderSlotComponent;
235
+ private shouldIncludeSection;
236
+ private renderDefaultRole;
237
+ private renderDefaultFormat;
238
+ private renderDefaultConstraints;
239
+ private renderDefaultSuccessCriteria;
240
+ private renderDefaultGuardrails;
41
241
  }
42
242
  export {};
43
243
  //# sourceMappingURL=Prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../src/components/structural/Prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;gCAKT,CAAC;AAEjB,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEzE,qBAAa,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IAChD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;qCAAgB;IAE7B,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAK3F"}
1
+ {"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../components/structural/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAyC,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAe,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA0BpF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAkBT,CAAC;AAEjB,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC;AAEF,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAE9F,qBAAa,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IAChD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAgB;IAE7B,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;IA6JlF,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,4BAA4B;IAKpC,OAAO,CAAC,uBAAuB;CAchC"}
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const referenceSchema: z.ZodObject<{
4
+ title: z.ZodString;
5
+ url: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
8
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
+ title: z.ZodString;
10
+ url: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ title: z.ZodString;
15
+ url: z.ZodOptional<z.ZodString>;
16
+ description: z.ZodOptional<z.ZodString>;
17
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
18
+ }, z.ZodTypeAny, "passthrough">>;
19
+ type ReferenceProps = z.infer<typeof referenceSchema> & {
20
+ children?: PuptNode;
21
+ };
22
+ /**
23
+ * Describes a single reference or source material.
24
+ * Typically used as a child of References.
25
+ *
26
+ * Usage:
27
+ * <Reference title="API Docs" url="https://api.example.com/docs" />
28
+ * <Reference title="Internal Wiki" description="Team conventions" />
29
+ */
30
+ export declare class Reference extends Component<ReferenceProps> {
31
+ static schema: z.ZodObject<{
32
+ title: z.ZodString;
33
+ url: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
36
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
37
+ title: z.ZodString;
38
+ url: z.ZodOptional<z.ZodString>;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
41
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
42
+ title: z.ZodString;
43
+ url: z.ZodOptional<z.ZodString>;
44
+ description: z.ZodOptional<z.ZodString>;
45
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
46
+ }, z.ZodTypeAny, "passthrough">>;
47
+ render(props: ReferenceProps, _resolvedValue: void, _context: RenderContext): PuptNode;
48
+ }
49
+ export {};
50
+ //# sourceMappingURL=Reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../components/structural/Reference.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,eAAe;;;;;;;;;;;;;;;gCAKZ,CAAC;AAEjB,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhF;;;;;;;GAOG;AACH,qBAAa,SAAU,SAAQ,SAAS,CAAC,cAAc,CAAC;IACtD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;qCAAmB;IAEhC,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAoBvF"}
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const referencesSchema: z.ZodObject<{
4
+ extend: z.ZodOptional<z.ZodBoolean>;
5
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ title: z.ZodString;
7
+ url: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ title: string;
11
+ url?: string | undefined;
12
+ description?: string | undefined;
13
+ }, {
14
+ title: string;
15
+ url?: string | undefined;
16
+ description?: string | undefined;
17
+ }>, "many">>;
18
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
19
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
20
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21
+ extend: z.ZodOptional<z.ZodBoolean>;
22
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ title: z.ZodString;
24
+ url: z.ZodOptional<z.ZodString>;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ title: string;
28
+ url?: string | undefined;
29
+ description?: string | undefined;
30
+ }, {
31
+ title: string;
32
+ url?: string | undefined;
33
+ description?: string | undefined;
34
+ }>, "many">>;
35
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
36
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
37
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
38
+ extend: z.ZodOptional<z.ZodBoolean>;
39
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
+ title: z.ZodString;
41
+ url: z.ZodOptional<z.ZodString>;
42
+ description: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ title: string;
45
+ url?: string | undefined;
46
+ description?: string | undefined;
47
+ }, {
48
+ title: string;
49
+ url?: string | undefined;
50
+ description?: string | undefined;
51
+ }>, "many">>;
52
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
53
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
54
+ }, z.ZodTypeAny, "passthrough">>;
55
+ type ReferencesProps = z.infer<typeof referencesSchema> & {
56
+ children?: PuptNode;
57
+ };
58
+ /**
59
+ * Container component for reference materials and sources.
60
+ * Can include Reference children and/or a sources array.
61
+ *
62
+ * Usage:
63
+ * <References sources={[{ title: 'API Docs', url: 'https://...' }]}>
64
+ * <Reference title="Internal Wiki" description="Team conventions" />
65
+ * </References>
66
+ */
67
+ export declare class References extends Component<ReferencesProps> {
68
+ static schema: z.ZodObject<{
69
+ extend: z.ZodOptional<z.ZodBoolean>;
70
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
+ title: z.ZodString;
72
+ url: z.ZodOptional<z.ZodString>;
73
+ description: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ title: string;
76
+ url?: string | undefined;
77
+ description?: string | undefined;
78
+ }, {
79
+ title: string;
80
+ url?: string | undefined;
81
+ description?: string | undefined;
82
+ }>, "many">>;
83
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
84
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
85
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
86
+ extend: z.ZodOptional<z.ZodBoolean>;
87
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ title: z.ZodString;
89
+ url: z.ZodOptional<z.ZodString>;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ title: string;
93
+ url?: string | undefined;
94
+ description?: string | undefined;
95
+ }, {
96
+ title: string;
97
+ url?: string | undefined;
98
+ description?: string | undefined;
99
+ }>, "many">>;
100
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
101
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
102
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
+ extend: z.ZodOptional<z.ZodBoolean>;
104
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ title: z.ZodString;
106
+ url: z.ZodOptional<z.ZodString>;
107
+ description: z.ZodOptional<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ title: string;
110
+ url?: string | undefined;
111
+ description?: string | undefined;
112
+ }, {
113
+ title: string;
114
+ url?: string | undefined;
115
+ description?: string | undefined;
116
+ }>, "many">>;
117
+ style: z.ZodOptional<z.ZodEnum<["inline", "footnote", "bibliography"]>>;
118
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
119
+ }, z.ZodTypeAny, "passthrough">>;
120
+ render(props: ReferencesProps, _resolvedValue: void, _context: RenderContext): PuptNode;
121
+ }
122
+ export {};
123
+ //# sourceMappingURL=References.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"References.d.ts","sourceRoot":"","sources":["../../../components/structural/References.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;AAQxD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAKb,CAAC;AAEjB,KAAK,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAElF;;;;;;;;GAQG;AACH,qBAAa,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACxD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAoB;IAEjC,MAAM,CAAC,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAuCxF"}
@@ -1,37 +1,74 @@
1
1
  import { z } from 'zod';
2
- import { Component } from '../../component';
3
- import { PuptNode, RenderContext } from '../../types';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
4
3
  export declare const roleSchema: z.ZodObject<{
5
- expertise: z.ZodOptional<z.ZodString>;
4
+ preset: z.ZodOptional<z.ZodString>;
5
+ title: z.ZodOptional<z.ZodString>;
6
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
7
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
8
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
9
  domain: z.ZodOptional<z.ZodString>;
10
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
11
+ extend: z.ZodOptional<z.ZodBoolean>;
7
12
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
8
13
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
- expertise: z.ZodOptional<z.ZodString>;
14
+ preset: z.ZodOptional<z.ZodString>;
15
+ title: z.ZodOptional<z.ZodString>;
16
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
17
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
18
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
19
  domain: z.ZodOptional<z.ZodString>;
20
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
21
+ extend: z.ZodOptional<z.ZodBoolean>;
11
22
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
12
23
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
13
- expertise: z.ZodOptional<z.ZodString>;
24
+ preset: z.ZodOptional<z.ZodString>;
25
+ title: z.ZodOptional<z.ZodString>;
26
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
27
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
28
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
29
  domain: z.ZodOptional<z.ZodString>;
30
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
31
+ extend: z.ZodOptional<z.ZodBoolean>;
15
32
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
16
33
  }, z.ZodTypeAny, "passthrough">>;
17
34
  type RoleProps = z.infer<typeof roleSchema> & {
18
- children: PuptNode;
35
+ children?: PuptNode;
19
36
  };
20
37
  export declare class Role extends Component<RoleProps> {
21
38
  static schema: z.ZodObject<{
22
- expertise: z.ZodOptional<z.ZodString>;
39
+ preset: z.ZodOptional<z.ZodString>;
40
+ title: z.ZodOptional<z.ZodString>;
41
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
42
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
43
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
44
  domain: z.ZodOptional<z.ZodString>;
45
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
46
+ extend: z.ZodOptional<z.ZodBoolean>;
24
47
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
25
48
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
26
- expertise: z.ZodOptional<z.ZodString>;
49
+ preset: z.ZodOptional<z.ZodString>;
50
+ title: z.ZodOptional<z.ZodString>;
51
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
52
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
53
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
54
  domain: z.ZodOptional<z.ZodString>;
55
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
56
+ extend: z.ZodOptional<z.ZodBoolean>;
28
57
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
29
58
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
30
- expertise: z.ZodOptional<z.ZodString>;
59
+ preset: z.ZodOptional<z.ZodString>;
60
+ title: z.ZodOptional<z.ZodString>;
61
+ expertise: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
62
+ experience: z.ZodOptional<z.ZodEnum<["junior", "mid", "senior", "expert", "principal"]>>;
63
+ traits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
64
  domain: z.ZodOptional<z.ZodString>;
65
+ style: z.ZodOptional<z.ZodEnum<["professional", "casual", "academic", "friendly"]>>;
66
+ extend: z.ZodOptional<z.ZodBoolean>;
32
67
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
33
68
  }, z.ZodTypeAny, "passthrough">>;
34
- render({ delimiter, children }: RoleProps, _resolvedValue: void, _context: RenderContext): PuptNode;
69
+ render(props: RoleProps, _resolvedValue: void, context: RenderContext): PuptNode;
70
+ private getExperiencePrefix;
71
+ private buildExpertiseList;
35
72
  }
36
73
  export {};
37
74
  //# sourceMappingURL=Role.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/components/structural/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,UAAU;;;;;;;;;;;;gCAIP,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,SAAiB,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAY5G"}
1
+ {"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../components/structural/Role.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,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAUP,CAAC;AAEjB,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEtE,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IAC5C,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAc;IAE3B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;IA8DhF,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,kBAAkB;CA0B3B"}
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Component } from '../../component';
3
- import { PuptNode, RenderContext } from '../../types';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
4
3
  export declare const sectionSchema: z.ZodObject<{
5
4
  name: z.ZodOptional<z.ZodString>;
6
5
  delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/structural/Section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,aAAa;;;;;;;;;gCAGV,CAAC;AAEjB,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE3E,qBAAa,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAClD,MAAM,CAAC,MAAM;;;;;;;;;qCAAiB;IAE9B,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAe7G"}
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../components/structural/Section.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,aAAa;;;;;;;;;gCAGV,CAAC;AAEjB,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE3E,qBAAa,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAClD,MAAM,CAAC,MAAM;;;;;;;;;qCAAiB;IAE9B,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ;CAQ7G"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const specializationSchema: z.ZodObject<{
4
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
5
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
6
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
7
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
9
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
10
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
11
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
13
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
14
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
15
+ }, z.ZodTypeAny, "passthrough">>;
16
+ type SpecializationProps = z.infer<typeof specializationSchema> & {
17
+ children?: PuptNode;
18
+ };
19
+ export declare class Specialization extends Component<SpecializationProps> {
20
+ static schema: z.ZodObject<{
21
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
22
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
23
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
24
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
26
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
27
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
28
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29
+ areas: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
30
+ level: z.ZodOptional<z.ZodEnum<["familiar", "proficient", "expert", "authority"]>>;
31
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
32
+ }, z.ZodTypeAny, "passthrough">>;
33
+ render(props: SpecializationProps, _resolvedValue: void, _context: RenderContext): PuptNode;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=Specialization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Specialization.d.ts","sourceRoot":"","sources":["../../../components/structural/Specialization.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;AAE1F,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;CA0B5F"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ import { Component, PuptNode, RenderContext } from '../../src/index.ts';
3
+ export declare const styleSchema: z.ZodObject<{
4
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
5
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
6
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
7
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
8
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
10
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
11
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
12
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
15
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
16
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
17
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
18
+ }, z.ZodTypeAny, "passthrough">>;
19
+ type StyleProps = z.infer<typeof styleSchema> & {
20
+ children?: PuptNode;
21
+ };
22
+ export declare class Style extends Component<StyleProps> {
23
+ static schema: z.ZodObject<{
24
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
25
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
26
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
27
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
28
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
30
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
31
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
32
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ type: z.ZodOptional<z.ZodEnum<["concise", "detailed", "academic", "casual", "technical", "simple"]>>;
35
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "moderate", "verbose"]>>;
36
+ formality: z.ZodOptional<z.ZodEnum<["formal", "semi-formal", "informal"]>>;
37
+ delimiter: z.ZodOptional<z.ZodEnum<["xml", "markdown", "none"]>>;
38
+ }, z.ZodTypeAny, "passthrough">>;
39
+ render(props: StyleProps, _resolvedValue: void, _context: RenderContext): PuptNode;
40
+ private getStyleDescription;
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=Style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../../components/structural/Style.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,WAAW;;;;;;;;;;;;;;;gCAKR,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;IA6BlF,OAAO,CAAC,mBAAmB;CAW5B"}