@powerlines/engine 0.49.34 → 0.49.36
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/{engine-BKEDCOCb.cjs → _internal/execution-api-worker.cjs} +4 -277
- package/dist/_internal/execution-api-worker.d.cts +64 -0
- package/dist/_internal/execution-api-worker.d.cts.map +1 -0
- package/dist/_internal/execution-api-worker.d.mts +64 -0
- package/dist/_internal/execution-api-worker.d.mts.map +1 -0
- package/dist/{engine-DRAFIm5M.mjs → _internal/execution-api-worker.mjs} +3 -258
- package/dist/_internal/execution-api-worker.mjs.map +1 -0
- package/dist/{chunk-C_NdSu1c.cjs → _virtual/_rolldown/runtime.cjs} +1 -6
- package/dist/api/build.cjs +4 -4
- package/dist/api/build.d.cts +2 -2
- package/dist/api/build.d.cts.map +1 -1
- package/dist/api/build.d.mts +2 -2
- package/dist/api/build.d.mts.map +1 -1
- package/dist/api/build.mjs +2 -2
- package/dist/api/build.mjs.map +1 -1
- package/dist/api/clean.d.cts +2 -2
- package/dist/api/clean.d.mts +2 -2
- package/dist/api/create.cjs +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 +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/context/engine-context.cjs +2 -2
- package/dist/context/engine-context.d.cts +53 -2
- package/dist/context/engine-context.d.cts.map +1 -0
- package/dist/context/engine-context.d.mts +53 -2
- package/dist/context/engine-context.d.mts.map +1 -0
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/engine.cjs +261 -4
- package/dist/engine.d.cts +143 -2
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +143 -2
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +258 -2
- package/dist/engine.mjs.map +1 -0
- package/dist/helpers/create-api.d.cts +18 -2
- package/dist/helpers/create-api.d.cts.map +1 -0
- package/dist/helpers/create-api.d.mts +18 -2
- package/dist/helpers/create-api.d.mts.map +1 -0
- package/dist/helpers/finalize.d.cts +12 -2
- package/dist/helpers/finalize.d.cts.map +1 -0
- package/dist/helpers/finalize.d.mts +12 -2
- package/dist/helpers/finalize.d.mts.map +1 -0
- package/dist/helpers/index.d.cts +5 -4
- package/dist/helpers/index.d.mts +5 -4
- package/dist/helpers/rpc.d.cts +8 -2
- package/dist/helpers/rpc.d.cts.map +1 -0
- package/dist/helpers/rpc.d.mts +8 -2
- package/dist/helpers/rpc.d.mts.map +1 -0
- package/dist/helpers/stream.d.cts +45 -2
- package/dist/helpers/stream.d.cts.map +1 -0
- package/dist/helpers/stream.d.mts +45 -2
- package/dist/helpers/stream.d.mts.map +1 -0
- package/dist/helpers/type-checks.d.cts +19 -2
- package/dist/helpers/type-checks.d.cts.map +1 -0
- package/dist/helpers/type-checks.d.mts +19 -2
- package/dist/helpers/type-checks.d.mts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +6 -5
- package/dist/index.mjs +1 -1
- package/dist/{index-CBobV6Wm.d.mts → types/api.d.cts} +5 -31
- package/dist/types/api.d.cts.map +1 -0
- package/dist/{index-QuLZgb8w.d.cts → types/api.d.mts} +5 -31
- package/dist/types/api.d.mts.map +1 -0
- package/dist/types/config.d.cts +72 -0
- package/dist/types/config.d.cts.map +1 -0
- package/dist/types/config.d.mts +72 -0
- package/dist/types/config.d.mts.map +1 -0
- package/dist/{context-C71mv_aw.d.mts → types/context.d.cts} +4 -3
- package/dist/types/context.d.cts.map +1 -0
- package/dist/{context-ZbJRDGpl.d.cts → types/context.d.mts} +4 -3
- package/dist/types/context.d.mts.map +1 -0
- package/dist/types/index.d.cts +4 -0
- package/dist/types/index.d.mts +4 -0
- package/dist/{config-B6udgcnD.d.cts → types/rpc.d.cts} +7 -70
- package/dist/types/rpc.d.cts.map +1 -0
- package/dist/{config-DXxu0y4t.d.mts → types/rpc.d.mts} +7 -70
- package/dist/types/rpc.d.mts.map +1 -0
- package/package.json +7 -7
- package/dist/config-B6udgcnD.d.cts.map +0 -1
- package/dist/config-DXxu0y4t.d.mts.map +0 -1
- package/dist/context-C71mv_aw.d.mts.map +0 -1
- package/dist/context-ZbJRDGpl.d.cts.map +0 -1
- package/dist/engine-B5pbfMyg.d.cts +0 -199
- package/dist/engine-B5pbfMyg.d.cts.map +0 -1
- package/dist/engine-CeWEM0TT.d.mts +0 -199
- package/dist/engine-CeWEM0TT.d.mts.map +0 -1
- package/dist/engine-DRAFIm5M.mjs.map +0 -1
- package/dist/engine-context-CaPJFek0.d.mts +0 -53
- package/dist/engine-context-CaPJFek0.d.mts.map +0 -1
- package/dist/engine-context-DDbpdZHC.d.cts +0 -53
- package/dist/engine-context-DDbpdZHC.d.cts.map +0 -1
- package/dist/finalize-CuV0r3jg.d.cts +0 -12
- package/dist/finalize-CuV0r3jg.d.cts.map +0 -1
- package/dist/finalize-CuV0r3jg.d.mts +0 -12
- package/dist/finalize-CuV0r3jg.d.mts.map +0 -1
- package/dist/index-CBobV6Wm.d.mts.map +0 -1
- package/dist/index-QuLZgb8w.d.cts.map +0 -1
- package/dist/rpc-5MpqPBPa.d.cts +0 -7
- package/dist/rpc-5MpqPBPa.d.cts.map +0 -1
- package/dist/rpc-BvVZXS5K.d.mts +0 -7
- package/dist/rpc-BvVZXS5K.d.mts.map +0 -1
- package/dist/stream-B9jffNbk.d.cts +0 -45
- package/dist/stream-B9jffNbk.d.cts.map +0 -1
- package/dist/stream-B9jffNbk.d.mts +0 -45
- package/dist/stream-B9jffNbk.d.mts.map +0 -1
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Duplex, DuplexOptions, Readable, ReadableOptions, Writable, WritableOptions } from "node:stream";
|
|
2
|
+
import { MessagePort } from "node:worker_threads";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/stream.d.ts
|
|
5
|
+
declare const kPort: unique symbol;
|
|
6
|
+
interface WritevChunk {
|
|
7
|
+
chunk: unknown;
|
|
8
|
+
encoding: BufferEncoding;
|
|
9
|
+
}
|
|
10
|
+
declare class MessagePortWritable extends Writable {
|
|
11
|
+
private [kPort];
|
|
12
|
+
constructor(port: MessagePort, options?: WritableOptions);
|
|
13
|
+
_write(chunk: unknown, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
14
|
+
_writev(data: WritevChunk[], callback: (error?: Error | null) => void): void;
|
|
15
|
+
_final(callback: (error?: Error | null) => void): void;
|
|
16
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
17
|
+
unref(): this;
|
|
18
|
+
ref(): this;
|
|
19
|
+
}
|
|
20
|
+
declare class MessagePortReadable extends Readable {
|
|
21
|
+
private [kPort];
|
|
22
|
+
constructor(port: MessagePort, options?: ReadableOptions);
|
|
23
|
+
_read(_size: number): void;
|
|
24
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
25
|
+
unref(): this;
|
|
26
|
+
ref(): this;
|
|
27
|
+
}
|
|
28
|
+
interface MessagePortDuplexOptions extends DuplexOptions {
|
|
29
|
+
onActivityAbort?: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare class MessagePortDuplex extends Duplex {
|
|
32
|
+
private [kPort];
|
|
33
|
+
private _activityAbortHandler?;
|
|
34
|
+
constructor(port: MessagePort, options?: MessagePortDuplexOptions);
|
|
35
|
+
_read(_size: number): void;
|
|
36
|
+
_write(chunk: unknown, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
37
|
+
_writev(data: WritevChunk[], callback: (error?: Error | null) => void): void;
|
|
38
|
+
_final(callback: (error?: Error | null) => void): void;
|
|
39
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
40
|
+
unref(): this;
|
|
41
|
+
ref(): this;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { MessagePortDuplex, MessagePortDuplexOptions, MessagePortReadable, MessagePortWritable };
|
|
45
|
+
//# sourceMappingURL=stream.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.mts","names":[],"sources":["../../src/helpers/stream.ts"],"mappings":";;;;cA0BM,KAAA;AAAA,UAMI,WAAA;EACR,KAAA;EACA,QAAA,EAAU,cAAc;AAAA;AAAA,cAeb,mBAAA,SAA4B,QAAA;EAAA,SAC9B,KAAA;cAEU,IAAA,EAAM,WAAA,EAAa,OAAA,GAAU,eAAA;EAKhC,MAAA,CACd,KAAA,WACA,SAAA,EAAW,cAAA,EACX,QAAA,GAAW,KAAA,GAAQ,KAAA;EAOL,OAAA,CACd,IAAA,EAAM,WAAA,IACN,QAAA,GAAW,KAAA,GAAQ,KAAA;EAWL,MAAA,CAAO,QAAA,GAAW,KAAA,GAAQ,KAAA;EAK1B,QAAA,CACd,KAAA,EAAO,KAAA,SACP,QAAA,GAAW,KAAA,GAAQ,KAAA;EAKd,KAAA;EAKA,GAAA;AAAA;AAAA,cAMI,mBAAA,SAA4B,QAAA;EAAA,SAC9B,KAAA;cAEU,IAAA,EAAM,WAAA,EAAa,OAAA,GAAU,eAAA;EAQhC,KAAA,CAAM,KAAA;EAIN,QAAA,CACd,KAAA,EAAO,KAAA,SACP,QAAA,GAAW,KAAA,GAAQ,KAAA;EAQd,KAAA;EAKA,GAAA;AAAA;AAAA,UAMQ,wBAAA,SAAiC,aAAa;EAC7D,eAAe;AAAA;AAAA,cAGJ,iBAAA,SAA0B,MAAA;EAAA,SAC5B,KAAA;EAAA,QAED,qBAAA;cAEW,IAAA,EAAM,WAAA,EAAa,OAAA,GAAU,wBAAA;EAUhC,KAAA,CAAM,KAAA;EAIN,MAAA,CACd,KAAA,WACA,SAAA,EAAW,cAAA,EACX,QAAA,GAAW,KAAA,GAAQ,KAAA;EAUL,OAAA,CACd,IAAA,EAAM,WAAA,IACN,QAAA,GAAW,KAAA,GAAQ,KAAA;EAWL,MAAA,CAAO,QAAA,GAAW,KAAA,GAAQ,KAAA;EAK1B,QAAA,CACd,KAAA,EAAO,KAAA,SACP,QAAA,GAAW,KAAA,GAAQ,KAAA;EAQd,KAAA;EAKA,GAAA;AAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ApiExecutionOptions, EngineExecutionOptions } from "../types/config.cjs";
|
|
2
|
+
//#region src/helpers/type-checks.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Type guard to check if the provided options are EngineExecutionOptions. This is determined by checking for the presence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
5
|
+
*
|
|
6
|
+
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
7
|
+
* @returns True if the options are EngineExecutionOptions, false otherwise.
|
|
8
|
+
*/
|
|
9
|
+
declare function isEngineExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is EngineExecutionOptions;
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if the provided options are ApiExecutionOptions. This is determined by checking for the absence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
14
|
+
* @returns True if the options are ApiExecutionOptions, false otherwise.
|
|
15
|
+
*/
|
|
16
|
+
declare function isApiExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is ApiExecutionOptions;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { isApiExecutionOptions, isEngineExecutionOptions };
|
|
19
|
+
//# sourceMappingURL=type-checks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-checks.d.cts","names":[],"sources":["../../src/helpers/type-checks.ts"],"mappings":";;;;;AA0BA;;;iBAAgB,wBAAA,CACd,OAAA,EAAS,mBAAA,GAAsB,sBAAA,GAC9B,OAAA,IAAW,sBAAA;;;;;;;iBAUE,qBAAA,CACd,OAAA,EAAS,mBAAA,GAAsB,sBAAA,GAC9B,OAAA,IAAW,mBAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ApiExecutionOptions, EngineExecutionOptions } from "../types/config.mjs";
|
|
2
|
+
//#region src/helpers/type-checks.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Type guard to check if the provided options are EngineExecutionOptions. This is determined by checking for the presence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
5
|
+
*
|
|
6
|
+
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
7
|
+
* @returns True if the options are EngineExecutionOptions, false otherwise.
|
|
8
|
+
*/
|
|
9
|
+
declare function isEngineExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is EngineExecutionOptions;
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if the provided options are ApiExecutionOptions. This is determined by checking for the absence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
14
|
+
* @returns True if the options are ApiExecutionOptions, false otherwise.
|
|
15
|
+
*/
|
|
16
|
+
declare function isApiExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is ApiExecutionOptions;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { isApiExecutionOptions, isEngineExecutionOptions };
|
|
19
|
+
//# sourceMappingURL=type-checks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-checks.d.mts","names":[],"sources":["../../src/helpers/type-checks.ts"],"mappings":";;;;;AA0BA;;;iBAAgB,wBAAA,CACd,OAAA,EAAS,mBAAA,GAAsB,sBAAA,GAC9B,OAAA,IAAW,sBAAA;;;;;;;iBAUE,qBAAA,CACd,OAAA,EAAS,mBAAA,GAAsB,sBAAA,GAC9B,OAAA,IAAW,mBAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_engine = require('./engine-BKEDCOCb.cjs');
|
|
3
2
|
const require_context_engine_context = require('./context/engine-context.cjs');
|
|
3
|
+
const require_engine = require('./engine.cjs');
|
|
4
4
|
require('./context/index.cjs');
|
|
5
5
|
|
|
6
6
|
exports.PowerlinesEngine = require_engine.PowerlinesEngine;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ExtractRpcFunction, ExtractRpcFunctions, InputRpcFunction, InputRpcFunctions, LogPayload, RpcClient, RpcClientCall, RpcClientCallEvent, RpcClientCallOptional, RpcClientEvents, RpcClientFunctions, RpcClientHost, RpcClientRemoteFunctions, RpcContext, RpcFunction, RpcFunctions, RpcPayloadEnvelop, RpcPayloadMetadata, RpcServerFunctions, WrapRpcFunction, WrapRpcFunctions, WrappedRpcFunction, WrappedRpcFunctions } from "./types/rpc.cjs";
|
|
2
|
+
import { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions } from "./types/config.cjs";
|
|
3
|
+
import { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState } from "./types/context.cjs";
|
|
4
|
+
import { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface } from "./types/api.cjs";
|
|
5
|
+
import { PowerlinesEngineContext } from "./context/engine-context.cjs";
|
|
6
|
+
import { PowerlinesEngine, createContext, createEngine } from "./engine.cjs";
|
|
6
7
|
export { type ApiExecutionOptions, type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionApi, type ExecutionApiParams, type ExecutionApiWorkerInterface, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ExtractRpcFunction, ExtractRpcFunctions, InputRpcFunction, InputRpcFunctions, LogPayload, RpcClient, RpcClientCall, RpcClientCallEvent, RpcClientCallOptional, RpcClientEvents, RpcClientFunctions, RpcClientHost, RpcClientRemoteFunctions, RpcContext, RpcFunction, RpcFunctions, RpcPayloadEnvelop, RpcPayloadMetadata, RpcServerFunctions, WrapRpcFunction, WrapRpcFunctions, WrappedRpcFunction, WrappedRpcFunctions } from "./types/rpc.mjs";
|
|
2
|
+
import { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions } from "./types/config.mjs";
|
|
3
|
+
import { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState } from "./types/context.mjs";
|
|
4
|
+
import { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface } from "./types/api.mjs";
|
|
5
|
+
import { PowerlinesEngineContext } from "./context/engine-context.mjs";
|
|
6
|
+
import { PowerlinesEngine, createContext, createEngine } from "./engine.mjs";
|
|
6
7
|
export { type ApiExecutionOptions, type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionApi, type ExecutionApiParams, type ExecutionApiWorkerInterface, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type RpcClient, type RpcClientCall, type RpcClientCallEvent, type RpcClientCallOptional, type RpcClientEvents, type RpcClientFunctions, type RpcClientHost, type RpcClientOptions, type RpcClientRemoteFunctions, type RpcContext, type RpcFunction, type RpcFunctions, type RpcPayloadEnvelop, type RpcPayloadMetadata, type RpcServerFunctions, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createContext, r as createEngine, t as PowerlinesEngine } from "./engine-DRAFIm5M.mjs";
|
|
2
1
|
import { PowerlinesEngineContext } from "./context/engine-context.mjs";
|
|
2
|
+
import { PowerlinesEngine, createContext, createEngine } from "./engine.mjs";
|
|
3
3
|
import "./context/index.mjs";
|
|
4
4
|
|
|
5
5
|
export { PowerlinesEngine, PowerlinesEngineContext, createContext, createEngine };
|
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { EngineExecutionOptions, EngineResolvedConfig } from "./config.cjs";
|
|
2
|
+
import { EngineContext, EngineSystemContext } from "./context.cjs";
|
|
3
|
+
import { createApi } from "../helpers/create-api.cjs";
|
|
3
4
|
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, ExecutionContext, ExecutionOptions, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
4
|
-
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
5
5
|
|
|
6
|
-
//#region src/helpers/create-api.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
|
|
9
|
-
*
|
|
10
|
-
* @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
|
|
11
|
-
* @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
|
|
12
|
-
* @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
|
|
13
|
-
*/
|
|
14
|
-
declare function createApi<TContext extends ExecutionContext<EngineResolvedConfig, EngineSystemContext> = ExecutionContext<EngineResolvedConfig, EngineSystemContext>, TOptions extends ExecutionOptions = ExecutionOptions, THandlers extends Record<string, (context: TContext) => Promise<void>> = Record<string, (context: TContext) => Promise<void>>>(handlers: THandlers, inlineConfig?: DeepPartial<InlineConfig> | ((prev: InlineConfig) => MaybePromise<InlineConfig>)): (params: ExecutionApiParams<TOptions, keyof THandlers & string>) => Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/helpers/type-checks.d.ts
|
|
17
|
-
/**
|
|
18
|
-
* Type guard to check if the provided options are EngineExecutionOptions. This is determined by checking for the presence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
19
|
-
*
|
|
20
|
-
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
21
|
-
* @returns True if the options are EngineExecutionOptions, false otherwise.
|
|
22
|
-
*/
|
|
23
|
-
declare function isEngineExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is EngineExecutionOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Type guard to check if the provided options are ApiExecutionOptions. This is determined by checking for the absence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
26
|
-
*
|
|
27
|
-
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
28
|
-
* @returns True if the options are ApiExecutionOptions, false otherwise.
|
|
29
|
-
*/
|
|
30
|
-
declare function isApiExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is ApiExecutionOptions;
|
|
31
|
-
//#endregion
|
|
32
6
|
//#region src/types/api.d.ts
|
|
33
7
|
/**
|
|
34
8
|
* The Powerlines Base API Interface
|
|
@@ -158,5 +132,5 @@ interface Engine extends ExecutionInterface {
|
|
|
158
132
|
}
|
|
159
133
|
type ExecutionApi = ReturnType<typeof createApi<ExecutionContext<EngineResolvedConfig, EngineSystemContext>, ExecutionOptions>>;
|
|
160
134
|
//#endregion
|
|
161
|
-
export {
|
|
162
|
-
//# sourceMappingURL=
|
|
135
|
+
export { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface };
|
|
136
|
+
//# sourceMappingURL=api.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.cts","names":[],"sources":["../../src/types/api.ts"],"mappings":";;;;;;;;;AA0CA;;;UAAiB,kBAAA;EASiC;;;;;;;;EAAhD,OAAA,GAAU,YAAA,EAAc,mBAAA,KAAwB,OAAA;EAgD3B;;;;;;;;EAtCrB,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA6ErB;;;;;;;;;EAlEvB,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAA9C;;;;;;;;;EAWA,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAQrC;;;;;;EAAP,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAmBpB;;;;;;EAXtB,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EA6B1C;;;;;;;AAUuB;AAGzB;EA/BE,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA+BX;;;;;;EAvBjC,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAwChB;;;;;;;;EA9B1B,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EA8B9C;;;AAA0B;AAG5B;;;;EAvBE,QAAA,QAAgB,OAAA;AAAA;AAAA,UAGD,kBAAA,kBACE,gBAAA,GAAmB,gBAAA;EAyBb;;;EAnBvB,OAAA,EAAS,QAAA;EAgBE;;;EAXX,OAAA,EAAS,QAAA;EAaJ;;;EARL,YAAA,EAAc,YAAA;AAAA;AAAA,UAGC,2BAAA;EACf,OAAA,GACE,OAAA,UACA,OAAA,EAAS,sBAAA,EACT,YAAA,EAAc,YAAA,KACX,OAAA;EACL,QAAA,QAAgB,OAAA;AAAA;;;;UAMD,MAAA,SAAe,kBAAA;EAAA;;;EAI9B,OAAA,EAAS,aAAA;EAKJ;;AAA2B;EAAhC,GAAA,EAAK,2BAAA;AAAA;AAAA,KAGK,YAAA,GAAe,UAAA,QAClB,SAAA,CACL,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,GACvC,gBAAA"}
|
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { EngineExecutionOptions, EngineResolvedConfig } from "./config.mjs";
|
|
2
|
+
import { EngineContext, EngineSystemContext } from "./context.mjs";
|
|
3
|
+
import { createApi } from "../helpers/create-api.mjs";
|
|
3
4
|
import { BuildInlineConfig, CleanInlineConfig, CreateInlineConfig, DeployInlineConfig, DocsInlineConfig, ExecutionContext, ExecutionOptions, InlineConfig, LintInlineConfig, PrepareInlineConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
4
|
-
import { DeepPartial, MaybePromise } from "@stryke/types/base";
|
|
5
5
|
|
|
6
|
-
//#region src/helpers/create-api.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Creates an execution API with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
|
|
9
|
-
*
|
|
10
|
-
* @param handlers - An object where keys are command names and values are functions that take an execution context and return a promise.
|
|
11
|
-
* @param inlineConfig - An optional partial inline configuration object that will be merged with the context's options when creating the execution context for each command.
|
|
12
|
-
* @returns A function that can be used as an execution API handler, which takes execution parameters and invokes the appropriate command handler with a properly constructed execution context.
|
|
13
|
-
*/
|
|
14
|
-
declare function createApi<TContext extends ExecutionContext<EngineResolvedConfig, EngineSystemContext> = ExecutionContext<EngineResolvedConfig, EngineSystemContext>, TOptions extends ExecutionOptions = ExecutionOptions, THandlers extends Record<string, (context: TContext) => Promise<void>> = Record<string, (context: TContext) => Promise<void>>>(handlers: THandlers, inlineConfig?: DeepPartial<InlineConfig> | ((prev: InlineConfig) => MaybePromise<InlineConfig>)): (params: ExecutionApiParams<TOptions, keyof THandlers & string>) => Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/helpers/type-checks.d.ts
|
|
17
|
-
/**
|
|
18
|
-
* Type guard to check if the provided options are EngineExecutionOptions. This is determined by checking for the presence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
19
|
-
*
|
|
20
|
-
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
21
|
-
* @returns True if the options are EngineExecutionOptions, false otherwise.
|
|
22
|
-
*/
|
|
23
|
-
declare function isEngineExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is EngineExecutionOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Type guard to check if the provided options are ApiExecutionOptions. This is determined by checking for the absence of the "channel" property, which is specific to EngineExecutionOptions and not present in ApiExecutionOptions.
|
|
26
|
-
*
|
|
27
|
-
* @param options - The execution options to check, which can be either ApiExecutionOptions or EngineExecutionOptions.
|
|
28
|
-
* @returns True if the options are ApiExecutionOptions, false otherwise.
|
|
29
|
-
*/
|
|
30
|
-
declare function isApiExecutionOptions(options: ApiExecutionOptions | EngineExecutionOptions): options is ApiExecutionOptions;
|
|
31
|
-
//#endregion
|
|
32
6
|
//#region src/types/api.d.ts
|
|
33
7
|
/**
|
|
34
8
|
* The Powerlines Base API Interface
|
|
@@ -158,5 +132,5 @@ interface Engine extends ExecutionInterface {
|
|
|
158
132
|
}
|
|
159
133
|
type ExecutionApi = ReturnType<typeof createApi<ExecutionContext<EngineResolvedConfig, EngineSystemContext>, ExecutionOptions>>;
|
|
160
134
|
//#endregion
|
|
161
|
-
export {
|
|
162
|
-
//# sourceMappingURL=
|
|
135
|
+
export { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface };
|
|
136
|
+
//# sourceMappingURL=api.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../../src/types/api.ts"],"mappings":";;;;;;;;;AA0CA;;;UAAiB,kBAAA;EASiC;;;;;;;;EAAhD,OAAA,GAAU,YAAA,EAAc,mBAAA,KAAwB,OAAA;EAgD3B;;;;;;;;EAtCrB,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA6ErB;;;;;;;;;EAlEvB,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAA9C;;;;;;;;;EAWA,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAQrC;;;;;;EAAP,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAmBpB;;;;;;EAXtB,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EA6B1C;;;;;;;AAUuB;AAGzB;EA/BE,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA+BX;;;;;;EAvBjC,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAwChB;;;;;;;;EA9B1B,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EA8B9C;;;AAA0B;AAG5B;;;;EAvBE,QAAA,QAAgB,OAAA;AAAA;AAAA,UAGD,kBAAA,kBACE,gBAAA,GAAmB,gBAAA;EAyBb;;;EAnBvB,OAAA,EAAS,QAAA;EAgBE;;;EAXX,OAAA,EAAS,QAAA;EAaJ;;;EARL,YAAA,EAAc,YAAA;AAAA;AAAA,UAGC,2BAAA;EACf,OAAA,GACE,OAAA,UACA,OAAA,EAAS,sBAAA,EACT,YAAA,EAAc,YAAA,KACX,OAAA;EACL,QAAA,QAAgB,OAAA;AAAA;;;;UAMD,MAAA,SAAe,kBAAA;EAAA;;;EAI9B,OAAA,EAAS,aAAA;EAKJ;;AAA2B;EAAhC,GAAA,EAAK,2BAAA;AAAA;AAAA,KAGK,YAAA,GAAe,UAAA,QAClB,SAAA,CACL,gBAAA,CAAiB,oBAAA,EAAsB,mBAAA,GACvC,gBAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { RpcClientFunctions, RpcServerFunctions } from "./rpc.cjs";
|
|
2
|
+
import { CustomLogger, ExecutionOptions, FrameworkOptions, Options, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
import { PartialKeys, RequiredKeys } from "@stryke/types/base";
|
|
4
|
+
import { BirpcOptions } from "birpc";
|
|
5
|
+
import { RpcCacheOptions } from "devframe/rpc";
|
|
6
|
+
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
7
|
+
import { ConnectionMeta, DevframeDefinition } from "devframe/types";
|
|
8
|
+
|
|
9
|
+
//#region src/types/config.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* The options required to start the Powerlines engine.
|
|
12
|
+
*/
|
|
13
|
+
type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id" | "basePath"> & Options & {
|
|
14
|
+
/**
|
|
15
|
+
* The host URL for the engine's WebSocket server, which is used for communication between the engine and the various hosts (e.g., dev server, CLI, etc.) that interact with it. This value is required for the engine to function properly, as it allows the engine to establish a WebSocket connection and facilitate communication with other components of the system.
|
|
16
|
+
*/
|
|
17
|
+
host?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The port number to use for the websocket connection between the engine and the various hosts.
|
|
20
|
+
*/
|
|
21
|
+
port?: number;
|
|
22
|
+
/**
|
|
23
|
+
* An optional root directory for the engine to use when resolving paths and loading configuration files. This value can be used to specify a custom root directory for the engine, which can be useful in cases where the default behavior of using the current working directory is not desirable. If this option is not provided, the engine will use the current working directory as the root directory by default.
|
|
24
|
+
*/
|
|
25
|
+
root?: string;
|
|
26
|
+
/**
|
|
27
|
+
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Providing a custom logger allows you to integrate Powerlines logging with your own logging system or to customize the logging behavior, such as formatting log messages differently or sending logs to an external service. If a custom logger is not provided, Powerlines will use its default logger implementation.
|
|
31
|
+
*/
|
|
32
|
+
customLogger?: CustomLogger;
|
|
33
|
+
/**
|
|
34
|
+
* The framework for which the engine is being used, which can be used by plugins to customize their behavior based on the specific framework being targeted. This value is optional and can be set to `undefined` if not applicable, but providing it allows plugins to make informed decisions about how to handle certain tasks or configurations based on the framework being used.
|
|
35
|
+
*/
|
|
36
|
+
framework?: FrameworkOptions;
|
|
37
|
+
};
|
|
38
|
+
interface ApiExecutionOptions extends ExecutionOptions {}
|
|
39
|
+
interface EngineExecutionOptions extends ExecutionOptions {
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
*/
|
|
43
|
+
baseURL: string;
|
|
44
|
+
/**
|
|
45
|
+
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
46
|
+
*/
|
|
47
|
+
connection: ConnectionMeta;
|
|
48
|
+
/**
|
|
49
|
+
* 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.
|
|
50
|
+
*/
|
|
51
|
+
channel: MessagePort;
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
*/
|
|
55
|
+
wsOptions?: Partial<WsRpcChannelOptions>;
|
|
56
|
+
/**
|
|
57
|
+
* Options for configuring the RPC client used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the RPC client, such as setting custom timeouts, retry strategies, or other options.
|
|
58
|
+
*/
|
|
59
|
+
rpcOptions?: Partial<BirpcOptions<RpcServerFunctions, RpcClientFunctions, boolean>>;
|
|
60
|
+
/**
|
|
61
|
+
* Options for configuring the RPC cache used for caching RPC responses between the dev server and the client, which can be used by plugins to customize the behavior of the RPC cache, such as setting custom cache keys, expiration times, or other options.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This option can be set to `true` to enable caching with default options, or it can be set to a configuration object that allows for fine-grained control over the caching behavior.
|
|
65
|
+
*/
|
|
66
|
+
cacheOptions?: boolean | Partial<RpcCacheOptions>;
|
|
67
|
+
}
|
|
68
|
+
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
69
|
+
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions };
|
|
72
|
+
//# sourceMappingURL=config.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;;;;;;;AAoCA;KAAY,aAAA,GAAgB,IAAA,CAC1B,WAAA,CAAY,kBAAA,0CAGZ,OAAA;;;;EAIE,IAAA;EAJF;;;EASE,IAAA;EAkB4B;;;EAb5B,IAAA;EAdF;;;;;;EAsBE,YAAA,GAAe,YAAA;EAKH;;AAAgB;EAA5B,SAAA,GAAY,gBAAA;AAAA;AAAA,UAGC,mBAAA,SAA4B,gBAAgB;AAAA,UAE5C,sBAAA,SAA+B,gBAAA;EAA/B;;;EAIf,OAAA;EAUS;;;EALT,UAAA,EAAY,cAAA;EAgBuB;;;EAXnC,OAAA,EAAS,WAAA;EAoBgB;;;EAfzB,SAAA,GAAY,OAAA,CAAQ,mBAAA;EAnB0B;;;EAwB9C,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EAXnC;;;;;;EAoBA,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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { RpcClientFunctions, RpcServerFunctions } from "./rpc.mjs";
|
|
2
|
+
import { CustomLogger, ExecutionOptions, FrameworkOptions, Options, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
import { RpcCacheOptions } from "devframe/rpc";
|
|
4
|
+
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
5
|
+
import { PartialKeys, RequiredKeys } from "@stryke/types/base";
|
|
6
|
+
import { BirpcOptions } from "birpc";
|
|
7
|
+
import { ConnectionMeta, DevframeDefinition } from "devframe/types";
|
|
8
|
+
|
|
9
|
+
//#region src/types/config.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* The options required to start the Powerlines engine.
|
|
12
|
+
*/
|
|
13
|
+
type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id" | "basePath"> & Options & {
|
|
14
|
+
/**
|
|
15
|
+
* The host URL for the engine's WebSocket server, which is used for communication between the engine and the various hosts (e.g., dev server, CLI, etc.) that interact with it. This value is required for the engine to function properly, as it allows the engine to establish a WebSocket connection and facilitate communication with other components of the system.
|
|
16
|
+
*/
|
|
17
|
+
host?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The port number to use for the websocket connection between the engine and the various hosts.
|
|
20
|
+
*/
|
|
21
|
+
port?: number;
|
|
22
|
+
/**
|
|
23
|
+
* An optional root directory for the engine to use when resolving paths and loading configuration files. This value can be used to specify a custom root directory for the engine, which can be useful in cases where the default behavior of using the current working directory is not desirable. If this option is not provided, the engine will use the current working directory as the root directory by default.
|
|
24
|
+
*/
|
|
25
|
+
root?: string;
|
|
26
|
+
/**
|
|
27
|
+
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Providing a custom logger allows you to integrate Powerlines logging with your own logging system or to customize the logging behavior, such as formatting log messages differently or sending logs to an external service. If a custom logger is not provided, Powerlines will use its default logger implementation.
|
|
31
|
+
*/
|
|
32
|
+
customLogger?: CustomLogger;
|
|
33
|
+
/**
|
|
34
|
+
* The framework for which the engine is being used, which can be used by plugins to customize their behavior based on the specific framework being targeted. This value is optional and can be set to `undefined` if not applicable, but providing it allows plugins to make informed decisions about how to handle certain tasks or configurations based on the framework being used.
|
|
35
|
+
*/
|
|
36
|
+
framework?: FrameworkOptions;
|
|
37
|
+
};
|
|
38
|
+
interface ApiExecutionOptions extends ExecutionOptions {}
|
|
39
|
+
interface EngineExecutionOptions extends ExecutionOptions {
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
*/
|
|
43
|
+
baseURL: string;
|
|
44
|
+
/**
|
|
45
|
+
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
46
|
+
*/
|
|
47
|
+
connection: ConnectionMeta;
|
|
48
|
+
/**
|
|
49
|
+
* 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.
|
|
50
|
+
*/
|
|
51
|
+
channel: MessagePort;
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
*/
|
|
55
|
+
wsOptions?: Partial<WsRpcChannelOptions>;
|
|
56
|
+
/**
|
|
57
|
+
* Options for configuring the RPC client used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the RPC client, such as setting custom timeouts, retry strategies, or other options.
|
|
58
|
+
*/
|
|
59
|
+
rpcOptions?: Partial<BirpcOptions<RpcServerFunctions, RpcClientFunctions, boolean>>;
|
|
60
|
+
/**
|
|
61
|
+
* Options for configuring the RPC cache used for caching RPC responses between the dev server and the client, which can be used by plugins to customize the behavior of the RPC cache, such as setting custom cache keys, expiration times, or other options.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This option can be set to `true` to enable caching with default options, or it can be set to a configuration object that allows for fine-grained control over the caching behavior.
|
|
65
|
+
*/
|
|
66
|
+
cacheOptions?: boolean | Partial<RpcCacheOptions>;
|
|
67
|
+
}
|
|
68
|
+
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
69
|
+
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions };
|
|
72
|
+
//# sourceMappingURL=config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;;;;;;;AAoCA;KAAY,aAAA,GAAgB,IAAA,CAC1B,WAAA,CAAY,kBAAA,0CAGZ,OAAA;;;;EAIE,IAAA;EAJF;;;EASE,IAAA;EAkB4B;;;EAb5B,IAAA;EAdF;;;;;;EAsBE,YAAA,GAAe,YAAA;EAKH;;AAAgB;EAA5B,SAAA,GAAY,gBAAA;AAAA;AAAA,UAGC,mBAAA,SAA4B,gBAAgB;AAAA,UAE5C,sBAAA,SAA+B,gBAAA;EAA/B;;;EAIf,OAAA;EAUS;;;EALT,UAAA,EAAY,cAAA;EAgBuB;;;EAXnC,OAAA,EAAS,WAAA;EAoBgB;;;EAfzB,SAAA,GAAY,OAAA,CAAQ,mBAAA;EAnB0B;;;EAwB9C,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EAXnC;;;;;;EAoBA,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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RpcClient } from "./rpc.cjs";
|
|
2
|
+
import { EngineExecutionOptions, EngineOptions } from "./config.cjs";
|
|
2
3
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
4
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
5
|
|
|
@@ -145,5 +146,5 @@ interface EngineSystemContext {
|
|
|
145
146
|
rpc: RpcClient;
|
|
146
147
|
}
|
|
147
148
|
//#endregion
|
|
148
|
-
export {
|
|
149
|
-
//# sourceMappingURL=context
|
|
149
|
+
export { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState };
|
|
150
|
+
//# sourceMappingURL=context.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;AA0BA;KAAY,kBAAA;;;AAAkB;UAKb,mBAAA;EAAmB;;;EAIlC,SAAA;EAKA;;;EAAA,IAAA;EAKwB;AAM1B;;EANE,IAAA,EAAM,kBAAkB;AAAA;AAUpB;AAMN;;AANM,UAJW,0BAAA,SAAmC,mBAAmB;EAUH;;;EANlE,IAAI;AAAA;AAeA;AAMN;;AANM,UATW,uBAAA,SAAgC,mBAAmB;EAejB;AAI7C;AAMN;EArBE,KAAA;;;;EAKA,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAmB;EAmB9D;;;EAfN,IAAI;AAAA;AA0BN;;;AAAA,UApBiB,cAAA;EAkCN;;;EA9BT,OAAA,EAAS,0BAAA;EAwCY;;;EAnCrB,IAAA,EAAM,uBAAA;EAyBG;;;EApBT,MAAA,EAAQ,yBAAA;AAAA;;;AA8Ba;UAxBN,mBAAA;EAiCa;;;EA7B5B,YAAA;EAgCO;;;EA3BP,OAAA;EAiDY;;;EA5CZ,OAAA,EAAS,IAAA,CAAK,sBAAA;EAqBZ;;;EAhBF,UAAA,EAAY,gBAAA;EAciB;;;EAT7B,KAAA,EAAO,cAAA;AAAA;;;;;;;UASQ,aAAA,mCAEb,WAAA,CAAY,cAAA,GACZ,IAAA,CAAK,QAAA,CAAS,aAAA;EAsBhB;;;EAlBA,OAAA,EAAS,aAAA;EA4BO;;;EAvBhB,UAAA,EAAY,cAAA;EAgCZ;;;;AAA6D;AAG/D;EA3BE,QAAA,EAAU,mBAAA;;;AA+BI;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,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RpcClient } from "./rpc.mjs";
|
|
2
|
+
import { EngineExecutionOptions, EngineOptions } from "./config.mjs";
|
|
2
3
|
import { BaseContext, InlineConfig, ParsedUserConfig } from "@powerlines/core";
|
|
3
4
|
import { ConnectionMeta, DevToolsNodeContext } from "devframe/types";
|
|
4
5
|
|
|
@@ -145,5 +146,5 @@ interface EngineSystemContext {
|
|
|
145
146
|
rpc: RpcClient;
|
|
146
147
|
}
|
|
147
148
|
//#endregion
|
|
148
|
-
export {
|
|
149
|
-
//# sourceMappingURL=context
|
|
149
|
+
export { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState };
|
|
150
|
+
//# sourceMappingURL=context.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;AA0BA;KAAY,kBAAA;;;AAAkB;UAKb,mBAAA;EAAmB;;;EAIlC,SAAA;EAKA;;;EAAA,IAAA;EAKwB;AAM1B;;EANE,IAAA,EAAM,kBAAkB;AAAA;AAUpB;AAMN;;AANM,UAJW,0BAAA,SAAmC,mBAAmB;EAUH;;;EANlE,IAAI;AAAA;AAeA;AAMN;;AANM,UATW,uBAAA,SAAgC,mBAAmB;EAejB;AAI7C;AAMN;EArBE,KAAA;;;;EAKA,IAAA;AAAA;;;;UAMe,yBAAA,SAAkC,mBAAmB;EAmB9D;;;EAfN,IAAI;AAAA;AA0BN;;;AAAA,UApBiB,cAAA;EAkCN;;;EA9BT,OAAA,EAAS,0BAAA;EAwCY;;;EAnCrB,IAAA,EAAM,uBAAA;EAyBG;;;EApBT,MAAA,EAAQ,yBAAA;AAAA;;;AA8Ba;UAxBN,mBAAA;EAiCa;;;EA7B5B,YAAA;EAgCO;;;EA3BP,OAAA;EAiDY;;;EA5CZ,OAAA,EAAS,IAAA,CAAK,sBAAA;EAqBZ;;;EAhBF,UAAA,EAAY,gBAAA;EAciB;;;EAT7B,KAAA,EAAO,cAAA;AAAA;;;;;;;UASQ,aAAA,mCAEb,WAAA,CAAY,cAAA,GACZ,IAAA,CAAK,QAAA,CAAS,aAAA;EAsBhB;;;EAlBA,OAAA,EAAS,aAAA;EA4BO;;;EAvBhB,UAAA,EAAY,cAAA;EAgCZ;;;;AAA6D;AAG/D;EA3BE,QAAA,EAAU,mBAAA;;;AA+BI;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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExtractRpcFunction, ExtractRpcFunctions, InputRpcFunction, InputRpcFunctions, LogPayload, RpcClient, RpcClientCall, RpcClientCallEvent, RpcClientCallOptional, RpcClientEvents, RpcClientFunctions, RpcClientHost, RpcClientRemoteFunctions, RpcContext, RpcFunction, RpcFunctions, RpcPayloadEnvelop, RpcPayloadMetadata, RpcServerFunctions, WrapRpcFunction, WrapRpcFunctions, WrappedRpcFunction, WrappedRpcFunctions } from "./rpc.cjs";
|
|
2
|
+
import { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions } from "./config.cjs";
|
|
3
|
+
import { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState } from "./context.cjs";
|
|
4
|
+
import { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface } from "./api.cjs";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExtractRpcFunction, ExtractRpcFunctions, InputRpcFunction, InputRpcFunctions, LogPayload, RpcClient, RpcClientCall, RpcClientCallEvent, RpcClientCallOptional, RpcClientEvents, RpcClientFunctions, RpcClientHost, RpcClientRemoteFunctions, RpcContext, RpcFunction, RpcFunctions, RpcPayloadEnvelop, RpcPayloadMetadata, RpcServerFunctions, WrapRpcFunction, WrapRpcFunctions, WrappedRpcFunction, WrappedRpcFunctions } from "./rpc.mjs";
|
|
2
|
+
import { ApiExecutionOptions, EngineExecutionOptions, EngineOptions, EngineResolvedConfig, RpcClientOptions } from "./config.mjs";
|
|
3
|
+
import { EngineContext, EngineExecutionItem, EngineSystemContext, ExecutionCommandScopeState, ExecutionHookScopeState, ExecutionPluginScopeState, ExecutionScopeState, ExecutionScopeType, ExecutionState } from "./context.mjs";
|
|
4
|
+
import { Engine, ExecutionApi, ExecutionApiParams, ExecutionApiWorkerInterface, ExecutionInterface } from "./api.mjs";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MaybePromise
|
|
3
|
-
import {
|
|
4
|
-
import { RpcCacheManager,
|
|
5
|
-
import {
|
|
6
|
-
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevframeDefinition, EventEmitter, RpcSharedStateHost } from "devframe/types";
|
|
1
|
+
import { LogMeta } from "@powerlines/core";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
3
|
+
import { BirpcReturn, ProxifiedRemoteFunctions } from "birpc";
|
|
4
|
+
import { RpcCacheManager, RpcFunctionsCollector } from "devframe/rpc";
|
|
5
|
+
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, EventEmitter, RpcSharedStateHost } from "devframe/types";
|
|
7
6
|
import { Asyncify } from "@stryke/types/async";
|
|
8
7
|
import { RpcStreamingClientHost } from "devframe/client";
|
|
9
8
|
|
|
@@ -143,67 +142,5 @@ interface RpcClient {
|
|
|
143
142
|
cacheManager: RpcCacheManager;
|
|
144
143
|
}
|
|
145
144
|
//#endregion
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* The options required to start the Powerlines engine.
|
|
149
|
-
*/
|
|
150
|
-
type EngineOptions = Omit<PartialKeys<DevframeDefinition, "name" | "setup">, "id" | "basePath"> & Options & {
|
|
151
|
-
/**
|
|
152
|
-
* The host URL for the engine's WebSocket server, which is used for communication between the engine and the various hosts (e.g., dev server, CLI, etc.) that interact with it. This value is required for the engine to function properly, as it allows the engine to establish a WebSocket connection and facilitate communication with other components of the system.
|
|
153
|
-
*/
|
|
154
|
-
host?: string;
|
|
155
|
-
/**
|
|
156
|
-
* The port number to use for the websocket connection between the engine and the various hosts.
|
|
157
|
-
*/
|
|
158
|
-
port?: number;
|
|
159
|
-
/**
|
|
160
|
-
* An optional root directory for the engine to use when resolving paths and loading configuration files. This value can be used to specify a custom root directory for the engine, which can be useful in cases where the default behavior of using the current working directory is not desirable. If this option is not provided, the engine will use the current working directory as the root directory by default.
|
|
161
|
-
*/
|
|
162
|
-
root?: string;
|
|
163
|
-
/**
|
|
164
|
-
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
165
|
-
*
|
|
166
|
-
* @remarks
|
|
167
|
-
* Providing a custom logger allows you to integrate Powerlines logging with your own logging system or to customize the logging behavior, such as formatting log messages differently or sending logs to an external service. If a custom logger is not provided, Powerlines will use its default logger implementation.
|
|
168
|
-
*/
|
|
169
|
-
customLogger?: CustomLogger;
|
|
170
|
-
/**
|
|
171
|
-
* The framework for which the engine is being used, which can be used by plugins to customize their behavior based on the specific framework being targeted. This value is optional and can be set to `undefined` if not applicable, but providing it allows plugins to make informed decisions about how to handle certain tasks or configurations based on the framework being used.
|
|
172
|
-
*/
|
|
173
|
-
framework?: FrameworkOptions;
|
|
174
|
-
};
|
|
175
|
-
interface ApiExecutionOptions extends ExecutionOptions {}
|
|
176
|
-
interface EngineExecutionOptions extends ExecutionOptions {
|
|
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.
|
|
179
|
-
*/
|
|
180
|
-
baseURL: string;
|
|
181
|
-
/**
|
|
182
|
-
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
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;
|
|
189
|
-
/**
|
|
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.
|
|
191
|
-
*/
|
|
192
|
-
wsOptions?: Partial<WsRpcChannelOptions>;
|
|
193
|
-
/**
|
|
194
|
-
* Options for configuring the RPC client used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the RPC client, such as setting custom timeouts, retry strategies, or other options.
|
|
195
|
-
*/
|
|
196
|
-
rpcOptions?: Partial<BirpcOptions<RpcServerFunctions, RpcClientFunctions, boolean>>;
|
|
197
|
-
/**
|
|
198
|
-
* Options for configuring the RPC cache used for caching RPC responses between the dev server and the client, which can be used by plugins to customize the behavior of the RPC cache, such as setting custom cache keys, expiration times, or other options.
|
|
199
|
-
*
|
|
200
|
-
* @remarks
|
|
201
|
-
* This option can be set to `true` to enable caching with default options, or it can be set to a configuration object that allows for fine-grained control over the caching behavior.
|
|
202
|
-
*/
|
|
203
|
-
cacheOptions?: boolean | Partial<RpcCacheOptions>;
|
|
204
|
-
}
|
|
205
|
-
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
206
|
-
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
207
|
-
//#endregion
|
|
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
|
|
145
|
+
export { ExtractRpcFunction, ExtractRpcFunctions, InputRpcFunction, InputRpcFunctions, LogPayload, RpcClient, RpcClientCall, RpcClientCallEvent, RpcClientCallOptional, RpcClientEvents, RpcClientFunctions, RpcClientHost, RpcClientRemoteFunctions, RpcContext, RpcFunction, RpcFunctions, RpcPayloadEnvelop, RpcPayloadMetadata, RpcServerFunctions, WrapRpcFunction, WrapRpcFunctions, WrappedRpcFunction, WrappedRpcFunctions };
|
|
146
|
+
//# sourceMappingURL=rpc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.d.cts","names":[],"sources":["../../src/types/rpc.ts"],"mappings":";;;;;;;;;UAkCiB,kBAAA;EAAA;;;EAIf,SAAA;EAAA;;;EAIA,IAAA;EAYA;;;EARA,SAAA;EAee;;;EAXf,WAAA;EAWiC;;;EAPjC,WAAA;EAWiB;AAAA;AAGnB;EAVE,WAAA;AAAA;AAAA,UAGe,iBAAA,mBAAoC,kBAAkB;EAOf;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,YAAmB,CAAA,GAAI,UAAA,CAAW,SAAA;AAAA,KAEzD,gBAAA,oBAAoC,YAAA,qBAC/B,UAAA,GAAa,eAAA,CAAgB,UAAA,CAAW,IAAA;AAAA,KAG7C,wBAAA,oBAA4C,mBAAA,IACtD,wBAAA,CAAyB,mBAAA,CAAoB,UAAA;;;;UAK9B,UAAA;EAzBL;AACZ;;EA4BE,IAAA,EAAM,OAAO;EA5BmB;AAAiC;AAEnE;EA+BE,OAAA;AAAA;AAAA,UAGe,kBAAA,SAA2B,0BAA0B;EAEpE,gBAAA,GAAmB,OAAA,EAAS,UAAA;AAAA;AAAA,UAGb,kBAAA,SAA2B,0BAA0B;AAAA,UAErD,UAAA;EAvCF;;;EAAA,SA2CJ,GAAA,EAAK,SAAS;AAAA;AAAA,KAGb,aAAA,GAAgB,qBAAA,CAC1B,kBAAA,EACA,UAAA;AAAA,KAGU,aAAA,GAAgB,WAAA,CAC1B,kBAAA,EACA,kBAAA;AAAA,KAEU,kBAAA,GAAqB,WAAA,CAC/B,kBAAA,EACA,kBAAA;AAAA,KAEU,qBAAA,GAAwB,WAAA,CAClC,kBAAA,EACA,kBAAA;AAAA,UAGe,eAAA;EAEf,wBAAA,GAA2B,SAAkB;AAAA;AAAA,UAG9B,SAAA;EAnEc;;;EAuE7B,MAAA,EAAQ,YAAA,CAAa,eAAA;EAtE0B;;;EAAA,SA2EtC,SAAA;EA3EqC;;;EAAA,SAgFrC,cAAA,EAAgB,cAAA;EAhFV;;;;;AAA+C;AAGhE;EAsFE,aAAA,GAAgB,OAAA,cAAqB,OAAA;EAtFZ;;;EA2FzB,YAAA,QAAoB,OAAA;EA1FX;;;;EAgGT,qBAAA,GAAwB,KAAA,aAAkB,OAAA;EA/Fc;;;EAoGxD,IAAA,EAAM,aAAA;EAtGsC;;;EA2G5C,SAAA,EAAW,kBAAA;EA1GX;;;EA+GA,YAAA,EAAc,qBAAA;EA9GiC;;;EAmH/C,MAAA,EAAQ,aAAA;EAnHoE;AAAA;AAE9E;EAsHE,WAAA,EAAa,kBAAA;EAtHa;;;;;EA6H1B,SAAA,EAAW,sBAAA;EA5HgC;;;EAiI3C,YAAA,EAAc,eAAA;AAAA"}
|