@powerlines/engine 0.45.3 → 0.46.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.
Files changed (52) hide show
  1. package/dist/_internal/worker.cjs +886 -803
  2. package/dist/_internal/worker.mjs +889 -806
  3. package/dist/_internal/worker.mjs.map +1 -1
  4. package/dist/api.cjs +292 -323
  5. package/dist/api.d.cts +44 -11
  6. package/dist/api.d.cts.map +1 -1
  7. package/dist/api.d.mts +44 -11
  8. package/dist/api.d.mts.map +1 -1
  9. package/dist/api.mjs +292 -323
  10. package/dist/api.mjs.map +1 -1
  11. package/dist/{base-context-Byizvf4F.cjs → base-context-D7G_24-i.cjs} +82 -76
  12. package/dist/{base-context-BSAC5sO9.mjs → base-context-DU0NRHDt.mjs} +85 -79
  13. package/dist/base-context-DU0NRHDt.mjs.map +1 -0
  14. package/dist/context/index.cjs +3 -3
  15. package/dist/context/index.d.cts +44 -617
  16. package/dist/context/index.d.cts.map +1 -1
  17. package/dist/context/index.d.mts +44 -617
  18. package/dist/context/index.d.mts.map +1 -1
  19. package/dist/context/index.mjs +3 -3
  20. package/dist/engine-context-BuJQY312.cjs +91 -0
  21. package/dist/engine-context-BvDfqfY7.mjs +86 -0
  22. package/dist/engine-context-BvDfqfY7.mjs.map +1 -0
  23. package/dist/execution-context-BpRfsnkE.d.mts +644 -0
  24. package/dist/execution-context-BpRfsnkE.d.mts.map +1 -0
  25. package/dist/{execution-context-BYGFYty0.cjs → execution-context-BrX9i_L8.cjs} +449 -364
  26. package/dist/{execution-context-Bkxp1fML.mjs → execution-context-CgDuoi8o.mjs} +451 -366
  27. package/dist/execution-context-CgDuoi8o.mjs.map +1 -0
  28. package/dist/execution-context-CodQucFX.d.cts +644 -0
  29. package/dist/execution-context-CodQucFX.d.cts.map +1 -0
  30. package/dist/index.cjs +15 -16
  31. package/dist/index.d.cts +3 -3
  32. package/dist/index.d.cts.map +1 -1
  33. package/dist/index.d.mts +3 -3
  34. package/dist/index.d.mts.map +1 -1
  35. package/dist/index.mjs +15 -16
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/{tsconfig-QMSxSwBD.cjs → tsconfig-BUDqmOaT.cjs} +13 -13
  38. package/dist/{tsconfig-CI6bla4E.mjs → tsconfig-MeFEs21S.mjs} +14 -14
  39. package/dist/tsconfig-MeFEs21S.mjs.map +1 -0
  40. package/dist/typescript/index.cjs +1 -1
  41. package/dist/typescript/index.d.cts +6 -6
  42. package/dist/typescript/index.d.cts.map +1 -1
  43. package/dist/typescript/index.d.mts +6 -6
  44. package/dist/typescript/index.d.mts.map +1 -1
  45. package/dist/typescript/index.mjs +1 -1
  46. package/package.json +17 -17
  47. package/dist/base-context-BSAC5sO9.mjs.map +0 -1
  48. package/dist/engine-context-CI_0NWIk.cjs +0 -73
  49. package/dist/engine-context-_RMFwG4J.mjs +0 -68
  50. package/dist/engine-context-_RMFwG4J.mjs.map +0 -1
  51. package/dist/execution-context-Bkxp1fML.mjs.map +0 -1
  52. package/dist/tsconfig-CI6bla4E.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/context/base-context.ts","../../src/context/context.ts","../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/execution-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;cA4Da,qBAAA,YAAiC,WAAA;EAAA;;;;EAMrC,cAAA;;;AANT;EAWS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,aAAA;EAKM;;;EAAhB,cAAA,EAAgB,OAAA,CAAQ,aAAA;EA0BR;;;EArBhB,aAAA,EAAe,aAAA;EAwDS;;;EAnDxB,UAAA,EAAa,gBAAA;EAuFW;;;EAAA,IAlFpB,MAAA,CAAA,GAAU,MAAA;EAsIuC;;;EAAA,IA/HjD,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAyKmB;;;EAAA,IAlK/B,QAAA,CAAA,GAAY,QAAA;EAiNO;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"index.d.mts","names":[],"sources":["../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;cA8Ba,uBAAA,SACH,qBAAA,YACG,aAAA;EAAA;;AAFb;;;;;SAYsB,iBAAA,CAClB,OAAA,EAAS,aAAA,EACT,aAAA,GAAe,WAAA,CAAY,UAAA,IAC1B,OAAA,CAAQ,uBAAA;EAAA;;;EAAA,SAUc,cAAA,EAAgB,aAAA;EAKD;;;EAAA,SAAf,aAAA,EAAe,WAAA,CAAY,UAAA;EAYxC;;;EAPI,OAAA,EAAS,YAAA,CACvB,IAAA,CAAK,aAAA;IAsCsB;;;IAhC3B,QAAA,EAAU,sBAAA;EAAA;EAxCY;;;;;;EAAA,UAyDf,WAAA,CACP,OAAA,EAAS,aAAA,EACT,aAAA,GAAe,WAAA,CAAY,UAAA;EA/CZ;;;;;;EAAA,UA4DQ,IAAA,CAAA,GAAI,OAAA;EA5CJ;;;;;EAAA,IAmFd,UAAA,CAAA,GAAc,cAAA;AAAA;;;cCnFd,4BAAA,yBACa,cAAA,GAAiB,cAAA,UAEjC,iBAAA,CAAkB,yBAAA,CAA0B,eAAA,cACzC,2BAAA,CAA4B,eAAA;EAAA;;ADlCzC;;;;;;;;SC4DsB,iBAAA,yBACM,cAAA,GAAiB,cAAA,CAAA,CAEzC,OAAA,EAAS,gBAAA,EACT,MAAA,EAAQ,eAAA,EACR,gBAAA,EAAkB,sBAAA,CAChB,yBAAA,CAA0B,eAAA,IAE5B,WAAA,EAAa,yBAAA,CAA0B,eAAA,mBACtC,OAAA,CAAQ,4BAAA,CAA6B,eAAA;EDvCY;;;EAAA,UCqD1C,iBAAA,EAAmB,yBAAA,CAA0B,eAAA;EDhD9B;;;ECsDlB,OAAA,EAAS,wBAAA,CAAyB,eAAA;ED5BxB;;;;;;;;EAAA,ICsCN,UAAA,CAAA,GAAc,wBAAA,CAAyB,eAAA;;;;;;;;;MAYvC,UAAA,CAAW,KAAA,EAAO,wBAAA,CAAyB,eAAA;EDtF7B;;;EAAA,IC6Fd,EAAA,CAAA;EDxFyC;;;EAAA,IC+FzC,KAAA,CAAA,GAAS,MAAA,SAElB,SAAA,CAAU,aAAA,CAAc,eAAA;ED3FnB;;;;;;EAAA,UCsGS,oBAAA,CACd,MAAA,EAAQ,yBAAA,CAA0B,eAAA,mBACjC,OAAA;ED/E0B;;;;;;;ECgGb,YAAA,CAAa,OAAA,EAAS,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;;;;AA/HvE;;;EA+IkB,YAAA,CAAa,OAAA,EAAS,aAAA,GAAgB,MAAA;EAOzC,SAAA,CACX,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAC5B,OAAA;EArJiD;;;EAsN7C,WAAA,qBAAA,CACL,GAAA,EAAK,IAAA,EACL,OAAA,GAAU,kBAAA,GACT,gBAAA,CAAiB,aAAA,CAAc,eAAA,GAAkB,IAAA;EAAA,UAqD3C,WAAA,CACP,OAAA,EAAS,gBAAA,EACT,MAAA,EAAQ,eAAA,EACR,gBAAA,EAAkB,sBAAA,CAChB,yBAAA,CAA0B,eAAA;EApPnB;;;;;EAAA,UAsQQ,WAAA,CAAA,GAAe,yBAAA,CAA0B,eAAA;AAAA;;;;;;ADrU9D;;;;;iBEagB,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,QAAA,UACA,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,4BAAA,CAA6B,eAAA,IACzC,sBAAA,CAAuB,eAAA"}
@@ -1,5 +1,5 @@
1
- import { t as PowerlinesBaseContext } from "../base-context-BSAC5sO9.mjs";
2
- import { t as PowerlinesEngineContext } from "../engine-context-_RMFwG4J.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-Bkxp1fML.mjs";
1
+ import { t as PowerlinesBaseContext } from "../base-context-DU0NRHDt.mjs";
2
+ import { t as PowerlinesEngineContext } from "../engine-context-BvDfqfY7.mjs";
3
+ import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-CgDuoi8o.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -0,0 +1,91 @@
1
+ const require_chunk = require('./chunk-C0xms8kb.cjs');
2
+ const require_base_context = require('./base-context-D7G_24-i.cjs');
3
+ let _stryke_convert_to_array = require("@stryke/convert/to-array");
4
+ let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
5
+
6
+ //#region src/context/engine-context.ts
7
+ var PowerlinesEngineContext = class PowerlinesEngineContext extends require_base_context.PowerlinesBaseContext {
8
+ #executions = [];
9
+ /**
10
+ * Creates a new instance of the PowerlinesEngineContext class.
11
+ *
12
+ * @param options - The options to initialize the context with.
13
+ * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
14
+ */
15
+ static async fromInitialConfig(options, initialConfig = {}) {
16
+ const context = new PowerlinesEngineContext(options, initialConfig);
17
+ await context.init();
18
+ return context;
19
+ }
20
+ /**
21
+ * The initial options provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
22
+ */
23
+ initialOptions;
24
+ /**
25
+ * The initial user configuration provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
26
+ */
27
+ initialConfig;
28
+ /**
29
+ * The options provided to the Powerlines process
30
+ */
31
+ options = {};
32
+ /**
33
+ * Creates a new Context instance.
34
+ *
35
+ * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.
36
+ * @param initialConfig - The initial configuration provided by the user, which can be used to resolve the final configuration for the context. This typically includes the user configuration options defined in the `powerlines.config.ts` file, as well as any inline configuration options provided during execution.
37
+ */
38
+ constructor(options, initialConfig = {}) {
39
+ super(options, initialConfig);
40
+ this.initialOptions = options;
41
+ this.initialConfig = initialConfig;
42
+ }
43
+ /**
44
+ * Initialize the context with the provided configuration options
45
+ *
46
+ * @remarks
47
+ * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.
48
+ */
49
+ async init() {
50
+ await super.init();
51
+ if (!this.configFile?.config) {
52
+ this.fatal("No configuration file found. Please ensure you have a valid configuration file in your project.");
53
+ throw new Error("No configuration file found");
54
+ }
55
+ this.#executions = await Promise.all((0, _stryke_convert_to_array.toArray)(this.configFile.config).map(async (_, executionIndex) => {
56
+ const executionId = (0, _stryke_unique_id_uuid.uuid)();
57
+ return {
58
+ executionId,
59
+ options: {
60
+ cwd: this.options.cwd,
61
+ root: this.options.root,
62
+ configFile: this.options.configFile,
63
+ ...this.initialOptions,
64
+ executionId,
65
+ executionIndex
66
+ },
67
+ active: {
68
+ command: null,
69
+ hook: null,
70
+ plugin: null
71
+ }
72
+ };
73
+ }));
74
+ }
75
+ /**
76
+ * A list of all command executions that will be run during the lifecycle of the engine
77
+ *
78
+ * @returns An array of {@link ExecutionState} representing each execution context for the engine.
79
+ */
80
+ get executions() {
81
+ return this.#executions;
82
+ }
83
+ };
84
+
85
+ //#endregion
86
+ Object.defineProperty(exports, 'PowerlinesEngineContext', {
87
+ enumerable: true,
88
+ get: function () {
89
+ return PowerlinesEngineContext;
90
+ }
91
+ });
@@ -0,0 +1,86 @@
1
+ import { t as PowerlinesBaseContext } from "./base-context-DU0NRHDt.mjs";
2
+ import { toArray } from "@stryke/convert/to-array";
3
+ import { uuid } from "@stryke/unique-id/uuid";
4
+
5
+ //#region src/context/engine-context.ts
6
+ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBaseContext {
7
+ #executions = [];
8
+ /**
9
+ * Creates a new instance of the PowerlinesEngineContext class.
10
+ *
11
+ * @param options - The options to initialize the context with.
12
+ * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
13
+ */
14
+ static async fromInitialConfig(options, initialConfig = {}) {
15
+ const context = new PowerlinesEngineContext(options, initialConfig);
16
+ await context.init();
17
+ return context;
18
+ }
19
+ /**
20
+ * The initial options provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
21
+ */
22
+ initialOptions;
23
+ /**
24
+ * The initial user configuration provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
25
+ */
26
+ initialConfig;
27
+ /**
28
+ * The options provided to the Powerlines process
29
+ */
30
+ options = {};
31
+ /**
32
+ * Creates a new Context instance.
33
+ *
34
+ * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.
35
+ * @param initialConfig - The initial configuration provided by the user, which can be used to resolve the final configuration for the context. This typically includes the user configuration options defined in the `powerlines.config.ts` file, as well as any inline configuration options provided during execution.
36
+ */
37
+ constructor(options, initialConfig = {}) {
38
+ super(options, initialConfig);
39
+ this.initialOptions = options;
40
+ this.initialConfig = initialConfig;
41
+ }
42
+ /**
43
+ * Initialize the context with the provided configuration options
44
+ *
45
+ * @remarks
46
+ * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.
47
+ */
48
+ async init() {
49
+ await super.init();
50
+ if (!this.configFile?.config) {
51
+ this.fatal("No configuration file found. Please ensure you have a valid configuration file in your project.");
52
+ throw new Error("No configuration file found");
53
+ }
54
+ this.#executions = await Promise.all(toArray(this.configFile.config).map(async (_, executionIndex) => {
55
+ const executionId = uuid();
56
+ return {
57
+ executionId,
58
+ options: {
59
+ cwd: this.options.cwd,
60
+ root: this.options.root,
61
+ configFile: this.options.configFile,
62
+ ...this.initialOptions,
63
+ executionId,
64
+ executionIndex
65
+ },
66
+ active: {
67
+ command: null,
68
+ hook: null,
69
+ plugin: null
70
+ }
71
+ };
72
+ }));
73
+ }
74
+ /**
75
+ * A list of all command executions that will be run during the lifecycle of the engine
76
+ *
77
+ * @returns An array of {@link ExecutionState} representing each execution context for the engine.
78
+ */
79
+ get executions() {
80
+ return this.#executions;
81
+ }
82
+ };
83
+
84
+ //#endregion
85
+ export { PowerlinesEngineContext as t };
86
+ //# sourceMappingURL=engine-context-BvDfqfY7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-context-BvDfqfY7.mjs","names":["#executions"],"sources":["../src/context/engine-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n EngineContext,\n EngineOptions,\n ExecutionState,\n LogLevelResolvedConfig,\n UserConfig\n} from \"@powerlines/core\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { DeepPartial, RequiredKeys } from \"@stryke/types/base\";\nimport { uuid } from \"@stryke/unique-id/uuid\";\nimport { PowerlinesBaseContext } from \"./base-context\";\n\nexport class PowerlinesEngineContext\n extends PowerlinesBaseContext\n implements EngineContext\n{\n #executions: ExecutionState[] = [];\n\n /**\n * Creates a new instance of the PowerlinesEngineContext class.\n *\n * @param options - The options to initialize the context with.\n * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.\n */\n public static async fromInitialConfig(\n options: EngineOptions,\n initialConfig: DeepPartial<UserConfig> = {}\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext(options, initialConfig);\n await context.init();\n\n return context;\n }\n\n /**\n * The initial options provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.\n */\n public override readonly initialOptions: EngineOptions;\n\n /**\n * The initial user configuration provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.\n */\n public override readonly initialConfig: DeepPartial<UserConfig>;\n\n /**\n * The options provided to the Powerlines process\n */\n public override options: RequiredKeys<\n Omit<EngineOptions, \"logLevel\">,\n \"name\" | \"root\" | \"cwd\" | \"mode\" | \"framework\"\n > & {\n /**\n * The log level to use for logging messages during the build process. This can be a string indicating the log level or a more detailed configuration object that allows for specifying different log levels for different categories of logs.\n */\n logLevel: LogLevelResolvedConfig;\n } = {} as RequiredKeys<\n Omit<EngineOptions, \"logLevel\">,\n \"name\" | \"root\" | \"cwd\" | \"mode\" | \"framework\"\n > & {\n /**\n * The log level to use for logging messages during the build process. This can be a string indicating the log level or a more detailed configuration object that allows for specifying different log levels for different categories of logs.\n */\n logLevel: LogLevelResolvedConfig;\n };\n\n /**\n * Creates a new Context instance.\n *\n * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.\n * @param initialConfig - The initial configuration provided by the user, which can be used to resolve the final configuration for the context. This typically includes the user configuration options defined in the `powerlines.config.ts` file, as well as any inline configuration options provided during execution.\n */\n protected constructor(\n options: EngineOptions,\n initialConfig: DeepPartial<UserConfig> = {}\n ) {\n super(options, initialConfig);\n this.initialOptions = options;\n this.initialConfig = initialConfig;\n }\n\n /**\n * Initialize the context with the provided configuration options\n *\n * @remarks\n * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.\n */\n protected override async init() {\n await super.init();\n\n if (!this.configFile?.config) {\n this.fatal(\n \"No configuration file found. Please ensure you have a valid configuration file in your project.\"\n );\n throw new Error(\"No configuration file found\");\n }\n\n this.#executions = await Promise.all(\n toArray(this.configFile.config).map(async (_, executionIndex) => {\n const executionId = uuid();\n\n return {\n executionId,\n options: {\n cwd: this.options.cwd,\n root: this.options.root,\n configFile: this.options.configFile,\n ...this.initialOptions,\n executionId,\n executionIndex\n },\n active: {\n command: null,\n hook: null,\n plugin: null\n }\n };\n })\n );\n }\n\n /**\n * A list of all command executions that will be run during the lifecycle of the engine\n *\n * @returns An array of {@link ExecutionState} representing each execution context for the engine.\n */\n public get executions(): ExecutionState[] {\n return this.#executions;\n }\n}\n"],"mappings":";;;;;AA8BA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAAgC,EAAE;;;;;;;CAQlC,aAAoB,kBAClB,SACA,gBAAyC,EAAE,EACT;EAClC,MAAM,UAAU,IAAI,wBAAwB,SAAS,cAAc;AACnE,QAAM,QAAQ,MAAM;AAEpB,SAAO;;;;;CAMT,AAAyB;;;;CAKzB,AAAyB;;;;CAKzB,AAAgB,UAQZ,EAAE;;;;;;;CAgBN,AAAU,YACR,SACA,gBAAyC,EAAE,EAC3C;AACA,QAAM,SAAS,cAAc;AAC7B,OAAK,iBAAiB;AACtB,OAAK,gBAAgB;;;;;;;;CASvB,MAAyB,OAAO;AAC9B,QAAM,MAAM,MAAM;AAElB,MAAI,CAAC,KAAK,YAAY,QAAQ;AAC5B,QAAK,MACH,kGACD;AACD,SAAM,IAAI,MAAM,8BAA8B;;AAGhD,QAAKA,aAAc,MAAM,QAAQ,IAC/B,QAAQ,KAAK,WAAW,OAAO,CAAC,IAAI,OAAO,GAAG,mBAAmB;GAC/D,MAAM,cAAc,MAAM;AAE1B,UAAO;IACL;IACA,SAAS;KACP,KAAK,KAAK,QAAQ;KAClB,MAAM,KAAK,QAAQ;KACnB,YAAY,KAAK,QAAQ;KACzB,GAAG,KAAK;KACR;KACA;KACD;IACD,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF;IACD,CACH;;;;;;;CAQH,IAAW,aAA+B;AACxC,SAAO,MAAKA"}