@powerlines/engine 0.49.26 → 0.49.28
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.d.cts +2 -2
- package/dist/api/build.d.mts +2 -2
- 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.d.cts +4 -4
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +4 -4
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs.map +1 -1
- package/dist/{config-ByLyzMI0.d.mts → config-B6udgcnD.d.cts} +10 -5
- package/dist/{config-ByLyzMI0.d.mts.map → config-B6udgcnD.d.cts.map} +1 -1
- package/dist/{config-DKEmqMrh.d.cts → config-DXxu0y4t.d.mts} +10 -5
- package/dist/{config-DKEmqMrh.d.cts.map → config-DXxu0y4t.d.mts.map} +1 -1
- package/dist/context/engine-context.cjs +6 -6
- package/dist/context/engine-context.d.cts +1 -1
- package/dist/context/engine-context.d.mts +1 -1
- package/dist/context/engine-context.mjs +7 -7
- package/dist/context/engine-context.mjs.map +1 -1
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/{context-D0_a0kRO.d.cts → context-C71mv_aw.d.mts} +5 -5
- package/dist/context-C71mv_aw.d.mts.map +1 -0
- package/dist/{context-DcXV6_GL.d.mts → context-ZbJRDGpl.d.cts} +5 -5
- package/dist/context-ZbJRDGpl.d.cts.map +1 -0
- package/dist/{engine-BLp7JcAB.d.mts → engine-B5pbfMyg.d.cts} +7 -7
- package/dist/engine-B5pbfMyg.d.cts.map +1 -0
- package/dist/{engine-CwATBJKZ.cjs → engine-BKEDCOCb.cjs} +5 -3
- package/dist/{engine-DFKgU8-G.d.cts → engine-CeWEM0TT.d.mts} +7 -7
- package/dist/engine-CeWEM0TT.d.mts.map +1 -0
- package/dist/{engine-DL7ZeYlx.mjs → engine-DRAFIm5M.mjs} +6 -4
- package/dist/engine-DRAFIm5M.mjs.map +1 -0
- package/dist/{engine-context-B8K6Jtkk.d.cts → engine-context-CaPJFek0.d.mts} +6 -6
- package/dist/{engine-context-B8K6Jtkk.d.cts.map → engine-context-CaPJFek0.d.mts.map} +1 -1
- package/dist/{engine-context-DKlA5Pgu.d.mts → engine-context-DDbpdZHC.d.cts} +6 -6
- package/dist/{engine-context-DKlA5Pgu.d.mts.map → engine-context-DDbpdZHC.d.cts.map} +1 -1
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/engine.mjs +1 -1
- package/dist/finalize-CuV0r3jg.d.cts +12 -0
- package/dist/finalize-CuV0r3jg.d.cts.map +1 -0
- package/dist/finalize-CuV0r3jg.d.mts +12 -0
- package/dist/finalize-CuV0r3jg.d.mts.map +1 -0
- package/dist/helpers/create-api.cjs +17 -11
- package/dist/helpers/create-api.d.cts +2 -18
- package/dist/helpers/create-api.d.mts +2 -18
- package/dist/helpers/create-api.mjs +18 -12
- package/dist/helpers/create-api.mjs.map +1 -1
- package/dist/helpers/finalize.d.cts +2 -12
- package/dist/helpers/finalize.d.mts +2 -12
- package/dist/helpers/index.cjs +4 -1
- package/dist/helpers/index.d.cts +5 -5
- package/dist/helpers/index.d.mts +5 -5
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/rpc.d.cts +2 -7
- package/dist/helpers/rpc.d.mts +2 -7
- package/dist/helpers/stream.d.cts +2 -45
- package/dist/helpers/stream.d.mts +2 -45
- package/dist/helpers/type-checks.cjs +25 -0
- package/dist/helpers/type-checks.d.cts +2 -0
- package/dist/helpers/type-checks.d.mts +2 -0
- package/dist/helpers/type-checks.mjs +23 -0
- package/dist/helpers/type-checks.mjs.map +1 -0
- package/dist/{api-D1r7WAQA.d.cts → index-CBobV6Wm.d.mts} +39 -15
- package/dist/index-CBobV6Wm.d.mts.map +1 -0
- package/dist/{api-DRcC7Ry-.d.mts → index-QuLZgb8w.d.cts} +39 -15
- package/dist/index-QuLZgb8w.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -1
- package/dist/rpc-5MpqPBPa.d.cts +7 -0
- package/dist/rpc-5MpqPBPa.d.cts.map +1 -0
- package/dist/rpc-BvVZXS5K.d.mts +7 -0
- package/dist/rpc-BvVZXS5K.d.mts.map +1 -0
- package/dist/stream-B9jffNbk.d.cts +45 -0
- package/dist/stream-B9jffNbk.d.cts.map +1 -0
- package/dist/stream-B9jffNbk.d.mts +45 -0
- package/dist/stream-B9jffNbk.d.mts.map +1 -0
- package/package.json +6 -6
- package/dist/api-D1r7WAQA.d.cts.map +0 -1
- package/dist/api-DRcC7Ry-.d.mts.map +0 -1
- package/dist/context-D0_a0kRO.d.cts.map +0 -1
- package/dist/context-DcXV6_GL.d.mts.map +0 -1
- package/dist/engine-BLp7JcAB.d.mts.map +0 -1
- package/dist/engine-DFKgU8-G.d.cts.map +0 -1
- package/dist/engine-DL7ZeYlx.mjs.map +0 -1
- package/dist/helpers/create-api.d.cts.map +0 -1
- package/dist/helpers/create-api.d.mts.map +0 -1
- package/dist/helpers/finalize.d.cts.map +0 -1
- package/dist/helpers/finalize.d.mts.map +0 -1
- package/dist/helpers/rpc.d.cts.map +0 -1
- package/dist/helpers/rpc.d.mts.map +0 -1
- package/dist/helpers/stream.d.cts.map +0 -1
- package/dist/helpers/stream.d.mts.map +0 -1
- package/dist/index-BVVgDSdq.d.cts +0 -1
- package/dist/index-BVVgDSdq.d.mts +0 -1
package/dist/api/build.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core";
|
|
4
4
|
|
|
5
5
|
//#region src/api/build.d.ts
|
package/dist/api/clean.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-B6udgcnD.cjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-ZbJRDGpl.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 {
|
|
2
|
-
import { r as EngineSystemContext } from "../context-
|
|
1
|
+
import { i as EngineResolvedConfig } from "../config-DXxu0y4t.mjs";
|
|
2
|
+
import { r as EngineSystemContext } from "../context-C71mv_aw.mjs";
|
|
3
3
|
import { ExecutionContext } from "@powerlines/core/types/context";
|
|
4
4
|
|
|
5
5
|
//#region src/api/types.d.ts
|
package/dist/api.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { r as ExecutionApiParams } from "./index-QuLZgb8w.cjs";
|
|
2
|
+
import { ExecutionOptions } from "@powerlines/core";
|
|
3
|
+
|
|
4
4
|
//#region src/api.d.ts
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: (params: ExecutionApiParams<ExecutionOptions, string>) => Promise<void>;
|
|
6
6
|
export = _default;
|
|
7
7
|
//# sourceMappingURL=api.d.cts.map
|
package/dist/api.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/api.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/api.ts"],"mappings":";;;;cAkBsE,QAAA"}
|
package/dist/api.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { r as ExecutionApiParams } from "./index-CBobV6Wm.mjs";
|
|
2
|
+
import { ExecutionOptions } from "@powerlines/core";
|
|
3
|
+
|
|
4
4
|
//#region src/api.d.ts
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: (params: ExecutionApiParams<ExecutionOptions, string>) => Promise<void>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
|
8
8
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/api.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/api.ts"],"mappings":";;;;cAkBsE,QAAA"}
|
package/dist/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../src/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 { build } from \"./api/build\";\nimport { clean } from \"./api/clean\";\nimport { create } from \"./api/create\";\nimport { deploy } from \"./api/deploy\";\nimport { docs } from \"./api/docs\";\nimport { lint } from \"./api/lint\";\nimport { prepare } from \"./api/prepare\";\nimport { test } from \"./api/test\";\nimport { types } from \"./api/types\";\nimport { createApi } from \"./helpers/create-api\";\n\nexport default createApi({\n types,\n prepare,\n create,\n clean,\n lint,\n test,\n build,\n docs,\n deploy\n});\n"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../src/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 { ExecutionContext, ExecutionOptions } from \"@powerlines/core\";\nimport { build } from \"./api/build\";\nimport { clean } from \"./api/clean\";\nimport { create } from \"./api/create\";\nimport { deploy } from \"./api/deploy\";\nimport { docs } from \"./api/docs\";\nimport { lint } from \"./api/lint\";\nimport { prepare } from \"./api/prepare\";\nimport { test } from \"./api/test\";\nimport { types } from \"./api/types\";\nimport { createApi } from \"./helpers/create-api\";\nimport { EngineResolvedConfig, EngineSystemContext } from \"./types\";\n\nexport default createApi<\n ExecutionContext<EngineResolvedConfig, EngineSystemContext>,\n ExecutionOptions\n>({\n types,\n prepare,\n create,\n clean,\n lint,\n test,\n build,\n docs,\n deploy\n});\n"],"mappings":";;;;;;;;;;;;AA+BA,kBAAe,UAGb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC"}
|
|
@@ -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 {
|
|
@@ -172,6 +172,7 @@ type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id
|
|
|
172
172
|
*/
|
|
173
173
|
framework?: FrameworkOptions;
|
|
174
174
|
};
|
|
175
|
+
interface ApiExecutionOptions extends ExecutionOptions {}
|
|
175
176
|
interface EngineExecutionOptions extends ExecutionOptions {
|
|
176
177
|
/**
|
|
177
178
|
* The base URL for the dev server, which can be used by plugins to construct URLs for assets or API endpoints during development. This value is only relevant in "dev" mode and will be `undefined` in "build" mode.
|
|
@@ -181,6 +182,10 @@ interface EngineExecutionOptions extends ExecutionOptions {
|
|
|
181
182
|
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
182
183
|
*/
|
|
183
184
|
connection: ConnectionMeta;
|
|
185
|
+
/**
|
|
186
|
+
* The {@link MessagePort} used for communication between the execution host and the engine. This port will be used to send and receive messages, allowing the execution host to invoke API methods and return results to the engine.
|
|
187
|
+
*/
|
|
188
|
+
channel: MessagePort;
|
|
184
189
|
/**
|
|
185
190
|
* Options for configuring the WebSocket RPC channel used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the WebSocket connection, such as setting custom timeouts, retry strategies, or other options.
|
|
186
191
|
*/
|
|
@@ -200,5 +205,5 @@ interface EngineExecutionOptions extends ExecutionOptions {
|
|
|
200
205
|
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
201
206
|
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
202
207
|
//#endregion
|
|
203
|
-
export {
|
|
204
|
-
//# sourceMappingURL=config-
|
|
208
|
+
export { RpcPayloadMetadata as C, WrappedRpcFunction as D, WrapRpcFunctions as E, WrappedRpcFunctions as O, RpcPayloadEnvelop as S, WrapRpcFunction as T, RpcClientHost as _, RpcClientOptions as a, RpcFunction as b, InputRpcFunction as c, RpcClient as d, RpcClientCall as f, RpcClientFunctions as g, RpcClientEvents as h, EngineResolvedConfig as i, InputRpcFunctions as l, RpcClientCallOptional as m, EngineExecutionOptions as n, ExtractRpcFunction as o, RpcClientCallEvent as p, EngineOptions as r, ExtractRpcFunctions as s, ApiExecutionOptions as t, LogPayload as u, RpcClientRemoteFunctions as v, RpcServerFunctions as w, RpcFunctions as x, RpcContext as y };
|
|
209
|
+
//# sourceMappingURL=config-B6udgcnD.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-B6udgcnD.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;;AAAQ;EAPjB,WAAA;AAAA;AAAA,UAGe,iBAAA,mBAAoC,kBAAkB;EAO5C;AAA6B;AACxD;EAJE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,WAAA,IAAe,OAAA,UAAiB,YAAY;AAAA,KAC5C,YAAA,GAAe,MAAM,SAAS,WAAA;AAAA,KAE9B,gBAAA,IAAoB,OAA+B,EAAtB,iBAAiB;AAAA,KAC9C,iBAAA,GAAoB,MAAM,SAAS,gBAAA;AAAA,KAEnC,kBAAA,IACV,OAAA,EAAS,iBAAA,UACN,OAAO;AAAA,KACA,mBAAA,GAAsB,MAAM,SAAS,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,KA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tC,YAAA,EAAc,qBAAA;EA9GmB;;;EAmHjC,MAAA,EAAQ,aAAA;EAnH2D;;AAAS;EAwH5E,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;;AAAW;ECJT,IAAA;EDO8B;;;;;;ECC9B,YAAA,GAAe,YAAA;EDGA;AAAA;AAGnB;ECDI,SAAA,GAAY,gBAAA;AAAA;AAAA,UAGC,mBAAA,SAA4B,gBAAgB;AAAA,UAE5C,sBAAA,SAA+B,gBAAA;EDHxB;;;ECOtB,OAAA;EDLU;;;ECUV,UAAA,EAAY,cAAA;EDViD;AAC/D;;ECcE,OAAA,EAAS,WAAA;EDdqB;AAA+B;AAE/D;ECiBE,SAAA,GAAY,OAAA,CAAQ,mBAAA;;;;EAKpB,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EDrBhC;;AAAO;AACZ;;;EC6BE,YAAA,aAAyB,OAAA,CAAQ,eAAA;AAAA;AAAA,KAGvB,gBAAA,GAAmB,YAAY,CACzC,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 {
|
|
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 {
|
|
@@ -172,6 +172,7 @@ type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id
|
|
|
172
172
|
*/
|
|
173
173
|
framework?: FrameworkOptions;
|
|
174
174
|
};
|
|
175
|
+
interface ApiExecutionOptions extends ExecutionOptions {}
|
|
175
176
|
interface EngineExecutionOptions extends ExecutionOptions {
|
|
176
177
|
/**
|
|
177
178
|
* The base URL for the dev server, which can be used by plugins to construct URLs for assets or API endpoints during development. This value is only relevant in "dev" mode and will be `undefined` in "build" mode.
|
|
@@ -181,6 +182,10 @@ interface EngineExecutionOptions extends ExecutionOptions {
|
|
|
181
182
|
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
182
183
|
*/
|
|
183
184
|
connection: ConnectionMeta;
|
|
185
|
+
/**
|
|
186
|
+
* The {@link MessagePort} used for communication between the execution host and the engine. This port will be used to send and receive messages, allowing the execution host to invoke API methods and return results to the engine.
|
|
187
|
+
*/
|
|
188
|
+
channel: MessagePort;
|
|
184
189
|
/**
|
|
185
190
|
* Options for configuring the WebSocket RPC channel used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the WebSocket connection, such as setting custom timeouts, retry strategies, or other options.
|
|
186
191
|
*/
|
|
@@ -200,5 +205,5 @@ interface EngineExecutionOptions extends ExecutionOptions {
|
|
|
200
205
|
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
201
206
|
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
202
207
|
//#endregion
|
|
203
|
-
export {
|
|
204
|
-
//# sourceMappingURL=config-
|
|
208
|
+
export { RpcPayloadMetadata as C, WrappedRpcFunction as D, WrapRpcFunctions as E, WrappedRpcFunctions as O, RpcPayloadEnvelop as S, WrapRpcFunction as T, RpcClientHost as _, RpcClientOptions as a, RpcFunction as b, InputRpcFunction as c, RpcClient as d, RpcClientCall as f, RpcClientFunctions as g, RpcClientEvents as h, EngineResolvedConfig as i, InputRpcFunctions as l, RpcClientCallOptional as m, EngineExecutionOptions as n, ExtractRpcFunction as o, RpcClientCallEvent as p, EngineOptions as r, ExtractRpcFunctions as s, ApiExecutionOptions as t, LogPayload as u, RpcClientRemoteFunctions as v, RpcServerFunctions as w, RpcFunctions as x, RpcContext as y };
|
|
209
|
+
//# sourceMappingURL=config-DXxu0y4t.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-DXxu0y4t.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;;AAAQ;EAPjB,WAAA;AAAA;AAAA,UAGe,iBAAA,mBAAoC,kBAAkB;EAO5C;AAA6B;AACxD;EAJE,OAAA,EAAS,QAAA;AAAA;AAAA,KAGC,WAAA,IAAe,OAAA,UAAiB,YAAY;AAAA,KAC5C,YAAA,GAAe,MAAM,SAAS,WAAA;AAAA,KAE9B,gBAAA,IAAoB,OAA+B,EAAtB,iBAAiB;AAAA,KAC9C,iBAAA,GAAoB,MAAM,SAAS,gBAAA;AAAA,K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AAA"}
|
|
@@ -120,23 +120,23 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends _powerlines_
|
|
|
120
120
|
* @remarks
|
|
121
121
|
* This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.
|
|
122
122
|
*
|
|
123
|
-
* @param
|
|
123
|
+
* @param command - The path to the execution configuration to load and run, which can be used to specify different execution configurations for different commands or scenarios.
|
|
124
124
|
* @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.
|
|
125
125
|
*/
|
|
126
|
-
async loadExecutions(
|
|
126
|
+
async loadExecutions(command, inlineConfig) {
|
|
127
127
|
const root = (0, _powerlines_core_lib_config.resolveRoot)(this.cwd, inlineConfig.root, inlineConfig.configFile);
|
|
128
128
|
const config = await (0, _powerlines_core_lib_config.loadParsedConfig)(this.cwd, root, this.framework?.name, this.orgId, inlineConfig);
|
|
129
129
|
if (!config) throw new Error("Failed to load configuration");
|
|
130
130
|
const invocationId = (0, _stryke_unique_id_uuid.uuid)();
|
|
131
131
|
const executions = await Promise.all((0, _stryke_convert_to_array.toArray)(config.config).map(async (_, configIndex) => {
|
|
132
|
-
const executionId = (0,
|
|
132
|
+
const executionId = (0, _powerlines_core_plugin_utils.formatExecutionId)(config.config.name || inlineConfig.name || root, command, configIndex);
|
|
133
133
|
const options = {
|
|
134
134
|
cwd: this.cwd,
|
|
135
135
|
root,
|
|
136
136
|
framework: this.framework,
|
|
137
137
|
orgId: this.orgId,
|
|
138
138
|
...this.options,
|
|
139
|
-
command
|
|
139
|
+
command,
|
|
140
140
|
baseURL: this.#devtools.host.resolveOrigin(),
|
|
141
141
|
connection: this.connection,
|
|
142
142
|
configFile: config.configFile,
|
|
@@ -145,11 +145,11 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends _powerlines_
|
|
|
145
145
|
};
|
|
146
146
|
this.logger.debug({
|
|
147
147
|
meta: { category: "config" },
|
|
148
|
-
message: `Invoking ${
|
|
148
|
+
message: `Invoking ${command} with the following execution parameters: \n --- Options --- \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}\n --- Inline Config --- \n${(0, _powerlines_core_plugin_utils.formatConfig)(inlineConfig)}`
|
|
149
149
|
});
|
|
150
150
|
return {
|
|
151
151
|
invocationId,
|
|
152
|
-
|
|
152
|
+
command,
|
|
153
153
|
configFile: config,
|
|
154
154
|
options,
|
|
155
155
|
state: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PowerlinesEngineContext } from "../engine-context-
|
|
1
|
+
import { t as PowerlinesEngineContext } from "../engine-context-DDbpdZHC.cjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PowerlinesEngineContext } from "../engine-context-
|
|
1
|
+
import { t as PowerlinesEngineContext } from "../engine-context-CaPJFek0.mjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLogger, formatConfig, resolveLogLevel, withCustomLogger } from "@powerlines/core/plugin-utils";
|
|
1
|
+
import { createLogger, formatConfig, formatExecutionId, resolveLogLevel, withCustomLogger } from "@powerlines/core/plugin-utils";
|
|
2
2
|
import { toArray } from "@stryke/convert/to-array";
|
|
3
3
|
import { uuid } from "@stryke/unique-id/uuid";
|
|
4
4
|
import { createHostContext } from "devframe/node";
|
|
@@ -117,23 +117,23 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
|
|
|
117
117
|
* @remarks
|
|
118
118
|
* This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.
|
|
119
119
|
*
|
|
120
|
-
* @param
|
|
120
|
+
* @param command - The path to the execution configuration to load and run, which can be used to specify different execution configurations for different commands or scenarios.
|
|
121
121
|
* @param inlineConfig - Additional configuration options provided at runtime, which can override or supplement the options defined in the user configuration file.
|
|
122
122
|
*/
|
|
123
|
-
async loadExecutions(
|
|
123
|
+
async loadExecutions(command, inlineConfig) {
|
|
124
124
|
const root = resolveRoot(this.cwd, inlineConfig.root, inlineConfig.configFile);
|
|
125
125
|
const config = await loadParsedConfig(this.cwd, root, this.framework?.name, this.orgId, inlineConfig);
|
|
126
126
|
if (!config) throw new Error("Failed to load configuration");
|
|
127
127
|
const invocationId = uuid();
|
|
128
128
|
const executions = await Promise.all(toArray(config.config).map(async (_, configIndex) => {
|
|
129
|
-
const executionId =
|
|
129
|
+
const executionId = formatExecutionId(config.config.name || inlineConfig.name || root, command, configIndex);
|
|
130
130
|
const options = {
|
|
131
131
|
cwd: this.cwd,
|
|
132
132
|
root,
|
|
133
133
|
framework: this.framework,
|
|
134
134
|
orgId: this.orgId,
|
|
135
135
|
...this.options,
|
|
136
|
-
command
|
|
136
|
+
command,
|
|
137
137
|
baseURL: this.#devtools.host.resolveOrigin(),
|
|
138
138
|
connection: this.connection,
|
|
139
139
|
configFile: config.configFile,
|
|
@@ -142,11 +142,11 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
|
|
|
142
142
|
};
|
|
143
143
|
this.logger.debug({
|
|
144
144
|
meta: { category: "config" },
|
|
145
|
-
message: `Invoking ${
|
|
145
|
+
message: `Invoking ${command} with the following execution parameters: \n --- Options --- \n${formatConfig(options)}\n --- Inline Config --- \n${formatConfig(inlineConfig)}`
|
|
146
146
|
});
|
|
147
147
|
return {
|
|
148
148
|
invocationId,
|
|
149
|
-
|
|
149
|
+
command,
|
|
150
150
|
configFile: config,
|
|
151
151
|
options,
|
|
152
152
|
state: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-context.mjs","names":["#devtools","#logLevel","#executions"],"sources":["../../src/context/engine-context.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 FrameworkOptions,\n InlineConfig,\n LogFn,\n LoggerOptions,\n LogLevelResolvedConfig\n} from \"@powerlines/core\";\nimport { PowerlinesBaseContext } from \"@powerlines/core/context/base-context\";\nimport {\n getDefaultLogLevel,\n loadParsedConfig,\n resolveRoot\n} from \"@powerlines/core/lib/config\";\nimport {\n createLogger,\n formatConfig,\n resolveLogLevel,\n withCustomLogger\n} from \"@powerlines/core/plugin-utils\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { EnvPaths, getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport { createHostContext } from \"devframe/node\";\nimport {\n ConnectionMeta,\n DevToolsHost,\n DevToolsNodeContext\n} from \"devframe/types\";\nimport * as v from \"valibot\";\nimport { EngineOptions } from \"../types/config\";\nimport { EngineContext, EngineExecutionItem } from \"../types/context\";\n\nexport class PowerlinesEngineContext<TSystemContext = unknown>\n extends PowerlinesBaseContext<TSystemContext>\n implements EngineContext<TSystemContext>\n{\n #executions: EngineExecutionItem[] = [];\n\n #devtools!: DevToolsNodeContext;\n\n #logLevel!: LogLevelResolvedConfig;\n\n /**\n * Creates a new instance of the PowerlinesEngineContext class.\n *\n * @param options - The options to initialize the context with.\n * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.\n */\n public static async from<TSystemContext = unknown>(\n options: EngineOptions,\n host: DevToolsHost,\n connection: ConnectionMeta\n ): Promise<PowerlinesEngineContext<TSystemContext>> {\n const context = new PowerlinesEngineContext<TSystemContext>(\n options,\n connection\n );\n\n context.#devtools = await createHostContext({\n cwd: context.cwd,\n mode: \"dev\",\n host\n });\n await options.setup?.(context.#devtools);\n\n context.#devtools.rpc.register({\n name: \"powerlines:log\",\n type: \"event\",\n args: [\n v.object({\n meta: v.object({\n category: v.string(),\n name: v.string(),\n command: v.string(),\n hook: v.string(),\n plugin: v.string(),\n source: v.string()\n }),\n message: v.string()\n })\n ],\n setup: _ => ({\n handler: payload => {\n switch (payload.meta.type) {\n case \"error\":\n context.error(payload);\n break;\n case \"warn\":\n context.warn(payload);\n break;\n case \"info\":\n context.info(payload);\n break;\n case \"debug\":\n context.debug(payload);\n break;\n case \"trace\":\n context.trace(payload);\n break;\n default:\n context.info(payload);\n break;\n }\n }\n })\n });\n\n context.#logLevel = options.logLevel\n ? resolveLogLevel(options.logLevel)\n : await getDefaultLogLevel(context.cwd);\n\n return context;\n }\n\n public override createLogger(options: LoggerOptions = {}, logFn?: LogFn) {\n let logger = createLogger(\n \"engine\",\n {\n logLevel: this.#logLevel,\n ...options\n },\n logFn\n );\n if (this.options.customLogger) {\n logger = withCustomLogger(logger, this.options.customLogger);\n }\n return logger;\n }\n\n public get executions(): EngineExecutionItem[] {\n return this.#executions;\n }\n\n public get devtools(): DevToolsNodeContext {\n return this.#devtools;\n }\n\n public get envPaths(): EnvPaths {\n return getEnvPaths({\n orgId: kebabCase(this.orgId),\n appId: kebabCase(this.framework.name),\n workspaceRoot: this.cwd\n });\n }\n\n public get framework(): FrameworkOptions {\n return {\n name: \"powerlines\",\n orgId: \"storm-software\",\n ...this.options.framework\n };\n }\n\n public get orgId(): string {\n return this.framework.orgId;\n }\n\n /**\n * Creates a new Context instance.\n *\n * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.\n * @param connection - The connection metadata for the dev server.\n */\n protected constructor(\n public override options: EngineOptions,\n public connection: ConnectionMeta\n ) {\n super(options);\n }\n\n /**\n * Initialize the context with the provided configuration options\n *\n * @remarks\n * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.\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 */\n public async loadExecutions(\n method: string,\n inlineConfig: InlineConfig\n ): Promise<EngineExecutionItem[]> {\n const root = resolveRoot(\n this.cwd,\n inlineConfig.root,\n inlineConfig.configFile\n );\n\n const config = await loadParsedConfig(\n this.cwd,\n root,\n this.framework?.name,\n this.orgId,\n inlineConfig\n );\n if (!config) {\n throw new Error(\"Failed to load configuration\");\n }\n\n const invocationId = uuid();\n const executions = await Promise.all(\n toArray(config.config).map(async (_, configIndex) => {\n const executionId = uuid();\n const options = {\n cwd: this.cwd,\n root,\n framework: this.framework,\n orgId: this.orgId,\n ...this.options,\n command: method,\n baseURL: this.#devtools.host.resolveOrigin(),\n connection: this.connection,\n configFile: config.configFile!,\n executionId,\n configIndex\n };\n\n this.logger.debug({\n meta: { category: \"config\" },\n message: `Invoking ${method} with the following execution parameters: \\n --- Options --- \\n${formatConfig(\n options\n )}\\n --- Inline Config --- \\n${formatConfig(inlineConfig)}`\n });\n\n return {\n invocationId,\n method,\n configFile: config,\n options,\n state: {\n command: null,\n hook: null,\n plugin: null\n }\n };\n })\n );\n\n this.#executions = this.#executions.concat(executions);\n\n return executions;\n }\n\n /**\n * Complete an execution by removing it from the list of active executions based on the provided invocation ID and execution ID. This method is typically called when an execution has finished or has been terminated, allowing the context to clean up any resources associated with that execution and update its internal state accordingly.\n *\n * @param invocationId - The unique identifier for the invocation of the execution to be completed.\n * @param executionId - The unique identifier for the specific execution to be completed.\n */\n public completeExecution(invocationId: string, executionId: string) {\n this.#executions = this.#executions.filter(\n execution =>\n execution.options.executionId !== executionId ||\n execution.invocationId !== invocationId\n );\n }\n}\n"],"mappings":";;;;;;;;;;;AAmDA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CAiIoB;CACT;CAjIT,cAAqC,CAAC;CAEtC;CAEA;;;;;;;CAQA,aAAoB,KA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AsB,aAAqB;EAClE,KAAKA,cAAc,KAAKA,YAAY,QAClC,cACE,UAAU,QAAQ,gBAAgB,eAClC,UAAU,iBAAiB,YAC/B;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"engine-context.mjs","names":["#devtools","#logLevel","#executions"],"sources":["../../src/context/engine-context.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 FrameworkOptions,\n InlineConfig,\n LogFn,\n LoggerOptions,\n LogLevelResolvedConfig\n} from \"@powerlines/core\";\nimport { PowerlinesBaseContext } from \"@powerlines/core/context/base-context\";\nimport {\n getDefaultLogLevel,\n loadParsedConfig,\n resolveRoot\n} from \"@powerlines/core/lib/config\";\nimport {\n createLogger,\n formatConfig,\n formatExecutionId,\n resolveLogLevel,\n withCustomLogger\n} from \"@powerlines/core/plugin-utils\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { EnvPaths, getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport { createHostContext } from \"devframe/node\";\nimport {\n ConnectionMeta,\n DevToolsHost,\n DevToolsNodeContext\n} from \"devframe/types\";\nimport * as v from \"valibot\";\nimport { EngineOptions } from \"../types/config\";\nimport { EngineContext, EngineExecutionItem } from \"../types/context\";\n\nexport class PowerlinesEngineContext<TSystemContext = unknown>\n extends PowerlinesBaseContext<TSystemContext>\n implements EngineContext<TSystemContext>\n{\n #executions: EngineExecutionItem[] = [];\n\n #devtools!: DevToolsNodeContext;\n\n #logLevel!: LogLevelResolvedConfig;\n\n /**\n * Creates a new instance of the PowerlinesEngineContext class.\n *\n * @param options - The options to initialize the context with.\n * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.\n */\n public static async from<TSystemContext = unknown>(\n options: EngineOptions,\n host: DevToolsHost,\n connection: ConnectionMeta\n ): Promise<PowerlinesEngineContext<TSystemContext>> {\n const context = new PowerlinesEngineContext<TSystemContext>(\n options,\n connection\n );\n\n context.#devtools = await createHostContext({\n cwd: context.cwd,\n mode: \"dev\",\n host\n });\n await options.setup?.(context.#devtools);\n\n context.#devtools.rpc.register({\n name: \"powerlines:log\",\n type: \"event\",\n args: [\n v.object({\n meta: v.object({\n category: v.string(),\n name: v.string(),\n command: v.string(),\n hook: v.string(),\n plugin: v.string(),\n source: v.string()\n }),\n message: v.string()\n })\n ],\n setup: _ => ({\n handler: payload => {\n switch (payload.meta.type) {\n case \"error\":\n context.error(payload);\n break;\n case \"warn\":\n context.warn(payload);\n break;\n case \"info\":\n context.info(payload);\n break;\n case \"debug\":\n context.debug(payload);\n break;\n case \"trace\":\n context.trace(payload);\n break;\n default:\n context.info(payload);\n break;\n }\n }\n })\n });\n\n context.#logLevel = options.logLevel\n ? resolveLogLevel(options.logLevel)\n : await getDefaultLogLevel(context.cwd);\n\n return context;\n }\n\n public override createLogger(options: LoggerOptions = {}, logFn?: LogFn) {\n let logger = createLogger(\n \"engine\",\n {\n logLevel: this.#logLevel,\n ...options\n },\n logFn\n );\n if (this.options.customLogger) {\n logger = withCustomLogger(logger, this.options.customLogger);\n }\n return logger;\n }\n\n public get executions(): EngineExecutionItem[] {\n return this.#executions;\n }\n\n public get devtools(): DevToolsNodeContext {\n return this.#devtools;\n }\n\n public get envPaths(): EnvPaths {\n return getEnvPaths({\n orgId: kebabCase(this.orgId),\n appId: kebabCase(this.framework.name),\n workspaceRoot: this.cwd\n });\n }\n\n public get framework(): FrameworkOptions {\n return {\n name: \"powerlines\",\n orgId: \"storm-software\",\n ...this.options.framework\n };\n }\n\n public get orgId(): string {\n return this.framework.orgId;\n }\n\n /**\n * Creates a new Context instance.\n *\n * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.\n * @param connection - The connection metadata for the dev server.\n */\n protected constructor(\n public override options: EngineOptions,\n public connection: ConnectionMeta\n ) {\n super(options);\n }\n\n /**\n * Initialize the context with the provided configuration options\n *\n * @remarks\n * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.\n *\n * @param command - 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 */\n public async loadExecutions(\n command: string,\n inlineConfig: InlineConfig\n ): Promise<EngineExecutionItem[]> {\n const root = resolveRoot(\n this.cwd,\n inlineConfig.root,\n inlineConfig.configFile\n );\n\n const config = await loadParsedConfig(\n this.cwd,\n root,\n this.framework?.name,\n this.orgId,\n inlineConfig\n );\n if (!config) {\n throw new Error(\"Failed to load configuration\");\n }\n\n const invocationId = uuid();\n const executions = await Promise.all(\n toArray(config.config).map(async (_, configIndex) => {\n const executionId = formatExecutionId(\n config.config.name || inlineConfig.name || root,\n command,\n configIndex\n );\n\n const options = {\n cwd: this.cwd,\n root,\n framework: this.framework,\n orgId: this.orgId,\n ...this.options,\n command,\n baseURL: this.#devtools.host.resolveOrigin(),\n connection: this.connection,\n configFile: config.configFile!,\n executionId,\n configIndex\n };\n\n this.logger.debug({\n meta: { category: \"config\" },\n message: `Invoking ${command} with the following execution parameters: \\n --- Options --- \\n${formatConfig(\n options\n )}\\n --- Inline Config --- \\n${formatConfig(inlineConfig)}`\n });\n\n return {\n invocationId,\n command,\n configFile: config,\n options,\n state: {\n command: null,\n hook: null,\n plugin: null\n }\n };\n })\n );\n\n this.#executions = this.#executions.concat(executions);\n\n return executions;\n }\n\n /**\n * Complete an execution by removing it from the list of active executions based on the provided invocation ID and execution ID. This method is typically called when an execution has finished or has been terminated, allowing the context to clean up any resources associated with that execution and update its internal state accordingly.\n *\n * @param invocationId - The unique identifier for the invocation of the execution to be completed.\n * @param executionId - The unique identifier for the specific execution to be completed.\n */\n public completeExecution(invocationId: string, executionId: string) {\n this.#executions = this.#executions.filter(\n execution =>\n execution.options.executionId !== executionId ||\n execution.invocationId !== invocationId\n );\n }\n}\n"],"mappings":";;;;;;;;;;;AAoDA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CAiIoB;CACT;CAjIT,cAAqC,CAAC;CAEtC;CAEA;;;;;;;CAQA,aAAoB,KAClB,SACA,MACA,YACkD;EAClD,MAAM,UAAU,IAAI,wBAClB,SACA,UACF;EAEA,QAAQA,YAAY,MAAM,kBAAkB;GAC1C,KAAK,QAAQ;GACb,MAAM;GACN;EACF,CAAC;EACD,MAAM,QAAQ,QAAQ,QAAQA,SAAS;EAEvC,QAAQA,UAAU,IAAI,SAAS;GAC7B,MAAM;GACN,MAAM;GACN,MAAM,CACJ,EAAE,OAAO;IACP,MAAM,EAAE,OAAO;KACb,UAAU,EAAE,OAAO;KACnB,MAAM,EAAE,OAAO;KACf,SAAS,EAAE,OAAO;KAClB,MAAM,EAAE,OAAO;KACf,QAAQ,EAAE,OAAO;KACjB,QAAQ,EAAE,OAAO;IACnB,CAAC;IACD,SAAS,EAAE,OAAO;GACpB,CAAC,CACH;GACA,QAAO,OAAM,EACX,UAAS,YAAW;IAClB,QAAQ,QAAQ,KAAK,MAArB;KACE,KAAK;MACH,QAAQ,MAAM,OAAO;MACrB;KACF,KAAK;MACH,QAAQ,KAAK,OAAO;MACpB;KACF,KAAK;MACH,QAAQ,KAAK,OAAO;MACpB;KACF,KAAK;MACH,QAAQ,MAAM,OAAO;MACrB;KACF,KAAK;MACH,QAAQ,MAAM,OAAO;MACrB;KACF;MACE,QAAQ,KAAK,OAAO;MACpB;IACJ;GACF,EACF;EACF,CAAC;EAED,QAAQC,YAAY,QAAQ,WACxB,gBA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IACA,SAAS,KAAKA,UAAU,KAAK,cAAc;IAC3C,YAAY,KAAK;IACjB,YAAY,OAAO;IACnB;IACA;GACF;GAEA,KAAK,OAAO,MAAM;IAChB,MAAM,EAAE,UAAU,SAAS;IAC3B,SAAS,YAAY,QAAQ,iEAAiE,aAC5F,OACF,EAAE,6BAA6B,aAAa,YAAY;GAC1D,CAAC;GAED,OAAO;IACL;IACA;IACA,YAAY;IACZ;IACA,OAAO;KACL,SAAS;KACT,MAAM;KACN,QAAQ;IACV;GACF;EACF,CAAC,CACH;EAEA,KAAKE,cAAc,KAAKA,YAAY,OAAO,UAAU;EAErD,OAAO;CACT;;;;;;;CAQA,AAAO,kBAAkB,cAAsB,aAAqB;EAClE,KAAKA,cAAc,KAAKA,YAAY,QAClC,cACE,UAAU,QAAQ,gBAAgB,eAClC,UAAU,iBAAiB,YAC/B;CACF;AACF"}
|
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-DDbpdZHC.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-CaPJFek0.mjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as RpcClient, n as EngineExecutionOptions, r as EngineOptions } from "./config-DXxu0y4t.mjs";
|
|
2
2
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
3
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
4
|
|
|
@@ -81,13 +81,13 @@ interface EngineExecutionItem {
|
|
|
81
81
|
*/
|
|
82
82
|
invocationId: string;
|
|
83
83
|
/**
|
|
84
|
-
* The
|
|
84
|
+
* The command being executed, which can be one of the supported Powerlines execution API methods such as "build", "docs", or "deploy". This indicates the specific command or action that is being executed within the Powerlines engine.
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
command: string;
|
|
87
87
|
/**
|
|
88
88
|
* The options provided to the Powerlines process for this execution
|
|
89
89
|
*/
|
|
90
|
-
options: EngineExecutionOptions
|
|
90
|
+
options: Omit<EngineExecutionOptions, "channel">;
|
|
91
91
|
/**
|
|
92
92
|
* The parsed user configuration file provided to the Powerlines process before any resolution or merging
|
|
93
93
|
*/
|
|
@@ -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-C71mv_aw.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-C71mv_aw.d.mts","names":[],"sources":["../src/types/context.ts"],"mappings":";;;;;;AA0BA;;KAAY,kBAAA;;AAAkB;AAK9B;UAAiB,mBAAA;;;;EAIf,SAAA;EAUA;;;EALA,IAAA;EAWe;;;EANf,IAAA,EAAM,kBAAkB;AAAA;AAgB1B;;;AAAA,UAViB,0BAAA,SAAmC,mBAAmB;EAUtB;;;EAN/C,IAAI;AAAA;AAqBN;;;AAAA,UAfiB,uBAAA,SAAgC,mBAAmB;EAmB9D;AAMN;;EArBE,KAAA;EAyBS;;;EApBT,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAmB;EAwBpE;;;EApBA,IAAI;AAAA;;;;UAMW,cAAA;EAuCH;;;EAnCZ,OAAA,EAAS,0BAAA;EAoBT;;;EAfA,IAAA,EAAM,uBAAA;EAyBQ;;;EApBd,MAAA,EAAQ,yBAAA;AAAA;;AA8Ba;AASvB;UAjCiB,mBAAA;EAiCa;;;EA7B5B,YAAA;EAoCS;;;EA/BT,OAAA;EA2DgB;;;EAtDhB,OAAA,EAAS,IAAA,CAAK,sBAAA;EAsBZ;;;EAjBF,UAAA,EAAY,gBAAA;EAgBV;;;EAXF,KAAA,EAAO,cAAA;AAAA;;;;;;;UASQ,aAAA,mCAEb,WAAA,CAAY,cAAA,GACZ,IAAA,CAAK,QAAA,CAAS,aAAA;EAsBJ;;;EAlBZ,OAAA,EAAS,aAAA;EA4BP;;;EAvBF,UAAA,EAAY,cAAA;EAgCQ;;;AAAyC;AAG/D;;EA3BE,QAAA,EAAU,mBAAA;EA+BV;AAAc;;EA1Bd,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,SAAS;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as RpcClient, n as EngineExecutionOptions, r as EngineOptions } from "./config-B6udgcnD.cjs";
|
|
2
2
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
3
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
4
|
|
|
@@ -81,13 +81,13 @@ interface EngineExecutionItem {
|
|
|
81
81
|
*/
|
|
82
82
|
invocationId: string;
|
|
83
83
|
/**
|
|
84
|
-
* The
|
|
84
|
+
* The command being executed, which can be one of the supported Powerlines execution API methods such as "build", "docs", or "deploy". This indicates the specific command or action that is being executed within the Powerlines engine.
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
command: string;
|
|
87
87
|
/**
|
|
88
88
|
* The options provided to the Powerlines process for this execution
|
|
89
89
|
*/
|
|
90
|
-
options: EngineExecutionOptions
|
|
90
|
+
options: Omit<EngineExecutionOptions, "channel">;
|
|
91
91
|
/**
|
|
92
92
|
* The parsed user configuration file provided to the Powerlines process before any resolution or merging
|
|
93
93
|
*/
|
|
@@ -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-ZbJRDGpl.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-ZbJRDGpl.d.cts","names":[],"sources":["../src/types/context.ts"],"mappings":";;;;;;AA0BA;;KAAY,kBAAA;;AAAkB;AAK9B;UAAiB,mBAAA;;;;EAIf,SAAA;EAUA;;;EALA,IAAA;EAWe;;;EANf,IAAA,EAAM,kBAAkB;AAAA;AAgB1B;;;AAAA,UAViB,0BAAA,SAAmC,mBAAmB;EAUtB;;;EAN/C,IAAI;AAAA;AAqBN;;;AAAA,UAfiB,uBAAA,SAAgC,mBAAmB;EAmB9D;AAMN;;EArBE,KAAA;EAyBS;;;EApBT,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAmB;EAwBpE;;;EApBA,IAAI;AAAA;;;;UAMW,cAAA;EAuCH;;;EAnCZ,OAAA,EAAS,0BAAA;EAoBT;;;EAfA,IAAA,EAAM,uBAAA;EAyBQ;;;EApBd,MAAA,EAAQ,yBAAA;AAAA;;AA8Ba;AASvB;UAjCiB,mBAAA;EAiCa;;;EA7B5B,YAAA;EAoCS;;;EA/BT,OAAA;EA2DgB;;;EAtDhB,OAAA,EAAS,IAAA,CAAK,sBAAA;EAsBZ;;;EAjBF,UAAA,EAAY,gBAAA;EAgBV;;;EAXF,KAAA,EAAO,cAAA;AAAA;;;;;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