@power-plant/core 0.0.3 → 0.0.5

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 (183) hide show
  1. package/dist/context-BGSa-2fY.mjs +2 -0
  2. package/dist/context-BGSa-2fY.mjs.map +1 -0
  3. package/dist/context-Bcrz4kGb.cjs +1 -0
  4. package/dist/create-0IEoomGw.cjs +1 -0
  5. package/dist/create-CYRTmdJO.mjs +2 -0
  6. package/dist/create-CYRTmdJO.mjs.map +1 -0
  7. package/dist/create-D_u2Zj81.cjs +1 -0
  8. package/dist/create-DcfhZUHw.mjs +2 -0
  9. package/dist/create-DcfhZUHw.mjs.map +1 -0
  10. package/dist/create-MFKW4s0V.cjs +1 -0
  11. package/dist/create-cqJljXdZ.mjs +2 -0
  12. package/dist/create-cqJljXdZ.mjs.map +1 -0
  13. package/dist/define-B5baoppv.d.cts +14 -0
  14. package/dist/define-B5baoppv.d.cts.map +1 -0
  15. package/dist/define-BNsSORkE.d.cts +13 -0
  16. package/dist/define-BNsSORkE.d.cts.map +1 -0
  17. package/dist/define-B__DotaM.cjs +1 -0
  18. package/dist/define-BpCv3wD0.d.mts +38 -0
  19. package/dist/define-BpCv3wD0.d.mts.map +1 -0
  20. package/dist/define-Bviec8Ry.d.cts +38 -0
  21. package/dist/define-Bviec8Ry.d.cts.map +1 -0
  22. package/dist/define-C5_Sx-Eg.mjs +2 -0
  23. package/dist/define-C5_Sx-Eg.mjs.map +1 -0
  24. package/dist/define-C_GLY1-q.cjs +1 -0
  25. package/dist/define-Cjl-0yK0.d.mts +13 -0
  26. package/dist/define-Cjl-0yK0.d.mts.map +1 -0
  27. package/dist/define-DE0RBdIR.mjs +2 -0
  28. package/dist/define-DE0RBdIR.mjs.map +1 -0
  29. package/dist/define-DQQxZK9L.d.mts +14 -0
  30. package/dist/define-DQQxZK9L.d.mts.map +1 -0
  31. package/dist/define-DVggP_03.cjs +1 -0
  32. package/dist/define-DY1s6sGY.mjs +2 -0
  33. package/dist/define-DY1s6sGY.mjs.map +1 -0
  34. package/dist/define-OeGEPyv1.d.cts +45 -0
  35. package/dist/define-OeGEPyv1.d.cts.map +1 -0
  36. package/dist/define-hhs2D0Hq.d.mts +45 -0
  37. package/dist/define-hhs2D0Hq.d.mts.map +1 -0
  38. package/dist/generator/index.cjs +1 -1
  39. package/dist/generator/index.d.cts +29 -2
  40. package/dist/generator/index.d.cts.map +1 -0
  41. package/dist/generator/index.d.mts +29 -2
  42. package/dist/generator/index.d.mts.map +1 -0
  43. package/dist/generator/index.mjs +2 -1
  44. package/dist/generator/index.mjs.map +1 -0
  45. package/dist/generator-9GSAWmOj.d.mts +126 -0
  46. package/dist/generator-9GSAWmOj.d.mts.map +1 -0
  47. package/dist/generator-D9KikId4.d.cts +126 -0
  48. package/dist/generator-D9KikId4.d.cts.map +1 -0
  49. package/dist/helpers-8tc33xyp.mjs +2 -0
  50. package/dist/helpers-8tc33xyp.mjs.map +1 -0
  51. package/dist/helpers-BWqqSR02.cjs +1 -0
  52. package/dist/helpers-BcTg0l_X.cjs +1 -0
  53. package/dist/helpers-Botqc1jf.cjs +1 -0
  54. package/dist/helpers-Cfl4NsE5.mjs +2 -0
  55. package/dist/helpers-Cfl4NsE5.mjs.map +1 -0
  56. package/dist/helpers-DwNCh4F3.mjs +2 -0
  57. package/dist/helpers-DwNCh4F3.mjs.map +1 -0
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.d.cts +101 -8
  60. package/dist/index.d.cts.map +1 -0
  61. package/dist/index.d.mts +101 -8
  62. package/dist/index.d.mts.map +1 -0
  63. package/dist/index.mjs +1 -1
  64. package/dist/input/index.cjs +1 -0
  65. package/dist/input/index.d.cts +35 -0
  66. package/dist/input/index.d.cts.map +1 -0
  67. package/dist/input/index.d.mts +35 -0
  68. package/dist/input/index.d.mts.map +1 -0
  69. package/dist/input/index.mjs +1 -0
  70. package/dist/input-C3yGEfI-.d.mts +58 -0
  71. package/dist/input-C3yGEfI-.d.mts.map +1 -0
  72. package/dist/input-Osyk3YIo.d.cts +58 -0
  73. package/dist/input-Osyk3YIo.d.cts.map +1 -0
  74. package/dist/output/index.cjs +1 -0
  75. package/dist/output/index.d.cts +35 -0
  76. package/dist/output/index.d.cts.map +1 -0
  77. package/dist/output/index.d.mts +35 -0
  78. package/dist/output/index.d.mts.map +1 -0
  79. package/dist/output/index.mjs +1 -0
  80. package/dist/schema/index.cjs +1 -0
  81. package/dist/schema/index.d.cts +33 -0
  82. package/dist/schema/index.d.cts.map +1 -0
  83. package/dist/schema/index.d.mts +33 -0
  84. package/dist/schema/index.d.mts.map +1 -0
  85. package/dist/schema/index.mjs +1 -0
  86. package/dist/schema-DvnNqFd4.d.cts +180 -0
  87. package/dist/schema-DvnNqFd4.d.cts.map +1 -0
  88. package/dist/schema-DvnNqFd4.d.mts +180 -0
  89. package/dist/schema-DvnNqFd4.d.mts.map +1 -0
  90. package/package.json +35 -135
  91. package/dist/base-BKbfgxno.d.cts +0 -28
  92. package/dist/base-BKbfgxno.d.cts.map +0 -1
  93. package/dist/base-BKbfgxno.d.mts +0 -28
  94. package/dist/base-BKbfgxno.d.mts.map +0 -1
  95. package/dist/create-B14Jt6Iu.d.mts +0 -17
  96. package/dist/create-B14Jt6Iu.d.mts.map +0 -1
  97. package/dist/create-Cfgth9sz.d.cts +0 -19
  98. package/dist/create-Cfgth9sz.d.cts.map +0 -1
  99. package/dist/create-D32Jusq_.d.cts +0 -17
  100. package/dist/create-D32Jusq_.d.cts.map +0 -1
  101. package/dist/create-DVpg-3po.d.mts +0 -19
  102. package/dist/create-DVpg-3po.d.mts.map +0 -1
  103. package/dist/create-DoyLue8r.d.cts +0 -17
  104. package/dist/create-DoyLue8r.d.cts.map +0 -1
  105. package/dist/create-vgEDsShD.d.mts +0 -17
  106. package/dist/create-vgEDsShD.d.mts.map +0 -1
  107. package/dist/define-DEe-HPar.d.cts +0 -38
  108. package/dist/define-DEe-HPar.d.cts.map +0 -1
  109. package/dist/define-RneysDu1.d.mts +0 -38
  110. package/dist/define-RneysDu1.d.mts.map +0 -1
  111. package/dist/generator/create.cjs +0 -1
  112. package/dist/generator/create.d.cts +0 -2
  113. package/dist/generator/create.d.mts +0 -2
  114. package/dist/generator/create.mjs +0 -2
  115. package/dist/generator/create.mjs.map +0 -1
  116. package/dist/generator/helpers.cjs +0 -1
  117. package/dist/generator/helpers.d.cts +0 -6
  118. package/dist/generator/helpers.d.cts.map +0 -1
  119. package/dist/generator/helpers.d.mts +0 -6
  120. package/dist/generator/helpers.d.mts.map +0 -1
  121. package/dist/generator/helpers.mjs +0 -2
  122. package/dist/generator/helpers.mjs.map +0 -1
  123. package/dist/generator-C1_Q-QAb.d.cts +0 -60
  124. package/dist/generator-C1_Q-QAb.d.cts.map +0 -1
  125. package/dist/generator-MC25UERM.d.mts +0 -60
  126. package/dist/generator-MC25UERM.d.mts.map +0 -1
  127. package/dist/index-BVVgDSdq.d.cts +0 -1
  128. package/dist/index-BVVgDSdq.d.mts +0 -1
  129. package/dist/metadata-Cb6iMZqW.cjs +0 -1
  130. package/dist/metadata-Dmhrb3Kv.mjs +0 -2
  131. package/dist/metadata-Dmhrb3Kv.mjs.map +0 -1
  132. package/dist/sink/create.cjs +0 -1
  133. package/dist/sink/create.d.cts +0 -2
  134. package/dist/sink/create.d.mts +0 -2
  135. package/dist/sink/create.mjs +0 -2
  136. package/dist/sink/create.mjs.map +0 -1
  137. package/dist/sink/define.cjs +0 -1
  138. package/dist/sink/define.d.cts +0 -37
  139. package/dist/sink/define.d.cts.map +0 -1
  140. package/dist/sink/define.d.mts +0 -37
  141. package/dist/sink/define.d.mts.map +0 -1
  142. package/dist/sink/define.mjs +0 -2
  143. package/dist/sink/define.mjs.map +0 -1
  144. package/dist/sink/helpers.cjs +0 -1
  145. package/dist/sink/helpers.d.cts +0 -13
  146. package/dist/sink/helpers.d.cts.map +0 -1
  147. package/dist/sink/helpers.d.mts +0 -13
  148. package/dist/sink/helpers.d.mts.map +0 -1
  149. package/dist/sink/helpers.mjs +0 -2
  150. package/dist/sink/helpers.mjs.map +0 -1
  151. package/dist/sink/index.cjs +0 -1
  152. package/dist/sink/index.d.cts +0 -2
  153. package/dist/sink/index.d.mts +0 -2
  154. package/dist/sink/index.mjs +0 -1
  155. package/dist/sink-CAWlC7am.d.mts +0 -58
  156. package/dist/sink-CAWlC7am.d.mts.map +0 -1
  157. package/dist/sink-CTx7UtqU.d.cts +0 -58
  158. package/dist/sink-CTx7UtqU.d.cts.map +0 -1
  159. package/dist/source/create.cjs +0 -1
  160. package/dist/source/create.d.cts +0 -2
  161. package/dist/source/create.d.mts +0 -2
  162. package/dist/source/create.mjs +0 -2
  163. package/dist/source/create.mjs.map +0 -1
  164. package/dist/source/define.cjs +0 -1
  165. package/dist/source/define.d.cts +0 -2
  166. package/dist/source/define.d.mts +0 -2
  167. package/dist/source/define.mjs +0 -2
  168. package/dist/source/define.mjs.map +0 -1
  169. package/dist/source/helpers.cjs +0 -1
  170. package/dist/source/helpers.d.cts +0 -13
  171. package/dist/source/helpers.d.cts.map +0 -1
  172. package/dist/source/helpers.d.mts +0 -13
  173. package/dist/source/helpers.d.mts.map +0 -1
  174. package/dist/source/helpers.mjs +0 -2
  175. package/dist/source/helpers.mjs.map +0 -1
  176. package/dist/source/index.cjs +0 -1
  177. package/dist/source/index.d.cts +0 -3
  178. package/dist/source/index.d.mts +0 -3
  179. package/dist/source/index.mjs +0 -1
  180. package/dist/source-B3tctCZE.d.cts +0 -57
  181. package/dist/source-B3tctCZE.d.cts.map +0 -1
  182. package/dist/source-DjKhYXZ6.d.mts +0 -57
  183. package/dist/source-DjKhYXZ6.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-plant/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "description": "Core package for Power Plant",
6
6
  "keywords": ["power-plant", "powerlines", "storm-software"],
@@ -68,145 +68,47 @@
68
68
  "default": "./dist/generator/index.mjs"
69
69
  }
70
70
  },
71
- "./generator/create": {
71
+ "./input": {
72
72
  "require": {
73
- "types": "./dist/generator/create.d.cts",
74
- "default": "./dist/generator/create.cjs"
73
+ "types": "./dist/input/index.d.cts",
74
+ "default": "./dist/input/index.cjs"
75
75
  },
76
76
  "import": {
77
- "types": "./dist/generator/create.d.mts",
78
- "default": "./dist/generator/create.mjs"
77
+ "types": "./dist/input/index.d.mts",
78
+ "default": "./dist/input/index.mjs"
79
79
  },
80
80
  "default": {
81
- "types": "./dist/generator/create.d.mts",
82
- "default": "./dist/generator/create.mjs"
81
+ "types": "./dist/input/index.d.mts",
82
+ "default": "./dist/input/index.mjs"
83
83
  }
84
84
  },
85
- "./generator/helpers": {
85
+ "./output": {
86
86
  "require": {
87
- "types": "./dist/generator/helpers.d.cts",
88
- "default": "./dist/generator/helpers.cjs"
87
+ "types": "./dist/output/index.d.cts",
88
+ "default": "./dist/output/index.cjs"
89
89
  },
90
90
  "import": {
91
- "types": "./dist/generator/helpers.d.mts",
92
- "default": "./dist/generator/helpers.mjs"
91
+ "types": "./dist/output/index.d.mts",
92
+ "default": "./dist/output/index.mjs"
93
93
  },
94
94
  "default": {
95
- "types": "./dist/generator/helpers.d.mts",
96
- "default": "./dist/generator/helpers.mjs"
95
+ "types": "./dist/output/index.d.mts",
96
+ "default": "./dist/output/index.mjs"
97
97
  }
98
98
  },
99
99
  "./package.json": "./package.json",
100
- "./sink": {
100
+ "./schema": {
101
101
  "require": {
102
- "types": "./dist/sink/index.d.cts",
103
- "default": "./dist/sink/index.cjs"
102
+ "types": "./dist/schema/index.d.cts",
103
+ "default": "./dist/schema/index.cjs"
104
104
  },
105
105
  "import": {
106
- "types": "./dist/sink/index.d.mts",
107
- "default": "./dist/sink/index.mjs"
106
+ "types": "./dist/schema/index.d.mts",
107
+ "default": "./dist/schema/index.mjs"
108
108
  },
109
109
  "default": {
110
- "types": "./dist/sink/index.d.mts",
111
- "default": "./dist/sink/index.mjs"
112
- }
113
- },
114
- "./sink/create": {
115
- "require": {
116
- "types": "./dist/sink/create.d.cts",
117
- "default": "./dist/sink/create.cjs"
118
- },
119
- "import": {
120
- "types": "./dist/sink/create.d.mts",
121
- "default": "./dist/sink/create.mjs"
122
- },
123
- "default": {
124
- "types": "./dist/sink/create.d.mts",
125
- "default": "./dist/sink/create.mjs"
126
- }
127
- },
128
- "./sink/define": {
129
- "require": {
130
- "types": "./dist/sink/define.d.cts",
131
- "default": "./dist/sink/define.cjs"
132
- },
133
- "import": {
134
- "types": "./dist/sink/define.d.mts",
135
- "default": "./dist/sink/define.mjs"
136
- },
137
- "default": {
138
- "types": "./dist/sink/define.d.mts",
139
- "default": "./dist/sink/define.mjs"
140
- }
141
- },
142
- "./sink/helpers": {
143
- "require": {
144
- "types": "./dist/sink/helpers.d.cts",
145
- "default": "./dist/sink/helpers.cjs"
146
- },
147
- "import": {
148
- "types": "./dist/sink/helpers.d.mts",
149
- "default": "./dist/sink/helpers.mjs"
150
- },
151
- "default": {
152
- "types": "./dist/sink/helpers.d.mts",
153
- "default": "./dist/sink/helpers.mjs"
154
- }
155
- },
156
- "./source": {
157
- "require": {
158
- "types": "./dist/source/index.d.cts",
159
- "default": "./dist/source/index.cjs"
160
- },
161
- "import": {
162
- "types": "./dist/source/index.d.mts",
163
- "default": "./dist/source/index.mjs"
164
- },
165
- "default": {
166
- "types": "./dist/source/index.d.mts",
167
- "default": "./dist/source/index.mjs"
168
- }
169
- },
170
- "./source/create": {
171
- "require": {
172
- "types": "./dist/source/create.d.cts",
173
- "default": "./dist/source/create.cjs"
174
- },
175
- "import": {
176
- "types": "./dist/source/create.d.mts",
177
- "default": "./dist/source/create.mjs"
178
- },
179
- "default": {
180
- "types": "./dist/source/create.d.mts",
181
- "default": "./dist/source/create.mjs"
182
- }
183
- },
184
- "./source/define": {
185
- "require": {
186
- "types": "./dist/source/define.d.cts",
187
- "default": "./dist/source/define.cjs"
188
- },
189
- "import": {
190
- "types": "./dist/source/define.d.mts",
191
- "default": "./dist/source/define.mjs"
192
- },
193
- "default": {
194
- "types": "./dist/source/define.d.mts",
195
- "default": "./dist/source/define.mjs"
196
- }
197
- },
198
- "./source/helpers": {
199
- "require": {
200
- "types": "./dist/source/helpers.d.cts",
201
- "default": "./dist/source/helpers.cjs"
202
- },
203
- "import": {
204
- "types": "./dist/source/helpers.d.mts",
205
- "default": "./dist/source/helpers.mjs"
206
- },
207
- "default": {
208
- "types": "./dist/source/helpers.d.mts",
209
- "default": "./dist/source/helpers.mjs"
110
+ "types": "./dist/schema/index.d.mts",
111
+ "default": "./dist/schema/index.mjs"
210
112
  }
211
113
  }
212
114
  },
@@ -216,22 +118,22 @@
216
118
  "typings": "dist/index.d.mts",
217
119
  "files": ["dist"],
218
120
  "dependencies": {
219
- "@alloy-js/core": "^0.23.1",
220
- "@alloy-js/markdown": "^0.23.0",
221
- "@alloy-js/typescript": "^0.23.0",
222
- "@power-plant/schema": "^0.0.3",
121
+ "@power-plant/schema": "^0.0.5",
223
122
  "@powerlines/core": "^0.48.60",
224
123
  "@powerlines/engine": "^0.49.62",
225
124
  "@powerlines/plugin-alloy": "^0.26.232",
226
125
  "@powerlines/plugin-automd": "^0.1.600",
227
- "@stryke/convert": "^0.7.23",
228
- "@stryke/fs": "^0.33.93",
229
- "@stryke/helpers": "^0.10.32",
230
- "@stryke/json": "^0.15.16",
231
- "@stryke/path": "^0.29.19",
232
- "@stryke/resolve": "^0.0.8",
233
- "@stryke/string-format": "^0.17.34",
234
- "@stryke/type-checks": "^0.6.25",
126
+ "@stryke/convert": "^0.7.25",
127
+ "@stryke/date": "^0.0.6",
128
+ "@stryke/fs": "^0.33.95",
129
+ "@stryke/helpers": "^0.10.34",
130
+ "@stryke/json": "^0.15.18",
131
+ "@stryke/path": "^0.29.21",
132
+ "@stryke/resolve": "^0.0.10",
133
+ "@stryke/string-format": "^0.17.36",
134
+ "@stryke/type-checks": "^0.6.27",
135
+ "@stryke/types": "^0.12.22",
136
+ "@stryke/unique-id": "^0.3.106",
235
137
  "automd": "^0.4.3",
236
138
  "defu": "^6.1.7",
237
139
  "jiti": "^2.7.0",
@@ -240,11 +142,9 @@
240
142
  },
241
143
  "devDependencies": {
242
144
  "@powerlines/plugin-tsdown": "^0.1.540",
243
- "@stryke/types": "^0.12.20",
244
145
  "@types/node": "^25.9.4",
245
146
  "typescript": "^6.0.3"
246
147
  },
247
148
  "publishConfig": { "access": "public" },
248
- "inlinedDependencies": { "@stryke/types": "0.12.20" },
249
- "gitHead": "43169e6b829afa991d5a0a3ea05a49b800aa9d44"
149
+ "gitHead": "bdd629384084ca6a276f91c0ee5b3fdfca4b6f2e"
250
150
  }
@@ -1,28 +0,0 @@
1
- //#region ../../../node_modules/.pnpm/@stryke+types@0.12.20/node_modules/@stryke/types/dist/base.d.mts
2
- /**
3
- * Matches a value that is either of type `T` or a promise that resolves to `T`.
4
- *
5
- * @example
6
- * ```ts
7
- * type Result = MaybePromise<string>;
8
- * // string | Promise<string>
9
- * ```
10
- */
11
- type MaybePromise<T> = T | Promise<T>;
12
- /**
13
- * Matches a reducer function that takes the current state and an action, returning the next state.
14
- *
15
- * @remarks
16
- * This is the function signature used in state management libraries like Redux.
17
- *
18
- * @example
19
- * ```ts
20
- * type CounterReducer = ReducerFunction<number, { type: 'increment' | 'decrement' }>;
21
- * const reducer: CounterReducer = (state, action) => {
22
- * return action.type === 'increment' ? state + 1 : state - 1;
23
- * };
24
- * ```
25
- */
26
- //#endregion
27
- export { MaybePromise as t };
28
- //# sourceMappingURL=base-BKbfgxno.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-BKbfgxno.d.cts","names":["SerializablePrimitive","Primitive","Date","RegExp","Function","Promise","value","Record","TypeTester","Value","X","A","ReadonlyArray","P","List","R","args","FunctionLike","T","Nullish","Map","WeakMap","WeakKey","emptyObjectSymbol","PlainObject","AnyArray","AnyMap","AnyWeakMap","IndexType","TypedIndexable","F1","F2","Uppercase","Lowercase","AnyCase","F","EMPTY_STRING","_args","prototype","clone","TState","TAction","state","action","IArguments","Set","K","Omit","Required","Pick","Narrowable","NarrowRaw","Try","A1","A2","Catch","N","Result","ComputeRange","TValue","TName","name","File","D","BrowserNativeObject","NestedValue","DeepPartial","Depth","DeepRequired","DeepNonNullable","NonNullable","DeepReadonly","Array","U","DeepReadonlyNonNullable","DeepReadonlyNullable","initialValue","currentValue","BaseType","Exclude","Key","B","G","KeyType","ExcludeType","IsEqual","requireExactProps","ObjectType","KeysType","Options","ExceptOptions","Filter","Partial","Keys","$NestedValue","current","id","version","sequence","__type","Typed","isTypeOf","BuiltIns","arguments_","IsNull","IsUndefined","AnyFunction","globalThis","Arguments","AbstractConstructor","L","Fill","BuildTuple","ArrayBuffer","DataView","Error","TypedArray","Blob","StructuredCloneable","key","ReadonlyMap","ReadonlySet","StructuredCloneablePrimitive","StructuredCloneableData","StructuredCloneableCollection"],"sources":["../../../../node_modules/.pnpm/@stryke+types@0.12.20/node_modules/@stryke/types/dist/base.d.mts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KAmOK,YAAA,MAAkB,CAAA,GAAI,OAAA,CAAQ,CAAA"}
@@ -1,28 +0,0 @@
1
- //#region ../../../node_modules/.pnpm/@stryke+types@0.12.20/node_modules/@stryke/types/dist/base.d.mts
2
- /**
3
- * Matches a value that is either of type `T` or a promise that resolves to `T`.
4
- *
5
- * @example
6
- * ```ts
7
- * type Result = MaybePromise<string>;
8
- * // string | Promise<string>
9
- * ```
10
- */
11
- type MaybePromise<T> = T | Promise<T>;
12
- /**
13
- * Matches a reducer function that takes the current state and an action, returning the next state.
14
- *
15
- * @remarks
16
- * This is the function signature used in state management libraries like Redux.
17
- *
18
- * @example
19
- * ```ts
20
- * type CounterReducer = ReducerFunction<number, { type: 'increment' | 'decrement' }>;
21
- * const reducer: CounterReducer = (state, action) => {
22
- * return action.type === 'increment' ? state + 1 : state - 1;
23
- * };
24
- * ```
25
- */
26
- //#endregion
27
- export { MaybePromise as t };
28
- //# sourceMappingURL=base-BKbfgxno.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-BKbfgxno.d.mts","names":["SerializablePrimitive","Primitive","Date","RegExp","Function","Promise","value","Record","TypeTester","Value","X","A","ReadonlyArray","P","List","R","args","FunctionLike","T","Nullish","Map","WeakMap","WeakKey","emptyObjectSymbol","PlainObject","AnyArray","AnyMap","AnyWeakMap","IndexType","TypedIndexable","F1","F2","Uppercase","Lowercase","AnyCase","F","EMPTY_STRING","_args","prototype","clone","TState","TAction","state","action","IArguments","Set","K","Omit","Required","Pick","Narrowable","NarrowRaw","Try","A1","A2","Catch","N","Result","ComputeRange","TValue","TName","name","File","D","BrowserNativeObject","NestedValue","DeepPartial","Depth","DeepRequired","DeepNonNullable","NonNullable","DeepReadonly","Array","U","DeepReadonlyNonNullable","DeepReadonlyNullable","initialValue","currentValue","BaseType","Exclude","Key","B","G","KeyType","ExcludeType","IsEqual","requireExactProps","ObjectType","KeysType","Options","ExceptOptions","Filter","Partial","Keys","$NestedValue","current","id","version","sequence","__type","Typed","isTypeOf","BuiltIns","arguments_","IsNull","IsUndefined","AnyFunction","globalThis","Arguments","AbstractConstructor","L","Fill","BuildTuple","ArrayBuffer","DataView","Error","TypedArray","Blob","StructuredCloneable","key","ReadonlyMap","ReadonlySet","StructuredCloneablePrimitive","StructuredCloneableData","StructuredCloneableCollection"],"sources":["../../../../node_modules/.pnpm/@stryke+types@0.12.20/node_modules/@stryke/types/dist/base.d.mts"],"x_google_ignoreList":[0],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { i as SinkInput, n as Sink, t as InferCreateSinkOptions } from "./sink-CAWlC7am.mjs";
2
- import { ExtractedSchema, Meta, MetaInput, SchemaOf } from "@power-plant/schema/types";
3
-
4
- //#region src/sink/create.d.ts
5
- declare function extractSinkMeta<TSpec>(schema: ExtractedSchema<TSpec>, input?: MetaInput<TSpec>): Meta<TSpec>;
6
- /**
7
- * Normalizes any accepted sink input into a concrete sink descriptor.
8
- *
9
- * @param schema - The schema that the sink input is expected to conform to.
10
- * @param input - The sink input to normalize.
11
- * @param options - Optional options for resolving the sink input.
12
- * @returns A promise that resolves to a normalized sink descriptor.
13
- */
14
- declare function createSink<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec>, input: SinkInput<TSpec, TOptions, TReturns>, options?: InferCreateSinkOptions<typeof input>): Promise<Sink<TSpec, TOptions, TReturns>>;
15
- //#endregion
16
- export { extractSinkMeta as n, createSink as t };
17
- //# sourceMappingURL=create-B14Jt6Iu.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-B14Jt6Iu.d.mts","names":[],"sources":["../src/sink/create.ts"],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { a as InferCreateGeneratorOptions, n as GeneratorInput, t as Generator } from "./generator-C1_Q-QAb.cjs";
2
-
3
- //#region src/generator/create.d.ts
4
- /**
5
- * Creates a generator from raw schema/source/sink inputs and resolves all descriptors.
6
- *
7
- * @remarks
8
- * This function is used to create a generator from raw schema, source, and sink inputs. It resolves all descriptors and returns a fully constructed generator that can be used to generate output based on the provided schema and options.
9
- *
10
- * @template TSpec - The type of the specification that the generator will produce.
11
- * @template TOptions - The type of the options that will be passed to the generator during generation.
12
- * @param input - The generator input containing schema, source, sink, and optional meta information.
13
- * @param options - Optional extraction options for schema, source, and sink.
14
- * @returns A promise that resolves to a fully constructed generator.
15
- */
16
- declare function createGenerator<TSpec, TOptions extends object, TReturns = void>(input: GeneratorInput<TSpec, TOptions, TReturns>, options?: InferCreateGeneratorOptions<typeof input>): Promise<Generator<TSpec, TOptions, TReturns>>;
17
- //#endregion
18
- export { createGenerator as t };
19
- //# sourceMappingURL=create-Cfgth9sz.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-Cfgth9sz.d.cts","names":[],"sources":["../src/generator/create.ts"],"mappings":";;;;;AA2CA;;;;;;;;;;iBAAsB,eAAA,kDAKpB,KAAA,EAAO,cAAA,CAAe,KAAA,EAAO,QAAA,EAAU,QAAA,GACvC,OAAA,GAAS,2BAAA,QAAmC,KAAA,IAC3C,OAAA,CAAQ,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,17 +0,0 @@
1
- import { i as SinkInput, n as Sink, t as InferCreateSinkOptions } from "./sink-CTx7UtqU.cjs";
2
- import { ExtractedSchema, Meta, MetaInput, SchemaOf } from "@power-plant/schema/types";
3
-
4
- //#region src/sink/create.d.ts
5
- declare function extractSinkMeta<TSpec>(schema: ExtractedSchema<TSpec>, input?: MetaInput<TSpec>): Meta<TSpec>;
6
- /**
7
- * Normalizes any accepted sink input into a concrete sink descriptor.
8
- *
9
- * @param schema - The schema that the sink input is expected to conform to.
10
- * @param input - The sink input to normalize.
11
- * @param options - Optional options for resolving the sink input.
12
- * @returns A promise that resolves to a normalized sink descriptor.
13
- */
14
- declare function createSink<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec>, input: SinkInput<TSpec, TOptions, TReturns>, options?: InferCreateSinkOptions<typeof input>): Promise<Sink<TSpec, TOptions, TReturns>>;
15
- //#endregion
16
- export { extractSinkMeta as n, createSink as t };
17
- //# sourceMappingURL=create-D32Jusq_.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-D32Jusq_.d.cts","names":[],"sources":["../src/sink/create.ts"],"mappings":";;;;iBAkCgB,eAAA,QACd,MAAA,EAAQ,eAAA,CAAgB,KAAA,GACxB,KAAA,GAAQ,SAAA,CAAU,KAAA,IACjB,IAAA,CAAK,KAAA;;AAHR;;;;;;;iBAuBsB,UAAA,kDAKpB,MAAA,EAAQ,QAAA,CAAS,KAAA,GACjB,KAAA,EAAO,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA,GAClC,OAAA,GAAS,sBAAA,QAA8B,KAAA,IACtC,OAAA,CAAQ,IAAA,CAAK,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,19 +0,0 @@
1
- import { a as InferCreateGeneratorOptions, n as GeneratorInput, t as Generator } from "./generator-MC25UERM.mjs";
2
-
3
- //#region src/generator/create.d.ts
4
- /**
5
- * Creates a generator from raw schema/source/sink inputs and resolves all descriptors.
6
- *
7
- * @remarks
8
- * This function is used to create a generator from raw schema, source, and sink inputs. It resolves all descriptors and returns a fully constructed generator that can be used to generate output based on the provided schema and options.
9
- *
10
- * @template TSpec - The type of the specification that the generator will produce.
11
- * @template TOptions - The type of the options that will be passed to the generator during generation.
12
- * @param input - The generator input containing schema, source, sink, and optional meta information.
13
- * @param options - Optional extraction options for schema, source, and sink.
14
- * @returns A promise that resolves to a fully constructed generator.
15
- */
16
- declare function createGenerator<TSpec, TOptions extends object, TReturns = void>(input: GeneratorInput<TSpec, TOptions, TReturns>, options?: InferCreateGeneratorOptions<typeof input>): Promise<Generator<TSpec, TOptions, TReturns>>;
17
- //#endregion
18
- export { createGenerator as t };
19
- //# sourceMappingURL=create-DVpg-3po.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DVpg-3po.d.mts","names":[],"sources":["../src/generator/create.ts"],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { i as SourceInput, n as Source, t as InferCreateSourceOptions } from "./source-B3tctCZE.cjs";
2
- import { ExtractedSchema, Meta, MetaInput, SchemaOf } from "@power-plant/schema/types";
3
-
4
- //#region src/source/create.d.ts
5
- declare function extractSourceMeta<TSpec>(schema: ExtractedSchema<TSpec>, input?: MetaInput<TSpec>): Meta<TSpec>;
6
- /**
7
- * Normalizes any accepted source input into a concrete source descriptor.
8
- *
9
- * @param schema - The schema that the source input is expected to conform to.
10
- * @param input - The source input to normalize.
11
- * @param options - Optional options for resolving the source input.
12
- * @returns A promise that resolves to a normalized source descriptor.
13
- */
14
- declare function createSource<TSpec, TOptions extends object>(schema: SchemaOf<TSpec>, input: SourceInput<TSpec, TOptions>, options?: InferCreateSourceOptions<typeof input>): Promise<Source<TSpec, TOptions>>;
15
- //#endregion
16
- export { extractSourceMeta as n, createSource as t };
17
- //# sourceMappingURL=create-DoyLue8r.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DoyLue8r.d.cts","names":[],"sources":["../src/source/create.ts"],"mappings":";;;;iBAuCgB,iBAAA,QACd,MAAA,EAAQ,eAAA,CAAgB,KAAA,GACxB,KAAA,GAAQ,SAAA,CAAU,KAAA,IACjB,IAAA,CAAK,KAAA;;AAHR;;;;;;;iBAuBsB,YAAA,iCACpB,MAAA,EAAQ,QAAA,CAAS,KAAA,GACjB,KAAA,EAAO,WAAA,CAAY,KAAA,EAAO,QAAA,GAC1B,OAAA,GAAS,wBAAA,QAAgC,KAAA,IACxC,OAAA,CAAQ,MAAA,CAAO,KAAA,EAAO,QAAA"}
@@ -1,17 +0,0 @@
1
- import { i as SourceInput, n as Source, t as InferCreateSourceOptions } from "./source-DjKhYXZ6.mjs";
2
- import { ExtractedSchema, Meta, MetaInput, SchemaOf } from "@power-plant/schema/types";
3
-
4
- //#region src/source/create.d.ts
5
- declare function extractSourceMeta<TSpec>(schema: ExtractedSchema<TSpec>, input?: MetaInput<TSpec>): Meta<TSpec>;
6
- /**
7
- * Normalizes any accepted source input into a concrete source descriptor.
8
- *
9
- * @param schema - The schema that the source input is expected to conform to.
10
- * @param input - The source input to normalize.
11
- * @param options - Optional options for resolving the source input.
12
- * @returns A promise that resolves to a normalized source descriptor.
13
- */
14
- declare function createSource<TSpec, TOptions extends object>(schema: SchemaOf<TSpec>, input: SourceInput<TSpec, TOptions>, options?: InferCreateSourceOptions<typeof input>): Promise<Source<TSpec, TOptions>>;
15
- //#endregion
16
- export { extractSourceMeta as n, createSource as t };
17
- //# sourceMappingURL=create-vgEDsShD.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-vgEDsShD.d.mts","names":[],"sources":["../src/source/create.ts"],"mappings":""}
@@ -1,38 +0,0 @@
1
- import { a as SourceInputObject, i as SourceInput } from "./source-B3tctCZE.cjs";
2
-
3
- //#region src/source/define.d.ts
4
- /**
5
- * Defines a source input object. If the provided source is already a source input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `source` property.
6
- *
7
- * @example
8
- * ```ts
9
- * import { defineSource } from "@power-plant/core";
10
- *
11
- * // Define a source from a source function
12
- * export default defineSource((options) => {
13
- * // Your source logic here
14
- * });
15
- *
16
- * // Define a source from an existing source input object
17
- * export default defineSource({
18
- * meta: {
19
- * name: "My Source",
20
- * version: "1.0.0",
21
- * description: "A source that does something.",
22
- * },
23
- * schema: z.object({
24
- * // Your schema definition here
25
- * }),
26
- * source: (options) => {
27
- * // Your source logic here
28
- * },
29
- * });
30
- * ```
31
- *
32
- * @param source - The source input to define. This can be either a source input object or a source function.
33
- * @returns A source input object that contains the provided source. If the input was already a source input object, it will be returned unchanged.
34
- */
35
- declare function defineSource<TSpec, TOptions extends object>(source: SourceInput<TSpec, TOptions>): SourceInputObject<TSpec, TOptions>;
36
- //#endregion
37
- export { defineSource as t };
38
- //# sourceMappingURL=define-DEe-HPar.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-DEe-HPar.d.cts","names":[],"sources":["../src/source/define.ts"],"mappings":";;;;;AAoDA;;;;;;;;;;;;;;;;;;;;;AAEoC;;;;;;;;iBAFpB,YAAA,iCACd,MAAA,EAAQ,WAAA,CAAY,KAAA,EAAO,QAAA,IAC1B,iBAAA,CAAkB,KAAA,EAAO,QAAA"}
@@ -1,38 +0,0 @@
1
- import { a as SourceInputObject, i as SourceInput } from "./source-DjKhYXZ6.mjs";
2
-
3
- //#region src/source/define.d.ts
4
- /**
5
- * Defines a source input object. If the provided source is already a source input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `source` property.
6
- *
7
- * @example
8
- * ```ts
9
- * import { defineSource } from "@power-plant/core";
10
- *
11
- * // Define a source from a source function
12
- * export default defineSource((options) => {
13
- * // Your source logic here
14
- * });
15
- *
16
- * // Define a source from an existing source input object
17
- * export default defineSource({
18
- * meta: {
19
- * name: "My Source",
20
- * version: "1.0.0",
21
- * description: "A source that does something.",
22
- * },
23
- * schema: z.object({
24
- * // Your schema definition here
25
- * }),
26
- * source: (options) => {
27
- * // Your source logic here
28
- * },
29
- * });
30
- * ```
31
- *
32
- * @param source - The source input to define. This can be either a source input object or a source function.
33
- * @returns A source input object that contains the provided source. If the input was already a source input object, it will be returned unchanged.
34
- */
35
- declare function defineSource<TSpec, TOptions extends object>(source: SourceInput<TSpec, TOptions>): SourceInputObject<TSpec, TOptions>;
36
- //#endregion
37
- export { defineSource as t };
38
- //# sourceMappingURL=define-RneysDu1.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-RneysDu1.d.mts","names":[],"sources":["../src/source/define.ts"],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../sink/create.cjs"),t=require("../source/create.cjs"),n=require("./helpers.cjs");let r=require("@power-plant/schema/extract"),i=require("@stryke/resolve/load"),a=require("@stryke/type-checks/is-function");async function o(o,s={}){let c;c=n.isGeneratorInputObject(o)?o:await(0,i.load)(o,s);let l=await(0,r.extract)(c.schema,s),[u,d]=await Promise.all([t.createSource(l,c.source,s),e.createSink(l,c.sink,s)]);return{meta:c.meta,schema:l,source:u,sink:d,generate:async e=>{let t=(0,a.isFunction)(u.source)?await u.source(e):u.source,n=typeof c.meta?.description==`function`?c.meta.description(t):c.meta?.description;return n&&console.log(`Generating ${n}...`),d.sink(t,e)}}}exports.createGenerator=o;
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-Cfgth9sz.cjs";
2
- export { createGenerator };
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-DVpg-3po.mjs";
2
- export { createGenerator };
@@ -1,2 +0,0 @@
1
- import{createSink as e}from"../sink/create.mjs";import{createSource as t}from"../source/create.mjs";import{isGeneratorInputObject as n}from"./helpers.mjs";import{extract as r}from"@power-plant/schema/extract";import{load as i}from"@stryke/resolve/load";import{isFunction as a}from"@stryke/type-checks/is-function";async function o(o,s={}){let c;c=n(o)?o:await i(o,s);let l=await r(c.schema,s),[u,d]=await Promise.all([t(l,c.source,s),e(l,c.sink,s)]);return{meta:c.meta,schema:l,source:u,sink:d,generate:async e=>{let t=a(u.source)?await u.source(e):u.source,n=typeof c.meta?.description==`function`?c.meta.description(t):c.meta?.description;return n&&console.log(`Generating ${n}...`),d.sink(t,e)}}}export{o as createGenerator};
2
- //# sourceMappingURL=create.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@stryke/type-checks/is-set-object");function t(t){return(0,e.isSetObject)(t)&&`schema`in t&&`source`in t&&`sink`in t}exports.isGeneratorInputObject=t;
@@ -1,6 +0,0 @@
1
- import { r as GeneratorInputObject } from "../generator-C1_Q-QAb.cjs";
2
- //#region src/generator/helpers.d.ts
3
- declare function isGeneratorInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is GeneratorInputObject<TSpec, TOptions, TReturns>;
4
- //#endregion
5
- export { isGeneratorInputObject };
6
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/generator/helpers.ts"],"mappings":";;iBAqBgB,sBAAA,kDAId,KAAA,YAAiB,KAAA,IAAS,oBAAA,CAAqB,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,6 +0,0 @@
1
- import { r as GeneratorInputObject } from "../generator-MC25UERM.mjs";
2
- //#region src/generator/helpers.d.ts
3
- declare function isGeneratorInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is GeneratorInputObject<TSpec, TOptions, TReturns>;
4
- //#endregion
5
- export { isGeneratorInputObject };
6
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/generator/helpers.ts"],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{isSetObject as e}from"@stryke/type-checks/is-set-object";function t(t){return e(t)&&`schema`in t&&`source`in t&&`sink`in t}export{t as isGeneratorInputObject};
2
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":[],"mappings":""}