@power-plant/core 0.0.23 → 0.0.25
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/README.md +1 -1
- package/dist/{config-CC41Bqgl.d.cts → config-Beq7WF_l.d.mts} +13 -4
- package/dist/{config-Fi_Jtk6F.d.mts.map → config-Beq7WF_l.d.mts.map} +1 -1
- package/dist/{config-Fi_Jtk6F.d.mts → config-DjOTmKJ-.d.cts} +13 -4
- package/dist/config-DjOTmKJ-.d.cts.map +1 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/{context-DY5B2aBE.d.cts → context-BWBu3ZGQ.d.mts} +3 -3
- package/dist/context-BWBu3ZGQ.d.mts.map +1 -0
- package/dist/{context-IDaXHmjn.d.mts → context-Dv5inNBb.d.cts} +3 -3
- package/dist/{context-DY5B2aBE.d.cts.map → context-Dv5inNBb.d.cts.map} +1 -1
- package/dist/context.d.cts +1 -1
- package/dist/context.d.mts +1 -1
- package/dist/define.d.cts +1 -1
- package/dist/define.d.mts +1 -1
- package/dist/{execute-Bz9Yw67j.cjs → execute-4whFNgY3.cjs} +1 -1
- package/dist/{execute-BL5L5XgC.mjs → execute-ByonuMsd.mjs} +2 -2
- package/dist/execute-ByonuMsd.mjs.map +1 -0
- package/dist/execute.cjs +1 -1
- package/dist/execute.d.cts +3 -3
- package/dist/execute.d.cts.map +1 -1
- package/dist/execute.d.mts +3 -3
- package/dist/execute.mjs +1 -1
- package/dist/{execution-C1pMcv6_.d.cts → execution-Bb3uSrmc.d.mts} +6 -5
- package/dist/execution-Bb3uSrmc.d.mts.map +1 -0
- package/dist/{execution-kTyaWKPh.d.mts → execution-CRrga32N.d.cts} +6 -5
- package/dist/execution-CRrga32N.d.cts.map +1 -0
- package/dist/helpers/index.d.cts +1 -1
- package/dist/helpers/meta.d.cts +1 -1
- package/dist/helpers/type-checks.d.cts +2 -2
- package/dist/helpers/type-checks.d.mts +2 -2
- package/dist/index-CGJ5KOdN.d.mts +3 -0
- package/dist/index-DdHt416f.d.cts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/{meta-CiPl-8rq.d.cts → meta-DAeqzHmR.d.cts} +2 -2
- package/dist/{meta-CiPl-8rq.d.cts.map → meta-DAeqzHmR.d.cts.map} +1 -1
- package/package.json +4 -4
- package/dist/config-CC41Bqgl.d.cts.map +0 -1
- package/dist/context-IDaXHmjn.d.mts.map +0 -1
- package/dist/execute-BL5L5XgC.mjs.map +0 -1
- package/dist/execution-C1pMcv6_.d.cts.map +0 -1
- package/dist/execution-kTyaWKPh.d.mts.map +0 -1
- package/dist/index-D6NsxfvJ.d.mts +0 -3
- package/dist/index-DxjmLh4R.d.cts +0 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
|
|
|
33
33
|
|
|
34
34
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
35
35
|
|
|
36
|
-
[](https://docs.stormsoftware.com/projects/power-plant) [](http://commitizen.github.io/cz-cli/)  
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore-start -->
|
|
39
39
|
<!-- markdownlint-disable -->
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
2
2
|
import { Storage } from "unstorage";
|
|
3
3
|
import { InferExtractOptions, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
4
|
+
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
4
5
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
5
|
-
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
6
6
|
//#region src/types/meta.d.ts
|
|
7
7
|
type MetaDeprecated = true | string | {
|
|
8
8
|
message?: string;
|
|
@@ -218,7 +218,9 @@ interface GeneratorConfigObject<TSpec, TOptions extends object, TReturns = void>
|
|
|
218
218
|
generator: GeneratorFunction<TSpec, TOptions> | LoadReference;
|
|
219
219
|
}
|
|
220
220
|
type GeneratorConfig<TSpec, TOptions extends object, TReturns = void> = LoadReference | GeneratorConfigObject<TSpec, TOptions, TReturns>;
|
|
221
|
-
type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = T extends LoadReference ? InferLoadOptions<T> : {}
|
|
221
|
+
type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & {
|
|
222
|
+
tsconfig?: string;
|
|
223
|
+
};
|
|
222
224
|
interface Generator<TSpec, TOptions extends object, TReturns = void> {
|
|
223
225
|
/**
|
|
224
226
|
* Optional metadata about the generator, such as a description of the output it produces.
|
|
@@ -346,6 +348,13 @@ interface UserConfig<TSpec = any, TOptions extends object = any, TReturns = any>
|
|
|
346
348
|
* Whether to enable debug mode.
|
|
347
349
|
*/
|
|
348
350
|
debug?: true;
|
|
351
|
+
/**
|
|
352
|
+
* An optional path to a TypeScript configuration file to use for the schema extraction process. If provided, the TypeScript configuration file will be used to compile the TypeScript code before extracting the schema. If not provided, the default TypeScript configuration will be used.
|
|
353
|
+
*
|
|
354
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
355
|
+
* @see https://www.typescriptlang.org/docs/handbook/compiler-options.html
|
|
356
|
+
*/
|
|
357
|
+
tsconfig?: string;
|
|
349
358
|
/**
|
|
350
359
|
* The settings to use for the application.
|
|
351
360
|
*/
|
|
@@ -380,4 +389,4 @@ type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> =
|
|
|
380
389
|
type UserConfigExport<TSpec = any, TOptions extends object = any, TReturns = any> = UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]> | UserConfigFnObject<TSpec, TOptions, TReturns> | UserConfigFnPromise<TSpec, TOptions, TReturns> | UserConfigFn<TSpec, TOptions, TReturns>;
|
|
381
390
|
//#endregion
|
|
382
391
|
export { InferCreateInputOptions as A, SchemaMetaExample as B, InferGenerator as C, InferMeta as D, InferInputConfig as E, InputMetaConfig as F, MetaLink as G, BaseMetaConfig as H, InferCreateSchemaOptions as I, Schema as L, InputConfig as M, InputConfigObject as N, InferOutputConfig as O, InputFunction as P, SchemaConfigObject as R, InferCreateGeneratorOptions as S, InferGeneratorResult as T, MetaConfig as U, SchemaOf as V, MetaDeprecated as W, GeneratorConfig as _, UserConfigFnPromise as a, GeneratorFunctionResult as b, Settings as c, OutputConfig as d, OutputConfigObject as f, Generator as g, GeneratedDocumentChunk as h, UserConfigFnObject as i, Input as j, InferSchemaConfig as k, InferCreateOutputOptions as l, GeneratedDocument as m, UserConfigExport as n, UserConfigParams as o, OutputFunction as p, UserConfigFn as r, Logger as s, UserConfig as t, Output as u, GeneratorConfigObject as v, InferGeneratorFunction as w, GeneratorResult as x, GeneratorFunction as y, SchemaMetaConfig as z };
|
|
383
|
-
//# sourceMappingURL=config-
|
|
392
|
+
//# sourceMappingURL=config-Beq7WF_l.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-Beq7WF_l.d.mts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
2
2
|
import { Storage } from "unstorage";
|
|
3
3
|
import { InferExtractOptions, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
4
|
-
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
5
4
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
5
|
+
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
6
6
|
//#region src/types/meta.d.ts
|
|
7
7
|
type MetaDeprecated = true | string | {
|
|
8
8
|
message?: string;
|
|
@@ -218,7 +218,9 @@ interface GeneratorConfigObject<TSpec, TOptions extends object, TReturns = void>
|
|
|
218
218
|
generator: GeneratorFunction<TSpec, TOptions> | LoadReference;
|
|
219
219
|
}
|
|
220
220
|
type GeneratorConfig<TSpec, TOptions extends object, TReturns = void> = LoadReference | GeneratorConfigObject<TSpec, TOptions, TReturns>;
|
|
221
|
-
type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = T extends LoadReference ? InferLoadOptions<T> : {}
|
|
221
|
+
type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & {
|
|
222
|
+
tsconfig?: string;
|
|
223
|
+
};
|
|
222
224
|
interface Generator<TSpec, TOptions extends object, TReturns = void> {
|
|
223
225
|
/**
|
|
224
226
|
* Optional metadata about the generator, such as a description of the output it produces.
|
|
@@ -346,6 +348,13 @@ interface UserConfig<TSpec = any, TOptions extends object = any, TReturns = any>
|
|
|
346
348
|
* Whether to enable debug mode.
|
|
347
349
|
*/
|
|
348
350
|
debug?: true;
|
|
351
|
+
/**
|
|
352
|
+
* An optional path to a TypeScript configuration file to use for the schema extraction process. If provided, the TypeScript configuration file will be used to compile the TypeScript code before extracting the schema. If not provided, the default TypeScript configuration will be used.
|
|
353
|
+
*
|
|
354
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
355
|
+
* @see https://www.typescriptlang.org/docs/handbook/compiler-options.html
|
|
356
|
+
*/
|
|
357
|
+
tsconfig?: string;
|
|
349
358
|
/**
|
|
350
359
|
* The settings to use for the application.
|
|
351
360
|
*/
|
|
@@ -380,4 +389,4 @@ type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> =
|
|
|
380
389
|
type UserConfigExport<TSpec = any, TOptions extends object = any, TReturns = any> = UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[] | Promise<UserConfig<TSpec, TOptions, TReturns> | UserConfig<TSpec, TOptions, TReturns>[]> | UserConfigFnObject<TSpec, TOptions, TReturns> | UserConfigFnPromise<TSpec, TOptions, TReturns> | UserConfigFn<TSpec, TOptions, TReturns>;
|
|
381
390
|
//#endregion
|
|
382
391
|
export { InferCreateInputOptions as A, SchemaMetaExample as B, InferGenerator as C, InferMeta as D, InferInputConfig as E, InputMetaConfig as F, MetaLink as G, BaseMetaConfig as H, InferCreateSchemaOptions as I, Schema as L, InputConfig as M, InputConfigObject as N, InferOutputConfig as O, InputFunction as P, SchemaConfigObject as R, InferCreateGeneratorOptions as S, InferGeneratorResult as T, MetaConfig as U, SchemaOf as V, MetaDeprecated as W, GeneratorConfig as _, UserConfigFnPromise as a, GeneratorFunctionResult as b, Settings as c, OutputConfig as d, OutputConfigObject as f, Generator as g, GeneratedDocumentChunk as h, UserConfigFnObject as i, Input as j, InferSchemaConfig as k, InferCreateOutputOptions as l, GeneratedDocument as m, UserConfigExport as n, UserConfigParams as o, OutputFunction as p, UserConfigFn as r, Logger as s, UserConfig as t, Output as u, GeneratorConfigObject as v, InferGeneratorFunction as w, GeneratorResult as x, GeneratorFunction as y, SchemaMetaConfig as z };
|
|
383
|
-
//# sourceMappingURL=config-
|
|
392
|
+
//# sourceMappingURL=config-DjOTmKJ-.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DjOTmKJ-.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":"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"}
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-
|
|
1
|
+
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-DjOTmKJ-.cjs";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type helper to make it easier to use `power-plant.config.ts` files. Accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigParams} object.
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-
|
|
1
|
+
import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-Beq7WF_l.mjs";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type helper to make it easier to use `power-plant.config.ts` files. Accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigParams} object.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-
|
|
2
|
-
import { n as Execution } from "./execution-
|
|
1
|
+
import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-Beq7WF_l.mjs";
|
|
2
|
+
import { n as Execution } from "./execution-Bb3uSrmc.mjs";
|
|
3
3
|
import { Storage } from "unstorage";
|
|
4
4
|
//#region src/types/base.d.ts
|
|
5
5
|
interface Base {
|
|
@@ -102,4 +102,4 @@ interface LocalStore {
|
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
export { Base as a, Session as i, LocalStore as n, SessionContext as r, ExecutionContext as t };
|
|
105
|
-
//# sourceMappingURL=context-
|
|
105
|
+
//# sourceMappingURL=context-BWBu3ZGQ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-BWBu3ZGQ.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-
|
|
2
|
-
import { n as Execution } from "./execution-
|
|
1
|
+
import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-DjOTmKJ-.cjs";
|
|
2
|
+
import { n as Execution } from "./execution-CRrga32N.cjs";
|
|
3
3
|
import { Storage } from "unstorage";
|
|
4
4
|
//#region src/types/base.d.ts
|
|
5
5
|
interface Base {
|
|
@@ -102,4 +102,4 @@ interface LocalStore {
|
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
export { Base as a, Session as i, LocalStore as n, SessionContext as r, ExecutionContext as t };
|
|
105
|
-
//# sourceMappingURL=context-
|
|
105
|
+
//# sourceMappingURL=context-Dv5inNBb.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
1
|
+
{"version":3,"file":"context-Dv5inNBb.d.cts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":";;;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;UChBe,gBAAgB;;;;EAI/B;;;;EAKA;;;;EAKA,YAAY;;;;UCRG;;;;EAIf;;;;EAKA,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;UAGM,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU;;;;EAIlC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS;;;;MAKnB,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe;;;;;;;EAQhC,cACE,yBAAyB,mBACzB,WAAW,KAAK;;UAIH;EACf;EACA"}
|
package/dist/context.d.cts
CHANGED
package/dist/context.d.mts
CHANGED
package/dist/define.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as InputConfig, N as InputConfigObject, R as SchemaConfigObject, d as OutputConfig, f as OutputConfigObject, v as GeneratorConfigObject } from "./config-
|
|
1
|
+
import { M as InputConfig, N as InputConfigObject, R as SchemaConfigObject, d as OutputConfig, f as OutputConfigObject, v as GeneratorConfigObject } from "./config-DjOTmKJ-.cjs";
|
|
2
2
|
import { SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
3
3
|
//#region src/define.d.ts
|
|
4
4
|
/**
|
package/dist/define.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as InputConfig, N as InputConfigObject, R as SchemaConfigObject, d as OutputConfig, f as OutputConfigObject, v as GeneratorConfigObject } from "./config-
|
|
1
|
+
import { M as InputConfig, N as InputConfigObject, R as SchemaConfigObject, d as OutputConfig, f as OutputConfigObject, v as GeneratorConfigObject } from "./config-Beq7WF_l.mjs";
|
|
2
2
|
import { SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
3
3
|
//#region src/define.d.ts
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require("./context.cjs"),l=require("./helpers/type-checks.cjs"),u=require("./helpers/meta.cjs");let d=require("@stryke/unique-id/uuid"),f=require("@stryke/env/get-env-paths"),p=require("@stryke/fs/read-file"),m=require("@stryke/fs/write-file"),h=require("@stryke/path/join-paths"),g=require("@stryke/type-checks/is-set-string"),_=require("defu");_=s(_,1);let v=require("node:os");v=s(v,1);let y=require("unstorage"),b=require("unstorage/drivers/fs-lite");b=s(b,1);let x=require("@power-plant/schema/storage"),S=require("@stryke/resolve/load"),C=require("@stryke/type-checks/is-function"),w=require("@power-plant/schema"),T=require("@stryke/resolve/type-checks");const E={debug:console.debug,info:console.info,warn:console.warn,error:console.error},D=(0,f.getEnvPaths)({appId:`power-plant`,orgId:`storm-software`});async function O(e={}){let t=e.cwd||process.cwd(),n=new Date,r=(0,y.createStorage)({driver:(0,b.default)({base:t})}),i=JSON.parse(await(0,p.readFileIfExisting)((0,h.joinPaths)(D.data,`.local-store.json`))||`{}`),a=i.device||v.default.hostname()||(0,d.uuid)(),o=i.user||v.default.userInfo().username||(0,d.uuid)();return(!(0,g.isSetString)(i.device)||!(0,g.isSetString)(i.user))&&await(0,m.writeFile)((0,h.joinPaths)(D.data,`.local-store.json`),JSON.stringify({device:a,user:o},null,2)),(0,_.default)({cwd:t,session:{id:(0,d.uuid)(),createdAt:n,updatedAt:n,device:a,user:o,executions:[]}},e,{storage:r,settings:{},logger:E})}async function k(e,t,n,r,i,a){let o={},s=(e,t)=>{(0,g.isSetString)(e)?o[e]=(0,_.default)({path:e},t,{chunks:[],meta:{}}):o[e.path]=(0,_.default)(e,t)},c,l={...t,id:e,createdAt:new Date,updatedAt:new Date,options:n,schema:r,input:i,output:a,documents:o,spec(){if(!c)throw Error(`The specification was accessed prior to the input processing.`);return c},addDocument:s,meta:{id:e,executedAt:new Date,executedBy:``}};return Object.defineProperty(l,"~spec",{get(){return c},set(e){c=e},enumerable:!1}),l}async function A(e,t,n){return e}function j(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Accepts a ${r.title??``} specification and processes it with a {title} sink.`,n,r,t?.description),r.examples=u.resolveMetaExample(n,r,t?.examples),r}async function M(e,t={}){let{meta:n,schema:r}=l.isSchemaConfigObject(e)?e:{schema:e,meta:{}},i=await(0,w.extractSchemaWithSource)(r,t);return{...i,meta:j(i,n)}}function N(e,t,n){t&&t.schema!==e&&(0,w.assertSchemasDoNotContradict)(e.schema,t.schema.schema,`input`),n&&n.schema!==e&&(0,w.assertSchemasDoNotContradict)(e.schema,n.schema.schema,`output`)}function P(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Determines the ${r.title??``} specification from a {title} input.`,n,r,t?.description),r}async function F(e,t,n={}){let{input:r,meta:i,schema:a}=l.isInputConfigObject(t)?t:{input:t,meta:{}},o=e;if(a){let t;if((0,T.isLoadReference)(a))try{t=await(0,S.load)(a,n)}catch{}else t=a;t&&(o=await M(t,n),o.schema=(0,w.mergeMetadata)(o.schema,e.schema))}let s;if((0,T.isLoadReference)(r))try{let e=await(0,S.load)(r,n);s=l.isInputConfigObject(e)?await F(o,e.input,n).then(e=>e.input):e}catch{}return s||=r,{schema:o,input:s,meta:P(o,i)}}function I(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Accepts a ${r.title??``} specification and processes it with a {title} output.`,n,r,t?.description),r}async function L(e,t,n={}){let{output:r,meta:i,schema:a}=l.isOutputConfigObject(t)?t:{output:t,meta:{}},o=e;if(a){let t;if((0,T.isLoadReference)(a))try{t=await(0,S.load)(a,n)}catch{}else t=a;t&&(o=await M(t,n),o.schema=(0,w.mergeMetadata)(o.schema,e.schema))}let s;if((0,T.isLoadReference)(r))try{let e=await(0,S.load)(r,n);s=l.isOutputConfigObject(e)?await L(o,e.output,n).then(e=>e.output):e}catch{}return s||=r,{schema:o,output:s,meta:I(o,i)}}async function R(e,t,n,r={}){let i;i=l.isGeneratorConfigObject(n)?n:await(0,S.load)(n,{fs:(0,x.mapStorageToFileSystem)(t.storage),...r}),i.schema||={type:`any`};let a=await M(i.schema,{storage:t.storage,...r}),o=i.input;if(!o)if(r.inputPath)o=`@power-plant/unstorage-input`;else throw Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");let s=i.output;s||=`@power-plant/unstorage-output`;let[u,d]=await Promise.all([F(a,o,{storage:t.storage,...r}),L(a,s,{storage:t.storage,...r})]);return N(a,u,d),{meta:i.meta,schema:a,input:u,output:d,generator:async n=>{let r=await k(e,t,n,a,u,d);return c.callAsyncExecutionContext(r,async()=>{let e=(0,C.isFunction)(u.input)?await u.input({storage:r.storage,...n}):u.input;r[`~spec`]=e;let t;t=(0,C.isFunction)(i.generator)?i.generator:await(0,S.load)(i.generator,{storage:r.storage,...n});let a=await t(e,n);return{spec:e,options:n,documents:a,returns:await d.output(e,n,a)}})}}}async function z(e={}){let t=await O(e);return async(e,n={})=>c.callAsyncSessionContext(t,async()=>{let r=(0,d.uuid)(),{generator:i}=await R(r,t,e,n),{documents:a,returns:o,spec:s,options:c}=await i(n),l=await A({documents:Object.fromEntries(Object.entries(a).map(([e,t])=>[e,{...t,path:e,meta:{executionId:r}}])),meta:{executionId:r,executedAt:new Date,executedBy:t.session.user}},s,c);return t.session.executions.push(l),o})}async function B(e,t={}){return(await z(t))(e,t)}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return z}});
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require("./context.cjs"),l=require("./helpers/type-checks.cjs"),u=require("./helpers/meta.cjs");let d=require("@stryke/unique-id/uuid"),f=require("@stryke/env/get-env-paths"),p=require("@stryke/fs/read-file"),m=require("@stryke/fs/write-file"),h=require("@stryke/path/join-paths"),g=require("@stryke/type-checks/is-set-string"),_=require("defu");_=s(_,1);let v=require("node:os");v=s(v,1);let y=require("unstorage"),b=require("unstorage/drivers/fs-lite");b=s(b,1);let x=require("@power-plant/schema/storage"),S=require("@stryke/resolve/load"),C=require("@stryke/type-checks/is-function"),w=require("@power-plant/schema"),T=require("@stryke/resolve/type-checks");const E={debug:console.debug,info:console.info,warn:console.warn,error:console.error},D=(0,f.getEnvPaths)({appId:`power-plant`,orgId:`storm-software`});async function O(e={}){let t=e.cwd||process.cwd(),n=new Date,r=(0,y.createStorage)({driver:(0,b.default)({base:t})}),i=JSON.parse(await(0,p.readFileIfExisting)((0,h.joinPaths)(D.data,`.local-store.json`))||`{}`),a=i.device||v.default.hostname()||(0,d.uuid)(),o=i.user||v.default.userInfo().username||(0,d.uuid)();return(!(0,g.isSetString)(i.device)||!(0,g.isSetString)(i.user))&&await(0,m.writeFile)((0,h.joinPaths)(D.data,`.local-store.json`),JSON.stringify({device:a,user:o},null,2)),(0,_.default)({cwd:t,session:{id:(0,d.uuid)(),createdAt:n,updatedAt:n,device:a,user:o,executions:[]}},e,{storage:r,settings:{},logger:E})}async function k(e,t,n,r,i,a){let o={},s=(e,t)=>{(0,g.isSetString)(e)?o[e]=(0,_.default)({path:e},t,{chunks:[],meta:{}}):o[e.path]=(0,_.default)(e,t)},c,l={...t,id:e,createdAt:new Date,updatedAt:new Date,options:n,schema:r,input:i,output:a,documents:o,spec(){if(!c)throw Error(`The specification was accessed prior to the input processing.`);return c},addDocument:s,meta:{id:e,executedAt:new Date,executedBy:``}};return Object.defineProperty(l,"~spec",{get(){return c},set(e){c=e},enumerable:!1}),l}async function A(e,t,n){return e}function j(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Accepts a ${r.title??``} specification and processes it with a {title} sink.`,n,r,t?.description),r.examples=u.resolveMetaExample(n,r,t?.examples),r}async function M(e,t={}){let{meta:n,schema:r}=l.isSchemaConfigObject(e)?e:{schema:e,meta:{}},i=await(0,w.extractSchemaWithSource)(r,t);return{...i,meta:j(i,n)}}function N(e,t,n){t&&t.schema!==e&&(0,w.assertSchemasDoNotContradict)(e.schema,t.schema.schema,`input`),n&&n.schema!==e&&(0,w.assertSchemasDoNotContradict)(e.schema,n.schema.schema,`output`)}function P(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Determines the ${r.title??``} specification from a {title} input.`,n,r,t?.description),r}async function F(e,t,n={}){let{input:r,meta:i,schema:a}=l.isInputConfigObject(t)?t:{input:t,meta:{}},o=e;if(a){let t;if((0,T.isLoadReference)(a))try{t=await(0,S.load)(a,n)}catch{}else t=a;t&&(o=await M(t,n),o.schema=(0,w.mergeMetadata)(o.schema,e.schema))}let s;if((0,T.isLoadReference)(r))try{let e=await(0,S.load)(r,n);s=l.isInputConfigObject(e)?await F(o,e.input,n).then(e=>e.input):e}catch{}return s||=r,{schema:o,input:s,meta:P(o,i)}}function I(e,t){let n=e?.schema??{},r=u.resolveMeta(e,t);return r.description=u.resolveMetaDescription(`Accepts a ${r.title??``} specification and processes it with a {title} output.`,n,r,t?.description),r}async function L(e,t,n={}){let{output:r,meta:i,schema:a}=l.isOutputConfigObject(t)?t:{output:t,meta:{}},o=e;if(a){let t;if((0,T.isLoadReference)(a))try{t=await(0,S.load)(a,n)}catch{}else t=a;t&&(o=await M(t,n),o.schema=(0,w.mergeMetadata)(o.schema,e.schema))}let s;if((0,T.isLoadReference)(r))try{let e=await(0,S.load)(r,n);s=l.isOutputConfigObject(e)?await L(o,e.output,n).then(e=>e.output):e}catch{}return s||=r,{schema:o,output:s,meta:I(o,i)}}async function R(e,t,n,r={}){let i;i=l.isGeneratorConfigObject(n)?n:await(0,S.load)(n,{fs:(0,x.mapStorageToFileSystem)(t.storage),...r}),i.schema||={type:`any`};let a=await M(i.schema,{storage:t.storage,tsconfig:r.tsconfig,...r}),o=i.input;if(!o)if(r.inputPath)o=`@power-plant/unstorage-input`;else throw Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");let s=i.output;s||=`@power-plant/unstorage-output`;let[u,d]=await Promise.all([F(a,o,{storage:t.storage,...r}),L(a,s,{storage:t.storage,...r})]);return N(a,u,d),{meta:i.meta,schema:a,input:u,output:d,generator:async n=>{let r=await k(e,t,n,a,u,d);return c.callAsyncExecutionContext(r,async()=>{let e=(0,C.isFunction)(u.input)?await u.input({storage:r.storage,...n}):u.input;r[`~spec`]=e;let t;t=(0,C.isFunction)(i.generator)?i.generator:await(0,S.load)(i.generator,{storage:r.storage,...n});let a=await t(e,n);return{spec:e,options:n,documents:a,returns:await d.output(e,n,a)}})}}}async function z(e={}){let t=await O(e);return async(e,n={})=>c.callAsyncSessionContext(t,async()=>{let r=(0,d.uuid)(),{generator:i}=await R(r,t,e,n),{documents:a,returns:o,spec:s,options:c}=await i(n),l=await A({documents:Object.fromEntries(Object.entries(a).map(([e,t])=>[e,{...t,path:e,meta:{executionId:r}}])),meta:{executionId:r,executedAt:new Date,executedBy:t.session.user}},s,c);return t.session.executions.push(l),o})}async function B(e,t={}){return(await z(t))(e,t)}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return z}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{callAsyncExecutionContext as e,callAsyncSessionContext as t}from"./context.mjs";import{isGeneratorConfigObject as n,isInputConfigObject as r,isOutputConfigObject as i,isSchemaConfigObject as a}from"./helpers/type-checks.mjs";import{resolveMeta as o,resolveMetaDescription as s,resolveMetaExample as c}from"./helpers/meta.mjs";import{uuid as l}from"@stryke/unique-id/uuid";import{getEnvPaths as u}from"@stryke/env/get-env-paths";import{readFileIfExisting as d}from"@stryke/fs/read-file";import{writeFile as f}from"@stryke/fs/write-file";import{joinPaths as p}from"@stryke/path/join-paths";import{isSetString as m}from"@stryke/type-checks/is-set-string";import h from"defu";import g from"node:os";import{createStorage as _}from"unstorage";import v from"unstorage/drivers/fs-lite";import{mapStorageToFileSystem as y}from"@power-plant/schema/storage";import{load as b}from"@stryke/resolve/load";import{isFunction as x}from"@stryke/type-checks/is-function";import{assertSchemasDoNotContradict as S,extractSchemaWithSource as C,mergeMetadata as w}from"@power-plant/schema";import{isLoadReference as T}from"@stryke/resolve/type-checks";const E={debug:console.debug,info:console.info,warn:console.warn,error:console.error},D=u({appId:`power-plant`,orgId:`storm-software`});async function O(e={}){let t=e.cwd||process.cwd(),n=new Date,r=_({driver:v({base:t})}),i=JSON.parse(await d(p(D.data,`.local-store.json`))||`{}`),a=i.device||g.hostname()||l(),o=i.user||g.userInfo().username||l();return(!m(i.device)||!m(i.user))&&await f(p(D.data,`.local-store.json`),JSON.stringify({device:a,user:o},null,2)),h({cwd:t,session:{id:l(),createdAt:n,updatedAt:n,device:a,user:o,executions:[]}},e,{storage:r,settings:{},logger:E})}async function k(e,t,n,r,i,a){let o={},s=(e,t)=>{m(e)?o[e]=h({path:e},t,{chunks:[],meta:{}}):o[e.path]=h(e,t)},c,l={...t,id:e,createdAt:new Date,updatedAt:new Date,options:n,schema:r,input:i,output:a,documents:o,spec(){if(!c)throw Error(`The specification was accessed prior to the input processing.`);return c},addDocument:s,meta:{id:e,executedAt:new Date,executedBy:``}};return Object.defineProperty(l,"~spec",{get(){return c},set(e){c=e},enumerable:!1}),l}async function A(e,t,n){return e}function j(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Accepts a ${r.title??``} specification and processes it with a {title} sink.`,n,r,t?.description),r.examples=c(n,r,t?.examples),r}async function M(e,t={}){let{meta:n,schema:r}=a(e)?e:{schema:e,meta:{}},i=await C(r,t);return{...i,meta:j(i,n)}}function N(e,t,n){t&&t.schema!==e&&S(e.schema,t.schema.schema,`input`),n&&n.schema!==e&&S(e.schema,n.schema.schema,`output`)}function P(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Determines the ${r.title??``} specification from a {title} input.`,n,r,t?.description),r}async function F(e,t,n={}){let{input:i,meta:a,schema:o}=r(t)?t:{input:t,meta:{}},s=e;if(o){let t;if(T(o))try{t=await b(o,n)}catch{}else t=o;t&&(s=await M(t,n),s.schema=w(s.schema,e.schema))}let c;if(T(i))try{let e=await b(i,n);c=r(e)?await F(s,e.input,n).then(e=>e.input):e}catch{}return c||=i,{schema:s,input:c,meta:P(s,a)}}function I(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Accepts a ${r.title??``} specification and processes it with a {title} output.`,n,r,t?.description),r}async function L(e,t,n={}){let{output:r,meta:a,schema:o}=i(t)?t:{output:t,meta:{}},s=e;if(o){let t;if(T(o))try{t=await b(o,n)}catch{}else t=o;t&&(s=await M(t,n),s.schema=w(s.schema,e.schema))}let c;if(T(r))try{let e=await b(r,n);c=i(e)?await L(s,e.output,n).then(e=>e.output):e}catch{}return c||=r,{schema:s,output:c,meta:I(s,a)}}async function R(t,r,i,a={}){let o;o=n(i)?i:await b(i,{fs:y(r.storage),...a}),o.schema||={type:`any`};let s=await M(o.schema,{storage:r.storage,...a}),c=o.input;if(!c)if(a.inputPath)c=`@power-plant/unstorage-input`;else throw Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");let l=o.output;l||=`@power-plant/unstorage-output`;let[u,d]=await Promise.all([F(s,c,{storage:r.storage,...a}),L(s,l,{storage:r.storage,...a})]);return N(s,u,d),{meta:o.meta,schema:s,input:u,output:d,generator:async n=>{let i=await k(t,r,n,s,u,d);return e(i,async()=>{let e=x(u.input)?await u.input({storage:i.storage,...n}):u.input;i[`~spec`]=e;let t;t=x(o.generator)?o.generator:await b(o.generator,{storage:i.storage,...n});let r=await t(e,n);return{spec:e,options:n,documents:r,returns:await d.output(e,n,r)}})}}}async function z(e={}){let n=await O(e);return async(e,r={})=>t(n,async()=>{let t=l(),{generator:i}=await R(t,n,e,r),{documents:a,returns:o,spec:s,options:c}=await i(r),u=await A({documents:Object.fromEntries(Object.entries(a).map(([e,n])=>[e,{...n,path:e,meta:{executionId:t}}])),meta:{executionId:t,executedAt:new Date,executedBy:n.session.user}},s,c);return n.session.executions.push(u),o})}async function B(e,t={}){return(await z(t))(e,t)}export{B as n,z as t};
|
|
2
|
-
//# sourceMappingURL=execute-
|
|
1
|
+
import{callAsyncExecutionContext as e,callAsyncSessionContext as t}from"./context.mjs";import{isGeneratorConfigObject as n,isInputConfigObject as r,isOutputConfigObject as i,isSchemaConfigObject as a}from"./helpers/type-checks.mjs";import{resolveMeta as o,resolveMetaDescription as s,resolveMetaExample as c}from"./helpers/meta.mjs";import{uuid as l}from"@stryke/unique-id/uuid";import{getEnvPaths as u}from"@stryke/env/get-env-paths";import{readFileIfExisting as d}from"@stryke/fs/read-file";import{writeFile as f}from"@stryke/fs/write-file";import{joinPaths as p}from"@stryke/path/join-paths";import{isSetString as m}from"@stryke/type-checks/is-set-string";import h from"defu";import g from"node:os";import{createStorage as _}from"unstorage";import v from"unstorage/drivers/fs-lite";import{mapStorageToFileSystem as y}from"@power-plant/schema/storage";import{load as b}from"@stryke/resolve/load";import{isFunction as x}from"@stryke/type-checks/is-function";import{assertSchemasDoNotContradict as S,extractSchemaWithSource as C,mergeMetadata as w}from"@power-plant/schema";import{isLoadReference as T}from"@stryke/resolve/type-checks";const E={debug:console.debug,info:console.info,warn:console.warn,error:console.error},D=u({appId:`power-plant`,orgId:`storm-software`});async function O(e={}){let t=e.cwd||process.cwd(),n=new Date,r=_({driver:v({base:t})}),i=JSON.parse(await d(p(D.data,`.local-store.json`))||`{}`),a=i.device||g.hostname()||l(),o=i.user||g.userInfo().username||l();return(!m(i.device)||!m(i.user))&&await f(p(D.data,`.local-store.json`),JSON.stringify({device:a,user:o},null,2)),h({cwd:t,session:{id:l(),createdAt:n,updatedAt:n,device:a,user:o,executions:[]}},e,{storage:r,settings:{},logger:E})}async function k(e,t,n,r,i,a){let o={},s=(e,t)=>{m(e)?o[e]=h({path:e},t,{chunks:[],meta:{}}):o[e.path]=h(e,t)},c,l={...t,id:e,createdAt:new Date,updatedAt:new Date,options:n,schema:r,input:i,output:a,documents:o,spec(){if(!c)throw Error(`The specification was accessed prior to the input processing.`);return c},addDocument:s,meta:{id:e,executedAt:new Date,executedBy:``}};return Object.defineProperty(l,"~spec",{get(){return c},set(e){c=e},enumerable:!1}),l}async function A(e,t,n){return e}function j(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Accepts a ${r.title??``} specification and processes it with a {title} sink.`,n,r,t?.description),r.examples=c(n,r,t?.examples),r}async function M(e,t={}){let{meta:n,schema:r}=a(e)?e:{schema:e,meta:{}},i=await C(r,t);return{...i,meta:j(i,n)}}function N(e,t,n){t&&t.schema!==e&&S(e.schema,t.schema.schema,`input`),n&&n.schema!==e&&S(e.schema,n.schema.schema,`output`)}function P(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Determines the ${r.title??``} specification from a {title} input.`,n,r,t?.description),r}async function F(e,t,n={}){let{input:i,meta:a,schema:o}=r(t)?t:{input:t,meta:{}},s=e;if(o){let t;if(T(o))try{t=await b(o,n)}catch{}else t=o;t&&(s=await M(t,n),s.schema=w(s.schema,e.schema))}let c;if(T(i))try{let e=await b(i,n);c=r(e)?await F(s,e.input,n).then(e=>e.input):e}catch{}return c||=i,{schema:s,input:c,meta:P(s,a)}}function I(e,t){let n=e?.schema??{},r=o(e,t);return r.description=s(`Accepts a ${r.title??``} specification and processes it with a {title} output.`,n,r,t?.description),r}async function L(e,t,n={}){let{output:r,meta:a,schema:o}=i(t)?t:{output:t,meta:{}},s=e;if(o){let t;if(T(o))try{t=await b(o,n)}catch{}else t=o;t&&(s=await M(t,n),s.schema=w(s.schema,e.schema))}let c;if(T(r))try{let e=await b(r,n);c=i(e)?await L(s,e.output,n).then(e=>e.output):e}catch{}return c||=r,{schema:s,output:c,meta:I(s,a)}}async function R(t,r,i,a={}){let o;o=n(i)?i:await b(i,{fs:y(r.storage),...a}),o.schema||={type:`any`};let s=await M(o.schema,{storage:r.storage,tsconfig:a.tsconfig,...a}),c=o.input;if(!c)if(a.inputPath)c=`@power-plant/unstorage-input`;else throw Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");let l=o.output;l||=`@power-plant/unstorage-output`;let[u,d]=await Promise.all([F(s,c,{storage:r.storage,...a}),L(s,l,{storage:r.storage,...a})]);return N(s,u,d),{meta:o.meta,schema:s,input:u,output:d,generator:async n=>{let i=await k(t,r,n,s,u,d);return e(i,async()=>{let e=x(u.input)?await u.input({storage:i.storage,...n}):u.input;i[`~spec`]=e;let t;t=x(o.generator)?o.generator:await b(o.generator,{storage:i.storage,...n});let r=await t(e,n);return{spec:e,options:n,documents:r,returns:await d.output(e,n,r)}})}}}async function z(e={}){let n=await O(e);return async(e,r={})=>t(n,async()=>{let t=l(),{generator:i}=await R(t,n,e,r),{documents:a,returns:o,spec:s,options:c}=await i(r),u=await A({documents:Object.fromEntries(Object.entries(a).map(([e,n])=>[e,{...n,path:e,meta:{executionId:t}}])),meta:{executionId:t,executedAt:new Date,executedBy:n.session.user}},s,c);return n.session.executions.push(u),o})}async function B(e,t={}){return(await z(t))(e,t)}export{B as n,z as t};
|
|
2
|
+
//# sourceMappingURL=execute-ByonuMsd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-ByonuMsd.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/execute.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execute-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execute-4whFNgY3.cjs");require("./context.cjs"),exports.createExecute=e.t,exports.execute=e.n;
|
package/dist/execute.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as GeneratorConfig, t as UserConfig } from "./config-
|
|
2
|
-
import { a as
|
|
1
|
+
import { _ as GeneratorConfig, t as UserConfig } from "./config-DjOTmKJ-.cjs";
|
|
2
|
+
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-CRrga32N.cjs";
|
|
3
3
|
//#region src/execute.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates an execution function that can be used to execute a generator.
|
|
@@ -81,7 +81,7 @@ declare function createExecute(userConfig?: UserConfig): Promise<ExecuteFunction
|
|
|
81
81
|
* @param options - The options for the generator.
|
|
82
82
|
* @returns A promise that resolves to the returns of the generator.
|
|
83
83
|
*/
|
|
84
|
-
declare function execute<TSpec, TOptions extends object, TReturns = void>(config: GeneratorConfig<TSpec, TOptions, TReturns>, options?:
|
|
84
|
+
declare function execute<TSpec, TOptions extends object, TReturns = void>(config: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof config> & TOptions): Promise<TReturns>;
|
|
85
85
|
//#endregion
|
|
86
86
|
export { createExecute, execute };
|
|
87
87
|
//# sourceMappingURL=execute.d.cts.map
|
package/dist/execute.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.cts","names":[],"sources":["../src/execute.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2EsB,cACpB,aAAY,aACX,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2FW,QAAQ,OAAO,yBAAyB,iBAC5D,QAAQ,gBAAgB,OAAO,UAAU,WACzC,UAAS,
|
|
1
|
+
{"version":3,"file":"execute.d.cts","names":[],"sources":["../src/execute.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2EsB,cACpB,aAAY,aACX,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2FW,QAAQ,OAAO,yBAAyB,iBAC5D,QAAQ,gBAAgB,OAAO,UAAU,WACzC,UAAS,2BAA2B,UAClC,WACD,QAAQ"}
|
package/dist/execute.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as GeneratorConfig, t as UserConfig } from "./config-
|
|
2
|
-
import { a as
|
|
1
|
+
import { _ as GeneratorConfig, t as UserConfig } from "./config-Beq7WF_l.mjs";
|
|
2
|
+
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-Bb3uSrmc.mjs";
|
|
3
3
|
//#region src/execute.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates an execution function that can be used to execute a generator.
|
|
@@ -81,7 +81,7 @@ declare function createExecute(userConfig?: UserConfig): Promise<ExecuteFunction
|
|
|
81
81
|
* @param options - The options for the generator.
|
|
82
82
|
* @returns A promise that resolves to the returns of the generator.
|
|
83
83
|
*/
|
|
84
|
-
declare function execute<TSpec, TOptions extends object, TReturns = void>(config: GeneratorConfig<TSpec, TOptions, TReturns>, options?:
|
|
84
|
+
declare function execute<TSpec, TOptions extends object, TReturns = void>(config: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof config> & TOptions): Promise<TReturns>;
|
|
85
85
|
//#endregion
|
|
86
86
|
export { createExecute, execute };
|
|
87
87
|
//# sourceMappingURL=execute.d.mts.map
|
package/dist/execute.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./context.mjs";import{n as e,t}from"./execute-
|
|
1
|
+
import"./context.mjs";import{n as e,t}from"./execute-ByonuMsd.mjs";export{t as createExecute,e as execute};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { U as MetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig, z as SchemaMetaConfig } from "./config-
|
|
1
|
+
import { U as MetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig, z as SchemaMetaConfig } from "./config-Beq7WF_l.mjs";
|
|
2
|
+
import { BaseExtractOptions } from "@power-plant/schema";
|
|
2
3
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
3
4
|
//#region src/types/execution.d.ts
|
|
4
5
|
interface ExecutionMeta<TSpec> extends MetaConfig {
|
|
@@ -54,8 +55,8 @@ type ExecutionResult<TReturns = void> = GeneratedDocument & {
|
|
|
54
55
|
*/
|
|
55
56
|
returns?: TReturns;
|
|
56
57
|
};
|
|
57
|
-
type
|
|
58
|
-
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?:
|
|
58
|
+
type InferExecuteOptions<TGeneratorConfig extends GeneratorConfig<any, any, any>> = (TGeneratorConfig extends LoadReference ? InferLoadOptions<TGeneratorConfig> & UserConfig : UserConfig) & BaseExtractOptions;
|
|
59
|
+
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof generatorConfig> & TOptions) => Promise<TReturns>;
|
|
59
60
|
//#endregion
|
|
60
|
-
export {
|
|
61
|
-
//# sourceMappingURL=execution-
|
|
61
|
+
export { InferExecuteOptions as a, ExecutionResult as i, Execution as n, ExecutionMeta as r, ExecuteFunction as t };
|
|
62
|
+
//# sourceMappingURL=execution-Bb3uSrmc.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-Bb3uSrmc.d.mts","names":[],"sources":["../src/types/execution.ts"],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { U as MetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig, z as SchemaMetaConfig } from "./config-
|
|
1
|
+
import { U as MetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig, z as SchemaMetaConfig } from "./config-DjOTmKJ-.cjs";
|
|
2
|
+
import { BaseExtractOptions } from "@power-plant/schema";
|
|
2
3
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
3
4
|
//#region src/types/execution.d.ts
|
|
4
5
|
interface ExecutionMeta<TSpec> extends MetaConfig {
|
|
@@ -54,8 +55,8 @@ type ExecutionResult<TReturns = void> = GeneratedDocument & {
|
|
|
54
55
|
*/
|
|
55
56
|
returns?: TReturns;
|
|
56
57
|
};
|
|
57
|
-
type
|
|
58
|
-
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?:
|
|
58
|
+
type InferExecuteOptions<TGeneratorConfig extends GeneratorConfig<any, any, any>> = (TGeneratorConfig extends LoadReference ? InferLoadOptions<TGeneratorConfig> & UserConfig : UserConfig) & BaseExtractOptions;
|
|
59
|
+
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof generatorConfig> & TOptions) => Promise<TReturns>;
|
|
59
60
|
//#endregion
|
|
60
|
-
export {
|
|
61
|
-
//# sourceMappingURL=execution-
|
|
61
|
+
export { InferExecuteOptions as a, ExecutionResult as i, Execution as n, ExecutionMeta as r, ExecuteFunction as t };
|
|
62
|
+
//# sourceMappingURL=execution-CRrga32N.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-CRrga32N.d.cts","names":[],"sources":["../src/types/execution.ts"],"mappings":";;;;UAyBiB,cAAc,eAAe;;;;;;;EAO5C;;;;EAKA,YAAY;;;;EAKZ;;;;EAKA,MAAM;;;;EAKN,QAAQ,iBAAiB;;;;EAKzB,OAAO;;;;EAKP,QAAQ;;;;EAKR,WAAW;;UAGI,UAAU;;;;EAIzB,WAAW,eAAe;;;;EAK1B,MAAM,cAAc;;KAGV,gBAAgB,mBAAmB;;;;EAI7C,UAAU;;KAGA,oBACV,yBAAyB,mCACtB,yBAAyB,gBAC1B,iBAAiB,oBAAoB,aACrC,cACF;KAEU,mBAAmB,OAAO,yBAAyB,iBAC7D,iBAAiB,gBAAgB,OAAO,UAAU,WAClD,UAAU,2BAA2B,mBAAmB,aACrD,QAAQ"}
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as resolveMetaId, c as resolveMetaTitle, i as resolveMetaExample, l as resolveMetaVersion, n as resolveMeta, o as resolveMetaLinks, r as resolveMetaDescription, s as resolveMetaName, t as formatMetaVersion } from "../meta-
|
|
1
|
+
import { a as resolveMetaId, c as resolveMetaTitle, i as resolveMetaExample, l as resolveMetaVersion, n as resolveMeta, o as resolveMetaLinks, r as resolveMetaDescription, s as resolveMetaName, t as formatMetaVersion } from "../meta-DAeqzHmR.cjs";
|
|
2
2
|
import { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.cjs";
|
|
3
3
|
export { formatMetaVersion, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
package/dist/helpers/meta.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveMetaId, c as resolveMetaTitle, i as resolveMetaExample, l as resolveMetaVersion, n as resolveMeta, o as resolveMetaLinks, r as resolveMetaDescription, s as resolveMetaName, t as formatMetaVersion } from "../meta-
|
|
1
|
+
import { a as resolveMetaId, c as resolveMetaTitle, i as resolveMetaExample, l as resolveMetaVersion, n as resolveMeta, o as resolveMetaLinks, r as resolveMetaDescription, s as resolveMetaName, t as formatMetaVersion } from "../meta-DAeqzHmR.cjs";
|
|
2
2
|
export { formatMetaVersion, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-DjOTmKJ-.cjs";
|
|
2
|
+
import "../index-DdHt416f.cjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { N as InputConfigObject, R as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-Beq7WF_l.mjs";
|
|
2
|
+
import "../index-CGJ5KOdN.mjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execute-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./execute-4whFNgY3.cjs"),t=require("./config.cjs"),n=require("./context.cjs"),r=require("./define.cjs");exports.callAsyncExecution=n.callAsyncExecution,exports.callAsyncExecutionContext=n.callAsyncExecutionContext,exports.callAsyncSession=n.callAsyncSession,exports.callAsyncSessionContext=n.callAsyncSessionContext,exports.callExecution=n.callExecution,exports.callExecutionContext=n.callExecutionContext,exports.callSession=n.callSession,exports.callSessionContext=n.callSessionContext,exports.createExecute=e.t,exports.defineConfig=t.defineConfig,exports.defineGenerator=r.defineGenerator,exports.defineInput=r.defineInput,exports.defineOutput=r.defineOutput,exports.defineSchema=r.defineSchema,exports.execute=e.n,exports.executionAsyncLocalStorage=n.executionAsyncLocalStorage,exports.executionContext=n.executionContext,exports.sessionAsyncLocalStorage=n.sessionAsyncLocalStorage,exports.sessionContext=n.sessionContext,exports.tryUseExecution=n.tryUseExecution,exports.tryUseExecutionContext=n.tryUseExecutionContext,exports.tryUseSession=n.tryUseSession,exports.tryUseSessionContext=n.tryUseSessionContext,exports.useContext=n.useContext,exports.useExecution=n.useExecution,exports.useExecutionContext=n.useExecutionContext,exports.useSession=n.useSession,exports.useSessionContext=n.useSessionContext;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-
|
|
1
|
+
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-DjOTmKJ-.cjs";
|
|
2
2
|
import { defineConfig } from "./config.cjs";
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as Base, i as Session, n as LocalStore, r as SessionContext, t as ExecutionContext } from "./context-
|
|
3
|
+
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-CRrga32N.cjs";
|
|
4
|
+
import { a as Base, i as Session, n as LocalStore, r as SessionContext, t as ExecutionContext } from "./context-Dv5inNBb.cjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.cjs";
|
|
6
6
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.cjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.cjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type
|
|
8
|
+
import "./index-DdHt416f.cjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-
|
|
1
|
+
import { A as InferCreateInputOptions, B as SchemaMetaExample, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InputMetaConfig, G as MetaLink, H as BaseMetaConfig, I as InferCreateSchemaOptions, L as Schema, M as InputConfig, N as InputConfigObject, O as InferOutputConfig, P as InputFunction, R as SchemaConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as MetaConfig, V as SchemaOf, W as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as Input, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as SchemaMetaConfig } from "./config-Beq7WF_l.mjs";
|
|
2
2
|
import { defineConfig } from "./config.mjs";
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as Base, i as Session, n as LocalStore, r as SessionContext, t as ExecutionContext } from "./context-
|
|
3
|
+
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-Bb3uSrmc.mjs";
|
|
4
|
+
import { a as Base, i as Session, n as LocalStore, r as SessionContext, t as ExecutionContext } from "./context-BWBu3ZGQ.mjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.mjs";
|
|
6
6
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.mjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type
|
|
8
|
+
import "./index-CGJ5KOdN.mjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineConfig as e}from"./config.mjs";import{callAsyncExecution as t,callAsyncExecutionContext as n,callAsyncSession as r,callAsyncSessionContext as i,callExecution as a,callExecutionContext as o,callSession as s,callSessionContext as c,executionAsyncLocalStorage as l,executionContext as u,sessionAsyncLocalStorage as d,sessionContext as f,tryUseExecution as p,tryUseExecutionContext as m,tryUseSession as h,tryUseSessionContext as g,useContext as _,useExecution as v,useExecutionContext as y,useSession as b,useSessionContext as x}from"./context.mjs";import{defineGenerator as S,defineInput as C,defineOutput as w,defineSchema as T}from"./define.mjs";import{n as E,t as D}from"./execute-
|
|
1
|
+
import{defineConfig as e}from"./config.mjs";import{callAsyncExecution as t,callAsyncExecutionContext as n,callAsyncSession as r,callAsyncSessionContext as i,callExecution as a,callExecutionContext as o,callSession as s,callSessionContext as c,executionAsyncLocalStorage as l,executionContext as u,sessionAsyncLocalStorage as d,sessionContext as f,tryUseExecution as p,tryUseExecutionContext as m,tryUseSession as h,tryUseSessionContext as g,useContext as _,useExecution as v,useExecutionContext as y,useSession as b,useSessionContext as x}from"./context.mjs";import{defineGenerator as S,defineInput as C,defineOutput as w,defineSchema as T}from"./define.mjs";import{n as E,t as D}from"./execute-ByonuMsd.mjs";export{t as callAsyncExecution,n as callAsyncExecutionContext,r as callAsyncSession,i as callAsyncSessionContext,a as callExecution,o as callExecutionContext,s as callSession,c as callSessionContext,D as createExecute,e as defineConfig,S as defineGenerator,C as defineInput,w as defineOutput,T as defineSchema,E as execute,l as executionAsyncLocalStorage,u as executionContext,d as sessionAsyncLocalStorage,f as sessionContext,p as tryUseExecution,m as tryUseExecutionContext,h as tryUseSession,g as tryUseSessionContext,_ as useContext,v as useExecution,y as useExecutionContext,b as useSession,x as useSessionContext};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
2
2
|
import { Storage } from "unstorage";
|
|
3
|
-
import { ExtractedSchemaEnvelope, InferExtractOptions, JsonSchema, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
3
|
+
import { BaseExtractOptions, ExtractedSchemaEnvelope, InferExtractOptions, JsonSchema, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
|
|
4
4
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
5
5
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -79,4 +79,4 @@ declare function resolveMetaLinks(schema: JsonSchema, meta: Partial<MetaConfig>,
|
|
|
79
79
|
declare function resolveMeta<TSpec>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec>, config?: MetaConfig): MetaConfig;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { resolveMetaId as a, resolveMetaTitle as c, resolveMetaExample as i, resolveMetaVersion as l, resolveMeta as n, resolveMetaLinks as o, resolveMetaDescription as r, resolveMetaName as s, formatMetaVersion as t };
|
|
82
|
-
//# sourceMappingURL=meta-
|
|
82
|
+
//# sourceMappingURL=meta-DAeqzHmR.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-
|
|
1
|
+
{"version":3,"file":"meta-DAeqzHmR.d.cts","names":[],"sources":["config-DjOTmKJ-.d.cts","config.d.cts","execution-CRrga32N.d.cts","context-Dv5inNBb.d.cts","context.d.cts","define.d.cts","execute.d.cts","index-DdHt416f.d.cts","index.d.cts","../src/helpers/meta.ts"],"mappings":";;;;;;;;iBSwCgB,kBAAkB,yBAAyB;;;;;;;iBAkB3C,mBACd,QAAQ,YACR,MAAM,QAAQ,aACd,0BAA0B;;;;;;;;;iBAeZ,gBACd,QAAQ,YACR,MAAM,QAAQ,aACd;;;;;;;;iBAsBc,cACd,QAAQ,YACR,MAAM,QAAQ;;;;;;;;;iBAgBA,iBACd,QAAQ,YACR,MAAM,QAAQ,aACd;;;;;;;;;;iBAmBc,uBACd,kBACA,QAAQ,YACR,MAAM,QAAQ,aACd;;;;;;;;;;iBAoBc,mBAAmB,OACjC,QAAQ,YACR,MAAM,QAAQ,iBAAiB,SAC/B,QAAQ,kBAAkB,SAAS,kBAAkB,WACpD,kBAAkB;;;;;;;;;iBAsCL,iBACd,QAAQ,YACR,MAAM,QAAQ,aACd,QAAQ,aACP;;;;;;;;iBAea,YAAY,OAC1B,QAAQ,wBAAwB,SAAS,SAAS,QAClD,SAAS,aACR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Generate anything from a specification",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"typings": "dist/index.d.mts",
|
|
161
161
|
"files": ["dist"],
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@power-plant/schema": "^0.0.
|
|
163
|
+
"@power-plant/schema": "^0.0.24",
|
|
164
164
|
"@stryke/string-format": "^0.17.38",
|
|
165
165
|
"@stryke/type-checks": "^0.6.29",
|
|
166
166
|
"@stryke/types": "^0.12.24",
|
|
@@ -179,10 +179,10 @@
|
|
|
179
179
|
"unstorage": "^1.17.5"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
182
|
+
"@powerlines/plugin-tsdown": "^0.1.550",
|
|
183
183
|
"@types/node": "^25.9.5",
|
|
184
184
|
"typescript": "^6.0.3"
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "567dd1673a289b304fde97bdc939319fcd9f6208"
|
|
188
188
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-CC41Bqgl.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-IDaXHmjn.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-BL5L5XgC.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-C1pMcv6_.d.cts","names":[],"sources":["../src/types/execution.ts"],"mappings":";;;UAwBiB,cAAc,eAAe;;;;;;;EAO5C;;;;EAKA,YAAY;;;;EAKZ;;;;EAKA,MAAM;;;;EAKN,QAAQ,iBAAiB;;;;EAKzB,OAAO;;;;EAKP,QAAQ;;;;EAKR,WAAW;;UAGI,UAAU;;;;EAIzB,WAAW,eAAe;;;;EAK1B,MAAM,cAAc;;KAGV,gBAAgB,mBAAmB;;;;EAI7C,UAAU;;KAGA,mBACV,yBAAyB,kCACvB,yBAAyB,gBACzB,iBAAiB,oBAAoB,aACrC;KAEQ,mBAAmB,OAAO,yBAAyB,iBAC7D,iBAAiB,gBAAgB,OAAO,UAAU,WAClD,UAAU,0BAA0B,mBAAmB,aACpD,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-kTyaWKPh.d.mts","names":[],"sources":["../src/types/execution.ts"],"mappings":""}
|