@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
@@ -1,60 +0,0 @@
1
- import { i as SinkInput, n as Sink } from "./sink-CTx7UtqU.cjs";
2
- import { i as SourceInput, n as Source } from "./source-B3tctCZE.cjs";
3
- import { SchemaInput, SchemaOf } from "@power-plant/schema";
4
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
5
-
6
- //#region src/types/generator.d.ts
7
- interface GeneratorMeta<TSpec, TOptions extends object> {
8
- /**
9
- * A string description (or a function that returns a string) outlining the purpose or behavior of the generator.
10
- */
11
- description?: string | ((spec: TSpec) => string);
12
- }
13
- interface GeneratorInputObject<TSpec, TOptions extends object, TReturns = void> {
14
- /**
15
- * Optional metadata about the generator, such as a description of the output it produces.
16
- */
17
- meta?: GeneratorMeta<TSpec, TOptions>;
18
- /**
19
- * The schema input that defines the structure of the specification object for this generator.
20
- */
21
- schema: SchemaInput<TSpec>;
22
- /**
23
- * The source input for the generator specification.
24
- */
25
- source: SourceInput<TSpec, TOptions>;
26
- /**
27
- * The sink input that consumes generated output.
28
- */
29
- sink: SinkInput<TSpec, TOptions, TReturns>;
30
- }
31
- type GeneratorInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | GeneratorInputObject<TSpec, TOptions, TReturns>;
32
- type InferCreateGeneratorOptions<T extends GeneratorInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
33
- interface Generator<TSpec, TOptions extends object, TReturns = void> {
34
- /**
35
- * Optional metadata about the generator, such as a description of the output it produces.
36
- */
37
- meta?: GeneratorMeta<TSpec, TOptions>;
38
- /**
39
- * The schema input that defines the structure of the specification object for this generator.
40
- */
41
- schema: SchemaOf<TSpec>;
42
- /**
43
- * The source of the generator, which can be used to specify where the generator retrieves its input data from. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
44
- */
45
- source: Source<TSpec, TOptions>;
46
- /**
47
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
48
- */
49
- sink: Sink<TSpec, TOptions, TReturns>;
50
- /**
51
- * The generate function that executes the generator logic, taking in options and producing output based on the source and sink definitions.
52
- *
53
- * @param options - The options to be passed to the generator, which can be used to influence the generation process.
54
- * @returns A promise that resolves when the generation process is complete.
55
- */
56
- generate: (options: TOptions) => Promise<TReturns>;
57
- }
58
- //#endregion
59
- export { InferCreateGeneratorOptions as a, GeneratorMeta as i, GeneratorInput as n, GeneratorInputObject as r, Generator as t };
60
- //# sourceMappingURL=generator-C1_Q-QAb.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-C1_Q-QAb.d.cts","names":[],"sources":["../src/types/generator.ts"],"mappings":";;;;;;UAwBiB,aAAA;;AAAjB;;EAIE,WAAA,cAAyB,IAAA,EAAM,KAAK;AAAA;AAAA,UAGrB,oBAAA;EAPqB;;;EAepC,IAAA,GAAO,aAAA,CAAc,KAAA,EAAO,QAAA;EAXQ;AAAA;AAGtC;EAaE,MAAA,EAAQ,WAAA,CAAY,KAAA;EAbe;;;EAkBnC,MAAA,EAAQ,WAAA,CAAY,KAAA,EAAO,QAAA;EALP;;;EAUpB,IAAA,EAAM,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA;AAAA,KAGvB,cAAA,oDACR,SAAA,GACA,oBAAA,CAAqB,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA,KAE9B,2BAAA,WACA,cAAA,mBACR,CAAA,SAAU,SAAA,GACV,gBAAA,CAAiB,CAAA;AAAA,UAIJ,SAAA;EAdT;;;EAkBN,IAAA,GAAO,aAAA,CAAc,KAAA,EAAO,QAAA;EAvC5B;;;EA4CA,MAAA,EAAQ,QAAA,CAAS,KAAA;EAtCI;;;EA2CrB,MAAA,EAAQ,MAAA,CAAO,KAAA,EAAO,QAAA;EAtCF;;;EA2CpB,IAAA,EAAM,IAAA,CAAK,KAAA,EAAO,QAAA,EAAU,QAAA;EAtCD;;;;;;EA8C3B,QAAA,GAAW,OAAA,EAAS,QAAA,KAAa,OAAA,CAAQ,QAAA;AAAA"}
@@ -1,60 +0,0 @@
1
- import { i as SinkInput, n as Sink } from "./sink-CAWlC7am.mjs";
2
- import { i as SourceInput, n as Source } from "./source-DjKhYXZ6.mjs";
3
- import { SchemaInput, SchemaOf } from "@power-plant/schema";
4
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
5
-
6
- //#region src/types/generator.d.ts
7
- interface GeneratorMeta<TSpec, TOptions extends object> {
8
- /**
9
- * A string description (or a function that returns a string) outlining the purpose or behavior of the generator.
10
- */
11
- description?: string | ((spec: TSpec) => string);
12
- }
13
- interface GeneratorInputObject<TSpec, TOptions extends object, TReturns = void> {
14
- /**
15
- * Optional metadata about the generator, such as a description of the output it produces.
16
- */
17
- meta?: GeneratorMeta<TSpec, TOptions>;
18
- /**
19
- * The schema input that defines the structure of the specification object for this generator.
20
- */
21
- schema: SchemaInput<TSpec>;
22
- /**
23
- * The source input for the generator specification.
24
- */
25
- source: SourceInput<TSpec, TOptions>;
26
- /**
27
- * The sink input that consumes generated output.
28
- */
29
- sink: SinkInput<TSpec, TOptions, TReturns>;
30
- }
31
- type GeneratorInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | GeneratorInputObject<TSpec, TOptions, TReturns>;
32
- type InferCreateGeneratorOptions<T extends GeneratorInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
33
- interface Generator<TSpec, TOptions extends object, TReturns = void> {
34
- /**
35
- * Optional metadata about the generator, such as a description of the output it produces.
36
- */
37
- meta?: GeneratorMeta<TSpec, TOptions>;
38
- /**
39
- * The schema input that defines the structure of the specification object for this generator.
40
- */
41
- schema: SchemaOf<TSpec>;
42
- /**
43
- * The source of the generator, which can be used to specify where the generator retrieves its input data from. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
44
- */
45
- source: Source<TSpec, TOptions>;
46
- /**
47
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
48
- */
49
- sink: Sink<TSpec, TOptions, TReturns>;
50
- /**
51
- * The generate function that executes the generator logic, taking in options and producing output based on the source and sink definitions.
52
- *
53
- * @param options - The options to be passed to the generator, which can be used to influence the generation process.
54
- * @returns A promise that resolves when the generation process is complete.
55
- */
56
- generate: (options: TOptions) => Promise<TReturns>;
57
- }
58
- //#endregion
59
- export { InferCreateGeneratorOptions as a, GeneratorMeta as i, GeneratorInput as n, GeneratorInputObject as r, Generator as t };
60
- //# sourceMappingURL=generator-MC25UERM.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-MC25UERM.d.mts","names":[],"sources":["../src/types/generator.ts"],"mappings":""}
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- let e=require("@power-plant/schema/metadata");function t(t,n){let r=t??{schema:{}},i=r?.meta??{};return i.name=(0,e.resolveMetaName)(r?.schema,i,n?.name),i.version=(0,e.resolveMetaVersion)(r?.schema,i,n?.version),i.id=(0,e.resolveMetaId)(r?.schema,i),i.displayName=(0,e.resolveMetaDisplayName)(r?.schema,i,n?.displayName),i.links=(0,e.resolveMetaLinks)(r?.schema,i,n?.links),n?.deprecated&&(i.deprecated=n?.deprecated),n?.usage&&(i.usage=n?.usage),n?.tags&&(i.tags=n?.tags),i}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,2 +0,0 @@
1
- import{resolveMetaDisplayName as e,resolveMetaId as t,resolveMetaLinks as n,resolveMetaName as r,resolveMetaVersion as i}from"@power-plant/schema/metadata";function a(a,o){let s=a??{schema:{}},c=s?.meta??{};return c.name=r(s?.schema,c,o?.name),c.version=i(s?.schema,c,o?.version),c.id=t(s?.schema,c),c.displayName=e(s?.schema,c,o?.displayName),c.links=n(s?.schema,c,o?.links),o?.deprecated&&(c.deprecated=o?.deprecated),o?.usage&&(c.usage=o?.usage),o?.tags&&(c.tags=o?.tags),c}export{a as t};
2
- //# sourceMappingURL=metadata-Dmhrb3Kv.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata-Dmhrb3Kv.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../metadata-Cb6iMZqW.cjs"),t=require("./helpers.cjs");let n=require("@power-plant/schema/extract"),r=require("@stryke/resolve/load"),i=require("@power-plant/schema/helpers"),a=require("@power-plant/schema/metadata"),o=require("@stryke/resolve/type-checks");function s(t,n){let r=e.t(t,n);return r.description=(0,a.resolveMetaDescription)(`Accepts a ${t?.meta?.displayName?`${t?.meta?.displayName} `:``}specification and processes it with a {displayName} sink.`,t?.schema??{},r,n?.description),r}async function c(e,a,l={}){let{sink:u,meta:d,schema:f}=t.isSinkInputObject(a)?a:{sink:a,meta:{}},p=e;f&&(p=await(0,n.extract)(f,l),p.schema=(0,i.mergeMetadata)(p.schema,e.schema));let m;if((0,o.isLoadInput)(u))try{let e=await(0,r.load)(u,l);m=t.isSinkInputObject(e)?await c(p,e.sink,l).then(e=>e.sink):e}catch{}return m||=u,{schema:p,sink:m,meta:s(p,d)}}exports.createSink=c,exports.extractSinkMeta=s;
@@ -1,2 +0,0 @@
1
- import { n as extractSinkMeta, t as createSink } from "../create-D32Jusq_.cjs";
2
- export { createSink, extractSinkMeta };
@@ -1,2 +0,0 @@
1
- import { n as extractSinkMeta, t as createSink } from "../create-B14Jt6Iu.mjs";
2
- export { createSink, extractSinkMeta };
@@ -1,2 +0,0 @@
1
- import{t as e}from"../metadata-Dmhrb3Kv.mjs";import{isSinkInputObject as t}from"./helpers.mjs";import{extract as n}from"@power-plant/schema/extract";import{load as r}from"@stryke/resolve/load";import{mergeMetadata as i}from"@power-plant/schema/helpers";import{resolveMetaDescription as a}from"@power-plant/schema/metadata";import{isLoadInput as o}from"@stryke/resolve/type-checks";function s(t,n){let r=e(t,n);return r.description=a(`Accepts a ${t?.meta?.displayName?`${t?.meta?.displayName} `:``}specification and processes it with a {displayName} sink.`,t?.schema??{},r,n?.description),r}async function c(e,a,l={}){let{sink:u,meta:d,schema:f}=t(a)?a:{sink:a,meta:{}},p=e;f&&(p=await n(f,l),p.schema=i(p.schema,e.schema));let m;if(o(u))try{let e=await r(u,l);m=t(e)?await c(p,e.sink,l).then(e=>e.sink):e}catch{}return m||=u,{schema:p,sink:m,meta:s(p,d)}}export{c as createSink,s as extractSinkMeta};
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`});const e=require("./helpers.cjs");function t(t){return e.isSinkInputObject(t)?t:{sink:t}}exports.defineSink=t;
@@ -1,37 +0,0 @@
1
- import { a as SinkInputObject, i as SinkInput } from "../sink-CTx7UtqU.cjs";
2
- //#region src/sink/define.d.ts
3
- /**
4
- * Defines a sink input object. If the provided sink is already a sink input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `sink` property.
5
- *
6
- * @example
7
- * ```ts
8
- * import { defineSink } from "@power-plant/core";
9
- *
10
- * // Define a sink from a sink function
11
- * export default defineSink((spec, options) => {
12
- * // Your sink logic here
13
- * });
14
- *
15
- * // Define a sink from an existing sink input object
16
- * export default defineSink({
17
- * meta: {
18
- * name: "My Sink",
19
- * version: "1.0.0",
20
- * description: "A sink that does something.",
21
- * },
22
- * schema: z.object({
23
- * // Your schema definition here
24
- * }),
25
- * sink: (spec, options) => {
26
- * // Your sink logic here
27
- * },
28
- * });
29
- * ```
30
- *
31
- * @param sink - The sink input to define. This can be either a sink input object or a sink function.
32
- * @returns A sink input object that contains the provided sink. If the input was already a sink input object, it will be returned unchanged.
33
- */
34
- declare function defineSink<TSpec, TOptions extends object, TReturns = void>(sink: SinkInput<TSpec, TOptions, TReturns>): SinkInputObject<TSpec, TOptions, TReturns>;
35
- //#endregion
36
- export { defineSink };
37
- //# sourceMappingURL=define.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define.d.cts","names":[],"sources":["../../src/sink/define.ts"],"mappings":";;;;;AAoDA;;;;;;;;;;;;;;;;;;;;;;;;;;AAE4C;;iBAF5B,UAAA,kDACd,IAAA,EAAM,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA,IAChC,eAAA,CAAgB,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,37 +0,0 @@
1
- import { a as SinkInputObject, i as SinkInput } from "../sink-CAWlC7am.mjs";
2
- //#region src/sink/define.d.ts
3
- /**
4
- * Defines a sink input object. If the provided sink is already a sink input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `sink` property.
5
- *
6
- * @example
7
- * ```ts
8
- * import { defineSink } from "@power-plant/core";
9
- *
10
- * // Define a sink from a sink function
11
- * export default defineSink((spec, options) => {
12
- * // Your sink logic here
13
- * });
14
- *
15
- * // Define a sink from an existing sink input object
16
- * export default defineSink({
17
- * meta: {
18
- * name: "My Sink",
19
- * version: "1.0.0",
20
- * description: "A sink that does something.",
21
- * },
22
- * schema: z.object({
23
- * // Your schema definition here
24
- * }),
25
- * sink: (spec, options) => {
26
- * // Your sink logic here
27
- * },
28
- * });
29
- * ```
30
- *
31
- * @param sink - The sink input to define. This can be either a sink input object or a sink function.
32
- * @returns A sink input object that contains the provided sink. If the input was already a sink input object, it will be returned unchanged.
33
- */
34
- declare function defineSink<TSpec, TOptions extends object, TReturns = void>(sink: SinkInput<TSpec, TOptions, TReturns>): SinkInputObject<TSpec, TOptions, TReturns>;
35
- //#endregion
36
- export { defineSink };
37
- //# sourceMappingURL=define.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define.d.mts","names":[],"sources":["../../src/sink/define.ts"],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{isSinkInputObject as e}from"./helpers.mjs";function t(t){return e(t)?t:{sink:t}}export{t as defineSink};
2
- //# sourceMappingURL=define.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define.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)&&`sink`in t&&t.sink!==void 0}exports.isSinkInputObject=t;
@@ -1,13 +0,0 @@
1
- import { a as SinkInputObject } from "../sink-CTx7UtqU.cjs";
2
-
3
- //#region src/sink/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SinkInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SinkInputObject}, false otherwise.
9
- */
10
- declare function isSinkInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is SinkInputObject<TSpec, TOptions, TReturns>;
11
- //#endregion
12
- export { isSinkInputObject };
13
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/sink/helpers.ts"],"mappings":";;;;;AA2BA;;;;iBAAgB,iBAAA,kDAId,KAAA,YAAiB,KAAA,IAAS,eAAA,CAAgB,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,13 +0,0 @@
1
- import { a as SinkInputObject } from "../sink-CAWlC7am.mjs";
2
-
3
- //#region src/sink/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SinkInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SinkInputObject}, false otherwise.
9
- */
10
- declare function isSinkInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is SinkInputObject<TSpec, TOptions, TReturns>;
11
- //#endregion
12
- export { isSinkInputObject };
13
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/sink/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)&&`sink`in t&&t.sink!==void 0}export{t as isSinkInputObject};
2
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./create.cjs");exports.createSink=e.createSink,exports.extractSinkMeta=e.extractSinkMeta;
@@ -1,2 +0,0 @@
1
- import { n as extractSinkMeta, t as createSink } from "../create-D32Jusq_.cjs";
2
- export { createSink, extractSinkMeta };
@@ -1,2 +0,0 @@
1
- import { n as extractSinkMeta, t as createSink } from "../create-B14Jt6Iu.mjs";
2
- export { createSink, extractSinkMeta };
@@ -1 +0,0 @@
1
- import{createSink as e,extractSinkMeta as t}from"./create.mjs";export{e as createSink,t as extractSinkMeta};
@@ -1,58 +0,0 @@
1
- import { t as MaybePromise } from "./base-BKbfgxno.mjs";
2
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
- import { Meta, MetaInput, SchemaInput, SchemaOf } from "@power-plant/schema/types";
4
-
5
- //#region src/types/sink.d.ts
6
- type SinkFunction<TSpec, TOptions extends object, TReturns = void> = (spec: TSpec, context: TOptions) => MaybePromise<TReturns>;
7
- interface SinkMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec> {
8
- /**
9
- * A string that describes how the specification will be extracted or generated. This property can provide context about the source of the specification, such as whether it is derived from a file, a database, an API, or any other source. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
10
- */
11
- produces?: string;
12
- }
13
- interface SinkMeta<TSpec, TOptions extends object> extends Meta<TSpec> {
14
- /**
15
- * A string that describes how the specification will be extracted or generated. This property can provide context about the source of the specification, such as whether it is derived from a file, a database, an API, or any other source. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
16
- */
17
- produces?: string;
18
- }
19
- interface SinkInputObject<TSpec, TOptions extends object, TReturns = void> {
20
- /**
21
- * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
22
- */
23
- schema?: SchemaInput<TSpec>;
24
- /**
25
- * Optional metadata that provides contextual information for the sink.
26
- */
27
- meta?: SinkMeta<TSpec, TOptions>;
28
- /**
29
- * The sink implementation, either as a callable function or a file reference.
30
- */
31
- sink: SinkFunction<TSpec, TOptions, TReturns> | LoadInput;
32
- }
33
- type SinkInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | SinkFunction<TSpec, TOptions, TReturns> | SinkInputObject<TSpec, TOptions, TReturns>;
34
- type InferCreateSinkOptions<T extends SinkInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
35
- interface Sink<TSpec, TOptions extends object, TReturns = void> {
36
- /**
37
- * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
38
- */
39
- schema: SchemaOf<TSpec>;
40
- /**
41
- * Optional metadata that provides contextual information for the sink.
42
- */
43
- meta?: SinkMeta<TSpec, TOptions>;
44
- /**
45
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
46
- *
47
- * @remarks
48
- * The `sink` property is defined as a function that takes the specification object and any additional parameters, and returns a value or a promise that resolves to a value. This allows for flexibility in how the generator sends its output data, enabling both synchronous and asynchronous data handling based on the specification.
49
- *
50
- * @param spec - The specification object that conforms to the defined schema input.
51
- * @param params - Additional parameters that may be needed for the sink function to process the output data.
52
- * @returns A value or a promise that resolves to a value, which will be used as the output data for the generator.
53
- */
54
- sink: SinkFunction<TSpec, TOptions, TReturns>;
55
- }
56
- //#endregion
57
- export { SinkInputObject as a, SinkInput as i, Sink as n, SinkMeta as o, SinkFunction as r, SinkMetaInput as s, InferCreateSinkOptions as t };
58
- //# sourceMappingURL=sink-CAWlC7am.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sink-CAWlC7am.d.mts","names":[],"sources":["../src/types/sink.ts"],"mappings":""}
@@ -1,58 +0,0 @@
1
- import { t as MaybePromise } from "./base-BKbfgxno.cjs";
2
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
- import { Meta, MetaInput, SchemaInput, SchemaOf } from "@power-plant/schema/types";
4
-
5
- //#region src/types/sink.d.ts
6
- type SinkFunction<TSpec, TOptions extends object, TReturns = void> = (spec: TSpec, context: TOptions) => MaybePromise<TReturns>;
7
- interface SinkMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec> {
8
- /**
9
- * A string that describes how the specification will be extracted or generated. This property can provide context about the source of the specification, such as whether it is derived from a file, a database, an API, or any other source. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
10
- */
11
- produces?: string;
12
- }
13
- interface SinkMeta<TSpec, TOptions extends object> extends Meta<TSpec> {
14
- /**
15
- * A string that describes how the specification will be extracted or generated. This property can provide context about the source of the specification, such as whether it is derived from a file, a database, an API, or any other source. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
16
- */
17
- produces?: string;
18
- }
19
- interface SinkInputObject<TSpec, TOptions extends object, TReturns = void> {
20
- /**
21
- * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
22
- */
23
- schema?: SchemaInput<TSpec>;
24
- /**
25
- * Optional metadata that provides contextual information for the sink.
26
- */
27
- meta?: SinkMeta<TSpec, TOptions>;
28
- /**
29
- * The sink implementation, either as a callable function or a file reference.
30
- */
31
- sink: SinkFunction<TSpec, TOptions, TReturns> | LoadInput;
32
- }
33
- type SinkInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | SinkFunction<TSpec, TOptions, TReturns> | SinkInputObject<TSpec, TOptions, TReturns>;
34
- type InferCreateSinkOptions<T extends SinkInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
35
- interface Sink<TSpec, TOptions extends object, TReturns = void> {
36
- /**
37
- * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
38
- */
39
- schema: SchemaOf<TSpec>;
40
- /**
41
- * Optional metadata that provides contextual information for the sink.
42
- */
43
- meta?: SinkMeta<TSpec, TOptions>;
44
- /**
45
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
46
- *
47
- * @remarks
48
- * The `sink` property is defined as a function that takes the specification object and any additional parameters, and returns a value or a promise that resolves to a value. This allows for flexibility in how the generator sends its output data, enabling both synchronous and asynchronous data handling based on the specification.
49
- *
50
- * @param spec - The specification object that conforms to the defined schema input.
51
- * @param params - Additional parameters that may be needed for the sink function to process the output data.
52
- * @returns A value or a promise that resolves to a value, which will be used as the output data for the generator.
53
- */
54
- sink: SinkFunction<TSpec, TOptions, TReturns>;
55
- }
56
- //#endregion
57
- export { SinkInputObject as a, SinkInput as i, Sink as n, SinkMeta as o, SinkFunction as r, SinkMetaInput as s, InferCreateSinkOptions as t };
58
- //# sourceMappingURL=sink-CTx7UtqU.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sink-CTx7UtqU.d.cts","names":[],"sources":["../src/types/sink.ts"],"mappings":";;;;;KA2BY,YAAA,qDACV,IAAA,EAAM,KAAA,EACN,OAAA,EAAS,QAAA,KACN,YAAA,CAAa,QAAA;AAAA,UAED,aAAA,yCAIP,SAAS,CAAC,KAAA;EATR;;;EAaV,QAAA;AAAA;AAAA,UAIe,QAAA,yCAAiD,IAAI,CAAC,KAAA;EAdlE;;;EAkBH,QAAA;AAAA;AAAA,UAGe,eAAA;EAvBT;;;EA+BN,MAAA,GAAS,WAAA,CAAY,KAAA;EA7BlB;;;EAkCH,IAAA,GAAO,QAAA,CAAS,KAAA,EAAO,QAAA;EAhCR;;;EAqCf,IAAA,EAAM,YAAA,CAAa,KAAA,EAAO,QAAA,EAAU,QAAA,IAAY,SAAA;AAAA;AAAA,KAGtC,SAAA,oDACR,SAAA,GACA,YAAA,CAAa,KAAA,EAAO,QAAA,EAAU,QAAA,IAC9B,eAAA,CAAgB,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA,KAEzB,sBAAA,WAAiC,SAAA,mBAC3C,CAAA,SAAU,SAAA,GACN,gBAAA,CAAiB,CAAA;AAAA,UAIN,IAAA;EA3Cf;;AAAQ;EA+CR,MAAA,EAAQ,QAAA,CAAS,KAAA;EA3CM;;;EAgDvB,IAAA,GAAO,QAAA,CAAS,KAAA,EAAO,QAAA;EAhDQ;;;;;AAIvB;AAGV;;;;EAqDE,IAAA,EAAM,YAAA,CAAa,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../metadata-Cb6iMZqW.cjs"),t=require("./helpers.cjs");let n=require("@power-plant/schema/extract"),r=require("@stryke/resolve/load"),i=require("@power-plant/schema/helpers"),a=require("@power-plant/schema/metadata"),o=require("@stryke/resolve/type-checks");function s(t,n){let r=e.t(t,n);return r.description=(0,a.resolveMetaDescription)(`Determines the ${t?.meta?.displayName?`${t?.meta?.displayName} `:``}specification from a {displayName} source.`,t?.schema??{},r,n?.description),r}async function c(e,a,l={}){let{source:u,meta:d,schema:f}=t.isSourceInputObject(a)?a:{source:a,meta:{}},p=e;f&&(p=await(0,n.extract)(f,l),p.schema=(0,i.mergeMetadata)(p.schema,e.schema));let m;if((0,o.isLoadInput)(u))try{let e=await(0,r.load)(u,l);m=t.isSourceInputObject(e)?await c(p,e.source,l).then(e=>e.source):e}catch{}return m||=u,{schema:p,source:m,meta:s(p,d)}}exports.createSource=c,exports.extractSourceMeta=s;
@@ -1,2 +0,0 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-DoyLue8r.cjs";
2
- export { createSource, extractSourceMeta };
@@ -1,2 +0,0 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-vgEDsShD.mjs";
2
- export { createSource, extractSourceMeta };
@@ -1,2 +0,0 @@
1
- import{t as e}from"../metadata-Dmhrb3Kv.mjs";import{isSourceInputObject as t}from"./helpers.mjs";import{extract as n}from"@power-plant/schema/extract";import{load as r}from"@stryke/resolve/load";import{mergeMetadata as i}from"@power-plant/schema/helpers";import{resolveMetaDescription as a}from"@power-plant/schema/metadata";import{isLoadInput as o}from"@stryke/resolve/type-checks";function s(t,n){let r=e(t,n);return r.description=a(`Determines the ${t?.meta?.displayName?`${t?.meta?.displayName} `:``}specification from a {displayName} source.`,t?.schema??{},r,n?.description),r}async function c(e,a,l={}){let{source:u,meta:d,schema:f}=t(a)?a:{source:a,meta:{}},p=e;f&&(p=await n(f,l),p.schema=i(p.schema,e.schema));let m;if(o(u))try{let e=await r(u,l);m=t(e)?await c(p,e.source,l).then(e=>e.source):e}catch{}return m||=u,{schema:p,source:m,meta:s(p,d)}}export{c as createSource,s as extractSourceMeta};
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`});const e=require("./helpers.cjs");function t(t){return e.isSourceInputObject(t)?t:{source:t}}exports.defineSource=t;
@@ -1,2 +0,0 @@
1
- import { t as defineSource } from "../define-DEe-HPar.cjs";
2
- export { defineSource };
@@ -1,2 +0,0 @@
1
- import { t as defineSource } from "../define-RneysDu1.mjs";
2
- export { defineSource };
@@ -1,2 +0,0 @@
1
- import{isSourceInputObject as e}from"./helpers.mjs";function t(t){return e(t)?t:{source:t}}export{t as defineSource};
2
- //# sourceMappingURL=define.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define.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)&&`source`in t&&t.source!==void 0}exports.isSourceInputObject=t;
@@ -1,13 +0,0 @@
1
- import { a as SourceInputObject } from "../source-B3tctCZE.cjs";
2
-
3
- //#region src/source/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SourceInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SourceInputObject}, false otherwise.
9
- */
10
- declare function isSourceInputObject<TSpec, TOptions extends object>(input: unknown): input is SourceInputObject<TSpec, TOptions>;
11
- //#endregion
12
- export { isSourceInputObject };
13
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/source/helpers.ts"],"mappings":";;;;;AA2BA;;;;iBAAgB,mBAAA,iCACd,KAAA,YACC,KAAA,IAAS,iBAAA,CAAkB,KAAA,EAAO,QAAA"}
@@ -1,13 +0,0 @@
1
- import { a as SourceInputObject } from "../source-DjKhYXZ6.mjs";
2
-
3
- //#region src/source/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SourceInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SourceInputObject}, false otherwise.
9
- */
10
- declare function isSourceInputObject<TSpec, TOptions extends object>(input: unknown): input is SourceInputObject<TSpec, TOptions>;
11
- //#endregion
12
- export { isSourceInputObject };
13
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/source/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)&&`source`in t&&t.source!==void 0}export{t as isSourceInputObject};
2
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./create.cjs"),t=require("./define.cjs");exports.createSource=e.createSource,exports.defineSource=t.defineSource,exports.extractSourceMeta=e.extractSourceMeta;
@@ -1,3 +0,0 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-DoyLue8r.cjs";
2
- import { t as defineSource } from "../define-DEe-HPar.cjs";
3
- export { createSource, defineSource, extractSourceMeta };
@@ -1,3 +0,0 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-vgEDsShD.mjs";
2
- import { t as defineSource } from "../define-RneysDu1.mjs";
3
- export { createSource, defineSource, extractSourceMeta };
@@ -1 +0,0 @@
1
- import{createSource as e,extractSourceMeta as t}from"./create.mjs";import{defineSource as n}from"./define.mjs";export{e as createSource,n as defineSource,t as extractSourceMeta};