@power-plant/core 0.0.3 → 0.0.4

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 (122) hide show
  1. package/dist/create-23iLtMb_.cjs +1 -0
  2. package/dist/create-BR4IeVl4.mjs +2 -0
  3. package/dist/create-BR4IeVl4.mjs.map +1 -0
  4. package/dist/{create-DVpg-3po.d.mts → create-BqRl9d7m.d.cts} +2 -2
  5. package/dist/create-BqRl9d7m.d.cts.map +1 -0
  6. package/dist/create-C-rR8nuY.d.mts +23 -0
  7. package/dist/create-C-rR8nuY.d.mts.map +1 -0
  8. package/dist/create-Cz9qVT4m.d.cts +23 -0
  9. package/dist/create-Cz9qVT4m.d.cts.map +1 -0
  10. package/dist/create-DAGPeYVI.d.cts +25 -0
  11. package/dist/create-DAGPeYVI.d.cts.map +1 -0
  12. package/dist/create-DEe398aQ.d.mts +25 -0
  13. package/dist/create-DEe398aQ.d.mts.map +1 -0
  14. package/dist/create-DUt-efk7.d.cts +25 -0
  15. package/dist/create-DUt-efk7.d.cts.map +1 -0
  16. package/dist/{create-Cfgth9sz.d.cts → create-DcCu_zM3.d.mts} +2 -2
  17. package/dist/create-DcCu_zM3.d.mts.map +1 -0
  18. package/dist/create-Qxy2mq7r.d.mts +25 -0
  19. package/dist/create-Qxy2mq7r.d.mts.map +1 -0
  20. package/dist/define-BPfeEA9Z.d.cts +14 -0
  21. package/dist/define-BPfeEA9Z.d.cts.map +1 -0
  22. package/dist/define-CQZ042K5.d.mts +14 -0
  23. package/dist/define-CQZ042K5.d.mts.map +1 -0
  24. package/dist/{define-DEe-HPar.d.cts → define-Dw8JgVQ1.d.mts} +2 -2
  25. package/dist/define-Dw8JgVQ1.d.mts.map +1 -0
  26. package/dist/{define-RneysDu1.d.mts → define-aWeW6VVo.d.cts} +2 -2
  27. package/dist/{define-DEe-HPar.d.cts.map → define-aWeW6VVo.d.cts.map} +1 -1
  28. package/dist/generator/create.cjs +1 -1
  29. package/dist/generator/create.d.cts +1 -1
  30. package/dist/generator/create.d.mts +1 -1
  31. package/dist/generator/create.mjs +1 -1
  32. package/dist/generator/helpers.d.cts +1 -1
  33. package/dist/generator/helpers.d.mts +1 -1
  34. package/dist/generator/index.d.cts +1 -1
  35. package/dist/generator/index.d.mts +1 -1
  36. package/dist/{generator-MC25UERM.d.mts → generator-BGkKE8HQ.d.mts} +6 -5
  37. package/dist/generator-BGkKE8HQ.d.mts.map +1 -0
  38. package/dist/{generator-C1_Q-QAb.d.cts → generator-Dq0PL5w6.d.cts} +6 -5
  39. package/dist/generator-Dq0PL5w6.d.cts.map +1 -0
  40. package/dist/helpers-BqnQPaP5.d.cts +13 -0
  41. package/dist/helpers-BqnQPaP5.d.cts.map +1 -0
  42. package/dist/helpers-CgXgqnVu.d.mts +13 -0
  43. package/dist/helpers-CgXgqnVu.d.mts.map +1 -0
  44. package/dist/index.cjs +1 -1
  45. package/dist/index.d.cts +12 -8
  46. package/dist/index.d.mts +12 -8
  47. package/dist/index.mjs +1 -1
  48. package/dist/schema/create.cjs +1 -0
  49. package/dist/schema/create.d.cts +2 -0
  50. package/dist/schema/create.d.mts +2 -0
  51. package/dist/schema/create.mjs +1 -0
  52. package/dist/schema/define.cjs +1 -0
  53. package/dist/schema/define.d.cts +2 -0
  54. package/dist/schema/define.d.mts +2 -0
  55. package/dist/schema/define.mjs +2 -0
  56. package/dist/schema/define.mjs.map +1 -0
  57. package/dist/schema/helpers.cjs +1 -0
  58. package/dist/schema/helpers.d.cts +2 -0
  59. package/dist/schema/helpers.d.mts +2 -0
  60. package/dist/schema/helpers.mjs +2 -0
  61. package/dist/schema/helpers.mjs.map +1 -0
  62. package/dist/schema/index.cjs +1 -0
  63. package/dist/schema/index.d.cts +4 -0
  64. package/dist/schema/index.d.mts +4 -0
  65. package/dist/schema/index.mjs +1 -0
  66. package/dist/schema-xFkmOyE6.d.cts +205 -0
  67. package/dist/schema-xFkmOyE6.d.cts.map +1 -0
  68. package/dist/schema-xFkmOyE6.d.mts +205 -0
  69. package/dist/schema-xFkmOyE6.d.mts.map +1 -0
  70. package/dist/sink/create.cjs +1 -1
  71. package/dist/sink/create.d.cts +1 -1
  72. package/dist/sink/create.d.mts +1 -1
  73. package/dist/sink/create.mjs +1 -1
  74. package/dist/sink/define.d.cts +1 -1
  75. package/dist/sink/define.d.mts +1 -1
  76. package/dist/sink/helpers.d.cts +1 -1
  77. package/dist/sink/helpers.d.mts +1 -1
  78. package/dist/sink/index.d.cts +1 -1
  79. package/dist/sink/index.d.mts +1 -1
  80. package/dist/{sink-CAWlC7am.d.mts → sink-CHQncb8H.d.mts} +7 -7
  81. package/dist/sink-CHQncb8H.d.mts.map +1 -0
  82. package/dist/{sink-CTx7UtqU.d.cts → sink-DHpx94GM.d.cts} +7 -7
  83. package/dist/sink-DHpx94GM.d.cts.map +1 -0
  84. package/dist/source/create.cjs +1 -1
  85. package/dist/source/create.d.cts +1 -1
  86. package/dist/source/create.d.mts +1 -1
  87. package/dist/source/create.mjs +1 -1
  88. package/dist/source/define.d.cts +1 -1
  89. package/dist/source/define.d.mts +1 -1
  90. package/dist/source/helpers.d.cts +1 -1
  91. package/dist/source/helpers.d.mts +1 -1
  92. package/dist/source/index.d.cts +2 -2
  93. package/dist/source/index.d.mts +2 -2
  94. package/dist/{source-B3tctCZE.d.cts → source-BiOs3_-8.d.mts} +7 -7
  95. package/dist/source-BiOs3_-8.d.mts.map +1 -0
  96. package/dist/{source-DjKhYXZ6.d.mts → source-txi0ZuzR.d.cts} +7 -7
  97. package/dist/source-txi0ZuzR.d.cts.map +1 -0
  98. package/package.json +73 -13
  99. package/dist/base-BKbfgxno.d.cts +0 -28
  100. package/dist/base-BKbfgxno.d.cts.map +0 -1
  101. package/dist/base-BKbfgxno.d.mts +0 -28
  102. package/dist/base-BKbfgxno.d.mts.map +0 -1
  103. package/dist/create-B14Jt6Iu.d.mts +0 -17
  104. package/dist/create-B14Jt6Iu.d.mts.map +0 -1
  105. package/dist/create-Cfgth9sz.d.cts.map +0 -1
  106. package/dist/create-D32Jusq_.d.cts +0 -17
  107. package/dist/create-D32Jusq_.d.cts.map +0 -1
  108. package/dist/create-DVpg-3po.d.mts.map +0 -1
  109. package/dist/create-DoyLue8r.d.cts +0 -17
  110. package/dist/create-DoyLue8r.d.cts.map +0 -1
  111. package/dist/create-vgEDsShD.d.mts +0 -17
  112. package/dist/create-vgEDsShD.d.mts.map +0 -1
  113. package/dist/define-RneysDu1.d.mts.map +0 -1
  114. package/dist/generator-C1_Q-QAb.d.cts.map +0 -1
  115. package/dist/generator-MC25UERM.d.mts.map +0 -1
  116. package/dist/metadata-Cb6iMZqW.cjs +0 -1
  117. package/dist/metadata-Dmhrb3Kv.mjs +0 -2
  118. package/dist/metadata-Dmhrb3Kv.mjs.map +0 -1
  119. package/dist/sink-CAWlC7am.d.mts.map +0 -1
  120. package/dist/sink-CTx7UtqU.d.cts.map +0 -1
  121. package/dist/source-B3tctCZE.d.cts.map +0 -1
  122. package/dist/source-DjKhYXZ6.d.mts.map +0 -1
@@ -1,16 +1,16 @@
1
- import { t as MaybePromise } from "./base-BKbfgxno.cjs";
1
+ import { c as Meta, p as MaybePromise, r as SchemaInputObject, s as SchemaOf, u as MetaInput } from "./schema-xFkmOyE6.cjs";
2
2
  import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
- import { Meta, MetaInput, SchemaInput, SchemaOf } from "@power-plant/schema/types";
3
+ import { SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
4
4
 
5
5
  //#region src/types/sink.d.ts
6
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> {
7
+ interface SinkMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec, TOptions> {
8
8
  /**
9
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
10
  */
11
11
  produces?: string;
12
12
  }
13
- interface SinkMeta<TSpec, TOptions extends object> extends Meta<TSpec> {
13
+ interface SinkMeta<TSpec, TOptions extends object> extends Meta<TSpec, TOptions> {
14
14
  /**
15
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
16
  */
@@ -20,7 +20,7 @@ interface SinkInputObject<TSpec, TOptions extends object, TReturns = void> {
20
20
  /**
21
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
22
  */
23
- schema?: SchemaInput<TSpec>;
23
+ schema?: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>;
24
24
  /**
25
25
  * Optional metadata that provides contextual information for the sink.
26
26
  */
@@ -36,7 +36,7 @@ interface Sink<TSpec, TOptions extends object, TReturns = void> {
36
36
  /**
37
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
38
  */
39
- schema: SchemaOf<TSpec>;
39
+ schema: SchemaOf<TSpec, TOptions>;
40
40
  /**
41
41
  * Optional metadata that provides contextual information for the sink.
42
42
  */
@@ -55,4 +55,4 @@ interface Sink<TSpec, TOptions extends object, TReturns = void> {
55
55
  }
56
56
  //#endregion
57
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
58
+ //# sourceMappingURL=sink-DHpx94GM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sink-DHpx94GM.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,yCAGP,SAAA,CAAU,KAAA,EAAO,QAAA;EARH;;;EAYtB,QAAA;AAAA;AAAA,UAGe,QAAA,yCAAiD,IAAA,CAChE,KAAA,EACA,QAAA;EAde;;;EAmBf,QAAA;AAAA;AAAA,UAGe,eAAA;EAvBN;;;EA+BT,MAAA,GACI,iBAAA,CAAkB,KAAA,IAClB,gBAAA,CAAiB,KAAA,IACjB,iBAAA,CAAkB,KAAA,EAAO,QAAA;EAjCL;AAAA;AAE1B;EAoCE,IAAA,GAAO,QAAA,CAAS,KAAA,EAAO,QAAA;EApCK;;;EAyC5B,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;EApDP;;;EAwDR,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA;EApDhB;AAAA;AAGV;EAsDE,IAAA,GAAO,QAAA,CAAS,KAAA,EAAO,QAAA;EAtDA;;;;;;;;;;EAkEvB,IAAA,EAAM,YAAA,CAAa,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA"}
@@ -1 +1 @@
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
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../create-23iLtMb_.cjs"),t=require("./helpers.cjs");let n=require("@stryke/resolve/load"),r=require("@stryke/type-checks/is-function"),i=require("@power-plant/schema/helpers"),a=require("@stryke/resolve/type-checks");function o(t,n){let i=t?.schema??{},a=e.r(t,n);return a.description=e.i((0,r.isFunction)(a.title)?async(e,t)=>`Determines the ${await Promise.resolve(a.title(e,t))??``} specification from a {title} source.`:`Determines the ${a.title??``} specification from a {title} source.`,i,a,n?.description),a}async function s(r,c,l={}){let{source:u,meta:d,schema:f}=t.isSourceInputObject(c)?c:{source:c,meta:{}},p=r;f&&(p=await e.t(f,l),p.schema=(0,i.mergeMetadata)(p.schema,r.schema));let m;if((0,a.isLoadInput)(u))try{let e=await(0,n.load)(u,l);m=t.isSourceInputObject(e)?await s(p,e.source,l).then(e=>e.source):e}catch{}return m||=u,{schema:p,source:m,meta:o(p,d)}}exports.createSource=s,exports.extractSourceMeta=o;
@@ -1,2 +1,2 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-DoyLue8r.cjs";
1
+ import { n as extractSourceMeta, t as createSource } from "../create-DUt-efk7.cjs";
2
2
  export { createSource, extractSourceMeta };
@@ -1,2 +1,2 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-vgEDsShD.mjs";
1
+ import { n as extractSourceMeta, t as createSource } from "../create-Qxy2mq7r.mjs";
2
2
  export { createSource, extractSourceMeta };
@@ -1,2 +1,2 @@
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};
1
+ import{i as e,r as t,t as n}from"../create-BR4IeVl4.mjs";import{isSourceInputObject as r}from"./helpers.mjs";import{load as i}from"@stryke/resolve/load";import{isFunction as a}from"@stryke/type-checks/is-function";import{mergeMetadata as o}from"@power-plant/schema/helpers";import{isLoadInput as s}from"@stryke/resolve/type-checks";function c(n,r){let i=n?.schema??{},o=t(n,r);return o.description=e(a(o.title)?async(e,t)=>`Determines the ${await Promise.resolve(o.title(e,t))??``} specification from a {title} source.`:`Determines the ${o.title??``} specification from a {title} source.`,i,o,r?.description),o}async function l(e,t,a={}){let{source:u,meta:d,schema:f}=r(t)?t:{source:t,meta:{}},p=e;f&&(p=await n(f,a),p.schema=o(p.schema,e.schema));let m;if(s(u))try{let e=await i(u,a);m=r(e)?await l(p,e.source,a).then(e=>e.source):e}catch{}return m||=u,{schema:p,source:m,meta:c(p,d)}}export{l as createSource,c as extractSourceMeta};
2
2
  //# sourceMappingURL=create.mjs.map
@@ -1,2 +1,2 @@
1
- import { t as defineSource } from "../define-DEe-HPar.cjs";
1
+ import { t as defineSource } from "../define-aWeW6VVo.cjs";
2
2
  export { defineSource };
@@ -1,2 +1,2 @@
1
- import { t as defineSource } from "../define-RneysDu1.mjs";
1
+ import { t as defineSource } from "../define-Dw8JgVQ1.mjs";
2
2
  export { defineSource };
@@ -1,4 +1,4 @@
1
- import { a as SourceInputObject } from "../source-B3tctCZE.cjs";
1
+ import { a as SourceInputObject } from "../source-txi0ZuzR.cjs";
2
2
 
3
3
  //#region src/source/helpers.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as SourceInputObject } from "../source-DjKhYXZ6.mjs";
1
+ import { a as SourceInputObject } from "../source-BiOs3_-8.mjs";
2
2
 
3
3
  //#region src/source/helpers.d.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-DoyLue8r.cjs";
2
- import { t as defineSource } from "../define-DEe-HPar.cjs";
1
+ import { n as extractSourceMeta, t as createSource } from "../create-DUt-efk7.cjs";
2
+ import { t as defineSource } from "../define-aWeW6VVo.cjs";
3
3
  export { createSource, defineSource, extractSourceMeta };
@@ -1,3 +1,3 @@
1
- import { n as extractSourceMeta, t as createSource } from "../create-vgEDsShD.mjs";
2
- import { t as defineSource } from "../define-RneysDu1.mjs";
1
+ import { n as extractSourceMeta, t as createSource } from "../create-Qxy2mq7r.mjs";
2
+ import { t as defineSource } from "../define-Dw8JgVQ1.mjs";
3
3
  export { createSource, defineSource, extractSourceMeta };
@@ -1,16 +1,16 @@
1
- import { t as MaybePromise } from "./base-BKbfgxno.cjs";
1
+ import { c as Meta, p as MaybePromise, r as SchemaInputObject, s as SchemaOf, u as MetaInput } from "./schema-xFkmOyE6.mjs";
2
2
  import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
- import { Meta, MetaInput, SchemaInput, SchemaOf } from "@power-plant/schema/types";
3
+ import { SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
4
4
 
5
5
  //#region src/types/source.d.ts
6
6
  type SourceFunction<TSpec, TOptions extends object> = (options: TOptions) => MaybePromise<TSpec>;
7
- interface SourceMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec> {
7
+ interface SourceMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec, TOptions> {
8
8
  /**
9
9
  * A string that describes how the specification will be extracted/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
10
  */
11
11
  input?: string;
12
12
  }
13
- interface SourceMeta<TSpec, TOptions extends object> extends Meta<TSpec> {
13
+ interface SourceMeta<TSpec, TOptions extends object> extends Meta<TSpec, TOptions> {
14
14
  /**
15
15
  * A string that describes how the specification will be extracted/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
16
  */
@@ -20,7 +20,7 @@ interface SourceInputObject<TSpec, TOptions extends object> {
20
20
  /**
21
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
22
  */
23
- schema?: SchemaInput<TSpec>;
23
+ schema?: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>;
24
24
  /**
25
25
  * The source implementation, either as a callable function, a static value, or a file reference.
26
26
  */
@@ -36,7 +36,7 @@ interface Source<TSpec, TOptions extends object> {
36
36
  /**
37
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
38
  */
39
- schema: SchemaOf<TSpec>;
39
+ schema: SchemaOf<TSpec, TOptions>;
40
40
  /**
41
41
  * Optional metadata that provides contextual information for the source.
42
42
  */
@@ -54,4 +54,4 @@ interface Source<TSpec, TOptions extends object> {
54
54
  }
55
55
  //#endregion
56
56
  export { SourceInputObject as a, SourceInput as i, Source as n, SourceMeta as o, SourceFunction as r, SourceMetaInput as s, InferCreateSourceOptions as t };
57
- //# sourceMappingURL=source-B3tctCZE.d.cts.map
57
+ //# sourceMappingURL=source-BiOs3_-8.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-BiOs3_-8.d.mts","names":[],"sources":["../src/types/source.ts"],"mappings":""}
@@ -1,16 +1,16 @@
1
- import { t as MaybePromise } from "./base-BKbfgxno.mjs";
1
+ import { c as Meta, p as MaybePromise, r as SchemaInputObject, s as SchemaOf, u as MetaInput } from "./schema-xFkmOyE6.cjs";
2
2
  import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
- import { Meta, MetaInput, SchemaInput, SchemaOf } from "@power-plant/schema/types";
3
+ import { SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
4
4
 
5
5
  //#region src/types/source.d.ts
6
6
  type SourceFunction<TSpec, TOptions extends object> = (options: TOptions) => MaybePromise<TSpec>;
7
- interface SourceMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec> {
7
+ interface SourceMetaInput<TSpec, TOptions extends object> extends MetaInput<TSpec, TOptions> {
8
8
  /**
9
9
  * A string that describes how the specification will be extracted/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
10
  */
11
11
  input?: string;
12
12
  }
13
- interface SourceMeta<TSpec, TOptions extends object> extends Meta<TSpec> {
13
+ interface SourceMeta<TSpec, TOptions extends object> extends Meta<TSpec, TOptions> {
14
14
  /**
15
15
  * A string that describes how the specification will be extracted/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
16
  */
@@ -20,7 +20,7 @@ interface SourceInputObject<TSpec, TOptions extends object> {
20
20
  /**
21
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
22
  */
23
- schema?: SchemaInput<TSpec>;
23
+ schema?: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>;
24
24
  /**
25
25
  * The source implementation, either as a callable function, a static value, or a file reference.
26
26
  */
@@ -36,7 +36,7 @@ interface Source<TSpec, TOptions extends object> {
36
36
  /**
37
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
38
  */
39
- schema: SchemaOf<TSpec>;
39
+ schema: SchemaOf<TSpec, TOptions>;
40
40
  /**
41
41
  * Optional metadata that provides contextual information for the source.
42
42
  */
@@ -54,4 +54,4 @@ interface Source<TSpec, TOptions extends object> {
54
54
  }
55
55
  //#endregion
56
56
  export { SourceInputObject as a, SourceInput as i, Source as n, SourceMeta as o, SourceFunction as r, SourceMetaInput as s, InferCreateSourceOptions as t };
57
- //# sourceMappingURL=source-DjKhYXZ6.d.mts.map
57
+ //# sourceMappingURL=source-txi0ZuzR.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-txi0ZuzR.d.cts","names":[],"sources":["../src/types/source.ts"],"mappings":";;;;;KA2BY,cAAA,oCACV,OAAA,EAAS,QAAA,KACN,YAAA,CAAa,KAAA;AAAA,UAED,eAAA,yCAGP,SAAA,CAAU,KAAA,EAAO,QAAA;EAPD;;;EAWxB,KAAA;AAAA;AAAA,UAGe,UAAA,yCAAmD,IAAA,CAClE,KAAA,EACA,QAAA;EAhByB;;;EAqBzB,KAAA;AAAA;AAAA,UAGe,iBAAA;EAtBM;AAAA;AAEvB;EAwBE,MAAA,GACI,iBAAA,CAAkB,KAAA,IAClB,gBAAA,CAAiB,KAAA,IACjB,iBAAA,CAAkB,KAAA,EAAO,QAAA;EA3BC;;;EAgC9B,MAAA,EAAQ,KAAA,GAAQ,cAAA,CAAe,KAAA,EAAO,QAAA,IAAY,SAAA;EA7BjC;;;EAkCjB,IAAA,GAAO,eAAA,CAAgB,KAAA,EAAO,QAAA;AAAA;AAAA,KAGpB,WAAA,mCACR,SAAA,GACA,KAAA,GACA,cAAA,CAAe,KAAA,EAAO,QAAA,IACtB,iBAAA,CAAkB,KAAA,EAAO,QAAA;AAAA,KAEjB,wBAAA,WAAmC,WAAA,cAC7C,CAAA,SAAU,SAAA,GACN,gBAAA,CAAiB,CAAA;AAAA,UAIN,MAAA;EA7CV;AAAA;AAGP;EA8CE,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA;EA9CC;;;EAmDzB,IAAA,GAAO,UAAA,CAAW,KAAA,EAAO,QAAA;EAnD6C;;;;;;;;;EA8DtE,MAAA,EAAQ,KAAA,GAAQ,cAAA,CAAe,KAAA,EAAO,QAAA;AAAA"}
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.4",
4
4
  "private": false,
5
5
  "description": "Core package for Power Plant",
6
6
  "keywords": ["power-plant", "powerlines", "storm-software"],
@@ -97,6 +97,62 @@
97
97
  }
98
98
  },
99
99
  "./package.json": "./package.json",
100
+ "./schema": {
101
+ "require": {
102
+ "types": "./dist/schema/index.d.cts",
103
+ "default": "./dist/schema/index.cjs"
104
+ },
105
+ "import": {
106
+ "types": "./dist/schema/index.d.mts",
107
+ "default": "./dist/schema/index.mjs"
108
+ },
109
+ "default": {
110
+ "types": "./dist/schema/index.d.mts",
111
+ "default": "./dist/schema/index.mjs"
112
+ }
113
+ },
114
+ "./schema/create": {
115
+ "require": {
116
+ "types": "./dist/schema/create.d.cts",
117
+ "default": "./dist/schema/create.cjs"
118
+ },
119
+ "import": {
120
+ "types": "./dist/schema/create.d.mts",
121
+ "default": "./dist/schema/create.mjs"
122
+ },
123
+ "default": {
124
+ "types": "./dist/schema/create.d.mts",
125
+ "default": "./dist/schema/create.mjs"
126
+ }
127
+ },
128
+ "./schema/define": {
129
+ "require": {
130
+ "types": "./dist/schema/define.d.cts",
131
+ "default": "./dist/schema/define.cjs"
132
+ },
133
+ "import": {
134
+ "types": "./dist/schema/define.d.mts",
135
+ "default": "./dist/schema/define.mjs"
136
+ },
137
+ "default": {
138
+ "types": "./dist/schema/define.d.mts",
139
+ "default": "./dist/schema/define.mjs"
140
+ }
141
+ },
142
+ "./schema/helpers": {
143
+ "require": {
144
+ "types": "./dist/schema/helpers.d.cts",
145
+ "default": "./dist/schema/helpers.cjs"
146
+ },
147
+ "import": {
148
+ "types": "./dist/schema/helpers.d.mts",
149
+ "default": "./dist/schema/helpers.mjs"
150
+ },
151
+ "default": {
152
+ "types": "./dist/schema/helpers.d.mts",
153
+ "default": "./dist/schema/helpers.mjs"
154
+ }
155
+ },
100
156
  "./sink": {
101
157
  "require": {
102
158
  "types": "./dist/sink/index.d.cts",
@@ -219,19 +275,19 @@
219
275
  "@alloy-js/core": "^0.23.1",
220
276
  "@alloy-js/markdown": "^0.23.0",
221
277
  "@alloy-js/typescript": "^0.23.0",
222
- "@power-plant/schema": "^0.0.3",
278
+ "@power-plant/schema": "^0.0.4",
223
279
  "@powerlines/core": "^0.48.60",
224
280
  "@powerlines/engine": "^0.49.62",
225
281
  "@powerlines/plugin-alloy": "^0.26.232",
226
282
  "@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",
283
+ "@stryke/convert": "^0.7.24",
284
+ "@stryke/fs": "^0.33.94",
285
+ "@stryke/helpers": "^0.10.33",
286
+ "@stryke/json": "^0.15.17",
287
+ "@stryke/path": "^0.29.20",
288
+ "@stryke/resolve": "^0.0.9",
289
+ "@stryke/string-format": "^0.17.35",
290
+ "@stryke/type-checks": "^0.6.26",
235
291
  "automd": "^0.4.3",
236
292
  "defu": "^6.1.7",
237
293
  "jiti": "^2.7.0",
@@ -240,11 +296,15 @@
240
296
  },
241
297
  "devDependencies": {
242
298
  "@powerlines/plugin-tsdown": "^0.1.540",
243
- "@stryke/types": "^0.12.20",
299
+ "@stryke/types": "^0.12.21",
244
300
  "@types/node": "^25.9.4",
245
301
  "typescript": "^6.0.3"
246
302
  },
247
303
  "publishConfig": { "access": "public" },
248
- "inlinedDependencies": { "@stryke/types": "0.12.20" },
249
- "gitHead": "43169e6b829afa991d5a0a3ea05a49b800aa9d44"
304
+ "inlinedDependencies": {
305
+ "@stryke/date": "0.0.5",
306
+ "@stryke/types": "0.12.21",
307
+ "@stryke/unique-id": "0.3.105"
308
+ },
309
+ "gitHead": "4f510175050312992ba4fa174eafdc56edd1f69b"
250
310
  }
@@ -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 +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 +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 +0,0 @@
1
- {"version":3,"file":"define-RneysDu1.d.mts","names":[],"sources":["../src/source/define.ts"],"mappings":""}
@@ -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 +0,0 @@
1
- {"version":3,"file":"generator-MC25UERM.d.mts","names":[],"sources":["../src/types/generator.ts"],"mappings":""}
@@ -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
- {"version":3,"file":"sink-CAWlC7am.d.mts","names":[],"sources":["../src/types/sink.ts"],"mappings":""}
@@ -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
- {"version":3,"file":"source-B3tctCZE.d.cts","names":[],"sources":["../src/types/source.ts"],"mappings":";;;;;KA2BY,cAAA,oCACV,OAAA,EAAS,QAAA,KACN,YAAA,CAAa,KAAA;AAAA,UAED,eAAA,yCAIP,SAAS,CAAC,KAAA;EARR;;;EAYV,KAAA;AAAA;AAAA,UAGe,UAAA,yCAIP,IAAI,CAAC,KAAA;EAjBE;;;EAqBf,KAAA;AAAA;AAAA,UAGe,iBAAA;EAxBZ;;;EA4BH,MAAA,GAAS,WAAA,CAAY,KAAA;EA1BN;;;EA+Bf,MAAA,EAAQ,KAAA,GAAQ,cAAA,CAAe,KAAA,EAAO,QAAA,IAAY,SAAA;EA9BlD;;;EAmCA,IAAA,GAAO,eAAA,CAAgB,KAAA,EAAO,QAAA;AAAA;AAAA,KAGpB,WAAA,mCACR,SAAA,GACA,KAAA,GACA,cAAA,CAAe,KAAA,EAAO,QAAA,IACtB,iBAAA,CAAkB,KAAA,EAAO,QAAA;AAAA,KAEjB,wBAAA,WAAmC,WAAA,cAC7C,CAAA,SAAU,SAAA,GACN,gBAAA,CAAiB,CAAA;AAAA,UAIN,MAAA;EAxCU;;;EA4CzB,MAAA,EAAQ,QAAA,CAAS,KAAA;EAzCjB;;;EA8CA,IAAA,GAAO,UAAA,CAAW,KAAA,EAAO,QAAA;EAzCpB;AAAA;AAGP;;;;;;;EAiDE,MAAA,EAAQ,KAAA,GAAQ,cAAA,CAAe,KAAA,EAAO,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-DjKhYXZ6.d.mts","names":[],"sources":["../src/types/source.ts"],"mappings":""}