@powerlines/engine 0.49.26 → 0.49.27
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.d.cts +1 -1
- package/dist/context/engine-context.d.mts +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-CJLRZKhl.d.cts} +3 -3
- package/dist/context-CJLRZKhl.d.cts.map +1 -0
- package/dist/{context-DcXV6_GL.d.mts → context-CNYu12sa.d.mts} +3 -3
- package/dist/context-CNYu12sa.d.mts.map +1 -0
- package/dist/{engine-CwATBJKZ.cjs → engine-BKEDCOCb.cjs} +5 -3
- package/dist/{engine-BLp7JcAB.d.mts → engine-BdhpduRS.d.mts} +7 -7
- package/dist/engine-BdhpduRS.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-BJiH5JZe.d.cts} +3 -3
- package/dist/{engine-context-B8K6Jtkk.d.cts.map → engine-context-BJiH5JZe.d.cts.map} +1 -1
- package/dist/{engine-context-DKlA5Pgu.d.mts → engine-context-EdV-sOjq.d.mts} +3 -3
- package/dist/{engine-context-DKlA5Pgu.d.mts.map → engine-context-EdV-sOjq.d.mts.map} +1 -1
- package/dist/{engine-DFKgU8-G.d.cts → engine-qMKcp-AX.d.cts} +7 -7
- package/dist/engine-qMKcp-AX.d.cts.map +1 -0
- 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 +15 -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 +15 -11
- 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-BXQx2xGi.d.mts} +39 -15
- package/dist/index-BXQx2xGi.d.mts.map +1 -0
- package/dist/{api-DRcC7Ry-.d.mts → index-Bwnu1gvX.d.cts} +39 -15
- package/dist/index-Bwnu1gvX.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-CJLRZKhl.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-CNYu12sa.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-Bwnu1gvX.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-BXQx2xGi.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,KAC5C,OAAA,EAAS,iBAAA,CAAkB,UAAA,CAAW,SAAA,UACnC,UAAA,CAAW,SAAA,UAAmB,OAAA,YAAm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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,KAEnC,kBAAA,IACV,OAAA,EAAS,iBAAA,UACN,OAAO;AAAA,KACA,mBAAA,GAAsB,MAAM,SAAS,kBAAA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as PowerlinesEngineContext } from "../engine-context-BJiH5JZe.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-EdV-sOjq.mjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
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-BJiH5JZe.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-EdV-sOjq.mjs";
|
|
2
2
|
export { PowerlinesEngineContext };
|
|
@@ -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
|
|
|
@@ -87,7 +87,7 @@ interface EngineExecutionItem {
|
|
|
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-CJLRZKhl.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-CJLRZKhl.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,MAAA;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-DXxu0y4t.mjs";
|
|
2
2
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
3
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
4
|
|
|
@@ -87,7 +87,7 @@ interface EngineExecutionItem {
|
|
|
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-CNYu12sa.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-CNYu12sa.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,MAAA;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"}
|
|
@@ -296,9 +296,11 @@ var ExecutionApiWorker = class ExecutionApiWorker {
|
|
|
296
296
|
const { port1, port2 } = new node_worker_threads.MessageChannel();
|
|
297
297
|
const promise = this.#worker.run({
|
|
298
298
|
command,
|
|
299
|
-
options
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
options: {
|
|
300
|
+
...options,
|
|
301
|
+
channel: port2
|
|
302
|
+
},
|
|
303
|
+
inlineConfig
|
|
302
304
|
}, { transferList: [port2] });
|
|
303
305
|
let aborted = false;
|
|
304
306
|
const onActivityAbort = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { t as EngineContext } from "./context-
|
|
3
|
-
import {
|
|
4
|
-
import { t as PowerlinesEngineContext } from "./engine-context-
|
|
1
|
+
import { n as EngineExecutionOptions, r as EngineOptions } from "./config-DXxu0y4t.mjs";
|
|
2
|
+
import { t as EngineContext } from "./context-CNYu12sa.mjs";
|
|
3
|
+
import { i as ExecutionApiWorkerInterface, t as Engine } from "./index-BXQx2xGi.mjs";
|
|
4
|
+
import { t as PowerlinesEngineContext } from "./engine-context-EdV-sOjq.mjs";
|
|
5
5
|
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, Mode, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
6
6
|
|
|
7
7
|
//#region src/_internal/execution-api-worker.d.ts
|
|
@@ -51,14 +51,14 @@ declare class ExecutionApiWorker implements ExecutionApiWorkerInterface {
|
|
|
51
51
|
* @param options - The options for the worker, including exposed commands, timeout, and hooks for activity and restart.
|
|
52
52
|
*/
|
|
53
53
|
protected constructor(executionApiPath: string, options: ExecutionApiWorkerOptions);
|
|
54
|
-
execute(command: string, options: EngineExecutionOptions, inlineConfig: InlineConfig): Promise<void>;
|
|
54
|
+
execute(command: string, options: Omit<EngineExecutionOptions, "channel">, inlineConfig: InlineConfig): Promise<void>;
|
|
55
55
|
/**
|
|
56
56
|
* Closes the worker process, terminating it if it's still running. This method should be called when the worker is no longer needed, to free up system resources and ensure a clean shutdown. If the worker has already been terminated, this method will have no effect.
|
|
57
57
|
*/
|
|
58
58
|
finalize(): Promise<void>;
|
|
59
59
|
protected onHanging(): void;
|
|
60
60
|
protected onActivity(): void;
|
|
61
|
-
protected innerExecute(command: string, options: EngineExecutionOptions, inlineConfig: InlineConfig): Promise<void>;
|
|
61
|
+
protected innerExecute(command: string, options: Omit<EngineExecutionOptions, "channel">, inlineConfig: InlineConfig): Promise<void>;
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/engine.d.ts
|
|
@@ -196,4 +196,4 @@ declare function createContext(options: EngineOptions): Promise<PowerlinesEngine
|
|
|
196
196
|
declare function createEngine(options: EngineOptions, apiPath?: string): Promise<PowerlinesEngine>;
|
|
197
197
|
//#endregion
|
|
198
198
|
export { createContext as n, createEngine as r, PowerlinesEngine as t };
|
|
199
|
-
//# sourceMappingURL=engine-
|
|
199
|
+
//# sourceMappingURL=engine-BdhpduRS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-BdhpduRS.d.mts","names":[],"sources":["../src/_internal/execution-api-worker.ts","../src/engine.ts"],"mappings":";;;;;;;cAwCM,SAAA;AAAA,UA8DW,yBAAA;EA9DX;;;;AAAiD;EA8ErD,OAAA;EAhBwC;;;EAqBxC,cAAA;EAAA;;;EAKA,IAAA,GAAO,IAAA;EAUP;;;EALA,IAAA;EAQW;;;EAHX,OAAA,EAAS,aAAa;AAAA;AAAA,cAGX,kBAAA,YAA8B,2BAAA;EAAA;YAsE7B,gBAAA;EAAA,UACA,OAAA,EAAS,yBAAA;EAAA,cAxDP,cAAA,CAAA,GAAc,OAAA,QAAA,SAAA;EAAA,UASlB,qBAAA,CAAA;EAuWC;;;;;;;EAAA,OAxVS,IAAA,CAClB,OAAA,UACA,OAAA,EAAS,yBAAA,GAAyB,OAAA,CAAA,kBAAA;EAzCK;;;;;;EAAA,UAqEhC,WAAA,CACG,gBAAA,UACA,OAAA,EAAS,yBAAA;EAsTR,OAAA,CACX,OAAA,UACA,OAAA,EAAS,IAAA,CAAK,sBAAA,cACd,YAAA,EAAc,YAAA,GAAY,OAAA;EAjXd;;;EAoZD,QAAA,CAAA,GAAY,OAAA;EAAA,UAUf,SAAA,CAAA;EAAA,UAoBA,UAAA,CAAA;EAAA,UAUM,YAAA,CACd,O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AAA,CACpB,OAAA,EAAS,aAAA,EACT,OAAA,YAAkC,OAAA,CAAA,gBAAA"}
|
|
@@ -293,9 +293,11 @@ var ExecutionApiWorker = class ExecutionApiWorker {
|
|
|
293
293
|
const { port1, port2 } = new MessageChannel();
|
|
294
294
|
const promise = this.#worker.run({
|
|
295
295
|
command,
|
|
296
|
-
options
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
options: {
|
|
297
|
+
...options,
|
|
298
|
+
channel: port2
|
|
299
|
+
},
|
|
300
|
+
inlineConfig
|
|
299
301
|
}, { transferList: [port2] });
|
|
300
302
|
let aborted = false;
|
|
301
303
|
const onActivityAbort = () => {
|
|
@@ -562,4 +564,4 @@ async function createEngine(options, apiPath = "@powerlines/engine/api") {
|
|
|
562
564
|
|
|
563
565
|
//#endregion
|
|
564
566
|
export { createContext as n, createEngine as r, PowerlinesEngine as t };
|
|
565
|
-
//# sourceMappingURL=engine-
|
|
567
|
+
//# sourceMappingURL=engine-DRAFIm5M.mjs.map
|