@powerlines/engine 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/build.cjs +1 -1
- package/dist/api/build.d.cts +2 -2
- package/dist/api/build.d.mts +2 -2
- package/dist/api/build.mjs +1 -1
- package/dist/api/clean.d.cts +2 -2
- package/dist/api/clean.d.mts +2 -2
- package/dist/api/create.d.cts +2 -2
- package/dist/api/create.d.mts +2 -2
- package/dist/api/deploy.d.cts +2 -2
- package/dist/api/deploy.d.mts +2 -2
- package/dist/api/docs.d.cts +2 -2
- package/dist/api/docs.d.mts +2 -2
- package/dist/api/lint.d.cts +2 -2
- package/dist/api/lint.d.mts +2 -2
- package/dist/api/prepare.d.cts +2 -2
- package/dist/api/prepare.d.mts +2 -2
- package/dist/api/test.d.cts +2 -2
- package/dist/api/test.d.mts +2 -2
- package/dist/api/types.d.cts +2 -2
- package/dist/api/types.d.mts +2 -2
- package/dist/{api-Bw-RpQgX.d.cts → api-6w4hZL6n.d.cts} +5 -4
- package/dist/api-6w4hZL6n.d.cts.map +1 -0
- package/dist/{api-D9bpSxPB.d.mts → api-CcNgO71y.d.mts} +5 -4
- package/dist/api-CcNgO71y.d.mts.map +1 -0
- package/dist/{config-B_E_HMcT.d.cts → config-C9AD-erz.d.mts} +8 -4
- package/dist/{config-B_E_HMcT.d.cts.map → config-C9AD-erz.d.mts.map} +1 -1
- package/dist/{config-FB8Zqjjz.d.mts → config-D6xUniHh.d.cts} +8 -4
- package/dist/{config-FB8Zqjjz.d.mts.map → config-D6xUniHh.d.cts.map} +1 -1
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/{context-C_P-KYJX.d.cts → context-S3XH2DWP.d.mts} +3 -3
- package/dist/{context-C_P-KYJX.d.cts.map → context-S3XH2DWP.d.mts.map} +1 -1
- package/dist/{context-DrNGEC0b.d.mts → context-epL7NPvL.d.cts} +3 -3
- package/dist/{context-DrNGEC0b.d.mts.map → context-epL7NPvL.d.cts.map} +1 -1
- package/dist/{engine-context-BXjBJuHe.d.mts → engine-context-BiDxBwme.d.mts} +3 -3
- package/dist/{engine-context-BXjBJuHe.d.mts.map → engine-context-BiDxBwme.d.mts.map} +1 -1
- package/dist/{engine-context-CPYw-aGB.d.cts → engine-context-Dw8odBCo.d.cts} +3 -3
- package/dist/{engine-context-CPYw-aGB.d.cts.map → engine-context-Dw8odBCo.d.cts.map} +1 -1
- package/dist/engine.cjs +1 -0
- package/dist/engine.d.cts +4 -4
- package/dist/engine.d.mts +4 -4
- package/dist/engine.mjs +1 -0
- package/dist/engine.mjs.map +1 -1
- package/dist/helpers/create-execution-host.cjs +27 -2
- package/dist/helpers/create-execution-host.d.cts +3 -3
- package/dist/helpers/create-execution-host.d.cts.map +1 -1
- package/dist/helpers/create-execution-host.d.mts +3 -3
- package/dist/helpers/create-execution-host.d.mts.map +1 -1
- package/dist/helpers/create-execution-host.mjs +27 -2
- package/dist/helpers/create-execution-host.mjs.map +1 -1
- package/dist/helpers/execution-host-worker.cjs +2 -1
- package/dist/helpers/execution-host-worker.d.cts +6 -2
- package/dist/helpers/execution-host-worker.d.cts.map +1 -1
- package/dist/helpers/execution-host-worker.d.mts +6 -2
- package/dist/helpers/execution-host-worker.d.mts.map +1 -1
- package/dist/helpers/execution-host-worker.mjs +2 -1
- package/dist/helpers/execution-host-worker.mjs.map +1 -1
- package/dist/helpers/rpc.d.cts +1 -1
- package/dist/helpers/rpc.d.mts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/worker/execution-host.cjs +160 -2
- package/dist/worker/execution-host.d.cts +52 -2
- package/dist/worker/execution-host.d.cts.map +1 -1
- package/dist/worker/execution-host.d.mts +52 -2
- package/dist/worker/execution-host.d.mts.map +1 -1
- package/dist/worker/execution-host.mjs +161 -3
- package/dist/worker/execution-host.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/api-Bw-RpQgX.d.cts.map +0 -1
- package/dist/api-D9bpSxPB.d.mts.map +0 -1
package/dist/api/build.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../chunk-C0xms8kb.cjs');
|
|
3
3
|
const require_api_prepare = require('./prepare.cjs');
|
|
4
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
4
5
|
let _powerlines_core = require("@powerlines/core");
|
|
5
6
|
let _powerlines_core_lib_environment = require("@powerlines/core/lib/environment");
|
|
6
7
|
let _stryke_fs_copy_file = require("@stryke/fs/copy-file");
|
|
7
|
-
let _stryke_path_append = require("@stryke/path/append");
|
|
8
8
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
9
9
|
let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
10
10
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
package/dist/api/build.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/build.d.ts
|
package/dist/api/build.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/build.d.ts
|
package/dist/api/build.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { prepare } from "./prepare.mjs";
|
|
2
|
+
import { appendPath } from "@stryke/path/append";
|
|
2
3
|
import { formatFolder } from "@powerlines/core";
|
|
3
4
|
import { executeEnvironments } from "@powerlines/core/lib/environment";
|
|
4
5
|
import { copyFiles } from "@stryke/fs/copy-file";
|
|
5
|
-
import { appendPath } from "@stryke/path/append";
|
|
6
6
|
import { relativePath } from "@stryke/path/file-path-fns";
|
|
7
7
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
8
8
|
import { joinPaths } from "@stryke/path/join-paths";
|
package/dist/api/clean.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/clean.d.ts
|
package/dist/api/clean.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/clean.d.ts
|
package/dist/api/create.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/create.d.ts
|
package/dist/api/create.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/create.d.ts
|
package/dist/api/deploy.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/deploy.d.ts
|
package/dist/api/deploy.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/deploy.d.ts
|
package/dist/api/docs.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/docs.d.ts
|
package/dist/api/docs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/docs.d.ts
|
package/dist/api/lint.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/lint.d.ts
|
package/dist/api/lint.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/lint.d.ts
|
package/dist/api/prepare.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/prepare.d.ts
|
package/dist/api/prepare.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/prepare.d.ts
|
package/dist/api/test.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/test.d.ts
|
package/dist/api/test.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/test.d.ts
|
package/dist/api/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-D6xUniHh.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-epL7NPvL.cjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core/types/context";
|
|
4
4
|
|
|
5
5
|
//#region src/api/types.d.ts
|
package/dist/api/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as EngineResolvedConfig } from "../config-
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { r as EngineResolvedConfig } from "../config-C9AD-erz.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-S3XH2DWP.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core/types/context";
|
|
4
4
|
|
|
5
5
|
//#region src/api/types.d.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as EngineExecutionOptions } from "./config-D6xUniHh.cjs";
|
|
2
|
+
import { t as EngineContext } from "./context-epL7NPvL.cjs";
|
|
3
|
+
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
3
4
|
import { EXECUTION_API_METHODS } from "@powerlines/core/constants/api";
|
|
4
5
|
|
|
5
6
|
//#region src/types/utils.d.ts
|
|
@@ -108,7 +109,7 @@ interface ExecutionHostParams {
|
|
|
108
109
|
/**
|
|
109
110
|
* The execution options for the current execution instance
|
|
110
111
|
*/
|
|
111
|
-
options:
|
|
112
|
+
options: EngineExecutionOptions;
|
|
112
113
|
/**
|
|
113
114
|
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
114
115
|
*/
|
|
@@ -131,4 +132,4 @@ interface Engine<TExecutionAPI extends ReadonlyArray<string>> extends ExecutionI
|
|
|
131
132
|
}
|
|
132
133
|
//#endregion
|
|
133
134
|
export { PowerlinesExecutionHost as a, ExecutionInterface as i, ExecutionHost as n, Worker as o, ExecutionHostParams as r, Engine as t };
|
|
134
|
-
//# sourceMappingURL=api-
|
|
135
|
+
//# sourceMappingURL=api-6w4hZL6n.d.cts.map
|
|
@@ -0,0 +1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E,IAAA,EAAM,aAAA,CAAc,aAAA;AAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as EngineExecutionOptions } from "./config-C9AD-erz.mjs";
|
|
2
|
+
import { t as EngineContext } from "./context-S3XH2DWP.mjs";
|
|
3
|
+
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
3
4
|
import { EXECUTION_API_METHODS } from "@powerlines/core/constants/api";
|
|
4
5
|
|
|
5
6
|
//#region src/types/utils.d.ts
|
|
@@ -108,7 +109,7 @@ interface ExecutionHostParams {
|
|
|
108
109
|
/**
|
|
109
110
|
* The execution options for the current execution instance
|
|
110
111
|
*/
|
|
111
|
-
options:
|
|
112
|
+
options: EngineExecutionOptions;
|
|
112
113
|
/**
|
|
113
114
|
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
114
115
|
*/
|
|
@@ -131,4 +132,4 @@ interface Engine<TExecutionAPI extends ReadonlyArray<string>> extends ExecutionI
|
|
|
131
132
|
}
|
|
132
133
|
//#endregion
|
|
133
134
|
export { PowerlinesExecutionHost as a, ExecutionInterface as i, ExecutionHost as n, Worker as o, ExecutionHostParams as r, Engine as t };
|
|
134
|
-
//# sourceMappingURL=api-
|
|
135
|
+
//# sourceMappingURL=api-CcNgO71y.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-CcNgO71y.d.mts","names":[],"sources":["../src/types/utils.ts","../src/types/api.ts"],"mappings":";;;;;;KAkBY,MAAA,kCAAwC,aAAA,oBAC5C,eAAA,YAA2B,MAAA,EAAQ,OAAA,KAAY,OAAA;EAErD,KAAA;EACA,GAAA,QAAW,OAAA;AAAA;;;;AAJb;;;;;UCuBiB,kBAAA;EDtBsC;;;;;;;;EC+BrD,OAAA,GAAU,YAAA,EAAc,mBAAA,KAAwB,OAAA;ED/BP;;;;;;;;ECyCzC,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;;;AAnB9C;;;;;;;EA8BE,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAAA;;;;;;;;;EAW9C,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAmCF;;;;;;EA3B1C,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAxClB;;;;;;EAgDxB,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EA3B1C;;;;;;;;;EAsCA,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAnBrC;;;;;;EA2BP,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EARpB;;;;;;;;EAkBtB,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAArC;;;;;;AAaX;;EAHE,QAAA,QAAgB,OAAA;AAAA;AAAA,UAGD,mBAAA;EAIN;;;EAAT,OAAA,EAAS,sBAAA;EAKiB;AAG5B;;EAHE,YAAA,EAAc,YAAA;AAAA;AAAA,KAGJ,aAAA,uBAAoC,aAAA,YAAyB,MAAA,CACvE,mBAAA,EACA,aAAA;AAAA,KAGU,uBAAA,GAA0B,aAAA,QAC7B,qBAAA;;;;UAMQ,MAAA,uBACO,aAAA,kBACd,kBAAA;EAdsC;;;EAkB9C,OAAA,EAAS,aAAA;EAhBI;;AAGf;EAkBE,IAAA,EAAM,aAAA,CAAc,aAAA;AAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CustomLogger, ExecutionOptions, FrameworkOptions, LogMeta, Options, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
2
|
-
import {
|
|
3
|
-
import { BirpcOptions, BirpcReturn, ProxifiedRemoteFunctions } from "birpc";
|
|
2
|
+
import { RpcStreamingClientHost } from "devframe/client";
|
|
4
3
|
import { RpcCacheManager, RpcCacheOptions, RpcFunctionsCollector } from "devframe/rpc";
|
|
5
4
|
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
5
|
+
import { MaybePromise, PartialKeys, RequiredKeys } from "@stryke/types/base";
|
|
6
|
+
import { BirpcOptions, BirpcReturn, ProxifiedRemoteFunctions } from "birpc";
|
|
6
7
|
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevframeDefinition, EventEmitter, RpcSharedStateHost } from "devframe/types";
|
|
7
8
|
import { Asyncify } from "@stryke/types/async";
|
|
8
|
-
import { RpcStreamingClientHost } from "devframe/client";
|
|
9
9
|
|
|
10
10
|
//#region src/types/rpc.d.ts
|
|
11
11
|
interface RpcPayloadMetadata {
|
|
@@ -156,6 +156,10 @@ type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id
|
|
|
156
156
|
* The port number to use for the websocket connection between the engine and the various hosts.
|
|
157
157
|
*/
|
|
158
158
|
port?: number;
|
|
159
|
+
/**
|
|
160
|
+
* An optional root directory for the engine to use when resolving paths and loading configuration files. This value can be used to specify a custom root directory for the engine, which can be useful in cases where the default behavior of using the current working directory is not desirable. If this option is not provided, the engine will use the current working directory as the root directory by default.
|
|
161
|
+
*/
|
|
162
|
+
root?: string;
|
|
159
163
|
/**
|
|
160
164
|
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
161
165
|
*
|
|
@@ -197,4 +201,4 @@ type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connec
|
|
|
197
201
|
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
198
202
|
//#endregion
|
|
199
203
|
export { RpcServerFunctions as C, WrappedRpcFunctions as D, WrappedRpcFunction as E, RpcPayloadMetadata as S, WrapRpcFunctions as T, RpcClientRemoteFunctions as _, ExtractRpcFunction as a, RpcFunctions as b, InputRpcFunctions as c, RpcClientCall as d, RpcClientCallEvent as f, RpcClientHost as g, RpcClientFunctions as h, RpcClientOptions as i, LogPayload as l, RpcClientEvents as m, EngineOptions as n, ExtractRpcFunctions as o, RpcClientCallOptional as p, EngineResolvedConfig as r, InputRpcFunction as s, EngineExecutionOptions as t, RpcClient as u, RpcContext as v, WrapRpcFunction as w, RpcPayloadEnvelop as x, RpcFunction as y };
|
|
200
|
-
//# sourceMappingURL=config-
|
|
204
|
+
//# sourceMappingURL=config-C9AD-erz.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-C9AD-erz.d.mts","names":[],"sources":["../src/types/rpc.ts","../src/types/config.ts"],"mappings":";;;;;;;;;;UAkCiB,kBAAA;;AAAjB;;EAIE,SAAA;EAJiC;;;EAQjC,IAAA;EAQA;;;EAJA,SAAA;EAYW;AAGb;;EAXE,WAAA;EAWqE;;;EAPrE,WAAA;EAWS;;;EAPT,WAAA;AAAA;AAAA,UAGe,iBAAA,mBAAoC,kBAAA;EAO1B;;AAC3B;EAJE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,WAAA,IAAe,OAAA,UAAiB,YAAA;AAAA,KAChC,YAAA,GAAe,MAAA,SAAe,WAAA;AAAA,KAE9B,gBAAA,IAAoB,OAAA,EAAS,iBAAA;AAAA,KAC7B,iBAAA,GAAoB,MAAA,SAAe,gBAAA;AAAA,KAEnC,kBAAA,IACV,OAAA,EAAS,iBAAA,UACN,OAAA;AAAA,KACO,mBAAA,GAAsB,MAAA,SAAe,kBAAA;AAAA,KAErC,kBAAA,mBAAqC,kBAAA,KAC/C,OAAA,EAAS,UAAA,CAAW,SAAA,oBACjB,UAAA,CAAW,QAAA,CAAS,SAAA;AAAA,KAEb,mBAAA,oBAAuC,mBAAA,qBAClC,UAAA,GAAa,kBAAA,CAAmB,UAAA,CAAW,IAAA;AAAA,KAGhD,eAAA,mBAAkC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c,qBAAA;EA9GmB;;;EAmHjC,MAAA,EAAQ,aAAA;EAnH2D;;;EAwHnE,WAAA,EAAa,kBAAA;EAtHa;;;;;EA6H1B,SAAA,EAAW,sBAAA;EA5HiB;;;EAiI5B,YAAA,EAAc,eAAA;AAAA;;;;;;KCzLJ,aAAA,GAAgB,IAAA,CAC1B,WAAA,CAAY,kBAAA,0CAGZ,OAAA;EDNiC;;;ECU/B,IAAA;EDFF;;;ECOE,IAAA;EDSF;;;ECJE,IAAA;EDO8B;;;;;;ECC9B,YAAA,GAAe,YAAA;EDGA;;AAGnB;ECDI,SAAA,GAAY,gBAAA;AAAA;AAAA,UAGC,sBAAA,SAA+B,gBAAA;EDFQ;AACxD;;ECKE,OAAA;EDLyB;;AAE3B;ECQE,UAAA,EAAY,cAAA;;;;EAKZ,SAAA,GAAY,OAAA,CAAQ,mBAAA;EDZO;;;ECiB3B,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EDhBzB;;;;;;ECyBV,YAAA,aAAyB,OAAA,CAAQ,eAAA;AAAA;AAAA,KAGvB,gBAAA,GAAmB,YAAA,CAC7B,sBAAA;AAAA,KAIU,oBAAA,qBAAyC,UAAA,GAAa,UAAA,IAChE,cAAA,CAAe,WAAA,EAAa,sBAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CustomLogger, ExecutionOptions, FrameworkOptions, LogMeta, Options, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
2
|
-
import { RpcStreamingClientHost } from "devframe/client";
|
|
3
|
-
import { RpcCacheManager, RpcCacheOptions, RpcFunctionsCollector } from "devframe/rpc";
|
|
4
|
-
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
5
2
|
import { MaybePromise, PartialKeys, RequiredKeys } from "@stryke/types/base";
|
|
6
3
|
import { BirpcOptions, BirpcReturn, ProxifiedRemoteFunctions } from "birpc";
|
|
4
|
+
import { RpcCacheManager, RpcCacheOptions, RpcFunctionsCollector } from "devframe/rpc";
|
|
5
|
+
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
7
6
|
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevframeDefinition, EventEmitter, RpcSharedStateHost } from "devframe/types";
|
|
8
7
|
import { Asyncify } from "@stryke/types/async";
|
|
8
|
+
import { RpcStreamingClientHost } from "devframe/client";
|
|
9
9
|
|
|
10
10
|
//#region src/types/rpc.d.ts
|
|
11
11
|
interface RpcPayloadMetadata {
|
|
@@ -156,6 +156,10 @@ type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id
|
|
|
156
156
|
* The port number to use for the websocket connection between the engine and the various hosts.
|
|
157
157
|
*/
|
|
158
158
|
port?: number;
|
|
159
|
+
/**
|
|
160
|
+
* An optional root directory for the engine to use when resolving paths and loading configuration files. This value can be used to specify a custom root directory for the engine, which can be useful in cases where the default behavior of using the current working directory is not desirable. If this option is not provided, the engine will use the current working directory as the root directory by default.
|
|
161
|
+
*/
|
|
162
|
+
root?: string;
|
|
159
163
|
/**
|
|
160
164
|
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
161
165
|
*
|
|
@@ -197,4 +201,4 @@ type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connec
|
|
|
197
201
|
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
198
202
|
//#endregion
|
|
199
203
|
export { RpcServerFunctions as C, WrappedRpcFunctions as D, WrappedRpcFunction as E, RpcPayloadMetadata as S, WrapRpcFunctions as T, RpcClientRemoteFunctions as _, ExtractRpcFunction as a, RpcFunctions as b, InputRpcFunctions as c, RpcClientCall as d, RpcClientCallEvent as f, RpcClientHost as g, RpcClientFunctions as h, RpcClientOptions as i, LogPayload as l, RpcClientEvents as m, EngineOptions as n, ExtractRpcFunctions as o, RpcClientCallOptional as p, EngineResolvedConfig as r, InputRpcFunction as s, EngineExecutionOptions as t, RpcClient as u, RpcContext as v, WrapRpcFunction as w, RpcPayloadEnvelop as x, RpcFunction as y };
|
|
200
|
-
//# sourceMappingURL=config-
|
|
204
|
+
//# sourceMappingURL=config-D6xUniHh.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-D6xUniHh.d.cts","names":[],"sources":["../src/types/rpc.ts","../src/types/config.ts"],"mappings":";;;;;;;;;;UAkCiB,kBAAA;;AAAjB;;EAIE,SAAA;EAJiC;;;EAQjC,IAAA;EAQA;;;EAJA,SAAA;EAYW;AAGb;;EAXE,WAAA;EAWqE;;;EAPrE,WAAA;EAWS;;;EAPT,WAAA;AAAA;AAAA,UAGe,iBAAA,mBAAoC,kBAAA;EAO1B;;AAC3B;EAJE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,WAAA,IAAe,OAAA,UAAiB,YAAA;AAAA,KAChC,YAAA,GAAe,MAAA,SAAe,WAAA;AAAA,KAE9B,gBAAA,IAAoB,OAAA,EAAS,iBAAA;AAAA,KAC7B,iBAAA,GAAoB,MAAA,SAAe,gBAAA;AAAA,KAEnC,kBAAA,IACV,OAAA,EAAS,iBAAA,UACN,OAAA;AAAA,KACO,mBAAA,GAAsB,MAAA,SAAe,kBAAA;AAAA,KAErC,kBAAA,mBAAqC,kBAAA,KAC/C,OAAA,EAAS,UAAA,CAAW,SAAA,oBACjB,UAAA,CAAW,QAAA,CAAS,SAAA;AAAA,KAEb,mBAAA,oBAAuC,mBAAA,qBAClC,UAAA,GAAa,kBAAA,CAAmB,UAAA,CAAW,IAAA;AAAA,KAGhD,eAAA,mBAAkC,WAAA,KAC5C,OAAA,EAAS,iBAAA,CAAkB,UAAA,CAAW,SAAA,UACnC,UAAA,CAAW,SAAA,UAAmB,OAAA,YAAmB,CAAA,GAAI,UAAA,CAAW,SAAA;AAAA,KAEzD,gBAAA,oBAAoC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A;AAAA;;;;;;KCzLJ,aAAA,GAAgB,IAAA,CAC1B,WAAA,CAAY,kBAAA,0CAGZ,OAAA;EDNiC;;;ECU/B,IAAA;EDFF;;;ECOE,IAAA;EDSF;;;ECJE,IAAA;EDO8B;;;;;;ECC9B,YAAA,GAAe,YAAA;EDGA;;AAGnB;ECDI,SAAA,GAAY,gBAAA;AAAA;AAAA,UAGC,sBAAA,SAA+B,gBAAA;EDFQ;AACxD;;ECKE,OAAA;EDLyB;;AAE3B;ECQE,UAAA,EAAY,cAAA;;;;EAKZ,SAAA,GAAY,OAAA,CAAQ,mBAAA;EDZO;;;ECiB3B,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EDhBzB;;;;;;ECyBV,YAAA,aAAyB,OAAA,CAAQ,eAAA;AAAA;AAAA,KAGvB,gBAAA,GAAmB,YAAA,CAC7B,sBAAA;AAAA,KAIU,oBAAA,qBAAyC,UAAA,GAAa,UAAA,IAChE,cAAA,CAAe,WAAA,EAAa,sBAAA"}
|
package/dist/context/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PowerlinesEngineContext } from "../engine-context-
|
|
1
|
+
import { t as PowerlinesEngineContext } from "../engine-context-Dw8odBCo.cjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
package/dist/context/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PowerlinesEngineContext } from "../engine-context-
|
|
1
|
+
import { t as PowerlinesEngineContext } from "../engine-context-BiDxBwme.mjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as EngineOptions, t as EngineExecutionOptions, u as RpcClient } from "./config-
|
|
1
|
+
import { n as EngineOptions, t as EngineExecutionOptions, u as RpcClient } from "./config-C9AD-erz.mjs";
|
|
2
2
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
3
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
4
|
|
|
@@ -103,7 +103,7 @@ interface EngineExecutionItem {
|
|
|
103
103
|
* @remarks
|
|
104
104
|
* This context is used during the execution of the Powerlines engine, providing access to the input user configurations.
|
|
105
105
|
*/
|
|
106
|
-
interface EngineContext<TSystemContext = unknown> extends BaseContext<TSystemContext>, Pick<Required<EngineOptions>, "framework"
|
|
106
|
+
interface EngineContext<TSystemContext = unknown> extends BaseContext<TSystemContext>, Pick<Required<EngineOptions>, "framework"> {
|
|
107
107
|
/**
|
|
108
108
|
* The options provided to the Powerlines process
|
|
109
109
|
*/
|
|
@@ -146,4 +146,4 @@ interface EngineSystemContext {
|
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
export { ExecutionHookScopeState as a, ExecutionScopeType as c, ExecutionCommandScopeState as i, ExecutionState as l, EngineExecutionItem as n, ExecutionPluginScopeState as o, EngineSystemContext as r, ExecutionScopeState as s, EngineContext as t };
|
|
149
|
-
//# sourceMappingURL=context-
|
|
149
|
+
//# sourceMappingURL=context-S3XH2DWP.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
1
|
+
{"version":3,"file":"context-S3XH2DWP.d.mts","names":[],"sources":["../src/types/context.ts"],"mappings":";;;;;;AA0BA;;KAAY,kBAAA;;;AAKZ;UAAiB,mBAAA;;;;EAIf,SAAA;EAUA;;;EALA,IAAA;EAWe;;;EANf,IAAA,EAAM,kBAAA;AAAA;AAgBR;;;AAAA,UAViB,0BAAA,SAAmC,mBAAA;EAUH;;;EAN/C,IAAA;AAAA;AAqBF;;;AAAA,UAfiB,uBAAA,SAAgC,mBAAA;EAmB3C;AAMN;;EArBE,KAAA;EAyBS;;;EApBT,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAA;EAwBjD;;;EApBA,IAAA;AAAA;;;;UAMe,cAAA;EA4CR;;;EAxCP,OAAA,EAAS,0BAAA;EAyBT;;;EApBA,IAAA,EAAM,uBAAA;EA8BM;;;EAzBZ,MAAA,EAAQ,yBAAA;AAAA;AAuCV;;;AAAA,UAjCiB,mBAAA;EAoCC;;;EAhChB,YAAA;EAiDU;;;EA5CV,MAAA;EA4DK;;;EAvDL,OAAA,EAAS,sBAAA;EAsBH;;;EAjBN,UAAA,EAAY,gBAAA;EAiBV;;;EAZF,KAAA,EAAO,cAAA;AAAA;;;;;;;UASQ,aAAA,mCAEb,WAAA,CAAY,cAAA,GACZ,IAAA,CAAK,QAAA,CAAS,aAAA;EA+Bd;;;EA3BF,OAAA,EAAS,aAAA;EA6BI;;;EAxBb,UAAA,EAAY,cAAA;EAgCiD;;AAG/D;;;;EA3BE,QAAA,EAAU,mBAAA;;;;EAKV,UAAA,EAAY,mBAAA;;;;;;;EAQZ,cAAA,GACE,MAAA,UACA,YAAA,EAAc,YAAA,KACX,OAAA,CAAQ,mBAAA;;;;;;;EAQb,iBAAA,GAAoB,YAAA,UAAsB,WAAA;AAAA;AAAA,UAG3B,mBAAA;;;;EAIf,GAAA,EAAK,SAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as EngineOptions, t as EngineExecutionOptions, u as RpcClient } from "./config-
|
|
1
|
+
import { n as EngineOptions, t as EngineExecutionOptions, u as RpcClient } from "./config-D6xUniHh.cjs";
|
|
2
2
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
3
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
4
|
|
|
@@ -103,7 +103,7 @@ interface EngineExecutionItem {
|
|
|
103
103
|
* @remarks
|
|
104
104
|
* This context is used during the execution of the Powerlines engine, providing access to the input user configurations.
|
|
105
105
|
*/
|
|
106
|
-
interface EngineContext<TSystemContext = unknown> extends BaseContext<TSystemContext>, Pick<Required<EngineOptions>, "framework"
|
|
106
|
+
interface EngineContext<TSystemContext = unknown> extends BaseContext<TSystemContext>, Pick<Required<EngineOptions>, "framework"> {
|
|
107
107
|
/**
|
|
108
108
|
* The options provided to the Powerlines process
|
|
109
109
|
*/
|
|
@@ -146,4 +146,4 @@ interface EngineSystemContext {
|
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
export { ExecutionHookScopeState as a, ExecutionScopeType as c, ExecutionCommandScopeState as i, ExecutionState as l, EngineExecutionItem as n, ExecutionPluginScopeState as o, EngineSystemContext as r, ExecutionScopeState as s, EngineContext as t };
|
|
149
|
-
//# sourceMappingURL=context-
|
|
149
|
+
//# sourceMappingURL=context-epL7NPvL.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
1
|
+
{"version":3,"file":"context-epL7NPvL.d.cts","names":[],"sources":["../src/types/context.ts"],"mappings":";;;;;;AA0BA;;KAAY,kBAAA;;;AAKZ;UAAiB,mBAAA;;;;EAIf,SAAA;EAUA;;;EALA,IAAA;EAWe;;;EANf,IAAA,EAAM,kBAAA;AAAA;AAgBR;;;AAAA,UAViB,0BAAA,SAAmC,mBAAA;EAUH;;;EAN/C,IAAA;AAAA;AAqBF;;;AAAA,UAfiB,uBAAA,SAAgC,mBAAA;EAmB3C;AAMN;;EArBE,KAAA;EAyBS;;;EApBT,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAA;EAwBjD;;;EApBA,IAAA;AAAA;;;;UAMe,cAAA;EA4CR;;;EAxCP,OAAA,EAAS,0BAAA;EAyBT;;;EApBA,IAAA,EAAM,uBAAA;EA8BM;;;EAzBZ,MAAA,EAAQ,yBAAA;AAAA;AAuCV;;;AAAA,UAjCiB,mBAAA;EAoCC;;;EAhChB,YAAA;EAiDU;;;EA5CV,MAAA;EA4DK;;;EAvDL,OAAA,EAAS,sBAAA;EAsBH;;;EAjBN,UAAA,EAAY,gBAAA;EAiBV;;;EAZF,KAAA,EAAO,cAAA;AAAA;;;;;;;UASQ,aAAA,mCAEb,WAAA,CAAY,cAAA,GACZ,IAAA,CAAK,QAAA,CAAS,aAAA;EA+Bd;;;EA3BF,OAAA,EAAS,aAAA;EA6BI;;;EAxBb,UAAA,EAAY,cAAA;EAgCiD;;AAG/D;;;;EA3BE,QAAA,EAAU,mBAAA;;;;EAKV,UAAA,EAAY,mBAAA;;;;;;;EAQZ,cAAA,GACE,MAAA,UACA,YAAA,EAAc,YAAA,KACX,OAAA,CAAQ,mBAAA;;;;;;;EAQb,iBAAA,GAAoB,YAAA,UAAsB,WAAA;AAAA;AAAA,UAG3B,mBAAA;;;;EAIf,GAAA,EAAK,SAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as EngineOptions } from "./config-
|
|
2
|
-
import { n as EngineExecutionItem, t as EngineContext } from "./context-
|
|
1
|
+
import { n as EngineOptions } from "./config-C9AD-erz.mjs";
|
|
2
|
+
import { n as EngineExecutionItem, t as EngineContext } from "./context-S3XH2DWP.mjs";
|
|
3
3
|
import { PowerlinesBaseContext } from "@powerlines/core/context/base-context";
|
|
4
4
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
5
5
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
@@ -51,4 +51,4 @@ declare class PowerlinesEngineContext<TSystemContext = unknown> extends Powerlin
|
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
53
|
export { PowerlinesEngineContext as t };
|
|
54
|
-
//# sourceMappingURL=engine-context-
|
|
54
|
+
//# sourceMappingURL=engine-context-BiDxBwme.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-context-
|
|
1
|
+
{"version":3,"file":"engine-context-BiDxBwme.d.mts","names":[],"sources":["../src/context/engine-context.ts"],"mappings":";;;;;;;;;cAmDa,uBAAA,mCACH,qBAAA,CAAsB,cAAA,aACnB,aAAA,CAAc,cAAA;EAAA;EAkIP,OAAA,EAAS,aAAA;EAClB,UAAA,EAAY,cAAA;EArIa;;;;;;EAAA,OAgBd,IAAA,0BAAA,CAClB,OAAA,EAAS,aAAA,EACT,IAAA,EAAM,YAAA,EACN,UAAA,EAAY,cAAA,GACX,OAAA,CAAQ,uBAAA,CAAwB,cAAA;EA8DnB,YAAA,CAAa,OAAA,GAAS,aAAA,EAAoB,KAAA,GAAQ,KAAA,GAAK,mBAAA,CAAA,MAAA;EAAA,IAe5D,UAAA,CAAA,GAAc,mBAAA;EAAA,IAId,QAAA,CAAA,GAAY,mBAAA;EAAA,IAIZ,QAAA,CAAA,GAAY,QAAA;EAAA,IAQZ,SAAA,CAAA,GAAa,gBAAA;EAAA,IAQb,KAAA,CAAA;EAvCuD;;;;;;EAAA,UAiDzD,WAAA,CACS,OAAA,EAAS,aAAA,EAClB,UAAA,EAAY,cAAA;EAAA;;;;;;;;;EAcR,cAAA,CACX,MAAA,UACA,YAAA,EAAc,YAAA,GACb,OAAA,CAAQ,mBAAA;EArJmB;;;;;;EAyNvB,iBAAA,CAAkB,YAAA,UAAsB,WAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as EngineOptions } from "./config-
|
|
2
|
-
import { n as EngineExecutionItem, t as EngineContext } from "./context-
|
|
1
|
+
import { n as EngineOptions } from "./config-D6xUniHh.cjs";
|
|
2
|
+
import { n as EngineExecutionItem, t as EngineContext } from "./context-epL7NPvL.cjs";
|
|
3
3
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
4
4
|
import { FrameworkOptions, InlineConfig, LogFn, LoggerOptions } from "@powerlines/core";
|
|
5
5
|
import { ConnectionMeta, DevToolsHost, DevToolsNodeContext } from "devframe/types";
|
|
@@ -51,4 +51,4 @@ declare class PowerlinesEngineContext<TSystemContext = unknown> extends Powerlin
|
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
53
|
export { PowerlinesEngineContext as t };
|
|
54
|
-
//# sourceMappingURL=engine-context-
|
|
54
|
+
//# sourceMappingURL=engine-context-Dw8odBCo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-context-
|
|
1
|
+
{"version":3,"file":"engine-context-Dw8odBCo.d.cts","names":[],"sources":["../src/context/engine-context.ts"],"mappings":";;;;;;;;;cAmDa,uBAAA,mCACH,qBAAA,CAAsB,cAAA,aACnB,aAAA,CAAc,cAAA;EAAA;EAkIP,OAAA,EAAS,aAAA;EAClB,UAAA,EAAY,cAAA;EArIa;;;;;;EAAA,OAgBd,IAAA,0BAAA,CAClB,OAAA,EAAS,aAAA,EACT,IAAA,EAAM,YAAA,EACN,UAAA,EAAY,cAAA,GACX,OAAA,CAAQ,uBAAA,CAAwB,cAAA;EA8DnB,YAAA,CAAa,OAAA,GAAS,aAAA,EAAoB,KAAA,GAAQ,KAAA,GAAK,mBAAA,CAAA,MAAA;EAAA,IAe5D,UAAA,CAAA,GAAc,mBAAA;EAAA,IAId,QAAA,CAAA,GAAY,mBAAA;EAAA,IAIZ,QAAA,CAAA,GAAY,QAAA;EAAA,IAQZ,SAAA,CAAA,GAAa,gBAAA;EAAA,IAQb,KAAA,CAAA;EAvCuD;;;;;;EAAA,UAiDzD,WAAA,CACS,OAAA,EAAS,aAAA,EAClB,UAAA,EAAY,cAAA;EAAA;;;;;;;;;EAcR,cAAA,CACX,MAAA,UACA,YAAA,EAAc,YAAA,GACb,OAAA,CAAQ,mBAAA;EArJmB;;;;;;EAyNvB,iBAAA,CAAkB,YAAA,UAAsB,WAAA;AAAA"}
|
package/dist/engine.cjs
CHANGED
|
@@ -256,6 +256,7 @@ async function createEngine(options, executionHostPath = "@powerlines/engine/exe
|
|
|
256
256
|
node_events.EventEmitter.setMaxListeners(100);
|
|
257
257
|
const context = await createContext(options);
|
|
258
258
|
return new PowerlinesEngine(context, await require_helpers_execution_host_worker.ExecutionHostWorker.from(executionHostPath, {
|
|
259
|
+
root: options.root,
|
|
259
260
|
context,
|
|
260
261
|
executionMethods
|
|
261
262
|
}));
|
package/dist/engine.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as EngineOptions } from "./config-
|
|
2
|
-
import { t as EngineContext } from "./context-
|
|
3
|
-
import { t as PowerlinesEngineContext } from "./engine-context-
|
|
4
|
-
import { n as ExecutionHost, t as Engine } from "./api-
|
|
1
|
+
import { n as EngineOptions } from "./config-D6xUniHh.cjs";
|
|
2
|
+
import { t as EngineContext } from "./context-epL7NPvL.cjs";
|
|
3
|
+
import { t as PowerlinesEngineContext } from "./engine-context-Dw8odBCo.cjs";
|
|
4
|
+
import { n as ExecutionHost, t as Engine } from "./api-6w4hZL6n.cjs";
|
|
5
5
|
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
6
6
|
import { EXECUTION_API_METHODS } from "@powerlines/core/constants";
|
|
7
7
|
|
package/dist/engine.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as EngineOptions } from "./config-
|
|
2
|
-
import { t as EngineContext } from "./context-
|
|
3
|
-
import { t as PowerlinesEngineContext } from "./engine-context-
|
|
4
|
-
import { n as ExecutionHost, t as Engine } from "./api-
|
|
1
|
+
import { n as EngineOptions } from "./config-C9AD-erz.mjs";
|
|
2
|
+
import { t as EngineContext } from "./context-S3XH2DWP.mjs";
|
|
3
|
+
import { t as PowerlinesEngineContext } from "./engine-context-BiDxBwme.mjs";
|
|
4
|
+
import { n as ExecutionHost, t as Engine } from "./api-CcNgO71y.mjs";
|
|
5
5
|
import { EXECUTION_API_METHODS } from "@powerlines/core/constants";
|
|
6
6
|
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
7
7
|
|
package/dist/engine.mjs
CHANGED
|
@@ -253,6 +253,7 @@ async function createEngine(options, executionHostPath = "@powerlines/engine/exe
|
|
|
253
253
|
EventEmitter.setMaxListeners(100);
|
|
254
254
|
const context = await createContext(options);
|
|
255
255
|
return new PowerlinesEngine(context, await ExecutionHostWorker.from(executionHostPath, {
|
|
256
|
+
root: options.root,
|
|
256
257
|
context,
|
|
257
258
|
executionMethods
|
|
258
259
|
}));
|
package/dist/engine.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.mjs","names":["#context","#host"],"sources":["../src/engine.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 BuildInlineConfig,\n CleanInlineConfig,\n CreateInlineConfig,\n DeployInlineConfig,\n DocsInlineConfig,\n InlineConfig,\n LintInlineConfig,\n PrepareInlineConfig,\n TestInlineConfig,\n TypesInlineConfig\n} from \"@powerlines/core\";\nimport { EXECUTION_API_METHODS } from \"@powerlines/core/constants\";\nimport { createH3DevToolsHost } from \"devframe/node\";\nimport { getPort } from \"get-port-please\";\nimport { createApp, fromNodeMiddleware } from \"h3\";\nimport { EventEmitter } from \"node:events\";\nimport sirv from \"sirv\";\nimport { PowerlinesEngineContext } from \"./context/engine-context\";\nimport { ExecutionHostWorker } from \"./helpers/execution-host-worker\";\nimport { Engine, ExecutionHost } from \"./types/api\";\nimport { EngineOptions } from \"./types/config\";\nimport { EngineContext } from \"./types/context\";\n\n/**\n * The Powerlines process' orchestration and coordination API.\n *\n * @public\n */\nexport class PowerlinesEngine<\n TExecutionAPI extends ReadonlyArray<string> = typeof EXECUTION_API_METHODS\n>\n implements Engine<TExecutionAPI>, AsyncDisposable\n{\n /**\n * The Powerlines context\n */\n #context: EngineContext;\n\n /**\n * 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.\n */\n #host: ExecutionHost<TExecutionAPI>;\n\n /**\n * The Powerlines context\n */\n public get context(): EngineContext {\n return this.#context;\n }\n\n /**\n * 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.\n */\n public get host(): ExecutionHost<TExecutionAPI> {\n return this.#host;\n }\n\n /**\n * Create a new Powerlines Engine instance\n *\n * @param context - The Powerlines context\n * @param host - The API host for the execution workers\n * @returns A new instance of the Powerlines Engine\n */\n public constructor(\n context: EngineContext,\n host: ExecutionHost<TExecutionAPI>\n ) {\n this.#context = context;\n this.#host = host;\n }\n\n /**\n * Create a new Powerlines project\n *\n * @remarks\n * This method will create a new Powerlines project in the current directory.\n *\n * @param inlineConfig - The inline configuration for the create command\n * @returns A promise that resolves when the project has been created\n */\n public async create(inlineConfig: CreateInlineConfig) {\n const timer = this.context.timer(\"Create\");\n this.context.info(\"🆕 Creating a new project\");\n\n await this.execute(\"create\", inlineConfig);\n\n this.context.debug(\"✔ Create command completed successfully\");\n timer();\n }\n\n /**\n * Generate the Powerlines typescript declaration file\n *\n * @remarks\n * 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.\n *\n * @param inlineConfig - The inline configuration for the types command\n */\n public async types(inlineConfig: TypesInlineConfig) {\n const timer = this.context.timer(\"Types\");\n this.context.info(\"🏗️ Generating typescript declarations for the project\");\n\n await this.execute(\"types\", inlineConfig);\n\n this.context.debug(\"✔ Types generation has completed successfully\");\n timer();\n }\n\n /**\n * Prepare the Powerlines API\n *\n * @remarks\n * This method will prepare the Powerlines API for use, initializing any necessary resources.\n *\n * @param inlineConfig - The inline configuration for the prepare command\n */\n public async prepare(inlineConfig: PrepareInlineConfig) {\n const timer = this.context.timer(\"Prepare\");\n this.context.info(\"🏗️ Preparing the project\");\n\n await this.execute(\"prepare\", inlineConfig);\n\n this.context.debug(\"✔ Preparation has completed successfully\");\n timer();\n }\n\n /**\n * Clean any previously prepared artifacts\n *\n * @remarks\n * This method will remove the previous Powerlines artifacts from the project.\n *\n * @param inlineConfig - The inline configuration for the clean command\n * @returns A promise that resolves when the clean command has completed\n */\n public async clean(inlineConfig: CleanInlineConfig) {\n const timer = this.context.timer(\"Clean\");\n this.context.info(\"🧹 Cleaning the previous artifacts\");\n\n await this.execute(\"clean\", inlineConfig);\n\n this.context.debug(\"✔ Cleaning completed successfully\");\n timer();\n }\n\n /**\n * Lint the project\n *\n * @param inlineConfig - The inline configuration for the lint command\n * @returns A promise that resolves when the lint command has completed\n */\n public async lint(inlineConfig: LintInlineConfig) {\n const timer = this.context.timer(\"Lint\");\n this.context.info(\"📝 Linting the project\");\n\n await this.execute(\"lint\", inlineConfig);\n\n this.context.debug(\"✔ Linting completed successfully\");\n timer();\n }\n\n /**\n * Test the project\n *\n * @remarks\n * This method will run the tests for the Powerlines project.\n *\n * @param inlineConfig - The inline configuration for the test command\n * @returns A promise that resolves when the test command has completed\n */\n public async test(inlineConfig: TestInlineConfig) {\n const timer = this.context.timer(\"Test\");\n this.context.info(\"🧪 Running tests for the project\");\n\n await this.execute(\"test\", inlineConfig);\n\n this.context.debug(\"✔ Testing completed successfully\");\n timer();\n }\n\n /**\n * Build the project\n *\n * @remarks\n * This method will build the Powerlines project, generating the necessary artifacts.\n *\n * @param inlineConfig - The inline configuration for the build command\n * @returns A promise that resolves when the build command has completed\n */\n public async build(inlineConfig: BuildInlineConfig) {\n const timer = this.context.timer(\"Build\");\n this.context.info(\"📦 Building the project\");\n\n await this.execute(\"build\", inlineConfig);\n\n this.context.debug(\"✔ Build completed successfully\");\n timer();\n }\n\n /**\n * Prepare the documentation for the project\n *\n * @param inlineConfig - The inline configuration for the docs command\n * @returns A promise that resolves when the documentation generation has completed\n */\n public async docs(inlineConfig: DocsInlineConfig) {\n const timer = this.context.timer(\"Docs\");\n this.context.info(\"📓 Generating documentation for the project\");\n\n await this.execute(\"docs\", inlineConfig);\n\n this.context.debug(\"✔ Documentation generation completed successfully\");\n timer();\n }\n\n /**\n * Deploy the project source code\n *\n * @remarks\n * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.\n *\n * @param inlineConfig - The inline configuration for the deploy command\n * @returns A promise that resolves when the deploy command has completed\n */\n public async deploy(inlineConfig: DeployInlineConfig) {\n const timer = this.context.timer(\"Deploy\");\n this.context.info(\"🚀 Deploying the project\");\n\n await this.execute(\"deploy\", inlineConfig);\n\n this.context.debug(\"✔ Deployment completed successfully\");\n timer();\n }\n\n /**\n * Finalization/cleanup processing for the Powerlines API\n *\n * @remarks\n * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.\n *\n * @returns A promise that resolves when the finalization process has completed\n */\n public async finalize() {\n const timer = this.context.timer(\"Finalize\");\n this.context.info(\"🏁 Finalization processes started\");\n\n await this.host.end();\n\n this.context.debug(\"✔ Finalization completed successfully\");\n timer();\n }\n\n /**\n * Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.\n */\n public async [Symbol.asyncDispose]() {\n return this.finalize();\n }\n\n /**\n * Execute a Powerlines command based on the provided execution path and inline configuration, loading the necessary executions from the context and managing their lifecycle.\n *\n * @remarks\n * 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.\n *\n * @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.\n * @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.\n * @returns A promise that resolves when all executions for the specified command have completed\n */\n protected async execute(\n method: TExecutionAPI[number],\n inlineConfig: InlineConfig\n ) {\n await Promise.all(\n (await this.context.loadExecutions(method, inlineConfig)).map(\n async execution => {\n try {\n await this.host[method]({\n options: execution.options,\n inlineConfig\n });\n } catch (error) {\n this.context.error(\n `Execution of method \"${method}\" failed for execution with invocation ID \"${\n execution.invocationId\n }\" and execution ID \"${execution.options.executionId}\": \\n\\n${\n error instanceof Error\n ? error.stack || error.message\n : String(error)\n }`\n );\n\n throw error;\n } finally {\n this.context.completeExecution(\n execution.invocationId,\n execution.options.executionId\n );\n }\n }\n )\n );\n }\n}\n\nexport async function createContext(options: EngineOptions) {\n const port =\n options.port ??\n (await getPort({\n host: options.host || \"localhost\",\n random: true\n }));\n\n const app = createApp();\n const host = createH3DevToolsHost({\n appName: options.framework?.name || \"powerlines\",\n origin: `http://${options.host || \"localhost\"}:${port}`,\n mount: (base, dir) => {\n app.use(base, fromNodeMiddleware(sirv(dir, { dev: true, single: true })));\n }\n });\n\n return PowerlinesEngineContext.from(options, host, {\n backend: \"websocket\",\n websocket: port\n });\n}\n\nexport async function createEngine<TExecutionAPI extends ReadonlyArray<string>>(\n options: EngineOptions,\n executionHostPath = \"@powerlines/engine/execution-host\",\n executionMethods: TExecutionAPI = EXECUTION_API_METHODS as unknown as TExecutionAPI\n) {\n EventEmitter.setMaxListeners(100);\n\n const context = await createContext(options);\n const host = await ExecutionHostWorker.from<TExecutionAPI>(\n executionHostPath,\n {\n context,\n executionMethods\n }\n );\n\n return new PowerlinesEngine<TExecutionAPI>(context, host);\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,IAAa,mBAAb,MAIA;;;;CAIE;;;;CAKA;;;;CAKA,IAAW,UAAyB;AAClC,SAAO,MAAKA;;;;;CAMd,IAAW,OAAqC;AAC9C,SAAO,MAAKC;;;;;;;;;CAUd,AAAO,YACL,SACA,MACA;AACA,QAAKD,UAAW;AAChB,QAAKC,OAAQ;;;;;;;;;;;CAYf,MAAa,OAAO,cAAkC;EACpD,MAAM,QAAQ,KAAK,QAAQ,MAAM,SAAS;AAC1C,OAAK,QAAQ,KAAK,4BAA4B;AAE9C,QAAM,KAAK,QAAQ,UAAU,aAAa;AAE1C,OAAK,QAAQ,MAAM,0CAA0C;AAC7D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AAqB;EAChC,SAAS,QAAQ,WAAW,QAAQ;EACpC,QAAQ,UAAU,QAAQ,QAAQ,YAAY,GAAG;EACjD,QAAQ,MAAM,QAAQ;AACpB,OAAI,IAAI,MAAM,mBAAmB,KAAK,KAAK;IAAE,KAAK;IAAM,QAAQ;IAAM,CAAC,CAAC,CAAC;;EAE5E,CAAC;AAEF,QAAO,wBAAwB,KAAK,SAAS,MAAM;EACjD,SAAS;EACT,WAAW;EACZ,CAAC;;AAGJ,eAAsB,aACpB,SACA,oBAAoB,qCACpB,mBAAkC,uBAClC;AACA,cAAa,gBAAgB,IAAI;CAEjC,MAAM,UAAU,MAAM,cAAc,QAAQ;AAS5C,QAAO,IAAI,iBAAgC,SAAS,MARjC,oBAAoB,KACrC,mBACA;EACE;EACA;EACD,CACF,CAEwD"}
|
|
1
|
+
{"version":3,"file":"engine.mjs","names":["#context","#host"],"sources":["../src/engine.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 BuildInlineConfig,\n CleanInlineConfig,\n CreateInlineConfig,\n DeployInlineConfig,\n DocsInlineConfig,\n InlineConfig,\n LintInlineConfig,\n PrepareInlineConfig,\n TestInlineConfig,\n TypesInlineConfig\n} from \"@powerlines/core\";\nimport { EXECUTION_API_METHODS } from \"@powerlines/core/constants\";\nimport { createH3DevToolsHost } from \"devframe/node\";\nimport { getPort } from \"get-port-please\";\nimport { createApp, fromNodeMiddleware } from \"h3\";\nimport { EventEmitter } from \"node:events\";\nimport sirv from \"sirv\";\nimport { PowerlinesEngineContext } from \"./context/engine-context\";\nimport { ExecutionHostWorker } from \"./helpers/execution-host-worker\";\nimport { Engine, ExecutionHost } from \"./types/api\";\nimport { EngineOptions } from \"./types/config\";\nimport { EngineContext } from \"./types/context\";\n\n/**\n * The Powerlines process' orchestration and coordination API.\n *\n * @public\n */\nexport class PowerlinesEngine<\n TExecutionAPI extends ReadonlyArray<string> = typeof EXECUTION_API_METHODS\n>\n implements Engine<TExecutionAPI>, AsyncDisposable\n{\n /**\n * The Powerlines context\n */\n #context: EngineContext;\n\n /**\n * 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.\n */\n #host: ExecutionHost<TExecutionAPI>;\n\n /**\n * The Powerlines context\n */\n public get context(): EngineContext {\n return this.#context;\n }\n\n /**\n * 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.\n */\n public get host(): ExecutionHost<TExecutionAPI> {\n return this.#host;\n }\n\n /**\n * Create a new Powerlines Engine instance\n *\n * @param context - The Powerlines context\n * @param host - The API host for the execution workers\n * @returns A new instance of the Powerlines Engine\n */\n public constructor(\n context: EngineContext,\n host: ExecutionHost<TExecutionAPI>\n ) {\n this.#context = context;\n this.#host = host;\n }\n\n /**\n * Create a new Powerlines project\n *\n * @remarks\n * This method will create a new Powerlines project in the current directory.\n *\n * @param inlineConfig - The inline configuration for the create command\n * @returns A promise that resolves when the project has been created\n */\n public async create(inlineConfig: CreateInlineConfig) {\n const timer = this.context.timer(\"Create\");\n this.context.info(\"🆕 Creating a new project\");\n\n await this.execute(\"create\", inlineConfig);\n\n this.context.debug(\"✔ Create command completed successfully\");\n timer();\n }\n\n /**\n * Generate the Powerlines typescript declaration file\n *\n * @remarks\n * 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.\n *\n * @param inlineConfig - The inline configuration for the types command\n */\n public async types(inlineConfig: TypesInlineConfig) {\n const timer = this.context.timer(\"Types\");\n this.context.info(\"🏗️ Generating typescript declarations for the project\");\n\n await this.execute(\"types\", inlineConfig);\n\n this.context.debug(\"✔ Types generation has completed successfully\");\n timer();\n }\n\n /**\n * Prepare the Powerlines API\n *\n * @remarks\n * This method will prepare the Powerlines API for use, initializing any necessary resources.\n *\n * @param inlineConfig - The inline configuration for the prepare command\n */\n public async prepare(inlineConfig: PrepareInlineConfig) {\n const timer = this.context.timer(\"Prepare\");\n this.context.info(\"🏗️ Preparing the project\");\n\n await this.execute(\"prepare\", inlineConfig);\n\n this.context.debug(\"✔ Preparation has completed successfully\");\n timer();\n }\n\n /**\n * Clean any previously prepared artifacts\n *\n * @remarks\n * This method will remove the previous Powerlines artifacts from the project.\n *\n * @param inlineConfig - The inline configuration for the clean command\n * @returns A promise that resolves when the clean command has completed\n */\n public async clean(inlineConfig: CleanInlineConfig) {\n const timer = this.context.timer(\"Clean\");\n this.context.info(\"🧹 Cleaning the previous artifacts\");\n\n await this.execute(\"clean\", inlineConfig);\n\n this.context.debug(\"✔ Cleaning completed successfully\");\n timer();\n }\n\n /**\n * Lint the project\n *\n * @param inlineConfig - The inline configuration for the lint command\n * @returns A promise that resolves when the lint command has completed\n */\n public async lint(inlineConfig: LintInlineConfig) {\n const timer = this.context.timer(\"Lint\");\n this.context.info(\"📝 Linting the project\");\n\n await this.execute(\"lint\", inlineConfig);\n\n this.context.debug(\"✔ Linting completed successfully\");\n timer();\n }\n\n /**\n * Test the project\n *\n * @remarks\n * This method will run the tests for the Powerlines project.\n *\n * @param inlineConfig - The inline configuration for the test command\n * @returns A promise that resolves when the test command has completed\n */\n public async test(inlineConfig: TestInlineConfig) {\n const timer = this.context.timer(\"Test\");\n this.context.info(\"🧪 Running tests for the project\");\n\n await this.execute(\"test\", inlineConfig);\n\n this.context.debug(\"✔ Testing completed successfully\");\n timer();\n }\n\n /**\n * Build the project\n *\n * @remarks\n * This method will build the Powerlines project, generating the necessary artifacts.\n *\n * @param inlineConfig - The inline configuration for the build command\n * @returns A promise that resolves when the build command has completed\n */\n public async build(inlineConfig: BuildInlineConfig) {\n const timer = this.context.timer(\"Build\");\n this.context.info(\"📦 Building the project\");\n\n await this.execute(\"build\", inlineConfig);\n\n this.context.debug(\"✔ Build completed successfully\");\n timer();\n }\n\n /**\n * Prepare the documentation for the project\n *\n * @param inlineConfig - The inline configuration for the docs command\n * @returns A promise that resolves when the documentation generation has completed\n */\n public async docs(inlineConfig: DocsInlineConfig) {\n const timer = this.context.timer(\"Docs\");\n this.context.info(\"📓 Generating documentation for the project\");\n\n await this.execute(\"docs\", inlineConfig);\n\n this.context.debug(\"✔ Documentation generation completed successfully\");\n timer();\n }\n\n /**\n * Deploy the project source code\n *\n * @remarks\n * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.\n *\n * @param inlineConfig - The inline configuration for the deploy command\n * @returns A promise that resolves when the deploy command has completed\n */\n public async deploy(inlineConfig: DeployInlineConfig) {\n const timer = this.context.timer(\"Deploy\");\n this.context.info(\"🚀 Deploying the project\");\n\n await this.execute(\"deploy\", inlineConfig);\n\n this.context.debug(\"✔ Deployment completed successfully\");\n timer();\n }\n\n /**\n * Finalization/cleanup processing for the Powerlines API\n *\n * @remarks\n * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.\n *\n * @returns A promise that resolves when the finalization process has completed\n */\n public async finalize() {\n const timer = this.context.timer(\"Finalize\");\n this.context.info(\"🏁 Finalization processes started\");\n\n await this.host.end();\n\n this.context.debug(\"✔ Finalization completed successfully\");\n timer();\n }\n\n /**\n * Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.\n */\n public async [Symbol.asyncDispose]() {\n return this.finalize();\n }\n\n /**\n * Execute a Powerlines command based on the provided execution path and inline configuration, loading the necessary executions from the context and managing their lifecycle.\n *\n * @remarks\n * 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.\n *\n * @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.\n * @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.\n * @returns A promise that resolves when all executions for the specified command have completed\n */\n protected async execute(\n method: TExecutionAPI[number],\n inlineConfig: InlineConfig\n ) {\n await Promise.all(\n (await this.context.loadExecutions(method, inlineConfig)).map(\n async execution => {\n try {\n await this.host[method]({\n options: execution.options,\n inlineConfig\n });\n } catch (error) {\n this.context.error(\n `Execution of method \"${method}\" failed for execution with invocation ID \"${\n execution.invocationId\n }\" and execution ID \"${execution.options.executionId}\": \\n\\n${\n error instanceof Error\n ? error.stack || error.message\n : String(error)\n }`\n );\n\n throw error;\n } finally {\n this.context.completeExecution(\n execution.invocationId,\n execution.options.executionId\n );\n }\n }\n )\n );\n }\n}\n\nexport async function createContext(options: EngineOptions) {\n const port =\n options.port ??\n (await getPort({\n host: options.host || \"localhost\",\n random: true\n }));\n\n const app = createApp();\n const host = createH3DevToolsHost({\n appName: options.framework?.name || \"powerlines\",\n origin: `http://${options.host || \"localhost\"}:${port}`,\n mount: (base, dir) => {\n app.use(base, fromNodeMiddleware(sirv(dir, { dev: true, single: true })));\n }\n });\n\n return PowerlinesEngineContext.from(options, host, {\n backend: \"websocket\",\n websocket: port\n });\n}\n\nexport async function createEngine<TExecutionAPI extends ReadonlyArray<string>>(\n options: EngineOptions,\n executionHostPath = \"@powerlines/engine/execution-host\",\n executionMethods: TExecutionAPI = EXECUTION_API_METHODS as unknown as TExecutionAPI\n) {\n EventEmitter.setMaxListeners(100);\n\n const context = await createContext(options);\n const host = await ExecutionHostWorker.from<TExecutionAPI>(\n executionHostPath,\n {\n root: options.root,\n context,\n executionMethods\n }\n );\n\n return new PowerlinesEngine<TExecutionAPI>(context, host);\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,IAAa,mBAAb,MAIA;;;;CAIE;;;;CAKA;;;;CAKA,IAAW,UAAyB;AAClC,SAAO,MA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