@powerlines/engine 0.47.3 → 0.49.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 +28 -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 +24 -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 +24 -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 +27 -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 +68 -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 +27 -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 +70 -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-BgyEi2hF.d.mts +138 -0
- package/dist/api-BgyEi2hF.d.mts.map +1 -0
- package/dist/api-DcHfCjQK.d.cts +138 -0
- package/dist/api-DcHfCjQK.d.cts.map +1 -0
- package/dist/api.cjs +39 -1268
- package/dist/api.d.cts +11 -300
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +11 -300
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +31 -1264
- package/dist/api.mjs.map +1 -1
- package/dist/config-ByLyzMI0.d.mts +204 -0
- package/dist/config-ByLyzMI0.d.mts.map +1 -0
- package/dist/config-DKEmqMrh.d.cts +204 -0
- package/dist/config-DKEmqMrh.d.cts.map +1 -0
- package/dist/context/engine-context.cjs +177 -0
- package/dist/context/engine-context.d.cts +2 -0
- package/dist/context/engine-context.d.mts +2 -0
- package/dist/context/engine-context.mjs +175 -0
- package/dist/context/engine-context.mjs.map +1 -0
- package/dist/context/index.cjs +2 -9
- package/dist/context/index.d.cts +2 -150
- package/dist/context/index.d.mts +2 -150
- package/dist/context/index.mjs +2 -4
- package/dist/context-D0_a0kRO.d.cts +149 -0
- package/dist/context-D0_a0kRO.d.cts.map +1 -0
- package/dist/context-DcXV6_GL.d.mts +149 -0
- package/dist/context-DcXV6_GL.d.mts.map +1 -0
- package/dist/engine-Dz6BvkFY.cjs +590 -0
- package/dist/engine-context-B8K6Jtkk.d.cts +53 -0
- package/dist/engine-context-B8K6Jtkk.d.cts.map +1 -0
- package/dist/engine-context-DKlA5Pgu.d.mts +53 -0
- package/dist/engine-context-DKlA5Pgu.d.mts.map +1 -0
- package/dist/engine-q6YKXXcB.mjs +571 -0
- package/dist/engine-q6YKXXcB.mjs.map +1 -0
- package/dist/engine.cjs +6 -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 +3 -0
- package/dist/helpers/create-execution-host.cjs +57 -0
- package/dist/helpers/create-execution-host.d.cts +20 -0
- package/dist/helpers/create-execution-host.d.cts.map +1 -0
- package/dist/helpers/create-execution-host.d.mts +20 -0
- package/dist/helpers/create-execution-host.d.mts.map +1 -0
- package/dist/helpers/create-execution-host.mjs +57 -0
- package/dist/helpers/create-execution-host.mjs.map +1 -0
- package/dist/helpers/finalize.cjs +26 -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/index.cjs +12 -0
- package/dist/helpers/index.d.cts +5 -0
- package/dist/helpers/index.d.mts +5 -0
- package/dist/helpers/index.mjs +6 -0
- package/dist/helpers/rpc.cjs +139 -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/helpers/stream.cjs +119 -0
- package/dist/helpers/stream.d.cts +45 -0
- package/dist/helpers/stream.d.cts.map +1 -0
- package/dist/helpers/stream.d.mts +45 -0
- package/dist/helpers/stream.d.mts.map +1 -0
- package/dist/helpers/stream.mjs +117 -0
- package/dist/helpers/stream.mjs.map +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.mts +1 -0
- package/dist/index.cjs +8 -748
- package/dist/index.d.cts +6 -140
- package/dist/index.d.mts +6 -140
- package/dist/index.mjs +4 -747
- package/package.json +102 -132
- package/dist/_internal/worker.cjs +0 -5192
- package/dist/_internal/worker.d.cts +0 -46
- package/dist/_internal/worker.d.cts.map +0 -1
- package/dist/_internal/worker.d.mts +0 -46
- package/dist/_internal/worker.d.mts.map +0 -1
- package/dist/_internal/worker.mjs +0 -5153
- package/dist/_internal/worker.mjs.map +0 -1
- package/dist/base-context-DLemGRbd.cjs +0 -322
- package/dist/base-context-DUha4Lz-.mjs +0 -315
- package/dist/base-context-DUha4Lz-.mjs.map +0 -1
- package/dist/context/index.d.cts.map +0 -1
- package/dist/context/index.d.mts.map +0 -1
- package/dist/engine-context-BfFiKN53.mjs +0 -86
- package/dist/engine-context-BfFiKN53.mjs.map +0 -1
- package/dist/engine-context-D0y88i_J.cjs +0 -91
- package/dist/execution-context-CE5H90Um.mjs +0 -2845
- package/dist/execution-context-CE5H90Um.mjs.map +0 -1
- package/dist/execution-context-CnyaM3Ul.cjs +0 -2889
- package/dist/execution-context-NyDjVZ6T.d.cts +0 -647
- package/dist/execution-context-NyDjVZ6T.d.cts.map +0 -1
- package/dist/execution-context-YrjFeD9k.d.mts +0 -647
- package/dist/execution-context-YrjFeD9k.d.mts.map +0 -1
- package/dist/fs-CeEdzPKE.cjs +0 -262
- package/dist/fs-Dcle8lUp.mjs +0 -226
- package/dist/fs-Dcle8lUp.mjs.map +0 -1
- 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/rpc/client.cjs +0 -74
- package/dist/rpc/client.d.cts +0 -31
- package/dist/rpc/client.d.cts.map +0 -1
- package/dist/rpc/client.d.mts +0 -31
- package/dist/rpc/client.d.mts.map +0 -1
- package/dist/rpc/client.mjs +0 -71
- package/dist/rpc/client.mjs.map +0 -1
- package/dist/rpc/serialization.cjs +0 -82
- package/dist/rpc/serialization.d.cts +0 -46
- package/dist/rpc/serialization.d.cts.map +0 -1
- package/dist/rpc/serialization.d.mts +0 -46
- package/dist/rpc/serialization.d.mts.map +0 -1
- package/dist/rpc/serialization.mjs +0 -76
- package/dist/rpc/serialization.mjs.map +0 -1
- package/dist/rpc/server.cjs +0 -69
- package/dist/rpc/server.d.cts +0 -29
- package/dist/rpc/server.d.cts.map +0 -1
- package/dist/rpc/server.d.mts +0 -29
- package/dist/rpc/server.d.mts.map +0 -1
- package/dist/rpc/server.mjs +0 -66
- package/dist/rpc/server.mjs.map +0 -1
- package/dist/rpc/types.cjs +0 -0
- package/dist/rpc/types.d.cts +0 -70
- package/dist/rpc/types.d.cts.map +0 -1
- package/dist/rpc/types.d.mts +0 -70
- package/dist/rpc/types.d.mts.map +0 -1
- package/dist/rpc/types.mjs +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/base.cjs +0 -216
- package/dist/storage/base.d.cts +0 -199
- package/dist/storage/base.d.cts.map +0 -1
- package/dist/storage/base.d.mts +0 -199
- package/dist/storage/base.d.mts.map +0 -1
- package/dist/storage/base.mjs +0 -215
- package/dist/storage/base.mjs.map +0 -1
- package/dist/storage/file-system.cjs +0 -180
- package/dist/storage/file-system.d.cts +0 -127
- package/dist/storage/file-system.d.cts.map +0 -1
- package/dist/storage/file-system.d.mts +0 -127
- package/dist/storage/file-system.d.mts.map +0 -1
- package/dist/storage/file-system.mjs +0 -179
- package/dist/storage/file-system.mjs.map +0 -1
- package/dist/storage/helpers.cjs +0 -37
- package/dist/storage/helpers.d.cts +0 -25
- package/dist/storage/helpers.d.cts.map +0 -1
- package/dist/storage/helpers.d.mts +0 -25
- package/dist/storage/helpers.d.mts.map +0 -1
- package/dist/storage/helpers.mjs +0 -34
- package/dist/storage/helpers.mjs.map +0 -1
- package/dist/storage/index.cjs +0 -12
- package/dist/storage/index.d.cts +0 -5
- package/dist/storage/index.d.mts +0 -5
- package/dist/storage/index.mjs +0 -6
- package/dist/storage/virtual.cjs +0 -98
- package/dist/storage/virtual.d.cts +0 -80
- package/dist/storage/virtual.d.cts.map +0 -1
- package/dist/storage/virtual.d.mts +0 -80
- package/dist/storage/virtual.d.mts.map +0 -1
- package/dist/storage/virtual.mjs +0 -97
- package/dist/storage/virtual.mjs.map +0 -1
- package/dist/ts-morph-BbM83PT9.cjs +0 -114
- package/dist/ts-morph-C6YBNc46.mjs +0 -102
- package/dist/ts-morph-C6YBNc46.mjs.map +0 -1
- package/dist/tsconfig-DeKMGasE.cjs +0 -198
- package/dist/tsconfig-HzJsMUrr.mjs +0 -155
- package/dist/tsconfig-HzJsMUrr.mjs.map +0 -1
- 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/{chunk-C0xms8kb.cjs → chunk-C_NdSu1c.cjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,140 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
declare class PowerlinesEngine implements Engine, AsyncDisposable {
|
|
14
|
-
#private;
|
|
15
|
-
/**
|
|
16
|
-
* Create a new Powerlines Engine instance
|
|
17
|
-
*
|
|
18
|
-
* @param options - The options to initialize the context with
|
|
19
|
-
* @param initialConfig - The initial configuration for the context, which can be used to provide additional context or override certain configuration values during initialization. This is particularly useful when initializing the context from a CLI command, where the CLI flags can be passed as part of the initial configuration to ensure they are properly merged with the configuration file and made available to plugins during their setup and execution.
|
|
20
|
-
* @returns A new instance of the Powerlines Engine
|
|
21
|
-
*/
|
|
22
|
-
static from(options: EngineOptions, initialConfig?: DeepPartial<UserConfig>): Promise<PowerlinesEngine>;
|
|
23
|
-
/**
|
|
24
|
-
* The Powerlines context
|
|
25
|
-
*/
|
|
26
|
-
get context(): EngineContext;
|
|
27
|
-
/**
|
|
28
|
-
* Generate the Powerlines typescript declaration file
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
|
|
32
|
-
*
|
|
33
|
-
* @param inlineConfig - The inline configuration for the types command
|
|
34
|
-
*/
|
|
35
|
-
types(inlineConfig?: PartialKeys<Omit<TypesInlineConfig, "configFile">, "command">): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Prepare the Powerlines API
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
41
|
-
*
|
|
42
|
-
* @param inlineConfig - The inline configuration for the prepare command
|
|
43
|
-
*/
|
|
44
|
-
prepare(inlineConfig?: PartialKeys<Omit<PrepareInlineConfig, "configFile">, "command"> | PartialKeys<Omit<TypesInlineConfig, "configFile">, "command"> | PartialKeys<Omit<NewInlineConfig, "configFile">, "command"> | PartialKeys<Omit<CleanInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command"> | PartialKeys<Omit<LintInlineConfig, "configFile">, "command"> | PartialKeys<Omit<DocsInlineConfig, "configFile">, "command"> | PartialKeys<Omit<DeployInlineConfig, "configFile">, "command">): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Create a new Powerlines project
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* This method will create a new Powerlines project in the current directory.
|
|
50
|
-
*
|
|
51
|
-
* @param inlineConfig - The inline configuration for the new command
|
|
52
|
-
* @returns A promise that resolves when the project has been created
|
|
53
|
-
*/
|
|
54
|
-
new(inlineConfig: PartialKeys<NewInlineConfig, "command">): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Clean any previously prepared artifacts
|
|
57
|
-
*
|
|
58
|
-
* @remarks
|
|
59
|
-
* This method will remove the previous Powerlines artifacts from the project.
|
|
60
|
-
*
|
|
61
|
-
* @param inlineConfig - The inline configuration for the clean command
|
|
62
|
-
* @returns A promise that resolves when the clean command has completed
|
|
63
|
-
*/
|
|
64
|
-
clean(inlineConfig?: PartialKeys<Omit<CleanInlineConfig, "configFile">, "command"> | PartialKeys<Omit<PrepareInlineConfig, "configFile">, "command">): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Lint the project
|
|
67
|
-
*
|
|
68
|
-
* @param inlineConfig - The inline configuration for the lint command
|
|
69
|
-
* @returns A promise that resolves when the lint command has completed
|
|
70
|
-
*/
|
|
71
|
-
lint(inlineConfig?: PartialKeys<Omit<LintInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
72
|
-
/**
|
|
73
|
-
* Test the project
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* This method will run the tests for the Powerlines project.
|
|
77
|
-
*
|
|
78
|
-
* @param inlineConfig - The inline configuration for the test command
|
|
79
|
-
* @returns A promise that resolves when the test command has completed
|
|
80
|
-
*/
|
|
81
|
-
test(inlineConfig?: PartialKeys<Omit<TestInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
82
|
-
/**
|
|
83
|
-
* Build the project
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
87
|
-
*
|
|
88
|
-
* @param inlineConfig - The inline configuration for the build command
|
|
89
|
-
* @returns A promise that resolves when the build command has completed
|
|
90
|
-
*/
|
|
91
|
-
build(inlineConfig?: PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* Prepare the documentation for the project
|
|
94
|
-
*
|
|
95
|
-
* @param inlineConfig - The inline configuration for the docs command
|
|
96
|
-
* @returns A promise that resolves when the documentation generation has completed
|
|
97
|
-
*/
|
|
98
|
-
docs(inlineConfig?: PartialKeys<Omit<DocsInlineConfig, "configFile">, "command">): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Deploy the project source code
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
104
|
-
*
|
|
105
|
-
* @param inlineConfig - The inline configuration for the deploy command
|
|
106
|
-
*/
|
|
107
|
-
deploy(inlineConfig?: PartialKeys<Omit<DeployInlineConfig, "configFile">, "command">): Promise<void>;
|
|
108
|
-
/**
|
|
109
|
-
* Finalization/cleanup processing for the Powerlines API
|
|
110
|
-
*
|
|
111
|
-
* @remarks
|
|
112
|
-
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
113
|
-
*
|
|
114
|
-
* @returns A promise that resolves when the finalization process has completed
|
|
115
|
-
*/
|
|
116
|
-
finalize(): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.
|
|
119
|
-
*/
|
|
120
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Create a new Powerlines Engine instance
|
|
123
|
-
*
|
|
124
|
-
* @param context - The Powerlines context
|
|
125
|
-
*/
|
|
126
|
-
protected constructor(context: EngineContext);
|
|
127
|
-
/**
|
|
128
|
-
* Handle incoming IPC messages from the worker processes, routing them to the appropriate handlers based on the message type.
|
|
129
|
-
*
|
|
130
|
-
* @param message - The IPC message received from a worker process
|
|
131
|
-
*/
|
|
132
|
-
private handleIpcMessage;
|
|
133
|
-
private handleWriteLog;
|
|
134
|
-
private handleUpdatePlugin;
|
|
135
|
-
private handleUpdateHook;
|
|
136
|
-
private handleUpdateCommand;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
export { PowerlinesEngine };
|
|
140
|
-
//# sourceMappingURL=index.d.cts.map
|
|
1
|
+
import { C as RpcServerFunctions, D as WrappedRpcFunctions, E as WrappedRpcFunction, S as RpcPayloadMetadata, T as WrapRpcFunctions, _ as RpcClientRemoteFunctions, a as ExtractRpcFunction, b as RpcFunctions, c as InputRpcFunctions, d as RpcClientCall, f as RpcClientCallEvent, g as RpcClientHost, h as RpcClientFunctions, i as RpcClientOptions, l as LogPayload, m as RpcClientEvents, n as EngineOptions, o as ExtractRpcFunctions, p as RpcClientCallOptional, r as EngineResolvedConfig, s as InputRpcFunction, t as EngineExecutionOptions, u as RpcClient, v as RpcContext, w as WrapRpcFunction, x as RpcPayloadEnvelop, y as RpcFunction } from "./config-DKEmqMrh.cjs";
|
|
2
|
+
import { a as ExecutionHookScopeState, c as ExecutionScopeType, i as ExecutionCommandScopeState, l as ExecutionState, n as EngineExecutionItem, o as ExecutionPluginScopeState, r as EngineSystemContext, s as ExecutionScopeState, t as EngineContext } from "./context-D0_a0kRO.cjs";
|
|
3
|
+
import { a as PowerlinesExecutionHost, i as ExecutionInterface, n as ExecutionHost, o as Worker, r as ExecutionHostParams, t as Engine } from "./api-DcHfCjQK.cjs";
|
|
4
|
+
import { t as PowerlinesEngineContext } from "./engine-context-B8K6Jtkk.cjs";
|
|
5
|
+
import { PowerlinesEngine, createContext, createEngine } from "./engine.cjs";
|
|
6
|
+
export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionHost, type ExecutionHostParams, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type PowerlinesExecutionHost, 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 Worker, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,140 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
declare class PowerlinesEngine implements Engine, AsyncDisposable {
|
|
14
|
-
#private;
|
|
15
|
-
/**
|
|
16
|
-
* Create a new Powerlines Engine instance
|
|
17
|
-
*
|
|
18
|
-
* @param options - The options to initialize the context with
|
|
19
|
-
* @param initialConfig - The initial configuration for the context, which can be used to provide additional context or override certain configuration values during initialization. This is particularly useful when initializing the context from a CLI command, where the CLI flags can be passed as part of the initial configuration to ensure they are properly merged with the configuration file and made available to plugins during their setup and execution.
|
|
20
|
-
* @returns A new instance of the Powerlines Engine
|
|
21
|
-
*/
|
|
22
|
-
static from(options: EngineOptions, initialConfig?: DeepPartial<UserConfig>): Promise<PowerlinesEngine>;
|
|
23
|
-
/**
|
|
24
|
-
* The Powerlines context
|
|
25
|
-
*/
|
|
26
|
-
get context(): EngineContext;
|
|
27
|
-
/**
|
|
28
|
-
* Generate the Powerlines typescript declaration file
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
|
|
32
|
-
*
|
|
33
|
-
* @param inlineConfig - The inline configuration for the types command
|
|
34
|
-
*/
|
|
35
|
-
types(inlineConfig?: PartialKeys<Omit<TypesInlineConfig, "configFile">, "command">): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Prepare the Powerlines API
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
41
|
-
*
|
|
42
|
-
* @param inlineConfig - The inline configuration for the prepare command
|
|
43
|
-
*/
|
|
44
|
-
prepare(inlineConfig?: PartialKeys<Omit<PrepareInlineConfig, "configFile">, "command"> | PartialKeys<Omit<TypesInlineConfig, "configFile">, "command"> | PartialKeys<Omit<NewInlineConfig, "configFile">, "command"> | PartialKeys<Omit<CleanInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command"> | PartialKeys<Omit<LintInlineConfig, "configFile">, "command"> | PartialKeys<Omit<DocsInlineConfig, "configFile">, "command"> | PartialKeys<Omit<DeployInlineConfig, "configFile">, "command">): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Create a new Powerlines project
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* This method will create a new Powerlines project in the current directory.
|
|
50
|
-
*
|
|
51
|
-
* @param inlineConfig - The inline configuration for the new command
|
|
52
|
-
* @returns A promise that resolves when the project has been created
|
|
53
|
-
*/
|
|
54
|
-
new(inlineConfig: PartialKeys<NewInlineConfig, "command">): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Clean any previously prepared artifacts
|
|
57
|
-
*
|
|
58
|
-
* @remarks
|
|
59
|
-
* This method will remove the previous Powerlines artifacts from the project.
|
|
60
|
-
*
|
|
61
|
-
* @param inlineConfig - The inline configuration for the clean command
|
|
62
|
-
* @returns A promise that resolves when the clean command has completed
|
|
63
|
-
*/
|
|
64
|
-
clean(inlineConfig?: PartialKeys<Omit<CleanInlineConfig, "configFile">, "command"> | PartialKeys<Omit<PrepareInlineConfig, "configFile">, "command">): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Lint the project
|
|
67
|
-
*
|
|
68
|
-
* @param inlineConfig - The inline configuration for the lint command
|
|
69
|
-
* @returns A promise that resolves when the lint command has completed
|
|
70
|
-
*/
|
|
71
|
-
lint(inlineConfig?: PartialKeys<Omit<LintInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
72
|
-
/**
|
|
73
|
-
* Test the project
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* This method will run the tests for the Powerlines project.
|
|
77
|
-
*
|
|
78
|
-
* @param inlineConfig - The inline configuration for the test command
|
|
79
|
-
* @returns A promise that resolves when the test command has completed
|
|
80
|
-
*/
|
|
81
|
-
test(inlineConfig?: PartialKeys<Omit<TestInlineConfig, "configFile">, "command"> | PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
82
|
-
/**
|
|
83
|
-
* Build the project
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
87
|
-
*
|
|
88
|
-
* @param inlineConfig - The inline configuration for the build command
|
|
89
|
-
* @returns A promise that resolves when the build command has completed
|
|
90
|
-
*/
|
|
91
|
-
build(inlineConfig?: PartialKeys<Omit<BuildInlineConfig, "configFile">, "command">): Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* Prepare the documentation for the project
|
|
94
|
-
*
|
|
95
|
-
* @param inlineConfig - The inline configuration for the docs command
|
|
96
|
-
* @returns A promise that resolves when the documentation generation has completed
|
|
97
|
-
*/
|
|
98
|
-
docs(inlineConfig?: PartialKeys<Omit<DocsInlineConfig, "configFile">, "command">): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Deploy the project source code
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
104
|
-
*
|
|
105
|
-
* @param inlineConfig - The inline configuration for the deploy command
|
|
106
|
-
*/
|
|
107
|
-
deploy(inlineConfig?: PartialKeys<Omit<DeployInlineConfig, "configFile">, "command">): Promise<void>;
|
|
108
|
-
/**
|
|
109
|
-
* Finalization/cleanup processing for the Powerlines API
|
|
110
|
-
*
|
|
111
|
-
* @remarks
|
|
112
|
-
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
113
|
-
*
|
|
114
|
-
* @returns A promise that resolves when the finalization process has completed
|
|
115
|
-
*/
|
|
116
|
-
finalize(): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Asynchronous disposal method for the Powerlines Engine, which will call the finalize method to perform any necessary cleanup when the engine is disposed of.
|
|
119
|
-
*/
|
|
120
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Create a new Powerlines Engine instance
|
|
123
|
-
*
|
|
124
|
-
* @param context - The Powerlines context
|
|
125
|
-
*/
|
|
126
|
-
protected constructor(context: EngineContext);
|
|
127
|
-
/**
|
|
128
|
-
* Handle incoming IPC messages from the worker processes, routing them to the appropriate handlers based on the message type.
|
|
129
|
-
*
|
|
130
|
-
* @param message - The IPC message received from a worker process
|
|
131
|
-
*/
|
|
132
|
-
private handleIpcMessage;
|
|
133
|
-
private handleWriteLog;
|
|
134
|
-
private handleUpdatePlugin;
|
|
135
|
-
private handleUpdateHook;
|
|
136
|
-
private handleUpdateCommand;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
export { PowerlinesEngine };
|
|
140
|
-
//# sourceMappingURL=index.d.mts.map
|
|
1
|
+
import { C as RpcServerFunctions, D as WrappedRpcFunctions, E as WrappedRpcFunction, S as RpcPayloadMetadata, T as WrapRpcFunctions, _ as RpcClientRemoteFunctions, a as ExtractRpcFunction, b as RpcFunctions, c as InputRpcFunctions, d as RpcClientCall, f as RpcClientCallEvent, g as RpcClientHost, h as RpcClientFunctions, i as RpcClientOptions, l as LogPayload, m as RpcClientEvents, n as EngineOptions, o as ExtractRpcFunctions, p as RpcClientCallOptional, r as EngineResolvedConfig, s as InputRpcFunction, t as EngineExecutionOptions, u as RpcClient, v as RpcContext, w as WrapRpcFunction, x as RpcPayloadEnvelop, y as RpcFunction } from "./config-ByLyzMI0.mjs";
|
|
2
|
+
import { a as ExecutionHookScopeState, c as ExecutionScopeType, i as ExecutionCommandScopeState, l as ExecutionState, n as EngineExecutionItem, o as ExecutionPluginScopeState, r as EngineSystemContext, s as ExecutionScopeState, t as EngineContext } from "./context-DcXV6_GL.mjs";
|
|
3
|
+
import { a as PowerlinesExecutionHost, i as ExecutionInterface, n as ExecutionHost, o as Worker, r as ExecutionHostParams, t as Engine } from "./api-BgyEi2hF.mjs";
|
|
4
|
+
import { t as PowerlinesEngineContext } from "./engine-context-DKlA5Pgu.mjs";
|
|
5
|
+
import { PowerlinesEngine, createContext, createEngine } from "./engine.mjs";
|
|
6
|
+
export { type Engine, type EngineContext, type EngineExecutionItem, type EngineExecutionOptions, type EngineOptions, type EngineResolvedConfig, type EngineSystemContext, type ExecutionCommandScopeState, type ExecutionHookScopeState, type ExecutionHost, type ExecutionHostParams, type ExecutionInterface, type ExecutionPluginScopeState, type ExecutionScopeState, type ExecutionScopeType, type ExecutionState, type ExtractRpcFunction, type ExtractRpcFunctions, type InputRpcFunction, type InputRpcFunctions, type LogPayload, PowerlinesEngine, PowerlinesEngineContext, type PowerlinesExecutionHost, 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 Worker, type WrapRpcFunction, type WrapRpcFunctions, type WrappedRpcFunction, type WrappedRpcFunctions, createContext, createEngine };
|