@power-plant/utils 0.0.2 → 0.0.3

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.
package/dist/combine.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./helpers-CzywXwbw.cjs");let t=require("@power-plant/core");function n(t,n){if(n!==void 0)return e.s(n);let r={};for(let[n,i]of Object.entries(t))r[n]=e.c(e.r(i));return{schema:{type:`object`,properties:r,required:Object.keys(r),additionalProperties:!1}}}function r(t,n){return n===void 0?async n=>{let r={};for(let i of Object.keys(t))r[i]=await e.a(e.t(t[i]),n,`combine`,i);return r}:n}function i(t,n){return n===void 0?async(n,r,i)=>{let a={};for(let o of Object.keys(t))a[o]=await e.o(e.n(t[o]),`combine`,o)(n[o],r,i);return a}:n}function a(t){return async(n,r)=>{let i={};for(let a of Object.keys(t)){let o=await e.i(t[a],`combine`,a)(n[a],r);Object.assign(i,o)}return i}}function o(e){let{generator:t,meta:o,schema:s,input:c,output:l}=e;return{meta:o,schema:n(t,s),input:r(t,c),output:i(t,l),generator:a(t)}}async function s(e,n={}){return(await(0,t.createExecute)(n))(o(e),n)}exports.combine=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./helpers-BA83xEDk.cjs");let t=require("@power-plant/core");function n(t){let n={};for(let[r,i]of Object.entries(t))i!==void 0&&(n[r]=e.s(i));return{schema:{type:`object`,properties:n,required:Object.keys(n),additionalProperties:!1},input:async n=>{let r={};for(let i of Object.keys(t)){let a=t[i];a!==void 0&&(r[i]=await e.i(a,n,`combine`,i))}return r}}}function r(t){let n={};for(let[r,i]of Object.entries(t))n[r]=e.c(i);return{schema:{type:`object`,properties:n,required:Object.keys(n),additionalProperties:!1},output:async(n,r,i)=>{let a={};for(let o of Object.keys(t))a[o]=await e.a(t[o],`combine`,o)(n[o],r,i);return a}}}function i(t){return async(n,r)=>{let i={};for(let a of Object.keys(t)){let o=await e.r(t[a],`combine`,a)(n[a],r);Object.assign(i,o)}return i}}function a(t){let{generator:a,meta:o,schema:s,input:c,output:l}=t,u={},d={};for(let t of Object.keys(a))u[t]=e.t(a[t]),d[t]=e.n(a[t]);return{meta:o,schema:s===void 0?void 0:e.o(s),input:c??n(u),output:l??r(d),generator:i(a)}}async function o(e,n={}){return(await(0,t.createExecute)(n))(a(e),n)}exports.combine=o,exports.combineInputs=n,exports.combineOutputs=r;
@@ -1,6 +1,24 @@
1
- import { i as CombinedOptions, n as CombinedGeneratorConfig, o as CombinedReturns, t as AnyGeneratorConfig } from "./types-Br6hilLK.cjs";
2
- import { UserConfig } from "@power-plant/core";
1
+ import { i as CombinedOptions, n as CombinedGeneratorConfig, o as CombinedReturns, t as AnyGeneratorConfig } from "./types-RcNg6zVS.cjs";
2
+ import { InputConfig, InputConfigObject, OutputConfig, OutputConfigObject, UserConfig } from "@power-plant/core";
3
3
  //#region src/combine.d.ts
4
+ /**
5
+ * Combines a map of bare input configs into one keyed {@link InputConfigObject}.
6
+ *
7
+ * @remarks
8
+ * Missing (`undefined`) entries are skipped. An empty map yields a noop input
9
+ * that resolves to `{}`. Child schemas are merged into an object schema keyed
10
+ * the same way; children without a schema use `{ type: "any" }`.
11
+ */
12
+ declare function combineInputs<TSpec extends Record<string, any>, TOptions extends object = object>(inputs: { [K in keyof TSpec]: InputConfig<TSpec[K], TOptions> | undefined; }): InputConfigObject<TSpec, TOptions>;
13
+ /**
14
+ * Combines a map of bare output configs into one keyed {@link OutputConfigObject}.
15
+ *
16
+ * @remarks
17
+ * An empty map yields a noop output that resolves to `{}`. Each child receives
18
+ * its own keyed slice of the joined spec. Child schemas are merged into an
19
+ * object schema keyed the same way.
20
+ */
21
+ declare function combineOutputs<TSpec extends Record<string, any>, TOptions extends object = object, TReturns extends { [K in keyof TSpec]: any; } = { [K in keyof TSpec]: void; }>(outputs: { [K in keyof TSpec]: OutputConfig<TSpec[K], TOptions, TReturns[K]> | undefined; }): OutputConfigObject<TSpec, TOptions, TReturns>;
4
22
  /**
5
23
  * Combines multiple generator configs into one execution with a joined spec.
6
24
  *
@@ -38,5 +56,5 @@ import { UserConfig } from "@power-plant/core";
38
56
  */
39
57
  declare function combine<TGenerators extends Record<string, AnyGeneratorConfig>>(config: CombinedGeneratorConfig<TGenerators>, options?: UserConfig & CombinedOptions<TGenerators>): Promise<CombinedReturns<TGenerators>>;
40
58
  //#endregion
41
- export { combine };
59
+ export { combine, combineInputs, combineOutputs };
42
60
  //# sourceMappingURL=combine.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine.d.cts","names":[],"sources":["../src/combine.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4NsB,QACpB,oBAAoB,eAAe,qBAEnC,QAAQ,wBAAwB,cAChC,UAAS,aAAa,gBAAgB,eAErC,QAAQ,gBAAgB"}
1
+ {"version":3,"file":"combine.d.cts","names":[],"sources":["../src/combine.ts"],"mappings":";;;;;;;;;;;iBAwDgB,cACd,cAAc,qBACd,kCACA,WACC,WAAW,QAAQ,YAAY,MAAM,IAAI,2BACxC,kBAAkB,OAAO;;;;;;;;;iBA6Cb,eACd,cAAc,qBACd,kCACA,oBAAoB,WAAW,oBAC5B,WAAW,iBAEd,YACC,WAAW,QAAQ,aAAa,MAAM,IAAI,UAAU,SAAS,qBAC5D,mBAAmB,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4JlB,QACpB,oBAAoB,eAAe,qBAEnC,QAAQ,wBAAwB,cAChC,UAAS,aAAa,gBAAgB,eAErC,QAAQ,gBAAgB"}
@@ -1,6 +1,24 @@
1
- import { i as CombinedOptions, n as CombinedGeneratorConfig, o as CombinedReturns, t as AnyGeneratorConfig } from "./types-Br6hilLK.mjs";
2
- import { UserConfig } from "@power-plant/core";
1
+ import { i as CombinedOptions, n as CombinedGeneratorConfig, o as CombinedReturns, t as AnyGeneratorConfig } from "./types-RcNg6zVS.mjs";
2
+ import { InputConfig, InputConfigObject, OutputConfig, OutputConfigObject, UserConfig } from "@power-plant/core";
3
3
  //#region src/combine.d.ts
4
+ /**
5
+ * Combines a map of bare input configs into one keyed {@link InputConfigObject}.
6
+ *
7
+ * @remarks
8
+ * Missing (`undefined`) entries are skipped. An empty map yields a noop input
9
+ * that resolves to `{}`. Child schemas are merged into an object schema keyed
10
+ * the same way; children without a schema use `{ type: "any" }`.
11
+ */
12
+ declare function combineInputs<TSpec extends Record<string, any>, TOptions extends object = object>(inputs: { [K in keyof TSpec]: InputConfig<TSpec[K], TOptions> | undefined; }): InputConfigObject<TSpec, TOptions>;
13
+ /**
14
+ * Combines a map of bare output configs into one keyed {@link OutputConfigObject}.
15
+ *
16
+ * @remarks
17
+ * An empty map yields a noop output that resolves to `{}`. Each child receives
18
+ * its own keyed slice of the joined spec. Child schemas are merged into an
19
+ * object schema keyed the same way.
20
+ */
21
+ declare function combineOutputs<TSpec extends Record<string, any>, TOptions extends object = object, TReturns extends { [K in keyof TSpec]: any; } = { [K in keyof TSpec]: void; }>(outputs: { [K in keyof TSpec]: OutputConfig<TSpec[K], TOptions, TReturns[K]> | undefined; }): OutputConfigObject<TSpec, TOptions, TReturns>;
4
22
  /**
5
23
  * Combines multiple generator configs into one execution with a joined spec.
6
24
  *
@@ -38,5 +56,5 @@ import { UserConfig } from "@power-plant/core";
38
56
  */
39
57
  declare function combine<TGenerators extends Record<string, AnyGeneratorConfig>>(config: CombinedGeneratorConfig<TGenerators>, options?: UserConfig & CombinedOptions<TGenerators>): Promise<CombinedReturns<TGenerators>>;
40
58
  //#endregion
41
- export { combine };
59
+ export { combine, combineInputs, combineOutputs };
42
60
  //# sourceMappingURL=combine.d.mts.map
package/dist/combine.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./helpers-ChHmkA2z.mjs";import{createExecute as c}from"@power-plant/core";function l(e,n){if(n!==void 0)return o(n);let r={};for(let[n,i]of Object.entries(e))r[n]=t(a(i));return{schema:{type:`object`,properties:r,required:Object.keys(r),additionalProperties:!1}}}function u(t,n){return n===void 0?async n=>{let r={};for(let i of Object.keys(t))r[i]=await e(s(t[i]),n,`combine`,i);return r}:n}function d(e,t){return t===void 0?async(t,n,a)=>{let o={};for(let s of Object.keys(e))o[s]=await i(r(e[s]),`combine`,s)(t[s],n,a);return o}:t}function f(e){return async(t,r)=>{let i={};for(let a of Object.keys(e)){let o=await n(e[a],`combine`,a)(t[a],r);Object.assign(i,o)}return i}}function p(e){let{generator:t,meta:n,schema:r,input:i,output:a}=e;return{meta:n,schema:l(t,r),input:u(t,i),output:d(t,a),generator:f(t)}}async function m(e,t={}){return(await c(t))(p(e),t)}export{m as combine};
1
+ import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./helpers-BcAJajm7.mjs";import{createExecute as c}from"@power-plant/core";function l(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=o(r));return{schema:{type:`object`,properties:t,required:Object.keys(t),additionalProperties:!1},input:async t=>{let r={};for(let i of Object.keys(e)){let a=e[i];a!==void 0&&(r[i]=await n(a,t,`combine`,i))}return r}}}function u(n){let r={};for(let[e,i]of Object.entries(n))r[e]=t(i);return{schema:{type:`object`,properties:r,required:Object.keys(r),additionalProperties:!1},output:async(t,r,i)=>{let a={};for(let o of Object.keys(n))a[o]=await e(n[o],`combine`,o)(t[o],r,i);return a}}}function d(e){return async(t,n)=>{let r={};for(let i of Object.keys(e)){let o=await a(e[i],`combine`,i)(t[i],n);Object.assign(r,o)}return r}}function f(e){let{generator:t,meta:n,schema:a,input:o,output:c}=e,f={},p={};for(let e of Object.keys(t))f[e]=s(t[e]),p[e]=r(t[e]);return{meta:n,schema:a===void 0?void 0:i(a),input:o??l(f),output:c??u(p),generator:d(t)}}async function p(e,t={}){return(await c(t))(f(e),t)}export{p as combine,l as combineInputs,u as combineOutputs};
2
2
  //# sourceMappingURL=combine.mjs.map
@@ -0,0 +1 @@
1
+ let e=require("@power-plant/core/helpers/type-checks"),t=require("@stryke/type-checks/is-function");function n(e,t){return e===`combine`?`Combined generator "${t}"`:`Pipe generator at index ${t}`}function r(t){if((0,e.isGeneratorConfigObject)(t))return t.input}function i(t){if((0,e.isGeneratorConfigObject)(t))return t.output}function a(t){return t===void 0?{type:`any`}:(0,e.isSchemaConfigObject)(t)?t.schema:t}function o(t){return t!==void 0&&(0,e.isInputConfigObject)(t)&&t.schema?a(t.schema):{type:`any`}}function s(t){return t!==void 0&&(0,e.isOutputConfigObject)(t)&&t.schema?a(t.schema):{type:`any`}}function c(t){return(0,e.isSchemaConfigObject)(t)?t:{schema:t}}function l(r,i,a,o){let s=n(a,o),c=a===`combine`?`combined`:`pipe`;if(r===void 0)throw TypeError(`${s} has no input config. Provide \`input\` on the child generator or on the ${c} config.`);if((0,t.isFunction)(r))return r(i);if((0,e.isInputConfigObject)(r)){let e=r.input;return(0,t.isFunction)(e)?e(i):e}if(typeof r==`string`)throw TypeError(`${s} uses a load-reference input, which is not supported inside ${a}(). Provide a concrete input value or function.`);return r}function u(r,i,a){let o=n(i,a);if(r===void 0)return async()=>void 0;if((0,t.isFunction)(r))return r;if((0,e.isOutputConfigObject)(r)&&(0,t.isFunction)(r.output))return r.output;throw TypeError(`${o} uses a load-reference output, which is not supported inside ${i}(). Provide a concrete output function.`)}function d(r,i,a){let o=n(i,a);if(!(0,e.isGeneratorConfigObject)(r))throw TypeError(`${o} must be a generator config object (load references are not supported inside ${i}()).`);if(!(0,t.isFunction)(r.generator))throw TypeError(`${o} must provide an inline generator function (load references are not supported inside ${i}()).`);return r.generator}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,2 @@
1
+ import{isGeneratorConfigObject as e,isInputConfigObject as t,isOutputConfigObject as n,isSchemaConfigObject as r}from"@power-plant/core/helpers/type-checks";import{isFunction as i}from"@stryke/type-checks/is-function";function a(e,t){return e===`combine`?`Combined generator "${t}"`:`Pipe generator at index ${t}`}function o(t){if(e(t))return t.input}function s(t){if(e(t))return t.output}function c(e){return e===void 0?{type:`any`}:r(e)?e.schema:e}function l(e){return e!==void 0&&t(e)&&e.schema?c(e.schema):{type:`any`}}function u(e){return e!==void 0&&n(e)&&e.schema?c(e.schema):{type:`any`}}function d(e){return r(e)?e:{schema:e}}function f(e,n,r,o){let s=a(r,o),c=r===`combine`?`combined`:`pipe`;if(e===void 0)throw TypeError(`${s} has no input config. Provide \`input\` on the child generator or on the ${c} config.`);if(i(e))return e(n);if(t(e)){let t=e.input;return i(t)?t(n):t}if(typeof e==`string`)throw TypeError(`${s} uses a load-reference input, which is not supported inside ${r}(). Provide a concrete input value or function.`);return e}function p(e,t,r){let o=a(t,r);if(e===void 0)return async()=>void 0;if(i(e))return e;if(n(e)&&i(e.output))return e.output;throw TypeError(`${o} uses a load-reference output, which is not supported inside ${t}(). Provide a concrete output function.`)}function m(t,n,r){let o=a(n,r);if(!e(t))throw TypeError(`${o} must be a generator config object (load references are not supported inside ${n}()).`);if(!i(t.generator))throw TypeError(`${o} must provide an inline generator function (load references are not supported inside ${n}()).`);return t.generator}export{p as a,u as c,f as i,s as n,d as o,m as r,l as s,o as t};
2
+ //# sourceMappingURL=helpers-BcAJajm7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers-BcAJajm7.mjs","names":[],"sources":[],"mappings":""}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./combine.cjs"),t=require("./pipe.cjs");exports.combine=e.combine,exports.pipe=t.pipe;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./combine.cjs"),t=require("./pipe.cjs");exports.combine=e.combine,exports.combineInputs=e.combineInputs,exports.combineOutputs=e.combineOutputs,exports.pipe=t.pipe,exports.pipeInputs=t.pipeInputs,exports.pipeOutputs=t.pipeOutputs;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as PipeSchemas, a as CombinedOutputs, c as CombinedSpec, d as InferGeneratorSpec, f as PipeGeneratorConfig, g as PipeReturns, h as PipeOutputs, i as CombinedOptions, l as InferGeneratorOptions, m as PipeOptions, n as CombinedGeneratorConfig, o as CombinedReturns, p as PipeInputs, r as CombinedInputs, s as CombinedSchemas, t as AnyGeneratorConfig, u as InferGeneratorReturns, v as PipeSpec, y as UnionToIntersection } from "./types-Br6hilLK.cjs";
2
- import { combine } from "./combine.cjs";
3
- import { pipe } from "./pipe.cjs";
4
- export { type AnyGeneratorConfig, type CombinedGeneratorConfig, type CombinedInputs, type CombinedOptions, type CombinedOutputs, type CombinedReturns, type CombinedSchemas, type CombinedSpec, type InferGeneratorOptions, type InferGeneratorReturns, type InferGeneratorSpec, type PipeGeneratorConfig, type PipeInputs, type PipeOptions, type PipeOutputs, type PipeReturns, type PipeSchemas, type PipeSpec, type UnionToIntersection, combine, pipe };
1
+ import { _ as PipeSchemas, a as CombinedOutputs, c as CombinedSpec, d as InferGeneratorSpec, f as PipeGeneratorConfig, g as PipeReturns, h as PipeOutputs, i as CombinedOptions, l as InferGeneratorOptions, m as PipeOptions, n as CombinedGeneratorConfig, o as CombinedReturns, p as PipeInputs, r as CombinedInputs, s as CombinedSchemas, t as AnyGeneratorConfig, u as InferGeneratorReturns, v as PipeSpec, y as UnionToIntersection } from "./types-RcNg6zVS.cjs";
2
+ import { combine, combineInputs, combineOutputs } from "./combine.cjs";
3
+ import { pipe, pipeInputs, pipeOutputs } from "./pipe.cjs";
4
+ export { type AnyGeneratorConfig, type CombinedGeneratorConfig, type CombinedInputs, type CombinedOptions, type CombinedOutputs, type CombinedReturns, type CombinedSchemas, type CombinedSpec, type InferGeneratorOptions, type InferGeneratorReturns, type InferGeneratorSpec, type PipeGeneratorConfig, type PipeInputs, type PipeOptions, type PipeOutputs, type PipeReturns, type PipeSchemas, type PipeSpec, type UnionToIntersection, combine, combineInputs, combineOutputs, pipe, pipeInputs, pipeOutputs };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as PipeSchemas, a as CombinedOutputs, c as CombinedSpec, d as InferGeneratorSpec, f as PipeGeneratorConfig, g as PipeReturns, h as PipeOutputs, i as CombinedOptions, l as InferGeneratorOptions, m as PipeOptions, n as CombinedGeneratorConfig, o as CombinedReturns, p as PipeInputs, r as CombinedInputs, s as CombinedSchemas, t as AnyGeneratorConfig, u as InferGeneratorReturns, v as PipeSpec, y as UnionToIntersection } from "./types-Br6hilLK.mjs";
2
- import { combine } from "./combine.mjs";
3
- import { pipe } from "./pipe.mjs";
4
- export { type AnyGeneratorConfig, type CombinedGeneratorConfig, type CombinedInputs, type CombinedOptions, type CombinedOutputs, type CombinedReturns, type CombinedSchemas, type CombinedSpec, type InferGeneratorOptions, type InferGeneratorReturns, type InferGeneratorSpec, type PipeGeneratorConfig, type PipeInputs, type PipeOptions, type PipeOutputs, type PipeReturns, type PipeSchemas, type PipeSpec, type UnionToIntersection, combine, pipe };
1
+ import { _ as PipeSchemas, a as CombinedOutputs, c as CombinedSpec, d as InferGeneratorSpec, f as PipeGeneratorConfig, g as PipeReturns, h as PipeOutputs, i as CombinedOptions, l as InferGeneratorOptions, m as PipeOptions, n as CombinedGeneratorConfig, o as CombinedReturns, p as PipeInputs, r as CombinedInputs, s as CombinedSchemas, t as AnyGeneratorConfig, u as InferGeneratorReturns, v as PipeSpec, y as UnionToIntersection } from "./types-RcNg6zVS.mjs";
2
+ import { combine, combineInputs, combineOutputs } from "./combine.mjs";
3
+ import { pipe, pipeInputs, pipeOutputs } from "./pipe.mjs";
4
+ export { type AnyGeneratorConfig, type CombinedGeneratorConfig, type CombinedInputs, type CombinedOptions, type CombinedOutputs, type CombinedReturns, type CombinedSchemas, type CombinedSpec, type InferGeneratorOptions, type InferGeneratorReturns, type InferGeneratorSpec, type PipeGeneratorConfig, type PipeInputs, type PipeOptions, type PipeOutputs, type PipeReturns, type PipeSchemas, type PipeSpec, type UnionToIntersection, combine, combineInputs, combineOutputs, pipe, pipeInputs, pipeOutputs };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{combine as e}from"./combine.mjs";import{pipe as t}from"./pipe.mjs";export{e as combine,t as pipe};
1
+ import{combine as e,combineInputs as t,combineOutputs as n}from"./combine.mjs";import{pipe as r,pipeInputs as i,pipeOutputs as a}from"./pipe.mjs";export{e as combine,t as combineInputs,n as combineOutputs,r as pipe,i as pipeInputs,a as pipeOutputs};
package/dist/pipe.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./helpers-CzywXwbw.cjs");let t=require("@power-plant/core");function n(t,n){if(n!==void 0)return e.s(n);let r=t.map(t=>e.c(e.r(t)));return{schema:{type:`array`,prefixItems:r,items:!1,minItems:r.length,maxItems:r.length}}}function r(t,n){return n===void 0?async n=>{let r=[];for(let i=0;i<t.length;i++)r[i]=await e.a(e.t(t[i]),n,`pipe`,i);return r}:n}function i(t,n){return n===void 0?async(n,r,i)=>{if(t.length===0)return;let a=t.length-1,o=n[a];return e.o(e.n(t[a]),`pipe`,a)(o,r,i)}:n}function a(t){return async(n,r)=>{let i={};for(let a=0;a<t.length;a++){let o=await e.i(t[a],`pipe`,a)(n[a],r);Object.assign(i,o)}return i}}function o(e){let{generator:t,meta:o,schema:s,input:c,output:l}=e,u=t;return{meta:o,schema:n(u,s),input:r(u,c),output:i(u,l),generator:a(u)}}async function s(e,n={}){return(await(0,t.createExecute)(n))(o(e),n)}exports.pipe=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./helpers-BA83xEDk.cjs");let t=require("@power-plant/core");function n(t){let n=t.map(t=>e.s(t));return{schema:{type:`array`,prefixItems:n,items:!1,minItems:n.length,maxItems:n.length},input:async n=>{let r=[],i=t;for(let t=0;t<i.length;t++){let a=i[t];a!==void 0&&(r[t]=await e.i(a,n,`pipe`,t))}return r}}}function r(t){let n=t,r=n.map(t=>e.c(t));return{schema:{type:`array`,prefixItems:r,items:!1,minItems:r.length,maxItems:r.length},output:async(t,r,i)=>{if(n.length===0)return;let a;for(let o=0;o<n.length;o++){let s=t[o];a=await e.a(n[o],`pipe`,o)(s,r,i)}return a}}}function i(t){return async(n,r)=>{let i={};for(let a=0;a<t.length;a++){let o=await e.r(t[a],`pipe`,a)(n[a],r);Object.assign(i,o)}return i}}function a(t){let{generator:a,meta:o,schema:s,input:c,output:l}=t,u=a,d=u.map(t=>e.t(t)),f=u.map(t=>e.n(t));return{meta:o,schema:s===void 0?void 0:e.o(s),input:c??n(d),output:l??r(f),generator:i(u)}}async function o(e,n={}){return(await(0,t.createExecute)(n))(a(e),n)}exports.pipe=o,exports.pipeInputs=n,exports.pipeOutputs=r;
package/dist/pipe.d.cts CHANGED
@@ -1,14 +1,32 @@
1
- import { f as PipeGeneratorConfig, g as PipeReturns, m as PipeOptions, t as AnyGeneratorConfig } from "./types-Br6hilLK.cjs";
2
- import { UserConfig } from "@power-plant/core";
1
+ import { f as PipeGeneratorConfig, g as PipeReturns, m as PipeOptions, t as AnyGeneratorConfig } from "./types-RcNg6zVS.cjs";
2
+ import { InputConfig, InputConfigObject, OutputConfig, OutputConfigObject, UserConfig } from "@power-plant/core";
3
3
  //#region src/pipe.d.ts
4
+ /**
5
+ * Pipes an ordered list of bare input configs into one tuple {@link InputConfigObject}.
6
+ *
7
+ * @remarks
8
+ * Missing (`undefined`) entries are skipped at resolve time (slot stays
9
+ * `undefined`; array length preserved). An empty list yields a noop input that
10
+ * resolves to `[]`. Child schemas become `prefixItems` aligned with the list.
11
+ */
12
+ declare function pipeInputs<TSpec extends any[], TOptions extends object = object>(inputs: { [I in keyof TSpec]: InputConfig<TSpec[I], TOptions> | undefined; }): InputConfigObject<TSpec, TOptions>;
13
+ /**
14
+ * Pipes an ordered list of bare output configs into one {@link OutputConfigObject}.
15
+ *
16
+ * @remarks
17
+ * Every output runs in order with its own `spec[i]` slice; the last return
18
+ * value is kept. An empty list yields `undefined`. Child schemas become
19
+ * `prefixItems` aligned with the list.
20
+ */
21
+ declare function pipeOutputs<TSpec extends any[], TOptions extends object = object, TReturns = void>(outputs: { [I in keyof TSpec]: OutputConfig<TSpec[I], TOptions, any> | undefined; }): OutputConfigObject<TSpec, TOptions, TReturns>;
4
22
  /**
5
23
  * Pipes multiple generator configs into one sequential execution.
6
24
  *
7
25
  * @remarks
8
26
  * `config.generator` is an ordered array of child generator configs.
9
27
  * Spec / schema / input shapes are a tuple aligned with that array.
10
- * Child generators run in array order; documents are merged; returns come
11
- * from the last generator only.
28
+ * Child generators run in array order; documents are merged; every child
29
+ * output runs (own spec slice) and returns come from the last generator only.
12
30
  *
13
31
  * @example
14
32
  * ```ts
@@ -38,5 +56,5 @@ import { UserConfig } from "@power-plant/core";
38
56
  */
39
57
  declare function pipe<TGenerators extends AnyGeneratorConfig[]>(config: PipeGeneratorConfig<TGenerators>, options?: UserConfig & PipeOptions<TGenerators>): Promise<PipeReturns<TGenerators>>;
40
58
  //#endregion
41
- export { pipe };
59
+ export { pipe, pipeInputs, pipeOutputs };
42
60
  //# sourceMappingURL=pipe.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipe.d.cts","names":[],"sources":["../src/pipe.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmNsB,KAAK,oBAAoB,sBAC7C,QAAQ,oBAAoB,cAC5B,UAAS,aAAa,YAAY,eAEjC,QAAQ,YAAY"}
1
+ {"version":3,"file":"pipe.d.cts","names":[],"sources":["../src/pipe.ts"],"mappings":";;;;;;;;;;;iBAuDgB,WACd,qBACA,kCACA,WACC,WAAW,QAAQ,YAAY,MAAM,IAAI,2BACxC,kBAAkB,OAAO;;;;;;;;;iBA4Cb,YACd,qBACA,kCACA,iBACA,YACC,WAAW,QAAQ,aAAa,MAAM,IAAI,gCACzC,mBAAmB,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuIlB,KAAK,oBAAoB,sBAC7C,QAAQ,oBAAoB,cAC5B,UAAS,aAAa,YAAY,eAEjC,QAAQ,YAAY"}
package/dist/pipe.d.mts CHANGED
@@ -1,14 +1,32 @@
1
- import { f as PipeGeneratorConfig, g as PipeReturns, m as PipeOptions, t as AnyGeneratorConfig } from "./types-Br6hilLK.mjs";
2
- import { UserConfig } from "@power-plant/core";
1
+ import { f as PipeGeneratorConfig, g as PipeReturns, m as PipeOptions, t as AnyGeneratorConfig } from "./types-RcNg6zVS.mjs";
2
+ import { InputConfig, InputConfigObject, OutputConfig, OutputConfigObject, UserConfig } from "@power-plant/core";
3
3
  //#region src/pipe.d.ts
4
+ /**
5
+ * Pipes an ordered list of bare input configs into one tuple {@link InputConfigObject}.
6
+ *
7
+ * @remarks
8
+ * Missing (`undefined`) entries are skipped at resolve time (slot stays
9
+ * `undefined`; array length preserved). An empty list yields a noop input that
10
+ * resolves to `[]`. Child schemas become `prefixItems` aligned with the list.
11
+ */
12
+ declare function pipeInputs<TSpec extends any[], TOptions extends object = object>(inputs: { [I in keyof TSpec]: InputConfig<TSpec[I], TOptions> | undefined; }): InputConfigObject<TSpec, TOptions>;
13
+ /**
14
+ * Pipes an ordered list of bare output configs into one {@link OutputConfigObject}.
15
+ *
16
+ * @remarks
17
+ * Every output runs in order with its own `spec[i]` slice; the last return
18
+ * value is kept. An empty list yields `undefined`. Child schemas become
19
+ * `prefixItems` aligned with the list.
20
+ */
21
+ declare function pipeOutputs<TSpec extends any[], TOptions extends object = object, TReturns = void>(outputs: { [I in keyof TSpec]: OutputConfig<TSpec[I], TOptions, any> | undefined; }): OutputConfigObject<TSpec, TOptions, TReturns>;
4
22
  /**
5
23
  * Pipes multiple generator configs into one sequential execution.
6
24
  *
7
25
  * @remarks
8
26
  * `config.generator` is an ordered array of child generator configs.
9
27
  * Spec / schema / input shapes are a tuple aligned with that array.
10
- * Child generators run in array order; documents are merged; returns come
11
- * from the last generator only.
28
+ * Child generators run in array order; documents are merged; every child
29
+ * output runs (own spec slice) and returns come from the last generator only.
12
30
  *
13
31
  * @example
14
32
  * ```ts
@@ -38,5 +56,5 @@ import { UserConfig } from "@power-plant/core";
38
56
  */
39
57
  declare function pipe<TGenerators extends AnyGeneratorConfig[]>(config: PipeGeneratorConfig<TGenerators>, options?: UserConfig & PipeOptions<TGenerators>): Promise<PipeReturns<TGenerators>>;
40
58
  //#endregion
41
- export { pipe };
59
+ export { pipe, pipeInputs, pipeOutputs };
42
60
  //# sourceMappingURL=pipe.d.mts.map
package/dist/pipe.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./helpers-ChHmkA2z.mjs";import{createExecute as c}from"@power-plant/core";function l(e,n){if(n!==void 0)return o(n);let r=e.map(e=>t(a(e)));return{schema:{type:`array`,prefixItems:r,items:!1,minItems:r.length,maxItems:r.length}}}function u(t,n){return n===void 0?async n=>{let r=[];for(let i=0;i<t.length;i++)r[i]=await e(s(t[i]),n,`pipe`,i);return r}:n}function d(e,t){return t===void 0?async(t,n,a)=>{if(e.length===0)return;let o=e.length-1,s=t[o];return i(r(e[o]),`pipe`,o)(s,n,a)}:t}function f(e){return async(t,r)=>{let i={};for(let a=0;a<e.length;a++){let o=await n(e[a],`pipe`,a)(t[a],r);Object.assign(i,o)}return i}}function p(e){let{generator:t,meta:n,schema:r,input:i,output:a}=e,o=t;return{meta:n,schema:l(o,r),input:u(o,i),output:d(o,a),generator:f(o)}}async function m(e,t={}){return(await c(t))(p(e),t)}export{m as pipe};
1
+ import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./helpers-BcAJajm7.mjs";import{createExecute as c}from"@power-plant/core";function l(e){let t=e.map(e=>o(e));return{schema:{type:`array`,prefixItems:t,items:!1,minItems:t.length,maxItems:t.length},input:async t=>{let r=[],i=e;for(let e=0;e<i.length;e++){let a=i[e];a!==void 0&&(r[e]=await n(a,t,`pipe`,e))}return r}}}function u(n){let r=n,i=r.map(e=>t(e));return{schema:{type:`array`,prefixItems:i,items:!1,minItems:i.length,maxItems:i.length},output:async(t,n,i)=>{if(r.length===0)return;let a;for(let o=0;o<r.length;o++){let s=t[o];a=await e(r[o],`pipe`,o)(s,n,i)}return a}}}function d(e){return async(t,n)=>{let r={};for(let i=0;i<e.length;i++){let o=await a(e[i],`pipe`,i)(t[i],n);Object.assign(r,o)}return r}}function f(e){let{generator:t,meta:n,schema:a,input:o,output:c}=e,f=t,p=f.map(e=>s(e)),m=f.map(e=>r(e));return{meta:n,schema:a===void 0?void 0:i(a),input:o??l(p),output:c??u(m),generator:d(f)}}async function p(e,t={}){return(await c(t))(f(e),t)}export{p as pipe,l as pipeInputs,u as pipeOutputs};
2
2
  //# sourceMappingURL=pipe.mjs.map
@@ -41,7 +41,9 @@ type PipeOutputs<TGenerators extends AnyGeneratorConfig[]> = { [I in keyof TGene
41
41
  *
42
42
  * @remarks
43
43
  * `schema` / `input` validate and produce the tuple {@link PipeSpec}.
44
- * `output` produces {@link PipeReturns} (last generator only).
44
+ * `output` produces {@link PipeReturns} (last generator only; all outputs run).
45
+ * When `schema` is omitted, the composed input/output schemas from
46
+ * {@link pipeInputs} / {@link pipeOutputs} are used instead.
45
47
  */
46
48
  type PipeGeneratorConfig<TGenerators extends AnyGeneratorConfig[]> = Omit<GeneratorConfigObject<PipeSpec<TGenerators>, PipeOptions<TGenerators>, PipeReturns<TGenerators>>, "generator"> & {
47
49
  generator: [...TGenerators];
@@ -82,10 +84,12 @@ type CombinedOutputs<TGenerators extends Record<string, AnyGeneratorConfig>> = {
82
84
  * @remarks
83
85
  * `schema` / `input` / `output` validate and produce the joined
84
86
  * {@link CombinedSpec} / {@link CombinedReturns} shapes (keys match `generator`).
87
+ * When `schema` is omitted, the composed input/output schemas from
88
+ * {@link combineInputs} / {@link combineOutputs} are used instead.
85
89
  */
86
90
  type CombinedGeneratorConfig<TGenerators extends Record<string, AnyGeneratorConfig>> = Omit<GeneratorConfigObject<CombinedSpec<TGenerators>, CombinedOptions<TGenerators>, CombinedReturns<TGenerators>>, "generator"> & {
87
91
  generator: TGenerators;
88
92
  };
89
93
  //#endregion
90
94
  export { PipeSchemas as _, CombinedOutputs as a, CombinedSpec as c, InferGeneratorSpec as d, PipeGeneratorConfig as f, PipeReturns as g, PipeOutputs as h, CombinedOptions as i, InferGeneratorOptions as l, PipeOptions as m, CombinedGeneratorConfig as n, CombinedReturns as o, PipeInputs as p, CombinedInputs as r, CombinedSchemas as s, AnyGeneratorConfig as t, InferGeneratorReturns as u, PipeSpec as v, UnionToIntersection as y };
91
- //# sourceMappingURL=types-Br6hilLK.d.mts.map
95
+ //# sourceMappingURL=types-RcNg6zVS.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-RcNg6zVS.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;KA0BY,qBAAqB;KAErB,mBAAmB,UAAU,sBACvC,UAAU,4BAA4B,mBAAmB;KAE/C,sBAAsB,UAAU,sBAC1C,UAAU,iCAAiC,iBACvC;KAIM,sBAAsB,UAAU,sBAC1C,UAAU,sCAAsC,YAAY;KAElD,oBAAoB,MAC9B,iBAAiB,GAAG,8BACX,SAAS,cAChB;;;;KAQC,OAAO,gCAAgC,6BACjC,aACH,QAEJ;;;;;;;KASQ,SAAS,oBAAoB,2BACtC,WAAW,cAAc,mBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,YAAY,oBAAoB,wBAC1C,uBAEK,WAAW,cAAc,sBACxB,QAAQ,YAAY,IAAI;;;;KASpB,YAAY,oBAAoB,wBAC1C,sBAAsB,QAAQ,OAAO,cAAc;;;;KAKzC,YAAY,oBAAoB,2BACzC,WAAW,cAAc,kBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,WAAW,oBAAoB,2BACxC,WAAW,cAAc,iBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,YAAY,oBAAoB,2BACzC,WAAW,cAAc,kBACxB,QAAQ,YAAY,IAAI;;;;;;;;;;KAahB,oBAAoB,oBAAoB,wBAClD,KACE,sBACE,SAAS,cACT,YAAY,cACZ,YAAY;EAId,eAAe;;;;;;;;KAaP,aACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,mBAAmB,YAAY;;;;KAM/C,gBACV,oBAAoB,eAAe,uBACjC,uBAEC,WAAW,cAAc,sBAAsB,YAAY,aACtD;;;;;;;KAUE,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,sBAAsB,YAAY;;;;KAMlD,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,kBAAkB,YAAY;;;;KAM9C,eACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,iBAAiB,YAAY;;;;KAM7C,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,kBAAkB,YAAY;;;;;;;;;;KAY9C,wBACV,oBAAoB,eAAe,uBACjC,KACF,sBACE,aAAa,cACb,gBAAgB,cAChB,gBAAgB;EAIlB,WAAW"}
@@ -41,7 +41,9 @@ type PipeOutputs<TGenerators extends AnyGeneratorConfig[]> = { [I in keyof TGene
41
41
  *
42
42
  * @remarks
43
43
  * `schema` / `input` validate and produce the tuple {@link PipeSpec}.
44
- * `output` produces {@link PipeReturns} (last generator only).
44
+ * `output` produces {@link PipeReturns} (last generator only; all outputs run).
45
+ * When `schema` is omitted, the composed input/output schemas from
46
+ * {@link pipeInputs} / {@link pipeOutputs} are used instead.
45
47
  */
46
48
  type PipeGeneratorConfig<TGenerators extends AnyGeneratorConfig[]> = Omit<GeneratorConfigObject<PipeSpec<TGenerators>, PipeOptions<TGenerators>, PipeReturns<TGenerators>>, "generator"> & {
47
49
  generator: [...TGenerators];
@@ -82,10 +84,12 @@ type CombinedOutputs<TGenerators extends Record<string, AnyGeneratorConfig>> = {
82
84
  * @remarks
83
85
  * `schema` / `input` / `output` validate and produce the joined
84
86
  * {@link CombinedSpec} / {@link CombinedReturns} shapes (keys match `generator`).
87
+ * When `schema` is omitted, the composed input/output schemas from
88
+ * {@link combineInputs} / {@link combineOutputs} are used instead.
85
89
  */
86
90
  type CombinedGeneratorConfig<TGenerators extends Record<string, AnyGeneratorConfig>> = Omit<GeneratorConfigObject<CombinedSpec<TGenerators>, CombinedOptions<TGenerators>, CombinedReturns<TGenerators>>, "generator"> & {
87
91
  generator: TGenerators;
88
92
  };
89
93
  //#endregion
90
94
  export { PipeSchemas as _, CombinedOutputs as a, CombinedSpec as c, InferGeneratorSpec as d, PipeGeneratorConfig as f, PipeReturns as g, PipeOutputs as h, CombinedOptions as i, InferGeneratorOptions as l, PipeOptions as m, CombinedGeneratorConfig as n, CombinedReturns as o, PipeInputs as p, CombinedInputs as r, CombinedSchemas as s, AnyGeneratorConfig as t, InferGeneratorReturns as u, PipeSpec as v, UnionToIntersection as y };
91
- //# sourceMappingURL=types-Br6hilLK.d.cts.map
95
+ //# sourceMappingURL=types-RcNg6zVS.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-RcNg6zVS.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-plant/utils",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Various utilities that help in the development of Power Plant extensions",
6
6
  "keywords": ["power-plant", "storm-software"],
@@ -85,5 +85,5 @@
85
85
  "typescript": "^6.0.3"
86
86
  },
87
87
  "publishConfig": { "access": "public" },
88
- "gitHead": "7346b39899095e30744680cd9994a6c229d4f16a"
88
+ "gitHead": "7f073baeea89f543f711841eb015f9659ea8d0a9"
89
89
  }
@@ -1,2 +0,0 @@
1
- import{isGeneratorConfigObject as e,isInputConfigObject as t,isOutputConfigObject as n,isSchemaConfigObject as r}from"@power-plant/core/helpers/type-checks";import{isFunction as i}from"@stryke/type-checks/is-function";function a(e,t){return e===`combine`?`Combined generator "${t}"`:`Pipe generator at index ${t}`}function o(t){if(e(t))return t.schema}function s(t){if(e(t))return t.input}function c(t){if(e(t))return t.output}function l(e){return e===void 0?{type:`any`}:r(e)?e.schema:e}function u(e){return r(e)?e:{schema:e}}function d(e,n,r,o){let s=a(r,o),c=r===`combine`?`combined`:`pipe`;if(e===void 0)throw TypeError(`${s} has no input config. Provide \`input\` on the child generator or on the ${c} config.`);if(i(e))return e(n);if(t(e)){let t=e.input;return i(t)?t(n):t}if(typeof e==`string`)throw TypeError(`${s} uses a load-reference input, which is not supported inside ${r}(). Provide a concrete input value or function.`);return e}function f(e,t,r){let o=a(t,r);if(e===void 0)return async()=>void 0;if(i(e))return e;if(n(e)&&i(e.output))return e.output;throw TypeError(`${o} uses a load-reference output, which is not supported inside ${t}(). Provide a concrete output function.`)}function p(t,n,r){let o=a(n,r);if(!e(t))throw TypeError(`${o} must be a generator config object (load references are not supported inside ${n}()).`);if(!i(t.generator))throw TypeError(`${o} must provide an inline generator function (load references are not supported inside ${n}()).`);return t.generator}export{d as a,l as c,p as i,c as n,f as o,o as r,u as s,s as t};
2
- //# sourceMappingURL=helpers-ChHmkA2z.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers-ChHmkA2z.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- let e=require("@power-plant/core/helpers/type-checks"),t=require("@stryke/type-checks/is-function");function n(e,t){return e===`combine`?`Combined generator "${t}"`:`Pipe generator at index ${t}`}function r(t){if((0,e.isGeneratorConfigObject)(t))return t.schema}function i(t){if((0,e.isGeneratorConfigObject)(t))return t.input}function a(t){if((0,e.isGeneratorConfigObject)(t))return t.output}function o(t){return t===void 0?{type:`any`}:(0,e.isSchemaConfigObject)(t)?t.schema:t}function s(t){return(0,e.isSchemaConfigObject)(t)?t:{schema:t}}function c(r,i,a,o){let s=n(a,o),c=a===`combine`?`combined`:`pipe`;if(r===void 0)throw TypeError(`${s} has no input config. Provide \`input\` on the child generator or on the ${c} config.`);if((0,t.isFunction)(r))return r(i);if((0,e.isInputConfigObject)(r)){let e=r.input;return(0,t.isFunction)(e)?e(i):e}if(typeof r==`string`)throw TypeError(`${s} uses a load-reference input, which is not supported inside ${a}(). Provide a concrete input value or function.`);return r}function l(r,i,a){let o=n(i,a);if(r===void 0)return async()=>void 0;if((0,t.isFunction)(r))return r;if((0,e.isOutputConfigObject)(r)&&(0,t.isFunction)(r.output))return r.output;throw TypeError(`${o} uses a load-reference output, which is not supported inside ${i}(). Provide a concrete output function.`)}function u(r,i,a){let o=n(i,a);if(!(0,e.isGeneratorConfigObject)(r))throw TypeError(`${o} must be a generator config object (load references are not supported inside ${i}()).`);if(!(0,t.isFunction)(r.generator))throw TypeError(`${o} must provide an inline generator function (load references are not supported inside ${i}()).`);return r.generator}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-Br6hilLK.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;KA0BY,qBAAqB;KAErB,mBAAmB,UAAU,sBACvC,UAAU,4BAA4B,mBAAmB;KAE/C,sBAAsB,UAAU,sBAC1C,UAAU,iCAAiC,iBACvC;KAIM,sBAAsB,UAAU,sBAC1C,UAAU,sCAAsC,YAAY;KAElD,oBAAoB,MAC9B,iBAAiB,GAAG,8BACX,SAAS,cAChB;;;;KAQC,OAAO,gCAAgC,6BACjC,aACH,QAEJ;;;;;;;KASQ,SAAS,oBAAoB,2BACtC,WAAW,cAAc,mBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,YAAY,oBAAoB,wBAC1C,uBAEK,WAAW,cAAc,sBACxB,QAAQ,YAAY,IAAI;;;;KASpB,YAAY,oBAAoB,wBAC1C,sBAAsB,QAAQ,OAAO,cAAc;;;;KAKzC,YAAY,oBAAoB,2BACzC,WAAW,cAAc,kBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,WAAW,oBAAoB,2BACxC,WAAW,cAAc,iBACxB,QAAQ,YAAY,IAAI;;;;KAOhB,YAAY,oBAAoB,2BACzC,WAAW,cAAc,kBACxB,QAAQ,YAAY,IAAI;;;;;;;;KAWhB,oBAAoB,oBAAoB,wBAClD,KACE,sBACE,SAAS,cACT,YAAY,cACZ,YAAY;EAId,eAAe;;;;;;;;KAaP,aACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,mBAAmB,YAAY;;;;KAM/C,gBACV,oBAAoB,eAAe,uBACjC,uBAEC,WAAW,cAAc,sBAAsB,YAAY,aACtD;;;;;;;KAUE,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,sBAAsB,YAAY;;;;KAMlD,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,kBAAkB,YAAY;;;;KAM9C,eACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,iBAAiB,YAAY;;;;KAM7C,gBACV,oBAAoB,eAAe,0BAElC,WAAW,cAAc,kBAAkB,YAAY;;;;;;;;KAU9C,wBACV,oBAAoB,eAAe,uBACjC,KACF,sBACE,aAAa,cACb,gBAAgB,cAChB,gBAAgB;EAIlB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-Br6hilLK.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}