@powerlines/engine 0.49.13 → 0.49.14

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 (48) hide show
  1. package/dist/{api-DcHfCjQK.d.cts → api-D1r7WAQA.d.cts} +13 -13
  2. package/dist/api-D1r7WAQA.d.cts.map +1 -0
  3. package/dist/{api-BgyEi2hF.d.mts → api-DRcC7Ry-.d.mts} +13 -13
  4. package/dist/api-DRcC7Ry-.d.mts.map +1 -0
  5. package/dist/api.cjs +3 -21
  6. package/dist/api.d.cts +5 -12
  7. package/dist/api.d.cts.map +1 -1
  8. package/dist/api.d.mts +5 -11
  9. package/dist/api.d.mts.map +1 -1
  10. package/dist/api.mjs +21 -30
  11. package/dist/api.mjs.map +1 -1
  12. package/dist/engine-BLp7JcAB.d.mts +199 -0
  13. package/dist/engine-BLp7JcAB.d.mts.map +1 -0
  14. package/dist/{engine-BWwXttY1.mjs → engine-CDFOkhKj.mjs} +113 -121
  15. package/dist/engine-CDFOkhKj.mjs.map +1 -0
  16. package/dist/engine-DFKgU8-G.d.cts +199 -0
  17. package/dist/engine-DFKgU8-G.d.cts.map +1 -0
  18. package/dist/{engine-CYesECu-.cjs → engine-DlOFwFgt.cjs} +112 -120
  19. package/dist/engine.cjs +1 -1
  20. package/dist/engine.d.cts +2 -143
  21. package/dist/engine.d.mts +2 -143
  22. package/dist/engine.mjs +1 -1
  23. package/dist/helpers/{create-execution-host.cjs → create-api.cjs} +14 -13
  24. package/dist/helpers/create-api.d.cts +18 -0
  25. package/dist/helpers/create-api.d.cts.map +1 -0
  26. package/dist/helpers/create-api.d.mts +18 -0
  27. package/dist/helpers/create-api.d.mts.map +1 -0
  28. package/dist/helpers/{create-execution-host.mjs → create-api.mjs} +15 -14
  29. package/dist/helpers/create-api.mjs.map +1 -0
  30. package/dist/helpers/index.cjs +2 -2
  31. package/dist/helpers/index.d.cts +2 -2
  32. package/dist/helpers/index.d.mts +2 -2
  33. package/dist/helpers/index.mjs +2 -2
  34. package/dist/index.cjs +1 -1
  35. package/dist/index.d.cts +3 -3
  36. package/dist/index.d.mts +3 -3
  37. package/dist/index.mjs +1 -1
  38. package/package.json +23 -23
  39. package/dist/api-BgyEi2hF.d.mts.map +0 -1
  40. package/dist/api-DcHfCjQK.d.cts.map +0 -1
  41. package/dist/engine-BWwXttY1.mjs.map +0 -1
  42. package/dist/engine.d.cts.map +0 -1
  43. package/dist/engine.d.mts.map +0 -1
  44. package/dist/helpers/create-execution-host.d.cts +0 -20
  45. package/dist/helpers/create-execution-host.d.cts.map +0 -1
  46. package/dist/helpers/create-execution-host.d.mts +0 -20
  47. package/dist/helpers/create-execution-host.d.mts.map +0 -1
  48. package/dist/helpers/create-execution-host.mjs.map +0 -1
package/dist/engine.d.cts CHANGED
@@ -1,143 +1,2 @@
1
- import { n as EngineOptions } from "./config-DKEmqMrh.cjs";
2
- import { t as EngineContext } from "./context-D0_a0kRO.cjs";
3
- import { n as ExecutionHost, t as Engine } from "./api-DcHfCjQK.cjs";
4
- import { t as PowerlinesEngineContext } from "./engine-context-B8K6Jtkk.cjs";
5
- import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
6
- import { EXECUTION_API_METHODS } from "@powerlines/core/constants";
7
-
8
- //#region src/engine.d.ts
9
- /**
10
- * The Powerlines process' orchestration and coordination API.
11
- *
12
- * @public
13
- */
14
- declare class PowerlinesEngine<TExecutionAPI extends ReadonlyArray<string> = typeof EXECUTION_API_METHODS> implements Engine<TExecutionAPI>, AsyncDisposable {
15
- #private;
16
- /**
17
- * The Powerlines context
18
- */
19
- get context(): EngineContext;
20
- /**
21
- * The execution host, which provides methods to call the execution API functions from the engine context. This allows the engine to invoke commands and other API functions during the execution of Powerlines commands, enabling communication between the engine and the execution contexts.
22
- */
23
- get host(): ExecutionHost<TExecutionAPI>;
24
- /**
25
- * Create a new Powerlines Engine instance
26
- *
27
- * @param context - The Powerlines context
28
- * @param host - The API host for the execution workers
29
- * @returns A new instance of the Powerlines Engine
30
- */
31
- constructor(context: EngineContext, host: ExecutionHost<TExecutionAPI>);
32
- /**
33
- * Create a new Powerlines project
34
- *
35
- * @remarks
36
- * This method will create a new Powerlines project in the current directory.
37
- *
38
- * @param inlineConfig - The inline configuration for the create command
39
- * @returns A promise that resolves when the project has been created
40
- */
41
- create(inlineConfig: CreateInlineConfig): Promise<void>;
42
- /**
43
- * Generate the Powerlines typescript declaration file
44
- *
45
- * @remarks
46
- * This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
47
- *
48
- * @param inlineConfig - The inline configuration for the types command
49
- */
50
- types(inlineConfig: TypesInlineConfig): Promise<void>;
51
- /**
52
- * Prepare the Powerlines API
53
- *
54
- * @remarks
55
- * This method will prepare the Powerlines API for use, initializing any necessary resources.
56
- *
57
- * @param inlineConfig - The inline configuration for the prepare command
58
- */
59
- prepare(inlineConfig: PrepareInlineConfig): Promise<void>;
60
- /**
61
- * Clean any previously prepared artifacts
62
- *
63
- * @remarks
64
- * This method will remove the previous Powerlines artifacts from the project.
65
- *
66
- * @param inlineConfig - The inline configuration for the clean command
67
- * @returns A promise that resolves when the clean command has completed
68
- */
69
- clean(inlineConfig: CleanInlineConfig): Promise<void>;
70
- /**
71
- * Lint the project
72
- *
73
- * @param inlineConfig - The inline configuration for the lint command
74
- * @returns A promise that resolves when the lint command has completed
75
- */
76
- lint(inlineConfig: LintInlineConfig): Promise<void>;
77
- /**
78
- * Test the project
79
- *
80
- * @remarks
81
- * This method will run the tests for the Powerlines project.
82
- *
83
- * @param inlineConfig - The inline configuration for the test command
84
- * @returns A promise that resolves when the test command has completed
85
- */
86
- test(inlineConfig: TestInlineConfig): Promise<void>;
87
- /**
88
- * Build the project
89
- *
90
- * @remarks
91
- * This method will build the Powerlines project, generating the necessary artifacts.
92
- *
93
- * @param inlineConfig - The inline configuration for the build command
94
- * @returns A promise that resolves when the build command has completed
95
- */
96
- build(inlineConfig: BuildInlineConfig): Promise<void>;
97
- /**
98
- * Prepare the documentation for the project
99
- *
100
- * @param inlineConfig - The inline configuration for the docs command
101
- * @returns A promise that resolves when the documentation generation has completed
102
- */
103
- docs(inlineConfig: DocsInlineConfig): Promise<void>;
104
- /**
105
- * Deploy the project source code
106
- *
107
- * @remarks
108
- * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
109
- *
110
- * @param inlineConfig - The inline configuration for the deploy command
111
- * @returns A promise that resolves when the deploy command has completed
112
- */
113
- deploy(inlineConfig: DeployInlineConfig): Promise<void>;
114
- /**
115
- * Finalization/cleanup processing for the Powerlines API
116
- *
117
- * @remarks
118
- * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
119
- *
120
- * @returns A promise that resolves when the finalization process has completed
121
- */
122
- finalize(): Promise<void>;
123
- /**
124
- * Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.
125
- */
126
- [Symbol.asyncDispose](): Promise<void>;
127
- /**
128
- * Execute a Powerlines command based on the provided execution path and inline configuration, loading the necessary executions from the context and managing their lifecycle.
129
- *
130
- * @remarks
131
- * This method will load the executions for the specified command and inline configuration, then execute each one while managing their lifecycle, including handling their completion and any errors that may occur during execution.
132
- *
133
- * @param method - The path to the execution configuration to load and run, which can be used to specify different execution configurations for different commands or scenarios.
134
- * @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.
135
- * @returns A promise that resolves when all executions for the specified command have completed
136
- */
137
- protected execute(method: TExecutionAPI[number], inlineConfig: InlineConfig): Promise<void>;
138
- }
139
- declare function createContext(options: EngineOptions): Promise<PowerlinesEngineContext<unknown>>;
140
- declare function createEngine<TExecutionAPI extends ReadonlyArray<string>>(options: EngineOptions, apiPath?: string, apiMethods?: TExecutionAPI): Promise<PowerlinesEngine<TExecutionAPI>>;
141
- //#endregion
142
- export { PowerlinesEngine, createContext, createEngine };
143
- //# sourceMappingURL=engine.d.cts.map
1
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-DFKgU8-G.cjs";
2
+ export { PowerlinesEngine, createContext, createEngine };
package/dist/engine.d.mts CHANGED
@@ -1,143 +1,2 @@
1
- import { n as EngineOptions } from "./config-ByLyzMI0.mjs";
2
- import { t as EngineContext } from "./context-DcXV6_GL.mjs";
3
- import { n as ExecutionHost, t as Engine } from "./api-BgyEi2hF.mjs";
4
- import { t as PowerlinesEngineContext } from "./engine-context-DKlA5Pgu.mjs";
5
- import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
6
- import { EXECUTION_API_METHODS } from "@powerlines/core/constants";
7
-
8
- //#region src/engine.d.ts
9
- /**
10
- * The Powerlines process' orchestration and coordination API.
11
- *
12
- * @public
13
- */
14
- declare class PowerlinesEngine<TExecutionAPI extends ReadonlyArray<string> = typeof EXECUTION_API_METHODS> implements Engine<TExecutionAPI>, AsyncDisposable {
15
- #private;
16
- /**
17
- * The Powerlines context
18
- */
19
- get context(): EngineContext;
20
- /**
21
- * The execution host, which provides methods to call the execution API functions from the engine context. This allows the engine to invoke commands and other API functions during the execution of Powerlines commands, enabling communication between the engine and the execution contexts.
22
- */
23
- get host(): ExecutionHost<TExecutionAPI>;
24
- /**
25
- * Create a new Powerlines Engine instance
26
- *
27
- * @param context - The Powerlines context
28
- * @param host - The API host for the execution workers
29
- * @returns A new instance of the Powerlines Engine
30
- */
31
- constructor(context: EngineContext, host: ExecutionHost<TExecutionAPI>);
32
- /**
33
- * Create a new Powerlines project
34
- *
35
- * @remarks
36
- * This method will create a new Powerlines project in the current directory.
37
- *
38
- * @param inlineConfig - The inline configuration for the create command
39
- * @returns A promise that resolves when the project has been created
40
- */
41
- create(inlineConfig: CreateInlineConfig): Promise<void>;
42
- /**
43
- * Generate the Powerlines typescript declaration file
44
- *
45
- * @remarks
46
- * This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
47
- *
48
- * @param inlineConfig - The inline configuration for the types command
49
- */
50
- types(inlineConfig: TypesInlineConfig): Promise<void>;
51
- /**
52
- * Prepare the Powerlines API
53
- *
54
- * @remarks
55
- * This method will prepare the Powerlines API for use, initializing any necessary resources.
56
- *
57
- * @param inlineConfig - The inline configuration for the prepare command
58
- */
59
- prepare(inlineConfig: PrepareInlineConfig): Promise<void>;
60
- /**
61
- * Clean any previously prepared artifacts
62
- *
63
- * @remarks
64
- * This method will remove the previous Powerlines artifacts from the project.
65
- *
66
- * @param inlineConfig - The inline configuration for the clean command
67
- * @returns A promise that resolves when the clean command has completed
68
- */
69
- clean(inlineConfig: CleanInlineConfig): Promise<void>;
70
- /**
71
- * Lint the project
72
- *
73
- * @param inlineConfig - The inline configuration for the lint command
74
- * @returns A promise that resolves when the lint command has completed
75
- */
76
- lint(inlineConfig: LintInlineConfig): Promise<void>;
77
- /**
78
- * Test the project
79
- *
80
- * @remarks
81
- * This method will run the tests for the Powerlines project.
82
- *
83
- * @param inlineConfig - The inline configuration for the test command
84
- * @returns A promise that resolves when the test command has completed
85
- */
86
- test(inlineConfig: TestInlineConfig): Promise<void>;
87
- /**
88
- * Build the project
89
- *
90
- * @remarks
91
- * This method will build the Powerlines project, generating the necessary artifacts.
92
- *
93
- * @param inlineConfig - The inline configuration for the build command
94
- * @returns A promise that resolves when the build command has completed
95
- */
96
- build(inlineConfig: BuildInlineConfig): Promise<void>;
97
- /**
98
- * Prepare the documentation for the project
99
- *
100
- * @param inlineConfig - The inline configuration for the docs command
101
- * @returns A promise that resolves when the documentation generation has completed
102
- */
103
- docs(inlineConfig: DocsInlineConfig): Promise<void>;
104
- /**
105
- * Deploy the project source code
106
- *
107
- * @remarks
108
- * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
109
- *
110
- * @param inlineConfig - The inline configuration for the deploy command
111
- * @returns A promise that resolves when the deploy command has completed
112
- */
113
- deploy(inlineConfig: DeployInlineConfig): Promise<void>;
114
- /**
115
- * Finalization/cleanup processing for the Powerlines API
116
- *
117
- * @remarks
118
- * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
119
- *
120
- * @returns A promise that resolves when the finalization process has completed
121
- */
122
- finalize(): Promise<void>;
123
- /**
124
- * Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.
125
- */
126
- [Symbol.asyncDispose](): Promise<void>;
127
- /**
128
- * Execute a Powerlines command based on the provided execution path and inline configuration, loading the necessary executions from the context and managing their lifecycle.
129
- *
130
- * @remarks
131
- * This method will load the executions for the specified command and inline configuration, then execute each one while managing their lifecycle, including handling their completion and any errors that may occur during execution.
132
- *
133
- * @param method - The path to the execution configuration to load and run, which can be used to specify different execution configurations for different commands or scenarios.
134
- * @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.
135
- * @returns A promise that resolves when all executions for the specified command have completed
136
- */
137
- protected execute(method: TExecutionAPI[number], inlineConfig: InlineConfig): Promise<void>;
138
- }
139
- declare function createContext(options: EngineOptions): Promise<PowerlinesEngineContext<unknown>>;
140
- declare function createEngine<TExecutionAPI extends ReadonlyArray<string>>(options: EngineOptions, apiPath?: string, apiMethods?: TExecutionAPI): Promise<PowerlinesEngine<TExecutionAPI>>;
141
- //#endregion
142
- export { PowerlinesEngine, createContext, createEngine };
143
- //# sourceMappingURL=engine.d.mts.map
1
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-BLp7JcAB.mjs";
2
+ export { PowerlinesEngine, createContext, createEngine };
package/dist/engine.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-BWwXttY1.mjs";
1
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-CDFOkhKj.mjs";
2
2
 
3
3
  export { PowerlinesEngine, createContext, createEngine };
@@ -10,17 +10,18 @@ let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function")
10
10
  let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
11
11
  let defu = require("defu");
12
12
 
13
- //#region src/helpers/create-execution-host.ts
13
+ //#region src/helpers/create-api.ts
14
14
  /**
15
- * Creates an execution host with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
15
+ * Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
16
16
  *
17
- * @param methods - An object where keys are method names and values are functions that take an execution context and return a promise.
18
- * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each method.
19
- * @returns An object with the same keys as the input methods, but each function is wrapped to create an execution context and handle errors.
17
+ * @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
18
+ * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
19
+ * @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
20
20
  */
21
- function createExecutionHost(methods, inlineConfig = {}) {
22
- return Object.fromEntries(Object.entries(methods).map(([method, fn]) => [method, async (params) => {
23
- const { options, port } = params;
21
+ function createApi(handlers, inlineConfig = {}) {
22
+ return async (params) => {
23
+ const { command, options, port } = params;
24
+ if (!handlers[command]) throw new Error(`No handler found for command "${command}". Please ensure that the command is defined in the API handlers provided to \`createApi\`.`);
24
25
  const duplex = new require_helpers_stream.MessagePortDuplex(port);
25
26
  duplex.setEncoding("utf8");
26
27
  duplex.on("data", (chunk) => duplex.write(chunk.toUpperCase()));
@@ -47,12 +48,12 @@ function createExecutionHost(methods, inlineConfig = {}) {
47
48
  ...options,
48
49
  logFn
49
50
  }, (0, _stryke_type_checks_is_function.isFunction)(inlineConfig) ? await Promise.resolve(inlineConfig(params.inlineConfig ?? {})) : (0, defu.defu)(inlineConfig, params.inlineConfig ?? {}), { rpc });
50
- context.logger.info(`Starting ${(0, _stryke_string_format_title_case.titleCase)(options.framework?.name) || "Powerlines"} - ${(0, _stryke_string_format_title_case.titleCase)(method)} execution (${options.executionId})`);
51
+ context.logger.info(`Starting ${(0, _stryke_string_format_title_case.titleCase)(options.framework?.name) || "Powerlines"} - ${(0, _stryke_string_format_title_case.titleCase)(command)} execution (${options.executionId})`);
51
52
  await (0, _powerlines_core_lib_context_helpers.resolvePluginConfig)(context);
52
- if (!context.config.input) throw new Error(`No input defined in configuration for ${method} execution. Please ensure that the configuration file defines an input for this execution, or provide an inline configuration with the necessary input.`);
53
- await fn(context);
54
- }]));
53
+ if (!context.config.input) throw new Error(`No input defined in configuration for ${command} execution. Please ensure that the configuration file defines an input for this execution, or provide an inline configuration with the necessary input.`);
54
+ await handlers[command](context);
55
+ };
55
56
  }
56
57
 
57
58
  //#endregion
58
- exports.createExecutionHost = createExecutionHost;
59
+ exports.createApi = createApi;
@@ -0,0 +1,18 @@
1
+ import { r as EngineResolvedConfig } from "../config-DKEmqMrh.cjs";
2
+ import { r as EngineSystemContext } from "../context-D0_a0kRO.cjs";
3
+ import { n as ExecutionApiParams } from "../api-D1r7WAQA.cjs";
4
+ import { ExecutionContext, InlineConfig } from "@powerlines/core";
5
+ import { DeepPartial, MaybePromise } from "@stryke/types/base";
6
+
7
+ //#region src/helpers/create-api.d.ts
8
+ /**
9
+ * Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
10
+ *
11
+ * @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
12
+ * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
13
+ * @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
14
+ */
15
+ declare function createApi<TContext extends ExecutionContext<EngineResolvedConfig, EngineSystemContext> = ExecutionContext<EngineResolvedConfig, EngineSystemContext>>(handlers: Record<string, (context: TContext) => Promise<void>>, inlineConfig?: DeepPartial<InlineConfig> | ((prev: InlineConfig) => MaybePromise<InlineConfig>)): (params: ExecutionApiParams) => Promise<void>;
16
+ //#endregion
17
+ export { createApi };
18
+ //# sourceMappingURL=create-api.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api.d.cts","names":[],"sources":["../../src/helpers/create-api.ts"],"mappings":";;;;;;;;;AA8CA;;;;;iBAAgB,SAAA,kBACG,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,IACtD,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,EAAA,CAEzC,QAAA,EAAU,MAAA,UAAgB,OAAA,EAAS,QAAA,KAAa,OAAA,SAChD,YAAA,GACI,WAAA,CAAY,YAAA,MACV,IAAA,EAAM,YAAA,KAAiB,YAAA,CAAa,YAAA,MAE5B,MAAA,EAAQ,kBAAA,KAAkB,OAAA"}
@@ -0,0 +1,18 @@
1
+ import { r as EngineResolvedConfig } from "../config-ByLyzMI0.mjs";
2
+ import { r as EngineSystemContext } from "../context-DcXV6_GL.mjs";
3
+ import { n as ExecutionApiParams } from "../api-DRcC7Ry-.mjs";
4
+ import { ExecutionContext, InlineConfig } from "@powerlines/core";
5
+ import { DeepPartial, MaybePromise } from "@stryke/types/base";
6
+
7
+ //#region src/helpers/create-api.d.ts
8
+ /**
9
+ * Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
10
+ *
11
+ * @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
12
+ * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
13
+ * @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
14
+ */
15
+ declare function createApi<TContext extends ExecutionContext<EngineResolvedConfig, EngineSystemContext> = ExecutionContext<EngineResolvedConfig, EngineSystemContext>>(handlers: Record<string, (context: TContext) => Promise<void>>, inlineConfig?: DeepPartial<InlineConfig> | ((prev: InlineConfig) => MaybePromise<InlineConfig>)): (params: ExecutionApiParams) => Promise<void>;
16
+ //#endregion
17
+ export { createApi };
18
+ //# sourceMappingURL=create-api.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api.d.mts","names":[],"sources":["../../src/helpers/create-api.ts"],"mappings":";;;;;;;;;AA8CA;;;;;iBAAgB,SAAA,kBACG,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,IACtD,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,EAAA,CAEzC,QAAA,EAAU,MAAA,UAAgB,OAAA,EAAS,QAAA,KAAa,OAAA,SAChD,YAAA,GACI,WAAA,CAAY,YAAA,MACV,IAAA,EAAM,YAAA,KAAiB,YAAA,CAAa,YAAA,MAE5B,MAAA,EAAQ,kBAAA,KAAkB,OAAA"}
@@ -9,17 +9,18 @@ import { isFunction } from "@stryke/type-checks/is-function";
9
9
  import { uuid } from "@stryke/unique-id/uuid";
10
10
  import { defu } from "defu";
11
11
 
12
- //#region src/helpers/create-execution-host.ts
12
+ //#region src/helpers/create-api.ts
13
13
  /**
14
- * Creates an execution host with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
14
+ * Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
15
15
  *
16
- * @param methods - An object where keys are method names and values are functions that take an execution context and return a promise.
17
- * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each method.
18
- * @returns An object with the same keys as the input methods, but each function is wrapped to create an execution context and handle errors.
16
+ * @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
17
+ * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
18
+ * @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
19
19
  */
20
- function createExecutionHost(methods, inlineConfig = {}) {
21
- return Object.fromEntries(Object.entries(methods).map(([method, fn]) => [method, async (params) => {
22
- const { options, port } = params;
20
+ function createApi(handlers, inlineConfig = {}) {
21
+ return async (params) => {
22
+ const { command, options, port } = params;
23
+ if (!handlers[command]) throw new Error(`No handler found for command "${command}". Please ensure that the command is defined in the API handlers provided to \`createApi\`.`);
23
24
  const duplex = new MessagePortDuplex(port);
24
25
  duplex.setEncoding("utf8");
25
26
  duplex.on("data", (chunk) => duplex.write(chunk.toUpperCase()));
@@ -46,13 +47,13 @@ function createExecutionHost(methods, inlineConfig = {}) {
46
47
  ...options,
47
48
  logFn
48
49
  }, isFunction(inlineConfig) ? await Promise.resolve(inlineConfig(params.inlineConfig ?? {})) : defu(inlineConfig, params.inlineConfig ?? {}), { rpc });
49
- context.logger.info(`Starting ${titleCase(options.framework?.name) || "Powerlines"} - ${titleCase(method)} execution (${options.executionId})`);
50
+ context.logger.info(`Starting ${titleCase(options.framework?.name) || "Powerlines"} - ${titleCase(command)} execution (${options.executionId})`);
50
51
  await resolvePluginConfig(context);
51
- if (!context.config.input) throw new Error(`No input defined in configuration for ${method} execution. Please ensure that the configuration file defines an input for this execution, or provide an inline configuration with the necessary input.`);
52
- await fn(context);
53
- }]));
52
+ if (!context.config.input) throw new Error(`No input defined in configuration for ${command} execution. Please ensure that the configuration file defines an input for this execution, or provide an inline configuration with the necessary input.`);
53
+ await handlers[command](context);
54
+ };
54
55
  }
55
56
 
56
57
  //#endregion
57
- export { createExecutionHost };
58
- //# sourceMappingURL=create-execution-host.mjs.map
58
+ export { createApi };
59
+ //# sourceMappingURL=create-api.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api.mjs","names":[],"sources":["../../src/helpers/create-api.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n ExecutionContext,\n InlineConfig,\n LogFnMeta\n} from \"@powerlines/core\";\nimport { PowerlinesExecutionContext } from \"@powerlines/core/context/execution-context\";\nimport { resolvePluginConfig } from \"@powerlines/core/lib/context-helpers\";\nimport { consoleLogger } from \"@powerlines/core/plugin-utils\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type { DeepPartial, MaybePromise } from \"@stryke/types/base\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport { defu } from \"defu\";\nimport type { RpcClient } from \"../types\";\nimport type { ExecutionApiParams } from \"../types/api\";\nimport type { EngineResolvedConfig } from \"../types/config\";\nimport type { EngineSystemContext } from \"../types/context\";\nimport { createRpcClient } from \"./rpc\";\nimport { MessagePortDuplex } from \"./stream\";\n\n/**\n * Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.\n *\n * @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.\n * @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.\n * @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.\n */\nexport function createApi<\n TContext extends ExecutionContext<EngineResolvedConfig, EngineSystemContext> =\n ExecutionContext<EngineResolvedConfig, EngineSystemContext>\n>(\n handlers: Record<string, (context: TContext) => Promise<void>>,\n inlineConfig:\n | DeepPartial<InlineConfig>\n | ((prev: InlineConfig) => MaybePromise<InlineConfig>) = {}\n) {\n return async (params: ExecutionApiParams) => {\n const { command, options, port } = params;\n\n if (!handlers[command]) {\n throw new Error(\n `No handler found for command \"${\n command\n }\". Please ensure that the command is defined in the API handlers provided to \\`createApi\\`.`\n );\n }\n\n const duplex = new MessagePortDuplex(port);\n duplex.setEncoding(\"utf8\");\n duplex.on(\"data\", (chunk: string) => duplex.write(chunk.toUpperCase()));\n duplex.on(\"end\", () => {\n duplex.end();\n });\n\n let rpc!: RpcClient;\n if (options.baseURL && options.connection) {\n rpc = createRpcClient(options);\n } else {\n throw new Error(\n `Execution RPC client could not be created - Missing ${\n !options.baseURL\n ? `baseURL${options.connection ? ` and connection information` : \"\"}`\n : \"connection\"\n } or connection information.`\n );\n }\n\n const logFn = (meta: LogFnMeta, message: string) => {\n consoleLogger(meta, message);\n if (rpc) {\n void rpc.callEvent(\"powerlines:log\", {\n meta: {\n category: \"general\",\n ...options,\n ...(isSetObject(meta) ? meta : { type: meta }),\n logId: uuid(),\n timestamp: Date.now()\n },\n message\n });\n }\n };\n\n const context = (await PowerlinesExecutionContext.from<\n EngineResolvedConfig,\n EngineSystemContext\n >(\n { ...options, logFn },\n isFunction(inlineConfig)\n ? await Promise.resolve(inlineConfig(params.inlineConfig ?? {}))\n : (defu(inlineConfig, params.inlineConfig ?? {}) as InlineConfig),\n {\n rpc\n }\n )) as TContext;\n\n context.logger.info(\n `Starting ${\n titleCase(options.framework?.name) || \"Powerlines\"\n } - ${titleCase(command)} execution (${options.executionId})`\n );\n\n await resolvePluginConfig<EngineResolvedConfig, EngineSystemContext>(\n context\n );\n\n if (!context.config.input) {\n throw new Error(\n `No input defined in configuration for ${\n command\n } execution. Please ensure that the configuration file defines an input for this execution, or provide an inline configuration with the necessary input.`\n );\n }\n\n await handlers[command](context);\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,UAId,UACA,eAE2D,CAAC,GAC5D;CACA,OAAO,OAAO,WAA+B;EAC3C,MAAM,EAAE,SAAS,SAAS,SAAS;EAEnC,IAAI,CAAC,SAAS,UACZ,MAAM,IAAI,MACR,iCACE,QACD,4FACH;EAGF,MAAM,SAAS,IAAI,kBAAkB,IAAI;EACzC,OAAO,YAAY,MAAM;EACzB,OAAO,GAAG,SAAS,UAAkB,OAAO,MAAM,MAAM,YAAY,CAAC,CAAC;EACtE,OAAO,GAAG,aAAa;GACrB,OAAO,IAAI;EACb,CAAC;EAED,IAAI;EACJ,IAAI,QAAQ,WAAW,QAAQ,YAC7B,MAAM,gBAAgB,OAAO;OAE7B,MAAM,IAAI,MACR,uDACE,CAAC,QAAQ,UACL,UAAU,QAAQ,aAAa,gCAAgC,OAC/D,aACL,4BACH;EAGF,MAAM,SAAS,MAAiB,YAAoB;GAClD,cAAc,MAAM,OAAO;GAC3B,IAAI,KACF,AAAK,IAAI,UAAU,kBAAkB;IACnC,MAAM;KACJ,UAAU;KACV,GAAG;KACH,GAAI,YAAY,IAAI,IAAI,OAAO,EAAE,MAAM,KAAK;KAC5C,OAAO,KAAK;KACZ,WAAW,KAAK,IAAI;IACtB;IACA;GACF,CAAC;EAEL;EAEA,MAAM,UAAW,MAAM,2BAA2B,KAIhD;GAAE,GAAG;GAAS;EAAM,GACpB,WAAW,YAAY,IACnB,MAAM,QAAQ,QAAQ,aAAa,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAC5D,KAAK,cAAc,OAAO,gBAAgB,CAAC,CAAC,GACjD,EACE,IACF,CACF;EAEA,QAAQ,OAAO,KACb,YACE,UAAU,QAAQ,WAAW,IAAI,KAAK,aACvC,KAAK,UAAU,OAAO,EAAE,cAAc,QAAQ,YAAY,EAC7D;EAEA,MAAM,oBACJ,OACF;EAEA,IAAI,CAAC,QAAQ,OAAO,OAClB,MAAM,IAAI,MACR,yCACE,QACD,wJACH;EAGF,MAAM,SAAS,SAAS,OAAO;CACjC;AACF"}
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_helpers_rpc = require('./rpc.cjs');
3
3
  const require_helpers_stream = require('./stream.cjs');
4
- const require_helpers_create_execution_host = require('./create-execution-host.cjs');
4
+ const require_helpers_create_api = require('./create-api.cjs');
5
5
  const require_helpers_finalize = require('./finalize.cjs');
6
6
 
7
7
  exports.MessagePortDuplex = require_helpers_stream.MessagePortDuplex;
8
8
  exports.MessagePortReadable = require_helpers_stream.MessagePortReadable;
9
9
  exports.MessagePortWritable = require_helpers_stream.MessagePortWritable;
10
- exports.createExecutionHost = require_helpers_create_execution_host.createExecutionHost;
10
+ exports.createApi = require_helpers_create_api.createApi;
11
11
  exports.createRpcClient = require_helpers_rpc.createRpcClient;
12
12
  exports.finalize = require_helpers_finalize.finalize;
@@ -1,5 +1,5 @@
1
- import { createExecutionHost } from "./create-execution-host.cjs";
1
+ import { createApi } from "./create-api.cjs";
2
2
  import { finalize } from "./finalize.cjs";
3
3
  import { createRpcClient } from "./rpc.cjs";
4
4
  import { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable } from "./stream.cjs";
5
- export { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable, createExecutionHost, createRpcClient, finalize };
5
+ export { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable, createApi, createRpcClient, finalize };
@@ -1,5 +1,5 @@
1
- import { createExecutionHost } from "./create-execution-host.mjs";
1
+ import { createApi } from "./create-api.mjs";
2
2
  import { finalize } from "./finalize.mjs";
3
3
  import { createRpcClient } from "./rpc.mjs";
4
4
  import { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable } from "./stream.mjs";
5
- export { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable, createExecutionHost, createRpcClient, finalize };
5
+ export { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable, createApi, createRpcClient, finalize };
@@ -1,6 +1,6 @@
1
1
  import { createRpcClient } from "./rpc.mjs";
2
2
  import { MessagePortDuplex, MessagePortReadable, MessagePortWritable } from "./stream.mjs";
3
- import { createExecutionHost } from "./create-execution-host.mjs";
3
+ import { createApi } from "./create-api.mjs";
4
4
  import { finalize } from "./finalize.mjs";
5
5
 
6
- export { MessagePortDuplex, MessagePortReadable, MessagePortWritable, createExecutionHost, createRpcClient, finalize };
6
+ export { MessagePortDuplex, MessagePortReadable, MessagePortWritable, createApi, createRpcClient, finalize };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_engine = require('./engine-CYesECu-.cjs');
2
+ const require_engine = require('./engine-DlOFwFgt.cjs');
3
3
  const require_context_engine_context = require('./context/engine-context.cjs');
4
4
  require('./context/index.cjs');
5
5
 
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as RpcServerFunctions, D as WrappedRpcFunctions, E as WrappedRpcFunction, S as RpcPayloadMetadata, T as WrapRpcFunctions, _ as RpcClientRemoteFunctions, a as ExtractRpcFunction, b as RpcFunctions, c as InputRpcFunctions, d as RpcClientCall, f as RpcClientCallEvent, g as RpcClientHost, h as RpcClientFunctions, i as RpcClientOptions, l as LogPayload, m as RpcClientEvents, n as EngineOptions, o as ExtractRpcFunctions, p as RpcClientCallOptional, r as EngineResolvedConfig, s as InputRpcFunction, t as EngineExecutionOptions, u as RpcClient, v as RpcContext, w as WrapRpcFunction, x as RpcPayloadEnvelop, y as RpcFunction } from "./config-DKEmqMrh.cjs";
2
2
  import { a as ExecutionHookScopeState, c as ExecutionScopeType, i as ExecutionCommandScopeState, l as ExecutionState, n as EngineExecutionItem, o as ExecutionPluginScopeState, r as EngineSystemContext, s as ExecutionScopeState, t as EngineContext } from "./context-D0_a0kRO.cjs";
3
- import { a as PowerlinesExecutionHost, i as ExecutionInterface, n as ExecutionHost, o as Worker, r as ExecutionHostParams, t as Engine } from "./api-DcHfCjQK.cjs";
3
+ import { i as ExecutionInterface, n as ExecutionApiParams, r as ExecutionApiWorkerInterface, t as Engine } from "./api-D1r7WAQA.cjs";
4
4
  import { t as PowerlinesEngineContext } from "./engine-context-B8K6Jtkk.cjs";
5
- import { PowerlinesEngine, createContext, createEngine } from "./engine.cjs";
6
- export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionHost, type ExecutionHostParams, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type PowerlinesExecutionHost, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type Worker, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
5
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-DFKgU8-G.cjs";
6
+ export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionApiParams, type ExecutionApiWorkerInterface, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as RpcServerFunctions, D as WrappedRpcFunctions, E as WrappedRpcFunction, S as RpcPayloadMetadata, T as WrapRpcFunctions, _ as RpcClientRemoteFunctions, a as ExtractRpcFunction, b as RpcFunctions, c as InputRpcFunctions, d as RpcClientCall, f as RpcClientCallEvent, g as RpcClientHost, h as RpcClientFunctions, i as RpcClientOptions, l as LogPayload, m as RpcClientEvents, n as EngineOptions, o as ExtractRpcFunctions, p as RpcClientCallOptional, r as EngineResolvedConfig, s as InputRpcFunction, t as EngineExecutionOptions, u as RpcClient, v as RpcContext, w as WrapRpcFunction, x as RpcPayloadEnvelop, y as RpcFunction } from "./config-ByLyzMI0.mjs";
2
2
  import { a as ExecutionHookScopeState, c as ExecutionScopeType, i as ExecutionCommandScopeState, l as ExecutionState, n as EngineExecutionItem, o as ExecutionPluginScopeState, r as EngineSystemContext, s as ExecutionScopeState, t as EngineContext } from "./context-DcXV6_GL.mjs";
3
- import { a as PowerlinesExecutionHost, i as ExecutionInterface, n as ExecutionHost, o as Worker, r as ExecutionHostParams, t as Engine } from "./api-BgyEi2hF.mjs";
3
+ import { i as ExecutionInterface, n as ExecutionApiParams, r as ExecutionApiWorkerInterface, t as Engine } from "./api-DRcC7Ry-.mjs";
4
4
  import { t as PowerlinesEngineContext } from "./engine-context-DKlA5Pgu.mjs";
5
- import { PowerlinesEngine, createContext, createEngine } from "./engine.mjs";
6
- export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionHost, type ExecutionHostParams, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type PowerlinesExecutionHost, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type Worker, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
5
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-BLp7JcAB.mjs";
6
+ export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionApiParams, type ExecutionApiWorkerInterface, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-BWwXttY1.mjs";
1
+ import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-CDFOkhKj.mjs";
2
2
  import { PowerlinesEngineContext } from "./context/engine-context.mjs";
3
3
  import "./context/index.mjs";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/engine",
3
- "version": "0.49.13",
3
+ "version": "0.49.14",
4
4
  "private": false,
5
5
  "description": "An internal package containing the core engine modules for Powerlines.",
6
6
  "homepage": "https://stormsoftware.com",
@@ -93,9 +93,9 @@
93
93
  "import": "./dist/helpers/index.mjs",
94
94
  "require": "./dist/helpers/index.cjs"
95
95
  },
96
- "./helpers/create-execution-host": {
97
- "import": "./dist/helpers/create-execution-host.mjs",
98
- "require": "./dist/helpers/create-execution-host.cjs"
96
+ "./helpers/create-api": {
97
+ "import": "./dist/helpers/create-api.mjs",
98
+ "require": "./dist/helpers/create-api.cjs"
99
99
  },
100
100
  "./helpers/finalize": {
101
101
  "import": "./dist/helpers/finalize.mjs",
@@ -116,22 +116,22 @@
116
116
  "types": "./dist/index.d.cts",
117
117
  "files": ["dist"],
118
118
  "dependencies": {
119
- "@powerlines/core": "^0.48.12",
120
- "@storm-software/config": "^1.137.61",
121
- "@storm-software/config-tools": "^1.190.29",
122
- "@stryke/async": "^0.1.5",
123
- "@stryke/convert": "^0.7.7",
124
- "@stryke/env": "^0.20.93",
125
- "@stryke/fs": "^0.33.76",
126
- "@stryke/hash": "^0.13.29",
127
- "@stryke/helpers": "^0.10.16",
128
- "@stryke/http": "^0.12.66",
129
- "@stryke/json": "^0.15.0",
130
- "@stryke/path": "^0.29.3",
131
- "@stryke/string-format": "^0.17.18",
132
- "@stryke/type-checks": "^0.6.9",
133
- "@stryke/unique-id": "^0.3.87",
134
- "@stryke/url": "^0.4.27",
119
+ "@powerlines/core": "^0.48.13",
120
+ "@storm-software/config": "^1.137.62",
121
+ "@storm-software/config-tools": "^1.190.30",
122
+ "@stryke/async": "^0.1.6",
123
+ "@stryke/convert": "^0.7.8",
124
+ "@stryke/env": "^0.20.94",
125
+ "@stryke/fs": "^0.33.77",
126
+ "@stryke/hash": "^0.13.30",
127
+ "@stryke/helpers": "^0.10.17",
128
+ "@stryke/http": "^0.12.67",
129
+ "@stryke/json": "^0.15.1",
130
+ "@stryke/path": "^0.29.4",
131
+ "@stryke/string-format": "^0.17.19",
132
+ "@stryke/type-checks": "^0.6.10",
133
+ "@stryke/unique-id": "^0.3.88",
134
+ "@stryke/url": "^0.4.28",
135
135
  "birpc": "^4.0.0",
136
136
  "defu": "^6.1.7",
137
137
  "devframe": "^0.1.22",
@@ -148,10 +148,10 @@
148
148
  "unplugin": "^3.0.0"
149
149
  },
150
150
  "devDependencies": {
151
- "@storm-software/testing-tools": "^1.119.182",
152
- "@stryke/types": "^0.12.4",
151
+ "@storm-software/testing-tools": "^1.119.183",
152
+ "@stryke/types": "^0.12.5",
153
153
  "@types/node": "^25.9.1",
154
154
  "typescript": "^6.0.3"
155
155
  },
156
- "gitHead": "d1cb895dd09bf1aeda996e4dd924c9c756c85a6d"
156
+ "gitHead": "13e79048aad1c58b576aa5454b7ab3cb76783731"
157
157
  }