@power-plant/core 0.0.26 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/{config-Beq7WF_l.d.mts → config-DS1cj7j6.d.cts} +7 -9
  2. package/dist/config-DS1cj7j6.d.cts.map +1 -0
  3. package/dist/{config-DjOTmKJ-.d.cts → config-ZvnnxGt9.d.mts} +7 -9
  4. package/dist/{config-Beq7WF_l.d.mts.map → config-ZvnnxGt9.d.mts.map} +1 -1
  5. package/dist/config.cjs +9 -1
  6. package/dist/config.d.cts +1 -1
  7. package/dist/config.d.mts +1 -1
  8. package/dist/config.mjs +7 -1
  9. package/dist/{context-BWBu3ZGQ.d.mts → context-DMA3S81W.d.mts} +3 -3
  10. package/dist/context-DMA3S81W.d.mts.map +1 -0
  11. package/dist/{context-Dv5inNBb.d.cts → context-DSkOqDWy.d.cts} +3 -3
  12. package/dist/{context-Dv5inNBb.d.cts.map → context-DSkOqDWy.d.cts.map} +1 -1
  13. package/dist/context.cjs +189 -1
  14. package/dist/context.d.cts +1 -1
  15. package/dist/context.d.mts +1 -1
  16. package/dist/context.mjs +168 -1
  17. package/dist/define.cjs +97 -1
  18. package/dist/define.d.cts +1 -1
  19. package/dist/define.d.mts +1 -1
  20. package/dist/define.mjs +93 -1
  21. package/dist/execute-3oK9lgh3.cjs +501 -0
  22. package/dist/execute-C6kyFG8N.mjs +461 -0
  23. package/dist/execute-C6kyFG8N.mjs.map +1 -0
  24. package/dist/execute.cjs +6 -1
  25. package/dist/execute.d.cts +2 -2
  26. package/dist/execute.d.mts +2 -2
  27. package/dist/execute.mjs +4 -1
  28. package/dist/{execution-Bb3uSrmc.d.mts → execution-BaOcMIgV.d.mts} +2 -2
  29. package/dist/execution-BaOcMIgV.d.mts.map +1 -0
  30. package/dist/{execution-CRrga32N.d.cts → execution-vXX_IEkO.d.cts} +2 -2
  31. package/dist/{execution-CRrga32N.d.cts.map → execution-vXX_IEkO.d.cts.map} +1 -1
  32. package/dist/helpers/index.cjs +17 -1
  33. package/dist/helpers/index.mjs +4 -1
  34. package/dist/helpers/meta.cjs +142 -1
  35. package/dist/helpers/meta.mjs +133 -1
  36. package/dist/helpers/type-checks.cjs +46 -1
  37. package/dist/helpers/type-checks.d.cts +2 -2
  38. package/dist/helpers/type-checks.d.mts +2 -2
  39. package/dist/helpers/type-checks.mjs +42 -1
  40. package/dist/index-CWjICo_s.d.mts +3 -0
  41. package/dist/index-DWiKtHVE.d.cts +3 -0
  42. package/dist/index.cjs +34 -1
  43. package/dist/index.d.cts +4 -4
  44. package/dist/index.d.mts +4 -4
  45. package/dist/index.mjs +6 -1
  46. package/dist/meta-DAeqzHmR.d.cts.map +1 -1
  47. package/package.json +4 -4
  48. package/dist/config-DjOTmKJ-.d.cts.map +0 -1
  49. package/dist/context-BWBu3ZGQ.d.mts.map +0 -1
  50. package/dist/execute-4whFNgY3.cjs +0 -1
  51. package/dist/execute-ByonuMsd.mjs +0 -2
  52. package/dist/execute-ByonuMsd.mjs.map +0 -1
  53. package/dist/execution-Bb3uSrmc.d.mts.map +0 -1
  54. package/dist/index-CGJ5KOdN.d.mts +0 -3
  55. package/dist/index-DdHt416f.d.cts +0 -3
@@ -1,8 +1,8 @@
1
- import { EnvPaths } from "@stryke/env/get-env-paths";
2
- import { Storage } from "unstorage";
3
- import { InferExtractOptions, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
4
1
  import { DeepPartial, MaybePromise } from "@stryke/types/base";
2
+ import { Storage } from "unstorage";
3
+ import { BaseExtractOptions, InferExtractOptions, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
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;
@@ -142,7 +142,7 @@ interface InputConfigObject<TSpec, TOptions extends object> {
142
142
  meta?: InputMetaConfig;
143
143
  }
144
144
  type InputConfig<TSpec, TOptions extends object> = LoadReference | TSpec | InputFunction<TSpec, TOptions> | InputConfigObject<TSpec, TOptions>;
145
- type InferCreateInputOptions<T extends InputConfig<any, any>> = T extends LoadReference ? InferLoadOptions<T> : {};
145
+ type InferCreateInputOptions<T extends InputConfig<any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
146
146
  interface Input<TSpec, TOptions extends object> {
147
147
  /**
148
148
  * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
@@ -218,9 +218,7 @@ 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> : {}) & {
222
- tsconfig?: string;
223
- };
221
+ type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
224
222
  interface Generator<TSpec, TOptions extends object, TReturns = void> {
225
223
  /**
226
224
  * Optional metadata about the generator, such as a description of the output it produces.
@@ -280,7 +278,7 @@ interface OutputConfigObject<TSpec, TOptions extends object, TReturns = void> {
280
278
  output: OutputFunction<TSpec, TOptions, TReturns> | LoadReference;
281
279
  }
282
280
  type OutputConfig<TSpec, TOptions extends object, TReturns = void> = LoadReference | OutputFunction<TSpec, TOptions, TReturns> | OutputConfigObject<TSpec, TOptions, TReturns>;
283
- type InferCreateOutputOptions<T extends OutputConfig<any, any, any>> = T extends LoadReference ? InferLoadOptions<T> : {};
281
+ type InferCreateOutputOptions<T extends OutputConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
284
282
  interface Output<TSpec, TOptions extends object, TReturns = void> {
285
283
  /**
286
284
  * The schema that defines the structure of the specification output for the generator. This schema is used to validate the output specification and ensure that it conforms to the expected format before being processed by the generator.
@@ -389,4 +387,4 @@ type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> =
389
387
  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>;
390
388
  //#endregion
391
389
  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 };
392
- //# sourceMappingURL=config-Beq7WF_l.d.mts.map
390
+ //# sourceMappingURL=config-DS1cj7j6.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-DS1cj7j6.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/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8 +1,8 @@
1
- import { DeepPartial, MaybePromise } from "@stryke/types/base";
1
+ import { EnvPaths } from "@stryke/env/get-env-paths";
2
2
  import { Storage } from "unstorage";
3
- import { InferExtractOptions, SchemaConfig, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
3
+ import { BaseExtractOptions, 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;
@@ -142,7 +142,7 @@ interface InputConfigObject<TSpec, TOptions extends object> {
142
142
  meta?: InputMetaConfig;
143
143
  }
144
144
  type InputConfig<TSpec, TOptions extends object> = LoadReference | TSpec | InputFunction<TSpec, TOptions> | InputConfigObject<TSpec, TOptions>;
145
- type InferCreateInputOptions<T extends InputConfig<any, any>> = T extends LoadReference ? InferLoadOptions<T> : {};
145
+ type InferCreateInputOptions<T extends InputConfig<any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
146
146
  interface Input<TSpec, TOptions extends object> {
147
147
  /**
148
148
  * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
@@ -218,9 +218,7 @@ 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> : {}) & {
222
- tsconfig?: string;
223
- };
221
+ type InferCreateGeneratorOptions<T extends GeneratorConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
224
222
  interface Generator<TSpec, TOptions extends object, TReturns = void> {
225
223
  /**
226
224
  * Optional metadata about the generator, such as a description of the output it produces.
@@ -280,7 +278,7 @@ interface OutputConfigObject<TSpec, TOptions extends object, TReturns = void> {
280
278
  output: OutputFunction<TSpec, TOptions, TReturns> | LoadReference;
281
279
  }
282
280
  type OutputConfig<TSpec, TOptions extends object, TReturns = void> = LoadReference | OutputFunction<TSpec, TOptions, TReturns> | OutputConfigObject<TSpec, TOptions, TReturns>;
283
- type InferCreateOutputOptions<T extends OutputConfig<any, any, any>> = T extends LoadReference ? InferLoadOptions<T> : {};
281
+ type InferCreateOutputOptions<T extends OutputConfig<any, any, any>> = (T extends LoadReference ? InferLoadOptions<T> : {}) & BaseExtractOptions;
284
282
  interface Output<TSpec, TOptions extends object, TReturns = void> {
285
283
  /**
286
284
  * The schema that defines the structure of the specification output for the generator. This schema is used to validate the output specification and ensure that it conforms to the expected format before being processed by the generator.
@@ -389,4 +387,4 @@ type UserConfigFn<TSpec = any, TOptions extends object = any, TReturns = any> =
389
387
  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>;
390
388
  //#endregion
391
389
  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 };
392
- //# sourceMappingURL=config-DjOTmKJ-.d.cts.map
390
+ //# sourceMappingURL=config-ZvnnxGt9.d.mts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"config-ZvnnxGt9.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":""}
package/dist/config.cjs CHANGED
@@ -1 +1,9 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return e}exports.defineConfig=e;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/config.ts
4
+ function defineConfig(config) {
5
+ return config;
6
+ }
7
+
8
+ //#endregion
9
+ exports.defineConfig = defineConfig;
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-DjOTmKJ-.cjs";
1
+ import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-DS1cj7j6.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-Beq7WF_l.mjs";
1
+ import { a as UserConfigFnPromise, i as UserConfigFnObject, n as UserConfigExport, o as UserConfigParams, r as UserConfigFn, t as UserConfig } from "./config-ZvnnxGt9.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.
package/dist/config.mjs CHANGED
@@ -1,2 +1,8 @@
1
- function e(e){return e}export{e as defineConfig};
1
+ //#region src/config.ts
2
+ function defineConfig(config) {
3
+ return config;
4
+ }
5
+
6
+ //#endregion
7
+ export { defineConfig };
2
8
  //# sourceMappingURL=config.mjs.map
@@ -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-Beq7WF_l.mjs";
2
- import { n as Execution } from "./execution-Bb3uSrmc.mjs";
1
+ import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-ZvnnxGt9.mjs";
2
+ import { n as Execution } from "./execution-BaOcMIgV.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-BWBu3ZGQ.d.mts.map
105
+ //# sourceMappingURL=context-DMA3S81W.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-DMA3S81W.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-DjOTmKJ-.cjs";
2
- import { n as Execution } from "./execution-CRrga32N.cjs";
1
+ import { V as SchemaOf, c as Settings, j as Input, m as GeneratedDocument, s as Logger, u as Output } from "./config-DS1cj7j6.cjs";
2
+ import { n as Execution } from "./execution-vXX_IEkO.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-Dv5inNBb.d.cts.map
105
+ //# sourceMappingURL=context-DSkOqDWy.d.cts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"context-DSkOqDWy.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.cjs CHANGED
@@ -1 +1,189 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@stryke/string-format/snake-case"),t=require("@stryke/string-format/title-case"),n=require("node:async_hooks");const r=globalThis;function i(i){let a=`$$__power_plant_{key}_context__`.replace(`{key}`,(0,e.snakeCase)(i.trim().replace(/^[_-]*/g,``).replace(/[_-]*$/g,``)));return r[a]??(r[a]={asyncLocalStorage:new n.AsyncLocalStorage,use(){let e=this.asyncLocalStorage.getStore();if(e===void 0)throw Error(`The ${(0,t.titleCase)(i.trim().replace(/^[_-]*/g,``).replace(/[_-]*$/g,``))} context is not available. Please ensure that the context has been initialized before using it.`);return e},tryUse(){return this.asyncLocalStorage.getStore()},call(e,t){return this.asyncLocalStorage.run(e,t)},async callAsync(e,t){return this.asyncLocalStorage.run(e,t)}}),r[a]}const a=i(`session`),o=a.asyncLocalStorage,s=a.use,c=s,l=a.tryUse,u=l,d=a.call,f=d,p=a.callAsync,m=p,h=i(`execution`),g=h.asyncLocalStorage;function _(){return h.use()}function v(){return _()}function y(){return _()}const b=h.tryUse,x=b,S=h.call,C=S,w=h.callAsync,T=w;exports.callAsyncExecution=T,exports.callAsyncExecutionContext=w,exports.callAsyncSession=m,exports.callAsyncSessionContext=p,exports.callExecution=C,exports.callExecutionContext=S,exports.callSession=f,exports.callSessionContext=d,exports.executionAsyncLocalStorage=g,exports.executionContext=h,exports.sessionAsyncLocalStorage=o,exports.sessionContext=a,exports.tryUseExecution=x,exports.tryUseExecutionContext=b,exports.tryUseSession=u,exports.tryUseSessionContext=l,exports.useContext=y,exports.useExecution=v,exports.useExecutionContext=_,exports.useSession=c,exports.useSessionContext=s;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
3
+ let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
4
+ let node_async_hooks = require("node:async_hooks");
5
+
6
+ //#region src/context.ts
7
+ const globalStore = globalThis;
8
+ const GLOBAL_CONTEXT_KEY = "$$__power_plant_{key}_context__";
9
+ function createContextStore(key) {
10
+ const contextKey = GLOBAL_CONTEXT_KEY.replace("{key}", (0, _stryke_string_format_snake_case.snakeCase)(key.trim().replace(/^[_-]*/g, "").replace(/[_-]*$/g, "")));
11
+ globalStore[contextKey] ?? (globalStore[contextKey] = {
12
+ asyncLocalStorage: new node_async_hooks.AsyncLocalStorage(),
13
+ use() {
14
+ const instance = this.asyncLocalStorage.getStore();
15
+ if (instance === void 0) throw new Error(`The ${(0, _stryke_string_format_title_case.titleCase)(key.trim().replace(/^[_-]*/g, "").replace(/[_-]*$/g, ""))} context is not available. Please ensure that the context has been initialized before using it.`);
16
+ return instance;
17
+ },
18
+ tryUse() {
19
+ return this.asyncLocalStorage.getStore();
20
+ },
21
+ call(instance, callback) {
22
+ return this.asyncLocalStorage.run(instance, callback);
23
+ },
24
+ async callAsync(instance, callback) {
25
+ return this.asyncLocalStorage.run(instance, callback);
26
+ }
27
+ });
28
+ return globalStore[contextKey];
29
+ }
30
+ /**
31
+ * The context store for the session context.
32
+ */
33
+ const sessionContext = createContextStore("session");
34
+ /**
35
+ * The async local storage for the session context.
36
+ */
37
+ const sessionAsyncLocalStorage = sessionContext.asyncLocalStorage;
38
+ /**
39
+ * The function to use the session context.
40
+ *
41
+ * @returns The session context.
42
+ * @throws An error if the session context is not available.
43
+ */
44
+ const useSessionContext = sessionContext.use;
45
+ /**
46
+ * Alias for {@link useSessionContext}.
47
+ */
48
+ const useSession = useSessionContext;
49
+ /**
50
+ * The function to try to use the session context.
51
+ *
52
+ * @returns The session context or undefined if the session context is not available.
53
+ */
54
+ const tryUseSessionContext = sessionContext.tryUse;
55
+ /**
56
+ * Alias for {@link tryUseSessionContext}.
57
+ */
58
+ const tryUseSession = tryUseSessionContext;
59
+ /**
60
+ * The function to call the session context.
61
+ *
62
+ * @param instance - The instance of the session context.
63
+ * @param callback - The callback to call.
64
+ * @returns The result of the callback.
65
+ */
66
+ const callSessionContext = sessionContext.call;
67
+ /**
68
+ * Alias for {@link callSessionContext}.
69
+ */
70
+ const callSession = callSessionContext;
71
+ /**
72
+ * The function to call the session context asynchronously.
73
+ *
74
+ * @param instance - The instance of the session context.
75
+ * @param callback - The callback to call.
76
+ * @returns The result of the callback.
77
+ */
78
+ const callAsyncSessionContext = sessionContext.callAsync;
79
+ /**
80
+ * Alias for {@link callAsyncSessionContext}.
81
+ */
82
+ const callAsyncSession = callAsyncSessionContext;
83
+ /**
84
+ * The context store for the execution context. This is used to store the execution context for a specific execution.
85
+ */
86
+ const executionContext = createContextStore("execution");
87
+ /**
88
+ * The async local storage for the execution context. This is used to store the execution context for a specific execution.
89
+ */
90
+ const executionAsyncLocalStorage = executionContext.asyncLocalStorage;
91
+ /**
92
+ * A hook to allow access to the execution context.
93
+ *
94
+ * @template TSpec - The type of the specification that the generator will produce.
95
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
96
+ * @template TReturns - The type of the returns that the generator will produce.
97
+ * @returns The execution context.
98
+ * @throws An error if the execution context is not available.
99
+ */
100
+ function useExecutionContext() {
101
+ return executionContext.use();
102
+ }
103
+ /**
104
+ * A hook to allow access to the execution context.
105
+ *
106
+ * @remarks
107
+ * Alias for {@link useExecutionContext}.
108
+ *
109
+ * @template TSpec - The type of the specification that the generator will produce.
110
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
111
+ * @template TReturns - The type of the returns that the generator will produce.
112
+ * @returns The execution context.
113
+ * @throws An error if the execution context is not available.
114
+ */
115
+ function useExecution() {
116
+ return useExecutionContext();
117
+ }
118
+ /**
119
+ * A hook to allow access to the execution context.
120
+ *
121
+ * @remarks
122
+ * Alias for {@link useExecutionContext}.
123
+ *
124
+ * @template TSpec - The type of the specification that the generator will produce.
125
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
126
+ * @template TReturns - The type of the returns that the generator will produce.
127
+ * @returns The execution context.
128
+ * @throws An error if the execution context is not available.
129
+ */
130
+ function useContext() {
131
+ return useExecutionContext();
132
+ }
133
+ /**
134
+ * The function to try to use the execution context.
135
+ *
136
+ * @returns The execution context or undefined if the execution context is not available.
137
+ */
138
+ const tryUseExecutionContext = executionContext.tryUse;
139
+ /**
140
+ * Alias for {@link tryUseExecutionContext}.
141
+ */
142
+ const tryUseExecution = tryUseExecutionContext;
143
+ /**
144
+ * The function to call the execution context.
145
+ *
146
+ * @param instance - The instance of the execution context.
147
+ * @param callback - The callback to call.
148
+ * @returns The result of the callback.
149
+ */
150
+ const callExecutionContext = executionContext.call;
151
+ /**
152
+ * Alias for {@link callExecutionContext}.
153
+ */
154
+ const callExecution = callExecutionContext;
155
+ /**
156
+ * The function to call the execution context asynchronously.
157
+ *
158
+ * @param instance - The instance of the execution context.
159
+ * @param callback - The callback to call.
160
+ * @returns The result of the callback.
161
+ */
162
+ const callAsyncExecutionContext = executionContext.callAsync;
163
+ /**
164
+ * Alias for {@link callAsyncExecutionContext}.
165
+ */
166
+ const callAsyncExecution = callAsyncExecutionContext;
167
+
168
+ //#endregion
169
+ exports.callAsyncExecution = callAsyncExecution;
170
+ exports.callAsyncExecutionContext = callAsyncExecutionContext;
171
+ exports.callAsyncSession = callAsyncSession;
172
+ exports.callAsyncSessionContext = callAsyncSessionContext;
173
+ exports.callExecution = callExecution;
174
+ exports.callExecutionContext = callExecutionContext;
175
+ exports.callSession = callSession;
176
+ exports.callSessionContext = callSessionContext;
177
+ exports.executionAsyncLocalStorage = executionAsyncLocalStorage;
178
+ exports.executionContext = executionContext;
179
+ exports.sessionAsyncLocalStorage = sessionAsyncLocalStorage;
180
+ exports.sessionContext = sessionContext;
181
+ exports.tryUseExecution = tryUseExecution;
182
+ exports.tryUseExecutionContext = tryUseExecutionContext;
183
+ exports.tryUseSession = tryUseSession;
184
+ exports.tryUseSessionContext = tryUseSessionContext;
185
+ exports.useContext = useContext;
186
+ exports.useExecution = useExecution;
187
+ exports.useExecutionContext = useExecutionContext;
188
+ exports.useSession = useSession;
189
+ exports.useSessionContext = useSessionContext;
@@ -1,4 +1,4 @@
1
- import { r as SessionContext, t as ExecutionContext } from "./context-Dv5inNBb.cjs";
1
+ import { r as SessionContext, t as ExecutionContext } from "./context-DSkOqDWy.cjs";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/context.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { r as SessionContext, t as ExecutionContext } from "./context-BWBu3ZGQ.mjs";
1
+ import { r as SessionContext, t as ExecutionContext } from "./context-DMA3S81W.mjs";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/context.d.ts
4
4
  /**
package/dist/context.mjs CHANGED
@@ -1,2 +1,169 @@
1
- import{snakeCase as e}from"@stryke/string-format/snake-case";import{titleCase as t}from"@stryke/string-format/title-case";import{AsyncLocalStorage as n}from"node:async_hooks";const r=globalThis;function i(i){let a=`$$__power_plant_{key}_context__`.replace(`{key}`,e(i.trim().replace(/^[_-]*/g,``).replace(/[_-]*$/g,``)));return r[a]??(r[a]={asyncLocalStorage:new n,use(){let e=this.asyncLocalStorage.getStore();if(e===void 0)throw Error(`The ${t(i.trim().replace(/^[_-]*/g,``).replace(/[_-]*$/g,``))} context is not available. Please ensure that the context has been initialized before using it.`);return e},tryUse(){return this.asyncLocalStorage.getStore()},call(e,t){return this.asyncLocalStorage.run(e,t)},async callAsync(e,t){return this.asyncLocalStorage.run(e,t)}}),r[a]}const a=i(`session`),o=a.asyncLocalStorage,s=a.use,c=s,l=a.tryUse,u=l,d=a.call,f=d,p=a.callAsync,m=p,h=i(`execution`),g=h.asyncLocalStorage;function _(){return h.use()}function v(){return _()}function y(){return _()}const b=h.tryUse,x=b,S=h.call,C=S,w=h.callAsync,T=w;export{T as callAsyncExecution,w as callAsyncExecutionContext,m as callAsyncSession,p as callAsyncSessionContext,C as callExecution,S as callExecutionContext,f as callSession,d as callSessionContext,g as executionAsyncLocalStorage,h as executionContext,o as sessionAsyncLocalStorage,a as sessionContext,x as tryUseExecution,b as tryUseExecutionContext,u as tryUseSession,l as tryUseSessionContext,y as useContext,v as useExecution,_ as useExecutionContext,c as useSession,s as useSessionContext};
1
+ import { snakeCase } from "@stryke/string-format/snake-case";
2
+ import { titleCase } from "@stryke/string-format/title-case";
3
+ import { AsyncLocalStorage } from "node:async_hooks";
4
+
5
+ //#region src/context.ts
6
+ const globalStore = globalThis;
7
+ const GLOBAL_CONTEXT_KEY = "$$__power_plant_{key}_context__";
8
+ function createContextStore(key) {
9
+ const contextKey = GLOBAL_CONTEXT_KEY.replace("{key}", snakeCase(key.trim().replace(/^[_-]*/g, "").replace(/[_-]*$/g, "")));
10
+ globalStore[contextKey] ?? (globalStore[contextKey] = {
11
+ asyncLocalStorage: new AsyncLocalStorage(),
12
+ use() {
13
+ const instance = this.asyncLocalStorage.getStore();
14
+ if (instance === void 0) throw new Error(`The ${titleCase(key.trim().replace(/^[_-]*/g, "").replace(/[_-]*$/g, ""))} context is not available. Please ensure that the context has been initialized before using it.`);
15
+ return instance;
16
+ },
17
+ tryUse() {
18
+ return this.asyncLocalStorage.getStore();
19
+ },
20
+ call(instance, callback) {
21
+ return this.asyncLocalStorage.run(instance, callback);
22
+ },
23
+ async callAsync(instance, callback) {
24
+ return this.asyncLocalStorage.run(instance, callback);
25
+ }
26
+ });
27
+ return globalStore[contextKey];
28
+ }
29
+ /**
30
+ * The context store for the session context.
31
+ */
32
+ const sessionContext = createContextStore("session");
33
+ /**
34
+ * The async local storage for the session context.
35
+ */
36
+ const sessionAsyncLocalStorage = sessionContext.asyncLocalStorage;
37
+ /**
38
+ * The function to use the session context.
39
+ *
40
+ * @returns The session context.
41
+ * @throws An error if the session context is not available.
42
+ */
43
+ const useSessionContext = sessionContext.use;
44
+ /**
45
+ * Alias for {@link useSessionContext}.
46
+ */
47
+ const useSession = useSessionContext;
48
+ /**
49
+ * The function to try to use the session context.
50
+ *
51
+ * @returns The session context or undefined if the session context is not available.
52
+ */
53
+ const tryUseSessionContext = sessionContext.tryUse;
54
+ /**
55
+ * Alias for {@link tryUseSessionContext}.
56
+ */
57
+ const tryUseSession = tryUseSessionContext;
58
+ /**
59
+ * The function to call the session context.
60
+ *
61
+ * @param instance - The instance of the session context.
62
+ * @param callback - The callback to call.
63
+ * @returns The result of the callback.
64
+ */
65
+ const callSessionContext = sessionContext.call;
66
+ /**
67
+ * Alias for {@link callSessionContext}.
68
+ */
69
+ const callSession = callSessionContext;
70
+ /**
71
+ * The function to call the session context asynchronously.
72
+ *
73
+ * @param instance - The instance of the session context.
74
+ * @param callback - The callback to call.
75
+ * @returns The result of the callback.
76
+ */
77
+ const callAsyncSessionContext = sessionContext.callAsync;
78
+ /**
79
+ * Alias for {@link callAsyncSessionContext}.
80
+ */
81
+ const callAsyncSession = callAsyncSessionContext;
82
+ /**
83
+ * The context store for the execution context. This is used to store the execution context for a specific execution.
84
+ */
85
+ const executionContext = createContextStore("execution");
86
+ /**
87
+ * The async local storage for the execution context. This is used to store the execution context for a specific execution.
88
+ */
89
+ const executionAsyncLocalStorage = executionContext.asyncLocalStorage;
90
+ /**
91
+ * A hook to allow access to the execution context.
92
+ *
93
+ * @template TSpec - The type of the specification that the generator will produce.
94
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
95
+ * @template TReturns - The type of the returns that the generator will produce.
96
+ * @returns The execution context.
97
+ * @throws An error if the execution context is not available.
98
+ */
99
+ function useExecutionContext() {
100
+ return executionContext.use();
101
+ }
102
+ /**
103
+ * A hook to allow access to the execution context.
104
+ *
105
+ * @remarks
106
+ * Alias for {@link useExecutionContext}.
107
+ *
108
+ * @template TSpec - The type of the specification that the generator will produce.
109
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
110
+ * @template TReturns - The type of the returns that the generator will produce.
111
+ * @returns The execution context.
112
+ * @throws An error if the execution context is not available.
113
+ */
114
+ function useExecution() {
115
+ return useExecutionContext();
116
+ }
117
+ /**
118
+ * A hook to allow access to the execution context.
119
+ *
120
+ * @remarks
121
+ * Alias for {@link useExecutionContext}.
122
+ *
123
+ * @template TSpec - The type of the specification that the generator will produce.
124
+ * @template TOptions - The type of the options that will be passed to the generator during generation.
125
+ * @template TReturns - The type of the returns that the generator will produce.
126
+ * @returns The execution context.
127
+ * @throws An error if the execution context is not available.
128
+ */
129
+ function useContext() {
130
+ return useExecutionContext();
131
+ }
132
+ /**
133
+ * The function to try to use the execution context.
134
+ *
135
+ * @returns The execution context or undefined if the execution context is not available.
136
+ */
137
+ const tryUseExecutionContext = executionContext.tryUse;
138
+ /**
139
+ * Alias for {@link tryUseExecutionContext}.
140
+ */
141
+ const tryUseExecution = tryUseExecutionContext;
142
+ /**
143
+ * The function to call the execution context.
144
+ *
145
+ * @param instance - The instance of the execution context.
146
+ * @param callback - The callback to call.
147
+ * @returns The result of the callback.
148
+ */
149
+ const callExecutionContext = executionContext.call;
150
+ /**
151
+ * Alias for {@link callExecutionContext}.
152
+ */
153
+ const callExecution = callExecutionContext;
154
+ /**
155
+ * The function to call the execution context asynchronously.
156
+ *
157
+ * @param instance - The instance of the execution context.
158
+ * @param callback - The callback to call.
159
+ * @returns The result of the callback.
160
+ */
161
+ const callAsyncExecutionContext = executionContext.callAsync;
162
+ /**
163
+ * Alias for {@link callAsyncExecutionContext}.
164
+ */
165
+ const callAsyncExecution = callAsyncExecutionContext;
166
+
167
+ //#endregion
168
+ export { callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
2
169
  //# sourceMappingURL=context.mjs.map