@powerlines/engine 0.0.24 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/build.cjs +66 -0
- package/dist/api/build.d.cts +14 -0
- package/dist/api/build.d.cts.map +1 -0
- package/dist/api/build.d.mts +14 -0
- package/dist/api/build.d.mts.map +1 -0
- package/dist/api/build.mjs +64 -0
- package/dist/api/build.mjs.map +1 -0
- package/dist/api/clean.cjs +29 -0
- package/dist/api/clean.d.cts +14 -0
- package/dist/api/clean.d.cts.map +1 -0
- package/dist/api/clean.d.mts +14 -0
- package/dist/api/clean.d.mts.map +1 -0
- package/dist/api/clean.mjs +28 -0
- package/dist/api/clean.mjs.map +1 -0
- package/dist/api/create.cjs +59 -0
- package/dist/api/create.d.cts +14 -0
- package/dist/api/create.d.cts.map +1 -0
- package/dist/api/create.d.mts +14 -0
- package/dist/api/create.d.mts.map +1 -0
- package/dist/api/create.mjs +57 -0
- package/dist/api/create.mjs.map +1 -0
- package/dist/api/deploy.cjs +25 -0
- package/dist/api/deploy.d.cts +17 -0
- package/dist/api/deploy.d.cts.map +1 -0
- package/dist/api/deploy.d.mts +17 -0
- package/dist/api/deploy.d.mts.map +1 -0
- package/dist/api/deploy.mjs +24 -0
- package/dist/api/deploy.mjs.map +1 -0
- package/dist/api/docs.cjs +25 -0
- package/dist/api/docs.d.cts +17 -0
- package/dist/api/docs.d.cts.map +1 -0
- package/dist/api/docs.d.mts +17 -0
- package/dist/api/docs.d.mts.map +1 -0
- package/dist/api/docs.mjs +24 -0
- package/dist/api/docs.mjs.map +1 -0
- package/dist/api/lint.cjs +28 -0
- package/dist/api/lint.d.cts +17 -0
- package/dist/api/lint.d.cts.map +1 -0
- package/dist/api/lint.d.mts +17 -0
- package/dist/api/lint.d.mts.map +1 -0
- package/dist/api/lint.mjs +27 -0
- package/dist/api/lint.mjs.map +1 -0
- package/dist/api/prepare.cjs +69 -0
- package/dist/api/prepare.d.cts +14 -0
- package/dist/api/prepare.d.cts.map +1 -0
- package/dist/api/prepare.d.mts +14 -0
- package/dist/api/prepare.d.mts.map +1 -0
- package/dist/api/prepare.mjs +68 -0
- package/dist/api/prepare.mjs.map +1 -0
- package/dist/api/test.cjs +28 -0
- package/dist/api/test.d.cts +17 -0
- package/dist/api/test.d.cts.map +1 -0
- package/dist/api/test.d.mts +17 -0
- package/dist/api/test.d.mts.map +1 -0
- package/dist/api/test.mjs +27 -0
- package/dist/api/test.mjs.map +1 -0
- package/dist/api/types.cjs +71 -0
- package/dist/api/types.d.cts +17 -0
- package/dist/api/types.d.cts.map +1 -0
- package/dist/api/types.d.mts +17 -0
- package/dist/api/types.d.mts.map +1 -0
- package/dist/api/types.mjs +70 -0
- package/dist/api/types.mjs.map +1 -0
- package/dist/api-Bw-RpQgX.d.cts +134 -0
- package/dist/api-Bw-RpQgX.d.cts.map +1 -0
- package/dist/api-D9bpSxPB.d.mts +134 -0
- package/dist/api-D9bpSxPB.d.mts.map +1 -0
- package/dist/config-B_E_HMcT.d.cts +200 -0
- package/dist/config-B_E_HMcT.d.cts.map +1 -0
- package/dist/config-FB8Zqjjz.d.mts +200 -0
- package/dist/config-FB8Zqjjz.d.mts.map +1 -0
- package/dist/context/index.cjs +2 -9
- package/dist/context/index.d.cts +2 -660
- package/dist/context/index.d.mts +2 -660
- package/dist/context/index.mjs +2 -4
- package/dist/context-C_P-KYJX.d.cts +149 -0
- package/dist/context-C_P-KYJX.d.cts.map +1 -0
- package/dist/context-DrNGEC0b.d.mts +149 -0
- package/dist/context-DrNGEC0b.d.mts.map +1 -0
- package/dist/engine-context-BXjBJuHe.d.mts +54 -0
- package/dist/engine-context-BXjBJuHe.d.mts.map +1 -0
- package/dist/engine-context-CPYw-aGB.d.cts +54 -0
- package/dist/engine-context-CPYw-aGB.d.cts.map +1 -0
- package/dist/engine-context-SEzTm1aq.cjs +179 -0
- package/dist/engine-context-f72fUF0N.mjs +173 -0
- package/dist/engine-context-f72fUF0N.mjs.map +1 -0
- package/dist/engine.cjs +267 -0
- package/dist/engine.d.cts +143 -0
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +143 -0
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +263 -0
- package/dist/engine.mjs.map +1 -0
- package/dist/helpers/create-execution-host.cjs +23 -0
- package/dist/helpers/create-execution-host.d.cts +18 -0
- package/dist/helpers/create-execution-host.d.cts.map +1 -0
- package/dist/helpers/create-execution-host.d.mts +18 -0
- package/dist/helpers/create-execution-host.d.mts.map +1 -0
- package/dist/helpers/create-execution-host.mjs +22 -0
- package/dist/helpers/create-execution-host.mjs.map +1 -0
- package/dist/helpers/execution-host-worker.cjs +307 -0
- package/dist/helpers/execution-host-worker.d.cts +64 -0
- package/dist/helpers/execution-host-worker.d.cts.map +1 -0
- package/dist/helpers/execution-host-worker.d.mts +64 -0
- package/dist/helpers/execution-host-worker.d.mts.map +1 -0
- package/dist/helpers/execution-host-worker.mjs +306 -0
- package/dist/helpers/execution-host-worker.mjs.map +1 -0
- package/dist/helpers/finalize.cjs +27 -0
- package/dist/helpers/finalize.d.cts +12 -0
- package/dist/helpers/finalize.d.cts.map +1 -0
- package/dist/helpers/finalize.d.mts +12 -0
- package/dist/helpers/finalize.d.mts.map +1 -0
- package/dist/helpers/finalize.mjs +26 -0
- package/dist/helpers/finalize.mjs.map +1 -0
- package/dist/helpers/rpc.cjs +140 -0
- package/dist/helpers/rpc.d.cts +7 -0
- package/dist/helpers/rpc.d.cts.map +1 -0
- package/dist/helpers/rpc.d.mts +7 -0
- package/dist/helpers/rpc.d.mts.map +1 -0
- package/dist/helpers/rpc.mjs +139 -0
- package/dist/helpers/rpc.mjs.map +1 -0
- package/dist/index.cjs +4 -567
- package/dist/index.d.cts +5 -126
- package/dist/index.d.mts +5 -126
- package/dist/index.mjs +2 -567
- package/dist/worker/execution-host.cjs +419 -0
- package/dist/worker/execution-host.d.cts +26 -0
- package/dist/worker/execution-host.d.cts.map +1 -0
- package/dist/worker/execution-host.d.mts +26 -0
- package/dist/worker/execution-host.d.mts.map +1 -0
- package/dist/worker/execution-host.mjs +382 -0
- package/dist/worker/execution-host.mjs.map +1 -0
- package/package.json +88 -124
- package/dist/_internal/worker.cjs +0 -4844
- package/dist/_internal/worker.d.cts +0 -38
- package/dist/_internal/worker.d.cts.map +0 -1
- package/dist/_internal/worker.d.mts +0 -38
- package/dist/_internal/worker.d.mts.map +0 -1
- package/dist/_internal/worker.mjs +0 -4805
- package/dist/_internal/worker.mjs.map +0 -1
- package/dist/api.cjs +0 -1274
- package/dist/api.d.cts +0 -265
- package/dist/api.d.cts.map +0 -1
- package/dist/api.d.mts +0 -265
- package/dist/api.d.mts.map +0 -1
- package/dist/api.mjs +0 -1270
- package/dist/api.mjs.map +0 -1
- package/dist/base-context-BUnL_9z8.mjs +0 -241
- package/dist/base-context-BUnL_9z8.mjs.map +0 -1
- package/dist/base-context-CFvO2N9I.cjs +0 -248
- package/dist/context/index.d.cts.map +0 -1
- package/dist/context/index.d.mts.map +0 -1
- package/dist/engine-context-BuD9AGfd.mjs +0 -41
- package/dist/engine-context-BuD9AGfd.mjs.map +0 -1
- package/dist/engine-context-NO6enYev.cjs +0 -45
- package/dist/execution-context-Cq9cjr28.mjs +0 -2571
- package/dist/execution-context-Cq9cjr28.mjs.map +0 -1
- package/dist/execution-context-CyDSAifN.cjs +0 -2615
- package/dist/fs-D1nIP45P.mjs +0 -226
- package/dist/fs-D1nIP45P.mjs.map +0 -1
- package/dist/fs-XogSgMqT.cjs +0 -262
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/schemas.cjs +0 -9
- package/dist/schemas.d.cts +0 -127
- package/dist/schemas.d.cts.map +0 -1
- package/dist/schemas.d.mts +0 -127
- package/dist/schemas.d.mts.map +0 -1
- package/dist/schemas.mjs +0 -3
- package/dist/storage/index.cjs +0 -9
- package/dist/storage/index.d.cts +0 -419
- package/dist/storage/index.d.cts.map +0 -1
- package/dist/storage/index.d.mts +0 -419
- package/dist/storage/index.d.mts.map +0 -1
- package/dist/storage/index.mjs +0 -3
- package/dist/ts-morph-BaLPVAdB.cjs +0 -114
- package/dist/ts-morph-D0CaA37w.mjs +0 -102
- package/dist/ts-morph-D0CaA37w.mjs.map +0 -1
- package/dist/tsconfig-Cstsoprg.mjs +0 -155
- package/dist/tsconfig-Cstsoprg.mjs.map +0 -1
- package/dist/tsconfig-DeyWQC2N.cjs +0 -198
- package/dist/typescript/index.cjs +0 -13
- package/dist/typescript/index.d.cts +0 -106
- package/dist/typescript/index.d.cts.map +0 -1
- package/dist/typescript/index.d.mts +0 -106
- package/dist/typescript/index.d.mts.map +0 -1
- package/dist/typescript/index.mjs +0 -4
- package/dist/virtual-BNdKVkRw.cjs +0 -548
- package/dist/virtual-gIlTc3Lj.mjs +0 -513
- package/dist/virtual-gIlTc3Lj.mjs.map +0 -1
|
@@ -0,0 +1,200 @@
|
|
|
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
|
+
import { MaybePromise, PartialKeys, RequiredKeys } from "@stryke/types/base";
|
|
6
|
+
import { BirpcOptions, BirpcReturn, ProxifiedRemoteFunctions } from "birpc";
|
|
7
|
+
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevframeDefinition, EventEmitter, RpcSharedStateHost } from "devframe/types";
|
|
8
|
+
import { Asyncify } from "@stryke/types/async";
|
|
9
|
+
|
|
10
|
+
//#region src/types/rpc.d.ts
|
|
11
|
+
interface RpcPayloadMetadata {
|
|
12
|
+
/**
|
|
13
|
+
* A unique identifier for correlating related Rpc messages, which can be used to group messages that belong to the same logical operation or workflow across different parts of the system. This is a required field and should be generated by the sender of the message.
|
|
14
|
+
*/
|
|
15
|
+
messageId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The type of the Rpc message, which indicates the purpose of the message and how it should be handled by the receiving end. This is a required field and must be one of the predefined values in the IpcMessageType enum.
|
|
18
|
+
*/
|
|
19
|
+
type: string;
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp when the Rpc message was created, represented as the number of milliseconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
timestamp: number;
|
|
24
|
+
/**
|
|
25
|
+
* A unique identifier for the current execution instance, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
26
|
+
*/
|
|
27
|
+
executionId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The zero-based index of the current execution within the sequence of executions in the same process.
|
|
30
|
+
*/
|
|
31
|
+
configIndex?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Optional environment identifier to specify the context or environment in which the message is being processed.
|
|
34
|
+
*/
|
|
35
|
+
environment?: string;
|
|
36
|
+
}
|
|
37
|
+
interface RpcPayloadEnvelop<TPayload> extends RpcPayloadMetadata {
|
|
38
|
+
/**
|
|
39
|
+
* The payload data associated with the Rpc message, typed according to the message type.
|
|
40
|
+
*/
|
|
41
|
+
payload: TPayload;
|
|
42
|
+
}
|
|
43
|
+
type RpcFunction = (payload: any) => MaybePromise<any>;
|
|
44
|
+
type RpcFunctions = Record<string, RpcFunction>;
|
|
45
|
+
type InputRpcFunction = (envelop: RpcPayloadEnvelop<any>) => any;
|
|
46
|
+
type InputRpcFunctions = Record<string, InputRpcFunction>;
|
|
47
|
+
type WrappedRpcFunction = (envelop: RpcPayloadEnvelop<any>) => Promise<any>;
|
|
48
|
+
type WrappedRpcFunctions = Record<string, WrappedRpcFunction>;
|
|
49
|
+
type ExtractRpcFunction<TFunction extends WrappedRpcFunction> = (payload: Parameters<TFunction>[0]["payload"]) => ReturnType<Asyncify<TFunction>>;
|
|
50
|
+
type ExtractRpcFunctions<TFunctions extends WrappedRpcFunctions> = { [TKey in keyof TFunctions]: ExtractRpcFunction<TFunctions[TKey]> };
|
|
51
|
+
type WrapRpcFunction<TFunction extends RpcFunction> = (envelop: RpcPayloadEnvelop<Parameters<TFunction>[0]>) => ReturnType<TFunction> extends Promise<infer A> ? A : ReturnType<TFunction>;
|
|
52
|
+
type WrapRpcFunctions<TFunctions extends RpcFunctions> = { [TKey in keyof TFunctions]: WrapRpcFunction<TFunctions[TKey]> };
|
|
53
|
+
type RpcClientRemoteFunctions<TFunctions extends WrappedRpcFunctions> = ProxifiedRemoteFunctions<ExtractRpcFunctions<TFunctions>>;
|
|
54
|
+
/**
|
|
55
|
+
* Payload for write log Rpc messages.
|
|
56
|
+
*/
|
|
57
|
+
interface LogPayload {
|
|
58
|
+
/**
|
|
59
|
+
* Metadata associated with the log message, excluding fields that are automatically added by the engine such as executionId, configIndex, environment, and timestamp. This can include custom fields relevant to the log entry, such as category, name, command, hook, plugin, and source.
|
|
60
|
+
*/
|
|
61
|
+
meta: LogMeta;
|
|
62
|
+
/**
|
|
63
|
+
* The log message content, which can be a string or an array of strings representing the log entry. This field is required and should contain the actual message to be logged.
|
|
64
|
+
*/
|
|
65
|
+
message: string;
|
|
66
|
+
}
|
|
67
|
+
interface RpcServerFunctions extends DevToolsRpcServerFunctions {
|
|
68
|
+
"powerlines:log": (payload: LogPayload) => void;
|
|
69
|
+
}
|
|
70
|
+
interface RpcClientFunctions extends DevToolsRpcClientFunctions {}
|
|
71
|
+
interface RpcContext {
|
|
72
|
+
/**
|
|
73
|
+
* The Rpc client to interact with the server
|
|
74
|
+
*/
|
|
75
|
+
readonly rpc: RpcClient;
|
|
76
|
+
}
|
|
77
|
+
type RpcClientHost = RpcFunctionsCollector<RpcClientFunctions, RpcContext>;
|
|
78
|
+
type RpcClientCall = BirpcReturn<RpcServerFunctions, RpcClientFunctions>["$call"];
|
|
79
|
+
type RpcClientCallEvent = BirpcReturn<RpcServerFunctions, RpcClientFunctions>["$callEvent"];
|
|
80
|
+
type RpcClientCallOptional = BirpcReturn<RpcServerFunctions, RpcClientFunctions>["$callOptional"];
|
|
81
|
+
interface RpcClientEvents {
|
|
82
|
+
"rpc:is-trusted:updated": (isTrusted: boolean) => void;
|
|
83
|
+
}
|
|
84
|
+
interface RpcClient {
|
|
85
|
+
/**
|
|
86
|
+
* The events of the client
|
|
87
|
+
*/
|
|
88
|
+
events: EventEmitter<RpcClientEvents>;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the client is trusted
|
|
91
|
+
*/
|
|
92
|
+
readonly isTrusted: boolean | null;
|
|
93
|
+
/**
|
|
94
|
+
* The connection meta
|
|
95
|
+
*/
|
|
96
|
+
readonly connectionMeta: ConnectionMeta;
|
|
97
|
+
/**
|
|
98
|
+
* Return a promise that resolves when the client is trusted
|
|
99
|
+
*
|
|
100
|
+
* Rejects with an error if the timeout is reached
|
|
101
|
+
*
|
|
102
|
+
* @param timeout - The timeout in milliseconds, default to 60 seconds
|
|
103
|
+
*/
|
|
104
|
+
ensureTrusted: (timeout?: number) => Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Request trust from the server
|
|
107
|
+
*/
|
|
108
|
+
requestTrust: () => Promise<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Request trust from the server using a specific auth token.
|
|
111
|
+
* Updates the stored token and re-requests trust without reloading the page.
|
|
112
|
+
*/
|
|
113
|
+
requestTrustWithToken: (token: string) => Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Call a Rpc function on the server
|
|
116
|
+
*/
|
|
117
|
+
call: RpcClientCall;
|
|
118
|
+
/**
|
|
119
|
+
* Call a Rpc event on the server, and does not expect a response
|
|
120
|
+
*/
|
|
121
|
+
callEvent: RpcClientCallEvent;
|
|
122
|
+
/**
|
|
123
|
+
* Call a Rpc optional function on the server
|
|
124
|
+
*/
|
|
125
|
+
callOptional: RpcClientCallOptional;
|
|
126
|
+
/**
|
|
127
|
+
* The client Rpc host
|
|
128
|
+
*/
|
|
129
|
+
client: RpcClientHost;
|
|
130
|
+
/**
|
|
131
|
+
* The shared state host
|
|
132
|
+
*/
|
|
133
|
+
sharedState: RpcSharedStateHost;
|
|
134
|
+
/**
|
|
135
|
+
* The streaming channel host. Subscribe to a server-side stream by
|
|
136
|
+
* channel + id; the returned reader is both `AsyncIterable<T>` and
|
|
137
|
+
* exposes `.readable: ReadableStream<T>` for `pipeTo` consumption.
|
|
138
|
+
*/
|
|
139
|
+
streaming: RpcStreamingClientHost;
|
|
140
|
+
/**
|
|
141
|
+
* The Rpc cache manager
|
|
142
|
+
*/
|
|
143
|
+
cacheManager: RpcCacheManager;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/types/config.d.ts
|
|
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
|
+
* A custom logger instance that implements the {@link CustomLogger} interface, which can be used for logging messages during the build process instead of the default Powerlines logger.
|
|
161
|
+
*
|
|
162
|
+
* @remarks
|
|
163
|
+
* 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.
|
|
164
|
+
*/
|
|
165
|
+
customLogger?: CustomLogger;
|
|
166
|
+
/**
|
|
167
|
+
* 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.
|
|
168
|
+
*/
|
|
169
|
+
framework?: FrameworkOptions;
|
|
170
|
+
};
|
|
171
|
+
interface EngineExecutionOptions extends ExecutionOptions {
|
|
172
|
+
/**
|
|
173
|
+
* 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.
|
|
174
|
+
*/
|
|
175
|
+
baseURL: string;
|
|
176
|
+
/**
|
|
177
|
+
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
178
|
+
*/
|
|
179
|
+
connection: ConnectionMeta;
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
*/
|
|
183
|
+
wsOptions?: Partial<WsRpcChannelOptions>;
|
|
184
|
+
/**
|
|
185
|
+
* 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.
|
|
186
|
+
*/
|
|
187
|
+
rpcOptions?: Partial<BirpcOptions<RpcServerFunctions, RpcClientFunctions, boolean>>;
|
|
188
|
+
/**
|
|
189
|
+
* 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.
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* 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.
|
|
193
|
+
*/
|
|
194
|
+
cacheOptions?: boolean | Partial<RpcCacheOptions>;
|
|
195
|
+
}
|
|
196
|
+
type RpcClientOptions = RequiredKeys<EngineExecutionOptions, "baseURL" | "connection">;
|
|
197
|
+
type EngineResolvedConfig<TUserConfig extends UserConfig = UserConfig> = ResolvedConfig<TUserConfig, EngineExecutionOptions>;
|
|
198
|
+
//#endregion
|
|
199
|
+
export { RpcServerFunctions as C, WrappedRpcFunctions as D, WrappedRpcFunction as E, RpcPayloadMetadata as S, WrapRpcFunctions as T, RpcClientRemoteFunctions as _, ExtractRpcFunction as a, RpcFunctions as b, InputRpcFunctions as c, RpcClientCall as d, RpcClientCallEvent as f, RpcClientHost as g, RpcClientFunctions as h, RpcClientOptions as i, LogPayload as l, RpcClientEvents as m, EngineOptions as n, ExtractRpcFunctions as o, RpcClientCallOptional as p, EngineResolvedConfig as r, InputRpcFunction as s, EngineExecutionOptions as t, RpcClient as u, RpcContext as v, WrapRpcFunction as w, RpcPayloadEnvelop as x, RpcFunction as y };
|
|
200
|
+
//# sourceMappingURL=config-FB8Zqjjz.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-FB8Zqjjz.d.mts","names":[],"sources":["../src/types/rpc.ts","../src/types/config.ts"],"mappings":"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"}
|
package/dist/context/index.cjs
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_engine_context = require('../engine-context-NO6enYev.cjs');
|
|
4
|
-
const require_execution_context = require('../execution-context-CyDSAifN.cjs');
|
|
2
|
+
const require_engine_context = require('../engine-context-SEzTm1aq.cjs');
|
|
5
3
|
|
|
6
|
-
exports.
|
|
7
|
-
exports.PowerlinesContext = require_execution_context.PowerlinesContext;
|
|
8
|
-
exports.PowerlinesEngineContext = require_engine_context.PowerlinesEngineContext;
|
|
9
|
-
exports.PowerlinesEnvironmentContext = require_execution_context.PowerlinesEnvironmentContext;
|
|
10
|
-
exports.PowerlinesExecutionContext = require_execution_context.PowerlinesExecutionContext;
|
|
11
|
-
exports.createPluginContext = require_execution_context.createPluginContext;
|
|
4
|
+
exports.PowerlinesEngineContext = require_engine_context.PowerlinesEngineContext;
|